@cu-mkp/editioncrafter 0.0.7 → 0.0.8

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.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see editioncrafter.min.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.EditionCrafter=t(require("react"),require("react-dom")):e.EditionCrafter=t(e.React,e.ReactDOM)}(self,((e,t)=>(()=>{var n={2616:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);i&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},9676:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8515:e=>{"use strict";e.exports=function(e){return e[1]}},9219:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},3660:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(9219),a=n(8571);r(n(8571),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,i=new a.Element(e,t,void 0,n);this.addNode(i),this.tagStack.push(i)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===o.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},8571:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(9219),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),C(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return r(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,n){var i=e.call(this,n)||this;return i.name=t,i.type=a.ElementType.Directive,i}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return r(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var m=function(e){function t(t,n,i,r){void 0===i&&(i=[]),void 0===r&&(r="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,i)||this;return o.name=t,o.attribs=n,o.type=r,o}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,i;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(i=e["x-attribsPrefix"])||void 0===i?void 0:i[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function x(e){return e.type===a.ElementType.Root}function C(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(g(e)){var i=t?E(e.children):[],r=new m(e.name,o({},e.attribs),i);i.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=r}else if(v(e)){i=t?E(e.children):[];var a=new h(i);i.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){i=t?E(e.children):[];var s=new f(i);i.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function E(e){for(var t=e.map((function(e){return C(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=v,t.isText=y,t.isComment=b,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=C},9167:(e,t,n)=>{"use strict";var i=n(10),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return i.isMemo(e)?a:s[e.$$typeof]||r}s[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[i.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(f){var r=h(n);r&&r!==f&&e(t,r,i)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||i&&i[v]||m&&m[v]||s&&s[v])){var y=p(n,v);try{c(t,v,y)}catch(e){}}}}return t}},2634:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case u:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case r:return t}}}function C(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||x(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===r},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},10:(e,t,n)=>{"use strict";e.exports=n(2634)},4771:(e,t)=>{t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},896:e=>{var t="html",n="head",i="body",r=/<([a-zA-Z]+[0-9]?)/,o=/<head[^]*>/i,a=/<body[^]*>/i,s=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;s=l=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();s=function(e,t){return t?(d.documentElement.querySelector(t).innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var p,h="object"==typeof document?document.createElement("template"):{};h.content&&(p=function(e){return h.innerHTML=e,h.content.childNodes}),e.exports=function(e){var c,u,d,h,f=e.match(r);switch(f&&f[1]&&(c=f[1].toLowerCase()),c){case t:return u=l(e),o.test(e)||(d=u.querySelector(n))&&d.parentNode.removeChild(d),a.test(e)||(d=u.querySelector(i))&&d.parentNode.removeChild(d),u.querySelectorAll(t);case n:case i:return h=(u=s(e)).querySelectorAll(c),a.test(e)&&o.test(e)?h[0].parentNode.childNodes:h;default:return p?p(e):(d=s(e,i).querySelector(i)).childNodes}}},1911:(e,t,n)=>{var i=n(896),r=n(7226).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(o);return n&&n[1]&&(t=n[1]),r(i(e),null,t)}},7226:(e,t,n)=>{for(var i,r=n(3660),o=n(4771).CASE_SENSITIVE_TAG_NAMES,a=r.Comment,s=r.Element,l=r.ProcessingInstruction,c=r.Text,u={},d=0,p=o.length;d<p;d++)i=o[d],u[i.toLowerCase()]=i;function h(e){for(var t,n={},i=0,r=e.length;i<r;i++)n[(t=e[i]).name]=t.value;return n}function f(e){var t=function(e){return u[e]}(e=e.toLowerCase());return t||e}t.formatAttributes=h,t.formatDOM=function e(t,n,i){n=n||null;for(var r,o=[],u=0,d=t.length;u<d;u++){var p,m=t[u];switch(m.nodeType){case 1:r=f(m.nodeName),(p=new s(r,h(m.attributes))).children=e("template"===r?m.content.childNodes:m.childNodes,p);break;case 3:p=new c(m.nodeValue);break;case 8:p=new a(m.nodeValue);break;default:continue}var g=o[u-1]||null;g&&(g.next=p),p.parent=n,p.prev=g,p.next=null,o.push(p)}return i&&((p=new l(i.substring(0,i.indexOf(" ")).toLowerCase(),i)).next=o[0]||null,p.parent=n,o.unshift(p),o[1]&&(o[1].prev=o[0])),o}},6682:(e,t,n)=>{var i=n(3660),r=n(1911),o=n(1946),a=n(1136);r="function"==typeof r.default?r.default:r;var s={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:a(r(e,(t=t||{}).htmlparser2||s),t)}l.domToReact=a,l.htmlToDOM=r,l.attributesToProps=o,l.Comment=i.Comment,l.Element=i.Element,l.ProcessingInstruction=i.ProcessingInstruction,l.Text=i.Text,e.exports=l,l.default=l},1946:(e,t,n)=>{var i=n(6898),r=n(8340),o=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return i.possibleStandardNames[e]}e.exports=function(e,t){var n,c,u,d,p,h={},f=(e=e||{}).type&&s[e.type];for(n in e)if(u=e[n],i.isCustomAttribute(n))h[n]=u;else if(d=l(c=n.toLowerCase()))switch(p=i.getPropertyInfo(d),-1===o.indexOf(d)||-1===a.indexOf(t)||f||(d=l("default"+c)),h[d]=u,p&&p.type){case i.BOOLEAN:h[d]=!0;break;case i.OVERLOADED_BOOLEAN:""===u&&(h[d]=!0)}else r.PRESERVE_CUSTOM_ATTRIBUTES&&(h[n]=u);return r.setStyleProp(e.style,h),h}},1136:(e,t,n)=>{var i=n(4639),r=n(1946),o=n(8340),a=o.setStyleProp,s=o.canTextBeChildOfNode;function l(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var o,c,u,d,p,h=(n=n||{}).library||i,f=h.cloneElement,m=h.createElement,g=h.isValidElement,v=[],y="function"==typeof n.replace,b=n.trim,w=0,x=t.length;w<x;w++)if(o=t[w],y&&g(u=n.replace(o)))x>1&&(u=f(u,{key:u.key||w})),v.push(u);else if("text"!==o.type){switch(d=o.attribs,l(o)?a(d.style,d):d&&(d=r(d,o.name)),p=null,o.type){case"script":case"style":o.children[0]&&(d.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?d.defaultValue=o.children[0].data:o.children&&o.children.length&&(p=e(o.children,n));break;default:continue}x>1&&(d.key=w),v.push(m(o.name,d,p))}else{if((c=!o.data.trim().length)&&o.parent&&!s(o.parent))continue;if(b&&c)continue;v.push(o.data)}return 1===v.length?v[0]:v}},8340:(e,t,n)=>{var i=n(4639),r=n(7111).default;var o={reactCompat:!0};var a=i.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,i,r="function"==typeof t,o={},a={};for(n in e)i=e[n],r&&(o=t(n,i))&&2===o.length?a[o[0]]=o[1]:"string"==typeof i&&(a[i]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=r(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},5689:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function h(e){var t=e.match(n);t&&(d+=t.length);var i=e.lastIndexOf("\n");p=~i?e.length-i:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var g=[];function v(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;g.push(n)}function y(t){var n=t.exec(e);if(n){var i=n[0];return h(i),e=e.slice(i.length),n}}function b(){y(i)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var i=e.slice(2,n-2);return p+=2,h(i),e=e.slice(n),p+=2,t({type:"comment",comment:i})}}function C(){var e=f(),n=y(r);if(n){if(x(),!y(o))return v("property missing ':'");var i=y(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:i?u(i[0].replace(t,c)):c});return y(s),l}}return b(),function(){var e,t=[];for(w(t);e=C();)!1!==e&&(t.push(e),w(t));return t}()}},5652:(e,t,n)=>{var i="Expected a function",r=NaN,o="[object Symbol]",a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt,d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,p="object"==typeof self&&self&&self.Object===Object&&self,h=d||p||Function("return this")(),f=Object.prototype.toString,m=Math.max,g=Math.min,v=function(){return h.Date.now()};function y(e,t,n){var r,o,a,s,l,c,u=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(i);function f(t){var n=r,i=o;return r=o=void 0,u=t,s=e.apply(i,n)}function y(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-u>=a}function x(){var e=v();if(y(e))return C(e);l=setTimeout(x,function(e){var n=t-(e-c);return p?g(n,a-(e-u)):n}(e))}function C(e){return l=void 0,h&&r?f(e):(r=o=void 0,s)}function E(){var e=v(),n=y(e);if(r=arguments,o=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(x,t),d?f(e):s}(c);if(p)return l=setTimeout(x,t),f(c)}return void 0===l&&(l=setTimeout(x,t)),s}return t=w(t)||0,b(n)&&(d=!!n.leading,a=(p="maxWait"in n)?m(w(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),E.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=c=o=l=void 0},E.flush=function(){return void 0===l?s:C(v())},E}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&f.call(e)==o}(e))return r;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?r:+e}e.exports=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(i);return b(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),y(e,t,{leading:r,maxWait:t,trailing:o})}},281:function(e,t){var n,i,r,o,a;function s(e){return new s.Viewer(e)}!function(e){e.version={versionStr:"4.0.0",major:parseInt("4",10),minor:parseInt("0",10),revision:parseInt("0",10)};var t,n={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"},i=Object.prototype.toString,r=Object.prototype.hasOwnProperty;e.isFunction=function(t){return"function"===e.type(t)},e.isArray=Array.isArray||function(t){return"array"===e.type(t)},e.isWindow=function(e){return e&&"object"==typeof e&&"setInterval"in e},e.type=function(e){return null==e?String(e):n[i.call(e)]||"object"},e.isPlainObject=function(t){if(!t||"object"!==s.type(t)||t.nodeType||e.isWindow(t))return!1;if(t.constructor&&!r.call(t,"constructor")&&!r.call(t.constructor.prototype,"isPrototypeOf"))return!1;var n;for(var i in t)n=i;return void 0===n||r.call(t,n)},e.isEmptyObject=function(e){for(var t in e)return!1;return!0},e.freezeObject=function(t){return Object.freeze?e.freezeObject=Object.freeze:e.freezeObject=function(e){return e},e.freezeObject(t)},e.supportsCanvas=(t=document.createElement("canvas"),!(!e.isFunction(t.getContext)||!t.getContext("2d"))),e.isCanvasTainted=function(e){var t=!1;try{e.getContext("2d").getImageData(0,0,1,1)}catch(e){t=!0}return t},e.supportsAddEventListener=!(!document.documentElement.addEventListener||!document.addEventListener),e.supportsRemoveEventListener=!(!document.documentElement.removeEventListener||!document.removeEventListener),e.supportsEventListenerOptions=function(){var t=0;if(e.supportsAddEventListener)try{var n={get capture(){return t++,!1},get once(){return t++,!1},get passive(){return t++,!1}};window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(e){t=0}return t>=3}(),e.getCurrentPixelDensityRatio=function(){if(e.supportsCanvas){var t=document.createElement("canvas").getContext("2d"),n=window.devicePixelRatio||1,i=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return Math.max(n,1)/i}return 1},e.pixelDensityRatio=e.getCurrentPixelDensityRatio()}(s),function(e){e.extend=function(){var t,n,i,r,o,a,l=arguments[0]||{},c=arguments.length,u=!1,d=1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},d=2),"object"==typeof l||s.isFunction(l)||(l={}),c===d&&(l=this,--d);d<c;d++)if(null!==(t=arguments[d])||void 0!==t)for(n in t){var p=Object.getOwnPropertyDescriptor(t,n);void 0!==p?p.get||p.set?Object.defineProperty(l,n,p):l!==(r=p.value)&&(u&&r&&(s.isPlainObject(r)||(o=s.isArray(r)))?(i=l[n],o?(o=!1,a=i&&s.isArray(i)?i:[]):a=i&&s.isPlainObject(i)?i:{},l[n]=s.extend(u,a,r)):void 0!==r&&(l[n]=r)):e.console.warn('Could not copy inherited property "'+n+'".')}return l};e.extend(e,{DEFAULT_SETTINGS:{xmlPath:null,tileSources:null,tileHost:null,initialPage:0,crossOriginPolicy:!1,ajaxWithCredentials:!1,loadTilesWithAjax:!1,ajaxHeaders:{},splitHashDataForPost:!1,panHorizontal:!0,panVertical:!0,constrainDuringPan:!1,wrapHorizontal:!1,wrapVertical:!1,visibilityRatio:.5,minPixelRatio:.5,defaultZoomLevel:0,minZoomLevel:null,maxZoomLevel:null,homeFillsViewer:!1,clickTimeThreshold:300,clickDistThreshold:5,dblClickTimeThreshold:300,dblClickDistThreshold:20,springStiffness:6.5,animationTime:1.2,gestureSettingsMouse:{dragToPan:!0,scrollToZoom:!0,clickToZoom:!0,dblClickToZoom:!1,dblClickDragToZoom:!1,pinchToZoom:!1,zoomToRefPoint:!0,flickEnabled:!1,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsTouch:{dragToPan:!0,scrollToZoom:!1,clickToZoom:!1,dblClickToZoom:!0,dblClickDragToZoom:!0,pinchToZoom:!0,zoomToRefPoint:!0,flickEnabled:!0,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsPen:{dragToPan:!0,scrollToZoom:!1,clickToZoom:!0,dblClickToZoom:!1,dblClickDragToZoom:!1,pinchToZoom:!1,zoomToRefPoint:!0,flickEnabled:!1,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsUnknown:{dragToPan:!0,scrollToZoom:!1,clickToZoom:!1,dblClickToZoom:!0,dblClickDragToZoom:!1,pinchToZoom:!0,zoomToRefPoint:!0,flickEnabled:!0,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},zoomPerClick:2,zoomPerScroll:1.2,zoomPerDblClickDrag:1.2,zoomPerSecond:1,blendTime:0,alwaysBlend:!1,autoHideControls:!0,immediateRender:!1,minZoomImageRatio:.9,maxZoomPixelRatio:1.1,smoothTileEdgesMinZoom:1.1,iOSDevice:function(){if("object"!=typeof navigator)return!1;var e=navigator.userAgent;return"string"==typeof e&&(-1!==e.indexOf("iPhone")||-1!==e.indexOf("iPad")||-1!==e.indexOf("iPod"))}(),pixelsPerWheelLine:40,pixelsPerArrowPress:40,autoResize:!0,preserveImageSizeOnResize:!1,minScrollDeltaTime:50,rotationIncrement:90,showSequenceControl:!0,sequenceControlAnchor:null,preserveViewport:!1,preserveOverlays:!1,navPrevNextWrap:!1,showNavigationControl:!0,navigationControlAnchor:null,showZoomControl:!0,showHomeControl:!0,showFullPageControl:!0,showRotationControl:!1,showFlipControl:!1,controlsFadeDelay:2e3,controlsFadeLength:1500,mouseNavEnabled:!0,showNavigator:!1,navigatorElement:null,navigatorId:null,navigatorPosition:null,navigatorSizeRatio:.2,navigatorMaintainSizeRatio:!1,navigatorTop:null,navigatorLeft:null,navigatorHeight:null,navigatorWidth:null,navigatorAutoResize:!0,navigatorAutoFade:!0,navigatorRotate:!0,navigatorBackground:"#000",navigatorOpacity:.8,navigatorBorderColor:"#555",navigatorDisplayRegionColor:"#900",degrees:0,flipped:!1,opacity:1,preload:!1,compositeOperation:null,imageSmoothingEnabled:!0,placeholderFillStyle:null,subPixelRoundingForTransparency:null,showReferenceStrip:!1,referenceStripScroll:"horizontal",referenceStripElement:null,referenceStripHeight:null,referenceStripWidth:null,referenceStripPosition:"BOTTOM_LEFT",referenceStripSizeRatio:.2,collectionRows:3,collectionColumns:0,collectionLayout:"horizontal",collectionMode:!1,collectionTileSize:800,collectionTileMargin:80,imageLoaderLimit:0,maxImageCacheCount:200,timeout:3e4,useCanvas:!0,prefixUrl:"/images/",navImages:{zoomIn:{REST:"zoomin_rest.png",GROUP:"zoomin_grouphover.png",HOVER:"zoomin_hover.png",DOWN:"zoomin_pressed.png"},zoomOut:{REST:"zoomout_rest.png",GROUP:"zoomout_grouphover.png",HOVER:"zoomout_hover.png",DOWN:"zoomout_pressed.png"},home:{REST:"home_rest.png",GROUP:"home_grouphover.png",HOVER:"home_hover.png",DOWN:"home_pressed.png"},fullpage:{REST:"fullpage_rest.png",GROUP:"fullpage_grouphover.png",HOVER:"fullpage_hover.png",DOWN:"fullpage_pressed.png"},rotateleft:{REST:"rotateleft_rest.png",GROUP:"rotateleft_grouphover.png",HOVER:"rotateleft_hover.png",DOWN:"rotateleft_pressed.png"},rotateright:{REST:"rotateright_rest.png",GROUP:"rotateright_grouphover.png",HOVER:"rotateright_hover.png",DOWN:"rotateright_pressed.png"},flip:{REST:"flip_rest.png",GROUP:"flip_grouphover.png",HOVER:"flip_hover.png",DOWN:"flip_pressed.png"},previous:{REST:"previous_rest.png",GROUP:"previous_grouphover.png",HOVER:"previous_hover.png",DOWN:"previous_pressed.png"},next:{REST:"next_rest.png",GROUP:"next_grouphover.png",HOVER:"next_hover.png",DOWN:"next_pressed.png"}},debugMode:!1,debugGridColor:["#437AB2","#1B9E77","#D95F02","#7570B3","#E7298A","#66A61E","#E6AB02","#A6761D","#666666"],silenceMultiImageWarnings:!1},SIGNAL:"----seadragon----",delegate:function(e,t){return function(){var n=arguments;return void 0===n&&(n=[]),t.apply(e,n)}},BROWSERS:{UNKNOWN:0,IE:1,FIREFOX:2,SAFARI:3,CHROME:4,OPERA:5,EDGE:6,CHROMEEDGE:7},SUBPIXEL_ROUNDING_OCCURRENCES:{NEVER:0,ONLY_AT_REST:1,ALWAYS:2},_viewers:new Map,getViewer:function(t){return e._viewers.get(this.getElement(t))},getElement:function(e){return"string"==typeof e&&(e=document.getElementById(e)),e},getElementPosition:function(t){var n,i,o=new e.Point;for(i=r(t=e.getElement(t),n="fixed"===e.getElementStyle(t).position);i;)o.x+=t.offsetLeft,o.y+=t.offsetTop,n&&(o=o.plus(e.getPageScroll())),i=r(t=i,n="fixed"===e.getElementStyle(t).position);return o},getElementOffset:function(t){var n,i,r=(t=e.getElement(t))&&t.ownerDocument,o={top:0,left:0};return r?(n=r.documentElement,void 0!==t.getBoundingClientRect&&(o=t.getBoundingClientRect()),i=r===r.window?r:9===r.nodeType&&(r.defaultView||r.parentWindow),new e.Point(o.left+(i.pageXOffset||n.scrollLeft)-(n.clientLeft||0),o.top+(i.pageYOffset||n.scrollTop)-(n.clientTop||0))):new e.Point},getElementSize:function(t){return t=e.getElement(t),new e.Point(t.clientWidth,t.clientHeight)},getElementStyle:document.documentElement.currentStyle?function(t){return(t=e.getElement(t)).currentStyle}:function(t){return t=e.getElement(t),window.getComputedStyle(t,"")},getCssPropertyWithVendorPrefix:function(t){var n={};return e.getCssPropertyWithVendorPrefix=function(t){if(void 0!==n[t])return n[t];var i=document.createElement("div").style,r=null;if(void 0!==i[t])r=t;else for(var o=["Webkit","Moz","MS","O","webkit","moz","ms","o"],a=e.capitalizeFirstLetter(t),s=0;s<o.length;s++){var l=o[s]+a;if(void 0!==i[l]){r=l;break}}return n[t]=r,r},e.getCssPropertyWithVendorPrefix(t)},capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},positiveModulo:function(e,t){var n=e%t;return n<0&&(n+=t),n},pointInElement:function(t,n){t=e.getElement(t);var i=e.getElementOffset(t),r=e.getElementSize(t);return n.x>=i.x&&n.x<i.x+r.x&&n.y<i.y+r.y&&n.y>=i.y},getMousePosition:function(t){if("number"==typeof t.pageX)e.getMousePosition=function(t){var n=new e.Point;return n.x=t.pageX,n.y=t.pageY,n};else{if("number"!=typeof t.clientX)throw new Error("Unknown event mouse position, no known technique.");e.getMousePosition=function(t){var n=new e.Point;return n.x=t.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,n.y=t.clientY+document.body.scrollTop+document.documentElement.scrollTop,n}}return e.getMousePosition(t)},getPageScroll:function(){var t=document.documentElement||{},n=document.body||{};if("number"==typeof window.pageXOffset)e.getPageScroll=function(){return new e.Point(window.pageXOffset,window.pageYOffset)};else if(n.scrollLeft||n.scrollTop)e.getPageScroll=function(){return new e.Point(document.body.scrollLeft,document.body.scrollTop)};else{if(!t.scrollLeft&&!t.scrollTop)return new e.Point(0,0);e.getPageScroll=function(){return new e.Point(document.documentElement.scrollLeft,document.documentElement.scrollTop)}}return e.getPageScroll()},setPageScroll:function(t){if(void 0!==window.scrollTo)e.setPageScroll=function(e){window.scrollTo(e.x,e.y)};else{var n=e.getPageScroll();if(n.x===t.x&&n.y===t.y)return;document.body.scrollLeft=t.x,document.body.scrollTop=t.y;var i=e.getPageScroll();if(i.x!==n.x&&i.y!==n.y)return void(e.setPageScroll=function(e){document.body.scrollLeft=e.x,document.body.scrollTop=e.y});if(document.documentElement.scrollLeft=t.x,document.documentElement.scrollTop=t.y,(i=e.getPageScroll()).x!==n.x&&i.y!==n.y)return void(e.setPageScroll=function(e){document.documentElement.scrollLeft=e.x,document.documentElement.scrollTop=e.y});e.setPageScroll=function(e){}}e.setPageScroll(t)},getWindowSize:function(){var t=document.documentElement||{},n=document.body||{};if("number"==typeof window.innerWidth)e.getWindowSize=function(){return new e.Point(window.innerWidth,window.innerHeight)};else if(t.clientWidth||t.clientHeight)e.getWindowSize=function(){return new e.Point(document.documentElement.clientWidth,document.documentElement.clientHeight)};else{if(!n.clientWidth&&!n.clientHeight)throw new Error("Unknown window size, no known technique.");e.getWindowSize=function(){return new e.Point(document.body.clientWidth,document.body.clientHeight)}}return e.getWindowSize()},makeCenteredNode:function(t){t=e.getElement(t);var n=[e.makeNeutralElement("div"),e.makeNeutralElement("div"),e.makeNeutralElement("div")];return e.extend(n[0].style,{display:"table",height:"100%",width:"100%"}),e.extend(n[1].style,{display:"table-row"}),e.extend(n[2].style,{display:"table-cell",verticalAlign:"middle",textAlign:"center"}),n[0].appendChild(n[1]),n[1].appendChild(n[2]),n[2].appendChild(t),n[0]},makeNeutralElement:function(e){var t=document.createElement(e),n=t.style;return n.background="transparent none",n.border="none",n.margin="0px",n.padding="0px",n.position="static",t},now:function(){return Date.now?e.now=Date.now:e.now=function(){return(new Date).getTime()},e.now()},makeTransparentImage:function(t){var n=e.makeNeutralElement("img");return n.src=t,n},setElementOpacity:function(t,n,i){var r;t=e.getElement(t),i&&!e.Browser.alpha&&(n=Math.round(n)),e.Browser.opacity?t.style.opacity=n<1?n:"":n<1?(r="alpha(opacity="+Math.round(100*n)+")",t.style.filter=r):t.style.filter=""},setElementTouchActionNone:function(t){void 0!==(t=e.getElement(t)).style.touchAction?t.style.touchAction="none":void 0!==t.style.msTouchAction&&(t.style.msTouchAction="none")},setElementPointerEvents:function(t,n){void 0!==(t=e.getElement(t)).style&&void 0!==t.style.pointerEvents&&(t.style.pointerEvents=n)},setElementPointerEventsNone:function(t){e.setElementPointerEvents(t,"none")},addClass:function(t,n){(t=e.getElement(t)).className?-1===(" "+t.className+" ").indexOf(" "+n+" ")&&(t.className+=" "+n):t.className=n},indexOf:function(e,t,n){return Array.prototype.indexOf?this.indexOf=function(e,t,n){return e.indexOf(t,n)}:this.indexOf=function(e,t,n){var i,r,o=n||0;if(!e)throw new TypeError;if(0===(r=e.length)||o>=r)return-1;for(o<0&&(o=r-Math.abs(o)),i=o;i<r;i++)if(e[i]===t)return i;return-1},this.indexOf(e,t,n)},removeClass:function(t,n){var i,r,o=[];for(i=(t=e.getElement(t)).className.split(/\s+/),r=0;r<i.length;r++)i[r]&&i[r]!==n&&o.push(i[r]);t.className=o.join(" ")},normalizeEventListenerOptions:function(t){return void 0!==t?"boolean"==typeof t?e.supportsEventListenerOptions?{capture:t}:t:e.supportsEventListenerOptions?t:void 0!==t.capture&&t.capture:!!e.supportsEventListenerOptions&&{capture:!1}},addEvent:function(){if(e.supportsAddEventListener)return function(t,n,i,r){r=e.normalizeEventListenerOptions(r),(t=e.getElement(t)).addEventListener(n,i,r)};if(document.documentElement.attachEvent&&document.attachEvent)return function(t,n,i){(t=e.getElement(t)).attachEvent("on"+n,i)};throw new Error("No known event model.")}(),removeEvent:function(){if(e.supportsRemoveEventListener)return function(t,n,i,r){r=e.normalizeEventListenerOptions(r),(t=e.getElement(t)).removeEventListener(n,i,r)};if(document.documentElement.detachEvent&&document.detachEvent)return function(t,n,i){(t=e.getElement(t)).detachEvent("on"+n,i)};throw new Error("No known event model.")}(),cancelEvent:function(e){e.preventDefault()},eventIsCanceled:function(e){return e.defaultPrevented},stopEvent:function(e){e.stopPropagation()},createCallback:function(e,t){var n,i=[];for(n=2;n<arguments.length;n++)i.push(arguments[n]);return function(){var n,r=i.concat([]);for(n=0;n<arguments.length;n++)r.push(arguments[n]);return t.apply(e,r)}},getUrlParameter:function(e){var t=i[e];return t||null},getUrlProtocol:function(e){var t=e.match(/^([a-z]+:)\/\//i);return null===t?window.location.protocol:t[1].toLowerCase()},createAjaxRequest:function(t){var n;try{n=!!new ActiveXObject("Microsoft.XMLHTTP")}catch(e){n=!1}if(n)window.XMLHttpRequest?e.createAjaxRequest=function(e){return e?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest}:e.createAjaxRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP")};else{if(!window.XMLHttpRequest)throw new Error("Browser doesn't support XMLHttpRequest.");e.createAjaxRequest=function(){return new XMLHttpRequest}}return e.createAjaxRequest(t)},makeAjaxRequest:function(t,n,i){var r,o,a,s;e.isPlainObject(t)&&(n=t.success,i=t.error,r=t.withCredentials,o=t.headers,a=t.responseType||null,s=t.postData||null,t=t.url);var l=e.getUrlProtocol(t),c=e.createAjaxRequest("file:"===l);if(!e.isFunction(n))throw new Error("makeAjaxRequest requires a success callback");c.onreadystatechange=function(){4===c.readyState&&(c.onreadystatechange=function(){},c.status>=200&&c.status<300||0===c.status&&"http:"!==l&&"https:"!==l?n(c):e.isFunction(i)?i(c):e.console.error("AJAX request returned %d: %s",c.status,t))};var u=s?"POST":"GET";try{if(c.open(u,t,!0),a&&(c.responseType=a),o)for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&o[d]&&c.setRequestHeader(d,o[d]);r&&(c.withCredentials=!0),c.send(s)}catch(t){e.console.error("%s while making AJAX request: %s",t.name,t.message),c.onreadystatechange=function(){},e.isFunction(i)&&i(c,t)}return c},jsonp:function(t){var n,i=t.url,r=document.head||document.getElementsByTagName("head")[0]||document.documentElement,o=t.callbackName||"openseadragon"+e.now(),a=window[o],s="$1"+o+"$2",l=t.param||"callback",c=t.callback;i=i.replace(/(=)\?(&|$)|\?\?/i,s),i+=(/\?/.test(i)?"&":"?")+l+"="+o,window[o]=function(t){if(a)window[o]=a;else try{delete window[o]}catch(e){}c&&e.isFunction(c)&&c(t)},n=document.createElement("script"),void 0===t.async&&!1===t.async||(n.async="async"),t.scriptCharset&&(n.charset=t.scriptCharset),n.src=i,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=void 0)},r.insertBefore(n,r.firstChild)},createFromDZI:function(){throw"OpenSeadragon.createFromDZI is deprecated, use Viewer.open."},parseXml:function(t){if(window.DOMParser)e.parseXml=function(e){return(new DOMParser).parseFromString(e,"text/xml")};else{if(!window.ActiveXObject)throw new Error("Browser doesn't support XML DOM.");e.parseXml=function(e){var t=null;return(t=new ActiveXObject("Microsoft.XMLDOM")).async=!1,t.loadXML(e),t}}return e.parseXml(t)},parseJSON:function(t){return e.parseJSON=window.JSON.parse,e.parseJSON(t)},imageFormatSupported:function(e){return!!n[(e=e||"").toLowerCase()]},setImageFormatsSupported:function(t){e.extend(n,t)}});var t=function(e){};e.console=window.console||{log:t,debug:t,info:t,warn:t,error:t,assert:t},e.Browser={vendor:e.BROWSERS.UNKNOWN,version:0,alpha:!0};var n={bmp:!1,jpeg:!0,jpg:!0,png:!0,tif:!1,wdp:!1},i={};function r(e,t){return t&&e!==document.body?document.body:e.offsetParent}!function(){var t=navigator.appVersion,n=navigator.userAgent;switch(navigator.appName){case"Microsoft Internet Explorer":window.attachEvent&&window.ActiveXObject&&(e.Browser.vendor=e.BROWSERS.IE,e.Browser.version=parseFloat(n.substring(n.indexOf("MSIE")+5,n.indexOf(";",n.indexOf("MSIE")))));break;case"Netscape":window.addEventListener&&(n.indexOf("Edge")>=0?(e.Browser.vendor=e.BROWSERS.EDGE,e.Browser.version=parseFloat(n.substring(n.indexOf("Edge")+5))):n.indexOf("Edg")>=0?(e.Browser.vendor=e.BROWSERS.CHROMEEDGE,e.Browser.version=parseFloat(n.substring(n.indexOf("Edg")+4))):n.indexOf("Firefox")>=0?(e.Browser.vendor=e.BROWSERS.FIREFOX,e.Browser.version=parseFloat(n.substring(n.indexOf("Firefox")+8))):n.indexOf("Safari")>=0?(e.Browser.vendor=n.indexOf("Chrome")>=0?e.BROWSERS.CHROME:e.BROWSERS.SAFARI,e.Browser.version=parseFloat(n.substring(n.substring(0,n.indexOf("Safari")).lastIndexOf("/")+1,n.indexOf("Safari")))):null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(n)&&(e.Browser.vendor=e.BROWSERS.IE,e.Browser.version=parseFloat(RegExp.$1)));break;case"Opera":e.Browser.vendor=e.BROWSERS.OPERA,e.Browser.version=parseFloat(t)}var r,o,a,s=window.location.search.substring(1).split("&");for(a=0;a<s.length;a++)if((o=(r=s[a]).indexOf("="))>0){var l=r.substring(0,o),c=r.substring(o+1);try{i[l]=decodeURIComponent(c)}catch(t){e.console.error("Ignoring malformed URL parameter: %s=%s",l,c)}}e.Browser.alpha=!(e.Browser.vendor===e.BROWSERS.CHROME&&e.Browser.version<2),e.Browser.opacity=!0,e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<11&&e.console.error("Internet Explorer versions < 11 are not supported by OpenSeadragon")}(),function(t){var n=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame,i=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.msCancelAnimationFrame;if(n&&i)e.requestAnimationFrame=function(){return n.apply(t,arguments)},e.cancelAnimationFrame=function(){return i.apply(t,arguments)};else{var r,o=[],a=[],s=0;e.requestAnimationFrame=function(t){return o.push([++s,t]),r||(r=setInterval((function(){if(o.length){var t=e.now(),n=a;for(a=o,o=n;a.length;)a.shift()[1](t)}else clearInterval(r),r=void 0}),20)),s},e.cancelAnimationFrame=function(e){var t,n;for(t=0,n=o.length;t<n;t+=1)if(o[t][0]===e)return void o.splice(t,1);for(t=0,n=a.length;t<n;t+=1)if(a[t][0]===e)return void a.splice(t,1)}}}(window)}(s),i=[],void 0===(r="function"==typeof(n=function(){return s})?n.apply(t,i):n)||(e.exports=r),o=s,a={supportsFullScreen:!1,isFullScreen:function(){return!1},getFullScreenElement:function(){return null},requestFullScreen:function(){},exitFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",fullScreenErrorEventName:""},document.exitFullscreen?(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.fullscreenElement},a.requestFullScreen=function(e){return e.requestFullscreen()},a.exitFullScreen=function(){document.exitFullscreen()},a.fullScreenEventName="fullscreenchange",a.fullScreenErrorEventName="fullscreenerror"):document.msExitFullscreen?(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.msFullscreenElement},a.requestFullScreen=function(e){return e.msRequestFullscreen()},a.exitFullScreen=function(){document.msExitFullscreen()},a.fullScreenEventName="MSFullscreenChange",a.fullScreenErrorEventName="MSFullscreenError"):document.webkitExitFullscreen?(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.webkitFullscreenElement},a.requestFullScreen=function(e){return e.webkitRequestFullscreen()},a.exitFullScreen=function(){document.webkitExitFullscreen()},a.fullScreenEventName="webkitfullscreenchange",a.fullScreenErrorEventName="webkitfullscreenerror"):document.webkitCancelFullScreen?(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.webkitCurrentFullScreenElement},a.requestFullScreen=function(e){return e.webkitRequestFullScreen()},a.exitFullScreen=function(){document.webkitCancelFullScreen()},a.fullScreenEventName="webkitfullscreenchange",a.fullScreenErrorEventName="webkitfullscreenerror"):document.mozCancelFullScreen&&(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.mozFullScreenElement},a.requestFullScreen=function(e){return e.mozRequestFullScreen()},a.exitFullScreen=function(){document.mozCancelFullScreen()},a.fullScreenEventName="mozfullscreenchange",a.fullScreenErrorEventName="mozfullscreenerror"),a.isFullScreen=function(){return null!==a.getFullScreenElement()},a.cancelFullScreen=function(){o.console.error("cancelFullScreen is deprecated. Use exitFullScreen instead."),a.exitFullScreen()},o.extend(o,a),function(e){e.EventSource=function(){this.events={}},e.EventSource.prototype={addOnceHandler:function(e,t,n,i){var r=this;i=i||1;var o=0;this.addHandler(e,(function n(a){++o===i&&r.removeHandler(e,n),t(a)}),n)},addHandler:function(t,n,i){var r=this.events[t];r||(this.events[t]=r=[]),n&&e.isFunction(n)&&(r[r.length]={handler:n,userData:i||null})},removeHandler:function(t,n){var i,r=this.events[t],o=[];if(r&&e.isArray(r)){for(i=0;i<r.length;i++)r[i].handler!==n&&o.push(r[i]);this.events[t]=o}},numberOfHandlers:function(e){var t=this.events[e];return t?t.length:0},removeAllHandlers:function(e){if(e)this.events[e]=[];else for(var t in this.events)this.events[t]=[]},getHandler:function(e){var t=this.events[e];return t&&t.length?(t=1===t.length?[t[0]]:Array.apply(null,t),function(e,n){var i,r=t.length;for(i=0;i<r;i++)t[i]&&(n.eventSource=e,n.userData=t[i].userData,t[i].handler(n))}):null},raiseEvent:function(e,t){var n=this.getHandler(e);n&&(t||(t={}),n(this,t))}}}(s),function(e){var t=[],n={};e.MouseTracker=function(i){t.push(this);var r=arguments;e.isPlainObject(i)||(i={element:r[0],clickTimeThreshold:r[1],clickDistThreshold:r[2]}),this.hash=Math.random(),this.element=e.getElement(i.element),this.clickTimeThreshold=i.clickTimeThreshold||e.DEFAULT_SETTINGS.clickTimeThreshold,this.clickDistThreshold=i.clickDistThreshold||e.DEFAULT_SETTINGS.clickDistThreshold,this.dblClickTimeThreshold=i.dblClickTimeThreshold||e.DEFAULT_SETTINGS.dblClickTimeThreshold,this.dblClickDistThreshold=i.dblClickDistThreshold||e.DEFAULT_SETTINGS.dblClickDistThreshold,this.userData=i.userData||null,this.stopDelay=i.stopDelay||50,this.preProcessEventHandler=i.preProcessEventHandler||null,this.contextMenuHandler=i.contextMenuHandler||null,this.enterHandler=i.enterHandler||null,this.leaveHandler=i.leaveHandler||null,this.exitHandler=i.exitHandler||null,this.overHandler=i.overHandler||null,this.outHandler=i.outHandler||null,this.pressHandler=i.pressHandler||null,this.nonPrimaryPressHandler=i.nonPrimaryPressHandler||null,this.releaseHandler=i.releaseHandler||null,this.nonPrimaryReleaseHandler=i.nonPrimaryReleaseHandler||null,this.moveHandler=i.moveHandler||null,this.scrollHandler=i.scrollHandler||null,this.clickHandler=i.clickHandler||null,this.dblClickHandler=i.dblClickHandler||null,this.dragHandler=i.dragHandler||null,this.dragEndHandler=i.dragEndHandler||null,this.pinchHandler=i.pinchHandler||null,this.stopHandler=i.stopHandler||null,this.keyDownHandler=i.keyDownHandler||null,this.keyUpHandler=i.keyUpHandler||null,this.keyHandler=i.keyHandler||null,this.focusHandler=i.focusHandler||null,this.blurHandler=i.blurHandler||null;var o=this;n[this.hash]={click:function(t){!function(t,n){var i={originalEvent:n,eventType:"click",pointerType:"mouse",isEmulated:!1};N(t,i),i.preventDefault&&!i.defaultPrevented&&e.cancelEvent(n);i.stopPropagation&&e.stopEvent(n)}(o,t)},dblclick:function(t){!function(t,n){var i={originalEvent:n,eventType:"dblclick",pointerType:"mouse",isEmulated:!1};N(t,i),i.preventDefault&&!i.defaultPrevented&&e.cancelEvent(n);i.stopPropagation&&e.stopEvent(n)}(o,t)},keydown:function(t){!function(t,n){var i=null,r={originalEvent:n,eventType:"keydown",pointerType:"",isEmulated:!1};N(t,r),!t.keyDownHandler||r.preventGesture||r.defaultPrevented||(i={eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefault:r.preventDefault||r.defaultPrevented,userData:t.userData},t.keyDownHandler(i));(i&&i.preventDefault||r.preventDefault&&!r.defaultPrevented)&&e.cancelEvent(n);r.stopPropagation&&e.stopEvent(n)}(o,t)},keyup:function(t){!function(t,n){var i=null,r={originalEvent:n,eventType:"keyup",pointerType:"",isEmulated:!1};N(t,r),!t.keyUpHandler||r.preventGesture||r.defaultPrevented||(i={eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefault:r.preventDefault||r.defaultPrevented,userData:t.userData},t.keyUpHandler(i));(i&&i.preventDefault||r.preventDefault&&!r.defaultPrevented)&&e.cancelEvent(n);r.stopPropagation&&e.stopEvent(n)}(o,t)},keypress:function(t){!function(t,n){var i=null,r={originalEvent:n,eventType:"keypress",pointerType:"",isEmulated:!1};N(t,r),!t.keyHandler||r.preventGesture||r.defaultPrevented||(i={eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefault:r.preventDefault||r.defaultPrevented,userData:t.userData},t.keyHandler(i));(i&&i.preventDefault||r.preventDefault&&!r.defaultPrevented)&&e.cancelEvent(n);r.stopPropagation&&e.stopEvent(n)}(o,t)},focus:function(e){!function(e,t){var n={originalEvent:t,eventType:"focus",pointerType:"",isEmulated:!1};N(e,n),e.focusHandler&&!n.preventGesture&&e.focusHandler({eventSource:e,originalEvent:t,userData:e.userData})}(o,e)},blur:function(e){!function(e,t){var n={originalEvent:t,eventType:"blur",pointerType:"",isEmulated:!1};N(e,n),e.blurHandler&&!n.preventGesture&&e.blurHandler({eventSource:e,originalEvent:t,userData:e.userData})}(o,e)},contextmenu:function(t){!function(t,n){var i=null,r={originalEvent:n,eventType:"contextmenu",pointerType:"mouse",isEmulated:!1};N(t,r),!t.contextMenuHandler||r.preventGesture||r.defaultPrevented||(i={eventSource:t,position:w(y(n),t.element),originalEvent:r.originalEvent,preventDefault:r.preventDefault||r.defaultPrevented,userData:t.userData},t.contextMenuHandler(i));(i&&i.preventDefault||r.preventDefault&&!r.defaultPrevented)&&e.cancelEvent(n);r.stopPropagation&&e.stopEvent(n)}(o,t)},wheel:function(e){!function(e,t){E(e,t,t)}(o,e)},mousewheel:function(e){C(o,e)},DOMMouseScroll:function(e){C(o,e)},MozMousePixelScroll:function(e){C(o,e)},losecapture:function(t){!function(t,n){var i={id:e.MouseTracker.mousePointerId,type:"mouse"},r={originalEvent:n,eventType:"lostpointercapture",pointerType:"mouse",isEmulated:!1};N(t,r),n.target===t.element&&L(t,i,!1);r.stopPropagation&&e.stopEvent(n)}(o,t)},mouseenter:function(e){S(o,e)},mouseleave:function(e){T(o,e)},mouseover:function(e){A(o,e)},mouseout:function(e){P(o,e)},mousedown:function(e){O(o,e)},mouseup:function(e){I(o,e)},mousemove:function(e){k(o,e)},touchstart:function(t){!function(t,n){var i,r,o,a=n.changedTouches.length,s=t.getActivePointersListByType("touch");i=e.now(),s.getLength()>n.touches.length-a&&e.console.warn("Tracked touch contact count doesn't match event.touches.length");var l={originalEvent:n,eventType:"pointerdown",pointerType:"touch",isEmulated:!1};for(N(t,l),r=0;r<a;r++)B(t,l,o={id:n.changedTouches[r].identifier,type:"touch",isPrimary:0===s.getLength(),currentPos:y(n.changedTouches[r]),currentTime:i}),z(t,l,o,0),L(t,o,!0);l.preventDefault&&!l.defaultPrevented&&e.cancelEvent(n);l.stopPropagation&&e.stopEvent(n)}(o,t)},touchend:function(t){!function(t,n){var i,r,o,a=n.changedTouches.length;i=e.now();var s={originalEvent:n,eventType:"pointerup",pointerType:"touch",isEmulated:!1};for(N(t,s),r=0;r<a;r++)_(t,s,o={id:n.changedTouches[r].identifier,type:"touch",currentPos:y(n.changedTouches[r]),currentTime:i},0),L(t,o,!1),F(t,s,o);s.preventDefault&&!s.defaultPrevented&&e.cancelEvent(n);s.stopPropagation&&e.stopEvent(n)}(o,t)},touchmove:function(t){!function(t,n){var i,r,o=n.changedTouches.length;i=e.now();var a={originalEvent:n,eventType:"pointermove",pointerType:"touch",isEmulated:!1};for(N(t,a),r=0;r<o;r++)H(t,a,{id:n.changedTouches[r].identifier,type:"touch",currentPos:y(n.changedTouches[r]),currentTime:i});a.preventDefault&&!a.defaultPrevented&&e.cancelEvent(n);a.stopPropagation&&e.stopEvent(n)}(o,t)},touchcancel:function(t){!function(t,n){var i,r=n.changedTouches.length,o={originalEvent:n,eventType:"pointercancel",pointerType:"touch",isEmulated:!1};for(N(t,o),i=0;i<r;i++)U(t,o,{id:n.changedTouches[i].identifier,type:"touch"});o.stopPropagation&&e.stopEvent(n)}(o,t)},gesturestart:function(t){!function(t,n){e.eventIsCanceled(n)||n.preventDefault()}(0,t)},gesturechange:function(t){!function(t,n){e.eventIsCanceled(n)||n.preventDefault()}(0,t)},gotpointercapture:function(t){!function(t,n){var i={originalEvent:n,eventType:"gotpointercapture",pointerType:g(n),isEmulated:!1};N(t,i),n.target===t.element&&L(t,{id:n.pointerId,type:g(n)},!0);i.stopPropagation&&e.stopEvent(n)}(o,t)},lostpointercapture:function(t){!function(t,n){var i={originalEvent:n,eventType:"lostpointercapture",pointerType:g(n),isEmulated:!1};N(t,i),n.target===t.element&&L(t,{id:n.pointerId,type:g(n)},!1);i.stopPropagation&&e.stopEvent(n)}(o,t)},pointerenter:function(e){S(o,e)},pointerleave:function(e){T(o,e)},pointerover:function(e){A(o,e)},pointerout:function(e){P(o,e)},pointerdown:function(e){O(o,e)},pointerup:function(e){I(o,e)},pointermove:function(e){k(o,e)},pointercancel:function(t){!function(t,n){var i={id:n.pointerId,type:g(n)},r={originalEvent:n,eventType:"pointercancel",pointerType:i.type,isEmulated:!1};N(t,r),U(t,r,i),r.stopPropagation&&e.stopEvent(n)}(o,t)},pointerupcaptured:function(t){!function(t,n){var i=t.getActivePointersListByType(g(n));i.getById(n.pointerId)&&R(t,n);e.stopEvent(n)}(o,t)},pointermovecaptured:function(t){!function(t,n){var i=t.getActivePointersListByType(g(n));i.getById(n.pointerId)&&D(t,n);e.stopEvent(n)}(o,t)},tracking:!1,activePointersLists:[],lastClickPos:null,dblClickTimeOut:null,pinchGPoints:[],lastPinchDist:0,currentPinchDist:0,lastPinchCenter:null,currentPinchCenter:null,sentDragEvent:!1},this.hasGestureHandlers=!!(this.pressHandler||this.nonPrimaryPressHandler||this.releaseHandler||this.nonPrimaryReleaseHandler||this.clickHandler||this.dblClickHandler||this.dragHandler||this.dragEndHandler||this.pinchHandler),this.hasScrollHandler=!!this.scrollHandler,e.MouseTracker.havePointerEvents&&e.setElementPointerEvents(this.element,"auto"),this.exitHandler&&e.console.error("MouseTracker.exitHandler is deprecated. Use MouseTracker.leaveHandler instead."),i.startDisabled||this.setTracking(!0)},e.MouseTracker.prototype={destroy:function(){var e;for(p(this),this.element=null,e=0;e<t.length;e++)if(t[e]===this){t.splice(e,1);break}n[this.hash]=null,delete n[this.hash]},isTracking:function(){return n[this.hash].tracking},setTracking:function(t){return t?function(t){var i,r,o=n[t.hash];if(!o.tracking){for(r=0;r<e.MouseTracker.subscribeEvents.length;r++)i=e.MouseTracker.subscribeEvents[r],e.addEvent(t.element,i,o[i],i===e.MouseTracker.wheelEventName&&{passive:!1,capture:!1});d(t),o.tracking=!0}}(this):p(this),this},getActivePointersListByType:function(t){var i,r,o=n[this.hash],a=o.activePointersLists.length;for(i=0;i<a;i++)if(o.activePointersLists[i].type===t)return o.activePointersLists[i];return r=new e.MouseTracker.GesturePointList(t),o.activePointersLists.push(r),r},getActivePointerCount:function(){var e,t=n[this.hash],i=t.activePointersLists.length,r=0;for(e=0;e<i;e++)r+=t.activePointersLists[e].getLength();return r},preProcessEventHandler:function(){},contextMenuHandler:function(){},enterHandler:function(){},leaveHandler:function(){},exitHandler:function(){},overHandler:function(){},outHandler:function(){},pressHandler:function(){},nonPrimaryPressHandler:function(){},releaseHandler:function(){},nonPrimaryReleaseHandler:function(){},moveHandler:function(){},scrollHandler:function(){},clickHandler:function(){},dblClickHandler:function(){},dragHandler:function(){},dragEndHandler:function(){},pinchHandler:function(){},stopHandler:function(){},keyDownHandler:function(){},keyUpHandler:function(){},keyHandler:function(){},focusHandler:function(){},blurHandler:function(){}};var i,r,o,a,s,l,c=function(){try{return window.self!==window.top}catch(e){return!0}}();function u(e){try{return e.addEventListener&&e.removeEventListener}catch(e){return!1}}function d(e){var t,i,r,o,a,s=n[e.hash],l=s.activePointersLists.length;for(t=0;t<l;t++)if((r=s.activePointersLists[t]).getLength()>0){for(a=[],o=r.asArray(),i=0;i<o.length;i++)a.push(o[i]);for(i=0;i<a.length;i++)M(e,r,a[i])}for(t=0;t<l;t++)s.activePointersLists.pop();s.sentDragEvent=!1}function p(t){var i,r,o=n[t.hash];if(o.tracking){for(r=0;r<e.MouseTracker.subscribeEvents.length;r++)i=e.MouseTracker.subscribeEvents[r],e.removeEvent(t.element,i,o[i],!1);d(t),o.tracking=!1}}function h(e,t){var i=n[e.hash];if("pointerevent"===t)return{upName:"pointerup",upHandler:i.pointerupcaptured,moveName:"pointermove",moveHandler:i.pointermovecaptured};if("mouse"===t)return{upName:"pointerup",upHandler:i.pointerupcaptured,moveName:"pointermove",moveHandler:i.pointermovecaptured};if("touch"===t)return{upName:"touchend",upHandler:i.touchendcaptured,moveName:"touchmove",moveHandler:i.touchmovecaptured};throw new Error("MouseTracker.getCaptureEventParams: Unknown pointer type.")}function f(t,n){var i,r;if(e.MouseTracker.havePointerCapture)if(e.MouseTracker.havePointerEvents){if(!(r=t.getActivePointersListByType(n.type).getById(n.id))||!r.captured)return;try{t.element.releasePointerCapture(n.id)}catch(e){}}else t.element.releaseCapture();else i=h(t,e.MouseTracker.havePointerEvents?"pointerevent":n.type),c&&u(window.top)&&e.removeEvent(window.top,i.upName,i.upHandler,!0),e.removeEvent(e.MouseTracker.captureElement,i.moveName,i.moveHandler,!0),e.removeEvent(e.MouseTracker.captureElement,i.upName,i.upHandler,!0);L(t,n,!1)}function m(t){return e.MouseTracker.havePointerEvents?t.pointerId:e.MouseTracker.mousePointerId}function g(t){return e.MouseTracker.havePointerEvents?t.pointerType||(e.Browser.vendor===e.BROWSERS.IE?"mouse":""):"mouse"}function v(t){return!e.MouseTracker.havePointerEvents||t.isPrimary}function y(t){return e.getMousePosition(t)}function b(e,t){return w(y(e),t)}function w(t,n){var i=e.getElementOffset(n);return t.minus(i)}function x(t,n){return new e.Point((t.x+n.x)/2,(t.y+n.y)/2)}function C(t,n){var i={target:n.target||n.srcElement,type:"wheel",shiftKey:n.shiftKey||!1,clientX:n.clientX,clientY:n.clientY,pageX:n.pageX?n.pageX:n.clientX,pageY:n.pageY?n.pageY:n.clientY,deltaMode:"MozMousePixelScroll"===n.type?0:1,deltaX:0,deltaZ:0};"mousewheel"===e.MouseTracker.wheelEventName?i.deltaY=-n.wheelDelta/e.DEFAULT_SETTINGS.pixelsPerWheelLine:i.deltaY=n.detail,E(t,i,n)}function E(t,n,i){var r,o,a=null;r=n.deltaY<0?1:-1,N(t,o={originalEvent:n,eventType:"wheel",pointerType:"mouse",isEmulated:n!==i}),!t.scrollHandler||o.preventGesture||o.defaultPrevented||(a={eventSource:t,pointerType:"mouse",position:b(n,t.element),scroll:r,shift:n.shiftKey,isTouchEvent:!1,originalEvent:i,preventDefault:o.preventDefault||o.defaultPrevented,userData:t.userData},t.scrollHandler(a)),o.stopPropagation&&e.stopEvent(i),(a&&a.preventDefault||o.preventDefault&&!o.defaultPrevented)&&e.cancelEvent(i)}function S(t,n){var i={id:m(n),type:g(n),isPrimary:v(n),currentPos:y(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointerenter",pointerType:i.type,isEmulated:!1};N(t,r),B(t,r,i)}function T(t,n){var i={id:m(n),type:g(n),isPrimary:v(n),currentPos:y(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointerleave",pointerType:i.type,isEmulated:!1};N(t,r),F(t,r,i)}function A(t,n){var i={id:m(n),type:g(n),isPrimary:v(n),currentPos:y(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointerover",pointerType:i.type,isEmulated:!1};N(t,r),function(e,t,n){var i,r;i=e.getActivePointersListByType(n.type),r=i.getById(n.id),r?n=r:(n.captured=!1,n.insideElementPressed=!1);e.overHandler&&e.overHandler({eventSource:e,pointerType:n.type,position:w(n.currentPos,e.element),buttons:i.buttons,pointers:e.getActivePointerCount(),insideElementPressed:n.insideElementPressed,buttonDownAny:0!==i.buttons,isTouchEvent:"touch"===n.type,originalEvent:t.originalEvent,userData:e.userData})}(t,r,i),r.preventDefault&&!r.defaultPrevented&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n)}function P(t,n){var i={id:m(n),type:g(n),isPrimary:v(n),currentPos:y(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointerout",pointerType:i.type,isEmulated:!1};N(t,r),function(e,t,n){var i,r;i=e.getActivePointersListByType(n.type),r=i.getById(n.id),r?n=r:(n.captured=!1,n.insideElementPressed=!1);e.outHandler&&e.outHandler({eventSource:e,pointerType:n.type,position:n.currentPos&&w(n.currentPos,e.element),buttons:i.buttons,pointers:e.getActivePointerCount(),insideElementPressed:n.insideElementPressed,buttonDownAny:0!==i.buttons,isTouchEvent:"touch"===n.type,originalEvent:t.originalEvent,userData:e.userData})}(t,r,i),r.preventDefault&&!r.defaultPrevented&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n)}function O(t,n){var i={id:m(n),type:g(n),isPrimary:v(n),currentPos:y(n),currentTime:e.now()},r=e.MouseTracker.havePointerEvents&&"touch"===i.type&&e.Browser.vendor!==e.BROWSERS.IE,o={originalEvent:n,eventType:"pointerdown",pointerType:i.type,isEmulated:!1};N(t,o),z(t,o,i,n.button),o.preventDefault&&!o.defaultPrevented&&e.cancelEvent(n),o.stopPropagation&&e.stopEvent(n),o.shouldCapture&&(r?L(t,i,!0):function(t,n){var i;if(e.MouseTracker.havePointerCapture)if(e.MouseTracker.havePointerEvents)try{t.element.setPointerCapture(n.id)}catch(t){return void e.console.warn("setPointerCapture() called on invalid pointer ID")}else t.element.setCapture(!0);else i=h(t,e.MouseTracker.havePointerEvents?"pointerevent":n.type),c&&u(window.top)&&e.addEvent(window.top,i.upName,i.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,i.upName,i.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,i.moveName,i.moveHandler,!0);L(t,n,!0)}(t,i))}function I(e,t){R(e,t)}function R(t,n){var i,r={originalEvent:n,eventType:"pointerup",pointerType:(i={id:m(n),type:g(n),isPrimary:v(n),currentPos:y(n),currentTime:e.now()}).type,isEmulated:!1};N(t,r),_(t,r,i,n.button),r.preventDefault&&!r.defaultPrevented&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n),r.shouldReleaseCapture&&(n.target===t.element?f(t,i):L(t,i,!1))}function k(e,t){D(e,t)}function D(t,n){var i={id:m(n),type:g(n),isPrimary:v(n),currentPos:y(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointermove",pointerType:i.type,isEmulated:!1};N(t,r),H(t,r,i),r.preventDefault&&!r.defaultPrevented&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n)}function j(e,t){return t.speed=0,t.direction=0,t.contactPos=t.currentPos,t.contactTime=t.currentTime,t.lastPos=t.currentPos,t.lastTime=t.currentTime,e.add(t)}function M(t,n,i){var r,o=n.getById(i.id);return o?(o.captured&&(e.console.warn("stopTrackingPointer() called on captured pointer"),f(t,o)),n.removeContact(),r=n.removeById(i.id)):r=n.getLength(),r}function N(t,n){n.eventSource=t,n.eventPhase=n.originalEvent&&void 0!==n.originalEvent.eventPhase?n.originalEvent.eventPhase:0,n.defaultPrevented=e.eventIsCanceled(n.originalEvent),n.shouldCapture=!1,n.shouldReleaseCapture=!1,n.userData=t.userData,function(e,t){switch(t.eventType){case"pointermove":case"pointerdown":case"pointerup":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!1,t.preventGesture=!e.hasGestureHandlers,t.stopPropagation=!1;break;case"pointerover":case"pointerout":case"contextmenu":case"keydown":case"keyup":case"keypress":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!1,t.preventGesture=!1,t.stopPropagation=!1;break;case"wheel":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!1,t.preventGesture=!e.hasScrollHandler,t.stopPropagation=!1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":t.isStoppable=!0,t.isCancelable=!1,t.preventDefault=!1,t.preventGesture=!1,t.stopPropagation=!1;break;case"click":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!!e.clickHandler,t.preventGesture=!1,t.stopPropagation=!1;break;case"dblclick":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!!e.dblClickHandler,t.preventGesture=!1,t.stopPropagation=!1;break;default:t.isStoppable=!1,t.isCancelable=!1,t.preventDefault=!1,t.preventGesture=!1,t.stopPropagation=!1}}(t,n),t.preProcessEventHandler&&t.preProcessEventHandler(n)}function L(t,n,i){var r=t.getActivePointersListByType(n.type),o=r.getById(n.id);o?i&&!o.captured?(o.captured=!0,r.captureCount++):!i&&o.captured&&(o.captured=!1,r.captureCount--,r.captureCount<0&&(r.captureCount=0,e.console.warn("updatePointerCaptured() - pointsList.captureCount went negative"))):e.console.warn("updatePointerCaptured() called on untracked pointer")}function B(e,t,n){var i,r=e.getActivePointersListByType(n.type);(i=r.getById(n.id))?(i.insideElement=!0,i.lastPos=i.currentPos,i.lastTime=i.currentTime,i.currentPos=n.currentPos,i.currentTime=n.currentTime,n=i):(n.captured=!1,n.insideElementPressed=!1,n.insideElement=!0,j(r,n)),e.enterHandler&&e.enterHandler({eventSource:e,pointerType:n.type,position:w(n.currentPos,e.element),buttons:r.buttons,pointers:e.getActivePointerCount(),insideElementPressed:n.insideElementPressed,buttonDownAny:0!==r.buttons,isTouchEvent:"touch"===n.type,originalEvent:t.originalEvent,userData:e.userData})}function F(e,t,n){var i,r,o=e.getActivePointersListByType(n.type);(i=o.getById(n.id))?(i.captured?(i.insideElement=!1,i.lastPos=i.currentPos,i.lastTime=i.currentTime,i.currentPos=n.currentPos,i.currentTime=n.currentTime):M(e,o,i),n=i):(n.captured=!1,n.insideElementPressed=!1),(e.leaveHandler||e.exitHandler)&&(r={eventSource:e,pointerType:n.type,position:n.currentPos&&w(n.currentPos,e.element),buttons:o.buttons,pointers:e.getActivePointerCount(),insideElementPressed:n.insideElementPressed,buttonDownAny:0!==o.buttons,isTouchEvent:"touch"===n.type,originalEvent:t.originalEvent,userData:e.userData},e.leaveHandler&&e.leaveHandler(r),e.exitHandler&&e.exitHandler(r))}function z(t,i,r,o){var a,s=n[t.hash],l=t.getActivePointersListByType(r.type);if(void 0!==i.originalEvent.buttons?l.buttons=i.originalEvent.buttons:0===o?l.buttons|=1:1===o?l.buttons|=4:2===o?l.buttons|=2:3===o?l.buttons|=8:4===o?l.buttons|=16:5===o&&(l.buttons|=32),0!==o)return i.shouldCapture=!1,i.shouldReleaseCapture=!1,void(!t.nonPrimaryPressHandler||i.preventGesture||i.defaultPrevented||(i.preventDefault=!0,t.nonPrimaryPressHandler({eventSource:t,pointerType:r.type,position:w(r.currentPos,t.element),button:o,buttons:l.buttons,isTouchEvent:"touch"===r.type,originalEvent:i.originalEvent,userData:t.userData})));(a=l.getById(r.id))?(a.insideElementPressed=!0,a.insideElement=!0,a.originalTarget=i.originalEvent.target,a.contactPos=r.currentPos,a.contactTime=r.currentTime,a.lastPos=a.currentPos,a.lastTime=a.currentTime,a.currentPos=r.currentPos,a.currentTime=r.currentTime,r=a):(r.captured=!1,r.insideElementPressed=!0,r.insideElement=!0,r.originalTarget=i.originalEvent.target,j(l,r)),l.addContact(),i.preventGesture||i.defaultPrevented?(i.shouldCapture=!1,i.shouldReleaseCapture=!1):(i.shouldCapture=!0,i.shouldReleaseCapture=!1,i.preventDefault=!0,(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.addPoint(t,r),1===l.contacts?t.pressHandler&&!i.preventGesture&&t.pressHandler({eventSource:t,pointerType:r.type,position:w(r.contactPos,t.element),buttons:l.buttons,isTouchEvent:"touch"===r.type,originalEvent:i.originalEvent,userData:t.userData}):2===l.contacts&&t.pinchHandler&&"touch"===r.type&&(s.pinchGPoints=l.asArray(),s.lastPinchDist=s.currentPinchDist=s.pinchGPoints[0].currentPos.distanceTo(s.pinchGPoints[1].currentPos),s.lastPinchCenter=s.currentPinchCenter=x(s.pinchGPoints[0].currentPos,s.pinchGPoints[1].currentPos)))}function _(t,i,r,o){var a,s,l,c,u=n[t.hash],d=t.getActivePointersListByType(r.type),p=!1;if(void 0!==i.originalEvent.buttons?d.buttons=i.originalEvent.buttons:0===o?d.buttons^=-2:1===o?d.buttons^=-5:2===o?d.buttons^=-3:3===o?d.buttons^=-9:4===o?d.buttons^=-17:5===o&&(d.buttons^=-33),i.shouldCapture=!1,0!==o)return i.shouldReleaseCapture=!1,void(!t.nonPrimaryReleaseHandler||i.preventGesture||i.defaultPrevented||(i.preventDefault=!0,t.nonPrimaryReleaseHandler({eventSource:t,pointerType:r.type,position:w(r.currentPos,t.element),button:o,buttons:d.buttons,isTouchEvent:"touch"===r.type,originalEvent:i.originalEvent,userData:t.userData})));(l=d.getById(r.id))?(d.removeContact(),l.captured&&(p=!0),l.lastPos=l.currentPos,l.lastTime=l.currentTime,l.currentPos=r.currentPos,l.currentTime=r.currentTime,l.insideElement||M(t,d,l),a=l.currentPos,s=l.currentTime):(r.captured=!1,r.insideElementPressed=!1,r.insideElement=!0,j(d,r),l=r),i.preventGesture||i.defaultPrevented||(p?(i.shouldReleaseCapture=!0,i.preventDefault=!0,(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.removePoint(t,l),0===d.contacts?(t.releaseHandler&&a&&t.releaseHandler({eventSource:t,pointerType:l.type,position:w(a,t.element),buttons:d.buttons,insideElementPressed:l.insideElementPressed,insideElementReleased:l.insideElement,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,userData:t.userData}),t.dragEndHandler&&u.sentDragEvent&&t.dragEndHandler({eventSource:t,pointerType:l.type,position:w(l.currentPos,t.element),speed:l.speed,direction:l.direction,shift:i.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,userData:t.userData}),u.sentDragEvent=!1,(t.clickHandler||t.dblClickHandler)&&l.insideElement&&(c=s-l.contactTime<=t.clickTimeThreshold&&l.contactPos.distanceTo(a)<=t.clickDistThreshold,t.clickHandler&&t.clickHandler({eventSource:t,pointerType:l.type,position:w(l.currentPos,t.element),quick:c,shift:i.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,originalTarget:l.originalTarget,userData:t.userData}),t.dblClickHandler&&c&&(d.clicks++,1===d.clicks?(u.lastClickPos=a,u.dblClickTimeOut=setTimeout((function(){d.clicks=0}),t.dblClickTimeThreshold)):2===d.clicks&&(clearTimeout(u.dblClickTimeOut),d.clicks=0,u.lastClickPos.distanceTo(a)<=t.dblClickDistThreshold&&t.dblClickHandler({eventSource:t,pointerType:l.type,position:w(l.currentPos,t.element),shift:i.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,userData:t.userData}),u.lastClickPos=null)))):2===d.contacts&&t.pinchHandler&&"touch"===l.type&&(u.pinchGPoints=d.asArray(),u.lastPinchDist=u.currentPinchDist=u.pinchGPoints[0].currentPos.distanceTo(u.pinchGPoints[1].currentPos),u.lastPinchCenter=u.currentPinchCenter=x(u.pinchGPoints[0].currentPos,u.pinchGPoints[1].currentPos))):(i.shouldReleaseCapture=!1,t.releaseHandler&&a&&(t.releaseHandler({eventSource:t,pointerType:l.type,position:w(a,t.element),buttons:d.buttons,insideElementPressed:l.insideElementPressed,insideElementReleased:l.insideElement,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,userData:t.userData}),i.preventDefault=!0)))}function H(e,t,i){var r,o,a,s=n[e.hash],l=e.getActivePointersListByType(i.type);void 0!==t.originalEvent.buttons&&(l.buttons=t.originalEvent.buttons),(r=l.getById(i.id))&&(r.lastPos=r.currentPos,r.lastTime=r.currentTime,r.currentPos=i.currentPos,r.currentTime=i.currentTime,t.shouldCapture=!1,t.shouldReleaseCapture=!1,e.stopHandler&&"mouse"===i.type&&(clearTimeout(e.stopTimeOut),e.stopTimeOut=setTimeout((function(){!function(e,t,n){e.stopHandler&&e.stopHandler({eventSource:e,pointerType:n,position:b(t,e.element),buttons:e.getActivePointersListByType(n).buttons,isTouchEvent:"touch"===n,originalEvent:t,userData:e.userData})}(e,t.originalEvent,i.type)}),e.stopDelay)),0===l.contacts?e.moveHandler&&e.moveHandler({eventSource:e,pointerType:i.type,position:w(i.currentPos,e.element),buttons:l.buttons,isTouchEvent:"touch"===i.type,originalEvent:t.originalEvent,userData:e.userData}):1===l.contacts?(e.moveHandler&&(r=l.asArray()[0],e.moveHandler({eventSource:e,pointerType:r.type,position:w(r.currentPos,e.element),buttons:l.buttons,isTouchEvent:"touch"===r.type,originalEvent:t.originalEvent,userData:e.userData})),!e.dragHandler||t.preventGesture||t.defaultPrevented||(a=(r=l.asArray()[0]).currentPos.minus(r.lastPos),e.dragHandler({eventSource:e,pointerType:r.type,position:w(r.currentPos,e.element),buttons:l.buttons,delta:a,speed:r.speed,direction:r.direction,shift:t.originalEvent.shiftKey,isTouchEvent:"touch"===r.type,originalEvent:t.originalEvent,userData:e.userData}),t.preventDefault=!0,s.sentDragEvent=!0)):2===l.contacts&&(e.moveHandler&&(o=l.asArray(),e.moveHandler({eventSource:e,pointerType:o[0].type,position:w(x(o[0].currentPos,o[1].currentPos),e.element),buttons:l.buttons,isTouchEvent:"touch"===o[0].type,originalEvent:t.originalEvent,userData:e.userData})),!e.pinchHandler||"touch"!==i.type||t.preventGesture||t.defaultPrevented||(a=s.pinchGPoints[0].currentPos.distanceTo(s.pinchGPoints[1].currentPos))!==s.currentPinchDist&&(s.lastPinchDist=s.currentPinchDist,s.currentPinchDist=a,s.lastPinchCenter=s.currentPinchCenter,s.currentPinchCenter=x(s.pinchGPoints[0].currentPos,s.pinchGPoints[1].currentPos),e.pinchHandler({eventSource:e,pointerType:"touch",gesturePoints:s.pinchGPoints,lastCenter:w(s.lastPinchCenter,e.element),center:w(s.currentPinchCenter,e.element),lastDistance:s.lastPinchDist,distance:s.currentPinchDist,shift:t.originalEvent.shiftKey,originalEvent:t.originalEvent,userData:e.userData}),t.preventDefault=!0)))}function U(e,t,n){var i,r=e.getActivePointersListByType(n.type);(i=r.getById(n.id))&&M(e,r,i)}e.MouseTracker.gesturePointVelocityTracker=(i=[],r=0,o=0,a=function(e,t){return e.hash.toString()+t.type+t.id.toString()},s=function(){var t,n,r,a,s,l,c=i.length,u=e.now();for(a=u-o,o=u,t=0;t<c;t++)(r=(n=i[t]).gPoint).direction=Math.atan2(r.currentPos.y-n.lastPos.y,r.currentPos.x-n.lastPos.x),s=n.lastPos.distanceTo(r.currentPos),n.lastPos=r.currentPos,l=1e3*s/(a+1),r.speed=.75*l+.25*r.speed},{addPoint:function(t,n){var l=a(t,n);i.push({guid:l,gPoint:n,lastPos:n.currentPos}),1===i.length&&(o=e.now(),r=window.setInterval(s,50))},removePoint:function(e,t){var n,o=a(e,t),s=i.length;for(n=0;n<s;n++)if(i[n].guid===o){i.splice(n,1),0==--s&&window.clearInterval(r);break}}}),e.MouseTracker.captureElement=document,e.MouseTracker.wheelEventName=e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version>8||"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",e.MouseTracker.subscribeEvents=["click","dblclick","keydown","keyup","keypress","focus","blur","contextmenu",e.MouseTracker.wheelEventName],"DOMMouseScroll"===e.MouseTracker.wheelEventName&&e.MouseTracker.subscribeEvents.push("MozMousePixelScroll"),window.PointerEvent?(e.MouseTracker.havePointerEvents=!0,e.MouseTracker.subscribeEvents.push("pointerenter","pointerleave","pointerover","pointerout","pointerdown","pointerup","pointermove","pointercancel"),e.MouseTracker.havePointerCapture=(l=document.createElement("div"),e.isFunction(l.setPointerCapture)&&e.isFunction(l.releasePointerCapture)),e.MouseTracker.havePointerCapture&&e.MouseTracker.subscribeEvents.push("gotpointercapture","lostpointercapture")):(e.MouseTracker.havePointerEvents=!1,e.MouseTracker.subscribeEvents.push("mouseenter","mouseleave","mouseover","mouseout","mousedown","mouseup","mousemove"),e.MouseTracker.mousePointerId="legacy-mouse",e.MouseTracker.havePointerCapture=function(){var t=document.createElement("div");return e.isFunction(t.setCapture)&&e.isFunction(t.releaseCapture)}(),e.MouseTracker.havePointerCapture&&e.MouseTracker.subscribeEvents.push("losecapture"),"ontouchstart"in window&&e.MouseTracker.subscribeEvents.push("touchstart","touchend","touchmove","touchcancel"),"ongesturestart"in window&&e.MouseTracker.subscribeEvents.push("gesturestart","gesturechange")),e.MouseTracker.GesturePointList=function(e){this._gPoints=[],this.type=e,this.buttons=0,this.contacts=0,this.clicks=0,this.captureCount=0},e.MouseTracker.GesturePointList.prototype={getLength:function(){return this._gPoints.length},asArray:function(){return this._gPoints},add:function(e){return this._gPoints.push(e)},removeById:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].id===e){this._gPoints.splice(t,1);break}return this._gPoints.length},getByIndex:function(e){return e<this._gPoints.length?this._gPoints[e]:null},getById:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].id===e)return this._gPoints[t];return null},getPrimary:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].isPrimary)return this._gPoints[t];return null},addContact:function(){++this.contacts,this.contacts>1&&("mouse"===this.type||"pen"===this.type)&&(e.console.warn("GesturePointList.addContact() Implausible contacts value"),this.contacts=1)},removeContact:function(){--this.contacts,this.contacts<0&&(this.contacts=0)}}}(s),function(e){e.ControlAnchor={NONE:0,TOP_LEFT:1,TOP_RIGHT:2,BOTTOM_RIGHT:3,BOTTOM_LEFT:4,ABSOLUTE:5},e.Control=function(t,n,i){var r=t.parentNode;"number"==typeof n&&(e.console.error("Passing an anchor directly into the OpenSeadragon.Control constructor is deprecated; please use an options object instead. Support for this deprecated variant is scheduled for removal in December 2013"),n={anchor:n}),n.attachToViewer=void 0===n.attachToViewer||n.attachToViewer,this.autoFade=void 0===n.autoFade||n.autoFade,this.element=t,this.anchor=n.anchor,this.container=i,this.anchor===e.ControlAnchor.ABSOLUTE?(this.wrapper=e.makeNeutralElement("div"),this.wrapper.style.position="absolute",this.wrapper.style.top="number"==typeof n.top?n.top+"px":n.top,this.wrapper.style.left="number"==typeof n.left?n.left+"px":n.left,this.wrapper.style.height="number"==typeof n.height?n.height+"px":n.height,this.wrapper.style.width="number"==typeof n.width?n.width+"px":n.width,this.wrapper.style.margin="0px",this.wrapper.style.padding="0px",this.element.style.position="relative",this.element.style.top="0px",this.element.style.left="0px",this.element.style.height="100%",this.element.style.width="100%"):(this.wrapper=e.makeNeutralElement("div"),this.wrapper.style.display="inline-block",this.anchor===e.ControlAnchor.NONE&&(this.wrapper.style.width=this.wrapper.style.height="100%")),this.wrapper.appendChild(this.element),n.attachToViewer?this.anchor===e.ControlAnchor.TOP_RIGHT||this.anchor===e.ControlAnchor.BOTTOM_RIGHT?this.container.insertBefore(this.wrapper,this.container.firstChild):this.container.appendChild(this.wrapper):r.appendChild(this.wrapper)},e.Control.prototype={destroy:function(){this.wrapper.removeChild(this.element),this.anchor!==e.ControlAnchor.NONE&&this.container.removeChild(this.wrapper)},isVisible:function(){return"none"!==this.wrapper.style.display},setVisible:function(t){this.wrapper.style.display=t?this.anchor===e.ControlAnchor.ABSOLUTE?"block":"inline-block":"none"},setOpacity:function(t){this.element[e.SIGNAL]&&e.Browser.vendor===e.BROWSERS.IE?e.setElementOpacity(this.element,t,!0):e.setElementOpacity(this.wrapper,t,!0)}}}(s),function(e){function t(e,t){var n,i=e.controls;for(n=i.length-1;n>=0;n--)if(i[n].element===t)return n;return-1}e.ControlDock=function(t){var n,i,r=["topleft","topright","bottomright","bottomleft"];for(e.extend(!0,this,{id:"controldock-"+e.now()+"-"+Math.floor(1e6*Math.random()),container:e.makeNeutralElement("div"),controls:[]},t),this.container.onsubmit=function(){return!1},this.element&&(this.element=e.getElement(this.element),this.element.appendChild(this.container),this.element.style.position="relative",this.container.style.width="100%",this.container.style.height="100%"),i=0;i<r.length;i++)n=r[i],this.controls[n]=e.makeNeutralElement("div"),this.controls[n].style.position="absolute",n.match("left")&&(this.controls[n].style.left="0px"),n.match("right")&&(this.controls[n].style.right="0px"),n.match("top")&&(this.controls[n].style.top="0px"),n.match("bottom")&&(this.controls[n].style.bottom="0px");this.container.appendChild(this.controls.topleft),this.container.appendChild(this.controls.topright),this.container.appendChild(this.controls.bottomright),this.container.appendChild(this.controls.bottomleft)},e.ControlDock.prototype={addControl:function(n,i){var r=null;if(!(t(this,n=e.getElement(n))>=0)){switch(i.anchor){case e.ControlAnchor.TOP_RIGHT:r=this.controls.topright,n.style.position="relative",n.style.paddingRight="0px",n.style.paddingTop="0px";break;case e.ControlAnchor.BOTTOM_RIGHT:r=this.controls.bottomright,n.style.position="relative",n.style.paddingRight="0px",n.style.paddingBottom="0px";break;case e.ControlAnchor.BOTTOM_LEFT:r=this.controls.bottomleft,n.style.position="relative",n.style.paddingLeft="0px",n.style.paddingBottom="0px";break;case e.ControlAnchor.TOP_LEFT:r=this.controls.topleft,n.style.position="relative",n.style.paddingLeft="0px",n.style.paddingTop="0px";break;case e.ControlAnchor.ABSOLUTE:default:case e.ControlAnchor.NONE:r=this.container,n.style.margin="0px",n.style.padding="0px"}this.controls.push(new e.Control(n,i,r)),n.style.display="inline-block"}},removeControl:function(n){var i=t(this,n=e.getElement(n));return i>=0&&(this.controls[i].destroy(),this.controls.splice(i,1)),this},clearControls:function(){for(;this.controls.length>0;)this.controls.pop().destroy();return this},areControlsEnabled:function(){var e;for(e=this.controls.length-1;e>=0;e--)if(this.controls[e].isVisible())return!0;return!1},setControlsEnabled:function(e){var t;for(t=this.controls.length-1;t>=0;t--)this.controls[t].setVisible(e);return this}}}(s),function(e){e.Placement=e.freezeObject({CENTER:0,TOP_LEFT:1,TOP:2,TOP_RIGHT:3,RIGHT:4,BOTTOM_RIGHT:5,BOTTOM:6,BOTTOM_LEFT:7,LEFT:8,properties:{0:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!1,isVerticallyCentered:!0,isBottom:!1},1:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!0,isVerticallyCentered:!1,isBottom:!1},2:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!0,isVerticallyCentered:!1,isBottom:!1},3:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!0,isVerticallyCentered:!1,isBottom:!1},4:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!1,isVerticallyCentered:!0,isBottom:!1},5:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!1,isVerticallyCentered:!1,isBottom:!0},6:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!1,isVerticallyCentered:!1,isBottom:!0},7:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!1,isVerticallyCentered:!1,isBottom:!0},8:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!1,isVerticallyCentered:!0,isBottom:!1}}})}(s),function(e){var t={},n=1;function i(t){return t=e.getElement(t),new e.Point(0===t.clientWidth?1:t.clientWidth,0===t.clientHeight?1:t.clientHeight)}function r(t,n){if(n instanceof e.Overlay)return n;var i=null;if(n.element)i=e.getElement(n.element);else{var r=n.id?n.id:"openseadragon-overlay-"+Math.floor(1e7*Math.random());(i=e.getElement(n.id))||((i=document.createElement("a")).href="#/overlay/"+r),i.id=r,e.addClass(i,n.className?n.className:"openseadragon-overlay")}var o=n.location,a=n.width,s=n.height;if(!o){var l=n.x,c=n.y;if(void 0!==n.px){var u=t.viewport.imageToViewportRectangle(new e.Rect(n.px,n.py,a||0,s||0));l=u.x,c=u.y,a=void 0!==a?u.width:void 0,s=void 0!==s?u.height:void 0}o=new e.Point(l,c)}var d=n.placement;return d&&"string"===e.type(d)&&(d=e.Placement[n.placement.toUpperCase()]),new e.Overlay({element:i,location:o,placement:d,onDraw:n.onDraw,checkResize:n.checkResize,width:a,height:s,rotationMode:n.rotationMode})}function o(e,t){var n;for(n=e.length-1;n>=0;n--)if(e[n].element===t)return n;return-1}function a(t,n){return e.requestAnimationFrame((function(){n(t)}))}function s(t){e.requestAnimationFrame((function(){!function(t){var n,i;if(t.controlsShouldFade){for(n=1-(e.now()-t.controlsFadeBeginTime)/t.controlsFadeLength,n=Math.min(1,n),n=Math.max(0,n),i=t.controls.length-1;i>=0;i--)t.controls[i].autoFade&&t.controls[i].setOpacity(n);n>0&&s(t)}}(t)}))}function l(t){t.autoHideControls&&(t.controlsShouldFade=!0,t.controlsFadeBeginTime=e.now()+t.controlsFadeDelay,window.setTimeout((function(){s(t)}),t.controlsFadeDelay))}function c(e){var t;for(e.controlsShouldFade=!1,t=e.controls.length-1;t>=0;t--)e.controls[t].setOpacity(1)}function u(){c(this)}function d(){l(this)}function p(e){var t={tracker:e.eventSource,position:e.position,originalEvent:e.originalEvent,preventDefault:e.preventDefault};this.raiseEvent("canvas-contextmenu",t),e.preventDefault=t.preventDefault}function h(t){var n={originalEvent:t.originalEvent,preventDefaultAction:!1,preventVerticalPan:t.preventVerticalPan||!this.panVertical,preventHorizontalPan:t.preventHorizontalPan||!this.panHorizontal};if(this.raiseEvent("canvas-key",n),n.preventDefaultAction||t.ctrl||t.alt||t.meta)t.preventDefault=!1;else switch(t.keyCode){case 38:n.preventVerticalPan||(t.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,-this.pixelsPerArrowPress))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 40:n.preventVerticalPan||(t.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,this.pixelsPerArrowPress))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 37:n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(-this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 39:n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;default:t.preventDefault=!1}}function f(t){var n={originalEvent:t.originalEvent,preventDefaultAction:!1,preventVerticalPan:t.preventVerticalPan||!this.panVertical,preventHorizontalPan:t.preventHorizontalPan||!this.panHorizontal};if(this.raiseEvent("canvas-key",n),n.preventDefaultAction||t.ctrl||t.alt||t.meta)t.preventDefault=!1;else switch(t.keyCode){case 43:case 61:this.viewport.zoomBy(1.1),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 45:this.viewport.zoomBy(.9),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 48:this.viewport.goHome(),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 119:case 87:n.preventVerticalPan||(t.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,-40))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 115:case 83:n.preventVerticalPan||(t.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,40))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 97:n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(-40,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 100:n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(40,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 114:this.viewport.flipped?this.viewport.setRotation(this.viewport.getRotation()-this.rotationIncrement):this.viewport.setRotation(this.viewport.getRotation()+this.rotationIncrement),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 82:this.viewport.flipped?this.viewport.setRotation(this.viewport.getRotation()+this.rotationIncrement):this.viewport.setRotation(this.viewport.getRotation()-this.rotationIncrement),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 102:this.viewport.toggleFlip(),t.preventDefault=!0;break;case 106:this.goToPreviousPage();break;case 107:this.goToNextPage();break;default:t.preventDefault=!1}}function m(n){var i;document.activeElement===this.canvas||this.canvas.focus(),this.viewport.flipped&&(n.position.x=this.viewport.getContainerSize().x-n.position.x);var r={tracker:n.eventSource,position:n.position,quick:n.quick,shift:n.shift,originalEvent:n.originalEvent,originalTarget:n.originalTarget,preventDefaultAction:!1};this.raiseEvent("canvas-click",r),!r.preventDefaultAction&&this.viewport&&n.quick&&(!0===(i=this.gestureSettingsByDeviceType(n.pointerType)).clickToZoom&&(this.viewport.zoomBy(n.shift?1/this.zoomPerClick:this.zoomPerClick,i.zoomToRefPoint?this.viewport.pointFromPixel(n.position,!0):null),this.viewport.applyConstraints()),i.dblClickDragToZoom&&(!0===t[this.hash].draggingToZoom?(t[this.hash].lastClickTime=null,t[this.hash].draggingToZoom=!1):t[this.hash].lastClickTime=e.now()))}function g(e){var t,n={tracker:e.eventSource,position:e.position,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};this.raiseEvent("canvas-double-click",n),!n.preventDefaultAction&&this.viewport&&(t=this.gestureSettingsByDeviceType(e.pointerType)).dblClickToZoom&&(this.viewport.zoomBy(e.shift?1/this.zoomPerClick:this.zoomPerClick,t.zoomToRefPoint?this.viewport.pointFromPixel(e.position,!0):null),this.viewport.applyConstraints())}function v(e){var n,i={tracker:e.eventSource,pointerType:e.pointerType,position:e.position,delta:e.delta,speed:e.speed,direction:e.direction,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};if(this.raiseEvent("canvas-drag",i),n=this.gestureSettingsByDeviceType(e.pointerType),!i.preventDefaultAction&&this.viewport)if(n.dblClickDragToZoom&&t[this.hash].draggingToZoom){var r=Math.pow(this.zoomPerDblClickDrag,e.delta.y/50);this.viewport.zoomBy(r)}else if(n.dragToPan&&!t[this.hash].draggingToZoom){if(this.panHorizontal||(e.delta.x=0),this.panVertical||(e.delta.y=0),this.viewport.flipped&&(e.delta.x=-e.delta.x),this.constrainDuringPan){var o=this.viewport.deltaPointsFromPixels(e.delta.negate());this.viewport.centerSpringX.target.value+=o.x,this.viewport.centerSpringY.target.value+=o.y;var a=this.viewport.getConstrainedBounds();this.viewport.centerSpringX.target.value-=o.x,this.viewport.centerSpringY.target.value-=o.y,a.xConstrained&&(e.delta.x=0),a.yConstrained&&(e.delta.y=0)}this.viewport.panBy(this.viewport.deltaPointsFromPixels(e.delta.negate()),n.flickEnabled&&!this.constrainDuringPan)}}function y(n){var i,r={tracker:n.eventSource,pointerType:n.pointerType,position:n.position,speed:n.speed,direction:n.direction,shift:n.shift,originalEvent:n.originalEvent,preventDefaultAction:!1};if(this.raiseEvent("canvas-drag-end",r),i=this.gestureSettingsByDeviceType(n.pointerType),!r.preventDefaultAction&&this.viewport){if(!t[this.hash].draggingToZoom&&i.flickEnabled&&n.speed>=i.flickMinSpeed){var o=0;this.panHorizontal&&(o=i.flickMomentum*n.speed*Math.cos(n.direction));var a=0;this.panVertical&&(a=i.flickMomentum*n.speed*Math.sin(n.direction));var s=this.viewport.pixelFromPoint(this.viewport.getCenter(!0)),l=this.viewport.pointFromPixel(new e.Point(s.x-o,s.y-a));this.viewport.panTo(l,!1)}this.viewport.applyConstraints()}i.dblClickDragToZoom&&!0===t[this.hash].draggingToZoom&&(t[this.hash].draggingToZoom=!1)}function b(e){this.raiseEvent("canvas-enter",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function w(e){this.raiseEvent("canvas-exit",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function x(n){if(this.raiseEvent("canvas-press",{tracker:n.eventSource,pointerType:n.pointerType,position:n.position,insideElementPressed:n.insideElementPressed,insideElementReleased:n.insideElementReleased,originalEvent:n.originalEvent}),this.gestureSettingsByDeviceType(n.pointerType).dblClickDragToZoom){var i=t[this.hash].lastClickTime,r=e.now();if(null===i)return;r-i<this.dblClickTimeThreshold&&(t[this.hash].draggingToZoom=!0),t[this.hash].lastClickTime=null}}function C(e){this.raiseEvent("canvas-release",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,insideElementPressed:e.insideElementPressed,insideElementReleased:e.insideElementReleased,originalEvent:e.originalEvent})}function E(e){this.raiseEvent("canvas-nonprimary-press",{tracker:e.eventSource,position:e.position,pointerType:e.pointerType,button:e.button,buttons:e.buttons,originalEvent:e.originalEvent})}function S(e){this.raiseEvent("canvas-nonprimary-release",{tracker:e.eventSource,position:e.position,pointerType:e.pointerType,button:e.button,buttons:e.buttons,originalEvent:e.originalEvent})}function T(e){var t,n,i,r={tracker:e.eventSource,pointerType:e.pointerType,gesturePoints:e.gesturePoints,lastCenter:e.lastCenter,center:e.center,lastDistance:e.lastDistance,distance:e.distance,shift:e.shift,originalEvent:e.originalEvent,preventDefaultPanAction:!1,preventDefaultZoomAction:!1,preventDefaultRotateAction:!1};if(this.raiseEvent("canvas-pinch",r),this.viewport&&(!(t=this.gestureSettingsByDeviceType(e.pointerType)).pinchToZoom||r.preventDefaultPanAction&&r.preventDefaultZoomAction||(n=this.viewport.pointFromPixel(e.center,!0),t.zoomToRefPoint&&!r.preventDefaultPanAction&&(i=this.viewport.pointFromPixel(e.lastCenter,!0).minus(n),this.panHorizontal||(i.x=0),this.panVertical||(i.y=0),this.viewport.panBy(i,!0)),r.preventDefaultZoomAction||this.viewport.zoomBy(e.distance/e.lastDistance,n,!0),this.viewport.applyConstraints()),t.pinchRotate&&!r.preventDefaultRotateAction)){var o=Math.atan2(e.gesturePoints[0].currentPos.y-e.gesturePoints[1].currentPos.y,e.gesturePoints[0].currentPos.x-e.gesturePoints[1].currentPos.x),a=Math.atan2(e.gesturePoints[0].lastPos.y-e.gesturePoints[1].lastPos.y,e.gesturePoints[0].lastPos.x-e.gesturePoints[1].lastPos.x);this.viewport.setRotation(this.viewport.getRotation()+(o-a)*(180/Math.PI))}}function A(t){var n,i,r,o;(o=e.now())-this._lastScrollTime>this.minScrollDeltaTime?(this._lastScrollTime=o,n={tracker:t.eventSource,position:t.position,scroll:t.scroll,shift:t.shift,originalEvent:t.originalEvent,preventDefaultAction:!1,preventDefault:!0},this.raiseEvent("canvas-scroll",n),!n.preventDefaultAction&&this.viewport&&(this.viewport.flipped&&(t.position.x=this.viewport.getContainerSize().x-t.position.x),(i=this.gestureSettingsByDeviceType(t.pointerType)).scrollToZoom&&(r=Math.pow(this.zoomPerScroll,t.scroll),this.viewport.zoomBy(r,i.zoomToRefPoint?this.viewport.pointFromPixel(t.position,!0):null),this.viewport.applyConstraints())),t.preventDefault=n.preventDefault):t.preventDefault=!0}function P(e){t[this.hash].mouseInside=!0,c(this),this.raiseEvent("container-enter",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function O(e){e.pointers<1&&(t[this.hash].mouseInside=!1,t[this.hash].animating||l(this)),this.raiseEvent("container-exit",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function I(n){!function(n){if(n._opening||!t[n.hash])return;if(n.autoResize||t[n.hash].forceResize){var r;if(n._autoResizePolling){r=i(n.container);var o=t[n.hash].prevContainerSize;r.equals(o)||(t[n.hash].needsResize=!0)}t[n.hash].needsResize&&function(n,i){var r,o=n.viewport,a=o.getZoom(),s=o.getCenter();if(o.resize(i,n.preserveImageSizeOnResize),o.panTo(s,!0),n.preserveImageSizeOnResize)r=t[n.hash].prevContainerSize.x/i.x;else{var l=new e.Point(0,0),c=new e.Point(t[n.hash].prevContainerSize.x,t[n.hash].prevContainerSize.y).distanceTo(l);r=new e.Point(i.x,i.y).distanceTo(l)/c*t[n.hash].prevContainerSize.x/i.x}o.zoomTo(a*r,null,!0),t[n.hash].prevContainerSize=i,t[n.hash].forceRedraw=!0,t[n.hash].needsResize=!1,t[n.hash].forceResize=!1}(n,r||i(n.container))}var a=n.viewport.update(),s=n.world.update()||a;a&&n.raiseEvent("viewport-change");n.referenceStrip&&(s=n.referenceStrip.update(n.viewport)||s);var u=t[n.hash].animating;!u&&s&&(n.raiseEvent("animation-start"),c(n));var d=u&&!s;d&&(t[n.hash].animating=!1);(s||d||t[n.hash].forceRedraw||n.world.needsDraw())&&(!function(e){e.imageLoader.clear(),e.drawer.clear(),e.world.draw(),e.raiseEvent("update-viewport",{})}(n),n._drawOverlays(),n.navigator&&n.navigator.update(n.viewport),t[n.hash].forceRedraw=!1,s&&n.raiseEvent("animation"));d&&(n.raiseEvent("animation-finish"),t[n.hash].mouseInside||l(n));t[n.hash].animating=s}(n),n.isOpen()?n._updateRequestId=a(n,I):n._updateRequestId=!1}function R(e,t){return e?e+t:t}function k(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=this.zoomPerSecond,t[this.hash].zooming=!0,M(this)}function D(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=1/this.zoomPerSecond,t[this.hash].zooming=!0,M(this)}function j(){t[this.hash].zooming=!1}function M(t){e.requestAnimationFrame(e.delegate(t,N))}function N(){var n,i,r;t[this.hash].zooming&&this.viewport&&(i=(n=e.now())-t[this.hash].lastZoomTime,r=Math.pow(t[this.hash].zoomFactor,i/1e3),this.viewport.zoomBy(r),this.viewport.applyConstraints(),t[this.hash].lastZoomTime=n,M(this))}function L(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(this.zoomPerClick/1),this.viewport.applyConstraints())}function B(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(1/this.zoomPerClick),this.viewport.applyConstraints())}function F(){this.buttonGroup&&(this.buttonGroup.emulateEnter(),this.buttonGroup.emulateLeave())}function z(){this.viewport&&this.viewport.goHome()}function _(){this.isFullPage()&&!e.isFullScreen()?this.setFullPage(!1):this.setFullScreen(!this.isFullPage()),this.buttonGroup&&this.buttonGroup.emulateLeave(),this.fullPageButton.element.focus(),this.viewport&&this.viewport.applyConstraints()}function H(){if(this.viewport){var e=this.viewport.getRotation();this.viewport.flipped?e+=this.rotationIncrement:e-=this.rotationIncrement,this.viewport.setRotation(e)}}function U(){if(this.viewport){var e=this.viewport.getRotation();this.viewport.flipped?e-=this.rotationIncrement:e+=this.rotationIncrement,this.viewport.setRotation(e)}}function V(){this.viewport.toggleFlip()}e.Viewer=function(r){var o,s,c=arguments,u=this;if(e.isPlainObject(r)||(r={id:c[0],xmlPath:c.length>1?c[1]:void 0,prefixUrl:c.length>2?c[2]:void 0,controls:c.length>3?c[3]:void 0,overlays:c.length>4?c[4]:void 0}),r.config&&(e.extend(!0,r,r.config),delete r.config),e.extend(!0,this,{id:r.id,hash:r.hash||n++,initialPage:0,element:null,container:null,canvas:null,overlays:[],overlaysContainer:null,previousBody:[],customControls:[],source:null,drawer:null,world:null,viewport:null,navigator:null,collectionViewport:null,collectionDrawer:null,navImages:null,buttonGroup:null,profiler:null},e.DEFAULT_SETTINGS,r),void 0===this.hash)throw new Error("A hash must be defined, either by specifying options.id or options.hash.");for(void 0!==t[this.hash]&&e.console.warn("Hash "+this.hash+" has already been used."),t[this.hash]={fsBoundsDelta:new e.Point(1,1),prevContainerSize:null,animating:!1,forceRedraw:!1,needsResize:!1,forceResize:!1,mouseInside:!1,group:null,zooming:!1,zoomFactor:null,lastZoomTime:null,fullPage:!1,onfullscreenchange:null,lastClickTime:null,draggingToZoom:!1},this._sequenceIndex=0,this._firstOpen=!0,this._updateRequestId=null,this._loadQueue=[],this.currentOverlays=[],this._updatePixelDensityRatioBind=null,this._lastScrollTime=e.now(),e.EventSource.call(this),this.addHandler("open-failed",(function(t){var n=e.getString("Errors.OpenFailed",t.eventSource,t.message);u._showMessage(n)})),e.ControlDock.call(this,r),this.xmlPath&&(this.tileSources=[this.xmlPath]),this.element=this.element||document.getElementById(this.id),this.canvas=e.makeNeutralElement("div"),this.canvas.className="openseadragon-canvas",(s=this.canvas.style).width="100%",s.height="100%",s.overflow="hidden",s.position="absolute",s.top="0px",s.left="0px",e.setElementTouchActionNone(this.canvas),""!==r.tabIndex&&(this.canvas.tabIndex=void 0===r.tabIndex?0:r.tabIndex),this.container.className="openseadragon-container",function(e){e.width="100%",e.height="100%",e.position="relative",e.overflow="hidden",e.left="0px",e.top="0px",e.textAlign="left"}(this.container.style),e.setElementTouchActionNone(this.container),this.container.insertBefore(this.canvas,this.container.firstChild),this.element.appendChild(this.container),this.bodyWidth=document.body.style.width,this.bodyHeight=document.body.style.height,this.bodyOverflow=document.body.style.overflow,this.docOverflow=document.documentElement.style.overflow,this.innerTracker=new e.MouseTracker({userData:"Viewer.innerTracker",element:this.canvas,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,contextMenuHandler:e.delegate(this,p),keyDownHandler:e.delegate(this,h),keyHandler:e.delegate(this,f),clickHandler:e.delegate(this,m),dblClickHandler:e.delegate(this,g),dragHandler:e.delegate(this,v),dragEndHandler:e.delegate(this,y),enterHandler:e.delegate(this,b),leaveHandler:e.delegate(this,w),pressHandler:e.delegate(this,x),releaseHandler:e.delegate(this,C),nonPrimaryPressHandler:e.delegate(this,E),nonPrimaryReleaseHandler:e.delegate(this,S),scrollHandler:e.delegate(this,A),pinchHandler:e.delegate(this,T)}),this.outerTracker=new e.MouseTracker({userData:"Viewer.outerTracker",element:this.container,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,enterHandler:e.delegate(this,P),leaveHandler:e.delegate(this,O)}),this.toolbar&&(this.toolbar=new e.ControlDock({element:this.toolbar})),this.bindStandardControls(),t[this.hash].prevContainerSize=i(this.container),window.ResizeObserver?(this._autoResizePolling=!1,this._resizeObserver=new ResizeObserver((function(){t[u.hash].needsResize=!0})),this._resizeObserver.observe(this.container,{})):this._autoResizePolling=!0,this.world=new e.World({viewer:this}),this.world.addHandler("add-item",(function(e){u.source=u.world.getItemAt(0).source,t[u.hash].forceRedraw=!0,u._updateRequestId||(u._updateRequestId=a(u,I))})),this.world.addHandler("remove-item",(function(e){u.world.getItemCount()?u.source=u.world.getItemAt(0).source:u.source=null,t[u.hash].forceRedraw=!0})),this.world.addHandler("metrics-change",(function(e){u.viewport&&u.viewport._setContentBounds(u.world.getHomeBounds(),u.world.getContentFactor())})),this.world.addHandler("item-index-change",(function(e){u.source=u.world.getItemAt(0).source})),this.viewport=new e.Viewport({containerSize:t[this.hash].prevContainerSize,springStiffness:this.springStiffness,animationTime:this.animationTime,minZoomImageRatio:this.minZoomImageRatio,maxZoomPixelRatio:this.maxZoomPixelRatio,visibilityRatio:this.visibilityRatio,wrapHorizontal:this.wrapHorizontal,wrapVertical:this.wrapVertical,defaultZoomLevel:this.defaultZoomLevel,minZoomLevel:this.minZoomLevel,maxZoomLevel:this.maxZoomLevel,viewer:this,degrees:this.degrees,flipped:this.flipped,navigatorRotate:this.navigatorRotate,homeFillsViewer:this.homeFillsViewer,margins:this.viewportMargins,silenceMultiImageWarnings:this.silenceMultiImageWarnings}),this.viewport._setContentBounds(this.world.getHomeBounds(),this.world.getContentFactor()),this.imageLoader=new e.ImageLoader({jobLimit:this.imageLoaderLimit,timeout:r.timeout}),this.tileCache=new e.TileCache({maxImageCacheCount:this.maxImageCacheCount}),this.drawer=new e.Drawer({viewer:this,viewport:this.viewport,element:this.canvas,debugGridColor:this.debugGridColor}),this.overlaysContainer=e.makeNeutralElement("div"),this.canvas.appendChild(this.overlaysContainer),this.drawer.canRotate()||(this.rotateLeft&&(o=this.buttonGroup.buttons.indexOf(this.rotateLeft),this.buttonGroup.buttons.splice(o,1),this.buttonGroup.element.removeChild(this.rotateLeft.element)),this.rotateRight&&(o=this.buttonGroup.buttons.indexOf(this.rotateRight),this.buttonGroup.buttons.splice(o,1),this.buttonGroup.element.removeChild(this.rotateRight.element))),this._addUpdatePixelDensityRatioEvent(),this.showNavigator&&(this.navigator=new e.Navigator({element:this.navigatorElement,id:this.navigatorId,position:this.navigatorPosition,sizeRatio:this.navigatorSizeRatio,maintainSizeRatio:this.navigatorMaintainSizeRatio,top:this.navigatorTop,left:this.navigatorLeft,width:this.navigatorWidth,height:this.navigatorHeight,autoResize:this.navigatorAutoResize,autoFade:this.navigatorAutoFade,prefixUrl:this.prefixUrl,viewer:this,navigatorRotate:this.navigatorRotate,background:this.navigatorBackground,opacity:this.navigatorOpacity,borderColor:this.navigatorBorderColor,displayRegionColor:this.navigatorDisplayRegionColor,crossOriginPolicy:this.crossOriginPolicy,animationTime:this.animationTime})),this.sequenceMode&&this.bindSequenceControls(),this.tileSources&&this.open(this.tileSources),o=0;o<this.customControls.length;o++)this.addControl(this.customControls[o].id,{anchor:this.customControls[o].anchor});e.requestAnimationFrame((function(){l(u)})),void 0===this.imageSmoothingEnabled||this.imageSmoothingEnabled||this.drawer.setImageSmoothingEnabled(this.imageSmoothingEnabled),e._viewers.set(this.element,this)},e.extend(e.Viewer.prototype,e.EventSource.prototype,e.ControlDock.prototype,{isOpen:function(){return!!this.world.getItemCount()},openDzi:function(t){return e.console.error("[Viewer.openDzi] this function is deprecated; use Viewer.open() instead."),this.open(t)},openTileSource:function(t){return e.console.error("[Viewer.openTileSource] this function is deprecated; use Viewer.open() instead."),this.open(t)},get buttons(){return e.console.warn("Viewer.buttons is deprecated; Please use Viewer.buttonGroup"),this.buttonGroup},open:function(t,n){var i=this;if(this.close(),!t)return this;if(this.sequenceMode&&e.isArray(t))return this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),void 0===n||isNaN(n)||(this.initialPage=n),this.tileSources=t,this._sequenceIndex=Math.max(0,Math.min(this.tileSources.length-1,this.initialPage)),this.tileSources.length&&(this.open(this.tileSources[this._sequenceIndex]),this.showReferenceStrip&&this.addReferenceStrip()),this._updateSequenceButtons(this._sequenceIndex),this;if(e.isArray(t)||(t=[t]),!t.length)return this;this._opening=!0;for(var o,a=t.length,s=0,l=0,c=function(){if(s+l===a)if(s){!i._firstOpen&&i.preserveViewport||(i.viewport.goHome(!0),i.viewport.update()),i._firstOpen=!1;var e=t[0];if(e.tileSource&&(e=e.tileSource),i.overlays&&!i.preserveOverlays)for(var n=0;n<i.overlays.length;n++)i.currentOverlays[n]=r(i,i.overlays[n]);i._drawOverlays(),i._opening=!1,i.raiseEvent("open",{source:e})}else i._opening=!1,i.raiseEvent("open-failed",o)},u=function(t){e.isPlainObject(t)&&t.tileSource||(t={tileSource:t}),void 0!==t.index&&(e.console.error("[Viewer.open] setting indexes here is not supported; use addTiledImage instead"),delete t.index),void 0===t.collectionImmediately&&(t.collectionImmediately=!0);var n=t.success;t.success=function(e){if(s++,t.tileSource.overlays)for(var r=0;r<t.tileSource.overlays.length;r++)i.addOverlay(t.tileSource.overlays[r]);n&&n(e),c()};var r=t.error;t.error=function(e){l++,o||(o=e),r&&r(e),c()},i.addTiledImage(t)},d=0;d<t.length;d++)u(t[d]);return this},close:function(){return t[this.hash]?(this._opening=!1,this.navigator&&this.navigator.close(),this.preserveOverlays||(this.clearOverlays(),this.overlaysContainer.innerHTML=""),t[this.hash].animating=!1,this.world.removeAll(),this.imageLoader.clear(),this.raiseEvent("close"),this):this},destroy:function(){if(t[this.hash]){if(this.raiseEvent("before-destroy"),this._removeUpdatePixelDensityRatioEvent(),this.close(),this.clearOverlays(),this.overlaysContainer.innerHTML="",this._resizeObserver&&this._resizeObserver.disconnect(),this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),null!==this._updateRequestId&&(e.cancelAnimationFrame(this._updateRequestId),this._updateRequestId=null),this.drawer&&this.drawer.destroy(),this.navigator&&(this.navigator.destroy(),t[this.navigator.hash]=null,delete t[this.navigator.hash],this.navigator=null),this.buttonGroup)this.buttonGroup.destroy();else if(this.customButtons)for(;this.customButtons.length;)this.customButtons.pop().destroy();if(this.paging&&this.paging.destroy(),this.element)for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.container.onsubmit=null,this.clearControls(),this.innerTracker&&this.innerTracker.destroy(),this.outerTracker&&this.outerTracker.destroy(),t[this.hash]=null,delete t[this.hash],this.canvas=null,this.container=null,e._viewers.delete(this.element),this.element=null,this.raiseEvent("destroy"),this.removeAllHandlers()}},isMouseNavEnabled:function(){return this.innerTracker.isTracking()},setMouseNavEnabled:function(e){return this.innerTracker.setTracking(e),this.outerTracker.setTracking(e),this.raiseEvent("mouse-enabled",{enabled:e}),this},areControlsEnabled:function(){var e,t=this.controls.length;for(e=0;e<this.controls.length;e++)t=t&&this.controls[e].isVisible();return t},setControlsEnabled:function(e){return e?c(this):l(this),this.raiseEvent("controls-enabled",{enabled:e}),this},setDebugMode:function(e){for(var t=0;t<this.world.getItemCount();t++)this.world.getItemAt(t).debugMode=e;this.debugMode=e,this.forceRedraw()},isFullPage:function(){return t[this.hash].fullPage},setFullPage:function(n){var i,r,o=document.body,a=o.style,s=document.documentElement.style,l=this;if(n===this.isFullPage())return this;var c={fullPage:n,preventDefaultAction:!1};if(this.raiseEvent("pre-full-page",c),c.preventDefaultAction)return this;if(n){for(this.elementSize=e.getElementSize(this.element),this.pageScroll=e.getPageScroll(),this.elementMargin=this.element.style.margin,this.element.style.margin="0",this.elementPadding=this.element.style.padding,this.element.style.padding="0",this.bodyMargin=a.margin,this.docMargin=s.margin,a.margin="0",s.margin="0",this.bodyPadding=a.padding,this.docPadding=s.padding,a.padding="0",s.padding="0",this.bodyWidth=a.width,this.docWidth=s.width,a.width="100%",s.width="100%",this.bodyHeight=a.height,this.docHeight=s.height,a.height="100%",s.height="100%",this.bodyDisplay=a.display,a.display="block",this.previousBody=[],t[this.hash].prevElementParent=this.element.parentNode,t[this.hash].prevNextSibling=this.element.nextSibling,t[this.hash].prevElementWidth=this.element.style.width,t[this.hash].prevElementHeight=this.element.style.height,i=o.childNodes.length,r=0;r<i;r++)this.previousBody.push(o.childNodes[0]),o.removeChild(o.childNodes[0]);this.toolbar&&this.toolbar.element&&(this.toolbar.parentNode=this.toolbar.element.parentNode,this.toolbar.nextSibling=this.toolbar.element.nextSibling,o.appendChild(this.toolbar.element),e.addClass(this.toolbar.element,"fullpage")),e.addClass(this.element,"fullpage"),o.appendChild(this.element),this.element.style.height="100vh",this.element.style.width="100vw",this.toolbar&&this.toolbar.element&&(this.element.style.height=e.getElementSize(this.element).y-e.getElementSize(this.toolbar.element).y+"px"),t[this.hash].fullPage=!0,e.delegate(this,P)({})}else{for(this.element.style.margin=this.elementMargin,this.element.style.padding=this.elementPadding,a.margin=this.bodyMargin,s.margin=this.docMargin,a.padding=this.bodyPadding,s.padding=this.docPadding,a.width=this.bodyWidth,s.width=this.docWidth,a.height=this.bodyHeight,s.height=this.docHeight,a.display=this.bodyDisplay,o.removeChild(this.element),i=this.previousBody.length,r=0;r<i;r++)o.appendChild(this.previousBody.shift());e.removeClass(this.element,"fullpage"),t[this.hash].prevElementParent.insertBefore(this.element,t[this.hash].prevNextSibling),this.toolbar&&this.toolbar.element&&(o.removeChild(this.toolbar.element),e.removeClass(this.toolbar.element,"fullpage"),this.toolbar.parentNode.insertBefore(this.toolbar.element,this.toolbar.nextSibling),delete this.toolbar.parentNode,delete this.toolbar.nextSibling),this.element.style.width=t[this.hash].prevElementWidth,this.element.style.height=t[this.hash].prevElementHeight;var u=0;e.requestAnimationFrame((function t(){e.setPageScroll(l.pageScroll);var n=e.getPageScroll();++u<10&&(n.x!==l.pageScroll.x||n.y!==l.pageScroll.y)&&e.requestAnimationFrame(t)})),t[this.hash].fullPage=!1,e.delegate(this,O)({})}return this.navigator&&this.viewport&&this.navigator.update(this.viewport),this.raiseEvent("full-page",{fullPage:n}),this},setFullScreen:function(t){var n=this;if(!e.supportsFullScreen)return this.setFullPage(t);if(e.isFullScreen()===t)return this;var i={fullScreen:t,preventDefaultAction:!1};if(this.raiseEvent("pre-full-screen",i),i.preventDefaultAction)return this;if(t){if(this.setFullPage(!0),!this.isFullPage())return this;this.fullPageStyleWidth=this.element.style.width,this.fullPageStyleHeight=this.element.style.height,this.element.style.width="100%",this.element.style.height="100%";var r=function t(){var i=e.isFullScreen();i||(e.removeEvent(document,e.fullScreenEventName,t),e.removeEvent(document,e.fullScreenErrorEventName,t),n.setFullPage(!1),n.isFullPage()&&(n.element.style.width=n.fullPageStyleWidth,n.element.style.height=n.fullPageStyleHeight)),n.navigator&&n.viewport&&setTimeout((function(){n.navigator.update(n.viewport)})),n.raiseEvent("full-screen",{fullScreen:i})};e.addEvent(document,e.fullScreenEventName,r),e.addEvent(document,e.fullScreenErrorEventName,r),e.requestFullScreen(document.body)}else e.exitFullScreen();return this},isVisible:function(){return"hidden"!==this.container.style.visibility},isFullScreen:function(){return e.isFullScreen()&&this.isFullPage()},setVisible:function(e){return this.container.style.visibility=e?"":"hidden",this.raiseEvent("visible",{visible:e}),this},addTiledImage:function(t){e.console.assert(t,"[Viewer.addTiledImage] options is required"),e.console.assert(t.tileSource,"[Viewer.addTiledImage] options.tileSource is required"),e.console.assert(!t.replace||t.index>-1&&t.index<this.world.getItemCount(),"[Viewer.addTiledImage] if options.replace is used, options.index must be a valid index in Viewer.world");var n=this;t.replace&&(t.replaceItem=n.world.getItemAt(t.index)),this._hideMessage(),void 0===t.placeholderFillStyle&&(t.placeholderFillStyle=this.placeholderFillStyle),void 0===t.opacity&&(t.opacity=this.opacity),void 0===t.preload&&(t.preload=this.preload),void 0===t.compositeOperation&&(t.compositeOperation=this.compositeOperation),void 0===t.crossOriginPolicy&&(t.crossOriginPolicy=void 0!==t.tileSource.crossOriginPolicy?t.tileSource.crossOriginPolicy:this.crossOriginPolicy),void 0===t.ajaxWithCredentials&&(t.ajaxWithCredentials=this.ajaxWithCredentials),void 0===t.loadTilesWithAjax&&(t.loadTilesWithAjax=this.loadTilesWithAjax),void 0===t.ajaxHeaders||null===t.ajaxHeaders?t.ajaxHeaders=this.ajaxHeaders:e.isPlainObject(t.ajaxHeaders)&&e.isPlainObject(this.ajaxHeaders)&&(t.ajaxHeaders=e.extend({},this.ajaxHeaders,t.ajaxHeaders));var i={options:t};function r(e){for(var r=0;r<n._loadQueue.length;r++)if(n._loadQueue[r]===i){n._loadQueue.splice(r,1);break}0===n._loadQueue.length&&o(i),n.raiseEvent("add-item-failed",e),t.error&&t.error(e)}function o(e){n.collectionMode&&(n.world.arrange({immediately:e.options.collectionImmediately,rows:n.collectionRows,columns:n.collectionColumns,layout:n.collectionLayout,tileSize:n.collectionTileSize,tileMargin:n.collectionTileMargin}),n.world.setAutoRefigureSizes(!0))}function a(){for(var t,i,r;n._loadQueue.length&&(t=n._loadQueue[0]).tileSource;){if(n._loadQueue.splice(0,1),t.options.replace){var a=n.world.getIndexOfItem(t.options.replaceItem);-1!==a&&(t.options.index=a),n.world.removeItem(t.options.replaceItem)}i=new e.TiledImage({viewer:n,source:t.tileSource,viewport:n.viewport,drawer:n.drawer,tileCache:n.tileCache,imageLoader:n.imageLoader,x:t.options.x,y:t.options.y,width:t.options.width,height:t.options.height,fitBounds:t.options.fitBounds,fitBoundsPlacement:t.options.fitBoundsPlacement,clip:t.options.clip,placeholderFillStyle:t.options.placeholderFillStyle,opacity:t.options.opacity,preload:t.options.preload,degrees:t.options.degrees,flipped:t.options.flipped,compositeOperation:t.options.compositeOperation,springStiffness:n.springStiffness,animationTime:n.animationTime,minZoomImageRatio:n.minZoomImageRatio,wrapHorizontal:n.wrapHorizontal,wrapVertical:n.wrapVertical,immediateRender:n.immediateRender,blendTime:n.blendTime,alwaysBlend:n.alwaysBlend,minPixelRatio:n.minPixelRatio,smoothTileEdgesMinZoom:n.smoothTileEdgesMinZoom,iOSDevice:n.iOSDevice,crossOriginPolicy:t.options.crossOriginPolicy,ajaxWithCredentials:t.options.ajaxWithCredentials,loadTilesWithAjax:t.options.loadTilesWithAjax,ajaxHeaders:t.options.ajaxHeaders,debugMode:n.debugMode,subPixelRoundingForTransparency:n.subPixelRoundingForTransparency}),n.collectionMode&&n.world.setAutoRefigureSizes(!1),n.navigator&&(r=e.extend({},t.options,{replace:!1,originalTiledImage:i,tileSource:t.tileSource}),n.navigator.addTiledImage(r)),n.world.addItem(i,{index:t.options.index}),0===n._loadQueue.length&&o(t),1!==n.world.getItemCount()||n.preserveViewport||n.viewport.goHome(!0),t.options.success&&t.options.success({item:i})}}e.isArray(t.tileSource)?setTimeout((function(){r({message:"[Viewer.addTiledImage] Sequences can not be added; add them one at a time instead.",source:t.tileSource,options:t})})):(this._loadQueue.push(i),function(t,n,i,r,o){var a=t;if("string"===e.type(n))if(n.match(/^\s*<.*>\s*$/))n=e.parseXml(n);else if(n.match(/^\s*[{[].*[}\]]\s*$/))try{var s=e.parseJSON(n);n=s}catch(e){}function l(e,t){e.ready?r(e):(e.addHandler("ready",(function(){r(e)})),e.addHandler("open-failed",(function(e){o({message:e.message,source:t})})))}setTimeout((function(){if("string"===e.type(n))(n=new e.TileSource({url:n,crossOriginPolicy:void 0!==i.crossOriginPolicy?i.crossOriginPolicy:t.crossOriginPolicy,ajaxWithCredentials:t.ajaxWithCredentials,ajaxHeaders:i.ajaxHeaders?i.ajaxHeaders:t.ajaxHeaders,splitHashDataForPost:t.splitHashDataForPost,useCanvas:t.useCanvas,success:function(e){r(e.tileSource)}})).addHandler("open-failed",(function(e){o(e)}));else if(e.isPlainObject(n)||n.nodeType)if(void 0!==n.crossOriginPolicy||void 0===i.crossOriginPolicy&&void 0===t.crossOriginPolicy||(n.crossOriginPolicy=void 0!==i.crossOriginPolicy?i.crossOriginPolicy:t.crossOriginPolicy),void 0===n.ajaxWithCredentials&&(n.ajaxWithCredentials=t.ajaxWithCredentials),void 0===n.useCanvas&&(n.useCanvas=t.useCanvas),e.isFunction(n.getTileUrl)){var s=new e.TileSource(n);s.getTileUrl=n.getTileUrl,r(s)}else{var c=e.TileSource.determineType(a,n);if(!c)return void o({message:"Unable to load TileSource",source:n});var u=c.prototype.configure.apply(a,[n]);l(new c(u),n)}else l(n,n)}))}(this,t.tileSource,t,(function(e){i.tileSource=e,a()}),(function(e){e.options=t,r(e),a()})))},addSimpleImage:function(t){e.console.assert(t,"[Viewer.addSimpleImage] options is required"),e.console.assert(t.url,"[Viewer.addSimpleImage] options.url is required");var n=e.extend({},t,{tileSource:{type:"image",url:t.url}});delete n.url,this.addTiledImage(n)},addLayer:function(t){var n=this;e.console.error("[Viewer.addLayer] this function is deprecated; use Viewer.addTiledImage() instead.");var i=e.extend({},t,{success:function(e){n.raiseEvent("add-layer",{options:t,drawer:e.item})},error:function(e){n.raiseEvent("add-layer-failed",e)}});return this.addTiledImage(i),this},getLayerAtLevel:function(t){return e.console.error("[Viewer.getLayerAtLevel] this function is deprecated; use World.getItemAt() instead."),this.world.getItemAt(t)},getLevelOfLayer:function(t){return e.console.error("[Viewer.getLevelOfLayer] this function is deprecated; use World.getIndexOfItem() instead."),this.world.getIndexOfItem(t)},getLayersCount:function(){return e.console.error("[Viewer.getLayersCount] this function is deprecated; use World.getItemCount() instead."),this.world.getItemCount()},setLayerLevel:function(t,n){return e.console.error("[Viewer.setLayerLevel] this function is deprecated; use World.setItemIndex() instead."),this.world.setItemIndex(t,n)},removeLayer:function(t){return e.console.error("[Viewer.removeLayer] this function is deprecated; use World.removeItem() instead."),this.world.removeItem(t)},forceRedraw:function(){return t[this.hash].forceRedraw=!0,this},forceResize:function(){t[this.hash].needsResize=!0,t[this.hash].forceResize=!0},bindSequenceControls:function(){var t=e.delegate(this,u),n=e.delegate(this,d),i=e.delegate(this,this.goToNextPage),r=e.delegate(this,this.goToPreviousPage),o=this.navImages,a=!0;return this.showSequenceControl&&((this.previousButton||this.nextButton)&&(a=!1),this.previousButton=new e.Button({element:this.previousButton?e.getElement(this.previousButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.PreviousPage"),srcRest:R(this.prefixUrl,o.previous.REST),srcGroup:R(this.prefixUrl,o.previous.GROUP),srcHover:R(this.prefixUrl,o.previous.HOVER),srcDown:R(this.prefixUrl,o.previous.DOWN),onRelease:r,onFocus:t,onBlur:n}),this.nextButton=new e.Button({element:this.nextButton?e.getElement(this.nextButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.NextPage"),srcRest:R(this.prefixUrl,o.next.REST),srcGroup:R(this.prefixUrl,o.next.GROUP),srcHover:R(this.prefixUrl,o.next.HOVER),srcDown:R(this.prefixUrl,o.next.DOWN),onRelease:i,onFocus:t,onBlur:n}),this.navPrevNextWrap||this.previousButton.disable(),this.tileSources&&this.tileSources.length||this.nextButton.disable(),a&&(this.paging=new e.ButtonGroup({buttons:[this.previousButton,this.nextButton],clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.pagingControl=this.paging.element,this.toolbar?this.toolbar.addControl(this.pagingControl,{anchor:e.ControlAnchor.BOTTOM_RIGHT}):this.addControl(this.pagingControl,{anchor:this.sequenceControlAnchor||e.ControlAnchor.TOP_LEFT}))),this},bindStandardControls:function(){var t=e.delegate(this,k),n=e.delegate(this,j),i=e.delegate(this,L),r=e.delegate(this,D),o=e.delegate(this,B),a=e.delegate(this,z),s=e.delegate(this,_),l=e.delegate(this,H),c=e.delegate(this,U),p=e.delegate(this,V),h=e.delegate(this,u),f=e.delegate(this,d),m=this.navImages,g=[],v=!0;return this.showNavigationControl&&((this.zoomInButton||this.zoomOutButton||this.homeButton||this.fullPageButton||this.rotateLeftButton||this.rotateRightButton||this.flipButton)&&(v=!1),this.showZoomControl&&(g.push(this.zoomInButton=new e.Button({element:this.zoomInButton?e.getElement(this.zoomInButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.ZoomIn"),srcRest:R(this.prefixUrl,m.zoomIn.REST),srcGroup:R(this.prefixUrl,m.zoomIn.GROUP),srcHover:R(this.prefixUrl,m.zoomIn.HOVER),srcDown:R(this.prefixUrl,m.zoomIn.DOWN),onPress:t,onRelease:n,onClick:i,onEnter:t,onExit:n,onFocus:h,onBlur:f})),g.push(this.zoomOutButton=new e.Button({element:this.zoomOutButton?e.getElement(this.zoomOutButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.ZoomOut"),srcRest:R(this.prefixUrl,m.zoomOut.REST),srcGroup:R(this.prefixUrl,m.zoomOut.GROUP),srcHover:R(this.prefixUrl,m.zoomOut.HOVER),srcDown:R(this.prefixUrl,m.zoomOut.DOWN),onPress:r,onRelease:n,onClick:o,onEnter:r,onExit:n,onFocus:h,onBlur:f}))),this.showHomeControl&&g.push(this.homeButton=new e.Button({element:this.homeButton?e.getElement(this.homeButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.Home"),srcRest:R(this.prefixUrl,m.home.REST),srcGroup:R(this.prefixUrl,m.home.GROUP),srcHover:R(this.prefixUrl,m.home.HOVER),srcDown:R(this.prefixUrl,m.home.DOWN),onRelease:a,onFocus:h,onBlur:f})),this.showFullPageControl&&g.push(this.fullPageButton=new e.Button({element:this.fullPageButton?e.getElement(this.fullPageButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.FullPage"),srcRest:R(this.prefixUrl,m.fullpage.REST),srcGroup:R(this.prefixUrl,m.fullpage.GROUP),srcHover:R(this.prefixUrl,m.fullpage.HOVER),srcDown:R(this.prefixUrl,m.fullpage.DOWN),onRelease:s,onFocus:h,onBlur:f})),this.showRotationControl&&(g.push(this.rotateLeftButton=new e.Button({element:this.rotateLeftButton?e.getElement(this.rotateLeftButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.RotateLeft"),srcRest:R(this.prefixUrl,m.rotateleft.REST),srcGroup:R(this.prefixUrl,m.rotateleft.GROUP),srcHover:R(this.prefixUrl,m.rotateleft.HOVER),srcDown:R(this.prefixUrl,m.rotateleft.DOWN),onRelease:l,onFocus:h,onBlur:f})),g.push(this.rotateRightButton=new e.Button({element:this.rotateRightButton?e.getElement(this.rotateRightButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.RotateRight"),srcRest:R(this.prefixUrl,m.rotateright.REST),srcGroup:R(this.prefixUrl,m.rotateright.GROUP),srcHover:R(this.prefixUrl,m.rotateright.HOVER),srcDown:R(this.prefixUrl,m.rotateright.DOWN),onRelease:c,onFocus:h,onBlur:f}))),this.showFlipControl&&g.push(this.flipButton=new e.Button({element:this.flipButton?e.getElement(this.flipButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.Flip"),srcRest:R(this.prefixUrl,m.flip.REST),srcGroup:R(this.prefixUrl,m.flip.GROUP),srcHover:R(this.prefixUrl,m.flip.HOVER),srcDown:R(this.prefixUrl,m.flip.DOWN),onRelease:p,onFocus:h,onBlur:f})),v?(this.buttonGroup=new e.ButtonGroup({buttons:g,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.navControl=this.buttonGroup.element,this.addHandler("open",e.delegate(this,F)),this.toolbar?this.toolbar.addControl(this.navControl,{anchor:this.navigationControlAnchor||e.ControlAnchor.TOP_LEFT}):this.addControl(this.navControl,{anchor:this.navigationControlAnchor||e.ControlAnchor.TOP_LEFT})):this.customButtons=g),this},currentPage:function(){return this._sequenceIndex},goToPage:function(e){return this.tileSources&&e>=0&&e<this.tileSources.length&&(this._sequenceIndex=e,this._updateSequenceButtons(e),this.open(this.tileSources[e]),this.referenceStrip&&this.referenceStrip.setFocus(e),this.raiseEvent("page",{page:e})),this},addOverlay:function(t,n,i,a){var s;if(s=e.isPlainObject(t)?t:{element:t,location:n,placement:i,onDraw:a},t=e.getElement(s.element),o(this.currentOverlays,t)>=0)return this;var l=r(this,s);return this.currentOverlays.push(l),l.drawHTML(this.overlaysContainer,this.viewport),this.raiseEvent("add-overlay",{element:t,location:s.location,placement:s.placement}),this},updateOverlay:function(n,i,r){var a;return n=e.getElement(n),(a=o(this.currentOverlays,n))>=0&&(this.currentOverlays[a].update(i,r),t[this.hash].forceRedraw=!0,this.raiseEvent("update-overlay",{element:n,location:i,placement:r})),this},removeOverlay:function(n){var i;return n=e.getElement(n),(i=o(this.currentOverlays,n))>=0&&(this.currentOverlays[i].destroy(),this.currentOverlays.splice(i,1),t[this.hash].forceRedraw=!0,this.raiseEvent("remove-overlay",{element:n})),this},clearOverlays:function(){for(;this.currentOverlays.length>0;)this.currentOverlays.pop().destroy();return t[this.hash].forceRedraw=!0,this.raiseEvent("clear-overlay",{}),this},getOverlayById:function(t){var n;return t=e.getElement(t),(n=o(this.currentOverlays,t))>=0?this.currentOverlays[n]:null},_updateSequenceButtons:function(e){this.nextButton&&(this.tileSources&&this.tileSources.length-1!==e?this.nextButton.enable():this.navPrevNextWrap||this.nextButton.disable()),this.previousButton&&(e>0?this.previousButton.enable():this.navPrevNextWrap||this.previousButton.disable())},_showMessage:function(t){this._hideMessage();var n=e.makeNeutralElement("div");n.appendChild(document.createTextNode(t)),this.messageDiv=e.makeCenteredNode(n),e.addClass(this.messageDiv,"openseadragon-message"),this.container.appendChild(this.messageDiv)},_hideMessage:function(){var e=this.messageDiv;e&&(e.parentNode.removeChild(e),delete this.messageDiv)},gestureSettingsByDeviceType:function(e){switch(e){case"mouse":return this.gestureSettingsMouse;case"touch":return this.gestureSettingsTouch;case"pen":return this.gestureSettingsPen;default:return this.gestureSettingsUnknown}},_drawOverlays:function(){var e,t=this.currentOverlays.length;for(e=0;e<t;e++)this.currentOverlays[e].drawHTML(this.overlaysContainer,this.viewport)},_cancelPendingImages:function(){this._loadQueue=[]},removeReferenceStrip:function(){this.showReferenceStrip=!1,this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null)},addReferenceStrip:function(){if(this.showReferenceStrip=!0,this.sequenceMode){if(this.referenceStrip)return;this.tileSources.length&&this.tileSources.length>1&&(this.referenceStrip=new e.ReferenceStrip({id:this.referenceStripElement,position:this.referenceStripPosition,sizeRatio:this.referenceStripSizeRatio,scroll:this.referenceStripScroll,height:this.referenceStripHeight,width:this.referenceStripWidth,tileSources:this.tileSources,prefixUrl:this.prefixUrl,useCanvas:this.useCanvas,viewer:this}),this.referenceStrip.setFocus(this._sequenceIndex))}else e.console.warn('Attempting to display a reference strip while "sequenceMode" is off.')},_addUpdatePixelDensityRatioEvent:function(){this._updatePixelDensityRatioBind=this._updatePixelDensityRatio.bind(this),e.addEvent(window,"resize",this._updatePixelDensityRatioBind)},_removeUpdatePixelDensityRatioEvent:function(){e.removeEvent(window,"resize",this._updatePixelDensityRatioBind)},_updatePixelDensityRatio:function(){var t=e.pixelDensityRatio,n=e.getCurrentPixelDensityRatio();t!==n&&(e.pixelDensityRatio=n,this.world.resetItems(),this.forceRedraw())},goToPreviousPage:function(){var e=this._sequenceIndex-1;this.navPrevNextWrap&&e<0&&(e+=this.tileSources.length),this.goToPage(e)},goToNextPage:function(){var e=this._sequenceIndex+1;this.navPrevNextWrap&&e>=this.tileSources.length&&(e=0),this.goToPage(e)},isAnimating:function(){return t[this.hash].animating}})}(s),function(e){function t(e){var t={tracker:e.eventSource,position:e.position,quick:e.quick,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};if(this.viewer.raiseEvent("navigator-click",t),!t.preventDefaultAction&&e.quick&&this.viewer.viewport&&(this.panVertical||this.panHorizontal)){this.viewer.viewport.flipped&&(e.position.x=this.viewport.getContainerSize().x-e.position.x);var n=this.viewport.pointFromPixel(e.position);this.panVertical?this.panHorizontal||(n.x=this.viewer.viewport.getCenter(!0).x):n.y=this.viewer.viewport.getCenter(!0).y,this.viewer.viewport.panTo(n),this.viewer.viewport.applyConstraints()}}function n(e){var t={tracker:e.eventSource,position:e.position,delta:e.delta,speed:e.speed,direction:e.direction,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};this.viewer.raiseEvent("navigator-drag",t),!t.preventDefaultAction&&this.viewer.viewport&&(this.panHorizontal||(e.delta.x=0),this.panVertical||(e.delta.y=0),this.viewer.viewport.flipped&&(e.delta.x=-e.delta.x),this.viewer.viewport.panBy(this.viewport.deltaPointsFromPixels(e.delta)),this.viewer.constrainDuringPan&&this.viewer.viewport.applyConstraints())}function i(e){e.insideElementPressed&&this.viewer.viewport&&this.viewer.viewport.applyConstraints()}function r(e){var t={tracker:e.eventSource,position:e.position,scroll:e.scroll,shift:e.shift,originalEvent:e.originalEvent,preventDefault:e.preventDefault};this.viewer.raiseEvent("navigator-scroll",t),e.preventDefault=t.preventDefault}function o(e,t){a(e,"rotate("+t+"deg)")}function a(e,t){e.style.webkitTransform=t,e.style.mozTransform=t,e.style.msTransform=t,e.style.oTransform=t,e.style.transform=t}e.Navigator=function(a){var s,l,c,u,d=a.viewer,p=this;function h(e){o(p.displayRegionContainer,e),o(p.displayRegion,-e),p.viewport.setRotation(e)}(a.element||a.id?(a.element?(a.id&&e.console.warn("Given option.id for Navigator was ignored since option.element was provided and is being used instead."),a.element.id?a.id=a.element.id:a.id="navigator-"+e.now(),this.element=a.element):this.element=document.getElementById(a.id),a.controlOptions={anchor:e.ControlAnchor.NONE,attachToViewer:!1,autoFade:!1}):(a.id="navigator-"+e.now(),this.element=e.makeNeutralElement("div"),a.controlOptions={anchor:e.ControlAnchor.TOP_RIGHT,attachToViewer:!0,autoFade:a.autoFade},a.position&&("BOTTOM_RIGHT"===a.position?a.controlOptions.anchor=e.ControlAnchor.BOTTOM_RIGHT:"BOTTOM_LEFT"===a.position?a.controlOptions.anchor=e.ControlAnchor.BOTTOM_LEFT:"TOP_RIGHT"===a.position?a.controlOptions.anchor=e.ControlAnchor.TOP_RIGHT:"TOP_LEFT"===a.position?a.controlOptions.anchor=e.ControlAnchor.TOP_LEFT:"ABSOLUTE"===a.position&&(a.controlOptions.anchor=e.ControlAnchor.ABSOLUTE,a.controlOptions.top=a.top,a.controlOptions.left=a.left,a.controlOptions.height=a.height,a.controlOptions.width=a.width))),this.element.id=a.id,this.element.className+=" navigator",(a=e.extend(!0,{sizeRatio:e.DEFAULT_SETTINGS.navigatorSizeRatio},a,{element:this.element,tabIndex:-1,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:a.animationTime,autoResize:!1,minZoomImageRatio:1,background:a.background,opacity:a.opacity,borderColor:a.borderColor,displayRegionColor:a.displayRegionColor})).minPixelRatio=this.minPixelRatio=d.minPixelRatio,e.setElementTouchActionNone(this.element),this.borderWidth=2,this.fudge=new e.Point(1,1),this.totalBorderWidths=new e.Point(2*this.borderWidth,2*this.borderWidth).minus(this.fudge),a.controlOptions.anchor!==e.ControlAnchor.NONE&&(c=this.element.style,u=this.borderWidth,c.margin="0px",c.border=u+"px solid "+a.borderColor,c.padding="0px",c.background=a.background,c.opacity=a.opacity,c.overflow="hidden"),this.displayRegion=e.makeNeutralElement("div"),this.displayRegion.id=this.element.id+"-displayregion",this.displayRegion.className="displayregion",function(e,t){e.position="relative",e.top="0px",e.left="0px",e.fontSize="0px",e.overflow="hidden",e.border=t+"px solid "+a.displayRegionColor,e.margin="0px",e.padding="0px",e.background="transparent",e.float="left",e.cssFloat="left",e.styleFloat="left",e.zIndex=999999999,e.cursor="default"}(this.displayRegion.style,this.borderWidth),e.setElementPointerEventsNone(this.displayRegion),e.setElementTouchActionNone(this.displayRegion),this.displayRegionContainer=e.makeNeutralElement("div"),this.displayRegionContainer.id=this.element.id+"-displayregioncontainer",this.displayRegionContainer.className="displayregioncontainer",this.displayRegionContainer.style.width="100%",this.displayRegionContainer.style.height="100%",e.setElementPointerEventsNone(this.displayRegionContainer),e.setElementTouchActionNone(this.displayRegionContainer),d.addControl(this.element,a.controlOptions),this._resizeWithViewer=a.controlOptions.anchor!==e.ControlAnchor.ABSOLUTE&&a.controlOptions.anchor!==e.ControlAnchor.NONE,a.width&&a.height?(this.setWidth(a.width),this.setHeight(a.height)):this._resizeWithViewer&&(s=e.getElementSize(d.element),this.element.style.height=Math.round(s.y*a.sizeRatio)+"px",this.element.style.width=Math.round(s.x*a.sizeRatio)+"px",this.oldViewerSize=s,l=e.getElementSize(this.element),this.elementArea=l.x*l.y),this.oldContainerSize=new e.Point(0,0),e.Viewer.apply(this,[a]),this.displayRegionContainer.appendChild(this.displayRegion),this.element.getElementsByTagName("div")[0].appendChild(this.displayRegionContainer),a.navigatorRotate)&&(h(a.viewer.viewport?a.viewer.viewport.getRotation():a.viewer.degrees||0),a.viewer.addHandler("rotate",(function(e){h(e.degrees)})));this.innerTracker.destroy(),this.innerTracker=new e.MouseTracker({userData:"Navigator.innerTracker",element:this.element,dragHandler:e.delegate(this,n),clickHandler:e.delegate(this,t),releaseHandler:e.delegate(this,i),scrollHandler:e.delegate(this,r),preProcessEventHandler:function(e){"wheel"===e.eventType&&(e.preventDefault=!0)}}),this.outerTracker.userData="Navigator.outerTracker",e.setElementPointerEventsNone(this.canvas),e.setElementPointerEventsNone(this.container),this.addHandler("reset-size",(function(){p.viewport&&p.viewport.goHome(!0)})),d.world.addHandler("item-index-change",(function(e){window.setTimeout((function(){var t=p.world.getItemAt(e.previousIndex);p.world.setItemIndex(t,e.newIndex)}),1)})),d.world.addHandler("remove-item",(function(e){var t=e.item,n=p._getMatchingItem(t);n&&p.world.removeItem(n)})),this.update(d.viewport)},e.extend(e.Navigator.prototype,e.EventSource.prototype,e.Viewer.prototype,{updateSize:function(){if(this.viewport){var t=new e.Point(0===this.container.clientWidth?1:this.container.clientWidth,0===this.container.clientHeight?1:this.container.clientHeight);t.equals(this.oldContainerSize)||(this.viewport.resize(t,!0),this.viewport.goHome(!0),this.oldContainerSize=t,this.drawer.clear(),this.world.draw())}},setWidth:function(e){this.width=e,this.element.style.width="number"==typeof e?e+"px":e,this._resizeWithViewer=!1},setHeight:function(e){this.height=e,this.element.style.height="number"==typeof e?e+"px":e,this._resizeWithViewer=!1},setFlip:function(e){return this.viewport.setFlip(e),this.setDisplayTransform(this.viewer.viewport.getFlip()?"scale(-1,1)":"scale(1,1)"),this},setDisplayTransform:function(e){a(this.displayRegion,e),a(this.canvas,e),a(this.element,e)},update:function(t){var n,i,r,o,a,s;if(n=e.getElementSize(this.viewer.element),this._resizeWithViewer&&n.x&&n.y&&!n.equals(this.oldViewerSize)&&(this.oldViewerSize=n,this.maintainSizeRatio||!this.elementArea?(i=n.x*this.sizeRatio,r=n.y*this.sizeRatio):(i=Math.sqrt(this.elementArea*(n.x/n.y)),r=this.elementArea/i),this.element.style.width=Math.round(i)+"px",this.element.style.height=Math.round(r)+"px",this.elementArea||(this.elementArea=i*r),this.updateSize()),t&&this.viewport){o=t.getBoundsNoRotate(!0),a=this.viewport.pixelFromPointNoRotate(o.getTopLeft(),!1),s=this.viewport.pixelFromPointNoRotate(o.getBottomRight(),!1).minus(this.totalBorderWidths);var l=this.displayRegion.style;l.display=this.world.getItemCount()?"block":"none",l.top=Math.round(a.y)+"px",l.left=Math.round(a.x)+"px";var c=Math.abs(a.x-s.x),u=Math.abs(a.y-s.y);l.width=Math.round(Math.max(c,0))+"px",l.height=Math.round(Math.max(u,0))+"px"}},addTiledImage:function(t){var n=this,i=t.originalTiledImage;delete t.original;var r=e.extend({},t,{success:function(e){var t=e.item;function r(){n._matchBounds(t,i)}t._originalForNavigator=i,n._matchBounds(t,i,!0),n._matchOpacity(t,i),n._matchCompositeOperation(t,i),i.addHandler("bounds-change",r),i.addHandler("clip-change",r),i.addHandler("opacity-change",(function(){n._matchOpacity(t,i)})),i.addHandler("composite-operation-change",(function(){n._matchCompositeOperation(t,i)}))}});return e.Viewer.prototype.addTiledImage.apply(this,[r])},destroy:function(){return e.Viewer.prototype.destroy.apply(this)},_getMatchingItem:function(e){for(var t,n=this.world.getItemCount(),i=0;i<n;i++)if((t=this.world.getItemAt(i))._originalForNavigator===e)return t;return null},_matchBounds:function(e,t,n){var i=t.getBoundsNoRotate();e.setPosition(i.getTopLeft(),n),e.setWidth(i.width,n),e.setRotation(t.getRotation(),n),e.setClip(t.getClip()),e.setFlip(t.getFlip())},_matchOpacity:function(e,t){e.setOpacity(t.opacity)},_matchCompositeOperation:function(e,t){e.setCompositeOperation(t.compositeOperation)}})}(s),function(e){var t={Errors:{Dzc:"Sorry, we don't support Deep Zoom Collections!",Dzi:"Hmm, this doesn't appear to be a valid Deep Zoom Image.",Xml:"Hmm, this doesn't appear to be a valid Deep Zoom Image.",ImageFormat:"Sorry, we don't support {0}-based Deep Zoom Images.",Security:"It looks like a security restriction stopped us from loading this Deep Zoom Image.",Status:"This space unintentionally left blank ({0} {1}).",OpenFailed:"Unable to open {0}: {1}"},Tooltips:{FullPage:"Toggle full page",Home:"Go home",ZoomIn:"Zoom in",ZoomOut:"Zoom out",NextPage:"Next page",PreviousPage:"Previous page",RotateLeft:"Rotate left",RotateRight:"Rotate right",Flip:"Flip Horizontally"}};e.extend(e,{getString:function(n){var i,r=n.split("."),o=null,a=arguments,s=t;for(i=0;i<r.length-1;i++)s=s[r[i]]||{};return"string"!=typeof(o=s[r[i]])&&(e.console.error("Untranslated source string:",n),o=""),o.replace(/\{\d+\}/g,(function(e){var t=parseInt(e.match(/\d+/),10)+1;return t<a.length?a[t]:""}))},setString:function(e,n){var i,r=e.split("."),o=t;for(i=0;i<r.length-1;i++)o[r[i]]||(o[r[i]]={}),o=o[r[i]];o[r[i]]=n}})}(s),function(e){e.Point=function(e,t){this.x="number"==typeof e?e:0,this.y="number"==typeof t?t:0},e.Point.prototype={clone:function(){return new e.Point(this.x,this.y)},plus:function(t){return new e.Point(this.x+t.x,this.y+t.y)},minus:function(t){return new e.Point(this.x-t.x,this.y-t.y)},times:function(t){return new e.Point(this.x*t,this.y*t)},divide:function(t){return new e.Point(this.x/t,this.y/t)},negate:function(){return new e.Point(-this.x,-this.y)},distanceTo:function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},squaredDistanceTo:function(e){return Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2)},apply:function(t){return new e.Point(t(this.x),t(this.y))},equals:function(t){return t instanceof e.Point&&this.x===t.x&&this.y===t.y},rotate:function(t,n){var i,r;if(n=n||new e.Point(0,0),t%90==0){switch(e.positiveModulo(t,360)){case 0:i=1,r=0;break;case 90:i=0,r=1;break;case 180:i=-1,r=0;break;case 270:i=0,r=-1}}else{var o=t*Math.PI/180;i=Math.cos(o),r=Math.sin(o)}var a=i*(this.x-n.x)-r*(this.y-n.y)+n.x,s=r*(this.x-n.x)+i*(this.y-n.y)+n.y;return new e.Point(a,s)},toString:function(){return"("+Math.round(100*this.x)/100+","+Math.round(100*this.y)/100+")"}}}(s),function(e){e.TileSource=function(t,n,i,r,o,a){var s,l,c=this,u=arguments;if(s=e.isPlainObject(t)?t:{width:u[0],height:u[1],tileSize:u[2],tileOverlap:u[3],minLevel:u[4],maxLevel:u[5]},e.EventSource.call(this),e.extend(!0,this,s),!this.success)for(l=0;l<arguments.length;l++)if(e.isFunction(arguments[l])){this.success=arguments[l];break}this.success&&this.addHandler("ready",(function(e){c.success(e)})),"string"===e.type(arguments[0])&&(this.url=arguments[0]),this.url?(this.aspectRatio=1,this.dimensions=new e.Point(10,10),this._tileWidth=0,this._tileHeight=0,this.tileOverlap=0,this.minLevel=0,this.maxLevel=0,this.ready=!1,this.getImageInfo(this.url)):(this.ready=!0,this.aspectRatio=s.width&&s.height?s.width/s.height:1,this.dimensions=new e.Point(s.width,s.height),this.tileSize?(this._tileWidth=this._tileHeight=this.tileSize,delete this.tileSize):(this.tileWidth?(this._tileWidth=this.tileWidth,delete this.tileWidth):this._tileWidth=0,this.tileHeight?(this._tileHeight=this.tileHeight,delete this.tileHeight):this._tileHeight=0),this.tileOverlap=s.tileOverlap?s.tileOverlap:0,this.minLevel=s.minLevel?s.minLevel:0,this.maxLevel=void 0!==s.maxLevel&&null!==s.maxLevel?s.maxLevel:s.width&&s.height?Math.ceil(Math.log(Math.max(s.width,s.height))/Math.log(2)):0,this.success&&e.isFunction(this.success)&&this.success(this))},e.TileSource.prototype={getTileSize:function(t){return e.console.error("[TileSource.getTileSize] is deprecated. Use TileSource.getTileWidth() and TileSource.getTileHeight() instead"),this._tileWidth},getTileWidth:function(e){return this._tileWidth?this._tileWidth:this.getTileSize(e)},getTileHeight:function(e){return this._tileHeight?this._tileHeight:this.getTileSize(e)},setMaxLevel:function(e){this.maxLevel=e,this._memoizeLevelScale()},getLevelScale:function(e){return this._memoizeLevelScale(),this.getLevelScale(e)},_memoizeLevelScale:function(){var e,t={};for(e=0;e<=this.maxLevel;e++)t[e]=1/Math.pow(2,this.maxLevel-e);this.getLevelScale=function(e){return t[e]}},getNumTiles:function(t){var n=this.getLevelScale(t),i=Math.ceil(n*this.dimensions.x/this.getTileWidth(t)),r=Math.ceil(n*this.dimensions.y/this.getTileHeight(t));return new e.Point(i,r)},getPixelRatio:function(t){var n=this.dimensions.times(this.getLevelScale(t)),i=1/n.x*e.pixelDensityRatio,r=1/n.y*e.pixelDensityRatio;return new e.Point(i,r)},getClosestLevel:function(){var e,t;for(e=this.minLevel+1;e<=this.maxLevel&&!((t=this.getNumTiles(e)).x>1||t.y>1);e++);return e-1},getTileAtPoint:function(t,n){var i=n.x>=0&&n.x<=1&&n.y>=0&&n.y<=1/this.aspectRatio;e.console.assert(i,"[TileSource.getTileAtPoint] must be called with a valid point.");var r=this.dimensions.x*this.getLevelScale(t),o=n.x*r,a=n.y*r,s=Math.floor(o/this.getTileWidth(t)),l=Math.floor(a/this.getTileHeight(t));n.x>=1&&(s=this.getNumTiles(t).x-1);return n.y>=1/this.aspectRatio-1e-15&&(l=this.getNumTiles(t).y-1),new e.Point(s,l)},getTileBounds:function(t,n,i,r){var o=this.dimensions.times(this.getLevelScale(t)),a=this.getTileWidth(t),s=this.getTileHeight(t),l=0===n?0:a*n-this.tileOverlap,c=0===i?0:s*i-this.tileOverlap,u=a+(0===n?1:2)*this.tileOverlap,d=s+(0===i?1:2)*this.tileOverlap,p=1/o.x;return u=Math.min(u,o.x-l),d=Math.min(d,o.y-c),r?new e.Rect(0,0,u,d):new e.Rect(l*p,c*p,u*p,d*p)},getImageInfo:function(t){var n,i,r,o,a,s,l,c=this;t&&(l=(s=(a=t.split("/"))[a.length-1]).lastIndexOf("."))>-1&&(a[a.length-1]=s.slice(0,l));var u=null;if(this.splitHashDataForPost){var d=t.indexOf("#");-1!==d&&(u=t.substring(d+1),t=t.substr(0,d))}i=function(n){"string"==typeof n&&(n=e.parseXml(n));var i=e.TileSource.determineType(c,n,t);i?(void 0===(o=i.prototype.configure.apply(c,[n,t,u])).ajaxWithCredentials&&(o.ajaxWithCredentials=c.ajaxWithCredentials),r=new i(o),c.ready=!0,c.raiseEvent("ready",{tileSource:r})):c.raiseEvent("open-failed",{message:"Unable to load TileSource",source:t})},t.match(/\.js$/)?(n=t.split("/").pop().replace(".js",""),e.jsonp({url:t,async:!1,callbackName:n,callback:i})):e.makeAjaxRequest({url:t,postData:u,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,success:function(t){var n=function(t){var n,i,r=t.responseText,o=t.status;if(!t)throw new Error(e.getString("Errors.Security"));if(200!==t.status&&0!==t.status)throw n=404===(o=t.status)?"Not Found":t.statusText,new Error(e.getString("Errors.Status",o,n));if(r.match(/\s*<.*/))try{i=t.responseXML&&t.responseXML.documentElement?t.responseXML:e.parseXml(r)}catch(e){i=t.responseText}else if(r.match(/\s*[{[].*/))try{i=e.parseJSON(r)}catch(e){i=r}else i=r;return i}(t);i(n)},error:function(n,i){var r;try{r="HTTP "+n.status+" attempting to load TileSource: "+t}catch(e){r=(void 0!==i&&i.toString?i.toString():"Unknown error")+" attempting to load TileSource: "+t}e.console.error(r),c.raiseEvent("open-failed",{message:r,source:t,postData:u})}})},supports:function(e,t){return!1},configure:function(e,t,n){throw new Error("Method not implemented.")},getTileUrl:function(e,t,n){throw new Error("Method not implemented.")},getTilePostData:function(e,t,n){return null},getTileAjaxHeaders:function(e,t,n){return{}},getTileHashKey:function(e,t,n,i,r,o){function a(e){return r?e+"+"+JSON.stringify(r):e}return a("string"!=typeof i?e+"/"+t+"_"+n:i)},tileExists:function(e,t,n){var i=this.getNumTiles(e);return e>=this.minLevel&&e<=this.maxLevel&&t>=0&&n>=0&&t<i.x&&n<i.y},hasTransparency:function(e,t,n,i){return!!e||t.match(".png")},downloadTileStart:function(t){var n=t.userData,i=new Image;n.image=i,n.request=null;var r=function(e){i?(i.onload=i.onerror=i.onabort=null,t.finish(e?null:i,n.request,e)):t.finish(null,n.request,"Image load failed: undefined Image instance.")};i.onload=function(){r()},i.onabort=i.onerror=function(){r("Image load aborted.")},t.loadWithAjax?n.request=e.makeAjaxRequest({url:t.src,withCredentials:t.ajaxWithCredentials,headers:t.ajaxHeaders,responseType:"arraybuffer",postData:t.postData,success:function(e){var t;try{t=new window.Blob([e.response])}catch(i){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if("TypeError"===i.name&&n){var o=new n;o.append(e.response),t=o.getBlob()}}0===t.size?r("Empty image response."):i.src=(window.URL||window.webkitURL).createObjectURL(t)},error:function(e){r("Image load aborted - XHR error")}}):(!1!==t.crossOriginPolicy&&(i.crossOrigin=t.crossOriginPolicy),i.src=t.src)},downloadTileAbort:function(e){e.userData.request&&e.userData.request.abort();var t=e.userData.image;e.userData.image&&(t.onload=t.onerror=t.onabort=null)},createTileCache:function(e,t,n){e._data=t},destroyTileCache:function(e){e._data=null,e._renderedContext=null},getTileCacheData:function(e){return e._data},getTileCacheDataAsImage:function(e){return e._data},getTileCacheDataAsContext2D:function(e){if(!e._renderedContext){var t=document.createElement("canvas");t.width=e._data.width,t.height=e._data.height,e._renderedContext=t.getContext("2d"),e._renderedContext.drawImage(e._data,0,0),e._data=null}return e._renderedContext}},e.extend(!0,e.TileSource.prototype,e.EventSource.prototype),e.TileSource.determineType=function(t,n,i){var r;for(r in s)if(r.match(/.+TileSource$/)&&e.isFunction(s[r])&&e.isFunction(s[r].prototype.supports)&&s[r].prototype.supports.call(t,n,i))return s[r];return e.console.error("No TileSource was able to open %s %s",i,n),null}}(s),function(e){function t(t,n){var i,r,o=n.Image,a=o.Url,s=o.Format,l=o.Size,c=o.DisplayRect||[],u=parseInt(l.Width,10),d=parseInt(l.Height,10),p=parseInt(o.TileSize,10),h=parseInt(o.Overlap,10),f=[];for(r=0;r<c.length;r++)i=c[r].Rect,f.push(new e.DisplayRect(parseInt(i.X,10),parseInt(i.Y,10),parseInt(i.Width,10),parseInt(i.Height,10),parseInt(i.MinLevel,10),parseInt(i.MaxLevel,10)));return e.extend(!0,{width:u,height:d,tileSize:p,tileOverlap:h,minLevel:null,maxLevel:null,tilesUrl:a,fileFormat:s,displayRects:f},n)}e.DziTileSource=function(t,n,i,r,o,a,s,l,c){var u,d,p,h;if(h=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4],fileFormat:arguments[5],displayRects:arguments[6],minLevel:arguments[7],maxLevel:arguments[8]},this._levelRects={},this.tilesUrl=h.tilesUrl,this.fileFormat=h.fileFormat,this.displayRects=h.displayRects,this.displayRects)for(u=this.displayRects.length-1;u>=0;u--)for(p=(d=this.displayRects[u]).minLevel;p<=d.maxLevel;p++)this._levelRects[p]||(this._levelRects[p]=[]),this._levelRects[p].push(d);e.TileSource.apply(this,[h])},e.extend(e.DziTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){var n;return e.Image?n=e.Image.xmlns:e.documentElement&&("Image"!==e.documentElement.localName&&"Image"!==e.documentElement.tagName||(n=e.documentElement.namespaceURI)),-1!==(n=(n||"").toLowerCase()).indexOf("schemas.microsoft.com/deepzoom/2008")||-1!==n.indexOf("schemas.microsoft.com/deepzoom/2009")},configure:function(n,i,r){var o;return o=e.isPlainObject(n)?t(this,n):function(n,i){if(!i||!i.documentElement)throw new Error(e.getString("Errors.Xml"));var r,o,a,s,l,c=i.documentElement,u=c.localName||c.tagName,d=i.documentElement.namespaceURI,p=null,h=[];if("Image"===u)try{if(void 0===(s=c.getElementsByTagName("Size")[0])&&(s=c.getElementsByTagNameNS(d,"Size")[0]),p={Image:{xmlns:"http://schemas.microsoft.com/deepzoom/2008",Url:c.getAttribute("Url"),Format:c.getAttribute("Format"),DisplayRect:null,Overlap:parseInt(c.getAttribute("Overlap"),10),TileSize:parseInt(c.getAttribute("TileSize"),10),Size:{Height:parseInt(s.getAttribute("Height"),10),Width:parseInt(s.getAttribute("Width"),10)}}},!e.imageFormatSupported(p.Image.Format))throw new Error(e.getString("Errors.ImageFormat",p.Image.Format.toUpperCase()));for(void 0===(r=c.getElementsByTagName("DisplayRect"))&&(r=c.getElementsByTagNameNS(d,"DisplayRect")[0]),l=0;l<r.length;l++)void 0===(a=(o=r[l]).getElementsByTagName("Rect")[0])&&(a=o.getElementsByTagNameNS(d,"Rect")[0]),h.push({Rect:{X:parseInt(a.getAttribute("X"),10),Y:parseInt(a.getAttribute("Y"),10),Width:parseInt(a.getAttribute("Width"),10),Height:parseInt(a.getAttribute("Height"),10),MinLevel:parseInt(o.getAttribute("MinLevel"),10),MaxLevel:parseInt(o.getAttribute("MaxLevel"),10)}});return h.length&&(p.Image.DisplayRect=h),t(n,p)}catch(t){throw t instanceof Error?t:new Error(e.getString("Errors.Dzi"))}else{if("Collection"===u)throw new Error(e.getString("Errors.Dzc"));if("Error"===u){var f=c.getElementsByTagName("Message")[0].firstChild.nodeValue;throw new Error(f)}}throw new Error(e.getString("Errors.Dzi"))}(this,n),i&&!o.tilesUrl&&(o.tilesUrl=i.replace(/([^/]+?)(\.(dzi|xml|js)?(\?[^/]*)?)?\/?$/,"$1_files/"),-1!==i.search(/\.(dzi|xml|js)\?/)?o.queryParams=i.match(/\?.*/):o.queryParams=""),o},getTileUrl:function(e,t,n){return[this.tilesUrl,e,"/",t,"_",n,".",this.fileFormat,this.queryParams].join("")},tileExists:function(e,t,n){var i,r,o,a,s,l,c,u=this._levelRects[e];if(this.minLevel&&e<this.minLevel||this.maxLevel&&e>this.maxLevel)return!1;if(!u||!u.length)return!0;for(c=u.length-1;c>=0;c--)if(!(e<(i=u[c]).minLevel||e>i.maxLevel)&&(r=this.getLevelScale(e),o=i.x*r,a=i.y*r,s=o+i.width*r,l=a+i.height*r,o=Math.floor(o/this._tileWidth),a=Math.floor(a/this._tileWidth),s=Math.ceil(s/this._tileWidth),l=Math.ceil(l/this._tileWidth),o<=t&&t<s&&a<=n&&n<l))return!0;return!1}})}(s),function(e){function t(e){var t=Array.isArray(e.profile)?e.profile[0]:e.profile,n=-1!==["http://library.stanford.edu/iiif/image-api/compliance.html#level0","http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0","http://iiif.io/api/image/2/level0.json","level0","https://iiif.io/api/image/3/level0.json"].indexOf(t),i=!1;return 2===e.version&&e.profile.length>1&&e.profile[1].supports&&(i=-1!==e.profile[1].supports.indexOf("sizeByW")),3===e.version&&e.extraFeatures&&(i=-1!==e.extraFeatures.indexOf("sizeByWh")),!n||i}function n(e){for(var t=[],n=0;n<e.sizes.length;n++)t.push({url:e._id+"/full/"+e.sizes[n].width+","+(3===e.version?e.sizes[n].height:"")+"/0/default."+e.tileFormat,width:e.sizes[n].width,height:e.sizes[n].height});return t.sort((function(e,t){return e.width-t.width}))}function i(t,n,r){var o,a;if(3===t.nodeType&&r)(a=t.nodeValue.trim()).match(/^\d*$/)&&(a=Number(a)),n[r]?(e.isArray(n[r])||(n[r]=[n[r]]),n[r].push(a)):n[r]=a;else if(1===t.nodeType)for(o=0;o<t.childNodes.length;o++)i(t.childNodes[o],n,t.nodeName)}e.IIIFTileSource=function(i){if(e.extend(!0,this,i),this._id=this["@id"]||this.id||this.identifier||null,!(this.height&&this.width&&this._id))throw new Error("IIIF required parameters (width, height, or id) not provided.");if(i.tileSizePerScaleFactor={},this.tileFormat=this.tileFormat||"jpg",this.version=i.version,this.tile_width&&this.tile_height)i.tileWidth=this.tile_width,i.tileHeight=this.tile_height;else if(this.tile_width)i.tileSize=this.tile_width;else if(this.tile_height)i.tileSize=this.tile_height;else if(this.tiles)if(1===this.tiles.length)i.tileWidth=this.tiles[0].width,i.tileHeight=this.tiles[0].height||this.tiles[0].width,this.scale_factors=this.tiles[0].scaleFactors;else{this.scale_factors=[];for(var r=0;r<this.tiles.length;r++)for(var o=0;o<this.tiles[r].scaleFactors.length;o++){var a=this.tiles[r].scaleFactors[o];this.scale_factors.push(a),i.tileSizePerScaleFactor[a]={width:this.tiles[r].width,height:this.tiles[r].height||this.tiles[r].width}}}else if(t(i)){for(var s=Math.min(this.height,this.width),l=[256,512,1024],c=[],u=0;u<l.length;u++)l[u]<=s&&c.push(l[u]);c.length>0?i.tileSize=Math.max.apply(null,c):i.tileSize=s}else this.sizes&&this.sizes.length>0?(this.emulateLegacyImagePyramid=!0,i.levels=n(this),e.extend(!0,i,{width:i.levels[i.levels.length-1].width,height:i.levels[i.levels.length-1].height,tileSize:Math.max(i.height,i.width),tileOverlap:0,minLevel:0,maxLevel:i.levels.length-1}),this.levels=i.levels):e.console.error("Nothing in the info.json to construct image pyramids from");if(!i.maxLevel&&!this.emulateLegacyImagePyramid)if(this.scale_factors){var d=Math.max.apply(null,this.scale_factors);i.maxLevel=Math.round(Math.log(d)*Math.LOG2E)}else i.maxLevel=Number(Math.round(Math.log(Math.max(this.width,this.height),2)));e.TileSource.apply(this,[i])},e.extend(e.IIIFTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return!(!e.protocol||"http://iiif.io/api/image"!==e.protocol)||(!(!e["@context"]||"http://library.stanford.edu/iiif/image-api/1.1/context.json"!==e["@context"]&&"http://iiif.io/api/image/1/context.json"!==e["@context"])||(!(!e.profile||0!==e.profile.indexOf("http://library.stanford.edu/iiif/image-api/compliance.html"))||(!!(e.identifier&&e.width&&e.height)||!(!e.documentElement||"info"!==e.documentElement.tagName||"http://library.stanford.edu/iiif/image-api/ns/"!==e.documentElement.namespaceURI))))},configure:function(t,n,r){if(e.isPlainObject(t)){if(t["@context"]){var o=t["@context"];if(Array.isArray(o))for(var a=0;a<o.length;a++)if("string"==typeof o[a]&&(/^http:\/\/iiif\.io\/api\/image\/[1-3]\/context\.json$/.test(o[a])||"http://library.stanford.edu/iiif/image-api/1.1/context.json"===o[a])){o=o[a];break}switch(o){case"http://iiif.io/api/image/1/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/context.json":t.version=1;break;case"http://iiif.io/api/image/2/context.json":t.version=2;break;case"http://iiif.io/api/image/3/context.json":t.version=3;break;default:e.console.error("Data has a @context property which contains no known IIIF context URI.")}}else t["@context"]="http://iiif.io/api/image/1.0/context.json",t["@id"]=n.replace("/info.json",""),t.version=1;if(t.preferredFormats)for(var l=0;l<t.preferredFormats.length;l++)if(s.imageFormatSupported(t.preferredFormats[l])){t.tileFormat=t.preferredFormats[l];break}return t}var c=function(t){if(!t||!t.documentElement)throw new Error(e.getString("Errors.Xml"));var n=t.documentElement,r=n.tagName,o=null;if("info"===r)try{return i(n,o={}),o}catch(t){throw t instanceof Error?t:new Error(e.getString("Errors.IIIF"))}throw new Error(e.getString("Errors.IIIF"))}(t);return c["@context"]="http://iiif.io/api/image/1.0/context.json",c["@id"]=n.replace("/info.xml",""),c.version=1,c},getTileWidth:function(t){if(this.emulateLegacyImagePyramid)return e.TileSource.prototype.getTileWidth.call(this,t);var n=Math.pow(2,this.maxLevel-t);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[n]?this.tileSizePerScaleFactor[n].width:this._tileWidth},getTileHeight:function(t){if(this.emulateLegacyImagePyramid)return e.TileSource.prototype.getTileHeight.call(this,t);var n=Math.pow(2,this.maxLevel-t);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[n]?this.tileSizePerScaleFactor[n].height:this._tileHeight},getLevelScale:function(t){if(this.emulateLegacyImagePyramid){var n=NaN;return this.levels.length>0&&t>=this.minLevel&&t<=this.maxLevel&&(n=this.levels[t].width/this.levels[this.maxLevel].width),n}return e.TileSource.prototype.getLevelScale.call(this,t)},getNumTiles:function(t){return this.emulateLegacyImagePyramid?this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0):e.TileSource.prototype.getNumTiles.call(this,t)},getTileAtPoint:function(t,n){return this.emulateLegacyImagePyramid?new e.Point(0,0):e.TileSource.prototype.getTileAtPoint.call(this,t,n)},getTileUrl:function(e,t,n){if(this.emulateLegacyImagePyramid){var i=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(i=this.levels[e].url),i}var r,o,a,s,l,c,u,d,p,h,f,m,g,v=Math.pow(.5,this.maxLevel-e),y=Math.round(this.width*v),b=Math.round(this.height*v);return r=this.getTileWidth(e),o=this.getTileHeight(e),a=Math.round(r/v),s=Math.round(o/v),g=1===this.version?"native."+this.tileFormat:"default."+this.tileFormat,y<r&&b<o?(h=2===this.version&&y===this.width?"full":3===this.version&&y===this.width&&b===this.height?"max":3===this.version?y+","+b:y+",",l="full"):(c=t*a,u=n*s,d=Math.min(a,this.width-c),p=Math.min(s,this.height-u),l=0===t&&0===n&&d===this.width&&p===this.height?"full":[c,u,d,p].join(","),f=Math.round(d*v),m=Math.round(p*v),h=2===this.version&&f===this.width?"full":3===this.version&&f===this.width&&m===this.height?"max":3===this.version?f+","+m:f+","),[this._id,l,h,"0",g].join("/")},__testonly__:{canBeTiled:t,constructLevels:n}})}(s),function(e){e.OsmTileSource=function(t,n,i,r,o){var a;(a=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4]}).width&&a.height||(a.width=65572864,a.height=65572864),a.tileSize||(a.tileSize=256,a.tileOverlap=0),a.tilesUrl||(a.tilesUrl="http://tile.openstreetmap.org/"),a.minLevel=8,e.TileSource.apply(this,[a])},e.extend(e.OsmTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"openstreetmaps"===e.type},configure:function(e,t,n){return e},getTileUrl:function(e,t,n){return this.tilesUrl+(e-8)+"/"+t+"/"+n+".png"}})}(s),function(e){e.TmsTileSource=function(t,n,i,r,o){var a;a=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4]};var s,l=256*Math.ceil(a.width/256),c=256*Math.ceil(a.height/256);s=l>c?l/256:c/256,a.maxLevel=Math.ceil(Math.log(s)/Math.log(2))-1,a.tileSize=256,a.width=l,a.height=c,e.TileSource.apply(this,[a])},e.extend(e.TmsTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"tiledmapservice"===e.type},configure:function(e,t,n){return e},getTileUrl:function(e,t,n){var i=this.getNumTiles(e).y-1;return this.tilesUrl+e+"/"+t+"/"+(i-n)+".png"}})}(s),function(e){e.ZoomifyTileSource=function(e){void 0===e.tileSize&&(e.tileSize=256),void 0===e.fileFormat&&(e.fileFormat="jpg",this.fileFormat=e.fileFormat);var t={x:e.width,y:e.height};for(e.imageSizes=[{x:e.width,y:e.height}],e.gridSize=[this._getGridSize(e.width,e.height,e.tileSize)];parseInt(t.x,10)>e.tileSize||parseInt(t.y,10)>e.tileSize;)t.x=Math.floor(t.x/2),t.y=Math.floor(t.y/2),e.imageSizes.push({x:t.x,y:t.y}),e.gridSize.push(this._getGridSize(t.x,t.y,e.tileSize));e.imageSizes.reverse(),e.gridSize.reverse(),e.minLevel=0,e.maxLevel=e.gridSize.length-1,s.TileSource.apply(this,[e])},e.extend(e.ZoomifyTileSource.prototype,e.TileSource.prototype,{_getGridSize:function(e,t,n){return{x:Math.ceil(e/n),y:Math.ceil(t/n)}},_calculateAbsoluteTileNumber:function(e,t,n){for(var i=0,r={},o=0;o<e;o++)i+=(r=this.gridSize[o]).x*r.y;return i+=(r=this.gridSize[e]).x*n+t},supports:function(e,t){return e.type&&"zoomifytileservice"===e.type},configure:function(e,t,n){return e},getTileUrl:function(e,t,n){var i,r=this._calculateAbsoluteTileNumber(e,t,n);return i=Math.floor(r/256),this.tilesUrl+"TileGroup"+i+"/"+e+"-"+t+"-"+n+"."+this.fileFormat}})}(s),function(e){function t(e,t){return t.levels}e.LegacyTileSource=function(t){var n,i,r;e.isArray(t)&&(n={type:"legacy-image-pyramid",levels:t}),n.levels=function(t){var n,i,r=[];for(i=0;i<t.length;i++)(n=t[i]).height&&n.width&&n.url?r.push({url:n.url,width:Number(n.width),height:Number(n.height)}):e.console.error("Unsupported image format: %s",n.url?n.url:"<no URL>");return r.sort((function(e,t){return e.height-t.height}))}(n.levels),n.levels.length>0?(i=n.levels[n.levels.length-1].width,r=n.levels[n.levels.length-1].height):(i=0,r=0,e.console.error("No supported image formats found")),e.extend(!0,n,{width:i,height:r,tileSize:Math.max(r,i),tileOverlap:0,minLevel:0,maxLevel:n.levels.length>0?n.levels.length-1:0}),e.TileSource.apply(this,[n]),this.levels=n.levels},e.extend(e.LegacyTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"legacy-image-pyramid"===e.type||e.documentElement&&"legacy-image-pyramid"===e.documentElement.getAttribute("type")},configure:function(n,i,r){return e.isPlainObject(n)?t(this,n):function(n,i){if(!i||!i.documentElement)throw new Error(e.getString("Errors.Xml"));var r,o,a=i.documentElement,s=a.tagName,l=null,c=[];if("image"===s)try{for(l={type:a.getAttribute("type"),levels:[]},c=a.getElementsByTagName("level"),o=0;o<c.length;o++)r=c[o],l.levels.push({url:r.getAttribute("url"),width:parseInt(r.getAttribute("width"),10),height:parseInt(r.getAttribute("height"),10)});return t(n,l)}catch(e){throw e instanceof Error?e:new Error("Unknown error parsing Legacy Image Pyramid XML.")}else{if("collection"===s)throw new Error("Legacy Image Pyramid Collections not yet supported.");if("error"===s)throw new Error("Error: "+i)}throw new Error("Unknown element "+s)}(this,n)},getLevelScale:function(e){var t=NaN;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(t=this.levels[e].width/this.levels[this.maxLevel].width),t},getNumTiles:function(t){return this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0)},getTileUrl:function(e,t,n){var i=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(i=this.levels[e].url),i}})}(s),function(e){e.ImageTileSource=function(t){t=e.extend({buildPyramid:!0,crossOriginPolicy:!1,ajaxWithCredentials:!1,useCanvas:!0},t),e.TileSource.apply(this,[t])},e.extend(e.ImageTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"image"===e.type},configure:function(e,t,n){return e},getImageInfo:function(t){var n=this._image=new Image,i=this;this.crossOriginPolicy&&(n.crossOrigin=this.crossOriginPolicy),this.ajaxWithCredentials&&(n.useCredentials=this.ajaxWithCredentials),e.addEvent(n,"load",(function(){i.width=n.naturalWidth,i.height=n.naturalHeight,i.aspectRatio=i.width/i.height,i.dimensions=new e.Point(i.width,i.height),i._tileWidth=i.width,i._tileHeight=i.height,i.tileOverlap=0,i.minLevel=0,i.levels=i._buildLevels(),i.maxLevel=i.levels.length-1,i.ready=!0,i.raiseEvent("ready",{tileSource:i})})),e.addEvent(n,"error",(function(){i.raiseEvent("open-failed",{message:"Error loading image at "+t,source:t})})),n.src=t},getLevelScale:function(e){var t=NaN;return e>=this.minLevel&&e<=this.maxLevel&&(t=this.levels[e].width/this.levels[this.maxLevel].width),t},getNumTiles:function(t){return this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0)},getTileUrl:function(e,t,n){var i=null;return e>=this.minLevel&&e<=this.maxLevel&&(i=this.levels[e].url),i},getContext2D:function(e,t,n){var i=null;return e>=this.minLevel&&e<=this.maxLevel&&(i=this.levels[e].context2D),i},destroy:function(){this._freeupCanvasMemory()},_buildLevels:function(){var t=[{url:this._image.src,width:this._image.naturalWidth,height:this._image.naturalHeight}];if(!this.buildPyramid||!e.supportsCanvas||!this.useCanvas)return delete this._image,t;var n=this._image.naturalWidth,i=this._image.naturalHeight,r=document.createElement("canvas"),o=r.getContext("2d");if(r.width=n,r.height=i,o.drawImage(this._image,0,0,n,i),t[0].context2D=o,delete this._image,e.isCanvasTainted(r))return t;for(;n>=2&&i>=2;){n=Math.floor(n/2),i=Math.floor(i/2);var a=document.createElement("canvas"),s=a.getContext("2d");a.width=n,a.height=i,s.drawImage(r,0,0,n,i),t.splice(0,0,{context2D:s,width:n,height:i}),r=a,o=s}return t},_freeupCanvasMemory:function(){for(var e=0;e<this.levels.length;e++)this.levels[e].context2D&&(this.levels[e].context2D.canvas.height=0,this.levels[e].context2D.canvas.width=0)}})}(s),function(e){e.TileSourceCollection=function(t,n,i,r){e.console.error("TileSourceCollection is deprecated; use World instead")}}(s),function(e){function t(n){e.requestAnimationFrame((function(){!function(n){var i;n.shouldFade&&(i=1-(e.now()-n.fadeBeginTime)/n.fadeLength,i=Math.min(1,i),i=Math.max(0,i),n.imgGroup&&e.setElementOpacity(n.imgGroup,i,!0),i>0&&t(n))}(n)}))}function n(t,n){t.element.disabled||(n>=e.ButtonState.GROUP&&t.currentState===e.ButtonState.REST&&(!function(t){t.shouldFade=!1,t.imgGroup&&e.setElementOpacity(t.imgGroup,1,!0)}(t),t.currentState=e.ButtonState.GROUP),n>=e.ButtonState.HOVER&&t.currentState===e.ButtonState.GROUP&&(t.imgHover&&(t.imgHover.style.visibility=""),t.currentState=e.ButtonState.HOVER),n>=e.ButtonState.DOWN&&t.currentState===e.ButtonState.HOVER&&(t.imgDown&&(t.imgDown.style.visibility=""),t.currentState=e.ButtonState.DOWN))}function i(n,i){n.element.disabled||(i<=e.ButtonState.HOVER&&n.currentState===e.ButtonState.DOWN&&(n.imgDown&&(n.imgDown.style.visibility="hidden"),n.currentState=e.ButtonState.HOVER),i<=e.ButtonState.GROUP&&n.currentState===e.ButtonState.HOVER&&(n.imgHover&&(n.imgHover.style.visibility="hidden"),n.currentState=e.ButtonState.GROUP),i<=e.ButtonState.REST&&n.currentState===e.ButtonState.GROUP&&(!function(n){n.shouldFade=!0,n.fadeBeginTime=e.now()+n.fadeDelay,window.setTimeout((function(){t(n)}),n.fadeDelay)}(n),n.currentState=e.ButtonState.REST))}e.ButtonState={REST:0,GROUP:1,HOVER:2,DOWN:3},e.Button=function(t){var r=this;e.EventSource.call(this),e.extend(!0,this,{tooltip:null,srcRest:null,srcGroup:null,srcHover:null,srcDown:null,clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:e.DEFAULT_SETTINGS.clickDistThreshold,fadeDelay:0,fadeLength:2e3,onPress:null,onRelease:null,onClick:null,onEnter:null,onExit:null,onFocus:null,onBlur:null,userData:null},t),this.element=t.element||e.makeNeutralElement("div"),t.element||(this.imgRest=e.makeTransparentImage(this.srcRest),this.imgGroup=e.makeTransparentImage(this.srcGroup),this.imgHover=e.makeTransparentImage(this.srcHover),this.imgDown=e.makeTransparentImage(this.srcDown),this.imgRest.alt=this.imgGroup.alt=this.imgHover.alt=this.imgDown.alt=this.tooltip,e.setElementPointerEventsNone(this.imgRest),e.setElementPointerEventsNone(this.imgGroup),e.setElementPointerEventsNone(this.imgHover),e.setElementPointerEventsNone(this.imgDown),this.element.style.position="relative",e.setElementTouchActionNone(this.element),this.imgGroup.style.position=this.imgHover.style.position=this.imgDown.style.position="absolute",this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top="0px",this.imgGroup.style.left=this.imgHover.style.left=this.imgDown.style.left="0px",this.imgHover.style.visibility=this.imgDown.style.visibility="hidden",e.Browser.vendor===e.BROWSERS.FIREFOX&&e.Browser.version<3&&(this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top=""),this.element.appendChild(this.imgRest),this.element.appendChild(this.imgGroup),this.element.appendChild(this.imgHover),this.element.appendChild(this.imgDown)),this.addHandler("press",this.onPress),this.addHandler("release",this.onRelease),this.addHandler("click",this.onClick),this.addHandler("enter",this.onEnter),this.addHandler("exit",this.onExit),this.addHandler("focus",this.onFocus),this.addHandler("blur",this.onBlur),this.currentState=e.ButtonState.GROUP,this.fadeBeginTime=null,this.shouldFade=!1,this.element.style.display="inline-block",this.element.style.position="relative",this.element.title=this.tooltip,this.tracker=new e.MouseTracker({userData:"Button.tracker",element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(t){t.insideElementPressed?(n(r,e.ButtonState.DOWN),r.raiseEvent("enter",{originalEvent:t.originalEvent})):t.buttonDownAny||n(r,e.ButtonState.HOVER)},focusHandler:function(e){r.tracker.enterHandler(e),r.raiseEvent("focus",{originalEvent:e.originalEvent})},leaveHandler:function(t){i(r,e.ButtonState.GROUP),t.insideElementPressed&&r.raiseEvent("exit",{originalEvent:t.originalEvent})},blurHandler:function(e){r.tracker.leaveHandler(e),r.raiseEvent("blur",{originalEvent:e.originalEvent})},pressHandler:function(t){n(r,e.ButtonState.DOWN),r.raiseEvent("press",{originalEvent:t.originalEvent})},releaseHandler:function(t){t.insideElementPressed&&t.insideElementReleased?(i(r,e.ButtonState.HOVER),r.raiseEvent("release",{originalEvent:t.originalEvent})):t.insideElementPressed?i(r,e.ButtonState.GROUP):n(r,e.ButtonState.HOVER)},clickHandler:function(e){e.quick&&r.raiseEvent("click",{originalEvent:e.originalEvent})},keyHandler:function(e){13===e.keyCode?(r.raiseEvent("click",{originalEvent:e.originalEvent}),r.raiseEvent("release",{originalEvent:e.originalEvent}),e.preventDefault=!0):e.preventDefault=!1}}),i(this,e.ButtonState.REST)},e.extend(e.Button.prototype,e.EventSource.prototype,{notifyGroupEnter:function(){n(this,e.ButtonState.GROUP)},notifyGroupExit:function(){i(this,e.ButtonState.REST)},disable:function(){this.notifyGroupExit(),this.element.disabled=!0,this.tracker.setTracking(!1),e.setElementOpacity(this.element,.2,!0)},enable:function(){this.element.disabled=!1,this.tracker.setTracking(!0),e.setElementOpacity(this.element,1,!0),this.notifyGroupEnter()},destroy:function(){this.imgRest&&(this.element.removeChild(this.imgRest),this.imgRest=null),this.imgGroup&&(this.element.removeChild(this.imgGroup),this.imgGroup=null),this.imgHover&&(this.element.removeChild(this.imgHover),this.imgHover=null),this.imgDown&&(this.element.removeChild(this.imgDown),this.imgDown=null),this.removeAllHandlers(),this.tracker.destroy(),this.element=null}})}(s),function(e){e.ButtonGroup=function(t){e.extend(!0,this,{buttons:[],clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:e.DEFAULT_SETTINGS.clickDistThreshold,labelText:""},t);var n,i=this.buttons.concat([]),r=this;if(this.element=t.element||e.makeNeutralElement("div"),!t.group)for(this.element.style.display="inline-block",n=0;n<i.length;n++)this.element.appendChild(i[n].element);e.setElementTouchActionNone(this.element),this.tracker=new e.MouseTracker({userData:"ButtonGroup.tracker",element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(e){var t;for(t=0;t<r.buttons.length;t++)r.buttons[t].notifyGroupEnter()},leaveHandler:function(e){var t;if(!e.insideElementPressed)for(t=0;t<r.buttons.length;t++)r.buttons[t].notifyGroupExit()}})},e.ButtonGroup.prototype={emulateEnter:function(){this.tracker.enterHandler({eventSource:this.tracker})},emulateLeave:function(){this.tracker.leaveHandler({eventSource:this.tracker})},destroy:function(){for(;this.buttons.length;){var e=this.buttons.pop();this.element.removeChild(e.element),e.destroy()}this.tracker.destroy(),this.element=null}}}(s),function(e){e.Rect=function(t,n,i,r,o){var a,s;this.x="number"==typeof t?t:0,this.y="number"==typeof n?n:0,this.width="number"==typeof i?i:0,this.height="number"==typeof r?r:0,this.degrees="number"==typeof o?o:0,this.degrees=e.positiveModulo(this.degrees,360),this.degrees>=270?(a=this.getTopRight(),this.x=a.x,this.y=a.y,s=this.height,this.height=this.width,this.width=s,this.degrees-=270):this.degrees>=180?(a=this.getBottomRight(),this.x=a.x,this.y=a.y,this.degrees-=180):this.degrees>=90&&(a=this.getBottomLeft(),this.x=a.x,this.y=a.y,s=this.height,this.height=this.width,this.width=s,this.degrees-=90)},e.Rect.fromSummits=function(t,n,i){var r=t.distanceTo(n),o=t.distanceTo(i),a=n.minus(t),s=Math.atan(a.y/a.x);return a.x<0?s+=Math.PI:a.y<0&&(s+=2*Math.PI),new e.Rect(t.x,t.y,r,o,s/Math.PI*180)},e.Rect.prototype={clone:function(){return new e.Rect(this.x,this.y,this.width,this.height,this.degrees)},getAspectRatio:function(){return this.width/this.height},getTopLeft:function(){return new e.Point(this.x,this.y)},getBottomRight:function(){return new e.Point(this.x+this.width,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getTopRight:function(){return new e.Point(this.x+this.width,this.y).rotate(this.degrees,this.getTopLeft())},getBottomLeft:function(){return new e.Point(this.x,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getCenter:function(){return new e.Point(this.x+this.width/2,this.y+this.height/2).rotate(this.degrees,this.getTopLeft())},getSize:function(){return new e.Point(this.width,this.height)},equals:function(t){return t instanceof e.Rect&&this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.degrees===t.degrees},times:function(t){return new e.Rect(this.x*t,this.y*t,this.width*t,this.height*t,this.degrees)},translate:function(t){return new e.Rect(this.x+t.x,this.y+t.y,this.width,this.height,this.degrees)},union:function(t){var n=this.getBoundingBox(),i=t.getBoundingBox(),r=Math.min(n.x,i.x),o=Math.min(n.y,i.y),a=Math.max(n.x+n.width,i.x+i.width),s=Math.max(n.y+n.height,i.y+i.height);return new e.Rect(r,o,a-r,s-o)},intersection:function(t){var n=1e-10,i=[],r=this.getTopLeft();t.containsPoint(r,n)&&i.push(r);var o=this.getTopRight();t.containsPoint(o,n)&&i.push(o);var a=this.getBottomLeft();t.containsPoint(a,n)&&i.push(a);var s=this.getBottomRight();t.containsPoint(s,n)&&i.push(s);var l=t.getTopLeft();this.containsPoint(l,n)&&i.push(l);var c=t.getTopRight();this.containsPoint(c,n)&&i.push(c);var u=t.getBottomLeft();this.containsPoint(u,n)&&i.push(u);var d=t.getBottomRight();this.containsPoint(d,n)&&i.push(d);for(var p=this._getSegments(),h=t._getSegments(),f=0;f<p.length;f++)for(var m=p[f],g=0;g<h.length;g++){var v=h[g],y=b(m[0],m[1],v[0],v[1]);y&&i.push(y)}function b(t,i,r,o){var a=i.minus(t),s=o.minus(r),l=-s.x*a.y+a.x*s.y;if(0===l)return null;var c=(a.x*(t.y-r.y)-a.y*(t.x-r.x))/l,u=(s.x*(t.y-r.y)-s.y*(t.x-r.x))/l;return-1e-10<=c&&c<=1-n&&-1e-10<=u&&u<=1-n?new e.Point(t.x+u*a.x,t.y+u*a.y):null}if(0===i.length)return null;for(var w=i[0].x,x=i[0].x,C=i[0].y,E=i[0].y,S=1;S<i.length;S++){var T=i[S];T.x<w&&(w=T.x),T.x>x&&(x=T.x),T.y<C&&(C=T.y),T.y>E&&(E=T.y)}return new e.Rect(w,C,x-w,E-C)},_getSegments:function(){var e=this.getTopLeft(),t=this.getTopRight(),n=this.getBottomLeft(),i=this.getBottomRight();return[[e,t],[t,i],[i,n],[n,e]]},rotate:function(t,n){if(0===(t=e.positiveModulo(t,360)))return this.clone();n=n||this.getCenter();var i=this.getTopLeft().rotate(t,n),r=this.getTopRight().rotate(t,n).minus(i);r=r.apply((function(e){return Math.abs(e)<1e-15?0:e}));var o=Math.atan(r.y/r.x);return r.x<0?o+=Math.PI:r.y<0&&(o+=2*Math.PI),new e.Rect(i.x,i.y,this.width,this.height,o/Math.PI*180)},getBoundingBox:function(){if(0===this.degrees)return this.clone();var t=this.getTopLeft(),n=this.getTopRight(),i=this.getBottomLeft(),r=this.getBottomRight(),o=Math.min(t.x,n.x,i.x,r.x),a=Math.max(t.x,n.x,i.x,r.x),s=Math.min(t.y,n.y,i.y,r.y),l=Math.max(t.y,n.y,i.y,r.y);return new e.Rect(o,s,a-o,l-s)},getIntegerBoundingBox:function(){var t=this.getBoundingBox(),n=Math.floor(t.x),i=Math.floor(t.y),r=Math.ceil(t.width+t.x-n),o=Math.ceil(t.height+t.y-i);return new e.Rect(n,i,r,o)},containsPoint:function(e,t){t=t||0;var n=this.getTopLeft(),i=this.getTopRight(),r=this.getBottomLeft(),o=i.minus(n),a=r.minus(n);return(e.x-n.x)*o.x+(e.y-n.y)*o.y>=-t&&(e.x-i.x)*o.x+(e.y-i.y)*o.y<=t&&(e.x-n.x)*a.x+(e.y-n.y)*a.y>=-t&&(e.x-r.x)*a.x+(e.y-r.y)*a.y<=t},toString:function(){return"["+Math.round(100*this.x)/100+", "+Math.round(100*this.y)/100+", "+Math.round(100*this.width)/100+"x"+Math.round(100*this.height)/100+", "+Math.round(100*this.degrees)/100+"deg]"}}}(s),function(e){var t={};function n(e){var t;e.quick&&(t="horizontal"===this.scroll?Math.floor(e.position.x/this.panelWidth):Math.floor(e.position.y/this.panelHeight),this.viewer.goToPage(t));this.element.focus()}function i(t){if(this.dragging=!0,this.element){var n=Number(this.element.style.marginLeft.replace("px","")),i=Number(this.element.style.marginTop.replace("px","")),r=Number(this.element.style.width.replace("px","")),a=Number(this.element.style.height.replace("px","")),s=e.getElementSize(this.viewer.canvas);"horizontal"===this.scroll?-t.delta.x>0?n>-(r-s.x)&&(this.element.style.marginLeft=n+2*t.delta.x+"px",o(this,s.x,n+2*t.delta.x)):-t.delta.x<0&&n<0&&(this.element.style.marginLeft=n+2*t.delta.x+"px",o(this,s.x,n+2*t.delta.x)):-t.delta.y>0?i>-(a-s.y)&&(this.element.style.marginTop=i+2*t.delta.y+"px",o(this,s.y,i+2*t.delta.y)):-t.delta.y<0&&i<0&&(this.element.style.marginTop=i+2*t.delta.y+"px",o(this,s.y,i+2*t.delta.y))}}function r(t){if(this.element){var n=Number(this.element.style.marginLeft.replace("px","")),i=Number(this.element.style.marginTop.replace("px","")),r=Number(this.element.style.width.replace("px","")),a=Number(this.element.style.height.replace("px","")),s=e.getElementSize(this.viewer.canvas);"horizontal"===this.scroll?t.scroll>0?n>-(r-s.x)&&(this.element.style.marginLeft=n-60*t.scroll+"px",o(this,s.x,n-60*t.scroll)):t.scroll<0&&n<0&&(this.element.style.marginLeft=n-60*t.scroll+"px",o(this,s.x,n-60*t.scroll)):t.scroll<0?i>s.y-a&&(this.element.style.marginTop=i+60*t.scroll+"px",o(this,s.y,i+60*t.scroll)):t.scroll>0&&i<0&&(this.element.style.marginTop=i+60*t.scroll+"px",o(this,s.y,i+60*t.scroll)),t.preventDefault=!0}}function o(t,n,i){var r,o,a,s,l,c;for(r="horizontal"===t.scroll?t.panelWidth:t.panelHeight,o=Math.ceil(n/r)+5,l=o=(o=(a=Math.ceil((Math.abs(i)+n)/r)+1)-o)<0?0:o;l<a&&l<t.panels.length;l++)if(!(c=t.panels[l]).activePanel){var u,d=t.viewer.tileSources[l];u=d.referenceStripThumbnailUrl?{type:"image",url:d.referenceStripThumbnailUrl}:d,s=new e.Viewer({id:c.id,tileSources:[u],element:c,navigatorSizeRatio:t.sizeRatio,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:0,loadTilesWithAjax:t.viewer.loadTilesWithAjax,ajaxHeaders:t.viewer.ajaxHeaders,useCanvas:t.useCanvas}),e.setElementPointerEventsNone(s.canvas),e.setElementPointerEventsNone(s.container),s.innerTracker.setTracking(!1),s.outerTracker.setTracking(!1),t.miniViewers[c.id]=s,c.activePanel=!0}}function a(e){var t=e.eventSource.element;"horizontal"===this.scroll?t.style.marginBottom="0px":t.style.marginLeft="0px"}function s(t){var n=t.eventSource.element;"horizontal"===this.scroll?n.style.marginBottom="-"+e.getElementSize(n).y/2+"px":n.style.marginLeft="-"+e.getElementSize(n).x/2+"px"}function l(e){if(e.ctrl||e.alt||e.meta)e.preventDefault=!1;else switch(e.keyCode){case 38:case 39:r.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),e.preventDefault=!0;break;case 40:case 37:r.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),e.preventDefault=!0;break;default:e.preventDefault=!1}}function c(e){if(e.ctrl||e.alt||e.meta)e.preventDefault=!1;else switch(e.keyCode){case 61:case 48:case 119:case 87:case 100:r.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),e.preventDefault=!0;break;case 45:case 115:case 83:case 97:r.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),e.preventDefault=!0;break;default:e.preventDefault=!1}}e.ReferenceStrip=function(u){var d,p,h,f=u.viewer,m=e.getElementSize(f.element);for(u.id||(u.id="referencestrip-"+e.now(),this.element=e.makeNeutralElement("div"),this.element.id=u.id,this.element.className="referencestrip"),u=e.extend(!0,{sizeRatio:e.DEFAULT_SETTINGS.referenceStripSizeRatio,position:e.DEFAULT_SETTINGS.referenceStripPosition,scroll:e.DEFAULT_SETTINGS.referenceStripScroll,clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold},u,{element:this.element}),e.extend(this,u),t[this.id]={animating:!1},this.minPixelRatio=this.viewer.minPixelRatio,this.element.tabIndex=0,(p=this.element.style).marginTop="0px",p.marginRight="0px",p.marginBottom="0px",p.marginLeft="0px",p.left="0px",p.bottom="0px",p.border="0px",p.background="#000",p.position="relative",e.setElementTouchActionNone(this.element),e.setElementOpacity(this.element,.8),this.viewer=f,this.tracker=new e.MouseTracker({userData:"ReferenceStrip.tracker",element:this.element,clickHandler:e.delegate(this,n),dragHandler:e.delegate(this,i),scrollHandler:e.delegate(this,r),enterHandler:e.delegate(this,a),leaveHandler:e.delegate(this,s),keyDownHandler:e.delegate(this,l),keyHandler:e.delegate(this,c),preProcessEventHandler:function(e){"wheel"===e.eventType&&(e.preventDefault=!0)}}),u.width&&u.height?(this.element.style.width=u.width+"px",this.element.style.height=u.height+"px",f.addControl(this.element,{anchor:e.ControlAnchor.BOTTOM_LEFT})):"horizontal"===u.scroll?(this.element.style.width=m.x*u.sizeRatio*f.tileSources.length+12*f.tileSources.length+"px",this.element.style.height=m.y*u.sizeRatio+"px",f.addControl(this.element,{anchor:e.ControlAnchor.BOTTOM_LEFT})):(this.element.style.height=m.y*u.sizeRatio*f.tileSources.length+12*f.tileSources.length+"px",this.element.style.width=m.x*u.sizeRatio+"px",f.addControl(this.element,{anchor:e.ControlAnchor.TOP_LEFT})),this.panelWidth=m.x*this.sizeRatio+8,this.panelHeight=m.y*this.sizeRatio+8,this.panels=[],this.miniViewers={},h=0;h<f.tileSources.length;h++)(d=e.makeNeutralElement("div")).id=this.element.id+"-"+h,d.style.width=this.panelWidth+"px",d.style.height=this.panelHeight+"px",d.style.display="inline",d.style.float="left",d.style.cssFloat="left",d.style.styleFloat="left",d.style.padding="2px",e.setElementTouchActionNone(d),e.setElementPointerEventsNone(d),this.element.appendChild(d),d.activePanel=!1,this.panels.push(d);o(this,"vertical"===this.scroll?m.y:m.x,0),this.setFocus(0)},e.ReferenceStrip.prototype={setFocus:function(t){var n,i=this.element.querySelector("#"+this.element.id+"-"+t),r=e.getElementSize(this.viewer.canvas),s=Number(this.element.style.width.replace("px","")),l=Number(this.element.style.height.replace("px","")),c=-Number(this.element.style.marginLeft.replace("px","")),u=-Number(this.element.style.marginTop.replace("px",""));this.currentSelected!==i&&(this.currentSelected&&(this.currentSelected.style.background="#000"),this.currentSelected=i,this.currentSelected.style.background="#999","horizontal"===this.scroll?(n=Number(t)*(this.panelWidth+3))>c+r.x-this.panelWidth?(n=Math.min(n,s-r.x),this.element.style.marginLeft=-n+"px",o(this,r.x,-n)):n<c&&(n=Math.max(0,n-r.x/2),this.element.style.marginLeft=-n+"px",o(this,r.x,-n)):(n=Number(t)*(this.panelHeight+3))>u+r.y-this.panelHeight?(n=Math.min(n,l-r.y),this.element.style.marginTop=-n+"px",o(this,r.y,-n)):n<u&&(n=Math.max(0,n-r.y/2),this.element.style.marginTop=-n+"px",o(this,r.y,-n)),this.currentPage=t,a.call(this,{eventSource:this.tracker}))},update:function(){return!!t[this.id].animating},destroy:function(){if(this.miniViewers)for(var e in this.miniViewers)this.miniViewers[e].destroy();this.tracker.destroy(),this.element&&this.viewer.removeControl(this.element)}}}(s),function(e){e.DisplayRect=function(t,n,i,r,o,a){e.Rect.apply(this,[t,n,i,r]),this.minLevel=o,this.maxLevel=a},e.extend(e.DisplayRect.prototype,e.Rect.prototype)}(s),function(e){e.Spring=function(t){var n=arguments;"object"!=typeof t&&(t={initial:n.length&&"number"==typeof n[0]?n[0]:void 0,springStiffness:n.length>1?n[1].springStiffness:5,animationTime:n.length>1?n[1].animationTime:1.5}),e.console.assert("number"==typeof t.springStiffness&&0!==t.springStiffness,"[OpenSeadragon.Spring] options.springStiffness must be a non-zero number"),e.console.assert("number"==typeof t.animationTime&&t.animationTime>=0,"[OpenSeadragon.Spring] options.animationTime must be a number greater than or equal to 0"),t.exponential&&(this._exponential=!0,delete t.exponential),e.extend(!0,this,t),this.current={value:"number"==typeof this.initial?this.initial:this._exponential?0:1,time:e.now()},e.console.assert(!this._exponential||0!==this.current.value,"[OpenSeadragon.Spring] value must be non-zero for exponential springs"),this.start={value:this.current.value,time:this.current.time},this.target={value:this.current.value,time:this.current.time},this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},e.Spring.prototype={resetTo:function(t){e.console.assert(!this._exponential||0!==t,"[OpenSeadragon.Spring.resetTo] target must be non-zero for exponential springs"),this.start.value=this.target.value=this.current.value=t,this.start.time=this.target.time=this.current.time=e.now(),this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},springTo:function(t){e.console.assert(!this._exponential||0!==t,"[OpenSeadragon.Spring.springTo] target must be non-zero for exponential springs"),this.start.value=this.current.value,this.start.time=this.current.time,this.target.value=t,this.target.time=this.start.time+1e3*this.animationTime,this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value))},shiftBy:function(t){this.start.value+=t,this.target.value+=t,this._exponential&&(e.console.assert(0!==this.target.value&&0!==this.start.value,"[OpenSeadragon.Spring.shiftBy] spring value must be non-zero for exponential springs"),this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value))},setExponential:function(t){this._exponential=t,this._exponential&&(e.console.assert(0!==this.current.value&&0!==this.target.value&&0!==this.start.value,"[OpenSeadragon.Spring.setExponential] spring value must be non-zero for exponential springs"),this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},update:function(){var t,n;this.current.time=e.now(),this._exponential?(t=this.start._logValue,n=this.target._logValue):(t=this.start.value,n=this.target.value);var i,r,o=this.current.time>=this.target.time?n:t+(n-t)*(i=this.springStiffness,r=(this.current.time-this.start.time)/(this.target.time-this.start.time),(1-Math.exp(i*-r))/(1-Math.exp(-i))),a=this.current.value;return this._exponential?this.current.value=Math.exp(o):this.current.value=o,a!==this.current.value},isAtTargetValue:function(){return this.current.value===this.target.value}}}(s),function(e){e.ImageJob=function(t){e.extend(!0,this,{timeout:e.DEFAULT_SETTINGS.timeout,jobId:null},t),this.data=null,this.userData={},this.errorMsg=null},e.ImageJob.prototype={start:function(){var e=this,t=this.abort;this.jobId=window.setTimeout((function(){e.finish(null,null,"Image load exceeded timeout ("+e.timeout+" ms)")}),this.timeout),this.abort=function(){e.source.downloadTileAbort(e),"function"==typeof t&&t()},this.source.downloadTileStart(this)},finish:function(e,t,n){this.data=e,this.request=t,this.errorMsg=n,this.jobId&&window.clearTimeout(this.jobId),this.callback(this)}},e.ImageLoader=function(t){e.extend(!0,this,{jobLimit:e.DEFAULT_SETTINGS.imageLoaderLimit,timeout:e.DEFAULT_SETTINGS.timeout,jobQueue:[],jobsInProgress:0},t)},e.ImageLoader.prototype={addJob:function(t){if(!t.source){e.console.error("ImageLoader.prototype.addJob() requires [options.source]. TileSource since new API defines how images are fetched. Creating a dummy TileSource.");var n=e.TileSource.prototype;t.source={downloadTileStart:n.downloadTileStart,downloadTileAbort:n.downloadTileAbort}}var i=this,r={src:t.src,tile:t.tile||{},source:t.source,loadWithAjax:t.loadWithAjax,ajaxHeaders:t.loadWithAjax?t.ajaxHeaders:null,crossOriginPolicy:t.crossOriginPolicy,ajaxWithCredentials:t.ajaxWithCredentials,postData:t.postData,callback:function(e){!function(e,t,n){e.jobsInProgress--,(!e.jobLimit||e.jobsInProgress<e.jobLimit)&&e.jobQueue.length>0&&(e.jobQueue.shift().start(),e.jobsInProgress++);n(t.data,t.errorMsg,t.request)}(i,e,t.callback)},abort:t.abort,timeout:this.timeout},o=new e.ImageJob(r);!this.jobLimit||this.jobsInProgress<this.jobLimit?(o.start(),this.jobsInProgress++):this.jobQueue.push(o)},clear:function(){for(var e=0;e<this.jobQueue.length;e++){var t=this.jobQueue[e];"function"==typeof t.abort&&t.abort()}this.jobQueue=[]}}}(s),function(e){e.Tile=function(t,n,i,r,o,a,s,l,c,u,d,p){this.level=t,this.x=n,this.y=i,this.bounds=r,this.sourceBounds=u,this.exists=o,this._url=a,this.postData=d,this.context2D=s,this.loadWithAjax=l,this.ajaxHeaders=c,void 0===p&&(e.console.warn("Tile constructor needs 'cacheKey' variable: creation tile cache in Tile class is deprecated. TileSource.prototype.getTileHashKey will be used."),p=e.TileSource.prototype.getTileHashKey(t,n,i,a,c,d)),this.cacheKey=p,this.loaded=!1,this.loading=!1,this.element=null,this.imgElement=null,this.style=null,this.position=null,this.size=null,this.flipped=!1,this.blendStart=null,this.opacity=null,this.squaredDistance=null,this.visibility=null,this.hasTransparency=!1,this.beingDrawn=!1,this.lastTouchTime=0,this.isRightMost=!1,this.isBottomMost=!1},e.Tile.prototype={toString:function(){return this.level+"/"+this.x+"_"+this.y},_hasTransparencyChannel:function(){return console.warn("Tile.prototype._hasTransparencyChannel() has been deprecated and will be removed in the future. Use TileSource.prototype.hasTransparency() instead."),!!this.context2D||this.getUrl().match(".png")},drawHTML:function(t){if(this.cacheImageRecord)if(this.loaded){if(!this.element){var n=this.getImage();if(!n)return;this.element=e.makeNeutralElement("div"),this.imgElement=n.cloneNode(),this.imgElement.style.msInterpolationMode="nearest-neighbor",this.imgElement.style.width="100%",this.imgElement.style.height="100%",this.style=this.element.style,this.style.position="absolute"}this.element.parentNode!==t&&t.appendChild(this.element),this.imgElement.parentNode!==this.element&&this.element.appendChild(this.imgElement),this.style.top=this.position.y+"px",this.style.left=this.position.x+"px",this.style.height=this.size.y+"px",this.style.width=this.size.x+"px",this.flipped&&(this.style.transform="scaleX(-1)"),e.setElementOpacity(this.element,this.opacity)}else e.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString());else e.console.warn("[Tile.drawHTML] attempting to draw tile %s when it's not cached",this.toString())},get image(){return e.console.error("[Tile.image] property has been deprecated. Use [Tile.prototype.getImage] instead."),this.getImage()},get url(){return e.console.error("[Tile.url] property has been deprecated. Use [Tile.prototype.getUrl] instead."),this.getUrl()},getImage:function(){return this.cacheImageRecord.getImage()},getUrl:function(){return"function"==typeof this._url?this._url():this._url},getCanvasContext:function(){return this.context2D||this.cacheImageRecord.getRenderedContext()},drawCanvas:function(t,n,i,r,o,a){var s,l,c,u=this.position.times(e.pixelDensityRatio),d=this.size.times(e.pixelDensityRatio);this.context2D||this.cacheImageRecord?(s=this.getCanvasContext(),this.loaded&&s?(t.save(),t.globalAlpha=this.opacity,"number"==typeof i&&1!==i&&(u=u.times(i),d=d.times(i)),r instanceof e.Point&&(u=u.plus(r)),1===t.globalAlpha&&this.hasTransparency&&(o&&(u.x=Math.round(u.x),u.y=Math.round(u.y),d.x=Math.round(d.x),d.y=Math.round(d.y)),t.clearRect(u.x,u.y,d.x,d.y)),n({context:t,tile:this,rendered:s}),this.sourceBounds?(l=Math.min(this.sourceBounds.width,s.canvas.width),c=Math.min(this.sourceBounds.height,s.canvas.height)):(l=s.canvas.width,c=s.canvas.height),t.translate(u.x+d.x/2,0),this.flipped&&t.scale(-1,1),t.drawImage(s.canvas,0,0,l,c,-d.x/2,u.y,d.x,d.y),t.restore()):e.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString())):e.console.warn("[Tile.drawCanvas] attempting to draw tile %s when it's not cached",this.toString())},getScaleForEdgeSmoothing:function(){var t;if(this.cacheImageRecord)t=this.cacheImageRecord.getRenderedContext();else{if(!this.context2D)return e.console.warn("[Tile.drawCanvas] attempting to get tile scale %s when tile's not cached",this.toString()),1;t=this.context2D}return t.canvas.width/(this.size.x*e.pixelDensityRatio)},getTranslationForEdgeSmoothing:function(t,n,i){var r=Math.max(1,Math.ceil((i.x-n.x)/2)),o=Math.max(1,Math.ceil((i.y-n.y)/2));return new e.Point(r,o).minus(this.position.times(e.pixelDensityRatio).times(t||1).apply((function(e){return e%1})))},unload:function(){this.imgElement&&this.imgElement.parentNode&&this.imgElement.parentNode.removeChild(this.imgElement),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.imgElement=null,this.loaded=!1,this.loading=!1}}}(s),function(e){e.OverlayPlacement=e.Placement,e.OverlayRotationMode=e.freezeObject({NO_ROTATION:1,EXACT:2,BOUNDING_BOX:3}),e.Overlay=function(t,n,i){var r;r=e.isPlainObject(t)?t:{element:t,location:n,placement:i},this.element=r.element,this.style=r.element.style,this._init(r)},e.Overlay.prototype={_init:function(t){this.location=t.location,this.placement=void 0===t.placement?e.Placement.TOP_LEFT:t.placement,this.onDraw=t.onDraw,this.checkResize=void 0===t.checkResize||t.checkResize,this.width=void 0===t.width?null:t.width,this.height=void 0===t.height?null:t.height,this.rotationMode=t.rotationMode||e.OverlayRotationMode.EXACT,this.location instanceof e.Rect&&(this.width=this.location.width,this.height=this.location.height,this.location=this.location.getTopLeft(),this.placement=e.Placement.TOP_LEFT),this.scales=null!==this.width&&null!==this.height,this.bounds=new e.Rect(this.location.x,this.location.y,this.width,this.height),this.position=this.location},adjust:function(t,n){var i=e.Placement.properties[this.placement];i&&(i.isHorizontallyCentered?t.x-=n.x/2:i.isRight&&(t.x-=n.x),i.isVerticallyCentered?t.y-=n.y/2:i.isBottom&&(t.y-=n.y))},destroy:function(){var t=this.element,n=this.style;t.parentNode&&(t.parentNode.removeChild(t),t.prevElementParent&&(n.display="none",document.body.appendChild(t))),this.onDraw=null,n.top="",n.left="",n.position="",null!==this.width&&(n.width=""),null!==this.height&&(n.height="");var i=e.getCssPropertyWithVendorPrefix("transformOrigin"),r=e.getCssPropertyWithVendorPrefix("transform");i&&r&&(n[i]="",n[r]="")},drawHTML:function(t,n){var i=this.element;i.parentNode!==t&&(i.prevElementParent=i.parentNode,i.prevNextSibling=i.nextSibling,t.appendChild(i),this.style.position="absolute",this.size=e.getElementSize(i));var r=this._getOverlayPositionAndSize(n),o=r.position,a=this.size=r.size,s=r.rotate;if(this.onDraw)this.onDraw(o,a,this.element);else{var l=this.style;l.left=o.x+"px",l.top=o.y+"px",null!==this.width&&(l.width=a.x+"px"),null!==this.height&&(l.height=a.y+"px");var c=e.getCssPropertyWithVendorPrefix("transformOrigin"),u=e.getCssPropertyWithVendorPrefix("transform");c&&u&&(s?(l[c]=this._getTransformOrigin(),l[u]="rotate("+s+"deg)"):(l[c]="",l[u]="")),l.display="block"}},_getOverlayPositionAndSize:function(t){var n=t.pixelFromPoint(this.location,!0),i=this._getSizeInPixels(t);this.adjust(n,i);var r=0;if(t.getRotation(!0)&&this.rotationMode!==e.OverlayRotationMode.NO_ROTATION)if(this.rotationMode===e.OverlayRotationMode.BOUNDING_BOX&&null!==this.width&&null!==this.height){var o=new e.Rect(n.x,n.y,i.x,i.y),a=this._getBoundingBox(o,t.getRotation(!0));n=a.getTopLeft(),i=a.getSize()}else r=t.getRotation(!0);return{position:n,size:i,rotate:r}},_getSizeInPixels:function(t){var n=this.size.x,i=this.size.y;if(null!==this.width||null!==this.height){var r=t.deltaPixelsFromPointsNoRotate(new e.Point(this.width||0,this.height||0),!0);null!==this.width&&(n=r.x),null!==this.height&&(i=r.y)}if(this.checkResize&&(null===this.width||null===this.height)){var o=this.size=e.getElementSize(this.element);null===this.width&&(n=o.x),null===this.height&&(i=o.y)}return new e.Point(n,i)},_getBoundingBox:function(e,t){var n=this._getPlacementPoint(e);return e.rotate(t,n).getBoundingBox()},_getPlacementPoint:function(t){var n=new e.Point(t.x,t.y),i=e.Placement.properties[this.placement];return i&&(i.isHorizontallyCentered?n.x+=t.width/2:i.isRight&&(n.x+=t.width),i.isVerticallyCentered?n.y+=t.height/2:i.isBottom&&(n.y+=t.height)),n},_getTransformOrigin:function(){var t="",n=e.Placement.properties[this.placement];return n?(n.isLeft?t="left":n.isRight&&(t="right"),n.isTop?t+=" top":n.isBottom&&(t+=" bottom"),t):t},update:function(t,n){var i=e.isPlainObject(t)?t:{location:t,placement:n};this._init({location:i.location||this.location,placement:void 0!==i.placement?i.placement:this.placement,onDraw:i.onDraw||this.onDraw,checkResize:i.checkResize||this.checkResize,width:void 0!==i.width?i.width:this.width,height:void 0!==i.height?i.height:this.height,rotationMode:i.rotationMode||this.rotationMode})},getBounds:function(t){e.console.assert(t,"A viewport must now be passed to Overlay.getBounds.");var n=this.width,i=this.height;if(null===n||null===i){var r=t.deltaPointsFromPixelsNoRotate(this.size,!0);null===n&&(n=r.x),null===i&&(i=r.y)}var o=this.location.clone();return this.adjust(o,new e.Point(n,i)),this._adjustBoundsForRotation(t,new e.Rect(o.x,o.y,n,i))},_adjustBoundsForRotation:function(t,n){if(!t||0===t.getRotation(!0)||this.rotationMode===e.OverlayRotationMode.EXACT)return n;if(this.rotationMode===e.OverlayRotationMode.BOUNDING_BOX){if(null===this.width||null===this.height)return n;var i=this._getOverlayPositionAndSize(t);return t.viewerElementToViewportRectangle(new e.Rect(i.position.x,i.position.y,i.size.x,i.size.y))}return n.rotate(-t.getRotation(!0),this._getPlacementPoint(n))}}}(s),function(e){e.Drawer=function(t){e.console.assert(t.viewer,"[Drawer] options.viewer is required");var n=arguments;if(e.isPlainObject(t)||(t={source:n[0],viewport:n[1],element:n[2]}),e.console.assert(t.viewport,"[Drawer] options.viewport is required"),e.console.assert(t.element,"[Drawer] options.element is required"),t.source&&e.console.error("[Drawer] options.source is no longer accepted; use TiledImage instead"),this.viewer=t.viewer,this.viewport=t.viewport,this.debugGridColor="string"==typeof t.debugGridColor?[t.debugGridColor]:t.debugGridColor||e.DEFAULT_SETTINGS.debugGridColor,t.opacity&&e.console.error("[Drawer] options.opacity is no longer accepted; set the opacity on the TiledImage instead"),this.useCanvas=e.supportsCanvas&&(!this.viewer||this.viewer.useCanvas),this.container=e.getElement(t.element),this.canvas=e.makeNeutralElement(this.useCanvas?"canvas":"div"),this.context=this.useCanvas?this.canvas.getContext("2d"):null,this.sketchCanvas=null,this.sketchContext=null,this.element=this.container,this.container.dir="ltr",this.useCanvas){var i=this._calculateCanvasSize();this.canvas.width=i.x,this.canvas.height=i.y}this.canvas.style.width="100%",this.canvas.style.height="100%",this.canvas.style.position="absolute",e.setElementOpacity(this.canvas,this.opacity,!0),e.setElementPointerEventsNone(this.canvas),e.setElementTouchActionNone(this.canvas),this.container.style.textAlign="left",this.container.appendChild(this.canvas),this._imageSmoothingEnabled=!0},e.Drawer.prototype={addOverlay:function(t,n,i,r){return e.console.error("drawer.addOverlay is deprecated. Use viewer.addOverlay instead."),this.viewer.addOverlay(t,n,i,r),this},updateOverlay:function(t,n,i){return e.console.error("drawer.updateOverlay is deprecated. Use viewer.updateOverlay instead."),this.viewer.updateOverlay(t,n,i),this},removeOverlay:function(t){return e.console.error("drawer.removeOverlay is deprecated. Use viewer.removeOverlay instead."),this.viewer.removeOverlay(t),this},clearOverlays:function(){return e.console.error("drawer.clearOverlays is deprecated. Use viewer.clearOverlays instead."),this.viewer.clearOverlays(),this},viewportCoordToDrawerCoord:function(t){var n=this.viewport.pixelFromPointNoRotate(t,!0);return new e.Point(n.x*e.pixelDensityRatio,n.y*e.pixelDensityRatio)},clipWithPolygons:function(e,t){if(this.useCanvas){var n=this._getContext(t);n.beginPath(),e.forEach((function(e){e.forEach((function(e,t){n[0===t?"moveTo":"lineTo"](e.x,e.y)}))})),n.clip()}},setOpacity:function(t){e.console.error("drawer.setOpacity is deprecated. Use tiledImage.setOpacity instead.");for(var n=this.viewer.world,i=0;i<n.getItemCount();i++)n.getItemAt(i).setOpacity(t);return this},getOpacity:function(){e.console.error("drawer.getOpacity is deprecated. Use tiledImage.getOpacity instead.");for(var t=this.viewer.world,n=0,i=0;i<t.getItemCount();i++){var r=t.getItemAt(i).getOpacity();r>n&&(n=r)}return n},needsUpdate:function(){return e.console.error("[Drawer.needsUpdate] this function is deprecated. Use World.needsDraw instead."),this.viewer.world.needsDraw()},numTilesLoaded:function(){return e.console.error("[Drawer.numTilesLoaded] this function is deprecated. Use TileCache.numTilesLoaded instead."),this.viewer.tileCache.numTilesLoaded()},reset:function(){return e.console.error("[Drawer.reset] this function is deprecated. Use World.resetItems instead."),this.viewer.world.resetItems(),this},update:function(){return e.console.error("[Drawer.update] this function is deprecated. Use Drawer.clear and World.draw instead."),this.clear(),this.viewer.world.draw(),this},canRotate:function(){return this.useCanvas},destroy:function(){this.canvas.width=1,this.canvas.height=1,this.sketchCanvas=null,this.sketchContext=null},clear:function(){if(this.canvas.innerHTML="",this.useCanvas){var e=this._calculateCanvasSize();if((this.canvas.width!==e.x||this.canvas.height!==e.y)&&(this.canvas.width=e.x,this.canvas.height=e.y,this._updateImageSmoothingEnabled(this.context),null!==this.sketchCanvas)){var t=this._calculateSketchCanvasSize();this.sketchCanvas.width=t.x,this.sketchCanvas.height=t.y,this._updateImageSmoothingEnabled(this.sketchContext)}this._clear()}},_clear:function(e,t){if(this.useCanvas){var n=this._getContext(e);if(t)n.clearRect(t.x,t.y,t.width,t.height);else{var i=n.canvas;n.clearRect(0,0,i.width,i.height)}}},viewportToDrawerRectangle:function(t){var n=this.viewport.pixelFromPointNoRotate(t.getTopLeft(),!0),i=this.viewport.deltaPixelsFromPointsNoRotate(t.getSize(),!0);return new e.Rect(n.x*e.pixelDensityRatio,n.y*e.pixelDensityRatio,i.x*e.pixelDensityRatio,i.y*e.pixelDensityRatio)},drawTile:function(t,n,i,r,o,a,s){if(e.console.assert(t,"[Drawer.drawTile] tile is required"),e.console.assert(n,"[Drawer.drawTile] drawingHandler is required"),this.useCanvas){var l=this._getContext(i);r=r||1,t.drawCanvas(l,n,r,o,a,s)}else t.drawHTML(this.canvas)},_getContext:function(e){var t=this.context;if(e){if(null===this.sketchCanvas){this.sketchCanvas=document.createElement("canvas");var n=this._calculateSketchCanvasSize();if(this.sketchCanvas.width=n.x,this.sketchCanvas.height=n.y,this.sketchContext=this.sketchCanvas.getContext("2d"),0===this.viewport.getRotation()){var i=this;this.viewer.addHandler("rotate",(function e(){if(0!==i.viewport.getRotation()){i.viewer.removeHandler("rotate",e);var t=i._calculateSketchCanvasSize();i.sketchCanvas.width=t.x,i.sketchCanvas.height=t.y}}))}this._updateImageSmoothingEnabled(this.sketchContext)}t=this.sketchContext}return t},saveContext:function(e){this.useCanvas&&this._getContext(e).save()},restoreContext:function(e){this.useCanvas&&this._getContext(e).restore()},setClip:function(e,t){if(this.useCanvas){var n=this._getContext(t);n.beginPath(),n.rect(e.x,e.y,e.width,e.height),n.clip()}},drawRectangle:function(e,t,n){if(this.useCanvas){var i=this._getContext(n);i.save(),i.fillStyle=t,i.fillRect(e.x,e.y,e.width,e.height),i.restore()}},blendSketch:function(t,n,i,r){var o=t;if(e.isPlainObject(o)||(o={opacity:t,scale:n,translate:i,compositeOperation:r}),this.useCanvas&&this.sketchCanvas){t=o.opacity,r=o.compositeOperation;var a=o.bounds;if(this.context.save(),this.context.globalAlpha=t,r&&(this.context.globalCompositeOperation=r),a)a.x<0&&(a.width+=a.x,a.x=0),a.x+a.width>this.canvas.width&&(a.width=this.canvas.width-a.x),a.y<0&&(a.height+=a.y,a.y=0),a.y+a.height>this.canvas.height&&(a.height=this.canvas.height-a.y),this.context.drawImage(this.sketchCanvas,a.x,a.y,a.width,a.height,a.x,a.y,a.width,a.height);else{n=o.scale||1;var s=(i=o.translate)instanceof e.Point?i:new e.Point(0,0),l=0,c=0;if(i){var u=this.sketchCanvas.width-this.canvas.width,d=this.sketchCanvas.height-this.canvas.height;l=Math.round(u/2),c=Math.round(d/2)}this.context.drawImage(this.sketchCanvas,s.x-l*n,s.y-c*n,(this.canvas.width+2*l)*n,(this.canvas.height+2*c)*n,-l,-c,this.canvas.width+2*l,this.canvas.height+2*c)}this.context.restore()}},drawDebugInfo:function(t,n,i,r){if(this.useCanvas){var o=this.viewer.world.getIndexOfItem(r)%this.debugGridColor.length,a=this.context;a.save(),a.lineWidth=2*e.pixelDensityRatio,a.font="small-caps bold "+13*e.pixelDensityRatio+"px arial",a.strokeStyle=this.debugGridColor[o],a.fillStyle=this.debugGridColor[o],this.viewport.getRotation(!0)%360!=0&&this._offsetForRotation({degrees:this.viewport.getRotation(!0)}),r.getRotation(!0)%360!=0&&this._offsetForRotation({degrees:r.getRotation(!0),point:r.viewport.pixelFromPointNoRotate(r._getRotationPoint(!0),!0)}),r.viewport.getRotation(!0)%360==0&&r.getRotation(!0)%360==0&&r._drawer.viewer.viewport.getFlip()&&r._drawer._flip(),a.strokeRect(t.position.x*e.pixelDensityRatio,t.position.y*e.pixelDensityRatio,t.size.x*e.pixelDensityRatio,t.size.y*e.pixelDensityRatio);var s=(t.position.x+t.size.x/2)*e.pixelDensityRatio,l=(t.position.y+t.size.y/2)*e.pixelDensityRatio;a.translate(s,l),a.rotate(Math.PI/180*-this.viewport.getRotation(!0)),a.translate(-s,-l),0===t.x&&0===t.y&&(a.fillText("Zoom: "+this.viewport.getZoom(),t.position.x*e.pixelDensityRatio,(t.position.y-30)*e.pixelDensityRatio),a.fillText("Pan: "+this.viewport.getBounds().toString(),t.position.x*e.pixelDensityRatio,(t.position.y-20)*e.pixelDensityRatio)),a.fillText("Level: "+t.level,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+20)*e.pixelDensityRatio),a.fillText("Column: "+t.x,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+30)*e.pixelDensityRatio),a.fillText("Row: "+t.y,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+40)*e.pixelDensityRatio),a.fillText("Order: "+i+" of "+n,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+50)*e.pixelDensityRatio),a.fillText("Size: "+t.size.toString(),(t.position.x+10)*e.pixelDensityRatio,(t.position.y+60)*e.pixelDensityRatio),a.fillText("Position: "+t.position.toString(),(t.position.x+10)*e.pixelDensityRatio,(t.position.y+70)*e.pixelDensityRatio),this.viewport.getRotation(!0)%360!=0&&this._restoreRotationChanges(),r.getRotation(!0)%360!=0&&this._restoreRotationChanges(),r.viewport.getRotation(!0)%360==0&&r.getRotation(!0)%360==0&&r._drawer.viewer.viewport.getFlip()&&r._drawer._flip(),a.restore()}},debugRect:function(t){if(this.useCanvas){var n=this.context;n.save(),n.lineWidth=2*e.pixelDensityRatio,n.strokeStyle=this.debugGridColor[0],n.fillStyle=this.debugGridColor[0],n.strokeRect(t.x*e.pixelDensityRatio,t.y*e.pixelDensityRatio,t.width*e.pixelDensityRatio,t.height*e.pixelDensityRatio),n.restore()}},setImageSmoothingEnabled:function(e){this.useCanvas&&(this._imageSmoothingEnabled=e,this._updateImageSmoothingEnabled(this.context),this.viewer.forceRedraw())},_updateImageSmoothingEnabled:function(e){e.msImageSmoothingEnabled=this._imageSmoothingEnabled,e.imageSmoothingEnabled=this._imageSmoothingEnabled},getCanvasSize:function(t){var n=this._getContext(t).canvas;return new e.Point(n.width,n.height)},getCanvasCenter:function(){return new e.Point(this.canvas.width/2,this.canvas.height/2)},_offsetForRotation:function(t){var n=t.point?t.point.times(e.pixelDensityRatio):this.getCanvasCenter(),i=this._getContext(t.useSketch);i.save(),i.translate(n.x,n.y),this.viewer.viewport.flipped?(i.rotate(Math.PI/180*-t.degrees),i.scale(-1,1)):i.rotate(Math.PI/180*t.degrees),i.translate(-n.x,-n.y)},_flip:function(t){var n=(t=t||{}).point?t.point.times(e.pixelDensityRatio):this.getCanvasCenter(),i=this._getContext(t.useSketch);i.translate(n.x,0),i.scale(-1,1),i.translate(-n.x,0)},_restoreRotationChanges:function(e){this._getContext(e).restore()},_calculateCanvasSize:function(){var t=e.pixelDensityRatio,n=this.viewport.getContainerSize();return{x:Math.round(n.x*t),y:Math.round(n.y*t)}},_calculateSketchCanvasSize:function(){var e=this._calculateCanvasSize();if(0===this.viewport.getRotation())return e;var t=Math.ceil(Math.sqrt(e.x*e.x+e.y*e.y));return{x:t,y:t}}}}(s),function(e){e.Viewport=function(t){var n=arguments;n.length&&n[0]instanceof e.Point&&(t={containerSize:n[0],contentSize:n[1],config:n[2]}),t.config&&(e.extend(!0,t,t.config),delete t.config),this._margins=e.extend({left:0,top:0,right:0,bottom:0},t.margins||{}),delete t.margins,t.initialDegrees=t.degrees,delete t.degrees,e.extend(!0,this,{containerSize:null,contentSize:null,zoomPoint:null,rotationPivot:null,viewer:null,springStiffness:e.DEFAULT_SETTINGS.springStiffness,animationTime:e.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:e.DEFAULT_SETTINGS.minZoomImageRatio,maxZoomPixelRatio:e.DEFAULT_SETTINGS.maxZoomPixelRatio,visibilityRatio:e.DEFAULT_SETTINGS.visibilityRatio,wrapHorizontal:e.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:e.DEFAULT_SETTINGS.wrapVertical,defaultZoomLevel:e.DEFAULT_SETTINGS.defaultZoomLevel,minZoomLevel:e.DEFAULT_SETTINGS.minZoomLevel,maxZoomLevel:e.DEFAULT_SETTINGS.maxZoomLevel,initialDegrees:e.DEFAULT_SETTINGS.degrees,flipped:e.DEFAULT_SETTINGS.flipped,homeFillsViewer:e.DEFAULT_SETTINGS.homeFillsViewer,silenceMultiImageWarnings:e.DEFAULT_SETTINGS.silenceMultiImageWarnings},t),this._updateContainerInnerSize(),this.centerSpringX=new e.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.centerSpringY=new e.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.zoomSpring=new e.Spring({exponential:!0,initial:1,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.degreesSpring=new e.Spring({initial:t.initialDegrees,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._oldCenterX=this.centerSpringX.current.value,this._oldCenterY=this.centerSpringY.current.value,this._oldZoom=this.zoomSpring.current.value,this._oldDegrees=this.degreesSpring.current.value,this._setContentBounds(new e.Rect(0,0,1,1),1),this.goHome(!0),this.update()},e.Viewport.prototype={get degrees(){return e.console.warn("Accessing [Viewport.degrees] is deprecated. Use viewport.getRotation instead."),this.getRotation()},set degrees(t){e.console.warn("Setting [Viewport.degrees] is deprecated. Use viewport.rotateTo, viewport.rotateBy, or viewport.setRotation instead."),this.rotateTo(t)},resetContentSize:function(t){return e.console.assert(t,"[Viewport.resetContentSize] contentSize is required"),e.console.assert(t instanceof e.Point,"[Viewport.resetContentSize] contentSize must be an OpenSeadragon.Point"),e.console.assert(t.x>0,"[Viewport.resetContentSize] contentSize.x must be greater than 0"),e.console.assert(t.y>0,"[Viewport.resetContentSize] contentSize.y must be greater than 0"),this._setContentBounds(new e.Rect(0,0,1,t.y/t.x),t.x),this},setHomeBounds:function(t,n){e.console.error("[Viewport.setHomeBounds] this function is deprecated; The content bounds should not be set manually."),this._setContentBounds(t,n)},_setContentBounds:function(t,n){e.console.assert(t,"[Viewport._setContentBounds] bounds is required"),e.console.assert(t instanceof e.Rect,"[Viewport._setContentBounds] bounds must be an OpenSeadragon.Rect"),e.console.assert(t.width>0,"[Viewport._setContentBounds] bounds.width must be greater than 0"),e.console.assert(t.height>0,"[Viewport._setContentBounds] bounds.height must be greater than 0"),this._contentBoundsNoRotate=t.clone(),this._contentSizeNoRotate=this._contentBoundsNoRotate.getSize().times(n),this._contentBounds=t.rotate(this.getRotation()).getBoundingBox(),this._contentSize=this._contentBounds.getSize().times(n),this._contentAspectRatio=this._contentSize.x/this._contentSize.y,this.viewer&&this.viewer.raiseEvent("reset-size",{contentSize:this._contentSizeNoRotate.clone(),contentFactor:n,homeBounds:this._contentBoundsNoRotate.clone(),contentBounds:this._contentBounds.clone()})},getHomeZoom:function(){if(this.defaultZoomLevel)return this.defaultZoomLevel;var e=this._contentAspectRatio/this.getAspectRatio();return(this.homeFillsViewer?e>=1?e:1:e>=1?1:e)/this._contentBounds.width},getHomeBounds:function(){return this.getHomeBoundsNoRotate().rotate(-this.getRotation())},getHomeBoundsNoRotate:function(){var t=this._contentBounds.getCenter(),n=1/this.getHomeZoom(),i=n/this.getAspectRatio();return new e.Rect(t.x-n/2,t.y-i/2,n,i)},goHome:function(e){return this.viewer&&this.viewer.raiseEvent("home",{immediately:e}),this.fitBounds(this.getHomeBounds(),e)},getMinZoom:function(){var e=this.getHomeZoom();return this.minZoomLevel?this.minZoomLevel:this.minZoomImageRatio*e},getMaxZoom:function(){var e=this.maxZoomLevel;return e||(e=this._contentSize.x*this.maxZoomPixelRatio/this._containerInnerSize.x,e/=this._contentBounds.width),Math.max(e,this.getHomeZoom())},getAspectRatio:function(){return this._containerInnerSize.x/this._containerInnerSize.y},getContainerSize:function(){return new e.Point(this.containerSize.x,this.containerSize.y)},getMargins:function(){return e.extend({},this._margins)},setMargins:function(t){e.console.assert("object"===e.type(t),"[Viewport.setMargins] margins must be an object"),this._margins=e.extend({left:0,top:0,right:0,bottom:0},t),this._updateContainerInnerSize(),this.viewer&&this.viewer.forceRedraw()},getBounds:function(e){return this.getBoundsNoRotate(e).rotate(-this.getRotation(e))},getBoundsNoRotate:function(t){var n=this.getCenter(t),i=1/this.getZoom(t),r=i/this.getAspectRatio();return new e.Rect(n.x-i/2,n.y-r/2,i,r)},getBoundsWithMargins:function(e){return this.getBoundsNoRotateWithMargins(e).rotate(-this.getRotation(e),this.getCenter(e))},getBoundsNoRotateWithMargins:function(e){var t=this.getBoundsNoRotate(e),n=this._containerInnerSize.x*this.getZoom(e);return t.x-=this._margins.left/n,t.y-=this._margins.top/n,t.width+=(this._margins.left+this._margins.right)/n,t.height+=(this._margins.top+this._margins.bottom)/n,t},getCenter:function(t){var n,i,r,o,a,s,l=new e.Point(this.centerSpringX.current.value,this.centerSpringY.current.value),c=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return t?l:this.zoomPoint?(n=this.pixelFromPoint(this.zoomPoint,!0),o=(r=1/(i=this.getZoom()))/this.getAspectRatio(),a=new e.Rect(l.x-r/2,l.y-o/2,r,o),s=this._pixelFromPoint(this.zoomPoint,a).minus(n).rotate(-this.getRotation(!0)).divide(this._containerInnerSize.x*i),c.plus(s)):c},getZoom:function(e){return e?this.zoomSpring.current.value:this.zoomSpring.target.value},_applyZoomConstraints:function(e){return Math.max(Math.min(e,this.getMaxZoom()),this.getMinZoom())},_applyBoundaryConstraints:function(e){var t=this.viewportToViewerElementRectangle(e).getBoundingBox(),n=this.viewportToViewerElementRectangle(this._contentBoundsNoRotate).getBoundingBox(),i=!1,r=!1;if(this.wrapHorizontal);else{var o,a,s,l=t.x+t.width,c=n.x+n.width;o=t.width>n.width?this.visibilityRatio*n.width:this.visibilityRatio*t.width,a=n.x-l+o,s=c-t.x-o,o>n.width?(t.x+=(a+s)/2,i=!0):s<0?(t.x+=s,i=!0):a>0&&(t.x+=a,i=!0)}if(this.wrapVertical);else{var u,d,p,h=t.y+t.height,f=n.y+n.height;u=t.height>n.height?this.visibilityRatio*n.height:this.visibilityRatio*t.height,d=n.y-h+u,p=f-t.y-u,u>n.height?(t.y+=(d+p)/2,r=!0):p<0?(t.y+=p,r=!0):d>0&&(t.y+=d,r=!0)}var m=i||r,g=m?this.viewerElementToViewportRectangle(t):e.clone();return g.xConstrained=i,g.yConstrained=r,g.constraintApplied=m,g},_raiseConstraintsEvent:function(e){this.viewer&&this.viewer.raiseEvent("constrain",{immediately:e})},applyConstraints:function(e){var t=this.getZoom(),n=this._applyZoomConstraints(t);t!==n&&this.zoomTo(n,this.zoomPoint,e);var i=this.getConstrainedBounds(!1);return i.constraintApplied&&(this.fitBounds(i,e),this._raiseConstraintsEvent(e)),this},ensureVisible:function(e){return this.applyConstraints(e)},_fitBounds:function(t,n){var i=(n=n||{}).immediately||!1,r=n.constraints||!1,o=this.getAspectRatio(),a=t.getCenter(),s=new e.Rect(t.x,t.y,t.width,t.height,t.degrees+this.getRotation()).getBoundingBox();s.getAspectRatio()>=o?s.height=s.width/o:s.width=s.height*o,s.x=a.x-s.width/2,s.y=a.y-s.height/2;var l=1/s.width;if(i)return this.panTo(a,!0),this.zoomTo(l,null,!0),r&&this.applyConstraints(!0),this;var c=this.getCenter(!0),u=this.getZoom(!0);this.panTo(c,!0),this.zoomTo(u,null,!0);var d=this.getBounds(),p=this.getZoom();if(0===p||Math.abs(l/p-1)<1e-8)return this.zoomTo(l,null,!0),this.panTo(a,i),r&&this.applyConstraints(!1),this;if(r){this.panTo(a,!1),this.zoomTo(l,null,!1);var h=this.getConstrainedBounds();this.panTo(c,!0),this.zoomTo(u,null,!0),this.fitBounds(h)}else{var f=s.rotate(-this.getRotation()).getTopLeft().times(l).minus(d.getTopLeft().times(p)).divide(l-p);this.zoomTo(l,f,i)}return this},fitBounds:function(e,t){return this._fitBounds(e,{immediately:t,constraints:!1})},fitBoundsWithConstraints:function(e,t){return this._fitBounds(e,{immediately:t,constraints:!0})},fitVertically:function(t){var n=new e.Rect(this._contentBounds.x+this._contentBounds.width/2,this._contentBounds.y,0,this._contentBounds.height);return this.fitBounds(n,t)},fitHorizontally:function(t){var n=new e.Rect(this._contentBounds.x,this._contentBounds.y+this._contentBounds.height/2,this._contentBounds.width,0);return this.fitBounds(n,t)},getConstrainedBounds:function(e){var t;return t=this.getBounds(e),this._applyBoundaryConstraints(t)},panBy:function(t,n){var i=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return this.panTo(i.plus(t),n)},panTo:function(e,t){return t?(this.centerSpringX.resetTo(e.x),this.centerSpringY.resetTo(e.y)):(this.centerSpringX.springTo(e.x),this.centerSpringY.springTo(e.y)),this.viewer&&this.viewer.raiseEvent("pan",{center:e,immediately:t}),this},zoomBy:function(e,t,n){return this.zoomTo(this.zoomSpring.target.value*e,t,n)},zoomTo:function(t,n,i){var r=this;return this.zoomPoint=n instanceof e.Point&&!isNaN(n.x)&&!isNaN(n.y)?n:null,i?this._adjustCenterSpringsForZoomPoint((function(){r.zoomSpring.resetTo(t)})):this.zoomSpring.springTo(t),this.viewer&&this.viewer.raiseEvent("zoom",{zoom:t,refPoint:n,immediately:i}),this},setRotation:function(e,t){return this.rotateTo(e,null,t)},getRotation:function(e){return e?this.degreesSpring.current.value:this.degreesSpring.target.value},setRotationWithPivot:function(e,t,n){return this.rotateTo(e,t,n)},rotateTo:function(t,n,i){if(!this.viewer||!this.viewer.drawer.canRotate())return this;if(this.degreesSpring.target.value===t&&this.degreesSpring.isAtTargetValue())return this;if(this.rotationPivot=n instanceof e.Point&&!isNaN(n.x)&&!isNaN(n.y)?n:null,i)if(this.rotationPivot){if(!(t-this._oldDegrees))return this.rotationPivot=null,this;this._rotateAboutPivot(t)}else this.degreesSpring.resetTo(t);else{var r=e.positiveModulo(this.degreesSpring.current.value,360),o=e.positiveModulo(t,360),a=o-r;a>180?o-=360:a<-180&&(o+=360);var s=r-o;this.degreesSpring.resetTo(t+s),this.degreesSpring.springTo(t)}return this._setContentBounds(this.viewer.world.getHomeBounds(),this.viewer.world.getContentFactor()),this.viewer.forceRedraw(),this.viewer.raiseEvent("rotate",{degrees:t,immediately:!!i,pivot:this.rotationPivot||this.getCenter()}),this},rotateBy:function(e,t,n){return this.rotateTo(this.degreesSpring.target.value+e,t,n)},resize:function(e,t){var n,i=this.getBoundsNoRotate(),r=i;return this.containerSize.x=e.x,this.containerSize.y=e.y,this._updateContainerInnerSize(),t&&(n=e.x/this.containerSize.x,r.width=i.width*n,r.height=r.width/this.getAspectRatio()),this.viewer&&this.viewer.raiseEvent("resize",{newContainerSize:e,maintain:t}),this.fitBounds(r,!0)},_updateContainerInnerSize:function(){this._containerInnerSize=new e.Point(Math.max(1,this.containerSize.x-(this._margins.left+this._margins.right)),Math.max(1,this.containerSize.y-(this._margins.top+this._margins.bottom)))},update:function(){var e=this;this._adjustCenterSpringsForZoomPoint((function(){e.zoomSpring.update()})),this.degreesSpring.isAtTargetValue()&&(this.rotationPivot=null),this.centerSpringX.update(),this.centerSpringY.update(),this.rotationPivot?this._rotateAboutPivot(!0):this.degreesSpring.update();var t=this.centerSpringX.current.value!==this._oldCenterX||this.centerSpringY.current.value!==this._oldCenterY||this.zoomSpring.current.value!==this._oldZoom||this.degreesSpring.current.value!==this._oldDegrees;return this._oldCenterX=this.centerSpringX.current.value,this._oldCenterY=this.centerSpringY.current.value,this._oldZoom=this.zoomSpring.current.value,this._oldDegrees=this.degreesSpring.current.value,t},_rotateAboutPivot:function(e){var t=!0===e,n=this.rotationPivot.minus(this.getCenter());this.centerSpringX.shiftBy(n.x),this.centerSpringY.shiftBy(n.y),t?this.degreesSpring.update():this.degreesSpring.resetTo(e);var i=this.degreesSpring.current.value-this._oldDegrees,r=n.rotate(-1*i).times(-1);this.centerSpringX.shiftBy(r.x),this.centerSpringY.shiftBy(r.y)},_adjustCenterSpringsForZoomPoint:function(e){if(this.zoomPoint){var t=this.pixelFromPoint(this.zoomPoint,!0);e();var n=this.pixelFromPoint(this.zoomPoint,!0).minus(t),i=this.deltaPointsFromPixels(n,!0);this.centerSpringX.shiftBy(i.x),this.centerSpringY.shiftBy(i.y),this.zoomSpring.isAtTargetValue()&&(this.zoomPoint=null)}else e()},deltaPixelsFromPointsNoRotate:function(e,t){return e.times(this._containerInnerSize.x*this.getZoom(t))},deltaPixelsFromPoints:function(e,t){return this.deltaPixelsFromPointsNoRotate(e.rotate(this.getRotation(t)),t)},deltaPointsFromPixelsNoRotate:function(e,t){return e.divide(this._containerInnerSize.x*this.getZoom(t))},deltaPointsFromPixels:function(e,t){return this.deltaPointsFromPixelsNoRotate(e,t).rotate(-this.getRotation(t))},pixelFromPointNoRotate:function(e,t){return this._pixelFromPointNoRotate(e,this.getBoundsNoRotate(t))},pixelFromPoint:function(e,t){return this._pixelFromPoint(e,this.getBoundsNoRotate(t))},_pixelFromPointNoRotate:function(t,n){return t.minus(n.getTopLeft()).times(this._containerInnerSize.x/n.width).plus(new e.Point(this._margins.left,this._margins.top))},_pixelFromPoint:function(e,t){return this._pixelFromPointNoRotate(e.rotate(this.getRotation(!0),this.getCenter(!0)),t)},pointFromPixelNoRotate:function(t,n){var i=this.getBoundsNoRotate(n);return t.minus(new e.Point(this._margins.left,this._margins.top)).divide(this._containerInnerSize.x/i.width).plus(i.getTopLeft())},pointFromPixel:function(e,t){return this.pointFromPixelNoRotate(e,t).rotate(-this.getRotation(t),this.getCenter(t))},_viewportToImageDelta:function(t,n){var i=this._contentBoundsNoRotate.width;return new e.Point(t*this._contentSizeNoRotate.x/i,n*this._contentSizeNoRotate.x/i)},viewportToImageCoordinates:function(t,n){if(t instanceof e.Point)return this.viewportToImageCoordinates(t.x,t.y);if(this.viewer){var i=this.viewer.world.getItemCount();if(i>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.viewportToImageCoordinates] is not accurate with multi-image; use TiledImage.viewportToImageCoordinates instead.");else if(1===i){return this.viewer.world.getItemAt(0).viewportToImageCoordinates(t,n,!0)}}return this._viewportToImageDelta(t-this._contentBoundsNoRotate.x,n-this._contentBoundsNoRotate.y)},_imageToViewportDelta:function(t,n){var i=this._contentBoundsNoRotate.width;return new e.Point(t/this._contentSizeNoRotate.x*i,n/this._contentSizeNoRotate.x*i)},imageToViewportCoordinates:function(t,n){if(t instanceof e.Point)return this.imageToViewportCoordinates(t.x,t.y);if(this.viewer){var i=this.viewer.world.getItemCount();if(i>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.imageToViewportCoordinates] is not accurate with multi-image; use TiledImage.imageToViewportCoordinates instead.");else if(1===i){return this.viewer.world.getItemAt(0).imageToViewportCoordinates(t,n,!0)}}var r=this._imageToViewportDelta(t,n);return r.x+=this._contentBoundsNoRotate.x,r.y+=this._contentBoundsNoRotate.y,r},imageToViewportRectangle:function(t,n,i,r){var o=t;if(o instanceof e.Rect||(o=new e.Rect(t,n,i,r)),this.viewer){var a=this.viewer.world.getItemCount();if(a>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.imageToViewportRectangle] is not accurate with multi-image; use TiledImage.imageToViewportRectangle instead.");else if(1===a){return this.viewer.world.getItemAt(0).imageToViewportRectangle(t,n,i,r,!0)}}var s=this.imageToViewportCoordinates(o.x,o.y),l=this._imageToViewportDelta(o.width,o.height);return new e.Rect(s.x,s.y,l.x,l.y,o.degrees)},viewportToImageRectangle:function(t,n,i,r){var o=t;if(o instanceof e.Rect||(o=new e.Rect(t,n,i,r)),this.viewer){var a=this.viewer.world.getItemCount();if(a>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.viewportToImageRectangle] is not accurate with multi-image; use TiledImage.viewportToImageRectangle instead.");else if(1===a){return this.viewer.world.getItemAt(0).viewportToImageRectangle(t,n,i,r,!0)}}var s=this.viewportToImageCoordinates(o.x,o.y),l=this._viewportToImageDelta(o.width,o.height);return new e.Rect(s.x,s.y,l.x,l.y,o.degrees)},viewerElementToImageCoordinates:function(e){var t=this.pointFromPixel(e,!0);return this.viewportToImageCoordinates(t)},imageToViewerElementCoordinates:function(e){var t=this.imageToViewportCoordinates(e);return this.pixelFromPoint(t,!0)},windowToImageCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.windowToImageCoordinates] the viewport must have a viewer.");var n=t.minus(e.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(n)},imageToWindowCoordinates:function(t){return e.console.assert(this.viewer,"[Viewport.imageToWindowCoordinates] the viewport must have a viewer."),this.imageToViewerElementCoordinates(t).plus(e.getElementPosition(this.viewer.element))},viewerElementToViewportCoordinates:function(e){return this.pointFromPixel(e,!0)},viewportToViewerElementCoordinates:function(e){return this.pixelFromPoint(e,!0)},viewerElementToViewportRectangle:function(t){return e.Rect.fromSummits(this.pointFromPixel(t.getTopLeft(),!0),this.pointFromPixel(t.getTopRight(),!0),this.pointFromPixel(t.getBottomLeft(),!0))},viewportToViewerElementRectangle:function(t){return e.Rect.fromSummits(this.pixelFromPoint(t.getTopLeft(),!0),this.pixelFromPoint(t.getTopRight(),!0),this.pixelFromPoint(t.getBottomLeft(),!0))},windowToViewportCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.windowToViewportCoordinates] the viewport must have a viewer.");var n=t.minus(e.getElementPosition(this.viewer.element));return this.viewerElementToViewportCoordinates(n)},viewportToWindowCoordinates:function(t){return e.console.assert(this.viewer,"[Viewport.viewportToWindowCoordinates] the viewport must have a viewer."),this.viewportToViewerElementCoordinates(t).plus(e.getElementPosition(this.viewer.element))},viewportToImageZoom:function(t){if(this.viewer){var n=this.viewer.world.getItemCount();if(n>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.viewportToImageZoom] is not accurate with multi-image.");else if(1===n){return this.viewer.world.getItemAt(0).viewportToImageZoom(t)}}var i=this._contentSizeNoRotate.x;return t*(this._containerInnerSize.x/i*this._contentBoundsNoRotate.width)},imageToViewportZoom:function(t){if(this.viewer){var n=this.viewer.world.getItemCount();if(n>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.imageToViewportZoom] is not accurate with multi-image.");else if(1===n){return this.viewer.world.getItemAt(0).imageToViewportZoom(t)}}return t*(this._contentSizeNoRotate.x/this._containerInnerSize.x/this._contentBoundsNoRotate.width)},toggleFlip:function(){return this.setFlip(!this.getFlip()),this},getFlip:function(){return this.flipped},setFlip:function(e){return this.flipped===e||(this.flipped=e,this.viewer.navigator&&this.viewer.navigator.setFlip(this.getFlip()),this.viewer.forceRedraw(),this.viewer.raiseEvent("flip",{flipped:e})),this}}}(s),function(e){e.TiledImage=function(t){var n=this;e.console.assert(t.tileCache,"[TiledImage] options.tileCache is required"),e.console.assert(t.drawer,"[TiledImage] options.drawer is required"),e.console.assert(t.viewer,"[TiledImage] options.viewer is required"),e.console.assert(t.imageLoader,"[TiledImage] options.imageLoader is required"),e.console.assert(t.source,"[TiledImage] options.source is required"),e.console.assert(!t.clip||t.clip instanceof e.Rect,"[TiledImage] options.clip must be an OpenSeadragon.Rect if present"),e.EventSource.call(this),this._tileCache=t.tileCache,delete t.tileCache,this._drawer=t.drawer,delete t.drawer,this._imageLoader=t.imageLoader,delete t.imageLoader,t.clip instanceof e.Rect&&(this._clip=t.clip.clone()),delete t.clip;var i=t.x||0;delete t.x;var r=t.y||0;delete t.y,this.normHeight=t.source.dimensions.y/t.source.dimensions.x,this.contentAspectX=t.source.dimensions.x/t.source.dimensions.y;var o=1;t.width?(o=t.width,delete t.width,t.height&&(e.console.error("specifying both width and height to a tiledImage is not supported"),delete t.height)):t.height&&(o=t.height/this.normHeight,delete t.height);var a=t.fitBounds;delete t.fitBounds;var l=t.fitBoundsPlacement||s.Placement.CENTER;delete t.fitBoundsPlacement;var c=t.degrees||0;delete t.degrees,e.extend(!0,this,{viewer:null,tilesMatrix:{},coverage:{},loadingCoverage:{},lastDrawn:[],lastResetTime:0,_midDraw:!1,_needsDraw:!0,_hasOpaqueTile:!1,_tilesLoading:0,springStiffness:e.DEFAULT_SETTINGS.springStiffness,animationTime:e.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:e.DEFAULT_SETTINGS.minZoomImageRatio,wrapHorizontal:e.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:e.DEFAULT_SETTINGS.wrapVertical,immediateRender:e.DEFAULT_SETTINGS.immediateRender,blendTime:e.DEFAULT_SETTINGS.blendTime,alwaysBlend:e.DEFAULT_SETTINGS.alwaysBlend,minPixelRatio:e.DEFAULT_SETTINGS.minPixelRatio,smoothTileEdgesMinZoom:e.DEFAULT_SETTINGS.smoothTileEdgesMinZoom,iOSDevice:e.DEFAULT_SETTINGS.iOSDevice,debugMode:e.DEFAULT_SETTINGS.debugMode,crossOriginPolicy:e.DEFAULT_SETTINGS.crossOriginPolicy,ajaxWithCredentials:e.DEFAULT_SETTINGS.ajaxWithCredentials,placeholderFillStyle:e.DEFAULT_SETTINGS.placeholderFillStyle,opacity:e.DEFAULT_SETTINGS.opacity,preload:e.DEFAULT_SETTINGS.preload,compositeOperation:e.DEFAULT_SETTINGS.compositeOperation,subPixelRoundingForTransparency:e.DEFAULT_SETTINGS.subPixelRoundingForTransparency},t),this._preload=this.preload,delete this.preload,this._fullyLoaded=!1,this._xSpring=new e.Spring({initial:i,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._ySpring=new e.Spring({initial:r,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._scaleSpring=new e.Spring({initial:o,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._degreesSpring=new e.Spring({initial:c,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._updateForScale(),a&&this.fitBounds(a,l,!0),this._drawingHandler=function(t){n.viewer.raiseEvent("tile-drawing",e.extend({tiledImage:n},t))}},e.extend(e.TiledImage.prototype,e.EventSource.prototype,{needsDraw:function(){return this._needsDraw},getFullyLoaded:function(){return this._fullyLoaded},_setFullyLoaded:function(e){e!==this._fullyLoaded&&(this._fullyLoaded=e,this.raiseEvent("fully-loaded-change",{fullyLoaded:this._fullyLoaded}))},reset:function(){this._tileCache.clearTilesFor(this),this.lastResetTime=e.now(),this._needsDraw=!0},update:function(){var e=this._xSpring.update(),t=this._ySpring.update(),n=this._scaleSpring.update(),i=this._degreesSpring.update();return!!(e||t||n||i)&&(this._updateForScale(),this._needsDraw=!0,!0)},draw:function(){0!==this.opacity||this._preload?(this._midDraw=!0,this._updateViewport(),this._midDraw=!1):this._needsDraw=!1},destroy:function(){this.reset(),this.source.destroy&&this.source.destroy()},getBounds:function(e){return this.getBoundsNoRotate(e).rotate(this.getRotation(e),this._getRotationPoint(e))},getBoundsNoRotate:function(t){return t?new e.Rect(this._xSpring.current.value,this._ySpring.current.value,this._worldWidthCurrent,this._worldHeightCurrent):new e.Rect(this._xSpring.target.value,this._ySpring.target.value,this._worldWidthTarget,this._worldHeightTarget)},getWorldBounds:function(){return e.console.error("[TiledImage.getWorldBounds] is deprecated; use TiledImage.getBounds instead"),this.getBounds()},getClippedBounds:function(t){var n=this.getBoundsNoRotate(t);if(this._clip){var i=(t?this._worldWidthCurrent:this._worldWidthTarget)/this.source.dimensions.x,r=this._clip.times(i);n=new e.Rect(n.x+r.x,n.y+r.y,r.width,r.height)}return n.rotate(this.getRotation(t),this._getRotationPoint(t))},getTileBounds:function(e,t,n){var i=this.source.getNumTiles(e),r=(i.x+t%i.x)%i.x,o=(i.y+n%i.y)%i.y,a=this.source.getTileBounds(e,r,o);return this.getFlip()&&(a.x=1-a.x-a.width),a.x+=(t-r)/i.x,a.y+=this._worldHeightCurrent/this._worldWidthCurrent*((n-o)/i.y),a},getContentSize:function(){return new e.Point(this.source.dimensions.x,this.source.dimensions.y)},getSizeInWindowCoordinates:function(){var t=this.imageToWindowCoordinates(new e.Point(0,0)),n=this.imageToWindowCoordinates(this.getContentSize());return new e.Point(n.x-t.x,n.y-t.y)},_viewportToImageDelta:function(t,n,i){var r=i?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t*(this.source.dimensions.x/r),n*(this.source.dimensions.y*this.contentAspectX/r))},viewportToImageCoordinates:function(t,n,i){var r;return t instanceof e.Point?(i=n,r=t):r=new e.Point(t,n),r=r.rotate(-this.getRotation(i),this._getRotationPoint(i)),i?this._viewportToImageDelta(r.x-this._xSpring.current.value,r.y-this._ySpring.current.value):this._viewportToImageDelta(r.x-this._xSpring.target.value,r.y-this._ySpring.target.value)},_imageToViewportDelta:function(t,n,i){var r=i?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t/this.source.dimensions.x*r,n/this.source.dimensions.y/this.contentAspectX*r)},imageToViewportCoordinates:function(t,n,i){t instanceof e.Point&&(i=n,n=t.y,t=t.x);var r=this._imageToViewportDelta(t,n);return i?(r.x+=this._xSpring.current.value,r.y+=this._ySpring.current.value):(r.x+=this._xSpring.target.value,r.y+=this._ySpring.target.value),r.rotate(this.getRotation(i),this._getRotationPoint(i))},imageToViewportRectangle:function(t,n,i,r,o){var a=t;a instanceof e.Rect?o=n:a=new e.Rect(t,n,i,r);var s=this.imageToViewportCoordinates(a.getTopLeft(),o),l=this._imageToViewportDelta(a.width,a.height,o);return new e.Rect(s.x,s.y,l.x,l.y,a.degrees+this.getRotation(o))},viewportToImageRectangle:function(t,n,i,r,o){var a=t;t instanceof e.Rect?o=n:a=new e.Rect(t,n,i,r);var s=this.viewportToImageCoordinates(a.getTopLeft(),o),l=this._viewportToImageDelta(a.width,a.height,o);return new e.Rect(s.x,s.y,l.x,l.y,a.degrees-this.getRotation(o))},viewerElementToImageCoordinates:function(e){var t=this.viewport.pointFromPixel(e,!0);return this.viewportToImageCoordinates(t)},imageToViewerElementCoordinates:function(e){var t=this.imageToViewportCoordinates(e);return this.viewport.pixelFromPoint(t,!0)},windowToImageCoordinates:function(e){var t=e.minus(s.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(t)},imageToWindowCoordinates:function(e){return this.imageToViewerElementCoordinates(e).plus(s.getElementPosition(this.viewer.element))},_viewportToTiledImageRectangle:function(t){var n=this._scaleSpring.current.value;return t=t.rotate(-this.getRotation(!0),this._getRotationPoint(!0)),new e.Rect((t.x-this._xSpring.current.value)/n,(t.y-this._ySpring.current.value)/n,t.width/n,t.height/n,t.degrees)},viewportToImageZoom:function(e){return this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x*e},imageToViewportZoom:function(e){return e/(this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x)},setPosition:function(e,t){var n=this._xSpring.target.value===e.x&&this._ySpring.target.value===e.y;if(t){if(n&&this._xSpring.current.value===e.x&&this._ySpring.current.value===e.y)return;this._xSpring.resetTo(e.x),this._ySpring.resetTo(e.y),this._needsDraw=!0}else{if(n)return;this._xSpring.springTo(e.x),this._ySpring.springTo(e.y),this._needsDraw=!0}n||this._raiseBoundsChange()},setWidth:function(e,t){this._setScale(e,t)},setHeight:function(e,t){this._setScale(e/this.normHeight,t)},setCroppingPolygons:function(t){var n=function(t){return t.map((function(t){try{if(function(t){return t instanceof e.Point||"number"==typeof t.x&&"number"==typeof t.y}(t))return{x:t.x,y:t.y};throw new Error}catch(e){throw new Error("A Provided cropping polygon point is not supported")}}))};try{if(!e.isArray(t))throw new Error("Provided cropping polygon is not an array");this._croppingPolygons=t.map((function(e){return n(e)}))}catch(t){e.console.error("[TiledImage.setCroppingPolygons] Cropping polygon format not supported"),e.console.error(t),this._croppingPolygons=null}},resetCroppingPolygons:function(){this._croppingPolygons=null},fitBounds:function(t,n,i){n=n||e.Placement.CENTER;var r=e.Placement.properties[n],o=this.contentAspectX,a=0,s=0,l=1,c=1;if(this._clip&&(o=this._clip.getAspectRatio(),l=this._clip.width/this.source.dimensions.x,c=this._clip.height/this.source.dimensions.y,t.getAspectRatio()>o?(a=this._clip.x/this._clip.height*t.height,s=this._clip.y/this._clip.height*t.height):(a=this._clip.x/this._clip.width*t.width,s=this._clip.y/this._clip.width*t.width)),t.getAspectRatio()>o){var u=t.height/c,d=0;r.isHorizontallyCentered?d=(t.width-t.height*o)/2:r.isRight&&(d=t.width-t.height*o),this.setPosition(new e.Point(t.x-a+d,t.y-s),i),this.setHeight(u,i)}else{var p=t.width/l,h=0;r.isVerticallyCentered?h=(t.height-t.width/o)/2:r.isBottom&&(h=t.height-t.width/o),this.setPosition(new e.Point(t.x-a,t.y-s+h),i),this.setWidth(p,i)}},getClip:function(){return this._clip?this._clip.clone():null},setClip:function(t){e.console.assert(!t||t instanceof e.Rect,"[TiledImage.setClip] newClip must be an OpenSeadragon.Rect or null"),t instanceof e.Rect?this._clip=t.clone():this._clip=null,this._needsDraw=!0,this.raiseEvent("clip-change")},getFlip:function(){return!!this.flipped},setFlip:function(e){this.flipped=!!e,this._needsDraw=!0,this._raiseBoundsChange()},getOpacity:function(){return this.opacity},setOpacity:function(e){e!==this.opacity&&(this.opacity=e,this._needsDraw=!0,this.raiseEvent("opacity-change",{opacity:this.opacity}))},getPreload:function(){return this._preload},setPreload:function(e){this._preload=!!e,this._needsDraw=!0},getRotation:function(e){return e?this._degreesSpring.current.value:this._degreesSpring.target.value},setRotation:function(e,t){this._degreesSpring.target.value===e&&this._degreesSpring.isAtTargetValue()||(t?this._degreesSpring.resetTo(e):this._degreesSpring.springTo(e),this._needsDraw=!0,this._raiseBoundsChange())},_getRotationPoint:function(e){return this.getBoundsNoRotate(e).getCenter()},getCompositeOperation:function(){return this.compositeOperation},setCompositeOperation:function(e){e!==this.compositeOperation&&(this.compositeOperation=e,this._needsDraw=!0,this.raiseEvent("composite-operation-change",{compositeOperation:this.compositeOperation}))},_setScale:function(e,t){var n=this._scaleSpring.target.value===e;if(t){if(n&&this._scaleSpring.current.value===e)return;this._scaleSpring.resetTo(e),this._updateForScale(),this._needsDraw=!0}else{if(n)return;this._scaleSpring.springTo(e),this._updateForScale(),this._needsDraw=!0}n||this._raiseBoundsChange()},_updateForScale:function(){this._worldWidthTarget=this._scaleSpring.target.value,this._worldHeightTarget=this.normHeight*this._scaleSpring.target.value,this._worldWidthCurrent=this._scaleSpring.current.value,this._worldHeightCurrent=this.normHeight*this._scaleSpring.current.value},_raiseBoundsChange:function(){this.raiseEvent("bounds-change")},_isBottomItem:function(){return this.viewer.world.getItemAt(0)===this},_getLevelsInterval:function(){var e=Math.max(this.source.minLevel,Math.floor(Math.log(this.minZoomImageRatio)/Math.log(2))),t=this.viewport.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(0),!0).x*this._scaleSpring.current.value,n=Math.min(Math.abs(this.source.maxLevel),Math.abs(Math.floor(Math.log(t/this.minPixelRatio)/Math.log(2))));return n=Math.max(n,this.source.minLevel||0),{lowestLevel:e=Math.min(e,n),highestLevel:n}},_updateViewport:function(){for(this._needsDraw=!1,this._tilesLoading=0,this.loadingCoverage={};this.lastDrawn.length>0;){this.lastDrawn.pop().beingDrawn=!1}var t=this.viewport,n=this._viewportToTiledImageRectangle(t.getBoundsWithMargins(!0));if(!this.wrapHorizontal&&!this.wrapVertical){var i=this._viewportToTiledImageRectangle(this.getClippedBounds(!0));if(null===(n=n.intersection(i)))return}for(var r=this._getLevelsInterval(),o=r.lowestLevel,a=r.highestLevel,s=null,l=!1,c=e.now(),u=a;u>=o;u--){var d=!1,p=t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(u),!0).x*this._scaleSpring.current.value;if(u===o||!l&&p>=this.minPixelRatio)d=!0,l=!0;else if(!l)continue;var h=t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(u),!1).x*this._scaleSpring.current.value,f=t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(Math.max(this.source.getClosestLevel(),0)),!1).x*this._scaleSpring.current.value,m=this.immediateRender?1:f,g=Math.min(1,(p-.5)/.5),v=m/Math.abs(m-h);if(s=this._updateLevel(l,d,u,g,v,n,c,s),this._providesCoverage(this.coverage,u))break}this._drawTiles(this.lastDrawn),s&&!s.context2D?(this._loadTile(s,c),this._needsDraw=!0,this._setFullyLoaded(!1)):this._setFullyLoaded(0===this._tilesLoading)},_getCornerTiles:function(t,n,i){var r,o,a,s;this.wrapHorizontal?(r=e.positiveModulo(n.x,1),o=e.positiveModulo(i.x,1)):(r=Math.max(0,n.x),o=Math.min(1,i.x));var l=1/this.source.aspectRatio;this.wrapVertical?(a=e.positiveModulo(n.y,l),s=e.positiveModulo(i.y,l)):(a=Math.max(0,n.y),s=Math.min(l,i.y));var c=this.source.getTileAtPoint(t,new e.Point(r,a)),u=this.source.getTileAtPoint(t,new e.Point(o,s)),d=this.source.getNumTiles(t);return this.wrapHorizontal&&(c.x+=d.x*Math.floor(n.x),u.x+=d.x*Math.floor(i.x)),this.wrapVertical&&(c.y+=d.y*Math.floor(n.y/l),u.y+=d.y*Math.floor(i.y/l)),{topLeft:c,bottomRight:u}},_updateLevel:function(e,t,n,i,r,o,a,s){var l=o.getBoundingBox().getTopLeft(),c=o.getBoundingBox().getBottomRight();this.viewer&&this.viewer.raiseEvent("update-level",{tiledImage:this,havedrawn:e,level:n,opacity:i,visibility:r,drawArea:o,topleft:l,bottomright:c,currenttime:a,best:s}),this._resetCoverage(this.coverage,n),this._resetCoverage(this.loadingCoverage,n);var u=this._getCornerTiles(n,l,c),d=u.topLeft,p=u.bottomRight,h=this.source.getNumTiles(n),f=this.viewport.pixelFromPoint(this.viewport.getCenter());this.getFlip()&&(p.x+=1,this.wrapHorizontal||(p.x=Math.min(p.x,h.x-1)));for(var m=d.x;m<=p.x;m++)for(var g=d.y;g<=p.y;g++){var v;if(this.getFlip()){var y=(h.x+m%h.x)%h.x;v=m+h.x-y-y-1}else v=m;null!==o.intersection(this.getTileBounds(n,v,g))&&(s=this._updateTile(t,e,v,g,n,i,r,f,h,a,s))}return s},_updateTile:function(e,t,n,i,r,o,a,s,l,c,u){var d=this._getTile(n,i,r,c,l,this._worldWidthCurrent,this._worldHeightCurrent),p=t;this.viewer&&this.viewer.raiseEvent("update-tile",{tiledImage:this,tile:d}),this._setCoverage(this.coverage,r,n,i,!1);var h=d.loaded||d.loading||this._isCovered(this.loadingCoverage,r,n,i);if(this._setCoverage(this.loadingCoverage,r,n,i,h),!d.exists)return u;if(e&&!p&&(this._isCovered(this.coverage,r,n,i)?this._setCoverage(this.coverage,r,n,i,!0):p=!0),!p)return u;if(this._positionTile(d,this.source.tileOverlap,this.viewport,s,a),!d.loaded)if(d.context2D)this._setTileLoaded(d);else{var f=this._tileCache.getImageRecord(d.cacheKey);f&&this._setTileLoaded(d,f.getData())}d.loaded?this._blendTile(d,n,i,r,o,c)&&(this._needsDraw=!0):d.loading?this._tilesLoading++:h||(u=this._compareTiles(u,d));return u},_getTile:function(t,n,i,r,o,a,s){var l,c,u,d,p,h,f,m,g,v,y=this.tilesMatrix,b=this.source;return y[i]||(y[i]={}),y[i][t]||(y[i][t]={}),y[i][t][n]&&!y[i][t][n].flipped==!this.flipped||(l=(o.x+t%o.x)%o.x,c=(o.y+n%o.y)%o.y,u=this.getTileBounds(i,t,n),d=b.getTileBounds(i,l,c,!0),p=b.tileExists(i,l,c),h=b.getTileUrl(i,l,c),f=b.getTilePostData(i,l,c),this.loadTilesWithAjax?(m=b.getTileAjaxHeaders(i,l,c),e.isPlainObject(this.ajaxHeaders)&&(m=e.extend({},this.ajaxHeaders,m))):m=null,g=b.getContext2D?b.getContext2D(i,l,c):void 0,v=new e.Tile(i,t,n,u,p,h,g,this.loadTilesWithAjax,m,d,f,b.getTileHashKey(i,l,c,h,m,f)),this.getFlip()?0===l&&(v.isRightMost=!0):l===o.x-1&&(v.isRightMost=!0),c===o.y-1&&(v.isBottomMost=!0),v.flipped=this.flipped,y[i][t][n]=v),(v=y[i][t][n]).lastTouchTime=r,v},_loadTile:function(e,t){var n=this;e.loading=!0,this._imageLoader.addJob({src:e.getUrl(),tile:e,source:this.source,postData:e.postData,loadWithAjax:e.loadWithAjax,ajaxHeaders:e.ajaxHeaders,crossOriginPolicy:this.crossOriginPolicy,ajaxWithCredentials:this.ajaxWithCredentials,callback:function(i,r,o){n._onTileLoad(e,t,i,r,o)},abort:function(){e.loading=!1}})},_onTileLoad:function(t,n,i,r,o){if(!i)return e.console.error("Tile %s failed to load: %s - error: %s",t,t.getUrl(),r),this.viewer.raiseEvent("tile-load-failed",{tile:t,tiledImage:this,time:n,message:r,tileRequest:o}),t.loading=!1,void(t.exists=!1);if(n<this.lastResetTime)return e.console.warn("Ignoring tile %s loaded before reset: %s",t,t.getUrl()),void(t.loading=!1);var a=this,s=function(){var e=a.source.getClosestLevel();a._setTileLoaded(t,i,e,o)};this._midDraw?window.setTimeout(s,1):s()},_setTileLoaded:function(t,n,i,r){var o=0,a=this;function s(){return o++,l}function l(){0===--o&&(t.loading=!1,t.loaded=!0,t.hasTransparency=a.source.hasTransparency(t.context2D,t.getUrl(),t.ajaxHeaders,t.postData),t.context2D||a._tileCache.cacheTile({data:n,tile:t,cutoff:i,tiledImage:a}),a._needsDraw=!0)}this.viewer.raiseEvent("tile-loaded",{tile:t,tiledImage:this,tileRequest:r,get image(){return e.console.error("[tile-loaded] event 'image' has been deprecated. Use 'data' property instead."),n},data:n,getCompletionCallback:s}),s()()},_positionTile:function(t,n,i,r,o){var a=t.bounds.getTopLeft();a.x*=this._scaleSpring.current.value,a.y*=this._scaleSpring.current.value,a.x+=this._xSpring.current.value,a.y+=this._ySpring.current.value;var s=t.bounds.getSize();s.x*=this._scaleSpring.current.value,s.y*=this._scaleSpring.current.value;var l=i.pixelFromPointNoRotate(a,!0),c=i.pixelFromPointNoRotate(a,!1),u=i.deltaPixelsFromPointsNoRotate(s,!0),d=i.deltaPixelsFromPointsNoRotate(s,!1),p=c.plus(d.divide(2)),h=r.squaredDistanceTo(p);n||(u=u.plus(new e.Point(1,1))),t.isRightMost&&this.wrapHorizontal&&(u.x+=.75),t.isBottomMost&&this.wrapVertical&&(u.y+=.75),t.position=l,t.size=u,t.squaredDistance=h,t.visibility=o},_blendTile:function(e,t,n,i,r,o){var a,s,l=1e3*this.blendTime;if(e.blendStart||(e.blendStart=o),a=o-e.blendStart,s=l?Math.min(1,a/l):1,this.alwaysBlend&&(s*=r),e.opacity=s,this.lastDrawn.push(e),1===s)this._setCoverage(this.coverage,i,t,n,!0),this._hasOpaqueTile=!0;else if(a<l)return!0;return!1},_compareTiles:function(e,t){return e?t.visibility>e.visibility||t.visibility===e.visibility&&t.squaredDistance<e.squaredDistance?t:e:t},_drawTiles:function(r){if(0!==this.opacity&&(0!==r.length||this.placeholderFillStyle)){var o,a,s,l=r[0];l&&(o=this.opacity<1||this.compositeOperation&&"source-over"!==this.compositeOperation||!this._isBottomItem()&&this.source.hasTransparency(l.context2D,l.getUrl(),l.ajaxHeaders,l.postData));var c,u=this.viewport.getZoom(!0),d=this.viewportToImageZoom(u);r.length>1&&d>this.smoothTileEdgesMinZoom&&!this.iOSDevice&&this.getRotation(!0)%360==0&&e.supportsCanvas&&this.viewer.useCanvas&&(o=!0,a=l.getScaleForEdgeSmoothing(),s=l.getTranslationForEdgeSmoothing(a,this._drawer.getCanvasSize(!1),this._drawer.getCanvasSize(!0))),o&&(a||(c=this.viewport.viewportToViewerElementRectangle(this.getClippedBounds(!0)).getIntegerBoundingBox(),this._drawer.viewer.viewport.getFlip()&&(this.viewport.getRotation(!0)%360==0&&this.getRotation(!0)%360==0||(c.x=this._drawer.viewer.container.clientWidth-(c.x+c.width))),c=c.times(e.pixelDensityRatio)),this._drawer._clear(!0,c)),a||(this.viewport.getRotation(!0)%360!=0&&this._drawer._offsetForRotation({degrees:this.viewport.getRotation(!0),useSketch:o}),this.getRotation(!0)%360!=0&&this._drawer._offsetForRotation({degrees:this.getRotation(!0),point:this.viewport.pixelFromPointNoRotate(this._getRotationPoint(!0),!0),useSketch:o}),this.viewport.getRotation(!0)%360==0&&this.getRotation(!0)%360==0&&this._drawer.viewer.viewport.getFlip()&&this._drawer._flip());var p=!1;if(this._clip){this._drawer.saveContext(o);var h=this.imageToViewportRectangle(this._clip,!0);h=h.rotate(-this.getRotation(!0),this._getRotationPoint(!0));var f=this._drawer.viewportToDrawerRectangle(h);a&&(f=f.times(a)),s&&(f=f.translate(s)),this._drawer.setClip(f,o),p=!0}if(this._croppingPolygons){var m=this;this._drawer.saveContext(o);try{var g=this._croppingPolygons.map((function(e){return e.map((function(e){var t=m.imageToViewportCoordinates(e.x,e.y,!0).rotate(-m.getRotation(!0),m._getRotationPoint(!0)),n=m._drawer.viewportCoordToDrawerCoord(t);return a&&(n=n.times(a)),n}))}));this._drawer.clipWithPolygons(g,o)}catch(t){e.console.error(t)}p=!0}if(this.placeholderFillStyle&&!1===this._hasOpaqueTile){var v=this._drawer.viewportToDrawerRectangle(this.getBounds(!0));a&&(v=v.times(a)),s&&(v=v.translate(s));var y=null;y="function"==typeof this.placeholderFillStyle?this.placeholderFillStyle(this,this._drawer.context):this.placeholderFillStyle,this._drawer.drawRectangle(v,y,o)}var b=function(r){if("number"==typeof r)return i(r);if(!r||!e.Browser)return t;var o=r[e.Browser.vendor];n(o)&&(o=r["*"]);return i(o)}(this.subPixelRoundingForTransparency),w=!1;if(b===e.SUBPIXEL_ROUNDING_OCCURRENCES.ALWAYS)w=!0;else if(b===e.SUBPIXEL_ROUNDING_OCCURRENCES.ONLY_AT_REST){w=!(this.viewer&&this.viewer.isAnimating())}for(var x=r.length-1;x>=0;x--)l=r[x],this._drawer.drawTile(l,this._drawingHandler,o,a,s,w,this.source),l.beingDrawn=!0,this.viewer&&this.viewer.raiseEvent("tile-drawn",{tiledImage:this,tile:l});p&&this._drawer.restoreContext(o),a||(this.getRotation(!0)%360!=0&&this._drawer._restoreRotationChanges(o),this.viewport.getRotation(!0)%360!=0&&this._drawer._restoreRotationChanges(o)),o&&(a&&(this.viewport.getRotation(!0)%360!=0&&this._drawer._offsetForRotation({degrees:this.viewport.getRotation(!0),useSketch:!1}),this.getRotation(!0)%360!=0&&this._drawer._offsetForRotation({degrees:this.getRotation(!0),point:this.viewport.pixelFromPointNoRotate(this._getRotationPoint(!0),!0),useSketch:!1})),this._drawer.blendSketch({opacity:this.opacity,scale:a,translate:s,compositeOperation:this.compositeOperation,bounds:c}),a&&(this.getRotation(!0)%360!=0&&this._drawer._restoreRotationChanges(!1),this.viewport.getRotation(!0)%360!=0&&this._drawer._restoreRotationChanges(!1))),a||this.viewport.getRotation(!0)%360==0&&this.getRotation(!0)%360==0&&this._drawer.viewer.viewport.getFlip()&&this._drawer._flip(),this._drawDebugInfo(r)}},_drawDebugInfo:function(t){if(this.debugMode)for(var n=t.length-1;n>=0;n--){var i=t[n];try{this._drawer.drawDebugInfo(i,t.length,n,this)}catch(t){e.console.error(t)}}},_providesCoverage:function(e,t,n,i){var r,o,a,s;if(!e[t])return!1;if(void 0===n||void 0===i){for(a in r=e[t])if(Object.prototype.hasOwnProperty.call(r,a))for(s in o=r[a])if(Object.prototype.hasOwnProperty.call(o,s)&&!o[s])return!1;return!0}return void 0===e[t][n]||void 0===e[t][n][i]||!0===e[t][n][i]},_isCovered:function(e,t,n,i){return void 0===n||void 0===i?this._providesCoverage(e,t+1):this._providesCoverage(e,t+1,2*n,2*i)&&this._providesCoverage(e,t+1,2*n,2*i+1)&&this._providesCoverage(e,t+1,2*n+1,2*i)&&this._providesCoverage(e,t+1,2*n+1,2*i+1)},_setCoverage:function(t,n,i,r,o){t[n]?(t[n][i]||(t[n][i]={}),t[n][i][r]=o):e.console.warn("Setting coverage for a tile before its level's coverage has been reset: %s",n)},_resetCoverage:function(e,t){e[t]={}}});var t=e.SUBPIXEL_ROUNDING_OCCURRENCES.NEVER;function n(t){return t!==e.SUBPIXEL_ROUNDING_OCCURRENCES.ALWAYS&&t!==e.SUBPIXEL_ROUNDING_OCCURRENCES.ONLY_AT_REST&&t!==e.SUBPIXEL_ROUNDING_OCCURRENCES.NEVER}function i(e){return n(e)?t:e}}(s),function(e){var t=function(t){e.console.assert(t,"[TileCache.cacheTile] options is required"),e.console.assert(t.tile,"[TileCache.cacheTile] options.tile is required"),e.console.assert(t.tiledImage,"[TileCache.cacheTile] options.tiledImage is required"),this.tile=t.tile,this.tiledImage=t.tiledImage},n=function(t){e.console.assert(t,"[ImageRecord] options is required"),e.console.assert(t.data,"[ImageRecord] options.data is required"),this._tiles=[],t.create.apply(null,[this,t.data,t.ownerTile]),this._destroyImplementation=t.destroy.bind(null,this),this.getImage=t.getImage.bind(null,this),this.getData=t.getData.bind(null,this),this.getRenderedContext=t.getRenderedContext.bind(null,this)};n.prototype={destroy:function(){this._destroyImplementation(),this._tiles=null},addTile:function(t){e.console.assert(t,"[ImageRecord.addTile] tile is required"),this._tiles.push(t)},removeTile:function(t){for(var n=0;n<this._tiles.length;n++)if(this._tiles[n]===t)return void this._tiles.splice(n,1);e.console.warn("[ImageRecord.removeTile] trying to remove unknown tile",t)},getTileCount:function(){return this._tiles.length}},e.TileCache=function(t){t=t||{},this._maxImageCacheCount=t.maxImageCacheCount||e.DEFAULT_SETTINGS.maxImageCacheCount,this._tilesLoaded=[],this._imagesLoaded=[],this._imagesLoadedCount=0},e.TileCache.prototype={numTilesLoaded:function(){return this._tilesLoaded.length},cacheTile:function(i){e.console.assert(i,"[TileCache.cacheTile] options is required"),e.console.assert(i.tile,"[TileCache.cacheTile] options.tile is required"),e.console.assert(i.tile.cacheKey,"[TileCache.cacheTile] options.tile.cacheKey is required"),e.console.assert(i.tiledImage,"[TileCache.cacheTile] options.tiledImage is required");var r=i.cutoff||0,o=this._tilesLoaded.length,a=this._imagesLoaded[i.tile.cacheKey];if(a||(i.data||(e.console.error("[TileCache.cacheTile] options.image was renamed to options.data. '.image' attribute has been deprecated and will be removed in the future."),i.data=i.image),e.console.assert(i.data,"[TileCache.cacheTile] options.data is required to create an ImageRecord"),a=this._imagesLoaded[i.tile.cacheKey]=new n({data:i.data,ownerTile:i.tile,create:i.tiledImage.source.createTileCache,destroy:i.tiledImage.source.destroyTileCache,getImage:i.tiledImage.source.getTileCacheDataAsImage,getData:i.tiledImage.source.getTileCacheData,getRenderedContext:i.tiledImage.source.getTileCacheDataAsContext2D}),this._imagesLoadedCount++),a.addTile(i.tile),i.tile.cacheImageRecord=a,this._imagesLoadedCount>this._maxImageCacheCount){for(var s,l,c,u,d,p,h=null,f=-1,m=null,g=this._tilesLoaded.length-1;g>=0;g--)(s=(p=this._tilesLoaded[g]).tile).level<=r||s.beingDrawn||(h?(u=s.lastTouchTime,l=h.lastTouchTime,d=s.level,c=h.level,(u<l||u===l&&d>c)&&(h=s,f=g,m=p)):(h=s,f=g,m=p));h&&f>=0&&(this._unloadTile(m),o=f)}this._tilesLoaded[o]=new t({tile:i.tile,tiledImage:i.tiledImage})},clearTilesFor:function(t){var n;e.console.assert(t,"[TileCache.clearTilesFor] tiledImage is required");for(var i=0;i<this._tilesLoaded.length;++i)(n=this._tilesLoaded[i]).tiledImage===t&&(this._unloadTile(n),this._tilesLoaded.splice(i,1),i--)},getImageRecord:function(t){return e.console.assert(t,"[TileCache.getImageRecord] cacheKey is required"),this._imagesLoaded[t]},_unloadTile:function(t){e.console.assert(t,"[TileCache._unloadTile] tileRecord is required");var n=t.tile,i=t.tiledImage;n.unload(),n.cacheImageRecord=null;var r=this._imagesLoaded[n.cacheKey];r.removeTile(n),r.getTileCount()||(r.destroy(),delete this._imagesLoaded[n.cacheKey],this._imagesLoadedCount--),i.viewer.raiseEvent("tile-unloaded",{tile:n,tiledImage:i})}}}(s),function(e){e.World=function(t){var n=this;e.console.assert(t.viewer,"[World] options.viewer is required"),e.EventSource.call(this),this.viewer=t.viewer,this._items=[],this._needsDraw=!1,this._autoRefigureSizes=!0,this._needsSizesFigured=!1,this._delegatedFigureSizes=function(e){n._autoRefigureSizes?n._figureSizes():n._needsSizesFigured=!0},this._figureSizes()},e.extend(e.World.prototype,e.EventSource.prototype,{addItem:function(t,n){if(e.console.assert(t,"[World.addItem] item is required"),e.console.assert(t instanceof e.TiledImage,"[World.addItem] only TiledImages supported at this time"),void 0!==(n=n||{}).index){var i=Math.max(0,Math.min(this._items.length,n.index));this._items.splice(i,0,t)}else this._items.push(t);this._autoRefigureSizes?this._figureSizes():this._needsSizesFigured=!0,this._needsDraw=!0,t.addHandler("bounds-change",this._delegatedFigureSizes),t.addHandler("clip-change",this._delegatedFigureSizes),this.raiseEvent("add-item",{item:t})},getItemAt:function(t){return e.console.assert(void 0!==t,"[World.getItemAt] index is required"),this._items[t]},getIndexOfItem:function(t){return e.console.assert(t,"[World.getIndexOfItem] item is required"),e.indexOf(this._items,t)},getItemCount:function(){return this._items.length},setItemIndex:function(t,n){e.console.assert(t,"[World.setItemIndex] item is required"),e.console.assert(void 0!==n,"[World.setItemIndex] index is required");var i=this.getIndexOfItem(t);if(n>=this._items.length)throw new Error("Index bigger than number of layers.");n!==i&&-1!==i&&(this._items.splice(i,1),this._items.splice(n,0,t),this._needsDraw=!0,this.raiseEvent("item-index-change",{item:t,previousIndex:i,newIndex:n}))},removeItem:function(t){e.console.assert(t,"[World.removeItem] item is required");var n=e.indexOf(this._items,t);-1!==n&&(t.removeHandler("bounds-change",this._delegatedFigureSizes),t.removeHandler("clip-change",this._delegatedFigureSizes),t.destroy(),this._items.splice(n,1),this._figureSizes(),this._needsDraw=!0,this._raiseRemoveItem(t))},removeAll:function(){var e,t;for(this.viewer._cancelPendingImages(),t=0;t<this._items.length;t++)(e=this._items[t]).removeHandler("bounds-change",this._delegatedFigureSizes),e.removeHandler("clip-change",this._delegatedFigureSizes),e.destroy();var n=this._items;for(this._items=[],this._figureSizes(),this._needsDraw=!0,t=0;t<n.length;t++)e=n[t],this._raiseRemoveItem(e)},resetItems:function(){for(var e=0;e<this._items.length;e++)this._items[e].reset()},update:function(){for(var e=!1,t=0;t<this._items.length;t++)e=this._items[t].update()||e;return e},draw:function(){for(var e=0;e<this._items.length;e++)this._items[e].draw();this._needsDraw=!1},needsDraw:function(){for(var e=0;e<this._items.length;e++)if(this._items[e].needsDraw())return!0;return this._needsDraw},getHomeBounds:function(){return this._homeBounds.clone()},getContentFactor:function(){return this._contentFactor},setAutoRefigureSizes:function(e){this._autoRefigureSizes=e,e&this._needsSizesFigured&&(this._figureSizes(),this._needsSizesFigured=!1)},arrange:function(t){var n,i=(t=t||{}).immediately||!1,r=t.layout||e.DEFAULT_SETTINGS.collectionLayout,o=t.rows||e.DEFAULT_SETTINGS.collectionRows,a=t.columns||e.DEFAULT_SETTINGS.collectionColumns,s=t.tileSize||e.DEFAULT_SETTINGS.collectionTileSize,l=s+(t.tileMargin||e.DEFAULT_SETTINGS.collectionTileMargin);n=!t.rows&&a?a:Math.ceil(this._items.length/o);var c,u,d,p,h,f=0,m=0;this.setAutoRefigureSizes(!1);for(var g=0;g<this._items.length;g++)g&&g%n==0&&("horizontal"===r?(m+=l,f=0):(f+=l,m=0)),p=(d=(u=(c=this._items[g]).getBounds()).width>u.height?s:s*(u.width/u.height))*(u.height/u.width),h=new e.Point(f+(s-d)/2,m+(s-p)/2),c.setPosition(h,i),c.setWidth(d,i),"horizontal"===r?f+=l:m+=l;this.setAutoRefigureSizes(!0)},_figureSizes:function(){var t=this._homeBounds?this._homeBounds.clone():null,n=this._contentSize?this._contentSize.clone():null,i=this._contentFactor||0;if(this._items.length){var r=this._items[0],o=r.getBounds();this._contentFactor=r.getContentSize().x/o.width;for(var a=r.getClippedBounds().getBoundingBox(),s=a.x,l=a.y,c=a.x+a.width,u=a.y+a.height,d=1;d<this._items.length;d++)o=(r=this._items[d]).getBounds(),this._contentFactor=Math.max(this._contentFactor,r.getContentSize().x/o.width),a=r.getClippedBounds().getBoundingBox(),s=Math.min(s,a.x),l=Math.min(l,a.y),c=Math.max(c,a.x+a.width),u=Math.max(u,a.y+a.height);this._homeBounds=new e.Rect(s,l,c-s,u-l),this._contentSize=new e.Point(this._homeBounds.width*this._contentFactor,this._homeBounds.height*this._contentFactor)}else this._homeBounds=new e.Rect(0,0,1,1),this._contentSize=new e.Point(1,1),this._contentFactor=1;this._contentFactor===i&&this._homeBounds.equals(t)&&this._contentSize.equals(n)||this.raiseEvent("metrics-change",{})},_raiseRemoveItem:function(e){this.raiseEvent("remove-item",{item:e})}})}(s)},1245:(e,t,n)=>{"use strict";var i=n(1132);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},6838:(e,t,n)=>{e.exports=n(1245)()},1132:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3562:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(4639),o=s(r),a=s(n(6838));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),i=void 0;if(this.props.useWindow){var r=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:r.scrollTop;i=this.props.isReverse?o:this.calculateOffset(e,o)}else i=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;i<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,i=t.element,r=t.hasMore,a=(t.initialLoad,t.isReverse),s=t.loader,l=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return r&&(s?a?u.unshift(s):u.push(s):this.defaultLoader&&(a?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(i,c,u)}}]),t}(r.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},2857:(e,t,n)=>{e.exports=n(3562)},1100:(e,t)=>{"use strict";var n=60103,i=60106,r=60107,o=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,h=60116,f=60121,m=60122,g=60117,v=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),i=b("react.portal"),r=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),p=b("react.memo"),h=b("react.lazy"),f=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e.type){case r:case a:case o:case u:case d:return e;default:switch(e&&e.$$typeof){case l:case c:case h:case p:case s:return e;default:return t}}case i:return t}}}},8064:(e,t,n)=>{"use strict";n(1100)},6898:(e,t,n)=>{"use strict";function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,n,i,r,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var a={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){a[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=i(e,2),n=t[0],r=t[1];a[n]=new o(n,1,!1,r,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){a[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){a[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){a[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){a[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){a[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){a[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){a[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var s=/[\-\:]([a-z])/g,l=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(s,l);a[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(s,l);a[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(s,l);a[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){a[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)}));a.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){a[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var c=n(4831),u=c.CAMELCASE,d=c.SAME,p=c.possibleStandardNames,h=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),f=Object.keys(p).reduce((function(e,t){var n=p[t];return n===d?e[t]=t:n===u?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return a.hasOwnProperty(e)?a[e]:null},t.isCustomAttribute=h,t.possibleStandardNames=f},4831:(e,t)=>{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},6628:(e,t)=>{"use strict";var n,i=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case o:case s:case a:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case f:case l:return e;default:return t}}case r:return t}}}n=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return v(e)===c}},9388:(e,t,n)=>{"use strict";e.exports=n(6628)},9291:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=a(n(4639)),o=a(n(3039));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){return r.default.createElement("input",this.props,this.props.children)}}]),t}(r.default.Component);t.default=(0,o.default)(s)},819:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=l(n(4639)),a=l(n(6389)),s=l(n(6838));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this,t=i({},this.props);return t.parentBindings&&delete t.parentBindings,o.default.createElement("div",i({},t,{ref:function(t){e.props.parentBindings.domNode=t}}),this.props.children)}}]),t}(o.default.Component);c.propTypes={name:s.default.string,id:s.default.string},t.default=(0,a.default)(c)},740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(4639)),r=o(n(3039));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.render=function(){return i.default.createElement("a",r.props,r.props.children)},a(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default.Component);t.default=(0,r.default)(s)},9451:(e,t,n)=>{"use strict";t.rU=void 0;var i=h(n(740)),r=h(n(9291)),o=h(n(819)),a=h(n(8623)),s=h(n(9072)),l=h(n(3132)),c=h(n(9800)),u=h(n(3039)),d=h(n(6389)),p=h(n(6060));function h(e){return e&&e.__esModule?e:{default:e}}t.rU=i.default,r.default,o.default,a.default,s.default,l.default,c.default,u.default,d.default,p.default,i.default,r.default,o.default,a.default,s.default,l.default,c.default,u.default,d.default,p.default},6060:(e,t,n)=>{"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n(4639),c=(n(1346),n(2166),n(3132)),u=n(8623),d=n(6838),p=n(4134),h={to:d.string.isRequired,containerId:d.string,container:d.object,activeClass:d.string,spy:d.bool,smooth:d.oneOfType([d.bool,d.string]),offset:d.number,delay:d.number,isDynamic:d.bool,onClick:d.func,duration:d.oneOfType([d.number,d.func]),absolute:d.bool,onSetActive:d.func,onSetInactive:d.func,ignoreCancelEvents:d.bool,hashSpy:d.bool,spyThrottle:d.number},f={Scroll:function(e,t){console.warn("Helpers.Scroll is deprecated since v1.7.0");var n=t||u,d=function(t){function u(e){o(this,u);var t=a(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,e));return f.call(t),t.state={active:!1},t}return s(u,t),r(u,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();c.isMounted(e)||c.mount(e,this.props.spyThrottle),this.props.hashSpy&&(p.isMounted()||p.mount(n),p.mapContainer(this.props.to,e)),this.props.spy&&c.addStateHandler(this.stateHandler),c.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){c.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=i({},this.props);for(var r in h)n.hasOwnProperty(r)&&delete n[r];return n.className=t,n.onClick=this.handleClick,l.createElement(e,n)}}]),u}(l.Component),f=function(){var e=this;this.scrollTo=function(t,r){n.scrollTo(t,i({},e.state,r))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.stateHandler=function(){n.getActiveLink()!==e.props.to&&(null!==e.state&&e.state.active&&e.props.onSetInactive&&e.props.onSetInactive(),e.setState({active:!1}))},this.spyHandler=function(t){var i=e.getScrollSpyContainer();if(!p.isMounted()||p.isInitialized()){var r=e.props.to,o=null,a=0,s=0,l=0;if(i.getBoundingClientRect)l=i.getBoundingClientRect().top;if(!o||e.props.isDynamic){if(!(o=n.get(r)))return;var u=o.getBoundingClientRect();s=(a=u.top-l+t)+u.height}var d=t-e.props.offset,h=d>=Math.floor(a)&&d<Math.floor(s),f=d<Math.floor(a)||d>=Math.floor(s),m=n.getActiveLink();return f?(r===m&&n.setActiveLink(void 0),e.props.hashSpy&&p.getHash()===r&&p.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive()),c.updateStates()):h&&m!==r?(n.setActiveLink(r),e.props.hashSpy&&p.changeHash(r),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(r)),c.updateStates()):void 0}}};return d.propTypes=h,d.defaultProps={offset:0},d},Element:function(e){console.warn("Helpers.Element is deprecated since v1.7.0");var t=function(t){function n(e){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return s(n,t),r(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(e){this.props.name!==e.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;u.unregister(this.props.name)}},{key:"registerElems",value:function(e){u.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return l.createElement(e,i({},this.props,{parentBindings:this.childBindings}))}}]),n}(l.Component);return t.propTypes={name:d.string,id:d.string},t}};e.exports=f},9800:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=(s(n(2166)),s(n(5726))),o=s(n(785)),a=s(n(9072));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return r.default[e.smooth]||r.default.defaultEasing},c=function(){if("undefined"!=typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(e,t,n){window.setTimeout(e,n||1e3/60,(new Date).getTime())},u=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollLeft;var n=void 0!==window.pageXOffset,i="CSS1Compat"===(document.compatMode||"");return n?window.pageXOffset:i?document.documentElement.scrollLeft:document.body.scrollLeft},d=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollTop;var n=void 0!==window.pageXOffset,i="CSS1Compat"===(document.compatMode||"");return n?window.pageYOffset:i?document.documentElement.scrollTop:document.body.scrollTop},p=function e(t,n,i){var r=n.data;if(n.ignoreCancelEvents||!r.cancel)if(r.delta=Math.round(r.targetPosition-r.startPosition),null===r.start&&(r.start=i),r.progress=i-r.start,r.percent=r.progress>=r.duration?1:t(r.progress/r.duration),r.currentPosition=r.startPosition+Math.ceil(r.delta*r.percent),r.containerElement&&r.containerElement!==document&&r.containerElement!==document.body?n.horizontal?r.containerElement.scrollLeft=r.currentPosition:r.containerElement.scrollTop=r.currentPosition:n.horizontal?window.scrollTo(r.currentPosition,0):window.scrollTo(0,r.currentPosition),r.percent<1){var o=e.bind(null,t,n);c.call(window,o)}else a.default.registered.end&&a.default.registered.end(r.to,r.target,r.currentPosition);else a.default.registered.end&&a.default.registered.end(r.to,r.target,r.currentPositionY)},h=function(e){e.data.containerElement=e?e.containerId?document.getElementById(e.containerId):e.container&&e.container.nodeType?e.container:document:null},f=function(e,t,n,i){if(t.data=t.data||{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null},window.clearTimeout(t.data.delayTimeout),o.default.subscribe((function(){t.data.cancel=!0})),h(t),t.data.start=null,t.data.cancel=!1,t.data.startPosition=t.horizontal?u(t):d(t),t.data.targetPosition=t.absolute?e:e+t.data.startPosition,t.data.startPosition!==t.data.targetPosition){var r;t.data.delta=Math.round(t.data.targetPosition-t.data.startPosition),t.data.duration=("function"==typeof(r=t.duration)?r:function(){return r})(t.data.delta),t.data.duration=isNaN(parseFloat(t.data.duration))?1e3:parseFloat(t.data.duration),t.data.to=n,t.data.target=i;var s=l(t),f=p.bind(null,s,t);t&&t.delay>0?t.data.delayTimeout=window.setTimeout((function(){a.default.registered.begin&&a.default.registered.begin(t.data.to,t.data.target),c.call(window,f)}),t.delay):(a.default.registered.begin&&a.default.registered.begin(t.data.to,t.data.target),c.call(window,f))}else a.default.registered.end&&a.default.registered.end(t.data.to,t.data.target,t.data.currentPosition)},m=function(e){return(e=i({},e)).data=e.data||{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null},e.absolute=!0,e};t.default={animateTopScroll:f,getAnimationType:l,scrollToTop:function(e){f(0,m(e))},scrollToBottom:function(e){e=m(e),h(e),f(e.horizontal?function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollWidth-t.offsetWidth;var n=document.body,i=document.documentElement;return Math.max(n.scrollWidth,n.offsetWidth,i.clientWidth,i.scrollWidth,i.offsetWidth)}(e):function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollHeight-t.offsetHeight;var n=document.body,i=document.documentElement;return Math.max(n.scrollHeight,n.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)}(e),e)},scrollTo:function(e,t){f(e,m(t))},scrollMore:function(e,t){t=m(t),h(t);var n=t.horizontal?u(t):d(t);f(e+n,t)}}},785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6824),r=["mousedown","mousewheel","touchmove","keydown"];t.default={subscribe:function(e){return"undefined"!=typeof document&&r.forEach((function(t){return(0,i.addPassiveEventListener)(document,t,e)}))}}},6824:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.addPassiveEventListener=function(e,t,n){var i=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}();e.addEventListener(t,n,!!i&&{passive:!0})},t.removePassiveEventListener=function(e,t,n){e.removeEventListener(t,n)}},6389:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=l(n(4639)),a=(l(n(1346)),l(n(8623))),s=l(n(6838));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),r(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(e){this.props.name!==e.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;a.default.unregister(this.props.name)}},{key:"registerElems",value:function(e){a.default.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return o.default.createElement(e,i({},this.props,{parentBindings:this.childBindings}))}}]),n}(o.default.Component);return t.propTypes={name:s.default.string,id:s.default.string},t}},9072:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={registered:{},scrollEvent:{register:function(e,t){n.registered[e]=t},remove:function(e){n.registered[e]=null}}};t.default=n},4134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(6824);var i,r=n(2166),o=(i=r)&&i.__esModule?i:{default:i};var a={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(e){this.scroller=e,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(e,t){this.containers[e]=t},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var e=this,t=this.getHash();t?window.setTimeout((function(){e.scrollTo(t,!0),e.initialized=!0}),10):this.initialized=!0},scrollTo:function(e,t){var n=this.scroller;if(n.get(e)&&(t||e!==n.getActiveLink())){var i=this.containers[e]||document;n.scrollTo(e,{container:i})}},getHash:function(){return o.default.getHash()},changeHash:function(e,t){this.isInitialized()&&o.default.getHash()!==e&&o.default.updateHash(e,t)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};t.default=a},3039:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=u(n(4639)),a=u(n(3132)),s=u(n(8623)),l=u(n(6838)),c=u(n(4134));function u(e){return e&&e.__esModule?e:{default:e}}var d={to:l.default.string.isRequired,containerId:l.default.string,container:l.default.object,activeClass:l.default.string,activeStyle:l.default.object,spy:l.default.bool,horizontal:l.default.bool,smooth:l.default.oneOfType([l.default.bool,l.default.string]),offset:l.default.number,delay:l.default.number,isDynamic:l.default.bool,onClick:l.default.func,duration:l.default.oneOfType([l.default.number,l.default.func]),absolute:l.default.bool,onSetActive:l.default.func,onSetInactive:l.default.func,ignoreCancelEvents:l.default.bool,hashSpy:l.default.bool,saveHashHistory:l.default.bool,spyThrottle:l.default.number};t.default=function(e,t){var n=t||s.default,l=function(t){function s(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e));return u.call(t),t.state={active:!1},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,t),r(s,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e&&!t?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();a.default.isMounted(e)||a.default.mount(e,this.props.spyThrottle),this.props.hashSpy&&(c.default.isMounted()||c.default.mount(n),c.default.mapContainer(this.props.to,e)),a.default.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){a.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n={};n=this.state&&this.state.active?i({},this.props.style,this.props.activeStyle):i({},this.props.style);var r=i({},this.props);for(var a in d)r.hasOwnProperty(a)&&delete r[a];return r.className=t,r.style=n,r.onClick=this.handleClick,o.default.createElement(e,r)}}]),s}(o.default.PureComponent),u=function(){var e=this;this.scrollTo=function(t,r){n.scrollTo(t,i({},e.state,r))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.spyHandler=function(t,i){var r=e.getScrollSpyContainer();if(!c.default.isMounted()||c.default.isInitialized()){var o=e.props.horizontal,a=e.props.to,s=null,l=void 0,u=void 0;if(o){var d=0,p=0,h=0;if(r.getBoundingClientRect)h=r.getBoundingClientRect().left;if(!s||e.props.isDynamic){if(!(s=n.get(a)))return;var f=s.getBoundingClientRect();p=(d=f.left-h+t)+f.width}var m=t-e.props.offset;l=m>=Math.floor(d)&&m<Math.floor(p),u=m<Math.floor(d)||m>=Math.floor(p)}else{var g=0,v=0,y=0;if(r.getBoundingClientRect)y=r.getBoundingClientRect().top;if(!s||e.props.isDynamic){if(!(s=n.get(a)))return;var b=s.getBoundingClientRect();v=(g=b.top-y+i)+b.height}var w=i-e.props.offset;l=w>=Math.floor(g)&&w<Math.floor(v),u=w<Math.floor(g)||w>=Math.floor(v)}var x=n.getActiveLink();if(u){if(a===x&&n.setActiveLink(void 0),e.props.hashSpy&&c.default.getHash()===a){var C=e.props.saveHashHistory,E=void 0!==C&&C;c.default.changeHash("",E)}e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive(a,s))}if(l&&(x!==a||!1===e.state.active)){n.setActiveLink(a);var S=e.props.saveHashHistory,T=void 0!==S&&S;e.props.hashSpy&&c.default.changeHash(a,T),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(a,s))}}}};return l.propTypes=d,l.defaultProps={offset:0},l}},3132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(5652),o=(i=r)&&i.__esModule?i:{default:i},a=n(6824);var s={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(e,t){if(e){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:66;return(0,o.default)(e,t)}((function(t){s.scrollHandler(e)}),t);s.scrollSpyContainers.push(e),(0,a.addPassiveEventListener)(e,"scroll",n)}},isMounted:function(e){return-1!==s.scrollSpyContainers.indexOf(e)},currentPositionX:function(e){if(e===document){var t=void 0!==window.pageYOffset,n="CSS1Compat"===(document.compatMode||"");return t?window.pageXOffset:n?document.documentElement.scrollLeft:document.body.scrollLeft}return e.scrollLeft},currentPositionY:function(e){if(e===document){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return t?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop}return e.scrollTop},scrollHandler:function(e){(s.scrollSpyContainers[s.scrollSpyContainers.indexOf(e)].spyCallbacks||[]).forEach((function(t){return t(s.currentPositionX(e),s.currentPositionY(e))}))},addStateHandler:function(e){s.spySetState.push(e)},addSpyHandler:function(e,t){var n=s.scrollSpyContainers[s.scrollSpyContainers.indexOf(t)];n.spyCallbacks||(n.spyCallbacks=[]),n.spyCallbacks.push(e),e(s.currentPositionX(t),s.currentPositionY(t))},updateStates:function(){s.spySetState.forEach((function(e){return e()}))},unmount:function(e,t){s.scrollSpyContainers.forEach((function(e){return e.spyCallbacks&&e.spyCallbacks.length&&e.spyCallbacks.indexOf(t)>-1&&e.spyCallbacks.splice(e.spyCallbacks.indexOf(t),1)})),s.spySetState&&s.spySetState.length&&s.spySetState.indexOf(e)>-1&&s.spySetState.splice(s.spySetState.indexOf(e),1),document.removeEventListener("scroll",s.scrollHandler)},update:function(){return s.scrollSpyContainers.forEach((function(e){return s.scrollHandler(e)}))}};t.default=s},8623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=s(n(2166)),o=s(n(9800)),a=s(n(9072));function s(e){return e&&e.__esModule?e:{default:e}}var l={},c=void 0;t.default={unmount:function(){l={}},register:function(e,t){l[e]=t},unregister:function(e){delete l[e]},get:function(e){return l[e]||document.getElementById(e)||document.getElementsByName(e)[0]||document.getElementsByClassName(e)[0]},setActiveLink:function(e){return c=e},getActiveLink:function(){return c},scrollTo:function(e,t){var n=this.get(e);if(n){var s=(t=i({},t,{absolute:!1})).containerId,l=t.container,c=void 0;c=s?document.getElementById(s):l&&l.nodeType?l:document,t.absolute=!0;var u=t.horizontal,d=r.default.scrollOffset(c,n,u)+(t.offset||0);if(!t.smooth)return a.default.registered.begin&&a.default.registered.begin(e,n),c===document?t.horizontal?window.scrollTo(d,0):window.scrollTo(0,d):c.scrollTop=d,void(a.default.registered.end&&a.default.registered.end(e,n));o.default.animateTopScroll(d,t,e,n)}else console.warn("target Element not found")}}},5726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={defaultEasing:function(e){return e<.5?Math.pow(2*e,2)/2:1-Math.pow(2*(1-e),2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}},2166:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){for(var n=e.offsetTop,i=e.offsetParent;i&&!t(i);)n+=i.offsetTop,i=i.offsetParent;return{offsetTop:n,offsetParent:i}};t.default={updateHash:function(e,t){var n=0===e.indexOf("#")?e.substring(1):e,i=n?"#"+n:"",r=window&&window.location,o=i?r.pathname+r.search+i:r.pathname+r.search;t?history.pushState(history.state,"",o):history.replaceState(history.state,"",o)},getHash:function(){return window.location.hash.replace(/^#/,"")},filterElementInContainer:function(e){return function(t){return e.contains?e!=t&&e.contains(t):!!(16&e.compareDocumentPosition(t))}},scrollOffset:function(e,t,i){if(i)return e===document?t.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):"static"!==getComputedStyle(e).position?t.offsetLeft:t.offsetLeft-e.offsetLeft;if(e===document)return t.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if("static"!==getComputedStyle(e).position){if(t.offsetParent!==e){var r=n(t,(function(t){return t===e||t===document})),o=r.offsetTop;if(r.offsetParent!==e)throw new Error("Seems containerElement is not an ancestor of the Element");return o}return t.offsetTop}if(t.offsetParent===e.offsetParent)return t.offsetTop-e.offsetTop;var a=function(e){return e===document};return n(t,a).offsetTop-n(e,a).offsetTop}}},7111:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var r=i(n(6742)),o=n(9842);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,i){e&&i&&(n[(0,o.camelCase)(e,t)]=i)})),n):n}},9842:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,i=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(o,l)).replace(i,s))}},6742:(e,t,n)=>{var i=n(5689);function r(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var o,a,s=i(e),l="function"==typeof t,c=0,u=s.length;c<u;c++)o=(n=s[c]).property,a=n.value,l?t(o,a,n):a&&(r||(r={}),r[o]=a);return r}e.exports=r,e.exports.default=r},1582:(e,t,n)=>{"use strict";var i=n(4639);var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useState,a=i.useEffect,s=i.useLayoutEffect,l=i.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=o({inst:{value:n,getSnapshot:t}}),r=i[0].inst,u=i[1];return s((function(){r.value=n,r.getSnapshot=t,c(r)&&u({inst:r})}),[e,n,t]),a((function(){return c(r)&&u({inst:r}),e((function(){c(r)&&u({inst:r})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:u},6518:(e,t,n)=>{"use strict";var i=n(4639),r=n(4203);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useSyncExternalStore,s=i.useRef,l=i.useEffect,c=i.useMemo,u=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,i,r){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,a=e,e=i(e),void 0!==r&&p.hasValue){var t=p.value;if(r(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=i(e);return void 0!==r&&r(t,n)?t:(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,i,r]);var h=a(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),u(h),h}},4203:(e,t,n)=>{"use strict";e.exports=n(1582)},9205:(e,t,n)=>{"use strict";e.exports=n(6518)},5369:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(8515),r=n.n(i),o=n(2616),a=n.n(o),s=n(9676),l=n.n(s),c=new URL(n(8174),n.b),u=a()(r());u.push([e.id,"@import url(https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css);"]),u.push([e.id,"@import url(https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Martel+Sans:wght@200&family=Martel:wght@400;700&family=Taviraj:wght@300;500&display=swap);"]),u.push([e.id,"@import url(https://fonts.googleapis.com/icon?family=Material+Icons);"]),u.push([e.id,"@import url(https://use.fontawesome.com/releases/v5.0.8/css/all.css);"]);var d=l()(c);u.push([e.id,"*{box-sizing:border-box}div{width:auto}body{padding:0;margin:0;box-sizing:border-box}.warning{color:#ff0}.fa{width:1.5rem;padding:.2rem .1rem .1rem;text-align:center}.fa.active{background-color:rgba(158,158,158,.0392156863);border:.2rem solid #ff9800}.fa-book.active{border-radius:0 2rem 2rem 0}.fa:not(.active){color:gray}.fa.fa-lock,.fa.fa-lock-open{border-radius:2rem 0 0 2rem}.line-clamp{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:3}.line-clamp.two-lines{-webkit-line-clamp:2}.flex-parent{display:flex}.flex-parent.half-width{width:50%}.flex-parent.full-width{width:100%}.flex-parent.column{flex-direction:column}.flex-parent.jc-start{justify-content:flex-start}.flex-parent.jc-center{justify-content:center}.flex-parent.jc-end{justify-content:flex-end}.flex-parent.jc-space-btw{justify-content:space-between}.flex-parent.jc-space-around{justify-content:space-around}.flex-parent.ai-start{align-items:flex-start}.flex-parent.ai-center{align-items:center}.flex-parent.ai-end{align-items:flex-end}.flex-parent.wrap{flex-wrap:wrap}.flex-parent.row-reverse{flex-direction:row-reverse}.flex-parent.column-reverse{flex-direction:column-reverse}.flex-parent .flex-1{flex:1}.flex-parent .flex-2{flex:2}.flex-parent .flex-3{flex:3}.flex-parent .flex-4{flex:4}.flex-parent .flex-5{flex:5}.flex-parent .flex-6{flex:6}.flex-parent .flex-7{flex:7}.flex-parent .flex-8{flex:8}.flex-parent .flex-9{flex:9}.flex-parent .flex-10{flex:10}.flex-parent .flex-11{flex:11}.flex-parent .flex-12{flex:12}.bg-maroon-gradient{background-image:linear-gradient(to right, #792421, #66211c, #531d17, #411912, #30140d)}.bg-dark-gradient-bt{background-image:linear-gradient(to bottom, hsl(30, 50%, 90%), hsl(50, 43%, 83%), hsl(43, 54%, 77%))}.bg-dark-gradient-tb{background-image:linear-gradient(to bottom, hsl(43, 54%, 77%), hsl(50, 43%, 83%), hsl(30, 50%, 90%))}.bg-light-gradient-bt{background-image:linear-gradient(to bottom, hsl(30, 50%, 99%), hsl(50, 43%, 90%), hsl(43, 54%, 85%))}.bg-light-gradient-tb{background-image:linear-gradient(to bottom, hsl(43, 54%, 85%), hsl(50, 43%, 90%), hsl(30, 50%, 99%))}.accent-bar{height:10px;width:100%}.invisible{opacity:0}.disabled{opacity:.5}.figure-dialog-img-container img{display:block;width:100%;height:auto}a:hover{text-decoration:underline}a{color:#792421;text-decoration:none}@-webkit-keyframes slide-down{0%{height:2px;bottom:-5px}100%{height:6px;bottom:-9px}}@-moz-keyframes slide-down{0%{height:2px;bottom:-5px}100%{height:6px;bottom:-9px}}@-ms-keyframes slide-down{0%{height:2px;bottom:-5px}100%{height:6px;bottom:-9px}}@-o-keyframes slide-down{0%{height:2px;bottom:-5px}100%{height:6px;bottom:-9px}}@keyframes slide-down{0%{height:2px;bottom:-5px}100%{height:6px;bottom:-9px}}#globalNavigation{display:flex;align-items:center;flex-direction:row-reverse;font-size:.9rem;position:relative;top:-4rem;right:2rem;float:right}@media(min-width: 960px){#globalNavigation{display:block}}#globalNavigation .expandedViewOnly span,#globalNavigation .expandedViewOnly a{color:#fff;margin-left:1rem;cursor:pointer}#globalNavigation span .francais{font-weight:100}#globalNavigation input{height:1.5rem;padding:0 0 0 .5rem;font-style:italic;border:1px solid rgba(0,0,0,.3882352941);color:#756c6c;background-color:#d8d8d8}#loadingStateModal{position:fixed;z-index:9000;background-color:rgba(0,0,0,.48);width:100vw;height:100vh}.spinner{width:100%;height:100%;margin:calc(50vh - (1rem/2)) auto 0 auto;text-align:center}.spinner>div{width:1rem;height:1rem;background-color:#fff;border-radius:100%;display:inline-block;-webkit-animation:sk-bouncedelay 1.4s infinite ease-in-out both;animation:sk-bouncedelay 1.4s infinite ease-in-out both}.spinner .bounce1{-webkit-animation-delay:-0.32s;animation-delay:-0.32s}.spinner .bounce2{-webkit-animation-delay:-0.16s;animation-delay:-0.16s}@-webkit-keyframes sk-bouncedelay{0%,100%,80%{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes sk-bouncedelay{0%,100%,80%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}figure{padding:.3rem 0 0;border-radius:.2rem;margin:0;text-align:center}figure.current{background-color:rgba(7,122,255,.831)}.thumbnail-caption.current{color:rgba(7,122,255,.831) !important;font-weight:900}.watermark{width:100%;height:100%;margin:calc(50vh - (10rem/2)) auto 0 auto}.transcriptContent .watermark{margin:calc(50vh - 12.5rem) auto 0 auto}.watermark_contents{width:10rem;height:10rem;background-image:url("+d+');background-size:100%;background-repeat:no-repeat;margin:auto auto auto auto}.navigationComponent{position:fixed;z-index:2;height:48px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:4px;top:75px;background-color:#fff;border-radius:.3rem}.navigationComponent #tool-bar-buttons{font-size:15px}@media(min-width: 600px){.navigationComponent{top:80px}}@media(min-width: 960px){.navigationComponent{top:initial}}.navigationComponent button{cursor:pointer}.navigationRow{display:flex;justify-content:space-between;padding:12px 10px 12px 10px}.helpIcon{display:none;margin-top:6px;margin-right:16px}@media(min-width: 960px){.helpIcon{display:block}}.dropdownV2{width:150px;margin-right:10px}.imageViewComponent .navigationComponent{background-color:#4a4a4a;border-radius:.3rem;opacity:.8}@media(min-width: 960px){.imageViewComponent .navigationComponent{background-color:#000;color:#fff;border-radius:0;opacity:1}}.transcriptionViewComponent .navigationComponent{background-color:#fff;color:#000}#doc-type-help:after{color:#978e8e}#doc-type-help .dark .MuiSvgIcon-root.MuiSelect-icon{color:#fff}.breadcrumbs{overflow:hidden;display:none}@media(min-width: 960px){.breadcrumbs{display:block}}.breadcrumbs .folioName{display:inline;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:900;text-decoration:underline}.closeX{float:right;padding:3px;font-style:bold}.closeX:hover{cursor:pointer}.helpContainer .MuiListItem-root{display:flex;gap:10px}.helpContainer{padding:12px;width:335px;height:min(600px,100vh - 40px);position:relative;top:40px;overflow-x:auto}.helpContainer .readingGuide td{padding:8px}.helpContainer .readingGuide h2{margin-top:16px;margin-bottom:10px}.searchHelpContainer{padding:10px 15px 10px 0;width:335px}.helpHeader{text-align:center}.paginationComponent{white-space:nowrap;text-align:center;font-size:1.2rem;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-top:52px}@media(min-width: 960px){.paginationComponent{margin-bottom:0}}.paginationControl{padding:16px}.paginationControl .arrow{font-size:1.8rem;color:#4a4a4a;margin:1rem 1rem 0;cursor:pointer}.paginationControl .folioName{position:relative;top:-0.2rem;color:#4a4a4a}#diplomatic #content-view h1,#diplomatic #content-view h2,#diplomatic #content-view h3,#diplomatic #content-view h4,#diplomatic .header-wrapper h1,#diplomatic .header-wrapper h2,#diplomatic .header-wrapper h3,#diplomatic .header-wrapper h4,#diplomatic #entry-list-view h1,#diplomatic #entry-list-view h2,#diplomatic #entry-list-view h3,#diplomatic #entry-list-view h4,#diplomatic #annotation-list-view h1,#diplomatic #annotation-list-view h2,#diplomatic #annotation-list-view h3,#diplomatic #annotation-list-view h4{font-family:"Lato",sans-serif;color:#000;padding:0;margin:0}#diplomatic #content-view h1,#diplomatic .header-wrapper h1,#diplomatic #entry-list-view h1,#diplomatic #annotation-list-view h1{font-family:"Taviraj",serif;font-size:32px}#diplomatic #content-view h2,#diplomatic #content-view h3,#diplomatic .header-wrapper h2,#diplomatic .header-wrapper h3,#diplomatic #entry-list-view h2,#diplomatic #entry-list-view h3,#diplomatic #annotation-list-view h2,#diplomatic #annotation-list-view h3{font-weight:700}#diplomatic #content-view h2,#diplomatic .header-wrapper h2,#diplomatic #entry-list-view h2,#diplomatic #annotation-list-view h2{font-size:22px}#diplomatic #content-view h3,#diplomatic .header-wrapper h3,#diplomatic #entry-list-view h3,#diplomatic #annotation-list-view h3{font-size:18px}#diplomatic #content-view h4,#diplomatic .header-wrapper h4,#diplomatic #entry-list-view h4,#diplomatic #annotation-list-view h4{font-size:18px;font-weight:700}#diplomatic #content-view p,#diplomatic .header-wrapper p,#diplomatic #entry-list-view p,#diplomatic #annotation-list-view p{font-family:"Martel",serif;line-height:1.25}#diplomatic #content-view span,#diplomatic .header-wrapper span,#diplomatic #entry-list-view span,#diplomatic #annotation-list-view span{font-family:"Martel",serif;line-height:1.25;margin:0}#diplomatic #content-view a.MuiButton-containedPrimary.cta-button,#diplomatic .header-wrapper a.MuiButton-containedPrimary.cta-button,#diplomatic #entry-list-view a.MuiButton-containedPrimary.cta-button,#diplomatic #annotation-list-view a.MuiButton-containedPrimary.cta-button{color:#fff;padding:10px 70px;border-radius:0}#diplomatic #content-view a.MuiButton-containedPrimary.cta-button .MuiButton-label span,#diplomatic .header-wrapper a.MuiButton-containedPrimary.cta-button .MuiButton-label span,#diplomatic #entry-list-view a.MuiButton-containedPrimary.cta-button .MuiButton-label span,#diplomatic #annotation-list-view a.MuiButton-containedPrimary.cta-button .MuiButton-label span{font-family:"Lato",sans-serif;font-size:20px}#diplomatic #content-view a,#diplomatic .header-wrapper a,#diplomatic #entry-list-view a,#diplomatic #annotation-list-view a{color:#792421}#diplomatic #content-view a:hover,#diplomatic .header-wrapper a:hover,#diplomatic #entry-list-view a:hover,#diplomatic #annotation-list-view a:hover{color:#cba374}#diplomatic #content-view .cta-link.MuiLink-underlineHover:hover,#diplomatic .header-wrapper .cta-link.MuiLink-underlineHover:hover,#diplomatic #entry-list-view .cta-link.MuiLink-underlineHover:hover,#diplomatic #annotation-list-view .cta-link.MuiLink-underlineHover:hover{text-decoration:none}#diplomatic #content-view a.cta-link,#diplomatic .header-wrapper a.cta-link,#diplomatic #entry-list-view a.cta-link,#diplomatic #annotation-list-view a.cta-link{color:#000;text-align:center;width:fit-content;text-decoration:none;font-family:"Lato",sans-serif;font-size:16px;font-weight:700;position:relative;cursor:pointer;margin-bottom:5px}@media(min-width: 960px){#diplomatic #content-view a.cta-link,#diplomatic .header-wrapper a.cta-link,#diplomatic #entry-list-view a.cta-link,#diplomatic #annotation-list-view a.cta-link{font-size:18px}}#diplomatic #content-view a.cta-link.with-icon:after,#diplomatic .header-wrapper a.cta-link.with-icon:after,#diplomatic #entry-list-view a.cta-link.with-icon:after,#diplomatic #annotation-list-view a.cta-link.with-icon:after{font-family:"Font Awesome 5 Free";margin-left:7px;font-weight:600;content:"";font-size:15px}#diplomatic #content-view a.cta-link:before,#diplomatic .header-wrapper a.cta-link:before,#diplomatic #entry-list-view a.cta-link:before,#diplomatic #annotation-list-view a.cta-link:before{position:absolute;content:"";height:2px;background-color:#000;width:50%;right:30%;bottom:-5px;border-radius:2px}#diplomatic #content-view a.cta-link:hover:before,#diplomatic .header-wrapper a.cta-link:hover:before,#diplomatic #entry-list-view a.cta-link:hover:before,#diplomatic #annotation-list-view a.cta-link:hover:before{background-color:#792421;text-decoration:none;height:6px;bottom:-9px;-webkit-animation:slide-down .2s;-moz-animation:slide-down .2s;-ms-animation:slide-down .2s;-o-animation:slide-down .2s;animation:slide-down .2s}#diplomatic #content-view a.cta-link:hover:after,#diplomatic .header-wrapper a.cta-link:hover:after,#diplomatic #entry-list-view a.cta-link:hover:after,#diplomatic #annotation-list-view a.cta-link:hover:after{color:#792421}#diplomatic #content-view a.cta-link.active:before,#diplomatic .header-wrapper a.cta-link.active:before,#diplomatic #entry-list-view a.cta-link.active:before,#diplomatic #annotation-list-view a.cta-link.active:before{background-color:#792421;text-decoration:none;height:6px;bottom:-9px;-webkit-animation:slide-down .2s;-moz-animation:slide-down .2s;-ms-animation:slide-down .2s;-o-animation:slide-down .2s;animation:slide-down .2s}#diplomatic #content-view a.cta-link.active:after,#diplomatic .header-wrapper a.cta-link.active:after,#diplomatic #entry-list-view a.cta-link.active:after,#diplomatic #annotation-list-view a.cta-link.active:after{color:#792421}#diplomatic #content-view a.cta-link.light,#diplomatic .header-wrapper a.cta-link.light,#diplomatic #entry-list-view a.cta-link.light,#diplomatic #annotation-list-view a.cta-link.light{color:#444}#diplomatic #content-view a.cta-link.light:before,#diplomatic .header-wrapper a.cta-link.light:before,#diplomatic #entry-list-view a.cta-link.light:before,#diplomatic #annotation-list-view a.cta-link.light:before{background-color:#444}#diplomatic #content-view a.cta-link.light:hover:before,#diplomatic .header-wrapper a.cta-link.light:hover:before,#diplomatic #entry-list-view a.cta-link.light:hover:before,#diplomatic #annotation-list-view a.cta-link.light:hover:before{background-color:#792421}#diplomatic #content-view a.cta-link.video-link:after,#diplomatic .header-wrapper a.cta-link.video-link:after,#diplomatic #entry-list-view a.cta-link.video-link:after,#diplomatic #annotation-list-view a.cta-link.video-link:after{content:"";font-size:12px;margin-bottom:-2px}#diplomatic #content-view a.cta-link.search-link:after,#diplomatic .header-wrapper a.cta-link.search-link:after,#diplomatic #entry-list-view a.cta-link.search-link:after,#diplomatic #annotation-list-view a.cta-link.search-link:after{font-family:"Material Icons";content:"search";font-size:16px}#diplomatic #header{width:100%;padding:0px 20px;background-color:#fff;border-radius:0}@media(min-width: 1280px){#diplomatic #header{padding:5px 50px}}#diplomatic #header img{width:210px}@media(min-width: 600px){#diplomatic #header img{width:300px}}@media(min-width: 960px){#diplomatic #header img{width:300px}}#diplomatic #header .expandedViewOnly{width:100%}#diplomatic #header .nav-item{font-size:16px;margin-right:5px;white-space:nowrap;margin-bottom:15px}#diplomatic #header .search-btn{margin-bottom:10px;font-size:18px}#diplomatic .maroon-dropdown{background-color:#460c0a;border-radius:0;-webkit-box-shadow:inset 0 5px 5px -5px rgba(0,0,0,.8),0 5px 5px -5px rgba(0,0,0,.8);-moz-box-shadow:inset 0 5px 5px -5px rgba(0,0,0,.8),0 5px 5px -5px rgba(0,0,0,.8);box-shadow:inset 0 5px 5px -5px rgba(0,0,0,.8),0 5px 5px -5px rgba(0,0,0,.8)}#diplomatic .mobile-menu{padding:50px 0}#diplomatic .mobile-menu .list-container{position:relative}#diplomatic .mobile-menu .list-container .list{color:"white"}#diplomatic .search-bar{height:162px}#diplomatic .search-bar .label{font-size:32px;color:#fff;font-weight:400;white-space:nowrap}#diplomatic .search-bar .content{width:50%}#diplomatic .search-bar #search input{border:1px solid #dededf;border-radius:4px;width:300px;height:38px;font-size:14px;padding:5px 15px;font-family:"Lato",sans-serif}#diplomatic.sticky .header-wrapper.sticky{position:sticky;top:0;z-index:2}#diplomatic #footer{color:#fff;background-color:#460c0a;display:flex;flex-direction:column;padding:10px 20px}@media(min-width: 600px){#diplomatic #footer{padding:20px 30px}}@media(min-width: 960px){#diplomatic #footer{padding:30px 40px}}#diplomatic #footer p,#diplomatic #footer a{font-family:"Lato",sans-serif;font-size:16px;color:#fafafa;line-height:1.5;margin:0}#diplomatic #footer a:hover{color:#cba374;fill:#cba374}#diplomatic #footer .top{margin-bottom:10px}#diplomatic #footer .top p{margin:0 5px;white-space:nowrap}#diplomatic #footer .doi{text-align:center}#diplomatic #footer .copyright .symbols{text-decoration:none}#diplomatic #footer .copyright svg{width:14px;height:14px}#diplomatic #footer .logos{margin-bottom:10px}#diplomatic #footer .logos img{width:150px}@media(min-width: 600px){#diplomatic #footer .logos img{width:200px}}@media(min-width: 600px){#diplomatic #footer .logos img{width:250px}}#diplomatic #footer .footer-links{width:100%;text-align:center;font-size:12px;line-height:2}#diplomatic.fixed{background:#fff;position:fixed;width:100vw;height:calc(100vh - 12rem);font-size:.7rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:"OpenSans",sans-serif;font-size:.9rem}@media(min-width: 600px){#diplomatic.fixed{height:calc(100vh - 13rem)}}@media(min-width: 960px){#diplomatic.fixed{height:calc(100vh - 14rem)}}#diplomatic.fixed #content{line-height:1.2rem}#diplomatic.fixed h1,#diplomatic.fixed h2,#diplomatic.fixed h3,#diplomatic.fixed h4{color:rgba(0,0,0,.7215686275);font-family:"OpenSans",sans-serif;font-weight:700;padding:0;line-height:1.5rem}.imageGridComponent{background-color:#000;font-size:.8rem;overflow:scroll;height:100vh}.imageGridComponent>ul{display:flex;flex-wrap:wrap;list-style:none;padding-left:0;margin:1.5rem 0 8rem 2rem}.imageGridComponent>ul>li{margin-bottom:20px;width:150px;height:220px}.imageGridComponent>ul>li>figure{margin:8px}.imageGridComponent>ul>li>figure:hover{border:2px #eee solid;margin:6px}.imageGridComponent>ul>li>.thumbnail-caption{text-align:center;color:#fff}.hidden{display:none}.imageGridComponent .imageGridToolbar{padding:5px;color:#fff}.imageGridComponent .imageGridToolbar .jump-to{float:right;display:"inline";margin-right:30px}.imageGridComponent .imageGridToolbar .jump-to #jump-to-input{margin-left:5px}.imageGridComponent .imageGridToolbar .jump-to #jump-to-button{margin-left:5px;cursor:pointer}.split-pane-view{height:100%;width:100%;display:grid;grid-template-areas:"image_viewer divider transcription"}.split-pane-view>.divider{z-index:2;grid-area:divider;width:1rem;background:#bbb;cursor:ew-resize;display:flex}.split-pane-view>.divider>.drawer-button{align-self:center;align:center;cursor:auto}.split-pane-view>.divider>.drawer-button:hover{color:#fff}.split-pane-view>.divider>.hidden{display:none}.split-pane-view #annotation-view{font-size:16px}#image-view-seadragon-left,#image-view-seadragon-right{width:100%;height:100%;grid-area:image_viewer;background:#000}.imageViewComponent{position:relative;padding:0;margin:0;width:100%;height:100vh}.ImageZoomControl{position:absolute;z-index:1;top:8rem;color:#fff;list-style:none;background:#4a4a4a;opacity:.4;margin:0;padding:.4rem .5rem;border-radius:.3rem}@media(min-width: 960px){.ImageZoomControl{top:4rem;left:2rem}}.ImageZoomControl>li{color:#e0e0e0}.ImageZoomControl>li>.zoom-in{margin-top:8px}.ImageZoomControl>li:hover{color:#fff}.ImageZoomControl>li>.zoom-3{margin-top:8px}.ImageZoomControl>li>.zoom-2{margin-top:8px;margin-left:5px}.ImageZoomControl>li>.zoom-1{margin-top:8px;margin-left:7px}.ImageZoomControl>li>.zoom-out{margin-top:8px}.ImageZoomControl>li>.zoom-grid{margin-top:30px}.transcriptionViewComponent{overflow:scroll;height:calc(100vh - 7rem)}.transcriptionViewComponent .transcriptContent{padding:50px 16px;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;margin-bottom:92px}@media(min-width: 960px){.transcriptionViewComponent .transcriptContent{padding:5px 16px}}.transcriptionViewComponent .transcriptContent figure{display:inline}.transcriptionViewComponent .transcriptContent .block[data-layout=right-middle]{max-width:250px}.transcriptionViewComponent .transcriptContent .block[data-layout=right-top]{max-width:250px}.transcriptionViewComponent .transcriptContent .block[data-layout=right-bottom]{max-width:250px}.transcriptionViewComponent .transcriptContent .x-small-inline-figure{margin:5px;border:1px solid gray;width:30px}.transcriptionViewComponent .transcriptContent .small-inline-figure{margin:5px;border:1px solid gray;width:60px}.transcriptionViewComponent .transcriptContent .medium-inline-figure{margin:5px;border:1px solid gray;width:200px}.transcriptionViewComponent .transcriptContent .large-inline-figure{margin:5px;border:1px solid gray;width:350px}.transcriptionViewComponent .transcriptContent .surface{grid-area:transcription;margin:0;padding:0;list-style:none}.transcriptionViewComponent .transcriptContent .grid-mode{display:grid;grid-auto-rows:minmax(min-content, 0fr);grid-gap:2px}.transcriptionViewComponent .transcriptContent .surface>.small-font{font-size:11pt}.transcriptionViewComponent .transcriptContent .surface>div{padding:10px}.transcriptionViewComponent .transcriptContent .surface>#z0{grid-area:z0}.transcriptionViewComponent .transcriptContent .surface>#z1{grid-area:z1}.transcriptionViewComponent .transcriptContent .surface>#z2{grid-area:z2}.transcriptionViewComponent .transcriptContent .surface>#z3{grid-area:z3}.transcriptionViewComponent .transcriptContent .surface>#z4{grid-area:z4}.transcriptionViewComponent .transcriptContent .surface>#z5{grid-area:z5}.transcriptionViewComponent .transcriptContent .surface>#z6{grid-area:z6}.transcriptionViewComponent .transcriptContent .surface>#z7{grid-area:z7}.transcriptionViewComponent .transcriptContent .surface>#z8{grid-area:z8}.transcriptionViewComponent .transcriptContent .surface>#z9{grid-area:z9}.transcriptionViewComponent .transcriptContent .surface>#z10{grid-area:z10}.transcriptionViewComponent .transcriptContent .surface>#z11{grid-area:z11}.transcriptionViewComponent .transcriptContent .surface>#z12{grid-area:z12}.transcriptionViewComponent .transcriptContent .surface>#z13{grid-area:z13}.transcriptionViewComponent .transcriptContent .surface>#z14{grid-area:z14}.transcriptionViewComponent .transcriptContent .surface>#z15{grid-area:z15}.transcriptionViewComponent .transcriptContent .surface>#z16{grid-area:z16}.transcriptionViewComponent .transcriptContent .surface>#z17{grid-area:z17}.transcriptionViewComponent .transcriptContent .surface>#z18{grid-area:z18}.transcriptionViewComponent .transcriptContent .surface>#z19{grid-area:z19}.transcriptionViewComponent .transcriptContent .surface>#z20{grid-area:z20}.transcriptionViewComponent .transcriptContent .highlight{background-color:#ff0}.editor-comment-content{word-wrap:break-word}.xmlViewComponent .navigationComponent{background-color:#fff;color:#000}.xmlContent{padding:0;margin:4.5rem 0 0;width:calc(100% - 1.2rem);min-height:100vh;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;min-width:10rem}.xmlViewComponent{overflow:auto;margin:0 0 0 1rem;height:calc(100vh - 7rem)}.xmlContentInner{max-height:100%}.xmlContentInner pre{overflow-x:auto}#glossaryView #glossaryViewInner{overflow-y:scroll;margin:5px 0 0 0;width:calc(100% - 1.2rem);height:calc(100vh - 170px);padding:5px 16px}@media(min-width: 960px){#glossaryView #glossaryViewInner{margin:52px 0 0 0}}#glossaryView .cite-header{text-align:center;margin-bottom:5px}#glossaryView .cite-instructions{margin:20px;margin-left:15%;margin-right:15%}#glossaryView .navigationComponent{position:sticky;top:0}@media(min-width: 960px){#glossaryView .navigationComponent{position:fixed;top:initial}}#glossaryView .glossaryNav{background:#fff;padding:5px;position:relative}#glossaryView .glossaryNav #glossary-filter{margin-right:10px}#glossaryView .glossaryNav .alphaNav{display:none}@media(min-width: 960px){#glossaryView .glossaryNav .alphaNav{display:block}}#glossaryView .alphaNav{color:blue;display:inline}#glossaryView .title{white-space:nowrap;position:relative;width:calc(100% - 1.7rem);text-align:center;top:-2em;font-size:1.8rem;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media(min-width: 960px){#glossaryView .title{top:-1em}}#glossaryView .subtitle{white-space:nowrap;position:relative;width:calc(100% - 1.7rem);text-align:center;top:-2em;font-style:italic;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media(min-width: 960px){#glossaryView .subtitle{top:-1em}}#glossaryView #glossaryContent{padding:5rem 0 0;min-height:100vh;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;min-width:10rem}@media(min-width: 960px){#glossaryView #glossaryContent{padding:3.5rem 0 0}}.jumpToFolio_component{margin:1rem 0 0 -4.5rem;padding:.6rem;height:1.2rem;width:9.5rem;background:#e7e7e7;border:1px solid rgba(90,98,102,.53);border-radius:.3rem;-webkit-box-shadow:6px 6px 5px 0 rgba(0,0,0,.211765);-moz-box-shadow:6px 6px 5px 0 rgba(0,0,0,.211765);box-shadow:6px 6px 5px 0 rgba(0,0,0,.211765);font-family:sans-serif}.jumpToFolio_component input:focus{outline:none}.jumpToFolio_component:after,.jumpToFolio_component:before{bottom:100%;left:50%;border:solid rgba(0,0,0,0);content:" ";height:0;width:0;position:absolute;pointer-events:none}.jumpToFolio_component:after{border-color:rgba(255,255,255,0);border-bottom-color:#e7e7e7;border-width:9px;margin-left:-9px}.jumpToFolio_component:before{border-color:rgba(194,225,245,0);border-bottom-color:rgba(90,98,102,.53);border-width:11px;margin-left:-11px}[lang=ar],[lang=ota],[lang=fa],[lang=he],[lang*=-Arab-AR]{direction:rtl;text-align:right}[lang=en],[lang=fr],[lang=de],[lang=it],[lang*=ar-Latn-],[lang*=ota-Latn-]{direction:ltr;text-align:left}tei-choice tei-abbr+tei-expan:before,tei-choice tei-expan+tei-abbr:before,tei-choice tei-sic+tei-corr:before,tei-choice tei-corr+tei-sic:before,tei-choice tei-orig+tei-reg:before,tei-choice tei-reg+tei-orig:before{content:" ("}tei-choice tei-abbr+tei-expan:after,tei-choice tei-expan+tei-abbr:after,tei-choice tei-sic+tei-corr:after,tei-choice tei-corr+tei-sic:after,tei-choice tei-orig+tei-reg:after,tei-choice tei-reg+tei-orig:after{content:")"}tei-ab{display:block;margin-top:1em;margin-bottom:1em}tei-accMat{display:block}tei-accMat:before{content:"accompanying materials: "}tei-acquisition{display:block;margin-top:0;margin-bottom:0}tei-acquisition:before{font-weight:bold;content:"acquisition"}tei-activity{display:block}tei-activity:before{content:"activity: "}tei-add[place=above]{color:blue;vertical-align:super;font-size:10pt}tei-add[place=inline]:before{content:"«"}tei-add[place=inline]:after{content:"»"}tei-add[place=below]{vertical-align:sub}tei-additional{display:block}tei-additions{display:block}tei-additions:before{content:"Significant additions within the document: "}tei-addrLine{display:block}tei-address[data-tei-rend~=block],addresss[data-tei-rendition~="#block"]{display:block}tei-adminInfo{display:block}tei-app tei-note{display:none}tei-appInfo{display:block}tei-appInfo:before{content:"Application information: "}tei-application{display:block}tei-application:after{content:" " attr(version)}tei-argument{display:block}tei-att{font-family:Courier,monospace}tei-att:before{content:"@"}tei-titlestmt>tei-author{display:block;margin-bottom:1em}tei-publicationstmt>tei-availability{font-size:80%}tei-publicationstmt>tei-availability:before{font-weight:bold;content:"Availability: "}tei-publicationstmt>tei-availability[data-tei-status]:before{font-weight:bold;content:"Availability (" attr(status) "): "}tei-back{display:block}tei-bibl[data-tei-rend~=block],bibl[data-tei-rendition~="#block"]{display:block;padding-left:2em;text-indent:-2em}tei-biblFull{display:block}tei-binding{display:block}tei-binding:before{content:"Binding: \\a";white-space:pre-wrap}tei-binding[data-tei-contemporary]:before{content:"Binding: \\a" "Contemporary: " attr(contemporary) "\\a";white-space:pre-wrap}tei-bindingdesc{display:block}tei-bindngdesc:before{content:"Binding description: \\a"}tei-birth{display:block}tei-birth:before{content:"Birth: "}tei-cRefPattern{display:none}tei-caption{display:block;margin-top:1em;margin-bottom:1em}tei-case[data-tei-value]:before{font-weight:bold;content:attr(value) " "}tei-castgroup{display:block;margin-top:1em;margin-bottom:1em}tei-castitem{display:list-item}tei-castlist{display:block;list-style-type:none;margin-top:1em;margin-bottom:1em;margin-left:2em}tei-cb{display:block;margin-top:1em;margin-bottom:1em}tei-cb:before{content:"[column break]"}tei-cell{border-right:thin solid #000;border-bottom:thin solid #000;padding:2px}tei-cell[data-tei-role=label]{font-weight:bold}tei-climate{display:block;margin-top:1em;margin-bottom:1em}tei-climate:before{font-weight:bold;content:"Climate: "}tei-code{font-family:Courier,monospace}tei-collation{display:block;margin-top:1em;margin-bottom:1em}tei-condition{display:block;margin-top:1em;margin-bottom:1em}tei-constitution{display:block;margin-top:1em;margin-bottom:1em}tei-constitution:before{font-weight:bold;content:"Constitution: "}tei-constitution[data-tei-type]{display:block;margin-top:1em;margin-bottom:1em}tei-constitution[data-tei-type]:before{font-weight:bold;content:"Constitution (" attr(type) "): "}tei-constitution[data-tei-type=frags]{display:block;margin-top:1em;margin-bottom:1em}tei-constitution[data-tei-type=frags]:before{font-weight:bold;content:"Constitution (fragments): "}tei-custevent{display:list-item}tei-custodialhist{display:block;margin-top:1em;margin-bottom:1em}tei-date[data-tei-when]:empty:before{content:attr(when)}tei-del{color:red}tei-editionstmt{display:block}teieg-egxml{display:block;font-size:80%;margin-left:1em;padding-left:1em;border-left:1px solid #aaa;margin-top:.75em;margin-bottom:.75em;padding-top:.75em;padding-bottom:.75em;font-family:monospace;white-space:pre}tei-emph{font-style:italic}tei-encodingdesc{display:none}tei-epigraph{display:block;margin-top:1em;margin-bottom:1em}tei-explicit{font-style:italic}tei-filedesc>tei-extent{display:none}tei-figure{display:block;text-align:center;margin-left:auto;margin-right:auto}tei-gap[data-tei-reason=lost]:before{content:"["}tei-gap[data-tei-reason=lost]:after{content:attr(data-content) "]"}tei-gap[data-tei-reason=illegible]:after{content:attr(data-content)}tei-gi{font-family:Courier,monospace}tei-gi:before{content:"<"}tei-gi:after{content:">"}tei-head{display:block;font-family:"OpenSans",sans-serif;font-weight:700;font-size:1.5em;line-height:1.5rem}tei-body>tei-head{font-size:180%;text-indent:-0.5em}tei-div.textpart{display:none}tei-div>tei-head{font-size:170%;text-indent:-0.5em}tei-div>tei-div>tei-head{font-size:155%}tei-div>tei-div>tei-div>tei-head{font-size:140%}tei-div>tei-div>tei-div>tei-div>tei-head,list>tei-head{font-size:130%}tei-div>tei-div>tei-div>tei-div>tei-div>tei-head{font-size:120%}tei-div>tei-div>tei-div>tei-div>tei-div>tei-div tei-head{font-size:110%}tei-figure>tei-head{display:block;margin:1.5em auto 1.5em auto;padding:.5em 1.5em 1.5em 1.5em;border:1px solid #000;border-radius:15px;width:325px;position:relative;border:1px solid #aaa;background:#fafafa;text-indent:0;font-size:85%;text-align:justify;-webkit-box-shadow:0px 1px 3px rgba(0,0,0,.25);-moz-box-shadow:0px 1px 3px rgba(0,0,0,.25);box-shadow:0px 1px 3px rgba(0,0,0,.25);width:85%;font-family:Georgia,Serif;font-size:13pt}tei-hi[rend~=caps]{font-weight:bold}tei-hi[rend~=italic]{font-style:italic}tei-hi[rend~=underline]{text-decoration:underline}tei-ident{font-family:Courier,monospace}tei-incipit{font-style:italic}tei-item{display:list-item;margin-left:1em}tei-cell item{margin-left:1em}tei-l{display:block;width:35em}tei-l[data-lineno]:before{content:attr(data-lineno);position:absolute;left:2em}tei-lb:after{content:"\\a";white-space:pre}tei-lg{display:block;margin-top:1em;margin-bottom:1em}tei-list{display:block;margin-top:1em;margin-bottom:1em;list-style-type:none}tei-item>tei-list{margin-top:0}tei-sourcedesc tei-list{list-style-type:none}tei-sourcedesc>tei-list>tei-head{font-size:140%;font-weight:bold}tei-sourcedesc tei-list>tei-item{display:list-item}tei-text tei-list[type=simple]{list-style-type:none}tei-text tei-list[type=bulleted]{list-style-type:disc}tei-text tei-list[type=ordered]{list-style-type:none;counter-reset:items 0}tei-text tei-list[type=ordered]>tei-item{display:list-item;margin-left:0}tei-item>tei-list[type=ordered]{margin-left:1em}tei-text tei-list[type=ordered]>item:before{counter-increment:items 1;content:counter(items, decimal) ". "}tei-text tei-list[type=gloss]{list-style-type:none}tei-list[type=gloss]>tei-label{display:block;margin-top:.25em;margin-bottom:.25em;font-weight:bold}tei-list[type=gloss]>tei-item{margin-left:2em}tei-item>tei-list[type=ordered]{margin-left:1em}tei-listapp{display:block;margin:1em;padding:1em}tei-listbibl{display:block;list-style-type:none;margin-left:.5 em;margin-top:.5em}tei-listbibl>tei-head{font-size:120%;font-weight:bold}tei-listbibl>tei-bibl{display:list-item;margin-left:.5em}tei-listwit{display:block;list-style-type:none;margin-left:.5em}tei-listwit>tei-head{font-size:120%;font-weight:bold}tei-listwit>tei-witness{display:list-item;margin-left:2em;text-indent:-1.1em}tei-witness>tei-listwit{display:inline}tei-witness>tei-listwit>tei-head{display:inline}tei-witness>tei-listwit>tei-witness{display:inline}tei-locus{display:none}tei-milestone{display:none;margin-left:auto;margin-right:auto;text-align:center}tei-musicNotation{font-weight:bold}tei-musicNotation:before{font-weight:bold;content:"Musical Notation: "}tei-node{display:none}tei-note{display:none}tei-notesstmt{display:none}tei-ovar{font-style:italic}tei-origPlace{font-weight:bold}tei-origPlace:before{font-weight:bold;content:"Place of Origin: "}tei-p{display:block;margin-top:1em;margin-bottom:1em;text-align:justify}*[data-tei-rendition~="#center"] p{text-align:center}tei-availability>p:first-child{margin-top:0em}tei-performance{display:block;margin-top:1em;margin-bottom:1em}tei-person{display:block;margin-top:1em;margin-bottom:1em}tei-personGrp{display:block;margin-top:1em;margin-bottom:1em}tei-postscript{display:block;margin-top:2em}tei-principal{font-weight:bold}tei-principal:before{font-weight:bold;content:"Principal: "}tei-profiledesc{display:none}tei-publicationstmt>*{display:none}tei-publicationstmt{display:block;margin-top:1em;margin-bottom:1em}tei-publicationstmt>date{display:none}tei-publicationstmt>publisher{display:none}tei-q{quotes:"“" "”" "‘" "’" "“" "”" "‘" "’" "“" "”" "‘" "’" "“" "”"}tei-q:before{content:""}tei-q:after{content:""}tei-q[data-tei-next]:after{content:"" !important}tei-q[data-tei-prev]:before{content:"" !important}tei-quote{font-style:italic}tei-app tei-rdg{display:none}tei-re{display:block;margin-top:0;margin-bottom:0}tei-recordhist{display:block;margin-top:1em;margin-bottom:1em}tei-ref{color:#5f0000;text-decoration:underline;cursor:pointer}tei-remarks{font-weight:bold}tei-remarks:before{font-weight:bold;content:"remarks: "}tei-respstmt{display:block;margin-top:0;margin-bottom:0}tei-revisiondesc{display:none}tei-row{display:grid;grid-auto-flow:column;grid-auto-columns:1fr}tei-salute{display:block;margin-top:1em;margin-bottom:1em}tei-samplingdecl{display:block;margin-top:0;margin-bottom:0}tei-scriptnote{display:block;margin-top:1em;margin-bottom:1em}tei-seal{display:block;margin-top:0;margin-bottom:0}tei-seal:before{font-weight:bold;content:"Seal: "}tei-sealdesc{display:block;margin-top:1em;margin-bottom:1em}tei-secFol:before{font-weight:bold;content:"Second Folio: "}tei-secl>*:first-child:before{content:"\\a[";white-space:pre}tei-secl>*:last-child:after{content:"]\\a\\a";white-space:pre}tei-seg{outline:0px solid rgba(0,0,0,0)}tei-sense{display:block;margin-top:0;margin-bottom:0}tei-seriesstmt{display:none}tei-setting{display:block;margin-top:0;margin-bottom:0}tei-signed{display:block;margin-top:2em}tei-soCalled{quotes:"“" "”" "‘" "’" "“" "”" "‘" "’" "“" "”" "‘" "’" "“" "”"}tei-soCalled:before{content:open-quote}tei-soCalled:after{content:close-quote}tei-soCalled[data-tei-next]:after{content:"" !important}tei-soCalled[data-tei-prev]:before{content:"" !important}tei-sound{font-style:italic}tei-source{display:block;margin-top:0;margin-bottom:0}tei-sourcedesc{display:none}tei-space:before{font-weight:bold;content:""}tei-span[data-tei-data-n]:before{content:attr(data-n)}tei-speaker{font-weight:bold;margin-right:0}tei-sponsor{display:block;margin-top:0;margin-bottom:0}tei-sponsor:before{font-weight:bold;content:"Sponsor:"}tei-stage{display:block;margin-top:1em;margin-bottom:1em;font-style:italic}tei-stamp{display:block;margin-top:1em;margin-bottom:1em}tei-stamp:before{font-weight:bold;content:"Stamped: "}tei-surplus>*:first-child:before{content:"\\a[";white-space:pre}tei-surplus>*:last-child:after{content:"]\\a\\a";white-space:pre}tei-tei{display:block}tei-table{display:block;border-top:thin solid #000;border-left:thin solid #000}tei-table{margin-top:2em;margin-bottom:2em;font-size:12pt}tei-table>tei-head{border-bottom:thin solid #000;border-right:thin solid #000;font-size:120%;font-weight:bold;padding:2px;text-align:center}tei-teiheader{display:block;margin-top:2em;margin-bottom:2em}tei-tei>tei-text{display:block;line-height:1.5}tei-textclass{display:none}tei-textdesc{display:none}tei-tei tei-title{display:inline}tei-tei tei-title[level=a]{quotes:"“" "”" "‘" "’" "“" "”" "‘" "’" "“" "”" "‘" "’" "“" "”"}tei-tei tei-title[level=a]:before{content:open-quote}tei-tei tei-title[level=a]:after{content:close-quote}tei-tei tei-title[level=a][next]:after{content:"" !important}tei-tei tei-title[level=a][prev]:before{content:"" !important}tei-title[level=m]{font-style:italic}tei-titlestmt>tei-title{display:block;font-family:Arvo,sans-serif;font-weight:normal;font-weight:bold !important;font-size:150%}tei-typedesc{display:none}tei-u:before{content:"-"}tei-view{font-style:italic}tei-wit{display:inline}tei-witdetail{display:none}',""]);const p=u},3379:e=>{"use strict";var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var o={},a=[],s=0;s<e.length;s++){var l=e[s],c=i.base?l[0]+i.base:l[0],u=o[c]||0,d="".concat(c," ").concat(u);o[c]=u+1;var p=n(d),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var f=r(h,i);i.byIndex=s,t.splice(s,0,{identifier:d,updater:f,references:1})}a.push(d)}return a}function r(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var o=i(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var l=i(e,r),c=0;c<o.length;c++){var u=n(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},8174:e=>{"use strict";e.exports="data:image/png;base64,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RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICB4bWxuczppcHRjRXh0PSJodHRwOi8vaXB0Yy5vcmcvc3RkL0lwdGM0eG1wRXh0LzIwMDgtMDItMjkvIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6cGx1cz0iaHR0cDovL25zLnVzZXBsdXMub3JnL2xkZi94bXAvMS4wLyIKICAgIHhtbG5zOkdJTVA9Imh0dHA6Ly93d3cuZ2ltcC5vcmcveG1wLyIKICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICB4bXBNTTpEb2N1bWVudElEPSJnaW1wOmRvY2lkOmdpbXA6OGM5NjljZjQtNGNlMS00MDc1LWFkZWQtNTk5Y2E2M2QyNzQ2IgogICB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjJlODk1OTIzLTA4MzgtNGJjNS1hZDAxLWE4MDg0ZTI1Zjk1YSIKICAgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmFlOTEzNTU1LWMzOGItNDY4Zi1hODcwLWRjMzIwOWFhNDk4ZSIKICAgR0lNUDpBUEk9IjIuMCIKICAgR0lNUDpQbGF0Zm9ybT0iTWFjIE9TIgogICBHSU1QOlRpbWVTdGFtcD0iMTYxODU4OTAwNDUxMzAxMyIKICAgR0lNUDpWZXJzaW9uPSIyLjEwLjIyIgogICBkYzpGb3JtYXQ9ImltYWdlL3BuZyIKICAgdGlmZjpPcmllbnRhdGlvbj0iMSIKICAgeG1wOkNyZWF0b3JUb29sPSJHSU1QIDIuMTAiPgogICA8aXB0Y0V4dDpMb2NhdGlvbkNyZWF0ZWQ+CiAgICA8cmRmOkJhZy8+CiAgIDwvaXB0Y0V4dDpMb2NhdGlvbkNyZWF0ZWQ+CiAgIDxpcHRjRXh0OkxvY2F0aW9uU2hvd24+CiAgICA8cmRmOkJhZy8+CiAgIDwvaXB0Y0V4dDpMb2NhdGlvblNob3duPgogICA8aXB0Y0V4dDpBcnR3b3JrT3JPYmplY3Q+CiAgICA8cmRmOkJhZy8+CiAgIDwvaXB0Y0V4dDpBcnR3b3JrT3JPYmplY3Q+CiAgIDxpcHRjRXh0OlJlZ2lzdHJ5SWQ+CiAgICA8cmRmOkJhZy8+CiAgIDwvaXB0Y0V4dDpSZWdpc3RyeUlkPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDoxNTc3MDhjZi1jMmRjLTQ5MTktYjEzZS1iYWYxNjEyMmIwNzMiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTWFjIE9TKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMS0wNC0xNlQxMjowMzoyNC0wNDowMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgIDxwbHVzOkltYWdlU3VwcGxpZXI+CiAgICA8cmRmOlNlcS8+CiAgIDwvcGx1czpJbWFnZVN1cHBsaWVyPgogICA8cGx1czpJbWFnZUNyZWF0b3I+CiAgICA8cmRmOlNlcS8+CiAgIDwvcGx1czpJbWFnZUNyZWF0b3I+CiAgIDxwbHVzOkNvcHlyaWdodE93bmVyPgogICAgPHJkZjpTZXEvPgogICA8L3BsdXM6Q29weXJpZ2h0T3duZXI+CiAgIDxwbHVzOkxpY2Vuc29yPgogICAgPHJkZjpTZXEvPgogICA8L3BsdXM6TGljZW5zb3I+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz6JGKJsAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5QQQEAMYC6O5KwAAHVdJREFUeNrtXT1v49h6frw7COYWgTRIEGwqcZoAAWRY090mMKdMZU3HqLH8C0bzC0y3aUb+BUshgMJupC7d0Lg/YGRYxaZaKRcIbhFgJSDA3ZtmU/A91qvDc8hDipQo+byAMR6ZkshznvN+fwCWLFmyZMmSpROnM7sElkzJ83oDAE0AkzAczyxILdUNoEMAH9lLSwD9MBxH9HcHQJ9A3GHXTQjUi6Lf/couvyUDgHYkgAJAC4ALIKL/dwHcKt5+CeCz5/UeAQzDcBzk/f7v7BZYMqCB4rU1gP9m/88S/xcAfvS8Xm6QWnFvKYuLNgEsADTYyw8E0H8B8DYMxwu67hfDj52SqrCynNRSGRRIAAWAfyWACjEPAtzS8DOvrE5qaVfOOWAAvJAuuQPwD+z/fQBD+t2ln1kYjmfMmEroqqZc1Ip7SyqQRmTsQKOHOmE4XknW/ts0693zei6Ar9LLH8JwPLHi3lJegPY1AH0kDtoVHDAMxwMAbwG8N3AvOYrXmlbcWypCvoJzdoUvVCGyF2RUoQBIIwtSS3m5aAex75OTW1Fk6TGPc9+C1JIg2ZC5yQNQMpIiAKswHHcyLp/kuTGrk1riontJ+uf7ApGhLnHiC8/r+RmifUBeBMtJ9yQmHQA/0wZHAAKdDncE1N1BvAeIXVctALekPgiHvSzaGwRqo4NgOenu1Kd/WwCuAXwl94wpyJvkoqkDN53t8N4VtsOnVwAiz+s1NfqnsU76vcXYbjSfP0Xt9vkZYie2oN+32+dn8/lTlAHQAWL/Yb/dPv/Ubp+/brfPF/P50+pI1+Kndvv8DYB/BPAawA8A/rPdPu8Q5+R0P58//cnkc60zv1yxP8F2hOZGp9tpHNzP1i8A39TZbXp/u6TLFfi+Jqk/DpJhVYTh2Bh7FqTlbkwXwBcF4DhnnDE1oZHxke/KcAGRIXOLODHEJ1HrIs7zXFWwDi7iUOmF5pJ1GI6t4bRncHZo8x3Fn+WNuszx0QOm8xY5ME4YjofYJCFfStzb97yeWyaH1RxUmYZ5PtNy0t1Fmo9kQnBZtAbQESAiAMwy4uQ+gVtw6REdnstduDXpzwuugtDzi/+v6PehQkIs6Z5mRQ6EBWlxYHZo81sGb1sC+DsAv1P87VcyMpCin7r084UBbyCLaoq9/5jjcUZhOO5rdMkFqQMBSYpv7Fn6jCNeGHzPTZGMfEHWBZWfusQ5LzMA+j/s9xYB9M8A/kgb/Uf622t6XUcXxIUW2ORrXgv3jnRtHtVgCXXGfZO+8wpxJn0k6dQtUhm+GgJ0uQtALUgLEC34OwDv5R+yWN+RmP5bCahgnPSvAfwVgP+TXv9f+vfPiu+dEfd+ZOCNpMucHI+yUBlNJI5HitfWBZesv+uaW3FfviqwMLDakcGBzwD8DXvtLgzHPvuegLjp1t88r/cbF7EEEJ0u+hCGY1fzDDMmJUQk7Trnc0wRu9FmewMpKeSRaciPHrZDyvLqhYA0KLCZRqI5DMeO9F0z4qZrZr1HDFxvyJDRgfSeckJl11FgqGc/kE7aJQ6+InDPCCel7fkrw8XvI/az3Xpeb6uIinGPBeLULnFzwup9JDfH6oTB2aTNvaroK1q0hpxBiMBBQwKnoA4BRgfSXYwuztknVa9vEZ30CsCCLD6xGA1aMFHXwvWjCxgmEhwpQF06oLsCdA3gUw7dbyYZMyoKcnyeb3jdDVc99kFGICVj4Ya91ADwzfN6Azrdj2yxAsUJuyIf3ykC9GsBHXQJ4F4yvITj3VUAa6pQs9J0vXUYjiOFsZUmCVRAH9G+39Pv73a11Cs3nDQiYUSujIi5JD6F4XgoFXUtETumVycCUFMj6ZHcOi2VEaT57AGAz1nrxsKdCXBx/yfTX5UiW5NHkPChHopyiXs6RR+kk35NooJzAJ/Uga7EZX2cDkUagE4RF63dkVuqQ0bPe+JEJmvAuVUz5WAHWaKb1K8LhWrB3+uqXFR1WeizglzEgSLjR1h2tHlr9vB8Q28OITIq4KQT0kOnAkyIIzTDkj5/wbivsmSY3UMaF21KUg6QQqHSdwl6X5fk7bMdF5LXXq9J7M+wCaEJoLpMfAE5aq5fKkkiWLleCjH+XBevUE2GZMxuHSRNQojSh3qUINU85AfiKj9KQJ2w07qVOFFjkChdN/vqzcn8rko9liV4XKo4pOF3RAo31bt99h+tHKQKBX4ZhmNHMrLWpCdxbvpoUFW4T1A6dI9dA2NoiTiaEuzhnn7OMjqFO7AAQGttMBUynFJoyIymJtW1BNjEgBuIQ3QP7D0XeWqBqgQCcayfiWuZuJNaiJMvZsxfXDqRpHmg74tSrpsV5Hx+nQ2mUkFKJ7yDZArZAJvMnQska7s7BwRnnwwPAc4idIHYX+xXdYDYGl2UWbBHn6WKRs3qBtIzhY7jE9dbYZNXWDgeqxApIwaKNarrkoEU0RggO81szbiXCzN/aL+sZyHuLqseiXh7Cfou6mrV60A6kPRGedNE//NJzgWRvQByTPlTWa6bjPtIez5+iCYaa7pJB3gAfShyhLjt9mzHe/1Nowv3dwVRSsNbpXfgmECqWrAFATfIejDJpzfFtn8vkeVTItcckOulmcI9l8RdA1OPAxmGfgpY3+fIGOtAyu/U+C75QRgUBVNKpWouLkp48bFdqjIoG+RyFlRAnEJs5h0BcaDY4Bb9XCKOMInscT59YsUAzEF6pfissnW5IbKTPlK7xmXo4QGAIIUrTWDQ3pCJ3SmJd+HW42tyQyqHEM/XtFdFOarqIN7kOFQOfb+s014D6JSd9XamEQUR6aAD6fUO/bgwz/oRNTod6OvMd+akxB0E1zQpa3gA67dZgWhOLdtVpPc9O9AVXPR9GI4jSY/cyZcpfYexO5C4fpSho0+Joy6q4KTcUle9HtHPkBa5q+GysgUc0bX3UFdWrnYEZ5CTG9+VlW6Wkt01yXiPr1o3kkgtDffui5qjEgw0nn0fpXDMSLqftQagS3bdFeLMt7dlALVw3T2BVog8h0DYJE7mkEjp0EZc0KL0hfElPeiF5/WCvE5kOtUT6BM9fLon7roJyjrhBLZAo0b4Etd0aY1cDQidFIt7IakZZdCMcXGdFBsq7rWhURUCxUAy4SkqV9yXrBuq9LV7pk/JD2wc7aCDMcsQO2+rCr1mZLKPsOkS4hhweRV3uhcuwCpcdFKZslJ9yOifvwVQ9h4fm+hjrk4lOqq0WpS47Uh6+SNtnIvkSJXrHMOofGT7LrsVAdRHeqnFNW3UpQFARxKnX9PGD8JwXNkMT/rcO9LNHzTGVNZejGTOTmqUSM9slBGA2EebHZ+Jff7wDsX4fWx33LgW/kjJJeMyo801AOgUJZWtMP9oF5tymaIkekNdksHSp+/4QJ+9t+GyWXo5ifCInp1LhTViX7Du/dzGcHfwQlQv7hUeAw7UaRiOu+zvovKwwTiK2Kw8/ZNKT/7I6T9OE+n+PoIWhybP663YPj7vc61BqnF7AFKkSQNmU5oSFwoKHqKOzk+YUqYhvneVYnxEiMu6X0T+LMvcguxaOxaQyhwpEbvP8MOJ0GzEvAkRiZ6ieQVdbNowPpCasVCA2GeW6xSb1uMvoqcAP8zI6KUgMaOd8w3ODvCQvyiA50j6p0N6agebmv5MXY0tostcNxPWI6CPTUBCp1u+P+Ke91Xsmcv08YakVg1kCaHogLJzFcbZAR46QNIXuMQOQwUIfP0U3XWkMN50ZEEKo9wEnQtqq9K1jJyMQzTR9RWnsoW4S9yQi24xwQLbEbAZ465CXLdSjJUGzPNF718yQFkU0QScgn70vB5Puu7mcGHVk5OyxRhIridODzDv/cm5cUTgnYXheLJrat4LAGWHuZY6Bl6UR2zyi/tsf0bMlcb10Tdl6OxnNVgoOd0rDz1ik+M6UxyC2xRAD1+a4SMZi90cTOCBJJysf/LMtjc0vfm3slxPhxT3W0SdTgIk/aQCTM+d2ug1l1w+E00tepoutZcCuppxSocZk5c5GUCgW2eiPjZdXOQ8htLUploMdiBu1je8PMqpS02FHnsq4CTw8Zi4g42f1kV6gjdS9Hfh3jOaSkKcM0DsmnOxaZDWQI5R4UcB0pwbJPyaLp3ilcKdJNrIDOtc20/P42QcUOFWKwI8E24ZIc4dLqqTC5B2mWF7yZjGcRpOFbpEhIg6Gl0zo0wEVYESJTa6ZXroB2IeIuhRijvv1ZFsZJDhRio1E3zPRkxVABXiewEpqFEBPRD3FPm9H5nqcfogNQBo7TpuGKosEZWElA2WCHvMpCJaEEi5blwavTqCzTwZgMp1TZ7XeyxBfE+QY5ZBhSAFNv3zXwZI2YaeCkAdJNtlyh3xItrwPpKdRGbY5GmWPjxhR4oQ+6Qb0Li52GjLBbbzTTO5fp05qWr8n6DSOnnskdLS+WQD49iebSYdtgZ7Zr6fKgDfZhXsvaop13E1Yl6ZeVMTrh8RCAcqfyz5FLtIlnVPjz1fgDj6GVsL0Y6SgzfNbyo8N0o6qyFAVb3oax0pUhh3Ws6gSKCuZWubCpmPyM2Vfb73tMerWoOUlSi3TG5+jwv7LNY0AxZW0qFKrevPqlB4AWDVVWAsESfBL2on7lnPJlnE77R5imyrqcIg4SHGzKgOuYzWzNUTINmALcvC9bFdbTpAzhnwRwhMB5sqiiFr6sE74bRUakEdsqD6UJcHF86iSckmr4LkEThGhp2iNc/RzxGgjLZuGI5d1hfBJ1DytMln5iPlDAcqle6sBqfrZ8WfCutpKQ3E9klZ4l4usdjpUNYEoHx2wjtsD/OYIo5CTbGZh2q8v4ceJd7Xvb6DDqoTm2vEEZkp4i51bxHHmu+Ii53Ra2JCnZjFdI9NG/Ulkg0tilCAZDjUwXFTIKkvE2xa1F8h9muLbuANABM6rJl0aE4aIek7K8RRUobQlh7XNxgWq+WkivY23JVztKPdFerLezp4fJ1Ed0Cx70a9CA5tOKm4x6DAAvlQl6JUEpWizh5dFBt6283YaNGcGNgkZ4h82NkR4TagDjVgQHWxKUdf0H599ryek6bDH1rctxSgWuQAZ5MGbt0qAPpYcdh0Zij6ZHIN1uSSfm7p5wviARILz+v5pmJyzzSVn4Oa6Qbsb2KUj5zk/jHtmb6r2YPmtW6HKS6jQ4YW/QoP9S22R7nXhYYpB1Ic6CaTRhOyDYTeGuieqU4gXRdwwegypJYHDjVek96qojLuq1HgQFdKtN43Gc/alNUmbAYnX5G0COoM0lybl9FScFiD+x1qOEOA5Dz7Qly1qvlRu+jqEtOJJE56IYt10rOH0gF3awFSxQaWyfmCPXGO+wxuFyg2ZUGGQ5YrS7jM0gA9qJN+Ku2pr9HDIw1TWer0/UNyUieHIZKHRvuK85NF+obcLfcKQF2ouHoYjiNqP/MBsd+Qb9ASceuaZhiOXeqUfKMBa93E/oruc5niVkqM66T9chH7pW/k/Ts74Knb6q+e10eY0p3k7aFqnVI6AoqyDm0LSOKIzZTsqbRugzd1L9eWMsVytYM8JCd1pU3M88BNjQV9d8hiPNKvXAXXE+6kL+RGUk53Sbt3+uzAUCrVjsgdOCpiM7w60KmSs43yivq+iluVNfZmV6Cy+aWXGjdSRD7EWQZXlh3/ukDAAkdANOIn90jLQ0WcOgpdZpf3A9X5JotsxgKAm1JTL3RJRwHMPvL1aULN9FITaYNjAKm74/sdjbVdNwqgb5rWIl/qBMmMqDw0PfWs/kPppLMddSrnRNZfGENFAbqukwSpig7FSVcG4juNWkeyvlm64scdPltZamE5aXl6iSyaL3Z0Si+PFKS7kP8SAHpIcQ8k3U7dmoKhqAfDTRHFyxIOeoAXQocE6WwHkMrtaaKaATRAXF+va1rbRzIZY614LtMDbnXSPemlV57XaxpaqnK7mjoBtIP0/lU8QyvQcOAB4owhYfmLkT4OHcihBel+KELSPaMbzZ313jolATczOGBfAqWDuCgtYvp6VGdJ8WLEPW3GsojIp/fy0KN7BMbSlDhjX6SiEdedAfhKuQiWaqaTAsns+SviLCY0kbwDtchUJ4v7RvGnDuKEmFsCpehPL8K7n1MSpS1ID7ihE2ySDrhRYaoucPLrsqhkectAlX27V0jmH1iQ1pCTiuwYLvaNEnkJCGuJC3drDtSiqoIFaQ2Ic8FGDq4oJ1YEdSpQI6DeGV7+iOPrS7oXqk0zAkVnuszJFZo2PYnx5Ad+LlUrS5n+HcB/AfgVsZvpeYykNEJnQWpOkxmZi1N37NcJpFuZ+jDsZKJ4nwBqty6ZUaSG+ND7dj8hWWWwRrJbn46WiFsTRRak1W5kov2MSUlJSq9LoGZlFSlc9Z8A/KGErxDADk6Ju35flxuZz5/+1G6fi/5BAIB2+/xsPn+KMt73a7t9HgL4eySzqbrt9vlyPn+a1eQZxb2+ke7138jLcUZ/0xmOD9g0TVvS9fza17R+3Xb7/O18/nQSk6fr1unZRbKnvHE/J9LffCTDkh9q2GffpXsVIU+hZ67IIOwjGZFL6NsZzdOObsZVna17Id4jJP2m16quFpr3L2hT3mI7WSOoW1saKmt2EYdEF4ijZrekm/pUryV7BhqI66M6kgdhpPkax3LS/RlRwjgYIn20tazjRkz/W0MzGaRGz83nx9+R/vqjRveUOapPv0bYTKYLTiHn9KzGG5Ymxh7Iel8VUB/EzE0xSW5Vo2d2sHGpyW3O70gFaEnrEJ0KGI8OpGXpWxlNFQQYIpQ8uXiHZ46gdjuthVEE9bTqEU40W/+7Ot9cRmixY/gZM9pcXaLwBakWXwD84nm9yYETPXR6ZANAJwzHAbXoucF2OPkawKyGLSFPm5MacNR3eSJLzKI2cZCvETvIJ3t+1t8UuniLcX1XcHuNj7hWEbcXA1IGVNW80dwOe9L9XBKdWS3FR2RwrQ4E0jf03NcpQPWx3dXlpIB6VIMEWPsaObpUeCiZYiCZjqvuxTOg6HryllQAbgAmBkfQwQuYlKhVaPjFgJRtSICkw/6BDIdoh8/tE3d1NYB9JBVgVuGz+dg48Z/nHUnuKUDTPZBmCFzsImms4VSOQdVH0tF9iTjjfVbU8CGjpEs9QXVG1reKDashHbgHbM+zaiquU5F8gH6sU57ti+GkkiE00XC9NYm/YRG3TEqzMUF7DbVqXFOJdEZpMh03vjrH2jPqu2MGKW2QA3VYsIHYtfSz5/WiAtxvgPQmDsGeW4Gr1JiFYk0mSLrbWsjfyqg29D2OnObzp1/n86dJu30+Ip1xCeB3AH5glzmIM4M+tdvnP7Tb5z/N50+rjM/9aT5/Grbb50vEszJlQL4G8JesLK0SnzNqt8/fAPg9vXQfhuNQdW27fT4B8M/SGozm86fFMe7xGU6UWEa7zmo3NrSIYw4VxtqSHOv7fK4uGVNDg2tdznWPNRp1siCVADYoCax9JIMKNy+pL5MF6WHBmjmjXgPUvXNTC9KXDdataE4OoBYOJliyIM3SWYdIhkWNIjWKnFcr9i1IKzVEAgVXzUx9U0R33p1SYkdd6LuXvgDkV3SQ9C2K1Dc35e2+9P8oRy8rS4b0vV2CZ19r0G6fn2G7Q99rAH1dxel8/vRTu33+ia4T1785lSpNy0nryVV9qJOs0+LfMiCvLTe1IK0aqAHiCJM8ejHQgG9moAZYsiAtHagzJNswNqAu7VB5ATp2FQ9s3RNH6Uib4bBNXGBT2LY4Ystftt7vVPNLFc3WgBNpzFAHepVjw/rYlFw0Mi6/JOsYntdbYjOgYHFkmeIRzAZIREj6W689rzepW+eUkwQplWxMUHwKXQvM6e15PfHrzpn0eyDTVLwJ1LVSLo5oOO1R6qTkI/yGasYkikz6KMMXeUhycoB0bXXTPXNS0jvTuMCSxNxCMh46jAN1kF2NKcAq1AL/2DLIqQYpQLI1kGMhVq249zW65whxScYsRT+TufHQQLcTakGf4uLDQ4KVElFkTpgW8pxpnslShSBVOa+1sWmWGfRAHDEIw/GKdM6OQs9tEqeRa+kbiKsl+1Q5OdknWOne+hoDMcqpGqwtxHanM81GqYq5lO4XxnVmEucwKv9NyXrn9ECcdVIxQFXP/SxB0lxKCndV5nssFTScWAMGmSMM5Q31vN6COm78ohBtF5B6aer0OdrId9D3a7oE8IW+r8pN1yU9p04GIf39Ikv1sVQCSGmxI4WY2xK5dN0XA52rYQJUAuuMmsq+TwFrC3EcfeF5vUEF1ZqXGi6elQjtmujnlsrhpLrSisCQ4+wEVAJrxMA6TQHrZ8Rd8Gae1xvu6sbS3N9DGI5dA524q3mWhYVY+YaTaqP46GthraeJXFEDf60AqnFvIjGtWGou5ioO0QX9fKRAwQPpxzPE7jFtlSQL73Y1QDM12JTrZuFVvXW/xUXJqBhA3zZxy1Aiy7zPuHMDsT80y4Wl4kYBuw9ufbc0IvtSAmPR9THNslfdh2/hVYF1r2iKJboLB0h3ymsL2BTd3jinEa6qQiUXBoDdhdaIW9MsMu7BQXIqn60grVAnlcESEPAWGZup7V9PE0FcxFPf1hL3+Yi4AVhUpEMxGVsDAsRb+o5pwbUYkR78CXEzNNdQp1SB0VaOVijuI2zPDmqy1z/qjAaTzQzD8ZA4tY+kT/SS9M/CPUDpHoYCIKQ7ix9H4rRLug9x31xvzWuRuzuoCZYKiPsmYp/nM5cUbRAVqgBg2FBBIyZdqCM7U2y3PKw1abrvvTnWDnbHAFLV/KT3YTiOFNGY5wavO26ySmddc+scNZxEnBIpeyD1xlLZ4p4428cUN8xKo6/uRGIanNS9uSFb6eQtGB66U4iBsRZYWFVnOKlO/5RZ3nJ0p9Q4OoVGbzLcPJ/3EBrVgbNPZSLf6DCrAPpou5hUbzilWamVt7QOw3FAQOhIBojQXxvYhEaHxLUmAGZlcHUS4V0ytBagGi3inqrJJ7KXo28hVaFOqmpryOfNK4rN9tqkizUau00BCddjIem0CylH1KEf8VoT6iSREf39IgOgA8tFq+eksuvlQdLDZC6yz1bcIE7pk5dhiGRwIKHHSiAv+tVpKYRi5OPQxun3AFLiNI+MYzgZ+upBNoV0ZDfFhVUlrQmUE+w5GduCdFsHFSK/5Xm9PokwFdeMDnnjIgGFuKRIPqkiPPqIzUTnyELm8CAVESGx0X0yTlYKK7Y24o0y9icABixrymXSoJmiUy6hdhvNULNR4xak2Kp6FMbJpYZr1raWXM6akvRSl6kvolmFDWEei3UvWdELpufdheHYl8J/2nonS5bKpkR/0vn86dd2+/w1M5bcdvv8gUS+eO1du33+H/P505/sElqqmnQdTIZkMHDxzsViA8BkzxPhLFmQbuumZDStGSjlbKcWbPa5pUPopJJ+2oG6epTTe+uasXQwkBoCdU1cdmHBaukgIM3BUYHY59i3YLW0d5DmBCoA3OMIu+NZOnKQMqB+M7zcaASiJUuFrHsdUXTmxvBy0QvKuqks7Y+TMo4aQd8kwnJUS4fjpIwC9vsd4o54j5ajWqoNSCl9T4Dyliz6DqkCSw1QD1KbZOmFinuNEfU8SpvyO8WP7A1YIg67RjYDyVKlICUw+tik9SXq8Flh2wDqfE4xHMLOO7JUDUgJiLwNt7YFOXHeAfQ1Q2vEiSxDy2EtlQ1SB3GGFBfrI8TNIyLF9U3EySt96LPlH+j9gd0iS2dlfAhlvH9V/GmKuNR3kaLX9hGXDF9q1AHfgtWCFCUBtQ99A4URgW1hAPYBko3RlgR2q7dakJYi+n3oy4xF5eUkTe9UNapgasDA6qwWpGUBVowad+hHBq6oYeeAm7B25qK1jYNkmfKNVQEsSKsCrvCdpnUF4TNLA2pa4WC7/74FqgVp5WAVasG1weV3oDmj5BkImM5qqwIsSGsD1iXTZSPWdbqURr6WLEjL5qxrxOXVLWaM2SyrE6bv63AT8/nTaj5/mrTb5yMC4Vvou/a9lv72A4C/zOdPVuxbTrp37tphYHSw6e8kW/oPSBnRY8mC9BDg5Y1wZxaclixZOjj9P1mBFJVLennBAAAAAElFTkSuQmCC"},4639:t=>{"use strict";t.exports=e},1346:e=>{"use strict";e.exports=t}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={id:e,exports:{}};return n[e].call(o.exports,o,o.exports,r),o.exports}r.m=n,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.b=document.baseURI||self.location.href,r.nc=void 0;var o={};return(()=>{"use strict";var e=r(3379),t=r.n(e),n=r(7795),i=r.n(n),o=r(569),a=r.n(o),s=r(3565),l=r.n(s),c=r(9216),u=r.n(c),d=r(4589),p=r.n(d),h=r(5369),f={};f.styleTagTransform=p(),f.setAttributes=l(),f.insert=a().bind(null,"head"),f.domAPI=i(),f.insertStyleElement=u();t()(h.Z,f),h.Z&&h.Z.locals&&h.Z.locals})(),(()=>{"use strict";r.d(o,{default:()=>Wy});var e=r(4639),t=r.n(e);function n(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}function i(e,t){if(null==e)return{};var i,r,o=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)i=a[r],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(o[i]=e[i])}return o}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(this,arguments)}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e){return e&&"object"===s(e)&&e.constructor===Object}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?a({},e):e;return l(e)&&l(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(l(t[r])&&r in e?i[r]=c(e[r],t[r],n):i[r]=t[r])})),i}var u=["xs","sm","md","lg","xl"];function d(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}function p(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t,n){var i;return a({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),a({paddingLeft:t(2),paddingRight:t(2)},n,p({},e.up("sm"),a({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(i={minHeight:56},p(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),p(i,e.up("sm"),{minHeight:64}),i)},n)}function f(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}const m={black:"#000",white:"#fff"};const g={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const v={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const y={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const b={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};const w={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};const x={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};const C={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function S(e){if(e.type)return e;if("#"===e.charAt(0))return S(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(f(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function T(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function A(e){var t="hsl"===(e=S(e)).type?S(function(e){var t=(e=S(e)).values,n=t[0],i=t[1]/100,r=t[2]/100,o=i*Math.min(r,1-r),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return r-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),T({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function P(e,t){if(e=S(e),t=E(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return T(e)}function O(e,t){if(e=S(e),t=E(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return T(e)}var I={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:m.white,default:g[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},R={text:{primary:m.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:g[800],default:"#303030"},action:{active:m.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k(e,t,n,i){var r=i.light||i,o=i.dark||1.5*i;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=O(e.main,r):"dark"===t&&(e.dark=P(e.main,o)))}function D(e){var t=e.primary,n=void 0===t?{light:v[300],main:v[500],dark:v[700]}:t,r=e.secondary,o=void 0===r?{light:y.A200,main:y.A400,dark:y.A700}:r,s=e.error,l=void 0===s?{light:b[300],main:b[500],dark:b[700]}:s,u=e.warning,d=void 0===u?{light:w[300],main:w[500],dark:w[700]}:u,p=e.info,h=void 0===p?{light:x[300],main:x[500],dark:x[700]}:p,E=e.success,S=void 0===E?{light:C[300],main:C[500],dark:C[700]}:E,T=e.type,P=void 0===T?"light":T,O=e.contrastThreshold,D=void 0===O?3:O,j=e.tonalOffset,M=void 0===j?.2:j,N=i(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){var t=function(e,t){var n=A(e),i=A(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}(e,R.text.primary)>=D?R.text.primary:I.text.primary;return t}var B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=a({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(f(4,t));if("string"!=typeof e.main)throw new Error(f(5,JSON.stringify(e.main)));return k(e,"light",n,M),k(e,"dark",i,M),e.contrastText||(e.contrastText=L(e.main)),e},F={dark:R,light:I};return c(a({common:m,type:P,primary:B(n),secondary:B(o,"A400","A200","A700"),error:B(l),warning:B(d),info:B(h),success:B(S),grey:g,contrastThreshold:D,getContrastText:L,augmentColor:B,tonalOffset:M},F[P]),N)}function j(e){return Math.round(1e5*e)/1e5}function M(e){return j(e)}var N={textTransform:"uppercase"},L='"Roboto", "Helvetica", "Arial", sans-serif';function B(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?L:r,s=n.fontSize,l=void 0===s?14:s,u=n.fontWeightLight,d=void 0===u?300:u,p=n.fontWeightRegular,h=void 0===p?400:p,f=n.fontWeightMedium,m=void 0===f?500:f,g=n.fontWeightBold,v=void 0===g?700:g,y=n.htmlFontSize,b=void 0===y?16:y,w=n.allVariants,x=n.pxToRem,C=i(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var E=l/14,S=x||function(e){return"".concat(e/b*E,"rem")},T=function(e,t,n,i,r){return a({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===L?{letterSpacing:"".concat(j(i/t),"em")}:{},r,w)},A={h1:T(d,96,1.167,-1.5),h2:T(d,60,1.2,-.5),h3:T(h,48,1.167,0),h4:T(h,34,1.235,.25),h5:T(h,24,1.334,0),h6:T(m,20,1.6,.15),subtitle1:T(h,16,1.75,.15),subtitle2:T(m,14,1.57,.1),body1:T(h,16,1.5,.15),body2:T(h,14,1.43,.15),button:T(m,14,1.75,.4,N),caption:T(h,12,1.66,.4),overline:T(h,12,2.66,1,N)};return c(a({htmlFontSize:b,pxToRem:S,round:M,fontFamily:o,fontSize:l,fontWeightLight:d,fontWeightRegular:h,fontWeightMedium:m,fontWeightBold:v},A),C,{clone:!1})}function F(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const z=["none",F(0,2,1,-1,0,1,1,0,0,1,3,0),F(0,3,1,-2,0,2,2,0,0,1,5,0),F(0,3,3,-2,0,3,4,0,0,1,8,0),F(0,2,4,-1,0,4,5,0,0,1,10,0),F(0,3,5,-1,0,5,8,0,0,1,14,0),F(0,3,5,-1,0,6,10,0,0,1,18,0),F(0,4,5,-2,0,7,10,1,0,2,16,1),F(0,5,5,-3,0,8,10,1,0,3,14,2),F(0,5,6,-3,0,9,12,1,0,3,16,2),F(0,6,6,-3,0,10,14,1,0,4,18,3),F(0,6,7,-4,0,11,15,1,0,4,20,3),F(0,7,8,-4,0,12,17,2,0,5,22,4),F(0,7,8,-4,0,13,19,2,0,5,24,4),F(0,7,9,-4,0,14,21,2,0,5,26,4),F(0,8,9,-5,0,15,22,2,0,6,28,5),F(0,8,10,-5,0,16,24,2,0,6,30,5),F(0,8,11,-5,0,17,26,2,0,6,32,5),F(0,9,11,-5,0,18,28,2,0,7,34,6),F(0,9,12,-6,0,19,29,2,0,7,36,6),F(0,10,13,-6,0,20,31,3,0,8,38,7),F(0,10,13,-6,0,21,33,3,0,8,40,7),F(0,10,14,-6,0,22,35,3,0,8,42,7),F(0,11,14,-7,0,23,36,3,0,9,44,8),F(0,11,15,-7,0,24,38,3,0,9,46,8)];const _={borderRadius:4};function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function U(e,t){if(e){if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||U(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var W={xs:0,sm:600,md:960,lg:1280,xl:1920},G={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(W[e],"px)")}};const q=function(e,t){return t?c(e,t,{clone:!1}):e};var Z={m:"margin",p:"padding"},X={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Y={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},K=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!Y[e])return[e];e=Y[e]}var t=V(e.split(""),2),n=t[0],i=t[1],r=Z[n],o=X[i]||"";return Array.isArray(o)?o.map((function(e){return r+e})):[r+o]})),Q=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function J(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function $(e,t){return function(n){return e.reduce((function(e,i){return e[i]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function ee(e){var t=J(e.theme);return Object.keys(e).map((function(n){if(-1===Q.indexOf(n))return null;var i=$(K(n),t),r=e[n];return function(e,t,n){if(Array.isArray(t)){var i=e.theme.breakpoints||G;return t.reduce((function(e,r,o){return e[i.up(i.keys[o])]=n(t[o]),e}),{})}if("object"===s(t)){var r=e.theme.breakpoints||G;return Object.keys(t).reduce((function(e,i){return e[r.up(i)]=n(t[i]),e}),{})}return n(t)}(e,r,i)})).reduce(q,{})}ee.propTypes={},ee.filterProps=Q;var te={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ne={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ie(e){return"".concat(Math.round(e),"ms")}const re={easing:te,duration:ne,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?ne.standard:n,o=t.easing,a=void 0===o?te.easeInOut:o,s=t.delay,l=void 0===s?0:s;i(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:ie(r)," ").concat(a," ").concat("string"==typeof l?l:ie(l))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};const oe={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ae(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,s=e.palette,l=void 0===s?{}:s,d=e.spacing,p=e.typography,f=void 0===p?{}:p,m=i(e,["breakpoints","mixins","palette","spacing","typography"]),g=D(l),v=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,s=e.step,l=void 0===s?5:s,c=i(e,["values","unit","step"]);function d(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function p(e,t){var i=u.indexOf(t);return i===u.length-1?d(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==i&&"number"==typeof n[u[i+1]]?n[u[i+1]]:t)-l/100).concat(o,")")}return a({keys:u,values:n,up:d,down:function(e){var t=u.indexOf(e)+1,i=n[u[t]];return t===u.length?d("xs"):"@media (max-width:".concat(("number"==typeof i&&t>0?i:e)-l/100).concat(o,")")},between:p,only:function(e){return p(e,e)},width:function(e){return n[e]}},c)}(n),y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=J({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(d),b=c({breakpoints:v,direction:"ltr",mixins:h(v,y,o),overrides:{},palette:g,props:{},shadows:z,typography:B(g,f),spacing:y,shape:_,transitions:re,zIndex:oe},m),w=arguments.length,x=new Array(w>1?w-1:0),C=1;C<w;C++)x[C-1]=arguments[C];return b=x.reduce((function(e,t){return c(e,t)}),b)}const se=ae;const le=t().createContext(null);function ce(){return t().useContext(le)}const ue="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";const de=function(e){var n=e.children,i=e.theme,r=ce(),o=t().useMemo((function(){var e=null===r?i:function(e,t){return"function"==typeof t?t(e):a({},e,t)}(r,i);return null!=e&&(e[ue]=null!==r),e}),[i,r]);return t().createElement(le.Provider,{value:o},n)};function pe(e){var t=e.theme,n=e.name,i=e.props;if(!t||!t.props||!t.props[n])return i;var r,o=t.props[n];for(r in o)void 0===i[r]&&(i[r]=o[r]);return i}var he=r(9167),fe=r.n(he);const me=se();function ge(){return ce()||me}var ve=function(e,t){return!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?u.indexOf(e)<=u.indexOf(t):u.indexOf(e)<u.indexOf(t)},ye="undefined"==typeof window?e.useEffect:e.useLayoutEffect;const be=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var r=t.withTheme,o=void 0!==r&&r,s=t.noSSR,l=void 0!==s&&s,c=t.initialWidth;function u(t){var r=ge(),s=t.theme||r,u=pe({theme:s,name:"MuiWithWidth",props:a({},t)}),d=u.initialWidth,p=u.width,h=i(u,["initialWidth","width"]),f=e.useState(!1),m=f[0],g=f[1];ye((function(){g(!0)}),[]);var v=s.breakpoints.keys.slice().reverse().reduce((function(t,n){var i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=ce(),r=pe({theme:i,name:"MuiUseMediaQuery",props:{}}),o="function"==typeof t?t(i):t;o=o.replace(/^@media( ?)/m,"");var s="undefined"!=typeof window&&void 0!==window.matchMedia,l=a({},r,n),c=l.defaultMatches,u=void 0!==c&&c,d=l.matchMedia,p=void 0===d?s?window.matchMedia:null:d,h=l.noSsr,f=void 0!==h&&h,m=l.ssrMatchMedia,g=void 0===m?null:m,v=e.useState((function(){return f&&s?p(o).matches:g?g(o).matches:u})),y=v[0],b=v[1];return e.useEffect((function(){var e=!0;if(s){var t=p(o),n=function(){e&&b(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[o,p,s]),y}(s.breakpoints.up(n));return!t&&i?n:t}),null),y=a({width:p||(m||l?v:void 0)||d||c},o?{theme:s}:{},h);return void 0===y.width?null:e.createElement(n,y)}return fe()(u,n),u}};var we;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(we||(we={}));var xe=function(e){return e};var Ce="beforeunload",Ee="popstate";function Se(e){e.preventDefault(),e.returnValue=""}function Te(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function Ae(){return Math.random().toString(36).substr(2,8)}function Pe(e){var t=e.pathname,n=void 0===t?"/":t,i=e.search,r=void 0===i?"":i,o=e.hash,a=void 0===o?"":o;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function Oe(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}var Ie=r(4203),Re=r(9205),ke=r(1346),De=r.n(ke);var je=function(e){e()},Me=function(){return je},Ne=(0,e.createContext)(null);var Le=function(){throw new Error("uSES not initialized!")};var Be=r(9388),Fe=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ze(e,t,n,i,r){var o,a,s,l,c,u=r.areStatesEqual,d=r.areOwnPropsEqual,p=r.areStatePropsEqual,h=!1;function f(r,h){var f,m,g=!d(h,a),v=!u(r,o,h,a);return o=r,a=h,g&&v?(s=e(o,a),t.dependsOnOwnProps&&(l=t(i,a)),c=n(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(i,a)),c=n(s,l,a)):v?(f=e(o,a),m=!p(f,s),s=f,m&&(c=n(s,l,a)),c):c}return function(r,u){return h?f(r,u):(s=e(o=r,a=u),l=t(i,a),c=n(s,l,a),h=!0,c)}}function _e(e){return function(t){var n=e(t);function i(){return n}return i.dependsOnOwnProps=!1,i}}function He(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Ue(e,t){return function(t,n){n.displayName;var i=function(e,t){return i.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(t,n){i.mapToProps=e,i.dependsOnOwnProps=He(e);var r=i(t,n);return"function"==typeof r&&(i.mapToProps=r,i.dependsOnOwnProps=He(r),r=i(t,n)),r},i}}function Ve(e,t){return function(n,i){throw new Error("Invalid value of type ".concat(typeof e," for ").concat(t," argument when connecting component ").concat(i.wrappedComponentName,"."))}}function We(e,t,n){return a({},n,e,t)}var Ge={notify:function(){},get:function(){return[]}};function qe(e,t){var n,i=Ge;function r(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(r):e.subscribe(r),i=function(){var e=Me(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var i=!0,r=n={callback:e,next:null,prev:n};return r.prev?r.prev.next=r:t=r,function(){i&&null!==t&&(i=!1,r.next?r.next.prev=r.prev:n=r.prev,r.prev?r.prev.next=r.next:t=r.next)}}}}())}var a={addNestedSub:function(e){return o(),i.subscribe(e)},notifyNestedSubs:function(){i.notify()},handleChangeWrapper:r,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,i.clear(),i=Ge)},getListeners:function(){return i}};return a}var Ze=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?e.useLayoutEffect:e.useEffect;function Xe(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Ye(e,t){if(Xe(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Xe(e[n[r]],t[n[r]]))return!1;return!0}function Ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||Je(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qe(e){return function(e){if(Array.isArray(e))return $e(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Je(e)||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 Je(e,t){if(e){if("string"==typeof e)return $e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$e(e,t):void 0}}function $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var et=["reactReduxForwardedRef"],tt=Le,nt=[null,null];function it(e,t,n,i,r,o){e.current=i,n.current=!1,r.current&&(r.current=null,o())}function rt(e,t){return e===t}const ot=function(i,r,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=(s.pure,s.areStatesEqual),c=void 0===l?rt:l,u=s.areOwnPropsEqual,d=void 0===u?Ye:u,p=s.areStatePropsEqual,h=void 0===p?Ye:p,f=s.areMergedPropsEqual,m=void 0===f?Ye:f,g=s.forwardRef,v=void 0!==g&&g,y=s.context,b=void 0===y?Ne:y,w=function(e){return e?"function"==typeof e?Ue(e):Ve(e,"mapStateToProps"):_e((function(){return{}}))}(i),x=function(e){return e&&"object"==typeof e?_e((function(t){return function(e,t){var n={},i=function(){var i=e[r];"function"==typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var r in e)i();return n}(e,t)})):e?"function"==typeof e?Ue(e):Ve(e,"mapDispatchToProps"):_e((function(e){return{dispatch:e}}))}(r),C=function(e){return e?"function"==typeof e?function(e){return function(t,n){n.displayName;var i,r=n.areMergedPropsEqual,o=!1;return function(t,n,a){var s=e(t,n,a);return o?r(s,i)||(i=s):(o=!0,i=s),i}}}(e):Ve(e,"mergeProps"):function(){return We}}(o),E=Boolean(i);return function(i){var r=i.displayName||i.name||"Component",o="Connect(".concat(r,")"),s={shouldHandleStateChanges:E,displayName:o,wrappedComponentName:r,WrappedComponent:i,initMapStateToProps:w,initMapDispatchToProps:x,initMergeProps:C,areStatesEqual:c,areStatePropsEqual:h,areOwnPropsEqual:d,areMergedPropsEqual:m};function l(r){var o=(0,e.useMemo)((function(){var e=r.reactReduxForwardedRef,t=n(r,et);return[r.context,e,t]}),[r]),l=Ke(o,3),c=l[0],u=l[1],d=l[2],p=(0,e.useMemo)((function(){return c&&c.Consumer&&(0,Be.isContextConsumer)(t().createElement(c.Consumer,null))?c:b}),[c,b]),h=(0,e.useContext)(p),f=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch),m=Boolean(h)&&Boolean(h.store);var g=f?r.store:h.store,v=m?h.getServerState:g.getState,y=(0,e.useMemo)((function(){return function(e,t){var i=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,a=n(t,Fe);return ze(i(e,a),r(e,a),o(e,a),e,a)}(g.dispatch,s)}),[g]),w=(0,e.useMemo)((function(){if(!E)return nt;var e=qe(g,f?void 0:h.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[g,f,h]),x=Ke(w,2),C=x[0],S=x[1],T=(0,e.useMemo)((function(){return f?h:a({},h,{subscription:C})}),[f,h,C]),A=(0,e.useRef)(),P=(0,e.useRef)(d),O=(0,e.useRef)(),I=(0,e.useRef)(!1),R=((0,e.useRef)(!1),(0,e.useRef)(!1)),k=(0,e.useRef)();Ze((function(){return R.current=!0,function(){R.current=!1}}),[]);var D,j,M,N,L=(0,e.useMemo)((function(){return function(){return O.current&&d===P.current?O.current:y(g.getState(),d)}}),[g,d]),B=(0,e.useMemo)((function(){return function(e){return C?function(e,t,n,i,r,o,a,s,l,c,u){if(!e)return function(){};var d=!1,p=null,h=function(){if(!d&&s.current){var e,n,h=t.getState();try{e=i(h,r.current)}catch(e){n=e,p=e}n||(p=null),e===o.current?a.current||c():(o.current=e,l.current=e,a.current=!0,u())}};return n.onStateChange=h,n.trySubscribe(),h(),function(){if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(E,g,C,y,P,A,I,R,O,S,e):function(){}}}),[C]);D=it,j=[P,A,I,d,O,S],Ze((function(){return D.apply(void 0,Qe(j))}),M);try{N=tt(B,L,v?function(){return y(v(),d)}:L)}catch(e){throw k.current&&(e.message+="\nThe error may be correlated with this previous error:\n".concat(k.current.stack,"\n\n")),e}Ze((function(){k.current=void 0,O.current=void 0,A.current=N}));var F=(0,e.useMemo)((function(){return t().createElement(i,a({},N,{ref:u}))}),[u,i,N]);return(0,e.useMemo)((function(){return E?t().createElement(p.Provider,{value:T},F):F}),[p,F,T])}var u=t().memo(l);if(u.WrappedComponent=i,u.displayName=l.displayName=o,v){var p=t().forwardRef((function(e,n){return t().createElement(u,a({},e,{reactReduxForwardedRef:n}))}));return p.displayName=o,p.WrappedComponent=i,fe()(p,i)}return fe()(u,i)}};const at=function(n){var i=n.store,r=n.context,o=n.children,a=n.serverState,s=(0,e.useMemo)((function(){var e=qe(i);return{store:i,subscription:e,getServerState:a?function(){return a}:void 0}}),[i,a]),l=(0,e.useMemo)((function(){return i.getState()}),[i]);Ze((function(){var e=s.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==i.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=void 0}}),[s,l]);var c=r||Ne;return t().createElement(c.Provider,{value:s},o)};var st,lt,ct;function ut(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,pt(i.key),i)}}function dt(e,t,n){return t&&ut(e.prototype,t),n&&ut(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pt(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ft(e){var t=vt();return function(){var n,i=bt(e);if(t){var r=bt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function mt(e){var t="function"==typeof Map?new Map:void 0;return mt=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return gt(e,arguments,bt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),yt(n,e)},mt(e)}function gt(e,t,n){return gt=vt()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&yt(r,n.prototype),r},gt.apply(null,arguments)}function vt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function yt(e,t){return yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yt(e,t)}function bt(e){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bt(e)}function wt(e,t){return Ct(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||Tt(e,t)||xt()}function xt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ct(e){if(Array.isArray(e))return e}function Et(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Tt(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function St(e){return function(e){if(Array.isArray(e))return Pt(e)}(e)||At(e)||Tt(e)||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 Tt(e,t){if(e){if("string"==typeof e)return Pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pt(e,t):void 0}}function At(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ot.apply(this,arguments)}st=Re.useSyncExternalStoreWithSelector,function(e){tt=e}(Ie.useSyncExternalStore),lt=ke.unstable_batchedUpdates,je=lt,function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(ct||(ct={}));var It,Rt="popstate";function kt(e,t){if(!1===e||null==e)throw new Error(t)}function Dt(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function jt(e,t){return{usr:e.state,key:e.key,idx:t}}function Mt(e,t,n,i){return void 0===n&&(n=null),Ot({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?Lt(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function Nt(e){var t=e.pathname,n=void 0===t?"/":t,i=e.search,r=void 0===i?"":i,o=e.hash,a=void 0===o?"":o;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function Lt(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function Bt(e,t,n,i){void 0===i&&(i={});var r=i,o=r.window,a=void 0===o?document.defaultView:o,s=r.v5Compat,l=void 0!==s&&s,c=a.history,u=ct.Pop,d=null,p=h();function h(){return(c.state||{idx:null}).idx}function f(){u=ct.Pop;var e=h(),t=null==e?null:e-p;p=e,d&&d({action:u,location:g.location,delta:t})}function m(e){var t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeof e?e:Nt(e);return kt(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==p&&(p=0,c.replaceState(Ot({},c.state,{idx:p}),""));var g={get action(){return u},get location(){return e(a,c)},listen:function(e){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(Rt,f),d=e,function(){a.removeEventListener(Rt,f),d=null}},createHref:function(e){return t(a,e)},createURL:m,encodeLocation:function(e){var t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){u=ct.Push;var i=Mt(g.location,e,t);n&&n(i,e);var r=jt(i,p=h()+1),o=g.createHref(i);try{c.pushState(r,"",o)}catch(e){a.location.assign(o)}l&&d&&d({action:u,location:g.location,delta:1})},replace:function(e,t){u=ct.Replace;var i=Mt(g.location,e,t);n&&n(i,e);var r=jt(i,p=h()),o=g.createHref(i);c.replaceState(r,"",o),l&&d&&d({action:u,location:g.location,delta:0})},go:function(e){return c.go(e)}};return g}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(It||(It={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function Ft(e,t,n){void 0===n&&(n="/");var i=Jt(("string"==typeof t?Lt(t):t).pathname||"/",n);if(null==i)return null;var r=zt(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(r);for(var o=null,a=0;null==o&&a<r.length;++a)o=Yt(r[a],Qt(i));return o}function zt(e,t,n,i){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i="");var r=function(e,r,o){var a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};a.relativePath.startsWith("/")&&(kt(a.relativePath.startsWith(i),'Absolute route path "'+a.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(i.length));var s=nn([i,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(kt(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),zt(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:Xt(s,e.index),routesMeta:l})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var i,o=Et(_t(e.path));try{for(o.s();!(i=o.n()).done;){var a=i.value;r(e,t,a)}}catch(e){o.e(e)}finally{o.f()}}else r(e,t)})),t}function _t(e){var t=e.split("/");if(0===t.length)return[];var n,i=Ct(n=t)||At(n)||Tt(n)||xt(),r=i[0],o=i.slice(1),a=r.endsWith("?"),s=r.replace(/\?$/,"");if(0===o.length)return a?[s,""]:[s];var l=_t(o.join("/")),c=[];return c.push.apply(c,St(l.map((function(e){return""===e?s:[s,e].join("/")})))),a&&c.push.apply(c,St(l)),c.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var Ht=/^:\w+$/,Ut=3,Vt=2,Wt=1,Gt=10,qt=-2,Zt=function(e){return"*"===e};function Xt(e,t){var n=e.split("/"),i=n.length;return n.some(Zt)&&(i+=qt),t&&(i+=Vt),n.filter((function(e){return!Zt(e)})).reduce((function(e,t){return e+(Ht.test(t)?Ut:""===t?Wt:Gt)}),i)}function Yt(e,t){for(var n=e.routesMeta,i={},r="/",o=[],a=0;a<n.length;++a){var s=n[a],l=a===n.length-1,c="/"===r?t:t.slice(r.length)||"/",u=Kt({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c);if(!u)return null;Object.assign(i,u.params);var d=s.route;o.push({params:i,pathname:nn([r,u.pathname]),pathnameBase:rn(nn([r,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(r=nn([r,u.pathnameBase]))}return o}function Kt(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);Dt("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');var i=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(function(e,t){return i.push(t),"/([^\\/]+)"}));e.endsWith("*")?(i.push("*"),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))");var o=new RegExp(r,t?void 0:"i");return[o,i]}(e.path,e.caseSensitive,e.end),i=wt(n,2),r=i[0],o=i[1],a=t.match(r);if(!a)return null;var s=a[0],l=s.replace(/(.)\/+$/,"$1"),c=a.slice(1),u=o.reduce((function(e,t,n){if("*"===t){var i=c[n]||"";l=s.slice(0,s.length-i.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return Dt(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(c[n]||"",t),e}),{});return{params:u,pathname:s,pathnameBase:l,pattern:e}}function Qt(e){try{return decodeURI(e)}catch(t){return Dt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Jt(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&"/"!==i?null:e.slice(n)||"/"}function $t(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function en(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function tn(e,t,n,i){var r;void 0===i&&(i=!1),"string"==typeof e?r=Lt(e):(kt(!(r=Ot({},e)).pathname||!r.pathname.includes("?"),$t("?","pathname","search",r)),kt(!r.pathname||!r.pathname.includes("#"),$t("#","pathname","hash",r)),kt(!r.search||!r.search.includes("#"),$t("#","search","hash",r)));var o,a=""===e||""===r.pathname,s=a?"/":r.pathname;if(i||null==s)o=n;else{var l=t.length-1;if(s.startsWith("..")){for(var c=s.split("/");".."===c[0];)c.shift(),l-=1;r.pathname=c.join("/")}o=l>=0?t[l]:"/"}var u=function(e,t){void 0===t&&(t="/");var n="string"==typeof e?Lt(e):e,i=n.pathname,r=n.search,o=void 0===r?"":r,a=n.hash,s=void 0===a?"":a,l=i?i.startsWith("/")?i:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(i,t):t;return{pathname:l,search:on(o),hash:an(s)}}(r,o),d=s&&"/"!==s&&s.endsWith("/"),p=(a||"."===s)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!p||(u.pathname+="/"),u}var nn=function(e){return e.join("/").replace(/\/\/+/g,"/")},rn=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},on=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},an=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},sn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yt(e,t)}(n,e);var t=ft(n);function n(){return ht(this,n),t.apply(this,arguments)}return dt(n)}(mt(Error));function ln(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var cn=["post","put","patch","delete"],un=(new Set(cn),["get"].concat(cn));new Set(un),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;Symbol("deferred");function dn(e){return function(e){if(Array.isArray(e))return hn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pn(e)||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 pn(e,t){if(e){if("string"==typeof e)return hn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hn(e,t):void 0}}function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,vn(i.key),i)}}function gn(e,t,n){return t&&mn(e.prototype,t),n&&mn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vn(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function yn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bn(e,t)}function bn(e,t){return bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bn(e,t)}function wn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=xn(e);if(t){var r=xn(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function xn(e){return xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xn(e)}function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Cn.apply(this,arguments)}var En=e.createContext(null);var Sn=e.createContext(null);var Tn=e.createContext(null);var An=e.createContext(null);var Pn=e.createContext(null);var On=e.createContext({outlet:null,matches:[],isDataRoute:!1});var In=e.createContext(null);function Rn(){return null!=e.useContext(Pn)}function kn(){return Rn()||kt(!1),e.useContext(Pn).location}function Dn(t){e.useContext(An).static||e.useLayoutEffect(t)}function jn(){var t,n,i;return e.useContext(On).isDataRoute?(t=Un(Ln.UseNavigateStable).router,n=Wn(Bn.UseNavigateStable),i=e.useRef(!1),Dn((function(){i.current=!0})),e.useCallback((function(e,r){void 0===r&&(r={}),i.current&&("number"==typeof e?t.navigate(e):t.navigate(e,Cn({fromRouteId:n},r)))}),[t,n])):function(){Rn()||kt(!1);var t=e.useContext(An),n=t.basename,i=t.navigator,r=e.useContext(On).matches,o=kn().pathname,a=JSON.stringify(en(r).map((function(e){return e.pathnameBase}))),s=e.useRef(!1);Dn((function(){s.current=!0}));var l=e.useCallback((function(e,t){if(void 0===t&&(t={}),s.current)if("number"!=typeof e){var r=tn(e,JSON.parse(a),o,"path"===t.relative);"/"!==n&&(r.pathname="/"===r.pathname?n:nn([n,r.pathname])),(t.replace?i.replace:i.push)(r,t.state,t)}else i.go(e)}),[n,i,a,o]);return l}()}function Mn(t,n,i){Rn()||kt(!1);var r,o=e.useContext(An).navigator,a=e.useContext(On).matches,s=a[a.length-1],l=s?s.params:{},c=(s&&s.pathname,s?s.pathnameBase:"/"),u=(s&&s.route,kn());if(n){var d,p="string"==typeof n?Lt(n):n;"/"===c||(null==(d=p.pathname)?void 0:d.startsWith(c))||kt(!1),r=p}else r=u;var h=r.pathname||"/",f=Ft(t,{pathname:"/"===c?h:h.slice(c.length)||"/"});var m=Hn(f&&f.map((function(e){return Object.assign({},e,{params:Object.assign({},l,e.params),pathname:nn([c,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:nn([c,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),a,i);return n&&m?e.createElement(Pn.Provider,{value:{location:Cn({pathname:"/",search:"",hash:"",state:null,key:"default"},r),navigationType:ct.Pop}},m):m}function Nn(){var t=function(){var t,n=e.useContext(In),i=Vn(Bn.UseRouteError),r=Wn(Bn.UseRouteError);if(n)return n;return null==(t=i.errors)?void 0:t[r]}(),n=ln(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),i=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},n),i?e.createElement("pre",{style:o},i):null,null)}var Ln,Bn,Fn=e.createElement(Nn,null),zn=function(t){yn(i,t);var n=wn(i);function i(e){var t;return fn(this,i),(t=n.call(this,e)).state={location:e.location,revalidation:e.revalidation,error:e.error},t}return gn(i,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return this.state.error?e.createElement(On.Provider,{value:this.props.routeContext},e.createElement(In.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}}]),i}(e.Component);function _n(t){var n=t.routeContext,i=t.match,r=t.children,o=e.useContext(En);return o&&o.static&&o.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=i.route.id),e.createElement(On.Provider,{value:n},r)}function Hn(t,n,i){var r;if(void 0===n&&(n=[]),void 0===i&&(i=null),null==t){var o;if(null==(o=i)||!o.errors)return null;t=i.matches}var a=t,s=null==(r=i)?void 0:r.errors;if(null!=s){var l=a.findIndex((function(e){return e.route.id&&(null==s?void 0:s[e.route.id])}));l>=0||kt(!1),a=a.slice(0,Math.min(a.length,l+1))}return a.reduceRight((function(t,r,o){var l=r.route.id?null==s?void 0:s[r.route.id]:null,c=null;i&&(c=r.route.errorElement||Fn);var u=n.concat(a.slice(0,o+1)),d=function(){var n;return n=l?c:r.route.Component?e.createElement(r.route.Component,null):r.route.element?r.route.element:t,e.createElement(_n,{match:r,routeContext:{outlet:t,matches:u,isDataRoute:null!=i},children:n})};return i&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?e.createElement(zn,{location:i.location,revalidation:i.revalidation,component:c,error:l,children:d(),routeContext:{outlet:null,matches:u,isDataRoute:!0}}):d()}),null)}function Un(t){var n=e.useContext(En);return n||kt(!1),n}function Vn(t){var n=e.useContext(Sn);return n||kt(!1),n}function Wn(t){var n=function(t){var n=e.useContext(On);return n||kt(!1),n}(),i=n.matches[n.matches.length-1];return i.route.id||kt(!1),i.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(Ln||(Ln={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(Bn||(Bn={}));var Gn;function qn(t){var n=t.to,i=t.replace,r=t.state,o=t.relative;Rn()||kt(!1);var a=e.useContext(On).matches,s=kn().pathname,l=jn(),c=tn(n,en(a).map((function(e){return e.pathnameBase})),s,"path"===o),u=JSON.stringify(c);return e.useEffect((function(){return l(JSON.parse(u),{replace:i,state:r,relative:o})}),[l,u,o,i,r]),null}function Zn(e){kt(!1)}function Xn(t){var n=t.basename,i=void 0===n?"/":n,r=t.children,o=void 0===r?null:r,a=t.location,s=t.navigationType,l=void 0===s?ct.Pop:s,c=t.navigator,u=t.static,d=void 0!==u&&u;Rn()&&kt(!1);var p=i.replace(/^\/*/,"/"),h=e.useMemo((function(){return{basename:p,navigator:c,static:d}}),[p,c,d]);"string"==typeof a&&(a=Lt(a));var f=a,m=f.pathname,g=void 0===m?"/":m,v=f.search,y=void 0===v?"":v,b=f.hash,w=void 0===b?"":b,x=f.state,C=void 0===x?null:x,E=f.key,S=void 0===E?"default":E,T=e.useMemo((function(){var e=Jt(g,p);return null==e?null:{location:{pathname:e,search:y,hash:w,state:C,key:S},navigationType:l}}),[p,g,y,w,C,S,l]);return null==T?null:e.createElement(An.Provider,{value:h},e.createElement(Pn.Provider,{children:o,value:T}))}function Yn(e){var t=e.children,n=e.location;return Mn(Qn(t),n)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(Gn||(Gn={}));var Kn=new Promise((function(){}));e.Component;function Qn(t,n){void 0===n&&(n=[]);var i=[];return e.Children.forEach(t,(function(t,r){if(e.isValidElement(t)){var o=[].concat(dn(n),[r]);if(t.type!==e.Fragment){t.type!==Zn&&kt(!1),t.props.index&&t.props.children&&kt(!1);var a={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(a.children=Qn(t.props.children,o)),i.push(a)}else i.push.apply(i,Qn(t.props.children,o))}})),i}function Jn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||$n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $n(e,t){if(e){if("string"==typeof e)return ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ei(e,t):void 0}}function ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ti(t){var n,i=t.basename,r=t.children,o=t.window,a=e.useRef();null==a.current&&(a.current=(void 0===(n={window:o,v5Compat:!0})&&(n={}),Bt((function(e,t){var n=Lt(e.location.hash.substr(1)),i=n.pathname,r=void 0===i?"/":i,o=n.search,a=void 0===o?"":o,s=n.hash;return Mt("",{pathname:r,search:a,hash:void 0===s?"":s},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){var n=e.document.querySelector("base"),i="";if(n&&n.getAttribute("href")){var r=e.location.href,o=r.indexOf("#");i=-1===o?r:r.slice(0,o)}return i+"#"+("string"==typeof t?t:Nt(t))}),(function(e,t){Dt("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),n)));var s=a.current,l=Jn(e.useState({action:s.action,location:s.location}),2),c=l[0],u=l[1];return e.useLayoutEffect((function(){return s.listen(u)}),[s]),e.createElement(Xn,{basename:i,children:r,location:c.location,navigationType:c.action,navigator:s})}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;var ni,ii;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(ni||(ni={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(ii||(ii={}));function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function oi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){ai(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ai(e,t,n){return(t=li(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function si(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,li(i.key),i)}}function li(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function ci(e,t){return ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ci(e,t)}function ui(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=pi(e);if(t){var r=pi(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return di(e)}(this,n)}}function di(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pi(e){return pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pi(e)}var hi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ci(e,t)}(a,e);var n,i,r,o=ui(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this)).onDrag=function(e){if(t.dragging){var n=window.innerWidth-t.dividerWidth,i=e.clientX-t.dividerWidth/2,r=n-i;i>t.leftPaneMinWidth&&r>t.rightPaneMinWidth&&(t.splitFraction=0===n?0:i/n,t.updateUI()),t.updatePaneSize()}},t.onStartDrag=function(e){t.dragging=!0},t.onEndDrag=function(e){t.dragging=!1},t.onResize=function(e){t.updatePaneSize()},t.firstFolio=e.document.folios[0],t.rightPaneMinWidth=200,t.leftPaneMinWidth=200,t.splitFraction=.5,t.dividerWidth=16;var n=window.innerWidth,i=n/2/n,r=1-i;return t.state={style:{gridTemplateColumns:"".concat(i,"fr ").concat(t.dividerWidth,"px ").concat(r,"fr")}},t.dragging=!1,t.onDrag=t.onDrag.bind(di(t)),t.onResize=t.onResize.bind(di(t)),t.onEndDrag=t.onEndDrag.bind(di(t)),t.updatePaneSize=t.updatePaneSize.bind(di(t)),t.updatePaneSize=t.updatePaneSize.bind(di(t)),t}return n=a,(i=[{key:"updateUI",value:function(){var e=this.splitFraction,t=1-e;this.setState(oi(oi({},this.state),{},{style:oi(oi({},this.state.style),{},{gridTemplateColumns:"".concat(e,"fr ").concat(this.dividerWidth,"px ").concat(t,"fr")})}))}},{key:"updatePaneSize",value:function(){var e=Math.floor(Math.abs(window.innerWidth*this.splitFraction)),t=Math.floor(window.innerWidth*(1-this.splitFraction));this.props.onWidth&&e>=this.leftPaneMinWidth&&this.props.onWidth(e,t)}},{key:"componentDidMount",value:function(){if(this.updateUI(),window.addEventListener("mousemove",this.onDrag),window.addEventListener("mouseup",this.onEndDrag),window.addEventListener("resize",this.onResize),this.props.onWidth){var e=Math.floor(Math.abs(window.innerWidth*this.splitFraction)),t=Math.floor(window.innerWidth*(1-this.splitFraction));this.props.onWidth(e,t)}}},{key:"componentWillUnmount",value:function(){window.removeEventListener("mousemove",this.onDrag),window.removeEventListener("mouseup",this.onEndDrag),window.removeEventListener("resize",this.onResize)}},{key:"renderDivider",value:function(){return t().createElement("div",{className:"divider",onMouseDown:this.onStartDrag},t().createElement("div",{className:"drawer-button hidden",onClick:this.onDrawerButton},t().createElement("i",{className:"drawer-icon fas fa-caret-left fa-2x"}," ")))}},{key:"render",value:function(){return t().createElement("div",{className:"split-pane-view",style:oi({},this.state.style)},this.props.leftPane,this.renderDivider(),this.props.rightPane)}}])&&si(n.prototype,i),r&&si(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const fi=ot((function(e){return{document:e.document}}))(hi);function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mi(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vi(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var yi="function"==typeof Symbol&&Symbol.observable||"@@observable",bi=function(){return Math.random().toString(36).substring(7).split("").join(".")},wi={INIT:"@@redux/INIT"+bi(),REPLACE:"@@redux/REPLACE"+bi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+bi()}};function xi(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ci(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(vi(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(vi(1));return n(Ci)(e,t)}if("function"!=typeof e)throw new Error(vi(2));var r=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(vi(3));return o}function d(e){if("function"!=typeof e)throw new Error(vi(4));if(l)throw new Error(vi(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(vi(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!xi(e))throw new Error(vi(7));if(void 0===e.type)throw new Error(vi(8));if(l)throw new Error(vi(9));try{l=!0,o=r(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:wi.INIT}),(i={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(vi(10));r=e,p({type:wi.REPLACE})}})[yi]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(vi(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[yi]=function(){return this},e},i}function Ei(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var r=t[i];0,"function"==typeof e[r]&&(n[r]=e[r])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:wi.INIT}))throw new Error(vi(12));if(void 0===n(void 0,{type:wi.PROBE_UNKNOWN_ACTION()}))throw new Error(vi(13))}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var i=!1,r={},s=0;s<a.length;s++){var l=a[s],c=n[l],u=e[l],d=c(u,t);if(void 0===d){t&&t.type;throw new Error(vi(14))}r[l]=d,i=i||d!==u}return(i=i||a.length!==Object.keys(e).length)?r:e}}function Si(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Ti=function(e){return"@@redux-saga/"+e},Ai=Ti("CANCEL_PROMISE"),Pi=Ti("CHANNEL_END"),Oi=Ti("IO"),Ii=Ti("MATCH"),Ri=Ti("MULTICAST"),ki=Ti("SAGA_ACTION"),Di=Ti("SELF_CANCELLATION"),ji=Ti("TASK"),Mi=Ti("TASK_CANCEL"),Ni=Ti("TERMINATE"),Li=Ti("LOCATION"),Bi=function(e){return null==e},Fi=function(e){return null!=e},zi=function(e){return"function"==typeof e},_i=function(e){return"string"==typeof e},Hi=Array.isArray,Ui=function(e){return e&&zi(e.then)},Vi=function(e){return e&&zi(e.next)&&zi(e.throw)},Wi=function e(t){return t&&(_i(t)||Zi(t)||zi(t)||Hi(t)&&t.every(e))},Gi=function(e){return e&&zi(e.take)&&zi(e.close)},qi=function(e){return zi(e)&&e.hasOwnProperty("toString")},Zi=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},Xi=function(e){return Gi(e)&&e[Ri]};var Yi=function(e){return function(){return e}}(!0),Ki=function(){};var Qi=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var Ji=function(e,t){a(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function $i(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var er=function(e){throw e},tr=function(e){return{value:e,done:!0}};function nr(e,t,n){void 0===t&&(t=er),void 0===n&&(n="iterator");var i={meta:{name:n},next:e,throw:t,return:tr,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(i[Symbol.iterator]=function(){return i}),i}function ir(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var rr=function(e){return Array.apply(null,new Array(e))},or=function(e){return function(t){return e(Object.defineProperty(t,ki,{value:!0}))}},ar=function(e){return e===Ni},sr=function(e){return e===Mi},lr=function(e){return ar(e)||sr(e)};function cr(e,t){var n=Object.keys(e),i=n.length;var r,o=0,a=Hi(e)?rr(i):{},s={};return n.forEach((function(e){var n=function(n,s){r||(s||lr(n)?(t.cancel(),t(n,s)):(a[e]=n,++o===i&&(r=!0,t(a))))};n.cancel=Ki,s[e]=n})),t.cancel=function(){r||(r=!0,n.forEach((function(e){return s[e].cancel()})))},s}function ur(e){return{name:e.name||"anonymous",location:dr(e)}}function dr(e){return e[Li]}function pr(e,t){void 0===e&&(e=10);var n=new Array(e),i=0,r=0,o=0,a=function(t){n[r]=t,r=(r+1)%e,i++},s=function(){if(0!=i){var t=n[o];return n[o]=null,i--,o=(o+1)%e,t}},l=function(){for(var e=[];i;)e.push(s());return e};return{isEmpty:function(){return 0==i},put:function(s){var c;if(i<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[r]=s,o=r=(r+1)%e;break;case 4:c=2*e,n=l(),i=n.length,r=n.length,o=0,n.length=c,e=c,a(s)}},take:s,flush:l}}var hr=function(e){return pr(e,4)},fr="TAKE",mr="PUT",gr="ALL",vr="RACE",yr="CALL",br="CPS",wr="FORK",xr="JOIN",Cr="CANCEL",Er="SELECT",Sr="ACTION_CHANNEL",Tr="CANCELLED",Ar="FLUSH",Pr="GET_CONTEXT",Or="SET_CONTEXT",Ir=function(e,t){var n;return(n={})[Oi]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Rr(e,t){return void 0===e&&(e="*"),Wi(e)?(Fi(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Ir(fr,{pattern:e})):Xi(e)&&Fi(t)&&Wi(t)?Ir(fr,{channel:e,pattern:t}):Gi(e)?(Fi(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Ir(fr,{channel:e})):void 0}function kr(e,t){return Bi(t)&&(t=e,e=void 0),Ir(mr,{channel:e,action:t})}function Dr(e,t){var n,i=null;return zi(e)?n=e:(Hi(e)?(i=e[0],n=e[1]):(i=e.context,n=e.fn),i&&_i(n)&&zi(i[n])&&(n=i[n])),{context:i,fn:n,args:t}}function jr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Ir(wr,Dr(e,n))}function Mr(e){void 0===e&&(e=Qi);for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Ir(Er,{selector:e,args:n})}function Nr(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}const Lr=Nr;var Br=[],Fr=0;function zr(e){try{Ur(),e()}finally{Vr()}}function _r(e){Br.push(e),Fr||(Ur(),Wr())}function Hr(e){try{return Ur(),e()}finally{Wr()}}function Ur(){Fr++}function Vr(){Fr--}function Wr(){var e;for(Vr();!Fr&&void 0!==(e=Br.shift());)zr(e)}var Gr=function(e){return function(t){return e.some((function(e){return Kr(e)(t)}))}},qr=function(e){return function(t){return e(t)}},Zr=function(e){return function(t){return t.type===String(e)}},Xr=function(e){return function(t){return t.type===e}},Yr=function(){return Yi};function Kr(e){var t="*"===e?Yr:_i(e)?Zr:Hi(e)?Gr:qi(e)?Zr:zi(e)?qr:Zi(e)?Xr:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var Qr={type:Pi},Jr=function(e){return e&&e.type===Pi};function $r(e){void 0===e&&(e=hr());var t=!1,n=[];return{take:function(i){t&&e.isEmpty()?i(Qr):e.isEmpty()?(n.push(i),i.cancel=function(){$i(n,i)}):i(e.take())},put:function(i){if(!t){if(0===n.length)return e.put(i);n.shift()(i)}},flush:function(n){t&&e.isEmpty()?n(Qr):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var i=0,r=e.length;i<r;i++){(0,e[i])(Qr)}}}}}function eo(){var e=function(){var e,t=!1,n=[],i=n,r=function(){i===n&&(i=n.slice())},o=function(){t=!0;var e=n=i;i=[],e.forEach((function(e){e(Qr)}))};return(e={})[Ri]=!0,e.put=function(e){if(!t)if(Jr(e))o();else for(var r=n=i,a=0,s=r.length;a<s;a++){var l=r[a];l[Ii](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=Yr),t?e(Qr):(e[Ii]=n,r(),i.push(e),e.cancel=function(e){var t=!1;return function(){t||(t=!0,e())}}((function(){r(),$i(i,e)})))},e.close=o,e}(),t=e.put;return e.put=function(e){e[ki]?t(e):_r((function(){t(e)}))},e}var to=0,no=1,io=2,ro=3;function oo(e,t){var n=e[Ai];zi(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var ao,so=0,lo=function(){return++so};function co(e){e.isRunning()&&e.cancel()}var uo=((ao={})[fr]=function(e,t,n){var i=t.channel,r=void 0===i?e.channel:i,o=t.pattern,a=t.maybe,s=function(e){e instanceof Error?n(e,!0):!Jr(e)||a?n(e):n(Ni)};try{r.take(s,Fi(o)?Kr(o):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},ao[mr]=function(e,t,n){var i=t.channel,r=t.action,o=t.resolve;_r((function(){var t;try{t=(i?i.put:e.dispatch)(r)}catch(e){return void n(e,!0)}o&&Ui(t)?oo(t,n):n(t)}))},ao[gr]=function(e,t,n,i){var r=i.digestEffect,o=so,a=Object.keys(t);if(0!==a.length){var s=cr(t,n);a.forEach((function(e){r(t[e],o,s[e],e)}))}else n(Hi(t)?[]:{})},ao[vr]=function(e,t,n,i){var r=i.digestEffect,o=so,a=Object.keys(t),s=Hi(t)?rr(a.length):{},l={},c=!1;a.forEach((function(e){var t=function(t,i){c||(i||lr(t)?(n.cancel(),n(t,i)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=Ki,l[e]=t})),n.cancel=function(){c||(c=!0,a.forEach((function(e){return l[e].cancel()})))},a.forEach((function(e){c||r(t[e],o,l[e],e)}))},ao[yr]=function(e,t,n,i){var r=t.context,o=t.fn,a=t.args,s=i.task;try{var l=o.apply(r,a);if(Ui(l))return void oo(l,n);if(Vi(l))return void Co(e,l,s.context,so,ur(o),!1,n);n(l)}catch(e){n(e,!0)}},ao[br]=function(e,t,n){var i=t.context,r=t.fn,o=t.args;try{var a=function(e,t){Bi(e)?n(t):n(e,!0)};r.apply(i,o.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},ao[wr]=function(e,t,n,i){var r=t.context,o=t.fn,a=t.args,s=t.detached,l=i.task,c=function(e){var t=e.context,n=e.fn,i=e.args;try{var r=n.apply(t,i);if(Vi(r))return r;var o=!1;return nr((function(e){return o?{value:e,done:!0}:(o=!0,{value:r,done:!Ui(r)})}))}catch(e){return nr((function(){throw e}))}}({context:r,fn:o,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:ur(t)}(c,o);Hr((function(){var t=Co(e,c,l.context,so,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},ao[xr]=function(e,t,n,i){var r=i.task,o=function(e,t){if(e.isRunning()){var n={task:r,cb:t};t.cancel=function(){e.isRunning()&&$i(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(Hi(t)){if(0===t.length)return void n([]);var a=cr(t,n);t.forEach((function(e,t){o(e,a[t])}))}else o(t,n)},ao[Cr]=function(e,t,n,i){var r=i.task;t===Di?co(r):Hi(t)?t.forEach(co):co(t),n()},ao[Er]=function(e,t,n){var i=t.selector,r=t.args;try{n(i.apply(void 0,[e.getState()].concat(r)))}catch(e){n(e,!0)}},ao[Sr]=function(e,t,n){var i=t.pattern,r=$r(t.buffer),o=Kr(i),a=function t(n){Jr(n)||e.channel.take(t,o),r.put(n)},s=r.close;r.close=function(){a.cancel(),s()},e.channel.take(a,o),n(r)},ao[Tr]=function(e,t,n,i){n(i.task.isCancelled())},ao[Ar]=function(e,t,n){t.flush(n)},ao[Pr]=function(e,t,n,i){n(i.task.context[t])},ao[Or]=function(e,t,n,i){var r=i.task;Ji(r.context,t),n()},ao);function po(e,t){return e+"?"+t}function ho(e){var t=e.name,n=e.location;return n?t+" "+po(n.fileName,n.lineNumber):t}function fo(e){var t=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))}((function(e){return e.cancelledTasks}),e);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}var mo=null,go=[],vo=function(e){e.crashedEffect=mo,go.push(e)},yo=function(){mo=null,go.length=0},bo=function(e){mo=e},wo=function(){var e=go[0],t=go.slice(1),n=e.crashedEffect?function(e){var t=dr(e);return t?t.code+" "+po(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+ho(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+ho(e.meta)})),[fo(go)]).join("\n")};function xo(e,t,n,i,r,o,a){var s;void 0===a&&(a=Ki);var l,c,u=to,d=null,p=[],h=Object.create(n),f=function(e,t,n){var i,r=[],o=!1;function a(e){t(),l(),n(e,!0)}function s(t){r.push(t),t.cont=function(s,l){o||($i(r,t),t.cont=Ki,l?a(s):(t===e&&(i=s),r.length||(o=!0,n(i))))}}function l(){o||(o=!0,r.forEach((function(e){e.cont=Ki,e.cancel()})),r=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return r}}}(t,(function(){p.push.apply(p,f.getTasks().map((function(e){return e.meta.name})))}),m);function m(t,n){if(n){if(u=io,vo({meta:r,cancelledTasks:p}),g.isRoot){var i=wo();yo(),e.onError(t,{sagaStack:i})}c=t,d&&d.reject(t)}else t===Mi?u=no:u!==no&&(u=ro),l=t,d&&d.resolve(t);g.cont(t,n),g.joiners.forEach((function(e){e.cb(t,n)})),g.joiners=null}var g=((s={})[ji]=!0,s.id=i,s.meta=r,s.isRoot=o,s.context=h,s.joiners=[],s.queue=f,s.cancel=function(){u===to&&(u=no,f.cancelAll(),m(Mi,!1))},s.cont=a,s.end=m,s.setContext=function(e){Ji(h,e)},s.toPromise=function(){return d||(d=Lr(),u===io?d.reject(c):u!==to&&d.resolve(l)),d.promise},s.isRunning=function(){return u===to},s.isCancelled=function(){return u===no||u===to&&t.status===no},s.isAborted=function(){return u===io},s.result=function(){return l},s.error=function(){return c},s);return g}function Co(e,t,n,i,r,o,a){var s=e.finalizeRunEffect((function(t,n,i){if(Ui(t))oo(t,i);else if(Vi(t))Co(e,t,c.context,n,r,!1,i);else if(t&&t[Oi]){(0,uo[t.type])(e,t.payload,i,u)}else i(t)}));d.cancel=Ki;var l={meta:r,cancel:function(){l.status===to&&(l.status=no,d(Mi))},status:to},c=xo(e,l,n,i,r,o,a),u={task:c,digestEffect:p};return a&&(a.cancel=c.cancel),d(),c;function d(e,n){try{var r;n?(r=t.throw(e),yo()):sr(e)?(l.status=no,d.cancel(),r=zi(t.return)?t.return(Mi):{done:!0,value:Mi}):r=ar(e)?zi(t.return)?t.return():{done:!0}:t.next(e),r.done?(l.status!==no&&(l.status=ro),l.cont(r.value)):p(r.value,i,d)}catch(e){if(l.status===no)throw e;l.status=io,l.cont(e,!0)}}function p(t,n,i,r){void 0===r&&(r="");var o,a=lo();function l(n,r){o||(o=!0,i.cancel=Ki,e.sagaMonitor&&(r?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),r&&bo(t),i(n,r))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:r,effect:t}),l.cancel=Ki,i.cancel=function(){o||(o=!0,l.cancel(),l.cancel=Ki,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function Eo(e,t){var n=e.channel,i=void 0===n?eo():n,r=e.dispatch,o=e.getState,a=e.context,s=void 0===a?{}:a,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,d=void 0===u?ir:u;for(var p=arguments.length,h=new Array(p>2?p-2:0),f=2;f<p;f++)h[f-2]=arguments[f];var m=t.apply(void 0,h);var g,v=lo();if(l&&(l.rootSagaStarted=l.rootSagaStarted||Ki,l.effectTriggered=l.effectTriggered||Ki,l.effectResolved=l.effectResolved||Ki,l.effectRejected=l.effectRejected||Ki,l.effectCancelled=l.effectCancelled||Ki,l.actionDispatched=l.actionDispatched||Ki,l.rootSagaStarted({effectId:v,saga:t,args:h})),c){var y=Si.apply(void 0,c);g=function(e){return function(t,n,i){return y((function(t){return e(t,n,i)}))(t)}}}else g=Qi;var b={channel:i,dispatch:or(r),getState:o,sagaMonitor:l,onError:d,finalizeRunEffect:g};return Hr((function(){var e=Co(b,m,s,v,ur(t),!0,void 0);return l&&l.effectResolved(v,e),e}))}const So=function(e){var t,i=void 0===e?{}:e,r=i.context,o=void 0===r?{}:r,s=i.channel,l=void 0===s?eo():s,c=i.sagaMonitor,u=n(i,["context","channel","sagaMonitor"]);function d(e){var n=e.getState,i=e.dispatch;return t=Eo.bind(null,a({},u,{context:o,channel:l,dispatch:i,getState:n,sagaMonitor:c})),function(e){return function(t){c&&c.actionDispatched&&c.actionDispatched(t);var n=e(t);return l.put(t),n}}}return d.run=function(){return t.apply(void 0,arguments)},d.setContext=function(e){Ji(o,e)},d},To=So;var Ao=function(e){return{done:!0,value:e}},Po={};function Oo(e){return Gi(e)?"channel":qi(e)?String(e):zi(e)?e.name:String(e)}function Io(e,t,n){var i,r,o,a=t;function s(t,n){if(a===Po)return Ao(t);if(n&&!r)throw a=Po,n;i&&i(t);var s=n?e[r](n):e[a]();return a=s.nextState,o=s.effect,i=s.stateUpdater,r=s.errorState,a===Po?Ao(t):o}return nr(s,(function(e){return s(null,e)}),n)}function Ro(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o,a={done:!1,value:Rr(e)},s=function(e){return o=e};return Io({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=o,{done:!1,value:jr.apply(void 0,[t].concat(i,[e]))})};var e}},"q1","takeEvery("+Oo(e)+", "+t.name+")")}function ko(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return jr.apply(void 0,[Ro,e,t].concat(i))}function Do(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Do(Object(n),!0).forEach((function(t){Mo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Do(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var No={loadGlossary:function(e,t){return jo(jo({},e),{},{loaded:!0,glossary:t})}};const Lo=No;function Bo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Fo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach((function(t){Ho(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ho(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uo={},Vo="https://github.com/cu-mkp/editioncrafter-project/text-partial-resource.md";function Wo(e){throw new Error("IIIF manifest parser error: ".concat(e))}function Go(e){var t,n=Bo(e.items);try{for(n.s();!(t=n.n()).done;){var i=t.value;"AnnotationPage"!==i.type&&Wo("Expected AnnotationPage in items property of ".concat(e.id)),i.items||Wo("Expected items property in AnnotationPage ".concat(i.id));var r,o=Bo(i.items);try{for(o.s();!(r=o.n()).done;){var a=r.value;if("Annotation"!==a.type&&Wo("Expected Annotation in items property of ".concat(i.id)),"painting"===a.motivation){a.body||Wo("Expected body property in Annotation ".concat(a.id)),a.body.thumbnail||Wo("Expected body.thumbnail property in Annotation ".concat(a.id));var s=a.body.thumbnail[0].id;return s||Wo("Unable to find thumbnail for resource: ".concat(a.body.id)),{imageURL:"".concat(a.body.id,"/info.json"),thumbnailURL:s}}}}catch(e){o.e(e)}finally{o.f()}}}catch(e){n.e(e)}finally{n.f()}return Wo("Unable to find painting Annotation for canvas: ".concat(e.id)),null}function qo(e){return e.label?e.label.none[0]:(t="".concat(e.id," does not have a label property."),console.warn("IIIF manifest parser warning: ".concat(t)),"");var t}function Zo(e,t){var n={};if(e.annotations){var i,r=Bo(e.annotations);try{for(r.s();!(i=r.n()).done;){var o=i.value;"AnnotationPage"!==o.type&&Wo("Expected AnnotationPage in annotations property of ".concat(e.id)),o.items||Wo("Expected items property in AnnotationPage ".concat(o.id));var a,s=Bo(o.items);try{for(s.s();!(a=s.n()).done;){var l=a.value;if("Annotation"!==l.type&&Wo("Expected Annotation in items property of ".concat(o.id)),"supplementing"===l.motivation){l.body||Wo("Expected body property in Annotation ".concat(l.id));var c=l.body;if(c.profile===Vo&&"TextPartial"===c.type){c.id||Wo("Expected id property in TextPartial in ".concat(l.id)),c.format||Wo("Expected format property in TextPartial in ".concat(l.id));var u=c.id,d=c.format,p=u.split("/");p.length<5&&Wo("TextPartial id property is in the wrong format: ".concat(u));var h=p[p.length-2];t[h]&&(n[h]||(n[h]={}),"text/html"===d&&(n[h].htmlURL=u),"text/xml"===d&&(n[h].xmlURL=u))}}}}catch(e){s.e(e)}finally{s.f()}}}catch(e){r.e(e)}finally{r.f()}}return n}Uo.loadDocument=function(e,t){var n=function(e,t){var n=[];e["@context"]&&e["@context"].includes("http://iiif.io/api/presentation/3/context.json")||Wo("Expected root object to have a @context containing: http://iiif.io/api/presentation/3/context.json");"Manifest"!==e.type&&Wo("Expected root object of type 'Manifest'.");e.items||Wo("Expected manifest to have an items property.");for(var i=e.items,r=0;r<i.length;r++){var o=i[r];"Canvas"!==o.type&&Wo("Expected items[".concat(r,"] to be of type 'Canvas'.")),o.id||Wo("Expected items[".concat(r,"] to have an id property."));var a=o.id.substr(o.id.lastIndexOf("/")+1),s=qo(o),l=Go(o),c={id:a,name:s,pageNumber:r,image_zoom_url:l.imageURL,image_thumbnail_url:l.thumbnailURL,annotationURLs:Zo(o,t)};n.push(c)}return n}(t,e.transcriptionTypes),i=function(e){for(var t={},n={},i=0;i<e.length;i++){var r=e[i];t[r.id]=r,n[r.name]=r}return{folioIndex:t,folioByName:n}}(n),r=i.folioIndex,o=i.folioByName;return _o(_o({},e),{},{loaded:!0,folios:n,folioIndex:r,folioByName:o})},Uo.loadFolio=function(e,t){var n=e.folioIndex[t.id],i=e.folios.indexOf(n);return e.folios[i]=t,e.folioIndex[t.id]=t,e.folioByName[t.name]=t,_o({},e)};const Xo=Uo;function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yo(Object(n),!0).forEach((function(t){Qo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jo={setFixedFrameMode:function(e,t){return Ko(Ko({},e),{},{fixedFrameMode:t})}};const $o=Jo,ea={fixedFrameMode:!1};function ta(e){return{glossaryURL:e,glossary:{},loaded:!1}}function na(e,t,n){return{documentName:t,manifestURL:e,transcriptionTypes:n,folios:[],loaded:!1,folioIndex:{},folioByName:{}}}function ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(n),!0).forEach((function(t){oa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oa(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aa={loadComments:function(e,t){return ra(ra({},e),{},{loaded:!0,comments:t})}};const sa=aa;function la(e){return{commentsURL:e,comments:{},loaded:!1}}function ca(e,t){return function(){return e.apply(t,arguments)}}var ua=Object.prototype.toString,da=Object.getPrototypeOf,pa=function(e){return function(t){var n=ua.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null)),ha=function(e){return e=e.toLowerCase(),function(t){return pa(t)===e}},fa=function(e){return function(t){return typeof t===e}},ma=Array.isArray,ga=fa("undefined");var va=ha("ArrayBuffer");var ya=fa("string"),ba=fa("function"),wa=fa("number"),xa=function(e){return null!==e&&"object"==typeof e},Ca=function(e){if("object"!==pa(e))return!1;var t=da(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Ea=ha("Date"),Sa=ha("File"),Ta=ha("Blob"),Aa=ha("FileList"),Pa=ha("URLSearchParams");function Oa(e,t){var n,i,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,o=void 0!==r&&r;if(null!=e)if("object"!=typeof e&&(e=[e]),ma(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{var a,s=o?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;for(n=0;n<l;n++)a=s[n],t.call(null,e[a],a,e)}}function Ia(e,t){t=t.toLowerCase();for(var n,i=Object.keys(e),r=i.length;r-- >0;)if(t===(n=i[r]).toLowerCase())return n;return null}var Ra="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ka=function(e){return!ga(e)&&e!==Ra};var Da,ja,Ma=(Da="undefined"!=typeof Uint8Array&&da(Uint8Array),function(e){return Da&&e instanceof Da}),Na=ha("HTMLFormElement"),La=(ja=Object.prototype.hasOwnProperty,function(e,t){return ja.call(e,t)}),Ba=ha("RegExp"),Fa=function(e,t){var n=Object.getOwnPropertyDescriptors(e),i={};Oa(n,(function(n,r){!1!==t(n,r,e)&&(i[r]=n)})),Object.defineProperties(e,i)},za="abcdefghijklmnopqrstuvwxyz",_a="0123456789",Ha={DIGIT:_a,ALPHA:za,ALPHA_DIGIT:za+za.toUpperCase()+_a};var Ua=ha("AsyncFunction");const Va={isArray:ma,isArrayBuffer:va,isBuffer:function(e){return null!==e&&!ga(e)&&null!==e.constructor&&!ga(e.constructor)&&ba(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"==typeof FormData&&e instanceof FormData||ba(e.append)&&("formdata"===(t=pa(e))||"object"===t&&ba(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&va(e.buffer)},isString:ya,isNumber:wa,isBoolean:function(e){return!0===e||!1===e},isObject:xa,isPlainObject:Ca,isUndefined:ga,isDate:Ea,isFile:Sa,isBlob:Ta,isRegExp:Ba,isFunction:ba,isStream:function(e){return xa(e)&&ba(e.pipe)},isURLSearchParams:Pa,isTypedArray:Ma,isFileList:Aa,forEach:Oa,merge:function e(){for(var t=(ka(this)&&this||{}).caseless,n={},i=function(i,r){var o=t&&Ia(n,r)||r;Ca(n[o])&&Ca(i)?n[o]=e(n[o],i):Ca(i)?n[o]=e({},i):ma(i)?n[o]=i.slice():n[o]=i},r=0,o=arguments.length;r<o;r++)arguments[r]&&Oa(arguments[r],i);return n},extend:function(e,t,n){return Oa(t,(function(t,i){n&&ba(t)?e[i]=ca(t,n):e[i]=t}),{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,i){var r,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a=r[o],i&&!i(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&da(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:pa,kindOfTest:ha,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n},toArray:function(e){if(!e)return null;if(ma(e))return e;var t=e.length;if(!wa(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,i=(e&&e[Symbol.iterator]).call(e);(n=i.next())&&!n.done;){var r=n.value;t.call(e,r[0],r[1])}},matchAll:function(e,t){for(var n,i=[];null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:Na,hasOwnProperty:La,hasOwnProp:La,reduceDescriptors:Fa,freezeMethods:function(e){Fa(e,(function(t,n){if(ba(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var i=e[n];ba(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},i=function(e){e.forEach((function(e){n[e]=!0}))};return ma(e)?i(e):i(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t},findKey:Ia,global:Ra,isContextDefined:ka,ALPHABET:Ha,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ha.ALPHA_DIGIT,n="",i=t.length;e--;)n+=t[Math.random()*i|0];return n},isSpecCompliantForm:function(e){return!!(e&&ba(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(n,i){if(xa(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;var r=ma(n)?[]:{};return Oa(n,(function(t,n){var o=e(t,i+1);!ga(o)&&(r[n]=o)})),t[i]=void 0,r}}return n}(e,0)},isAsyncFn:Ua,isThenable:function(e){return e&&(xa(e)||ba(e))&&ba(e.then)&&ba(e.catch)}};function Wa(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}Va.inherits(Wa,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Va.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Ga=Wa.prototype,qa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){qa[e]={value:e}})),Object.defineProperties(Wa,qa),Object.defineProperty(Ga,"isAxiosError",{value:!0}),Wa.from=function(e,t,n,i,r,o){var a=Object.create(Ga);return Va.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),Wa.call(a,e.message,t,n,i,r),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Za=Wa;function Xa(e){return Va.isPlainObject(e)||Va.isArray(e)}function Ya(e){return Va.endsWith(e,"[]")?e.slice(0,-2):e}function Ka(e,t,n){return e?e.concat(t).map((function(e,t){return e=Ya(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var Qa=Va.toFlatObject(Va,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Ja=function(e,t,n){if(!Va.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var i=(n=Va.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Va.isUndefined(t[e])}))).metaTokens,r=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Va.isSpecCompliantForm(t);if(!Va.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Va.isDate(e))return e.toISOString();if(!s&&Va.isBlob(e))throw new Za("Blob is not supported. Use a Buffer instead.");return Va.isArrayBuffer(e)||Va.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){var s=e;if(e&&!r&&"object"==typeof e)if(Va.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(Va.isArray(e)&&function(e){return Va.isArray(e)&&!e.some(Xa)}(e)||(Va.isFileList(e)||Va.endsWith(n,"[]"))&&(s=Va.toArray(e)))return n=Ya(n),s.forEach((function(e,i){!Va.isUndefined(e)&&null!==e&&t.append(!0===a?Ka([n],i,o):null===a?n:n+"[]",l(e))})),!1;return!!Xa(e)||(t.append(Ka(r,n,o),l(e)),!1)}var u=[],d=Object.assign(Qa,{defaultVisitor:c,convertValue:l,isVisitable:Xa});if(!Va.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!Va.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+i.join("."));u.push(n),Va.forEach(n,(function(n,o){!0===(!(Va.isUndefined(n)||null===n)&&r.call(t,n,Va.isString(o)?o.trim():o,i,d))&&e(n,i?i.concat(o):[o])})),u.pop()}}(e),t};function $a(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function es(e,t){this._pairs=[],e&&Ja(e,this,t)}var ts=es.prototype;ts.append=function(e,t){this._pairs.push([e,t])},ts.toString=function(e){var t=e?function(t){return e.call(this,t,$a)}:$a;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ns=es;function is(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rs(e,t,n){if(!t)return e;var i,r=n&&n.encode||is,o=n&&n.serialize;if(i=o?o(t,n):Va.isURLSearchParams(t)?t.toString():new ns(t,n).toString(r)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}function os(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,as(i.key),i)}}function as(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var ss=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.handlers=[]}var t,n,i;return t=e,n=[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){Va.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}],n&&os(t.prototype,n),i&&os(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();const ls=ss,cs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var us;const ds={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ns,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:("undefined"==typeof navigator||"ReactNative"!==(us=navigator.product)&&"NativeScript"!==us&&"NS"!==us)&&"undefined"!=typeof window&&"undefined"!=typeof document,isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};const ps=function(e){function t(e,n,i,r){var o=e[r++],a=Number.isFinite(+o),s=r>=e.length;return o=!o&&Va.isArray(i)?i.length:o,s?(Va.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):(i[o]&&Va.isObject(i[o])||(i[o]=[]),t(e,n,i[o],r)&&Va.isArray(i[o])&&(i[o]=function(e){var t,n,i={},r=Object.keys(e),o=r.length;for(t=0;t<o;t++)i[n=r[t]]=e[n];return i}(i[o])),!a)}if(Va.isFormData(e)&&Va.isFunction(e.entries)){var n={};return Va.forEachEntry(e,(function(e,i){t(function(e){return Va.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),i,n,0)})),n}return null};var hs={"Content-Type":void 0};var fs={transitional:cs,adapter:["xhr","http"],transformRequest:[function(e,t){var n,i=t.getContentType()||"",r=i.indexOf("application/json")>-1,o=Va.isObject(e);if(o&&Va.isHTMLForm(e)&&(e=new FormData(e)),Va.isFormData(e))return r&&r?JSON.stringify(ps(e)):e;if(Va.isArrayBuffer(e)||Va.isBuffer(e)||Va.isStream(e)||Va.isFile(e)||Va.isBlob(e))return e;if(Va.isArrayBufferView(e))return e.buffer;if(Va.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ja(e,new ds.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return ds.isNode&&Va.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=Va.isFileList(e))||i.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return Ja(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Va.isString(e))try{return(t||JSON.parse)(e),Va.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||fs.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&Va.isString(e)&&(n&&!this.responseType||i)){var r=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw Za.from(e,Za.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ds.classes.FormData,Blob:ds.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Va.forEach(["delete","get","head"],(function(e){fs.headers[e]={}})),Va.forEach(["post","put","patch"],(function(e){fs.headers[e]=Va.merge(hs)}));const ms=fs;var gs=Va.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);function vs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ys(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ys(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ys(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function bs(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ws(i.key),i)}}function ws(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var xs=Symbol("internals");function Cs(e){return e&&String(e).trim().toLowerCase()}function Es(e){return!1===e||null==e?e:Va.isArray(e)?e.map(Es):String(e)}function Ss(e,t,n,i,r){return Va.isFunction(i)?i.call(this,t,n):(r&&(t=n),Va.isString(t)?Va.isString(i)?-1!==t.indexOf(i):Va.isRegExp(i)?i.test(t):void 0:void 0)}var Ts=function(e,t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),e&&this.set(e)}var i,r,o;return i=n,r=[{key:"set",value:function(e,t,n){var i=this;function r(e,t,n){var r=Cs(t);if(!r)throw new Error("header name must be a non-empty string");var o=Va.findKey(i,r);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=Es(e))}var o=function(e,t){return Va.forEach(e,(function(e,n){return r(e,n,t)}))};return Va.isPlainObject(e)||e instanceof this.constructor?o(e,t):Va.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o(function(e){var t,n,i,r={};return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),t=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!t||r[t]&&gs[t]||("set-cookie"===t?r[t]?r[t].push(n):r[t]=[n]:r[t]=r[t]?r[t]+", "+n:n)})),r}(e),t):null!=e&&r(t,e,n),this}},{key:"get",value:function(e,t){if(e=Cs(e)){var n=Va.findKey(this,e);if(n){var i=this[n];if(!t)return i;if(!0===t)return function(e){for(var t,n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=i.exec(e);)n[t[1]]=t[2];return n}(i);if(Va.isFunction(t))return t.call(this,i,n);if(Va.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=Cs(e)){var n=Va.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ss(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,i=!1;function r(e){if(e=Cs(e)){var r=Va.findKey(n,e);!r||t&&!Ss(0,n[r],r,t)||(delete n[r],i=!0)}}return Va.isArray(e)?e.forEach(r):r(e),i}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,i=!1;n--;){var r=t[n];e&&!Ss(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}},{key:"normalize",value:function(e){var t=this,n={};return Va.forEach(this,(function(i,r){var o=Va.findKey(n,r);if(o)return t[o]=Es(i),void delete t[r];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(r):String(r).trim();a!==r&&delete t[r],t[a]=Es(i),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return Va.forEach(this,(function(n,i){null!=n&&!1!==n&&(t[i]=e&&Va.isArray(n)?n.join(", "):n)})),t}},{key:e,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=vs(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:t,get:function(){return"AxiosHeaders"}}],o=[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return i.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[xs]=this[xs]={accessors:{}}).accessors,n=this.prototype;function i(e){var i=Cs(e);t[i]||(function(e,t){var n=Va.toCamelCase(" "+t);["get","set","has"].forEach((function(i){Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[i]=!0)}return Va.isArray(e)?e.forEach(i):i(e),this}}],r&&bs(i.prototype,r),o&&bs(i,o),Object.defineProperty(i,"prototype",{writable:!1}),n}(Symbol.iterator,Symbol.toStringTag);Ts.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Va.freezeMethods(Ts.prototype),Va.freezeMethods(Ts);const As=Ts;function Ps(e,t){var n=this||ms,i=t||n,r=As.from(i.headers),o=i.data;return Va.forEach(e,(function(e){o=e.call(n,o,r.normalize(),t?t.status:void 0)})),r.normalize(),o}function Os(e){return!(!e||!e.__CANCEL__)}function Is(e,t,n){Za.call(this,null==e?"canceled":e,Za.ERR_CANCELED,t,n),this.name="CanceledError"}Va.inherits(Is,Za,{__CANCEL__:!0});const Rs=Is;const ks=ds.isStandardBrowserEnv?{write:function(e,t,n,i,r,o){var a=[];a.push(e+"="+encodeURIComponent(t)),Va.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Va.isString(i)&&a.push("path="+i),Va.isString(r)&&a.push("domain="+r),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Ds(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const js=ds.isStandardBrowserEnv?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=Va.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};const Ms=function(e,t){e=e||10;var n,i=new Array(e),r=new Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){var l=Date.now(),c=r[a];n||(n=l),i[o]=s,r[o]=l;for(var u=a,d=0;u!==o;)d+=i[u++],u%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),!(l-n<t)){var p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}};function Ns(e,t){var n=0,i=Ms(50,250);return function(r){var o=r.loaded,a=r.lengthComputable?r.total:void 0,s=o-n,l=i(s);n=o;var c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:r};c[t?"download":"upload"]=!0,e(c)}}const Ls="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var i,r=e.data,o=As.from(e.headers).normalize(),a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}Va.isFormData(r)&&(ds.isStandardBrowserEnv||ds.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));var l=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(c+":"+u))}var d=Ds(e.baseURL,e.url);function p(){if(l){var i=As.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new Za("Request failed with status code "+n.status,[Za.ERR_BAD_REQUEST,Za.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:i,config:e,request:l}),l=null}}if(l.open(e.method.toUpperCase(),rs(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=p:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(p)},l.onabort=function(){l&&(n(new Za("Request aborted",Za.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new Za("Network Error",Za.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||cs;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Za(t,i.clarifyTimeoutError?Za.ETIMEDOUT:Za.ECONNABORTED,e,l)),l=null},ds.isStandardBrowserEnv){var h=(e.withCredentials||js(d))&&e.xsrfCookieName&&ks.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&Va.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),Va.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",Ns(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Ns(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=function(t){l&&(n(!t||t.type?new Rs(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));var f,m=(f=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d))&&f[1]||"";m&&-1===ds.protocols.indexOf(m)?n(new Za("Unsupported protocol "+m+":",Za.ERR_BAD_REQUEST,e)):l.send(r||null)}))};var Bs={http:null,xhr:Ls};Va.forEach(Bs,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Fs=function(e){for(var t,n,i=(e=Va.isArray(e)?e:[e]).length,r=0;r<i&&(t=e[r],!(n=Va.isString(t)?Bs[t.toLowerCase()]:t));r++);if(!n){if(!1===n)throw new Za("Adapter ".concat(t," is not supported by the environment"),"ERR_NOT_SUPPORT");throw new Error(Va.hasOwnProp(Bs,t)?"Adapter '".concat(t,"' is not available in the build"):"Unknown adapter '".concat(t,"'"))}if(!Va.isFunction(n))throw new TypeError("adapter is not a function");return n};function zs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rs(null,e)}function _s(e){return zs(e),e.headers=As.from(e.headers),e.data=Ps.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Fs(e.adapter||ms.adapter)(e).then((function(t){return zs(e),t.data=Ps.call(e,e.transformResponse,t),t.headers=As.from(t.headers),t}),(function(t){return Os(t)||(zs(e),t&&t.response&&(t.response.data=Ps.call(e,e.transformResponse,t.response),t.response.headers=As.from(t.response.headers))),Promise.reject(t)}))}var Hs=function(e){return e instanceof As?e.toJSON():e};function Us(e,t){t=t||{};var n={};function i(e,t,n){return Va.isPlainObject(e)&&Va.isPlainObject(t)?Va.merge.call({caseless:n},e,t):Va.isPlainObject(t)?Va.merge({},t):Va.isArray(t)?t.slice():t}function r(e,t,n){return Va.isUndefined(t)?Va.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function o(e,t){if(!Va.isUndefined(t))return i(void 0,t)}function a(e,t){return Va.isUndefined(t)?Va.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,r,o){return o in t?i(n,r):o in e?i(void 0,n):void 0}var l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t){return r(Hs(e),Hs(t),!0)}};return Va.forEach(Object.keys(Object.assign({},e,t)),(function(i){var o=l[i]||r,a=o(e[i],t[i],i);Va.isUndefined(a)&&o!==s||(n[i]=a)})),n}var Vs="1.4.0",Ws={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Ws[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Gs={};Ws.transitional=function(e,t,n){function i(e,t){return"[Axios v1.4.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new Za(i(r," has been removed"+(t?" in "+t:"")),Za.ERR_DEPRECATED);return t&&!Gs[r]&&(Gs[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}};const qs={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Za("options must be an object",Za.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),r=i.length;r-- >0;){var o=i[r],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new Za("option "+o+" must be "+l,Za.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Za("Unknown option "+o,Za.ERR_BAD_OPTION)}},validators:Ws};function Zs(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Xs(i.key),i)}}function Xs(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Ys=qs.validators,Ks=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaults=t,this.interceptors={request:new ls,response:new ls}}var t,n,i;return t=e,n=[{key:"request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n,i=t=Us(this.defaults,t),r=i.transitional,o=i.paramsSerializer,a=i.headers;void 0!==r&&qs.assertOptions(r,{silentJSONParsing:Ys.transitional(Ys.boolean),forcedJSONParsing:Ys.transitional(Ys.boolean),clarifyTimeoutError:Ys.transitional(Ys.boolean)},!1),null!=o&&(Va.isFunction(o)?t.paramsSerializer={serialize:o}:qs.assertOptions(o,{encode:Ys.function,serialize:Ys.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),(n=a&&Va.merge(a.common,a[t.method]))&&Va.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete a[e]})),t.headers=As.concat(n,a);var s=[],l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var c,u=[];this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));var d,p=0;if(!l){var h=[_s.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,u),d=h.length,c=Promise.resolve(t);p<d;)c=c.then(h[p++],h[p++]);return c}d=s.length;var f=t;for(p=0;p<d;){var m=s[p++],g=s[p++];try{f=m(f)}catch(e){g.call(this,e);break}}try{c=_s.call(this,f)}catch(e){return Promise.reject(e)}for(p=0,d=u.length;p<d;)c=c.then(u[p++],u[p++]);return c}},{key:"getUri",value:function(e){return rs(Ds((e=Us(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}],n&&Zs(t.prototype,n),i&&Zs(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();Va.forEach(["delete","get","head","options"],(function(e){Ks.prototype[e]=function(t,n){return this.request(Us(n||{},{method:e,url:t,data:(n||{}).data}))}})),Va.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(Us(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ks.prototype[e]=t(),Ks.prototype[e+"Form"]=t(!0)}));const Qs=Ks;function Js(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,$s(i.key),i)}}function $s(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var el=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var i=this;this.promise.then((function(e){if(i._listeners){for(var t=i._listeners.length;t-- >0;)i._listeners[t](e);i._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){i.subscribe(e),t=e})).then(e);return n.cancel=function(){i.unsubscribe(t)},n},t((function(e,t,r){i.reason||(i.reason=new Rs(e,t,r),n(i.reason))}))}var t,n,i;return t=e,n=[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],i=[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}],n&&Js(t.prototype,n),i&&Js(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();const tl=el;function nl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return il(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return il(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function il(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var rl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rl).forEach((function(e){var t=nl(e,2),n=t[0],i=t[1];rl[i]=n}));const ol=rl;var al=function e(t){var n=new Qs(t),i=ca(Qs.prototype.request,n);return Va.extend(i,Qs.prototype,n,{allOwnKeys:!0}),Va.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(Us(t,n))},i}(ms);al.Axios=Qs,al.CanceledError=Rs,al.CancelToken=tl,al.isCancel=Os,al.VERSION=Vs,al.toFormData=Ja,al.AxiosError=Za,al.Cancel=al.CanceledError,al.all=function(e){return Promise.all(e)},al.spread=function(e){return function(t){return e.apply(null,t)}},al.isAxiosError=function(e){return Va.isObject(e)&&!0===e.isAxiosError},al.mergeConfig=Us,al.AxiosHeaders=As,al.formToJSON=function(e){return ps(Va.isHTMLForm(e)?new FormData(e):e)},al.HttpStatusCode=ol,al.default=al;const sl=al;var ll=r(281),cl=r.n(ll);const ul=function(e){return JSON.parse(JSON.stringify(e))};function dl(e){return function(e){if(Array.isArray(e))return fl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hl(e)||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 pl(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=hl(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function hl(e,t){if(e){if("string"==typeof e)return fl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fl(e,t):void 0}}function fl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ml={middle:!1,top:!1,"left-middle":!1,"right-middle":!1,bottom:!1,"left-top":!1,"right-top":!1,"left-bottom":!1,"right-bottom":!1},gl=["tall","extra-tall","wide","full"];function vl(e,t,n,i){switch(e){case"top":t[0][1]=i.id,"wide"===n&&(t[0][2]=i.id),"full"===n&&(t[0][0]=i.id,t[0][2]=i.id);break;case"left-middle":t[1][0]=i.id,"tall"===n?t[2][0]=i.id:"wide"===n&&(t[1][1]=i.id,t[1][2]=i.id);break;case"right-middle":t[1][2]=i.id,"tall"===n&&(t[2][2]=i.id);break;case"bottom":t[2][1]=i.id,"wide"===n&&(t[2][2]=i.id),"full"===n&&(t[2][0]=i.id,t[2][2]=i.id);break;case"left-top":t[0][0]=i.id,"tall"===n?t[1][0]=i.id:"wide"===n&&(t[0][1]=i.id,t[0][2]=i.id);break;case"right-top":t[0][2]=i.id,"tall"===n&&(t[1][2]=i.id);break;case"left-bottom":t[2][0]=i.id,"wide"===n&&(t[2][1]=i.id,t[2][2]=i.id);break;case"right-bottom":t[2][2]=i.id;break;default:t[1][1]=i.id,t[1][2]=i.id,"full"===n&&(t[1][0]=i.id)}}function yl(e,t,n){var i=document.createElement("div");i.innerHTML=e;var r=i.getElementsByTagName("tei-body")[0].children,o=function(e){var t=e.getAttribute("rend");return Object.keys(ml).includes(t)?t:"middle"};function a(e){var t=e.getAttribute("style");return gl.includes(t)?t:null}var s=[],l="",c=0,u=0;try{var d,p=pl(r);try{for(p.s();!(d=p.n()).done;){var h,f=d.value,m=ul(t),g=ul(ml),v=f.id,y=pl(f.children);try{for(y.s();!(h=y.n()).done;){var b=h.value,w=o(b),x=a(b);b.setAttribute("data-entry-id",v),g[w]?(b.id=g[w][0].id,g[w].push(b)):(c++,b.id="z".concat(c),g[w]=[b]),n(w,m,x,b)}}catch(e){y.e(e)}finally{y.f()}for(var C=0,E=Object.values(g);C<E.length;C++){var S=E[C];S&&(l=l.concat(wl(S)))}s[u]=xl(m[0],s[u]),s[u+1]=xl(m[1],s[u+1]),s[u+2]=xl(m[2],s[u+2]),u+=1}}catch(e){p.e(e)}finally{p.f()}}catch(e){console.log(e)}return{html:l,layout:bl(s)}}function bl(e){var t=dl(e);e[0]&&"."===e[0][0]&&"."===e[0][1]&&t.shift();var n,i="",r=pl(t);try{for(r.s();!(n=r.n()).done;){var o=n.value.join(" ");i+=" '".concat(o,"'")}}catch(e){r.e(e)}finally{r.f()}return i}function wl(e){for(var t=e[0],n=t.id,i=t.attributes["data-entry-id"].value,r="",o=0;o<t.classList.length;o++)r="".concat(r," ").concat(t.classList.item(o));var a,s='<div id="'.concat(n,'" className="').concat(r,'" data-entry-id="').concat(i,'">'),l=pl(e);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.setAttribute("className","block"),s="div"===c.name?s.concat("".concat(c.innerHTML," <br/>")):s.concat("".concat(c.outerHTML))}}catch(e){l.e(e)}finally{l.f()}return s.concat("</div>")}function xl(e,t){if(t){for(var n=[],i=0;i<4;i++)"."!==e[i]?n[i]=e[i]:n[i]=t[i];return n}return e}function Cl(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return El(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return El(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function El(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sl(Object(n),!0).forEach((function(t){Al(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Al(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pl(e){if(e.loading)return new Promise((function(t){t(e)}));e.loading=!0;var t=Tl({},e);return new Promise((function(n,i){var r=Object.keys(t.annotationURLs);r.length>0?sl.get(t.image_zoom_url).then((function(o){t.tileSource=new(cl().IIIFTileSource)(o.data);var a,s=Cl(r);try{var l=function(){var r=a.value,o=t.annotationURLs[r],s=o.htmlURL,l=o.xmlURL;t.transcription||(t.transcription={}),t.transcription[r]={},sl.all([sl.get(s),sl.get(l)]).then(sl.spread((function(e,o){var a,l,c=(a=e.data,l=o.data,Tl(Tl({},function(e){return yl(e,[[".",".","."],[".",".","."],[".",".","."]],vl)}(a)),{},{xml:l}));c?(t.transcription[r]=c,t.loading=!1,n(t)):i(new Error("Unable to load transcription: ".concat(s)))}))).catch((function(t){e.loading=!1,i(t)}))};for(s.s();!(a=s.n()).done;)l()}catch(e){s.e(e)}finally{s.f()}})).catch((function(t){e.loading=!1,i(t)})):sl.get(t.image_zoom_url).then((function(e){t.tileSource=new(cl().IIIFTileSource)(e.data),t.loading=!1,n(t)})).catch((function(t){e.loading=!1,i(t)}))}))}function Ol(){Ol=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:x(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(A([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function x(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return P()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=u(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return h.prototype=f,i(y,"constructor",{value:f,configurable:!0}),i(f,"constructor",{value:h,configurable:!0}),h.displayName=l(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new w(c(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var Il=Ol().mark(Fl),Rl=Ol().mark(zl),kl=Ol().mark(_l),Dl=Ol().mark(Hl),jl=Ol().mark(Ul),Ml=Ol().mark(Vl),Nl=function(e){return e.document},Ll=function(e){return e.glossary},Bl=function(e){return e.comments};function Fl(e){var t,n;return Ol().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=e.payload.params[0].pathname,!((n=t.split("/")).length>1)){i.next=15;break}i.t0=n[1],i.next="ec"===i.t0?6:15;break;case 6:return i.next=8,Ul();case 8:return i.next=10,zl();case 10:return i.next=12,Hl();case 12:return i.next=14,_l(n);case 14:return i.abrupt("break",15);case 15:case"end":return i.stop()}}),Il)}function zl(){var e,t;return Ol().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Mr(Nl);case 2:if((e=n.sent).loaded){n.next=9;break}return n.next=6,sl.get(e.manifestURL);case 6:return t=n.sent,n.next=9,tc("DocumentActions.loadDocument",t.data);case 9:case"end":return n.stop()}}),Rl)}function _l(e){var t,n,i,r,o,a,s,l,c;return Ol().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Mr(Nl);case 2:if(!(t=u.sent).loaded){u.next=21;break}e.length>2&&(n=e[2],e.length>4&&(i=e[4])),(r=[]).push(n),i&&i!==n&&r.push(i),o=0,a=r;case 9:if(!(o<a.length)){u.next=21;break}if(s=a[o],!(l=t.folioIndex[s])||l.loading){u.next=18;break}return u.next=15,Pl(l);case 15:return c=u.sent,u.next=18,tc("DocumentActions.loadFolio",c);case 18:o++,u.next=9;break;case 21:case"end":return u.stop()}}),kl)}function Hl(){var e,t;return Ol().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Mr(Ll);case 2:if((e=n.sent).loaded){n.next=9;break}return n.next=6,sl.get(e.glossaryURL);case 6:return t=n.sent,n.next=9,tc("GlossaryActions.loadGlossary",t.data);case 9:case"end":return n.stop()}}),Dl)}function Ul(){var e,t;return Ol().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Mr(Bl);case 2:if((e=n.sent).loaded){n.next=9;break}return n.next=6,sl.get(e.commentsURL);case 6:return t=n.sent,n.next=9,tc("CommentActions.loadComments",t.data);case 9:case"end":return n.stop()}}),jl)}function Vl(){return Ol().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ko("RouteListenerSaga.userNavigatation",Fl);case 2:case"end":return e.stop()}}),Ml)}function Wl(){Wl=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:x(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(A([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function x(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return P()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=u(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return h.prototype=f,i(y,"constructor",{value:f,configurable:!0}),i(f,"constructor",{value:h,configurable:!0}),h.displayName=l(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new w(c(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var Gl=Wl().mark(ql);function ql(){return Wl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t=[Vl()],n=void 0,(n=Ir(gr,t)).combinator=!0,n;case 2:case"end":return e.stop()}var t,n}),Gl)}function Zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Xl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yl(e){return function(e){if(Array.isArray(e))return Kl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Kl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kl(e,t)}(e)||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 Kl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ql(){Ql=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:x(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(A([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function x(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return P()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=u(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return h.prototype=f,i(y,"constructor",{value:f,configurable:!0}),i(f,"constructor",{value:h,configurable:!0}),h.displayName=l(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new w(c(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var Jl=Ql().mark(tc);function $l(e){var t=To(),n=Ci(function(e){var t=e.iiifManifest,n=e.documentName,i=e.commentsURL,r=e.glossaryURL,o=e.transcriptionTypes;return Ei({diplomatic:nc("DiplomaticActions",$o,ea),document:nc("DocumentActions",Xo,na(t,n,o)),glossary:nc("GlossaryActions",Lo,ta(r)),comments:nc("CommentActions",sa,la(i))})}(e),window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__(),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),i=function(){throw new Error(vi(15))},r={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},o=t.map((function(e){return e(r)}));return i=Si.apply(void 0,o)(n.dispatch),gi(gi({},n),{},{dispatch:i})}}}(t));return t.run(ql),n}function ec(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];e.dispatch({type:t,payload:{params:i,dispatcher:{dispatch:e.dispatch}}})}function tc(e){var t,n,i,r=arguments;return Ql().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:for(t=r.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=r[i];return o.next=3,kr({type:e,payload:{params:n}});case 3:return o.abrupt("return",o.sent);case 4:case"end":return o.stop()}}),Jl)}function nc(e,t,n){for(var i=[],r=0,o=Object.keys(t);r<o.length;r++){var a=o[r];i.push("".concat(e,".").concat(a))}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:i).includes(r.type)?function(e,t,n){var i=n.payload&&n.payload.params?n.payload.params:[];return t.apply(void 0,[e].concat(Yl(i),[n.payload.dispatcher]))}(e,function(e,t){return t[e.split(".")[1]]}(r.type,o),r):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(n),!0).forEach((function(t){Xl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)}}var ic={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},rc=t().createContext&&t().createContext(ic),oc=function(){return oc=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},oc.apply(this,arguments)},ac=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function sc(e){return e&&e.map((function(e,n){return t().createElement(e.tag,oc({key:n},e.attr),sc(e.child))}))}function lc(e){return function(n){return t().createElement(cc,oc({attr:oc({},e.attr)},n),sc(e.child))}}function cc(e){var n=function(n){var i,r=e.attr,o=e.size,a=e.title,s=ac(e,["attr","size","title"]),l=o||n.size||"1em";return n.className&&(i=n.className),e.className&&(i=(i?i+" ":"")+e.className),t().createElement("svg",oc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:i,style:oc(oc({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&t().createElement("title",null,a),e.children)};return void 0!==rc?t().createElement(rc.Consumer,null,(function(e){return n(e)})):n(ic)}function uc(e){return lc({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z"}}]})(e)}function dc(e){return lc({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z"}}]})(e)}function pc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var i=a({},t);return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}r(8064);function hc(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=hc(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}const fc=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=hc(e))&&(i&&(i+=" "),i+=t);return i};function mc(e){return e&&e.ownerDocument||document}function gc(e){if("string"!=typeof e)throw new Error(f(7));return e.charAt(0).toUpperCase()+e.slice(1)}var vc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};const yc="object"===("undefined"==typeof window?"undefined":vc(window))&&"object"===("undefined"==typeof document?"undefined":vc(document))&&9===document.nodeType;function bc(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,d(i.key),i)}}function wc(e,t,n){return t&&bc(e.prototype,t),n&&bc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xc(e,t){return xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xc(e,t)}function Cc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xc(e,t)}function Ec(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Sc={}.constructor;function Tc(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Tc);if(e.constructor!==Sc)return e;var t={};for(var n in e)t[n]=Tc(e[n]);return t}function Ac(e,t,n){void 0===e&&(e="unnamed");var i=n.jss,r=Tc(t),o=i.plugins.onCreateRule(e,r,n);return o||(e[0],null)}var Pc=function(e,t){for(var n="",i=0;i<e.length&&"!important"!==e[i];i++)n&&(n+=t),n+=e[i];return n},Oc=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=Pc(e[n]," ");else t=Pc(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Ic(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Rc(e,t){for(var n="",i=0;i<t;i++)n+=" ";return n+e}function kc(e,t,n){void 0===n&&(n={});var i="";if(!t)return i;var r=n.indent,o=void 0===r?0:r,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=Ic(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var h=d[p];null!=h&&(i&&(i+=l),i+=Rc(p+":"+c+Oc(h)+";",o))}}else for(var f in a){var m=a[f];null!=m&&(i&&(i+=l),i+=Rc(f+":"+c+Oc(m)+";",o))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(i&&(i+=l),i+=Rc(g+":"+c+Oc(v)+";",o))}return(i||n.allowEmpty)&&e?(i&&(i=""+l+i+l),Rc(""+e+c+"{"+i,--o)+Rc("}",o)):i}var Dc=/([[\].#*$><+~=|^:(),"'`\s])/g,jc="undefined"!=typeof CSS&&CSS.escape,Mc=function(e){return jc?jc(e):e.replace(Dc,"\\$1")},Nc=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var i=n.sheet,r=n.Renderer;this.key=e,this.options=n,this.style=t,i?this.renderer=i.renderer:r&&(this.renderer=new r)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var i=!!n&&n.force;if(!i&&this.style[e]===t)return this;var r=t;n&&!1===n.process||(r=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==r||!1===r,a=e in this.style;if(o&&!a&&!i)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=r,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,r),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Lc=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var o=i.selector,a=i.scoped,s=i.sheet,l=i.generateId;return o?r.selectorText=o:!1!==a&&(r.id=l(Ec(Ec(r)),s),r.selectorText="."+Mc(r.id)),r}Cc(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var i in n)t.setProperty(e,i,n[i])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Oc(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?a({},e,{allowEmpty:!0}):e;return kc(this.selectorText,this.style,n)},wc(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Nc),Bc={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Lc(e,t,n)}},Fc={indent:1,children:!0},zc=/@([\w-]+)/,_c=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var i=e.match(zc);for(var r in this.at=i?i[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new uu(a({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),i):null},t.replaceRule=function(e,t,n){var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),i},t.toString=function(e){void 0===e&&(e=Fc);var t=Ic(e).linebreak;if(null==e.indent&&(e.indent=Fc.indent),null==e.children&&(e.children=Fc.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Hc=/@container|@media|@supports\s+/,Uc={onCreateRule:function(e,t,n){return Hc.test(e)?new _c(e,t,n):null}},Vc={indent:1,children:!0},Wc=/@keyframes\s+([\w-]+)/,Gc=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=e.match(Wc);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var r=n.scoped,o=n.sheet,s=n.generateId;for(var l in this.id=!1===r?this.name:Mc(s(this,o)),this.rules=new uu(a({},n,{parent:this})),t)this.rules.add(l,t[l],a({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Vc);var t=Ic(e).linebreak;if(null==e.indent&&(e.indent=Vc.indent),null==e.children&&(e.children=Vc.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),qc=/@keyframes\s+/,Zc=/\$([\w-]+)/g,Xc=function(e,t){return"string"==typeof e?e.replace(Zc,(function(e,n){return n in t?t[n]:e})):e},Yc=function(e,t,n){var i=e[t],r=Xc(i,n);r!==i&&(e[t]=r)},Kc={onCreateRule:function(e,t,n){return"string"==typeof e&&qc.test(e)?new Gc(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Yc(e,"animation-name",n.keyframes),"animation"in e&&Yc(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var i=n.options.sheet;if(!i)return e;switch(t){case"animation":case"animation-name":return Xc(e,i.keyframes);default:return e}}},Qc=function(e){function t(){return e.apply(this,arguments)||this}return Cc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?a({},e,{allowEmpty:!0}):e;return kc(this.key,this.style,n)},t}(Nc),Jc={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Qc(e,t,n):null}},$c=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Ic(e).linebreak;if(Array.isArray(this.style)){for(var n="",i=0;i<this.style.length;i++)n+=kc(this.at,this.style[i]),this.style[i+1]&&(n+=t);return n}return kc(this.at,this.style,e)},e}(),eu=/@font-face/,tu={onCreateRule:function(e,t,n){return eu.test(e)?new $c(e,t,n):null}},nu=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return kc(this.key,this.style,e)},e}(),iu={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new nu(e,t,n):null}},ru=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),ou={"@charset":!0,"@import":!0,"@namespace":!0},au={onCreateRule:function(e,t,n){return e in ou?new ru(e,t,n):null}},su=[Bc,Uc,Kc,Jc,tu,iu,au],lu={process:!0},cu={force:!0,process:!0},uu=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var i=this.options,r=i.parent,o=i.sheet,s=i.jss,l=i.Renderer,c=i.generateId,u=i.scoped,d=a({classes:this.classes,parent:r,sheet:o,jss:s,Renderer:l,generateId:c,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=t,p in this.classes&&(d.selector="."+Mc(this.classes[p]));var h=Ac(p,t,d);if(!h)return null;this.register(h);var f=void 0===d.index?this.index.length:d.index;return this.index.splice(f,0,h),h},t.replace=function(e,t,n){var i=this.get(e),r=this.index.indexOf(i);i&&this.remove(i);var o=n;return-1!==r&&(o=a({},n,{index:r})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Lc?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Gc&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Lc?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Gc&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var i=0;i<this.index.length;i++)this.updateOne(this.index[i],t,n)},t.updateOne=function(t,n,i){void 0===i&&(i=lu);var r=this.options,o=r.jss.plugins,a=r.sheet;if(t.rules instanceof e)t.rules.update(n,i);else{var s=t.style;if(o.onUpdate(n,t,a,i),i.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,cu)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,cu)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,i=!!n&&n.options.link,r=Ic(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||i)&&(t&&(t+=r),t+=a)}return t},e}(),du=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=a({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new uu(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var i=this.queue;this.attached&&!i&&(this.queue=[]);var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),this.attached?this.deployed?(i?i.push(r):(this.insertRule(r),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),r):r:(this.deployed=!1,r)):null},t.replaceRule=function(e,t,n){var i=this.rules.get(e);if(!i)return this.addRule(e,t,n);var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),this.attached?this.deployed?(this.renderer&&(r?i.renderable&&this.renderer.replaceRule(i.renderable,r):this.renderer.deleteRule(i)),r):r:(this.deployed=!1,r)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var i in e){var r=this.addRule(i,e[i],t);r&&n.push(r)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),pu=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var i=0;i<this.registry.onCreateRule.length;i++){var r=this.registry.onCreateRule[i](e,t,n);if(r)return r}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var i=0;i<this.registry.onProcessStyle.length;i++)t.style=this.registry.onProcessStyle[i](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,i){for(var r=0;r<this.registry.onUpdate.length;r++)this.registry.onUpdate[r](e,t,n,i)},t.onChangeValue=function(e,t,n){for(var i=e,r=0;r<this.registry.onChangeValue.length;r++)i=this.registry.onChangeValue[r](i,t,n);return i},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),hu=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var i=0;i<t.length;i++)if(t[i].options.index>n)return void t.splice(i,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,i=t.attached,r=n(t,["attached"]),o=Ic(r).linebreak,a="",s=0;s<this.registry.length;s++){var l=this.registry[s];null!=i&&l.attached!==i||(a&&(a+=o),a+=l.toString(r))}return a},wc(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),fu=new hu,mu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),gu="2f1acc6c3a606b082e5eef5e54414ffb";null==mu[gu]&&(mu[gu]=0);var vu=mu[gu]++,yu=function(e){void 0===e&&(e={});var t=0;return function(n,i){t+=1;var r="",o="";return i&&(i.options.classNamePrefix&&(o=i.options.classNamePrefix),null!=i.options.jss.id&&(r=String(i.options.jss.id))),e.minify?""+(o||"c")+vu+r+t:o+n.key+"-"+vu+(r?"-"+r:"")+"-"+t}},bu=function(e){var t;return function(){return t||(t=e()),t}},wu=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},xu=function(e,t,n){try{var i=n;if(Array.isArray(n)&&(i=Oc(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,i);else{var r=i?i.indexOf("!important"):-1,o=r>-1?i.substr(0,r-1):i;e.style.setProperty(t,o,r>-1?"important":"")}}catch(e){return!1}return!0},Cu=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Eu=function(e,t){return e.selectorText=t,e.selectorText===t},Su=bu((function(){return document.querySelector("head")}));function Tu(e){var t=fu.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(i.attached&&i.options.index>t.index&&i.options.insertionPoint===t.insertionPoint)return i}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var i=e[n];if(i.attached&&i.options.insertionPoint===t.insertionPoint)return i}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var i=e.insertionPoint;if(i&&"string"==typeof i){var r=function(e){for(var t=Su(),n=0;n<t.childNodes.length;n++){var i=t.childNodes[n];if(8===i.nodeType&&i.nodeValue.trim()===e)return i}return null}(i);if(r)return{parent:r.parentNode,node:r.nextSibling}}return!1}var Au=bu((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Pu=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Ou=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Iu=function(){function e(e){this.getPropertyValue=wu,this.setProperty=xu,this.removeProperty=Cu,this.setSelector=Eu,this.hasInsertedRules=!1,this.cssRules=[],e&&fu.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,i=t.meta,r=t.element;this.element=r||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),i&&this.element.setAttribute("data-meta",i);var o=Au();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,i=Tu(t);if(!1!==i&&i.parent)i.parent.insertBefore(e,i.node);else if(n&&"number"==typeof n.nodeType){var r=n,o=r.parentNode;o&&o.insertBefore(e,r.nextSibling)}else Su().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var i=e,r=n;if("conditional"===e.type||"keyframes"===e.type){var o=Ou(n,t);if(!1===(r=Pu(n,i.toString({children:!1}),o)))return!1;this.refCssRule(e,o,r)}return this.insertRules(i.rules,r),r}var a=e.toString();if(!a)return!1;var s=Ou(n,t),l=Pu(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof du&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ru=0,ku=function(){function e(e){this.id=Ru++,this.version="10.10.0",this.plugins=new pu,this.options={id:{minify:!1},createGenerateId:yu,Renderer:yc?Iu:null,plugins:[]},this.generateId=yu({minify:!1});for(var t=0;t<su.length;t++)this.plugins.use(su[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=a({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===fu.index?0:fu.index+1);var i=new du(e,a({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(i),i},t.removeStyleSheet=function(e){return e.detach(),fu.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var i=a({},n,{name:e,jss:this,Renderer:this.options.Renderer});i.generateId||(i.generateId=this.generateId),i.classes||(i.classes={}),i.keyframes||(i.keyframes={});var r=Ac(e,t,i);return r&&this.plugins.onProcessRule(r),r},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Du=function(e){return new ku(e)},ju="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Mu(e){var t=null;for(var n in e){var i=e[n],r=typeof i;if("function"===r)t||(t={}),t[n]=i;else if("object"===r&&null!==i&&!Array.isArray(i)){var o=Mu(i);o&&(t||(t={}),t[n]=o)}}return t}Du();var Nu={set:function(e,t,n,i){var r=e.get(t);r||(r=new Map,e.set(t,r)),r.set(n,i)},get:function(e,t,n){var i=e.get(t);return i?i.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}};const Lu=Nu;var Bu=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Fu=Date.now(),zu="fnValues"+Fu,_u="fnStyle"+ ++Fu;const Hu=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var i=Ac(e,{},n);return i[_u]=t,i},onProcessStyle:function(e,t){if(zu in t||_u in t)return e;var n={};for(var i in e){var r=e[i];"function"==typeof r&&(delete e[i],n[i]=r)}return t[zu]=n,e},onUpdate:function(e,t,n,i){var r=t,o=r[_u];o&&(r.style=o(e)||{});var a=r[zu];if(a)for(var s in a)r.prop(s,a[s](e),i)}}};var Uu="@global",Vu="@global ",Wu=function(){function e(e,t,n){for(var i in this.type="global",this.at=Uu,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new uu(a({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var i=this.rules.add(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),i},t.replaceRule=function(e,t,n){var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),i},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Gu=function(){function e(e,t,n){this.type="global",this.at=Uu,this.isProcessed=!1,this.key=e,this.options=n;var i=e.substr(8);this.rule=n.jss.createRule(i,t,a({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),qu=/\s*,\s*/g;function Zu(e,t){for(var n=e.split(qu),i="",r=0;r<n.length;r++)i+=t+" "+n[r].trim(),n[r+1]&&(i+=", ");return i}const Xu=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Uu)return new Wu(e,t,n);if("@"===e[0]&&e.substr(0,8)===Vu)return new Gu(e,t,n);var i=n.parent;return i&&("global"===i.type||i.options.parent&&"global"===i.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,i=e.style,r=i?i[Uu]:null;if(r){for(var o in r)t.addRule(o,r[o],a({},n,{selector:Zu(o,e.selector)}));delete i[Uu]}}(e,t),function(e,t){var n=e.options,i=e.style;for(var r in i)if("@"===r[0]&&r.substr(0,Uu.length)===Uu){var o=Zu(r.substr(Uu.length),e.selector);t.addRule(o,i[r],a({},n,{selector:o})),delete i[r]}}(e,t))}}};var Yu=/\s*,\s*/g,Ku=/&/g,Qu=/\$([\w-]+)/g;const Ju=function(){function e(e,t){return function(n,i){var r=e.getRule(i)||t&&t.getRule(i);return r?r.selector:i}}function t(e,t){for(var n=t.split(Yu),i=e.split(Yu),r="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<i.length;s++){var l=i[s];r&&(r+=", "),r+=-1!==l.indexOf("&")?l.replace(Ku,a):a+" "+l}return r}function n(e,t,n){if(n)return a({},n,{index:n.index+1});var i=e.options.nestingLevel;i=void 0===i?1:i+1;var r=a({},e.options,{nestingLevel:i,index:t.indexOf(e)+1});return delete r.name,r}return{onProcessStyle:function(i,r,o){if("style"!==r.type)return i;var s,l,c=r,u=c.options.parent;for(var d in i){var p=-1!==d.indexOf("&"),h="@"===d[0];if(p||h){if(s=n(c,u,s),p){var f=t(d,c.selector);l||(l=e(u,o)),f=f.replace(Qu,l);var m=c.key+"-"+d;"replaceRule"in u?u.replaceRule(m,i[d],a({},s,{selector:f})):u.addRule(m,i[d],a({},s,{selector:f}))}else h&&u.addRule(d,{},s).addRule(c.key,i[d],{selector:c.selector});delete i[d]}}return i}}};var $u=/[A-Z]/g,ed=/^ms-/,td={};function nd(e){return"-"+e.toLowerCase()}const id=function(e){if(td.hasOwnProperty(e))return td[e];var t=e.replace($u,nd);return td[e]=ed.test(t)?"-"+t:t};function rd(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:id(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(rd):t.fallbacks=rd(e.fallbacks)),t}const od=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=rd(e[t]);return e}return rd(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var i=id(t);return t===i?e:(n.prop(i,e),null)}}};var ad=ju&&CSS?CSS.px:"px",sd=ju&&CSS?CSS.ms:"ms",ld=ju&&CSS?CSS.percent:"%";function cd(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},i={};for(var r in e)i[r]=e[r],i[r.replace(t,n)]=e[r];return i}var ud=cd({"animation-delay":sd,"animation-duration":sd,"background-position":ad,"background-position-x":ad,"background-position-y":ad,"background-size":ad,border:ad,"border-bottom":ad,"border-bottom-left-radius":ad,"border-bottom-right-radius":ad,"border-bottom-width":ad,"border-left":ad,"border-left-width":ad,"border-radius":ad,"border-right":ad,"border-right-width":ad,"border-top":ad,"border-top-left-radius":ad,"border-top-right-radius":ad,"border-top-width":ad,"border-width":ad,"border-block":ad,"border-block-end":ad,"border-block-end-width":ad,"border-block-start":ad,"border-block-start-width":ad,"border-block-width":ad,"border-inline":ad,"border-inline-end":ad,"border-inline-end-width":ad,"border-inline-start":ad,"border-inline-start-width":ad,"border-inline-width":ad,"border-start-start-radius":ad,"border-start-end-radius":ad,"border-end-start-radius":ad,"border-end-end-radius":ad,margin:ad,"margin-bottom":ad,"margin-left":ad,"margin-right":ad,"margin-top":ad,"margin-block":ad,"margin-block-end":ad,"margin-block-start":ad,"margin-inline":ad,"margin-inline-end":ad,"margin-inline-start":ad,padding:ad,"padding-bottom":ad,"padding-left":ad,"padding-right":ad,"padding-top":ad,"padding-block":ad,"padding-block-end":ad,"padding-block-start":ad,"padding-inline":ad,"padding-inline-end":ad,"padding-inline-start":ad,"mask-position-x":ad,"mask-position-y":ad,"mask-size":ad,height:ad,width:ad,"min-height":ad,"max-height":ad,"min-width":ad,"max-width":ad,bottom:ad,left:ad,top:ad,right:ad,inset:ad,"inset-block":ad,"inset-block-end":ad,"inset-block-start":ad,"inset-inline":ad,"inset-inline-end":ad,"inset-inline-start":ad,"box-shadow":ad,"text-shadow":ad,"column-gap":ad,"column-rule":ad,"column-rule-width":ad,"column-width":ad,"font-size":ad,"font-size-delta":ad,"letter-spacing":ad,"text-decoration-thickness":ad,"text-indent":ad,"text-stroke":ad,"text-stroke-width":ad,"word-spacing":ad,motion:ad,"motion-offset":ad,outline:ad,"outline-offset":ad,"outline-width":ad,perspective:ad,"perspective-origin-x":ld,"perspective-origin-y":ld,"transform-origin":ld,"transform-origin-x":ld,"transform-origin-y":ld,"transform-origin-z":ld,"transition-delay":sd,"transition-duration":sd,"vertical-align":ad,"flex-basis":ad,"shape-margin":ad,size:ad,gap:ad,grid:ad,"grid-gap":ad,"row-gap":ad,"grid-row-gap":ad,"grid-column-gap":ad,"grid-template-rows":ad,"grid-template-columns":ad,"grid-auto-rows":ad,"grid-auto-columns":ad,"box-shadow-x":ad,"box-shadow-y":ad,"box-shadow-blur":ad,"box-shadow-spread":ad,"font-line-height":ad,"text-shadow-x":ad,"text-shadow-y":ad,"text-shadow-blur":ad});function dd(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]=dd(e,t[i],n);else if("object"==typeof t)if("fallbacks"===e)for(var r in t)t[r]=dd(r,t[r],n);else for(var o in t)t[o]=dd(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||ud[e];return!a||0===t&&a===ad?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}const pd=function(e){void 0===e&&(e={});var t=cd(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var i in e)e[i]=dd(i,e[i],t);return e},onChangeValue:function(e,n){return dd(n,e,t)}}};function hd(e){return function(e){if(Array.isArray(e))return H(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||U(e)||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.")}()}var fd="",md="",gd="",vd="",yd=yc&&"ontouchstart"in document.documentElement;if(yc){var bd={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},wd=document.createElement("p").style;for(var xd in bd)if(xd+"Transform"in wd){fd=xd,md=bd[xd];break}"Webkit"===fd&&"msHyphens"in wd&&(fd="ms",md=bd.ms,vd="edge"),"Webkit"===fd&&"-apple-trailing-word"in wd&&(gd="apple")}var Cd={js:fd,css:md,vendor:gd,browser:vd,isTouch:yd};var Ed={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Cd.js?"-webkit-"+e:Cd.css+e)}},Sd={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Cd.js?Cd.css+"print-"+e:e)}},Td=/[-\s]+(.)?/g;function Ad(e,t){return t?t.toUpperCase():""}function Pd(e){return e.replace(Td,Ad)}function Od(e){return Pd("-"+e)}var Id,Rd={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Cd.js){var n="mask-image";if(Pd(n)in t)return e;if(Cd.js+Od(n)in t)return Cd.css+e}return e}},kd={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Cd.vendor||Cd.isTouch?e:Cd.css+e)}},Dd={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Cd.css+e)}},jd={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Cd.css+e)}},Md={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Cd.js||"ms"===Cd.js&&"edge"!==Cd.browser?Cd.css+e:e)}},Nd={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Cd.js||"ms"===Cd.js||"apple"===Cd.vendor?Cd.css+e:e)}},Ld={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Cd.js?"WebkitColumn"+Od(e)in t&&Cd.css+"column-"+e:"Moz"===Cd.js&&("page"+Od(e)in t&&"page-"+e))}},Bd={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Cd.js)return e;var n=e.replace("-inline","");return Cd.js+Od(n)in t&&Cd.css+n}},Fd={supportedProperty:function(e,t){return Pd(e)in t&&e}},zd={supportedProperty:function(e,t){var n=Od(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Cd.js+n in t?Cd.css+e:"Webkit"!==Cd.js&&"Webkit"+n in t&&"-webkit-"+e}},_d={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Cd.js?""+Cd.css+e:e)}},Hd={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Cd.js?Cd.css+"scroll-chaining":e)}},Ud={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Vd={supportedProperty:function(e,t){var n=Ud[e];return!!n&&(Cd.js+Od(n)in t&&Cd.css+n)}},Wd={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Gd=Object.keys(Wd),qd=function(e){return Cd.css+e},Zd={supportedProperty:function(e,t,n){var i=n.multiple;if(Gd.indexOf(e)>-1){var r=Wd[e];if(!Array.isArray(r))return Cd.js+Od(r)in t&&Cd.css+r;if(!i)return!1;for(var o=0;o<r.length;o++)if(!(Cd.js+Od(r[0])in t))return!1;return r.map(qd)}return!1}},Xd=[Ed,Sd,Rd,kd,Dd,jd,Md,Nd,Ld,Bd,Fd,zd,_d,Hd,Vd,Zd],Yd=Xd.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Kd=Xd.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,hd(t.noPrefill)),e}),[]),Qd={};if(yc){Id=document.createElement("p");var Jd=window.getComputedStyle(document.documentElement,"");for(var $d in Jd)isNaN($d)||(Qd[Jd[$d]]=Jd[$d]);Kd.forEach((function(e){return delete Qd[e]}))}function ep(e,t){if(void 0===t&&(t={}),!Id)return e;if(null!=Qd[e])return Qd[e];"transition"!==e&&"transform"!==e||(t[e]=e in Id.style);for(var n=0;n<Yd.length&&(Qd[e]=Yd[n](e,Id.style,t),!Qd[e]);n++);try{Id.style[e]=""}catch(e){return!1}return Qd[e]}var tp,np={},ip={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},rp=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function op(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var i=t?ep(t):", "+ep(n);return i||(t||n)}function ap(e,t){var n=t;if(!tp||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var i=e+n;if(null!=np[i])return np[i];try{tp.style[e]=n}catch(e){return np[i]=!1,!1}if(ip[e])n=n.replace(rp,op);else if(""===tp.style[e]&&("-ms-flex"===(n=Cd.css+n)&&(tp.style[e]="-ms-flexbox"),tp.style[e]=n,""===tp.style[e]))return np[i]=!1,!1;return tp.style[e]="",np[i]=n,np[i]}yc&&(tp=document.createElement("p"));const sp=function(){function e(t){for(var n in t){var i=t[n];if("fallbacks"===n&&Array.isArray(i))t[n]=i.map(e);else{var r=!1,o=ep(n);o&&o!==n&&(r=!0);var a=!1,s=ap(o,Oc(i));s&&s!==i&&(a=!0),(r||a)&&(r&&delete t[n],t[o||n]=s||i)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Cd.js?e:"@"+Cd.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return ap(t,Oc(e))||e}}};const lp=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var i={},r=Object.keys(t).sort(e),o=0;o<r.length;o++)i[r[o]]=t[r[o]];return i}}};var cp=Du({plugins:[Hu(),Xu(),Ju(),od(),pd(),"undefined"==typeof window?null:sp(),lp()]}),up=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,i=e.productionPrefix,r=void 0===i?"jss":i,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var i=t.options.name;if(i&&0===i.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Bu.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(i,"-").concat(e.key);return t.options.theme[ue]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(r).concat(c())}}(),dp={disableGeneration:!1,generateClassName:up,jss:cp,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},pp=t().createContext(dp);var hp=-1e9;const fp={};function mp(e,t){var n=e.state,i=e.theme,r=e.stylesOptions,o=e.stylesCreator,s=e.name;if(!r.disableGeneration){var l=Lu.get(r.sheetsManager,o,i);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Lu.set(r.sheetsManager,o,i,l));var c=a({},o.options,r,{theme:i,flip:"boolean"==typeof r.flip?r.flip:"rtl"===i.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var u=r.sheetsRegistry;if(0===l.refs){var d;r.sheetsCache&&(d=Lu.get(r.sheetsCache,o,i));var p=o.create(i,s);d||((d=r.jss.createStyleSheet(p,a({link:!1},c))).attach(),r.sheetsCache&&Lu.set(r.sheetsCache,o,i,d)),u&&u.add(d),l.staticSheet=d,l.dynamicStyles=Mu(p)}if(l.dynamicStyles){var h=r.jss.createStyleSheet(l.dynamicStyles,a({link:!0},c));h.update(t),h.attach(),n.dynamicSheet=h,n.classes=pc({baseClasses:l.staticSheet.classes,newClasses:h.classes}),u&&u.add(h)}else n.classes=l.staticSheet.classes;l.refs+=1}}function gp(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.name,o=n.classNamePrefix,s=n.Component,l=n.defaultTheme,u=void 0===l?fp:l,d=i(n,["name","classNamePrefix","Component","defaultTheme"]),p=function(e){var t="function"==typeof e;return{create:function(n,i){var r;try{r=t?e(n):e}catch(e){throw e}if(!i||!n.overrides||!n.overrides[i])return r;var o=n.overrides[i],s=a({},r);return Object.keys(o).forEach((function(e){s[e]=c(s[e],o[e])})),s},options:{}}}(e),h=r||o||"makeStyles";p.options={index:hp+=1,name:r,meta:h,classNamePrefix:h};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=ce()||u,i=a({},t().useContext(pp),d),o=t().useRef(),l=t().useRef();!function(e,n){var i,r=t().useRef([]),o=t().useMemo((function(){return{}}),n);r.current!==o&&(r.current=o,i=e()),t().useEffect((function(){return function(){i&&i()}}),[o])}((function(){var t={name:r,state:{},stylesCreator:p,stylesOptions:i,theme:n};return mp(t,e),l.current=!1,o.current=t,function(){!function(e){var t=e.state,n=e.theme,i=e.stylesOptions,r=e.stylesCreator;if(!i.disableGeneration){var o=Lu.get(i.sheetsManager,r,n);o.refs-=1;var a=i.sheetsRegistry;0===o.refs&&(Lu.delete(i.sheetsManager,r,n),i.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(i.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(t)}}),[n,p]),t().useEffect((function(){l.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(o.current,e),l.current=!0}));var c=function(e,t,n){var i=e.state;if(e.stylesOptions.disableGeneration)return t||{};i.cacheClasses||(i.cacheClasses={value:null,lastProp:null,lastJSS:{}});var r=!1;return i.classes!==i.cacheClasses.lastJSS&&(i.cacheClasses.lastJSS=i.classes,r=!0),t!==i.cacheClasses.lastProp&&(i.cacheClasses.lastProp=t,r=!0),r&&(i.cacheClasses.value=pc({baseClasses:i.cacheClasses.lastJSS,newClasses:t,Component:n})),i.cacheClasses.value}(o.current,e.classes,s);return c}}const vp=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var o=n.defaultTheme,s=n.withTheme,l=void 0!==s&&s,c=n.name,u=i(n,["defaultTheme","withTheme","name"]);var d=c,p=gp(e,a({defaultTheme:o,Component:r,name:c||r.displayName,classNamePrefix:d},u)),h=t().forwardRef((function(e,n){e.classes;var s,u=e.innerRef,d=i(e,["classes","innerRef"]),h=p(a({},r.defaultProps,e)),f=d;return("string"==typeof c||l)&&(s=ce()||o,c&&(f=pe({theme:s,name:c,props:d})),l&&!f.theme&&(f.theme=s)),t().createElement(r,a({ref:u||n,classes:h},f))}));return fe()(h,r),h}};const yp=function(e,t){return vp(e,a({defaultTheme:me},t))};function bp(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function i(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,r)}),n)}return i.clear=function(){clearTimeout(t)},i}function wp(e){return mc(e).defaultView||window}function xp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];e.apply(this,i),t.apply(this,i)}}),(function(){}))}function Cp(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ep(t,n){return e.useMemo((function(){return null==t&&null==n?null:function(e){Cp(t,e),Cp(n,e)}}),[t,n])}var Sp="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;const Tp=e.forwardRef((function(t,n){var i=t.children,r=t.container,o=t.disablePortal,a=void 0!==o&&o,s=t.onRendered,l=e.useState(null),c=l[0],u=l[1],d=Ep(e.isValidElement(i)?i.ref:null,n);return Sp((function(){a||u(function(e){return e="function"==typeof e?e():e,ke.findDOMNode(e)}(r)||document.body)}),[r,a]),Sp((function(){if(c&&!a)return Cp(n,c),function(){Cp(n,null)}}),[n,c,a]),Sp((function(){s&&(c||a)&&s()}),[s,c,a]),a?e.isValidElement(i)?e.cloneElement(i,{ref:d}):i:c?ke.createPortal(i,c):c}));var Ap="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function Pp(t){var n=e.useRef(t);return Ap((function(){n.current=t})),e.useCallback((function(){return n.current.apply(void 0,arguments)}),[])}function Op(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function Ip(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Rp(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function kp(e,t,n){var i=arguments.length>4?arguments[4]:void 0,r=[t,n].concat(hd(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===r.indexOf(e)&&-1===o.indexOf(e.tagName)&&Ip(e,i)}))}function Dp(e,t){var n=-1;return e.some((function(e,i){return!!t(e)&&(n=i,!0)})),n}function jp(e,t){var n,i=[],r=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=mc(e);return t.body===e?wp(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=Op();i.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(Rp(o)+a,"px"),n=mc(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){r.push(e.style.paddingRight),e.style.paddingRight="".concat(Rp(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;i.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){r[t]?e.style.paddingRight=r[t]:e.style.removeProperty("padding-right")})),i.forEach((function(e){var t=e.value,n=e.el,i=e.key;t?n.style.setProperty(i,t):n.style.removeProperty(i)}))}}var Mp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return wc(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ip(e.modalRef,!1);var i=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);kp(t,e.mountNode,e.modalRef,i,!0);var r=Dp(this.containers,(function(e){return e.container===t}));return-1!==r?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:i}),n)}},{key:"mount",value:function(e,t){var n=Dp(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),i=this.containers[n];i.restore||(i.restore=jp(i,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Dp(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),i=this.containers[n];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(t,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&Ip(e.modalRef,!0),kp(i.container,e.mountNode,e.modalRef,i.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var r=i.modals[i.modals.length-1];r.modalRef&&Ip(r.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const Np=function(t){var n=t.children,i=t.disableAutoFocus,r=void 0!==i&&i,o=t.disableEnforceFocus,a=void 0!==o&&o,s=t.disableRestoreFocus,l=void 0!==s&&s,c=t.getDoc,u=t.isEnabled,d=t.open,p=e.useRef(),h=e.useRef(null),f=e.useRef(null),m=e.useRef(),g=e.useRef(null),v=e.useCallback((function(e){g.current=ke.findDOMNode(e)}),[]),y=Ep(n.ref,v),b=e.useRef();return e.useEffect((function(){b.current=d}),[d]),!b.current&&d&&"undefined"!=typeof window&&(m.current=c().activeElement),e.useEffect((function(){if(d){var e=mc(g.current);r||!g.current||g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var t=function(){null!==g.current&&(e.hasFocus()&&!a&&u()&&!p.current?g.current&&!g.current.contains(e.activeElement)&&g.current.focus():p.current=!1)},n=function(t){!a&&u()&&9===t.keyCode&&e.activeElement===g.current&&(p.current=!0,t.shiftKey?f.current.focus():h.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[r,a,l,u,d]),e.createElement(e.Fragment,null,e.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelStart"}),e.cloneElement(n,{ref:y}),e.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))};var Lp={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const Bp=e.forwardRef((function(t,n){var r=t.invisible,o=void 0!==r&&r,s=t.open,l=i(t,["invisible","open"]);return s?e.createElement("div",a({"aria-hidden":!0,ref:n},l,{style:a({},Lp.root,o?Lp.invisible:{},l.style)})):null}));var Fp=new Mp;const zp=e.forwardRef((function(t,n){var r=ce(),o=pe({name:"MuiModal",props:a({},t),theme:r}),s=o.BackdropComponent,l=void 0===s?Bp:s,c=o.BackdropProps,u=o.children,d=o.closeAfterTransition,p=void 0!==d&&d,h=o.container,f=o.disableAutoFocus,m=void 0!==f&&f,g=o.disableBackdropClick,v=void 0!==g&&g,y=o.disableEnforceFocus,b=void 0!==y&&y,w=o.disableEscapeKeyDown,x=void 0!==w&&w,C=o.disablePortal,E=void 0!==C&&C,S=o.disableRestoreFocus,T=void 0!==S&&S,A=o.disableScrollLock,P=void 0!==A&&A,O=o.hideBackdrop,I=void 0!==O&&O,R=o.keepMounted,k=void 0!==R&&R,D=o.manager,j=void 0===D?Fp:D,M=o.onBackdropClick,N=o.onClose,L=o.onEscapeKeyDown,B=o.onRendered,F=o.open,z=i(o,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),_=e.useState(!0),H=_[0],U=_[1],V=e.useRef({}),W=e.useRef(null),G=e.useRef(null),q=Ep(G,n),Z=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(o),X=function(){return mc(W.current)},Y=function(){return V.current.modalRef=G.current,V.current.mountNode=W.current,V.current},K=function(){j.mount(Y(),{disableScrollLock:P}),G.current.scrollTop=0},Q=Pp((function(){var e=function(e){return e="function"==typeof e?e():e,ke.findDOMNode(e)}(h)||X().body;j.add(Y(),e),G.current&&K()})),J=e.useCallback((function(){return j.isTopModal(Y())}),[j]),$=Pp((function(e){W.current=e,e&&(B&&B(),F&&J()?K():Ip(G.current,!0))})),ee=e.useCallback((function(){j.remove(Y())}),[j]);if(e.useEffect((function(){return function(){ee()}}),[ee]),e.useEffect((function(){F?Q():Z&&p||ee()}),[F,ee,Z,p,Q]),!k&&!F&&(!Z||H))return null;var te=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(r||{zIndex:oe}),ne={};return void 0===u.props.tabIndex&&(ne.tabIndex=u.props.tabIndex||"-1"),Z&&(ne.onEnter=xp((function(){U(!1)}),u.props.onEnter),ne.onExited=xp((function(){U(!0),p&&ee()}),u.props.onExited)),e.createElement(Tp,{ref:$,container:h,disablePortal:E},e.createElement("div",a({ref:q,onKeyDown:function(e){"Escape"===e.key&&J()&&(L&&L(e),x||(e.stopPropagation(),N&&N(e,"escapeKeyDown")))},role:"presentation"},z,{style:a({},te.root,!F&&H?te.hidden:{},z.style)}),I?null:e.createElement(l,a({open:F,onClick:function(e){e.target===e.currentTarget&&(M&&M(e),!v&&N&&N(e,"backdropClick"))}},c)),e.createElement(Np,{disableEnforceFocus:b,disableAutoFocus:m,disableRestoreFocus:T,getDoc:X,isEnabled:J,open:F},e.cloneElement(u,ne))))})),_p=!1,Hp=t().createContext(null);var Up="unmounted",Vp="exited",Wp="entering",Gp="entered",qp="exiting",Zp=function(e){function i(t,n){var i;i=e.call(this,t,n)||this;var r,o=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?o?(r=Vp,i.appearStatus=Wp):r=Gp:r=t.unmountOnExit||t.mountOnEnter?Up:Vp,i.state={status:r},i.nextCallback=null,i}Cc(i,e),i.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Up?{status:Vp}:null};var r=i.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Wp&&n!==Gp&&(t=Wp):n!==Wp&&n!==Gp||(t=qp)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Wp){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:De().findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Vp&&this.setState({status:Up})},r.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,r=this.props.nodeRef?[i]:[De().findDOMNode(this),i],o=r[0],a=r[1],s=this.getTimeouts(),l=i?s.appear:s.enter;!e&&!n||_p?this.safeSetState({status:Gp},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Wp},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Gp},(function(){t.props.onEntered(o,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:De().findDOMNode(this);t&&!_p?(this.props.onExit(i),this.safeSetState({status:qp},(function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Vp},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:Vp},(function(){e.props.onExited(i)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:De().findDOMNode(this),i=null==e&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=r[0],a=r[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Up)return null;var i=this.props,r=i.children,o=(i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef,n(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t().createElement(Hp.Provider,{value:null},"function"==typeof r?r(e,o):t().cloneElement(t().Children.only(r),o))},i}(t().Component);function Xp(){}Zp.contextType=Hp,Zp.propTypes={},Zp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xp,onEntering:Xp,onEntered:Xp,onExit:Xp,onExiting:Xp,onExited:Xp},Zp.UNMOUNTED=Up,Zp.EXITED=Vp,Zp.ENTERING=Wp,Zp.ENTERED=Gp,Zp.EXITING=qp;const Yp=Zp;var Kp=function(e){return e.scrollTop};function Qp(e,t){var n=e.timeout,i=e.style,r=void 0===i?{}:i;return{duration:r.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:r.transitionDelay}}function Jp(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var $p={entering:{opacity:1,transform:Jp(1)},entered:{opacity:1,transform:"none"}},eh=e.forwardRef((function(t,n){var r=t.children,o=t.disableStrictModeCompat,s=void 0!==o&&o,l=t.in,c=t.onEnter,u=t.onEntered,d=t.onEntering,p=t.onExit,h=t.onExited,f=t.onExiting,m=t.style,g=t.timeout,v=void 0===g?"auto":g,y=t.TransitionComponent,b=void 0===y?Yp:y,w=i(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),x=e.useRef(),C=e.useRef(),E=ge(),S=E.unstable_strictMode&&!s,T=e.useRef(null),A=Ep(r.ref,n),P=Ep(S?T:void 0,A),O=function(e){return function(t,n){if(e){var i=V(S?[T.current,t]:[t,n],2),r=i[0],o=i[1];void 0===o?e(r):e(r,o)}}},I=O(d),R=O((function(e,t){Kp(e);var n,i=Qp({style:m,timeout:v},{mode:"enter"}),r=i.duration,o=i.delay;"auto"===v?(n=E.transitions.getAutoHeightDuration(e.clientHeight),C.current=n):n=r,e.style.transition=[E.transitions.create("opacity",{duration:n,delay:o}),E.transitions.create("transform",{duration:.666*n,delay:o})].join(","),c&&c(e,t)})),k=O(u),D=O(f),j=O((function(e){var t,n=Qp({style:m,timeout:v},{mode:"exit"}),i=n.duration,r=n.delay;"auto"===v?(t=E.transitions.getAutoHeightDuration(e.clientHeight),C.current=t):t=i,e.style.transition=[E.transitions.create("opacity",{duration:t,delay:r}),E.transitions.create("transform",{duration:.666*t,delay:r||.333*t})].join(","),e.style.opacity="0",e.style.transform=Jp(.75),p&&p(e)})),M=O(h);return e.useEffect((function(){return function(){clearTimeout(x.current)}}),[]),e.createElement(b,a({appear:!0,in:l,nodeRef:S?T:void 0,onEnter:R,onEntered:k,onEntering:I,onExit:j,onExited:M,onExiting:D,addEndListener:function(e,t){var n=S?e:t;"auto"===v&&(x.current=setTimeout(n,C.current||0))},timeout:"auto"===v?null:v},w),(function(t,n){return e.cloneElement(r,a({style:a({opacity:0,transform:Jp(.75),visibility:"exited"!==t||l?void 0:"hidden"},$p[t],m,r.props.style),ref:P},n))}))}));eh.muiSupportAuto=!0;const th=eh;var nh=e.forwardRef((function(t,n){var r=t.classes,o=t.className,s=t.component,l=void 0===s?"div":s,c=t.square,u=void 0!==c&&c,d=t.elevation,p=void 0===d?1:d,h=t.variant,f=void 0===h?"elevation":h,m=i(t,["classes","className","component","square","elevation","variant"]);return e.createElement(l,a({className:fc(r.root,o,"outlined"===f?r.outlined:r["elevation".concat(p)],!u&&r.rounded),ref:n},m))}));const ih=yp((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),a({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(nh);function rh(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function oh(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ah(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function sh(e){return"function"==typeof e?e():e}var lh=e.forwardRef((function(t,n){var r=t.action,o=t.anchorEl,s=t.anchorOrigin,l=void 0===s?{vertical:"top",horizontal:"left"}:s,c=t.anchorPosition,u=t.anchorReference,d=void 0===u?"anchorEl":u,p=t.children,h=t.classes,f=t.className,m=t.container,g=t.elevation,v=void 0===g?8:g,y=t.getContentAnchorEl,b=t.marginThreshold,w=void 0===b?16:b,x=t.onEnter,C=t.onEntered,E=t.onEntering,S=t.onExit,T=t.onExited,A=t.onExiting,P=t.open,O=t.PaperProps,I=void 0===O?{}:O,R=t.transformOrigin,k=void 0===R?{vertical:"top",horizontal:"left"}:R,D=t.TransitionComponent,j=void 0===D?th:D,M=t.transitionDuration,N=void 0===M?"auto":M,L=t.TransitionProps,B=void 0===L?{}:L,F=i(t,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),z=e.useRef(),_=e.useCallback((function(e){if("anchorPosition"===d)return c;var t=sh(o),n=(t&&1===t.nodeType?t:mc(z.current).body).getBoundingClientRect(),i=0===e?l.vertical:"center";return{top:n.top+rh(n,i),left:n.left+oh(n,l.horizontal)}}),[o,l.horizontal,l.vertical,c,d]),H=e.useCallback((function(e){var t=0;if(y&&"anchorEl"===d){var n=y(e);if(n&&e.contains(n)){var i=function(e,t){for(var n=t,i=0;n&&n!==e;)i+=(n=n.parentElement).scrollTop;return i}(e,n);t=n.offsetTop+n.clientHeight/2-i||0}0}return t}),[l.vertical,d,y]),U=e.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:rh(e,k.vertical)+t,horizontal:oh(e,k.horizontal)}}),[k.horizontal,k.vertical]),V=e.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},i=U(n,t);if("none"===d)return{top:null,left:null,transformOrigin:ah(i)};var r=_(t),a=r.top-i.vertical,s=r.left-i.horizontal,l=a+n.height,c=s+n.width,u=wp(sh(o)),p=u.innerHeight-w,h=u.innerWidth-w;if(a<w){var f=a-w;a-=f,i.vertical+=f}else if(l>p){var m=l-p;a-=m,i.vertical+=m}if(s<w){var g=s-w;s-=g,i.horizontal+=g}else if(c>h){var v=c-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:ah(i)}}),[o,d,_,H,U,w]),W=e.useCallback((function(){var e=z.current;if(e){var t=V(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[V]),G=e.useCallback((function(e){z.current=ke.findDOMNode(e)}),[]);e.useEffect((function(){P&&W()})),e.useImperativeHandle(r,(function(){return P?{updatePosition:function(){W()}}:null}),[P,W]),e.useEffect((function(){if(P){var e=bp((function(){W()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[P,W]);var q=N;"auto"!==N||j.muiSupportAuto||(q=void 0);var Z=m||(o?mc(sh(o)).body:void 0);return e.createElement(zp,a({container:Z,open:P,ref:n,BackdropProps:{invisible:!0},className:fc(h.root,f)},F),e.createElement(j,a({appear:!0,in:P,onEnter:x,onEntered:C,onExit:S,onExited:T,onExiting:A,timeout:q},B,{onEntering:xp((function(e,t){E&&E(e,t),W()}),B.onEntering)}),e.createElement(ih,a({elevation:v,ref:G},I,{className:fc(h.paper,I.className)}),p)))}));const ch=yp({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(lh);const uh=e.createContext({});var dh=e.forwardRef((function(t,n){var r=t.children,o=t.classes,s=t.className,l=t.component,c=void 0===l?"ul":l,u=t.dense,d=void 0!==u&&u,p=t.disablePadding,h=void 0!==p&&p,f=t.subheader,m=i(t,["children","classes","className","component","dense","disablePadding","subheader"]),g=e.useMemo((function(){return{dense:d}}),[d]);return e.createElement(uh.Provider,{value:g},e.createElement(c,a({className:fc(o.root,s,d&&o.dense,!h&&o.padding,f&&o.subheader),ref:n},m),f,r))}));const ph=yp({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(dh);function hh(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function fh(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function mh(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function gh(e,t,n,i,r,o){for(var a=!1,s=r(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!i&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&mh(s,o)&&!l)return void s.focus();s=r(e,s,n)}}var vh="undefined"==typeof window?e.useEffect:e.useLayoutEffect,yh=e.forwardRef((function(t,n){var r=t.actions,o=t.autoFocus,s=void 0!==o&&o,l=t.autoFocusItem,c=void 0!==l&&l,u=t.children,d=t.className,p=t.disabledItemsFocusable,h=void 0!==p&&p,f=t.disableListWrap,m=void 0!==f&&f,g=t.onKeyDown,v=t.variant,y=void 0===v?"selectedMenu":v,b=i(t,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),w=e.useRef(null),x=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vh((function(){s&&w.current.focus()}),[s]),e.useImperativeHandle(r,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!w.current.style.width;if(e.clientHeight<w.current.clientHeight&&n){var i="".concat(Op(),"px");w.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=i,w.current.style.width="calc(100% + ".concat(i,")")}return w.current}}}),[]);var C=Ep(e.useCallback((function(e){w.current=ke.findDOMNode(e)}),[]),n),E=-1;e.Children.forEach(u,(function(t,n){e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===y&&t.props.selected||-1===E)&&(E=n))}));var S=e.Children.map(u,(function(t,n){if(n===E){var i={};return c&&(i.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===y&&(i.tabIndex=0),e.cloneElement(t,i)}return t}));return e.createElement(ph,a({role:"menu",ref:C,className:d,onKeyDown:function(e){var t=w.current,n=e.key,i=mc(t).activeElement;if("ArrowDown"===n)e.preventDefault(),gh(t,i,m,h,hh);else if("ArrowUp"===n)e.preventDefault(),gh(t,i,m,h,fh);else if("Home"===n)e.preventDefault(),gh(t,null,m,h,hh);else if("End"===n)e.preventDefault(),gh(t,null,m,h,fh);else if(1===n.length){var r=x.current,o=n.toLowerCase(),a=performance.now();r.keys.length>0&&(a-r.lastTime>500?(r.keys=[],r.repeating=!0,r.previousKeyMatched=!0):r.repeating&&o!==r.keys[0]&&(r.repeating=!1)),r.lastTime=a,r.keys.push(o);var s=i&&!r.repeating&&mh(i,r);r.previousKeyMatched&&(s||gh(t,i,!1,h,hh,r))?e.preventDefault():r.previousKeyMatched=!1}g&&g(e)},tabIndex:s?0:-1},b),S)}));const bh=yh;var wh={vertical:"top",horizontal:"right"},xh={vertical:"top",horizontal:"left"},Ch=e.forwardRef((function(t,n){var r=t.autoFocus,o=void 0===r||r,s=t.children,l=t.classes,c=t.disableAutoFocusItem,u=void 0!==c&&c,d=t.MenuListProps,p=void 0===d?{}:d,h=t.onClose,f=t.onEntering,m=t.open,g=t.PaperProps,v=void 0===g?{}:g,y=t.PopoverClasses,b=t.transitionDuration,w=void 0===b?"auto":b,x=t.TransitionProps,C=(x=void 0===x?{}:x).onEntering,E=i(x,["onEntering"]),S=t.variant,T=void 0===S?"selectedMenu":S,A=i(t,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),P=ge(),O=o&&!u&&m,I=e.useRef(null),R=e.useRef(null),k=-1;e.Children.map(s,(function(t,n){e.isValidElement(t)&&(t.props.disabled||("menu"!==T&&t.props.selected||-1===k)&&(k=n))}));var D=e.Children.map(s,(function(t,n){return n===k?e.cloneElement(t,{ref:function(e){R.current=ke.findDOMNode(e),Cp(t.ref,e)}}):t}));return e.createElement(ch,a({getContentAnchorEl:function(){return R.current},classes:y,onClose:h,TransitionProps:a({onEntering:function(e,t){I.current&&I.current.adjustStyleForScrollbar(e,P),f&&f(e,t),C&&C(e,t)}},E),anchorOrigin:"rtl"===P.direction?wh:xh,transformOrigin:"rtl"===P.direction?wh:xh,PaperProps:a({},v,{classes:a({},v.classes,{root:l.paper})}),open:m,ref:n,transitionDuration:w},A),e.createElement(bh,a({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),h&&h(e,"tabKeyDown"))},actions:I,autoFocus:o&&(-1===k||u),autoFocusItem:O,variant:T},p,{className:fc(l.list,p.className)}),D))}));const Eh=yp({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Ch);function Sh(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Th(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Sh(e.value)&&""!==e.value||t&&Sh(e.defaultValue)&&""!==e.defaultValue)}function Ah(e,t){return"object"===s(t)&&null!==t?e===t:String(e)===String(t)}var Ph=e.forwardRef((function(t,n){var r=t["aria-label"],o=t.autoFocus,s=t.autoWidth,l=t.children,c=t.classes,u=t.className,d=t.defaultValue,p=t.disabled,h=t.displayEmpty,m=t.IconComponent,g=t.inputRef,v=t.labelId,y=t.MenuProps,b=void 0===y?{}:y,w=t.multiple,x=t.name,C=t.onBlur,E=t.onChange,S=t.onClose,T=t.onFocus,A=t.onOpen,P=t.open,O=t.readOnly,I=t.renderValue,R=t.SelectDisplayProps,k=void 0===R?{}:R,D=t.tabIndex,j=(t.type,t.value),M=t.variant,N=void 0===M?"standard":M,L=i(t,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),B=function(t){var n=t.controlled,i=t.default,r=(t.name,t.state,e.useRef(void 0!==n).current),o=e.useState(i),a=o[0],s=o[1];return[r?n:a,e.useCallback((function(e){r||s(e)}),[])]}({controlled:j,default:d,name:"Select"}),F=V(B,2),z=F[0],_=F[1],H=e.useRef(null),U=e.useState(null),W=U[0],G=U[1],q=e.useRef(null!=P).current,Z=e.useState(),X=Z[0],Y=Z[1],K=e.useState(!1),Q=K[0],J=K[1],$=Ep(n,g);e.useImperativeHandle($,(function(){return{focus:function(){W.focus()},node:H.current,value:z}}),[W,z]),e.useEffect((function(){o&&W&&W.focus()}),[o,W]),e.useEffect((function(){if(W){var e=mc(W).getElementById(v);if(e){var t=function(){getSelection().isCollapsed&&W.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[v,W]);var ee,te,ne=function(e,t){e?A&&A(t):S&&S(t),q||(Y(s?null:W.clientWidth),J(e))},ie=e.Children.toArray(l),re=function(e){return function(t){var n;if(w||ne(!1,t),w){n=Array.isArray(z)?z.slice():[];var i=z.indexOf(e.props.value);-1===i?n.push(e.props.value):n.splice(i,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),z!==n&&(_(n),E&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:x}}),E(t,e)))}},oe=null!==W&&(q?P:Q);delete L["aria-invalid"];var ae=[],se=!1;(Th({value:z})||h)&&(I?ee=I(z):se=!0);var le=ie.map((function(t){if(!e.isValidElement(t))return null;var n;if(w){if(!Array.isArray(z))throw new Error(f(2));(n=z.some((function(e){return Ah(e,t.props.value)})))&&se&&ae.push(t.props.children)}else(n=Ah(z,t.props.value))&&se&&(te=t.props.children);return n&&!0,e.cloneElement(t,{"aria-selected":n?"true":void 0,onClick:re(t),onKeyUp:function(e){" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:n,value:void 0,"data-value":t.props.value})}));se&&(ee=w?ae.join(", "):te);var ce,ue=X;!s&&q&&W&&(ue=W.clientWidth),ce=void 0!==D?D:p?null:0;var de=k.id||(x?"mui-component-select-".concat(x):void 0);return e.createElement(e.Fragment,null,e.createElement("div",a({className:fc(c.root,c.select,c.selectMenu,c[N],u,p&&c.disabled),ref:G,tabIndex:ce,role:"button","aria-disabled":p?"true":void 0,"aria-expanded":oe?"true":void 0,"aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[v,de].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!O){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ne(!0,e))}},onMouseDown:p||O?null:function(e){0===e.button&&(e.preventDefault(),W.focus(),ne(!0,e))},onBlur:function(e){!oe&&C&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:z,name:x}}),C(e))},onFocus:T},k,{id:de}),function(e){return null==e||"string"==typeof e&&!e.trim()}(ee)?e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):ee),e.createElement("input",a({value:Array.isArray(z)?z.join(","):z,name:x,ref:H,"aria-hidden":!0,onChange:function(e){var t=ie.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=ie[t];_(n.props.value),E&&E(e,n)}},tabIndex:-1,className:c.nativeInput,autoFocus:o},L)),e.createElement(m,{className:fc(c.icon,c["icon".concat(gc(N))],oe&&c.iconOpen,p&&c.disabled)}),e.createElement(Eh,a({id:"menu-".concat(x||""),anchorEl:W,open:oe,onClose:function(e){ne(!1,e)}},b,{MenuListProps:a({"aria-labelledby":v,role:"listbox",disableListWrap:!0},b.MenuListProps),PaperProps:a({},b.PaperProps,{style:a({minWidth:ue},null!=b.PaperProps?b.PaperProps.style:null)})}),le))}));const Oh=Ph;function Ih(e){var t=e.props,n=e.states,i=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],i&&void 0===t[n]&&(e[n]=i[n]),e}),{})}var Rh=e.createContext();const kh=Rh;function Dh(){return e.useContext(kh)}var jh=e.forwardRef((function(t,n){var r=t.children,o=t.classes,s=t.className,l=t.color,c=void 0===l?"inherit":l,u=t.component,d=void 0===u?"svg":u,p=t.fontSize,h=void 0===p?"medium":p,f=t.htmlColor,m=t.titleAccess,g=t.viewBox,v=void 0===g?"0 0 24 24":g,y=i(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return e.createElement(d,a({className:fc(o.root,s,"inherit"!==c&&o["color".concat(gc(c))],"default"!==h&&"medium"!==h&&o["fontSize".concat(gc(h))]),focusable:"false",viewBox:v,color:f,"aria-hidden":!m||void 0,role:m?"img":void 0,ref:n},y),r,m?e.createElement("title",null,m):null)}));jh.muiName="SvgIcon";const Mh=yp((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(jh);const Nh=(Lh=e.createElement("path",{d:"M7 10l5 5 5-5z"}),(Bh=function(e,n){return t().createElement(Mh,a({ref:n},e),Lh)}).muiName=Mh.muiName,t().memo(t().forwardRef(Bh)));var Lh,Bh;function Fh(e,t){return parseInt(e[t],10)||0}var zh="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,_h={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Hh=e.forwardRef((function(t,n){var r=t.onChange,o=t.rows,s=t.rowsMax,l=t.rowsMin,c=t.maxRows,u=t.minRows,d=void 0===u?1:u,p=t.style,h=t.value,f=i(t,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),m=c||s,g=o||l||d,v=e.useRef(null!=h).current,y=e.useRef(null),b=Ep(n,y),w=e.useRef(null),x=e.useRef(0),C=e.useState({}),E=C[0],S=C[1],T=e.useCallback((function(){var e=y.current,n=window.getComputedStyle(e),i=w.current;i.style.width=n.width,i.value=e.value||t.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");var r=n["box-sizing"],o=Fh(n,"padding-bottom")+Fh(n,"padding-top"),a=Fh(n,"border-bottom-width")+Fh(n,"border-top-width"),s=i.scrollHeight-o;i.value="x";var l=i.scrollHeight-o,c=s;g&&(c=Math.max(Number(g)*l,c)),m&&(c=Math.min(Number(m)*l,c));var u=(c=Math.max(c,l))+("border-box"===r?o+a:0),d=Math.abs(c-s)<=1;S((function(e){return x.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==d)?(x.current+=1,{overflow:d,outerHeightStyle:u}):e}))}),[m,g,t.placeholder]);e.useEffect((function(){var e=bp((function(){x.current=0,T()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[T]),zh((function(){T()})),e.useEffect((function(){x.current=0}),[h]);return e.createElement(e.Fragment,null,e.createElement("textarea",a({value:h,onChange:function(e){x.current=0,v||T(),r&&r(e)},ref:b,rows:g,style:a({height:E.outerHeightStyle,overflow:E.overflow?"hidden":null},p)},f)),e.createElement("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:a({},_h,p)}))}));const Uh=Hh;var Vh="undefined"==typeof window?e.useEffect:e.useLayoutEffect,Wh=e.forwardRef((function(t,n){var r=t["aria-describedby"],o=t.autoComplete,s=t.autoFocus,l=t.classes,c=t.className,u=(t.color,t.defaultValue),d=t.disabled,p=t.endAdornment,h=(t.error,t.fullWidth),m=void 0!==h&&h,g=t.id,v=t.inputComponent,y=void 0===v?"input":v,b=t.inputProps,w=void 0===b?{}:b,x=t.inputRef,C=(t.margin,t.multiline),E=void 0!==C&&C,S=t.name,T=t.onBlur,A=t.onChange,P=t.onClick,O=t.onFocus,I=t.onKeyDown,R=t.onKeyUp,k=t.placeholder,D=t.readOnly,j=t.renderSuffix,M=t.rows,N=t.rowsMax,L=t.rowsMin,B=t.maxRows,F=t.minRows,z=t.startAdornment,_=t.type,H=void 0===_?"text":_,U=t.value,V=i(t,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),W=null!=w.value?w.value:U,G=e.useRef(null!=W).current,q=e.useRef(),Z=e.useCallback((function(e){0}),[]),X=Ep(w.ref,Z),Y=Ep(x,X),K=Ep(q,Y),Q=e.useState(!1),J=Q[0],$=Q[1],ee=e.useContext(Rh);var te=Ih({props:t,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});te.focused=ee?ee.focused:J,e.useEffect((function(){!ee&&d&&J&&($(!1),T&&T())}),[ee,d,J,T]);var ne=ee&&ee.onFilled,ie=ee&&ee.onEmpty,re=e.useCallback((function(e){Th(e)?ne&&ne():ie&&ie()}),[ne,ie]);Vh((function(){G&&re({value:W})}),[W,re,G]);e.useEffect((function(){re(q.current)}),[]);var oe=y,ae=a({},w,{ref:K});"string"!=typeof oe?ae=a({inputRef:K,type:H},ae,{ref:null}):E?!M||B||F||N||L?(ae=a({minRows:M||F,rowsMax:N,maxRows:B},ae),oe=Uh):oe="textarea":ae=a({type:H},ae);return e.useEffect((function(){ee&&ee.setAdornedStart(Boolean(z))}),[ee,z]),e.createElement("div",a({className:fc(l.root,l["color".concat(gc(te.color||"primary"))],c,te.disabled&&l.disabled,te.error&&l.error,m&&l.fullWidth,te.focused&&l.focused,ee&&l.formControl,E&&l.multiline,z&&l.adornedStart,p&&l.adornedEnd,"dense"===te.margin&&l.marginDense),onClick:function(e){q.current&&e.currentTarget===e.target&&q.current.focus(),P&&P(e)},ref:n},V),z,e.createElement(kh.Provider,{value:null},e.createElement(oe,a({"aria-invalid":te.error,"aria-describedby":r,autoComplete:o,autoFocus:s,defaultValue:u,disabled:te.disabled,id:g,onAnimationStart:function(e){re("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:S,placeholder:k,readOnly:D,required:te.required,rows:M,value:W,onKeyDown:I,onKeyUp:R},ae,{className:fc(l.input,w.className,te.disabled&&l.disabled,E&&l.inputMultiline,te.hiddenLabel&&l.inputHiddenLabel,z&&l.inputAdornedStart,p&&l.inputAdornedEnd,"search"===H&&l.inputTypeSearch,"dense"===te.margin&&l.inputMarginDense),onBlur:function(e){T&&T(e),w.onBlur&&w.onBlur(e),ee&&ee.onBlur?ee.onBlur(e):$(!1)},onChange:function(e){if(!G){var t=e.target||q.current;if(null==t)throw new Error(f(1));re({value:t.value})}for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];w.onChange&&w.onChange.apply(w,[e].concat(i)),A&&A.apply(void 0,[e].concat(i))},onFocus:function(e){te.disabled?e.stopPropagation():(O&&O(e),w.onFocus&&w.onFocus(e),ee&&ee.onFocus?ee.onFocus(e):$(!0))}}))),p,j?j(a({},te,{startAdornment:z})):null)}));const Gh=yp((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},r={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:a({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus:-ms-input-placeholder":r,"&:focus::-ms-input-placeholder":r},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(Wh);var qh=e.forwardRef((function(t,n){var r=t.disableUnderline,o=t.classes,s=t.fullWidth,l=void 0!==s&&s,c=t.inputComponent,u=void 0===c?"input":c,d=t.multiline,p=void 0!==d&&d,h=t.type,f=void 0===h?"text":h,m=i(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return e.createElement(Gh,a({classes:a({},o,{root:fc(o.root,!r&&o.underline),underline:null}),fullWidth:l,inputComponent:u,multiline:p,ref:n,type:f},m))}));qh.muiName="Input";const Zh=yp((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(qh);const Xh=e.forwardRef((function(t,n){var r=t.classes,o=t.className,s=t.disabled,l=t.IconComponent,c=t.inputRef,u=t.variant,d=void 0===u?"standard":u,p=i(t,["classes","className","disabled","IconComponent","inputRef","variant"]);return e.createElement(e.Fragment,null,e.createElement("select",a({className:fc(r.root,r.select,r[d],o,s&&r.disabled),disabled:s,ref:c||n},p)),t.multiple?null:e.createElement(l,{className:fc(r.icon,r["icon".concat(gc(d))],s&&r.disabled)}))}));var Yh=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},Kh=e.createElement(Zh,null),Qh=e.forwardRef((function(t,n){var r=t.children,o=t.classes,s=t.IconComponent,l=void 0===s?Nh:s,c=t.input,u=void 0===c?Kh:c,d=t.inputProps,p=(t.variant,i(t,["children","classes","IconComponent","input","inputProps","variant"])),h=Ih({props:t,muiFormControl:Dh(),states:["variant"]});return e.cloneElement(u,a({inputComponent:Xh,inputProps:a({children:r,classes:o,IconComponent:l,variant:h.variant,type:void 0},d,u?u.props.inputProps:{}),ref:n},p))}));Qh.muiName="Select";yp(Yh,{name:"MuiNativeSelect"})(Qh);var Jh=e.forwardRef((function(t,n){var r=t.disableUnderline,o=t.classes,s=t.fullWidth,l=void 0!==s&&s,c=t.inputComponent,u=void 0===c?"input":c,d=t.multiline,p=void 0!==d&&d,h=t.type,f=void 0===h?"text":h,m=i(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return e.createElement(Gh,a({classes:a({},o,{root:fc(o.root,!r&&o.underline),underline:null}),fullWidth:l,inputComponent:u,multiline:p,ref:n,type:f},m))}));Jh.muiName="Input";const $h=yp((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:i,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:i}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(Jh);var ef=e.forwardRef((function(t,n){t.children;var r=t.classes,o=t.className,s=t.label,l=t.labelWidth,c=t.notched,u=t.style,d=i(t,["children","classes","className","label","labelWidth","notched","style"]),h="rtl"===ge().direction?"right":"left";if(void 0!==s)return e.createElement("fieldset",a({"aria-hidden":!0,className:fc(r.root,o),ref:n,style:u},d),e.createElement("legend",{className:fc(r.legendLabelled,c&&r.legendNotched)},s?e.createElement("span",null,s):e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var f=l>0?.75*l+8:.01;return e.createElement("fieldset",a({"aria-hidden":!0,style:a(p({},"padding".concat(gc(h)),8),u),className:fc(r.root,o),ref:n},d),e.createElement("legend",{className:r.legend,style:{width:c?f:.01}},e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))}));const tf=yp((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(ef);var nf=e.forwardRef((function(t,n){var r=t.classes,o=t.fullWidth,s=void 0!==o&&o,l=t.inputComponent,c=void 0===l?"input":l,u=t.label,d=t.labelWidth,p=void 0===d?0:d,h=t.multiline,f=void 0!==h&&h,m=t.notched,g=t.type,v=void 0===g?"text":g,y=i(t,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return e.createElement(Gh,a({renderSuffix:function(t){return e.createElement(tf,{className:r.notchedOutline,label:u,labelWidth:p,notched:void 0!==m?m:Boolean(t.startAdornment||t.filled||t.focused)})},classes:a({},r,{root:fc(r.root,r.underline),notchedOutline:null}),fullWidth:s,inputComponent:c,multiline:f,ref:n,type:v},y))}));nf.muiName="Input";const rf=yp((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(nf);var of=Yh,af=e.createElement(Zh,null),sf=e.createElement($h,null),lf=e.forwardRef((function t(n,r){var o=n.autoWidth,s=void 0!==o&&o,l=n.children,c=n.classes,u=n.displayEmpty,d=void 0!==u&&u,p=n.IconComponent,h=void 0===p?Nh:p,f=n.id,m=n.input,g=n.inputProps,v=n.label,y=n.labelId,b=n.labelWidth,w=void 0===b?0:b,x=n.MenuProps,C=n.multiple,E=void 0!==C&&C,S=n.native,T=void 0!==S&&S,A=n.onClose,P=n.onOpen,O=n.open,I=n.renderValue,R=n.SelectDisplayProps,k=n.variant,D=void 0===k?"standard":k,j=i(n,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),M=T?Xh:Oh,N=Ih({props:n,muiFormControl:Dh(),states:["variant"]}).variant||D,L=m||{standard:af,outlined:e.createElement(rf,{label:v,labelWidth:w}),filled:sf}[N];return e.cloneElement(L,a({inputComponent:M,inputProps:a({children:l,IconComponent:h,variant:N,type:void 0,multiple:E},T?{id:f}:{autoWidth:s,displayEmpty:d,labelId:y,MenuProps:x,onClose:A,onOpen:P,open:O,renderValue:I,SelectDisplayProps:a({id:f},R)},g,{classes:g?pc({baseClasses:c,newClasses:g.classes,Component:t}):c},m?m.props.inputProps:{}),ref:r},j))}));lf.muiName="Select";const cf=yp(of,{name:"MuiSelect"})(lf);var uf=!0,df=!1,pf=null,hf={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ff(e){e.metaKey||e.altKey||e.ctrlKey||(uf=!0)}function mf(){uf=!1}function gf(){"hidden"===this.visibilityState&&df&&(uf=!0)}function vf(e){var t,n,i,r=e.target;try{return r.matches(":focus-visible")}catch(e){}return uf||(n=(t=r).type,!("INPUT"!==(i=t.tagName)||!hf[n]||t.readOnly)||"TEXTAREA"===i&&!t.readOnly||!!t.isContentEditable)}function yf(){df=!0,window.clearTimeout(pf),pf=window.setTimeout((function(){df=!1}),100)}function bf(){return{isFocusVisible:vf,onBlurVisible:yf,ref:e.useCallback((function(e){var t,n=ke.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",ff,!0),t.addEventListener("mousedown",mf,!0),t.addEventListener("pointerdown",mf,!0),t.addEventListener("touchstart",mf,!0),t.addEventListener("visibilitychange",gf,!0))}),[])}}function wf(t,n){var i=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){i[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),i}function xf(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Cf(t,n,i){var r=wf(t.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var i,r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var c=r[l][i];s[r[l][i]]=n(c)}s[l]=n(l)}for(i=0;i<o.length;i++)s[o[i]]=n(o[i]);return s}(n,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,e.isValidElement)(s)){var l=a in n,c=a in r,u=n[a],d=(0,e.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,e.isValidElement)(u)&&(o[a]=(0,e.cloneElement)(s,{onExited:i.bind(null,s),in:u.props.in,exit:xf(s,"exit",t),enter:xf(s,"enter",t)})):o[a]=(0,e.cloneElement)(s,{in:!1}):o[a]=(0,e.cloneElement)(s,{onExited:i.bind(null,s),in:!0,exit:xf(s,"exit",t),enter:xf(s,"enter",t)})}})),o}var Ef=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Sf=function(i){function r(e,t){var n,r=(n=i.call(this,e,t)||this).handleExited.bind(Ec(n));return n.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},n}Cc(r,i);var o=r.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,n){var i,r,o=n.children,a=n.handleExited;return{children:n.firstRender?(i=t,r=a,wf(i.children,(function(t){return(0,e.cloneElement)(t,{onExited:r.bind(null,t),in:!0,appear:xf(t,"appear",i),enter:xf(t,"enter",i),exit:xf(t,"exit",i)})}))):Cf(t,o,a),firstRender:!1}},o.handleExited=function(e,t){var n=wf(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=a({},t.children);return delete n[e.key],{children:n}})))},o.render=function(){var e=this.props,i=e.component,r=e.childFactory,o=n(e,["component","childFactory"]),a=this.state.contextValue,s=Ef(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===i?t().createElement(Hp.Provider,{value:a},s):t().createElement(Hp.Provider,{value:a},t().createElement(i,o,s))},r}(t().Component);Sf.propTypes={},Sf.defaultProps={component:"div",childFactory:function(e){return e}};const Tf=Sf;var Af="undefined"==typeof window?e.useEffect:e.useLayoutEffect;const Pf=function(t){var n=t.classes,i=t.pulsate,r=void 0!==i&&i,o=t.rippleX,a=t.rippleY,s=t.rippleSize,l=t.in,c=t.onExited,u=void 0===c?function(){}:c,d=t.timeout,p=e.useState(!1),h=p[0],f=p[1],m=fc(n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-s/2+a,left:-s/2+o},v=fc(n.child,h&&n.childLeaving,r&&n.childPulsate),y=Pp(u);return Af((function(){if(!l){f(!0);var e=setTimeout(y,d);return function(){clearTimeout(e)}}}),[y,l,d]),e.createElement("span",{className:m,style:g},e.createElement("span",{className:v}))};var Of=e.forwardRef((function(t,n){var r=t.center,o=void 0!==r&&r,s=t.classes,l=t.className,c=i(t,["center","classes","className"]),u=e.useState([]),d=u[0],p=u[1],h=e.useRef(0),f=e.useRef(null);e.useEffect((function(){f.current&&(f.current(),f.current=null)}),[d]);var m=e.useRef(!1),g=e.useRef(null),v=e.useRef(null),y=e.useRef(null);e.useEffect((function(){return function(){clearTimeout(g.current)}}),[]);var b=e.useCallback((function(t){var n=t.pulsate,i=t.rippleX,r=t.rippleY,o=t.rippleSize,a=t.cb;p((function(t){return[].concat(hd(t),[e.createElement(Pf,{key:h.current,classes:s,timeout:550,pulsate:n,rippleX:i,rippleY:r,rippleSize:o})])})),h.current+=1,f.current=a}),[s]),w=e.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,r=void 0!==i&&i,a=t.center,s=void 0===a?o||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&m.current)m.current=!1;else{"touchstart"===e.type&&(m.current=!0);var u,d,p,h=c?null:y.current,f=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(f.width/2),d=Math.round(f.height/2);else{var w=e.touches?e.touches[0]:e,x=w.clientX,C=w.clientY;u=Math.round(x-f.left),d=Math.round(C-f.top)}if(s)(p=Math.sqrt((2*Math.pow(f.width,2)+Math.pow(f.height,2))/3))%2==0&&(p+=1);else{var E=2*Math.max(Math.abs((h?h.clientWidth:0)-u),u)+2,S=2*Math.max(Math.abs((h?h.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(E,2)+Math.pow(S,2))}e.touches?null===v.current&&(v.current=function(){b({pulsate:r,rippleX:u,rippleY:d,rippleSize:p,cb:n})},g.current=setTimeout((function(){v.current&&(v.current(),v.current=null)}),80)):b({pulsate:r,rippleX:u,rippleY:d,rippleSize:p,cb:n})}}),[o,b]),x=e.useCallback((function(){w({},{pulsate:!0})}),[w]),C=e.useCallback((function(e,t){if(clearTimeout(g.current),"touchend"===e.type&&v.current)return e.persist(),v.current(),v.current=null,void(g.current=setTimeout((function(){C(e,t)})));v.current=null,p((function(e){return e.length>0?e.slice(1):e})),f.current=t}),[]);return e.useImperativeHandle(n,(function(){return{pulsate:x,start:w,stop:C}}),[x,w,C]),e.createElement("span",a({className:fc(s.root,l),ref:y},c),e.createElement(Tf,{component:null,exit:!0},d))}));const If=yp((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(e.memo(Of));var Rf=e.forwardRef((function(t,n){var r=t.action,o=t.buttonRef,s=t.centerRipple,l=void 0!==s&&s,c=t.children,u=t.classes,d=t.className,p=t.component,h=void 0===p?"button":p,f=t.disabled,m=void 0!==f&&f,g=t.disableRipple,v=void 0!==g&&g,y=t.disableTouchRipple,b=void 0!==y&&y,w=t.focusRipple,x=void 0!==w&&w,C=t.focusVisibleClassName,E=t.onBlur,S=t.onClick,T=t.onFocus,A=t.onFocusVisible,P=t.onKeyDown,O=t.onKeyUp,I=t.onMouseDown,R=t.onMouseLeave,k=t.onMouseUp,D=t.onTouchEnd,j=t.onTouchMove,M=t.onTouchStart,N=t.onDragLeave,L=t.tabIndex,B=void 0===L?0:L,F=t.TouchRippleProps,z=t.type,_=void 0===z?"button":z,H=i(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),U=e.useRef(null);var V=e.useRef(null),W=e.useState(!1),G=W[0],q=W[1];m&&G&&q(!1);var Z=bf(),X=Z.isFocusVisible,Y=Z.onBlurVisible,K=Z.ref;function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;return Pp((function(i){return t&&t(i),!n&&V.current&&V.current[e](i),!0}))}e.useImperativeHandle(r,(function(){return{focusVisible:function(){q(!0),U.current.focus()}}}),[]),e.useEffect((function(){G&&x&&!v&&V.current.pulsate()}),[v,x,G]);var J=Q("start",I),$=Q("stop",N),ee=Q("stop",k),te=Q("stop",(function(e){G&&e.preventDefault(),R&&R(e)})),ne=Q("start",M),ie=Q("stop",D),re=Q("stop",j),oe=Q("stop",(function(e){G&&(Y(e),q(!1)),E&&E(e)}),!1),ae=Pp((function(e){U.current||(U.current=e.currentTarget),X(e)&&(q(!0),A&&A(e)),T&&T(e)})),se=function(){var e=ke.findDOMNode(U.current);return h&&"button"!==h&&!("A"===e.tagName&&e.href)},le=e.useRef(!1),ce=Pp((function(e){x&&!le.current&&G&&V.current&&" "===e.key&&(le.current=!0,e.persist(),V.current.stop(e,(function(){V.current.start(e)}))),e.target===e.currentTarget&&se()&&" "===e.key&&e.preventDefault(),P&&P(e),e.target===e.currentTarget&&se()&&"Enter"===e.key&&!m&&(e.preventDefault(),S&&S(e))})),ue=Pp((function(e){x&&" "===e.key&&V.current&&G&&!e.defaultPrevented&&(le.current=!1,e.persist(),V.current.stop(e,(function(){V.current.pulsate(e)}))),O&&O(e),S&&e.target===e.currentTarget&&se()&&" "===e.key&&!e.defaultPrevented&&S(e)})),de=h;"button"===de&&H.href&&(de="a");var pe={};"button"===de?(pe.type=_,pe.disabled=m):("a"===de&&H.href||(pe.role="button"),pe["aria-disabled"]=m);var he=Ep(o,n),fe=Ep(K,U),me=Ep(he,fe),ge=e.useState(!1),ve=ge[0],ye=ge[1];e.useEffect((function(){ye(!0)}),[]);var be=ve&&!v&&!m;return e.createElement(de,a({className:fc(u.root,d,G&&[u.focusVisible,C],m&&u.disabled),onBlur:oe,onClick:S,onFocus:ae,onKeyDown:ce,onKeyUp:ue,onMouseDown:J,onMouseLeave:te,onMouseUp:ee,onDragLeave:$,onTouchEnd:ie,onTouchMove:re,onTouchStart:ne,ref:me,tabIndex:m?-1:B},pe,H),c,be?e.createElement(If,a({ref:V,center:l},F)):null)}));const kf=yp({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Rf);var Df="undefined"==typeof window?e.useEffect:e.useLayoutEffect,jf=e.forwardRef((function(t,n){var r=t.alignItems,o=void 0===r?"center":r,s=t.autoFocus,l=void 0!==s&&s,c=t.button,u=void 0!==c&&c,d=t.children,p=t.classes,h=t.className,f=t.component,m=t.ContainerComponent,g=void 0===m?"li":m,v=t.ContainerProps,y=(v=void 0===v?{}:v).className,b=i(v,["className"]),w=t.dense,x=void 0!==w&&w,C=t.disabled,E=void 0!==C&&C,S=t.disableGutters,T=void 0!==S&&S,A=t.divider,P=void 0!==A&&A,O=t.focusVisibleClassName,I=t.selected,R=void 0!==I&&I,k=i(t,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),D=e.useContext(uh),j={dense:x||D.dense||!1,alignItems:o},M=e.useRef(null);Df((function(){l&&M.current&&M.current.focus()}),[l]);var N,L,B=e.Children.toArray(d),F=B.length&&(N=B[B.length-1],L=["ListItemSecondaryAction"],e.isValidElement(N)&&-1!==L.indexOf(N.type.muiName)),z=Ep(e.useCallback((function(e){M.current=ke.findDOMNode(e)}),[]),n),_=a({className:fc(p.root,h,j.dense&&p.dense,!T&&p.gutters,P&&p.divider,E&&p.disabled,u&&p.button,"center"!==o&&p.alignItemsFlexStart,F&&p.secondaryAction,R&&p.selected),disabled:E},k),H=f||"li";return u&&(_.component=f||"div",_.focusVisibleClassName=fc(p.focusVisible,O),H=kf),F?(H=_.component||f?H:"div","li"===g&&("li"===H?H="div":"li"===_.component&&(_.component="div")),e.createElement(uh.Provider,{value:j},e.createElement(g,a({className:fc(p.container,y),ref:z},b),e.createElement(H,_,B),B.pop()))):e.createElement(uh.Provider,{value:j},e.createElement(H,a({ref:z},_),B))}));const Mf=yp((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(jf);var Nf=e.forwardRef((function(t,n){var r,o=t.classes,s=t.className,l=t.component,c=void 0===l?"li":l,u=t.disableGutters,d=void 0!==u&&u,p=t.ListItemClasses,h=t.role,f=void 0===h?"menuitem":h,m=t.selected,g=t.tabIndex,v=i(t,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return t.disabled||(r=void 0!==g?g:-1),e.createElement(Mf,a({button:!0,role:f,tabIndex:r,component:c,selected:m,disableGutters:d,classes:a({dense:o.dense},p),className:fc(o.root,s,m&&o.selected,!d&&o.gutters),ref:n},v))}));const Lf=yp((function(e){return{root:a({},e.typography.body1,p({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:a({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(Nf);function Bf(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ff(i.key),i)}}function Ff(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function zf(e,t){return zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zf(e,t)}function _f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Uf(e);if(t){var r=Uf(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Hf(e)}(this,n)}}function Hf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uf(e){return Uf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uf(e)}const Vf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zf(e,t)}(a,e);var n,i,r,o=_f(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).handleSubmit=t.handleSubmit.bind(Hf(t)),t.state={textInput:""},t}return n=a,(i=[{key:"handleSubmit",value:function(e){e.preventDefault();var t=new FormData(e.target).get("folioID");this.props.submitHandler(t,this.props.side),this.props.blurHandler(),this.setState({textInput:""})}},{key:"componentDidUpdate",value:function(e){if(this.props.isVisible){var t=document.createElement("script"),n="".concat(this.props.side,"_jumpInput");t.innerHTML="setTimeout(function() { document.getElementById('".concat(n,"').focus(); }, 250);"),document.body.appendChild(t)}}},{key:"handleChange",value:function(e){this.setState({textInput:e.target.value})}},{key:"render",value:function(){var e={position:"fixed",zIndex:1,top:this.props.positionY,left:this.props.positionX,display:this.props.isVisible?"inline":"none"},n="".concat(this.props.side,"_jumpInput");return t().createElement("div",{className:"jumpToFolio_component",style:e},t().createElement("form",{onSubmit:this.handleSubmit},t().createElement("input",{placeholder:"Page Name (e.g. '3r')",value:this.state.textInput,id:n,name:"folioID",type:"text",onChange:this.handleChange.bind(this),onBlur:this.props.blurHandler})))}}])&&Bf(n.prototype,i),r&&Bf(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);var Wf={transcriptionTypeLabels:{tc:"Diplomatic (FR)",tcn:"Normalized (FR)",tl:"Translation (EN)",f:"Facsimile",anno:"Research Esssay",glossary:"Glossary"}};const Gf=Wf;var qf="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Zf=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(qf&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var Xf=qf&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Zf))}};function Yf(e){return e&&"[object Function]"==={}.toString.call(e)}function Kf(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Qf(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Jf(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Kf(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?e:Jf(Qf(e))}function $f(e){return e&&e.referenceNode?e.referenceNode:e}var em=qf&&!(!window.MSInputMethodContext||!document.documentMode),tm=qf&&/MSIE 10/.test(navigator.userAgent);function nm(e){return 11===e?em:10===e?tm:em||tm}function im(e){if(!e)return document.documentElement;for(var t=nm(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Kf(n,"position")?im(n):n:e?e.ownerDocument.documentElement:document.documentElement}function rm(e){return null!==e.parentNode?rm(e.parentNode):e}function om(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||i.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&im(a.firstElementChild)!==a?im(l):l;var c=rm(e);return c.host?om(c.host,t):om(e,rm(t).host)}function am(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[t]}return e[t]}function sm(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function lm(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],nm(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function cm(e){var t=e.body,n=e.documentElement,i=nm(10)&&getComputedStyle(n);return{height:lm("Height",t,n,i),width:lm("Width",t,n,i)}}var um=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),dm=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},pm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function hm(e){return pm({},e,{right:e.left+e.width,bottom:e.top+e.height})}function fm(e){var t={};try{if(nm(10)){t=e.getBoundingClientRect();var n=am(e,"top"),i=am(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?cm(e.ownerDocument):{},a=o.width||e.clientWidth||r.width,s=o.height||e.clientHeight||r.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=Kf(e);l-=sm(u,"x"),c-=sm(u,"y"),r.width-=l,r.height-=c}return hm(r)}function mm(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=nm(10),r="HTML"===t.nodeName,o=fm(e),a=fm(t),s=Jf(e),l=Kf(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=hm({top:o.top-a.top-c,left:o.left-a.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!i&&r){var p=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-h,d.right-=u-h,d.marginTop=p,d.marginLeft=h}return(i&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=am(t,"top"),r=am(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}(d,t)),d}function gm(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Kf(e,"position"))return!0;var n=Qf(e);return!!n&&gm(n)}function vm(e){if(!e||!e.parentElement||nm())return document.documentElement;for(var t=e.parentElement;t&&"none"===Kf(t,"transform");)t=t.parentElement;return t||document.documentElement}function ym(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=r?vm(e):om(e,$f(t));if("viewport"===i)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=mm(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:am(n),s=t?0:am(n,"left");return hm({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o})}(a,r);else{var s=void 0;"scrollParent"===i?"BODY"===(s=Jf(Qf(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===i?e.ownerDocument.documentElement:i;var l=mm(s,a,r);if("HTML"!==s.nodeName||gm(a))o=l;else{var c=cm(e.ownerDocument),u=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var p="number"==typeof(n=n||0);return o.left+=p?n:n.left||0,o.top+=p?n:n.top||0,o.right-=p?n:n.right||0,o.bottom-=p?n:n.bottom||0,o}function bm(e){return e.width*e.height}function wm(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=ym(n,i,o,r),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return pm({key:e},s[e],{area:bm(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function xm(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return mm(n,i?vm(t):om(t,$f(n)),i)}function Cm(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function Em(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Sm(e,t,n){n=n.split("-")[0];var i=Cm(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[a]=t[a]+t[l]/2-i[l]/2,r[s]=n===s?t[s]-i[c]:t[Em(s)],r}function Tm(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Am(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var i=Tm(e,(function(e){return e[t]===n}));return e.indexOf(i)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Yf(n)&&(t.offsets.popper=hm(t.offsets.popper),t.offsets.reference=hm(t.offsets.reference),t=n(t,e))})),t}function Pm(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=xm(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=wm(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Sm(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Am(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Om(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Im(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==document.body.style[o])return o}return null}function Rm(){return this.state.isDestroyed=!0,Om(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Im("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function km(e){var t=e.ownerDocument;return t?t.defaultView:window}function Dm(e,t,n,i){var r="BODY"===e.nodeName,o=r?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),r||Dm(Jf(o.parentNode),t,n,i),i.push(o)}function jm(e,t,n,i){n.updateBound=i,km(e).addEventListener("resize",n.updateBound,{passive:!0});var r=Jf(e);return Dm(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function Mm(){this.state.eventsEnabled||(this.state=jm(this.reference,this.options,this.state,this.scheduleUpdate))}function Nm(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,km(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Lm(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Bm(e,t){Object.keys(t).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Lm(t[n])&&(i="px"),e.style[n]=t[n]+i}))}var Fm=qf&&/Firefox/i.test(navigator.userAgent);function zm(e,t,n){var i=Tm(e,(function(e){return e.name===t})),r=!!i&&e.some((function(e){return e.name===n&&e.enabled&&e.order<i.order}));if(!r){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}var _m=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Hm=_m.slice(3);function Um(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Hm.indexOf(e),i=Hm.slice(n+1).concat(Hm.slice(0,n));return t?i.reverse():i}var Vm="flip",Wm="clockwise",Gm="counterclockwise";function qm(e,t,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(Tm(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map((function(e,i){var r=(1===i?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return e;if(0===a.indexOf("%")){return hm("%p"===a?n:i)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,r,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,i){Lm(n)&&(r[t]+=n*("-"===e[i-1]?-1:1))}))})),r}var Zm={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,o=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:dm({},l,o[l]),end:dm({},l,o[l]+o[c]-a[c])};e.offsets.popper=pm({},a,u[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,r=e.offsets,o=r.popper,a=r.reference,s=i.split("-")[0],l=void 0;return l=Lm(+n)?[+n,0]:qm(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||im(e.instance.popper);e.instance.reference===n&&(n=im(n));var i=Im("transform"),r=e.instance.popper.style,o=r.top,a=r.left,s=r[i];r.top="",r.left="",r[i]="";var l=ym(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=o,r.left=a,r[i]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),dm({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(i=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),dm({},n,i)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=pm({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<o(i[l])&&(e.offsets.popper[l]=o(i[l])-n[c]),n[l]>o(i[s])&&(e.offsets.popper[l]=o(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!zm(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",f=Cm(i)[c];s[h]-f<a[d]&&(e.offsets.popper[d]-=a[d]-(s[h]-f)),s[d]+f>a[h]&&(e.offsets.popper[d]+=s[d]+f-a[h]),e.offsets.popper=hm(e.offsets.popper);var m=s[d]+s[c]/2-f/2,g=Kf(e.instance.popper),v=parseFloat(g["margin"+u]),y=parseFloat(g["border"+u+"Width"]),b=m-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(a[c]-f,b),0),e.arrowElement=i,e.offsets.arrow=(dm(n={},d,Math.round(b)),dm(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Om(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=ym(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],r=Em(i),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Vm:a=[i,r];break;case Wm:a=Um(i);break;case Gm:a=Um(i,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return e;i=e.placement.split("-")[0],r=Em(i);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),h=d(c.left)<d(n.left),f=d(c.right)>d(n.right),m=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),v="left"===i&&h||"right"===i&&f||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),b=!!t.flipVariations&&(y&&"start"===o&&h||y&&"end"===o&&f||!y&&"start"===o&&m||!y&&"end"===o&&g),w=!!t.flipVariationsByContent&&(y&&"start"===o&&f||y&&"end"===o&&h||!y&&"start"===o&&g||!y&&"end"===o&&m),x=b||w;(p||v||x)&&(e.flipped=!0,(p||v)&&(i=a[l+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=pm({},e.offsets.popper,Sm(e.instance.popper,e.offsets.reference,e.placement)),e=Am(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),e.placement=Em(t),e.offsets.popper=hm(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!zm(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Tm(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,r=e.offsets.popper,o=Tm(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=im(e.instance.popper),l=fm(s),c={position:r.position},u=function(e,t){var n=e.offsets,i=n.popper,r=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},l=o(r.width),c=o(i.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?o:a:s,h=t?o:s;return{left:p(l%2==1&&c%2==1&&!d&&t?i.left-1:i.left),top:h(i.top),bottom:h(i.bottom),right:p(i.right)}}(e,window.devicePixelRatio<2||!Fm),d="bottom"===n?"top":"bottom",p="right"===i?"left":"right",h=Im("transform"),f=void 0,m=void 0;if(m="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,f="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&h)c[h]="translate3d("+f+"px, "+m+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,v="right"===p?-1:1;c[d]=m*g,c[p]=f*v,c.willChange=d+", "+p}var y={"x-placement":e.placement};return e.attributes=pm({},y,e.attributes),e.styles=pm({},c,e.styles),e.arrowStyles=pm({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Bm(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Bm(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,r){var o=xm(r,t,e,n.positionFixed),a=wm(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Bm(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},Xm={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Zm},Ym=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Xf(this.update.bind(this)),this.options=pm({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(pm({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){i.options.modifiers[t]=pm({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return pm({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Yf(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return um(e,[{key:"update",value:function(){return Pm.call(this)}},{key:"destroy",value:function(){return Rm.call(this)}},{key:"enableEventListeners",value:function(){return Mm.call(this)}},{key:"disableEventListeners",value:function(){return Nm.call(this)}}]),e}();Ym.Utils=("undefined"!=typeof window?window:r.g).PopperUtils,Ym.placements=_m,Ym.Defaults=Xm;const Km=Ym;function Qm(e){return"function"==typeof e?e():e}var Jm="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,$m={},eg=e.forwardRef((function(t,n){var r=t.anchorEl,o=t.children,s=t.container,l=t.disablePortal,c=void 0!==l&&l,u=t.keepMounted,d=void 0!==u&&u,p=t.modifiers,h=t.open,f=t.placement,m=void 0===f?"bottom":f,g=t.popperOptions,v=void 0===g?$m:g,y=t.popperRef,b=t.style,w=t.transition,x=void 0!==w&&w,C=i(t,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),E=e.useRef(null),S=Ep(E,n),T=e.useRef(null),A=Ep(T,y),P=e.useRef(A);Jm((function(){P.current=A}),[A]),e.useImperativeHandle(y,(function(){return T.current}),[]);var O=e.useState(!0),I=O[0],R=O[1],k=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(m,ce()),D=e.useState(k),j=D[0],M=D[1];e.useEffect((function(){T.current&&T.current.update()}));var N=e.useCallback((function(){if(E.current&&r&&h){T.current&&(T.current.destroy(),P.current(null));var e=function(e){M(e.placement)},t=(Qm(r),new Km(Qm(r),E.current,a({placement:k},v,{modifiers:a({},c?{}:{preventOverflow:{boundariesElement:"window"}},p,v.modifiers),onCreate:xp(e,v.onCreate),onUpdate:xp(e,v.onUpdate)})));P.current(t)}}),[r,c,p,h,k,v]),L=e.useCallback((function(e){Cp(S,e),N()}),[S,N]),B=function(){T.current&&(T.current.destroy(),P.current(null))};if(e.useEffect((function(){return function(){B()}}),[]),e.useEffect((function(){h||x||B()}),[h,x]),!d&&!h&&(!x||I))return null;var F={placement:j};return x&&(F.TransitionProps={in:h,onEnter:function(){R(!1)},onExited:function(){R(!0),B()}}),e.createElement(Tp,{disablePortal:c,container:s},e.createElement("div",a({ref:L,role:"tooltip"},C,{style:a({position:"fixed",top:0,left:0,display:h||!d||x?null:"none"},b)}),"function"==typeof o?o(F):o))}));const tg=eg;var ng={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},ig=e.forwardRef((function(t,n){var r=t.align,o=void 0===r?"inherit":r,s=t.classes,l=t.className,c=t.color,u=void 0===c?"initial":c,d=t.component,p=t.display,h=void 0===p?"initial":p,f=t.gutterBottom,m=void 0!==f&&f,g=t.noWrap,v=void 0!==g&&g,y=t.paragraph,b=void 0!==y&&y,w=t.variant,x=void 0===w?"body1":w,C=t.variantMapping,E=void 0===C?ng:C,S=i(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),T=d||(b?"p":E[x]||ng[x])||"span";return e.createElement(T,a({className:fc(s.root,l,"inherit"!==x&&s[x],"initial"!==u&&s["color".concat(gc(u))],v&&s.noWrap,m&&s.gutterBottom,b&&s.paragraph,"inherit"!==o&&s["align".concat(gc(o))],"initial"!==h&&s["display".concat(gc(h))]),ref:n},S))}));const rg=yp((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(ig);var og={entering:{opacity:1},entered:{opacity:1}},ag={enter:ne.enteringScreen,exit:ne.leavingScreen},sg=e.forwardRef((function(t,n){var r=t.children,o=t.disableStrictModeCompat,s=void 0!==o&&o,l=t.in,c=t.onEnter,u=t.onEntered,d=t.onEntering,p=t.onExit,h=t.onExited,f=t.onExiting,m=t.style,g=t.TransitionComponent,v=void 0===g?Yp:g,y=t.timeout,b=void 0===y?ag:y,w=i(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),x=ge(),C=x.unstable_strictMode&&!s,E=e.useRef(null),S=Ep(r.ref,n),T=Ep(C?E:void 0,S),A=function(e){return function(t,n){if(e){var i=V(C?[E.current,t]:[t,n],2),r=i[0],o=i[1];void 0===o?e(r):e(r,o)}}},P=A(d),O=A((function(e,t){Kp(e);var n=Qp({style:m,timeout:b},{mode:"enter"});e.style.webkitTransition=x.transitions.create("opacity",n),e.style.transition=x.transitions.create("opacity",n),c&&c(e,t)})),I=A(u),R=A(f),k=A((function(e){var t=Qp({style:m,timeout:b},{mode:"exit"});e.style.webkitTransition=x.transitions.create("opacity",t),e.style.transition=x.transitions.create("opacity",t),p&&p(e)})),D=A(h);return e.createElement(v,a({appear:!0,in:l,nodeRef:C?E:void 0,onEnter:O,onEntered:I,onEntering:P,onExit:k,onExited:D,onExiting:R,timeout:b},w),(function(t,n){return e.cloneElement(r,a({style:a({opacity:0,visibility:"exited"!==t||l?void 0:"hidden"},og[t],m,r.props.style),ref:T},n))}))}));const lg=sg;var cg=e.forwardRef((function(t,n){var r=t.children,o=t.classes,s=t.className,l=t.disableTypography,c=void 0!==l&&l,u=t.inset,d=void 0!==u&&u,p=t.primary,h=t.primaryTypographyProps,f=t.secondary,m=t.secondaryTypographyProps,g=i(t,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),v=e.useContext(uh).dense,y=null!=p?p:r;null==y||y.type===rg||c||(y=e.createElement(rg,a({variant:v?"body2":"body1",className:o.primary,component:"span",display:"block"},h),y));var b=f;return null==b||b.type===rg||c||(b=e.createElement(rg,a({variant:"body2",className:o.secondary,color:"textSecondary",display:"block"},m),b)),e.createElement("div",a({className:fc(o.root,s,v&&o.dense,d&&o.inset,y&&b&&o.multiline),ref:n},g),y,b)}));const ug=yp({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(cg);const dg=function(e){return t().createElement(tg,{anchorEl:e.anchorEl,open:e.open,style:e.marginStyle},t().createElement(lg,{in:e.open},t().createElement(ih,{className:"helpContainer"},t().createElement("div",{onClick:e.onClose,className:"closeX"},t().createElement("span",{className:"fa fa-window-close"})),t().createElement("div",null,t().createElement(rg,{variant:"h6",component:"h2"},"Toolbar Buttons"),t().createElement(ph,null,t().createElement(Mf,null,t().createElement("span",{className:"fa fa-lock"}),t().createElement(ug,{primary:"Toggle Sync Views"})),t().createElement(Mf,null,t().createElement("span",{className:"fa fa-book"}),t().createElement(ug,{primary:"Toggle Book Mode"})),t().createElement(Mf,null,t().createElement("span",{className:"fa fa-code"}),t().createElement(ug,{primary:"Toggle XML Mode"})),t().createElement(Mf,null,t().createElement("span",{className:"horizontal-buttons"},t().createElement(uc,null),t().createElement(dc,null)),t().createElement(ug,{primary:"Go Forward / Back"})),t().createElement(Mf,null,t().createElement("span",{className:"fa fa-hand-point-right"}),t().createElement(ug,{primary:"Jump to folio"})),t().createElement("div",{className:"readingGuide"},t().createElement(rg,{variant:"h6",component:"h2"},"Reading Guide"),t().createElement("table",null,t().createElement("thead",null,t().createElement("tr",null,t().createElement("th",null,t().createElement(rg,{variant:"overline",component:"span"},"Syntax")),t().createElement("th",null,t().createElement(rg,{variant:"overline",component:"span"},"Meaning")))),t().createElement("tbody",null,t().createElement("tr",null,t().createElement("td",null,t().createElement("img",{src:"data:image/png;base64,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",alt:"howtouse-ups"})),t().createElement("td",null,t().createElement(rg,null,"Text is under the paper strip"))),t().createElement("tr",null,t().createElement("td",null,t().createElement("img",{src:"data:image/png;base64,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",alt:"howtouse-curly"})),t().createElement("td",null,t().createElement(rg,null,"Expanded version implied by abbreviation marks"))),t().createElement("tr",null,t().createElement("td",null,t().createElement("img",{src:"data:image/png;base64,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",alt:"howtouse-square"})),t().createElement("td",null,t().createElement(rg,null,"Editorial interventions and corrections"))),t().createElement("tr",null,t().createElement("td",null,t().createElement("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABRCAMAAAHN+At6AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAL3UExURf////v7+/n5+fb29vj4+P39/fz8/Pf39/X19fr6+v7+/uzs7Onp6fDw8ODg4OHh4ebm5vPz8+Pj4+Tk5PLy8t/f3+Li4u/v7+fn5+vr6+jo6PHx8eXl5e3t7fT09O7u7vn5+vz8+/38+/38+vr5+fj4+fn49fTt5MzM2sTO28TN2sHQ4eDr8vj6+fj5+ffx8N3Jy5isyJmuyJiuyJmux5Sqzb3c6u38+vr4+Pjy8OLLy5OnxY+px5Cpxo+oxI2nxI6oxpCpx5CoxYymy7vb6u78+vn39vXq5MzGzJepx5KqyajI4MfV4sO+zJqsxo2pyq/K39/v8/f6+fn4+Pr49fbg05yox5Kqyr3k+vv+/vLR0aKuxomp0Mzl7/f9+/n28/Dd0rrh9/X5+uzO0KGuxoqpz8ni7fT8+vHd0sni7vDb0Zqox7rg96Cuxoqpzsfh7fP7+vfy8OHJzJKpx5Kry73i9+3Q0YumyrbW6ur2+fv5+Pr38+3k16iqxpGqyJO02OL29/f5+v7n27K0yY6z1dLi7/37+fn6+fPu7My5xpSszLzg9fb3+Pr7+OfO0qOuxoylxqfI5d/v+fz6+Pj5+vv08OnW0punxpGryZzC4vn6+vz7+vz7+//25MS+y5ioxYys0MDb6/X9+vr89e7q4LuxxpKrx5axzKS4zqO3zqS4zJyuyJSqx5CnxZm93NHm9f/7+fj6+/nv7djHzJGoxpGqx5Kqx5GpxpKqxo6oyrDO5ej5/Pv4+Pj4+v368efd2Kqqxo6px5GnxZS01MLd7vz9+vn7+PLo5MW9yJCmxo6oyKTC39vv+/z5+Pz98ODa16anxY6qx5GoxZGx0rnX7v/8+f397dvY0p+kxZCqx5KpxY2uz7PR6f/8+uzh3bixxYqlxY+oxo+oxYulxZm62M7m9f36+frx7+LX2LG9z6e1zaW2zaW1zaS2zqm+18jb6/D5+/z79/nx6uLc5d3e5d3d5dvg6Ovw9Pv7+urq6t7e3t3d3QAAAD5DBLYAAAD9dFJOU////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wD2TzQDAAAACXBIWXMAABcRAAAXEQHKJvM/AAAF4UlEQVRIS+1XPW7mNhDVOdzwAG4sIL0aCwiwceEuxW71dYahNlC7SeMyBwjUODDgwidg4QNssZXKL1XALu7cqMl7b4YUPykLY1MFwQ4lcTgznD8OKampIAAcBY7bccf60PWGpeZjFu2GXyOxkNCNxiWPWIpNJOGfQbMcU78S+uFSWGyGF+mMTTeJE2IcxRphJI1EGlDeAlrALE50vxmru+mUQtLTKCnF6dCHMfVOibG5GKbBwhUBUdJ+aqLcqQE+GhLiGGJKY6L8vwQLgArN62Yx5UbJWAmGoEgYUCYTUTOcOkxEok5N6dB1iNMkEMWY5tshaVUBoR/75ua6CylYCs4ihIepe9eHoOgCgryYurYFLkLfpFFI9Ao5QhILiXSgWEhY+DBwKzHCAJYYykRAejFCCmHDcoicmnT/9vp/PZjRtd8D8yGui5jjhJxMBw7sXiV8dEL2sYGvTBkDNhSfWwjCBU6Awozfn5+fX12TQigCwpjkEOfpx5sB5Y2snujwlRlTTNPtYei52ARbNwJWCIC1SdNT09wN/YiNmVA1RQI7JGL50rHrhmFqp/aT0SMLQLDQLrSkR4O/oEOM1Q9UHVSiDOEABEVkTax+YKAdBl10gbTYY1euEgouQcqCiByNEQ6LDUC00MnorJRhCFPgfaUD8zMTcRGRqSIBBq9clG7Ki/a/BNnjqq+COMExKsO8V1klhDLKpDyTnYjONbZ6sh1EFHDgt4MzsrxhIqwUdX4bT7iGGygiGhkUXFMFTljjlJQ63eXh/BUTGE5YBWqoJGqOTf7+6ur8nC8bDpzjPBVQ6gA/oaojqhBjd3Ld6f3HqXl+4Y60cVaS+TFim08vNqiKkhoAeI2NEtCWZe33JQ8xztgy2OfP75uff3FqX0zMI+ao6g9DM//WXorK+ncBO/TxHgzTNPEg0AuAr+9sAjaxzXmITFM3dMMTNjycKuc7YoaJlGZMf5hwmryfsYFBLCa03WLsj36QIFAdaOUwQkxQV9LD1xtPlALQgJe+0F5vLTiQ5JQ7ac7Q01G7X2eQNGQTApgBXwI0H9OaKJw/9El+scOxxsQD1lQ7gmApIDQfegDog30fOKAgMKvkAQuHjn7jLOQpRzIS4wJwIYcSKcRKGHsIZssBc0lT+LRGBOcnuiyBLy90eCebbjtXES1HFcz8DszOZvXf4KshLGFZFnQLvvz0AIpsZ9RYzg+5lCoAVe0EybihBUcj+wROuPu2RXRt3IAK57rEBsmtQjGowBQY+aQXWrrcdOGugC45a9tOu6pto9hIelc3u+pWgzJZX2tfYzVrG0WW2LYvIts8rJzM37U9egJIS8U+wXywIcCFXT24SCXnMOM2DSsX7e08NOGiJUxtO1z2CZRxHvF/ViQ2GlQP4uBMNJF0fzcN7364wuN65psQby2Sxdz5sHWCWsZ0Q+uHafjQmwK8ssXLjtRQFMhKzz9pnKQ3bQsNz9AAEjRkIVxQtdHAtUgyDVnqwKmckIhbargkT3rdBNsuCm94VfG8R+vDXdfegnTA390nzczNTflUg3DG/zzFqgjGON//gd/Ah4fH9rFtu6cXV6E8m0NnPtdgzQO0UMN8/Nx1k7e26x7wUQEPkUVGSU37KBicacA1L581c+q+Y4/fVHyX2DK7lP4ZKkAmoVxMhhDn4+/85sLXhj+6pz/xImVFSIi6dueD6bclo450fF3U9IDLnMZEk0/pzWqSiRpipNkP/FPNoAQ88C7GTFk2NtSsf1sCrgU9kBeYjoeAbsstkWw+COh2UXCWG/HqR4MK4nAEiyhMHDqGdgrhaHTeRUN+omeRCDfnSNrnQWvB9dZMmyGbptHKQOHxxoyNF/j0MIMQwNOahywNWaF7CLFdPdgUiFhnTmdMpoFnITx39eBpgGiWUgjc1XiYvjKbW3cTBRYXDMpJkc+woG0WLOBfVzk15ds8MJUguwdcWp+mMZW7QMKRCR/2mcQH8XFZYtL3BR6vSE39PXJmaHzFAykA8X8FTfM3LxaLoqcUkMcAAAAASUVORK5CYII=",alt:"howtouse-beaker"})),t().createElement("td",null,t().createElement(rg,null,"Associated research essay"))),t().createElement("tr",null,t().createElement("td",null,t().createElement("img",{src:"data:image/png;base64,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",alt:"howtouse-asterisk"})),t().createElement("td",null,t().createElement(rg,null,"Editorial Comments"))))))),t().createElement(rg,null,"See  ",t().createElement("a",{href:"#/content/how-to-use"},"How to Use"),"  for more information.")))))};var pg=r(9451);function hg(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,fg(i.key),i)}}function fg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function mg(e,t){return mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mg(e,t)}function gg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=vg(e);if(t){var r=vg(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function vg(e){return vg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vg(e)}var yg=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","Z"],bg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mg(e,t)}(a,e);var n,i,r,o=gg(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(i=[{key:"renderAlphaLinks",value:function(){for(var e=[],n=0;n<yg.length;n++){var i=yg[n],r="alpha-".concat(n);e.push(t().createElement("span",{key:"link-".concat(r)},t().createElement(pg.rU,{to:r,offset:-120,containerId:"glossaryViewInner",smooth:"true"},i)," "))}return t().createElement("div",{style:{display:"inline"}},t().createElement("input",{id:"glossary-filter",className:"searchBox",placeholder:"Filter by Entry",onChange:this.props.onFilterChange,value:this.props.filterTerm}),t().createElement("div",{className:"alphaNav"},t().createElement("span",{style:{color:"black"}},"Go to: "),e))}},{key:"render",value:function(){return t().createElement("div",{className:"glossaryNav"},this.renderAlphaLinks())}}])&&hg(n.prototype,i),r&&hg(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);function wg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function xg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wg(Object(n),!0).forEach((function(t){Cg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cg(e,t,n){return(t=Sg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eg(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Sg(i.key),i)}}function Sg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Tg(e,t){return Tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tg(e,t)}function Ag(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Og(e);if(t){var r=Og(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pg(e)}(this,n)}}function Pg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Og(e){return Og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Og(e)}var Ig=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tg(e,t)}(a,e);var n,i,r,o=Ag(a);function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).onJumpBoxBlur=function(e){this.setState({popoverVisible:!1})},n.changeType=function(e){void 0!==e.target.value&&n.props.documentViewActions.changeTranscriptionType(n.props.side,e.target.value)},n.toggleHelp=function(e){n.setState({openHelp:!n.state.openHelp})},n.toggleBookmode=function(e){this.props.documentView.bookMode||(this.props.documentViewActions.changeCurrentFolio(this.props.documentView.left.iiifShortID,"left",this.props.documentView.left.transcriptionType),this.props.documentViewActions.changeCurrentFolio(this.props.documentView.left.nextFolioShortID,"right",this.props.documentView.left.transcriptionType)),this.props.documentViewActions.setBookMode(this.props.documentView.left.iiifShortID,!this.props.documentView.bookMode)},n.toggleXMLMode=function(e){this.props.documentViewActions.setXMLMode(this.props.side,!this.props.documentView[this.props.side].isXMLMode)},n.toggleLockmode=function(e){this.props.documentView.bookMode?this.toggleBookmode():(!1===this.props.documentView.linkedMode&&("left"===this.props.side?this.props.documentViewActions.changeCurrentFolio(this.props.documentView.left.iiifShortID,"right",this.props.documentView.right.transcriptionType):this.props.documentViewActions.changeCurrentFolio(this.props.documentView.right.iiifShortID,"left",this.props.documentView.left.transcriptionType)),this.props.documentViewActions.setLinkedMode(!this.props.documentView.linkedMode))},n.changeCurrentFolio=function(e){var t=n.props,i=t.documentViewActions,r=t.documentView,o=t.side;if(void 0!==e.currentTarget.dataset.id&&0!==e.currentTarget.dataset.id.length){var a=e.currentTarget.dataset.id;i.changeCurrentFolio(a,o,r[o].transcriptionType)}},n.revealJumpBox=function(e){this.setState({popoverVisible:!0,popoverX:e.clientX,popoverY:e.clientY})},n.changeType=n.changeType.bind(Pg(n)),n.revealJumpBox=n.revealJumpBox.bind(Pg(n)),n.onJumpBoxBlur=n.onJumpBoxBlur.bind(Pg(n)),n.toggleLockmode=n.toggleLockmode.bind(Pg(n)),n.toggleBookmode=n.toggleBookmode.bind(Pg(n)),n.toggleXMLMode=n.toggleXMLMode.bind(Pg(n)),n.changeCurrentFolio=n.changeCurrentFolio.bind(Pg(n)),n.helpRef=null,n.state={popoverVisible:!1,popoverX:-1,popoverY:-1,openHelp:!1},n}return n=a,(i=[{key:"render",value:function(){var e,n=this,i=this.props,r=i.side,o=i.document,a=i.documentView,s=i.documentViewActions,l=i.onFilterChange;if(!a)return t().createElement("div",null,"Unknown Transcription Type");var c=a[r].width-8,u={width:c,maxWidth:c},d=ve("md",this.props.width)?a[r].width<500?{display:"none"}:{display:"flex"}:{},p="f"===a[r].transcriptionType?{color:"white"}:{color:"black"},h="f"===a[r].transcriptionType?"dark":"light",f="glossary"===a[r].transcriptionType?{visibility:"hidden"}:{visibility:"visible"},m=a.linkedMode?"fa fa-lock":"fa fa-lock-open";a.bookMode||(m+=" active");var g="f"===a[r].transcriptionType,v=a.bookMode?"fa fa-book active":"fa fa-book",y=a[r].isXMLMode?"fa fa-code active":"fa fa-code",b=null===(e=o.folioIndex[a[r].iiifShortID])||void 0===e?void 0:e.name,w=g?{color:"white"}:{color:"black"},x="left"===r?{marginRight:"55px"}:{marginRight:"15px"};return t().createElement("div",{className:"navigationComponent",style:u},t().createElement("div",{id:"navigation-row",className:"navigationRow"},"glossary"!==a[r].transcriptionType?t().createElement("div",{id:"tool-bar-buttons",className:"breadcrumbs",style:f},t().createElement("span",{title:"Toggle coordination of views",onClick:this.toggleLockmode,className:m})," ",t().createElement("span",{title:"Toggle book mode",onClick:this.toggleBookmode,className:v})," ",t().createElement("span",{title:"Toggle XML mode",onClick:this.toggleXMLMode,className:g?"invisible":y})," "," ",t().createElement("span",{title:"Go back",onClick:this.changeCurrentFolio,"data-id":a[r].previousFolioShortID,className:a[r].hasPrevious?"arrow":"arrow disabled"}," ",t().createElement(uc,null)," "),t().createElement("span",{title:"Go forward",onClick:this.changeCurrentFolio,"data-id":a[r].nextFolioShortID,className:a[r].hasNext?"arrow":"arrow disabled"}," ",t().createElement(dc,null)),"  ",o.documentName," / ",t().createElement("div",{onClick:this.revealJumpBox,className:"folioName"}," ",b," ",t().createElement("span",{style:w,className:"fa fa-hand-point-right"})),t().createElement(Vf,{side:r,isVisible:this.state.popoverVisible,positionX:this.state.popoverX,positionY:this.state.popoverY,submitHandler:s.jumpToFolio,blurHandler:this.onJumpBoxBlur})):t().createElement(bg,{onFilterChange:l,value:this.props.value}),t().createElement("div",{id:"doc-type-help",style:d,ref:function(e){n.helpRef=e}},t().createElement(cf,{className:h,style:xg(xg({},p),{},{marginRight:15}),value:a[r].transcriptionType,id:"doc-type",onClick:this.changeType},t().createElement(Lf,{value:"tl"},Gf.transcriptionTypeLabels.tl),t().createElement(Lf,{value:"tc"},Gf.transcriptionTypeLabels.tc),t().createElement(Lf,{value:"tcn"},Gf.transcriptionTypeLabels.tcn),t().createElement(Lf,{value:"f"},Gf.transcriptionTypeLabels.f),t().createElement(Lf,{value:"glossary"},Gf.transcriptionTypeLabels.glossary)),t().createElement("span",{title:"Toggle folio help",onClick:this.toggleHelp,className:"helpIcon"},t().createElement("i",{className:"fas fa-question-circle"})),t().createElement(dg,{marginStyle:x,anchorEl:this.helpRef,open:this.state.openHelp,onClose:this.toggleHelp}))))}}])&&Eg(n.prototype,i),r&&Eg(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);const Rg=be()(ot((function(e){return{document:e.document}}))(Ig));function kg(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Dg(i.key),i)}}function Dg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function jg(e,t){return jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jg(e,t)}function Mg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Ng(e);if(t){var r=Ng(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Ng(e){return Ng=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ng(e)}var Lg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jg(e,t)}(a,e);var n,i,r,o=Mg(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(i=[{key:"render",value:function(){var e="os-zoom-in ".concat(this.props.side),n="os-zoom-out ".concat(this.props.side),i=this.props.documentView.bookMode?null:this.props.onZoomGrid;return t().createElement("ul",{className:"ImageZoomControl"},t().createElement("li",null,t().createElement("i",{title:"Zoom In",id:e,className:"zoom-in fas fa-plus-circle fa-2x"})),t().createElement("li",null,t().createElement("i",{title:"Fixed Zoom 1",onClick:this.props.onZoomFixed_1,className:"zoom-3 fas fa-circle fa-2x"})),t().createElement("li",null,t().createElement("i",{title:"Fixed Zoom 2",onClick:this.props.onZoomFixed_2,className:"zoom-2 fas fa-circle fa-lg"})),t().createElement("li",null,t().createElement("i",{title:"Fixed Zoom 3",onClick:this.props.onZoomFixed_3,className:"zoom-1 fas fa-circle"})),t().createElement("li",null,t().createElement("i",{title:"Zoom Out",id:n,className:"zoom-out fas fa-minus-circle fa-2x"})),t().createElement("li",{className:this.props.documentView.bookMode?"disabled":""},t().createElement("i",{title:"Return to grid mode (not available in book mode)",onClick:i,className:"zoom-grid fas fa-th fa-2x"})))}}])&&kg(n.prototype,i),r&&kg(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);function Bg(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Fg(i.key),i)}}function Fg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function zg(e,t){return zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zg(e,t)}function _g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Hg(e);if(t){var r=Hg(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Hg(e){return Hg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hg(e)}var Ug=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zg(e,t)}(a,e);var n,i,r,o=_g(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,i=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var e=this.props,n=e.side,i=e.initViewer,r=e.tileSource;return t().createElement("div",{id:"image-view-seadragon-".concat(n),ref:function(e){i(e,r)}})}}],i&&Bg(n.prototype,i),r&&Bg(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);function Vg(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Wg(i.key),i)}}function Wg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Gg(e,t){return Gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gg(e,t)}function qg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Zg(e);if(t){var r=Zg(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Zg(e){return Zg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zg(e)}var Xg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gg(e,t)}(a,e);var n,i,r,o=qg(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).initViewer=function(t,n){if(t){var i="os-zoom-in ".concat(e.props.side),r="os-zoom-out ".concat(e.props.side);e.viewer=cl()({element:t,zoomInButton:i,zoomOutButton:r,prefixUrl:"./img/openseadragon/"}),e.viewer.addTiledImage({tileSource:n})}else e.viewer=null},e.onZoomGrid=function(t){e.props.documentViewActions.changeTranscriptionType(e.props.side,"g")},e.onZoomFixed_1=function(t){e.viewer.viewport.zoomTo(e.viewer.viewport.getMaxZoom())},e.onZoomFixed_2=function(t){e.viewer.viewport.zoomTo(e.viewer.viewport.getMaxZoom()/2)},e.onZoomFixed_3=function(t){e.viewer.viewport.fitVertically()},e}return n=a,(i=[{key:"componentDidUpdate",value:function(e){if(e.folioID!==this.props.folioID){var t=this.props,n=t.document,i=t.folioID,r=n.folioIndex[i];r.tileSource&&this.viewer&&this.viewer.open(r.tileSource)}}},{key:"render",value:function(){var e=this.props,n=e.document,i=e.folioID,r=e.side,o=n.folioIndex[i];return t().createElement("div",null,o.tileSource&&t().createElement("div",{className:"image-view imageViewComponent ".concat(this.props.side)},t().createElement(Rg,{side:this.props.side,documentView:this.props.documentView,documentViewActions:this.props.documentViewActions}),t().createElement(Lg,{side:this.props.side,documentView:this.props.documentView,onZoomFixed_1:this.onZoomFixed_1,onZoomFixed_2:this.onZoomFixed_2,onZoomFixed_3:this.onZoomFixed_3,onZoomGrid:this.onZoomGrid}),t().createElement(Ug,{side:r,tileSource:o.tileSource,initViewer:this.initViewer})))}}])&&Vg(n.prototype,i),r&&Vg(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const Yg=ot((function(e){return{document:e.document}}))(Xg);var Kg=r(2857),Qg=r.n(Kg);function Jg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function $g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jg(Object(n),!0).forEach((function(t){ev(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ev(e,t,n){return(t=nv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,nv(i.key),i)}}function nv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function iv(e,t){return iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iv(e,t)}function rv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=av(e);if(t){var r=av(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ov(e)}(this,n)}}function ov(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function av(e){return av=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},av(e)}var sv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iv(e,t)}(a,e);var n,i,r,o=rv(a);function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).onJumpToChange=function(e){var t=e.target.value;n.setState($g($g({},n.state),{},{jumpToBuffer:t}))},n.onJumpTo=function(e){var t=n.state.jumpToBuffer,i=n.props,r=i.side,o=i.document,a=i.documentViewActions;if(e.preventDefault(),o.folioByName[t]){var s=o.folioByName[t];s&&a.changeCurrentFolio(s.id,r)}n.setState($g($g({},n.state),{},{jumpToBuffer:""}))},n.onClickThumb=function(e,t){n.props.documentViewActions.changeCurrentFolio(e,n.props.side)},n.moreThumbs=function(){var e=n.state.thumbs,t=n.state.visibleThumbs,i=t.length+n.loadIncrement;t=e.length>=i?e.slice(0,i):e,n.setState({visibleThumbs:t})},n.generateThumbs=n.generateThumbs.bind(ov(n)),n.loadIncrement=10,n.state={jumpToBuffer:"",thumbs:"",visibleThumbs:[]},n}return n=a,i=[{key:"componentDidUpdate",value:function(e){var t=this.props.documentView[this.props.side].iiifShortID,n=this.props.documentView[this.props.side].iiifShortID;if(t!==n){var i=this.generateThumbs(n,this.props.document.folios),r=i.length>this.loadIncrement?this.loadIncrement:i.length,o=i.slice(0,r);this.setState({thumbs:i,visibleThumbs:o})}}},{key:"renderToolbar",value:function(){return t().createElement("div",{className:"imageGridToolbar"},t().createElement("div",{className:"jump-to"},t().createElement("form",{onSubmit:this.onJumpTo},t().createElement("span",null,"Jump to: "),t().createElement("input",{id:"jump-to-input",placeholder:"Page Name (e.g. '3r')",onChange:this.onJumpToChange,value:this.state.jumpToBuffer}),t().createElement("button",{id:"jump-to-button",onClick:this.onJumpTo},t().createElement("span",{style:{color:"black"},className:"fa fa-hand-point-right"})))))}},{key:"componentDidMount",value:function(){var e=this.props.documentView[this.props.side].iiifShortID,t=this.generateThumbs(e,this.props.document.folios),n=t.length>this.loadIncrement?this.loadIncrement:t.length,i=t.slice(0,n);this.setState({thumbs:t,visibleThumbs:i})}},{key:"generateThumbs",value:function(e,n){var i=this,r=n.map((function(n,r){return t().createElement("li",{key:"thumb-".concat(r),className:"thumbnail"},t().createElement("figure",{className:n.id===e?"current":""},t().createElement("a",{id:n.id,onClick:i.onClickThumb.bind(i,n.id)},t().createElement("img",{src:n.image_thumbnail_url,alt:n.name}))),t().createElement("figcaption",{className:n.id===e?"thumbnail-caption current":"thumbnail-caption"},n.id===e?"*".concat(n.name):n.name))}));return r}},{key:"hasMore",value:function(){return this.state.visibleThumbs.length!==this.state.thumbs.length}},{key:"render",value:function(){var e="imageGridComponent";e="".concat(e," ").concat(this.props.side);var n=this.state.visibleThumbs;return-1===n.constructor.toString().indexOf("Array")&&(n=[]),t().createElement("div",{className:e},this.renderToolbar(),t().createElement(Qg(),{element:"ul",loadMore:this.moreThumbs,hasMore:this.hasMore(),useWindow:!1},n))}}],i&&tv(n.prototype,i),r&&tv(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);const lv=ot((function(e){return{document:e.document}}))(sv);var cv=r(6682);cv.domToReact,cv.htmlToDOM,cv.attributesToProps,cv.Comment,cv.Element,cv.ProcessingInstruction,cv.Text;const uv=cv;function dv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,pv(i.key),i)}}function pv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function hv(e,t){return hv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hv(e,t)}function fv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=gv(e);if(t){var r=gv(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mv(e)}(this,n)}}function mv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gv(e){return gv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gv(e)}var vv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hv(e,t)}(a,e);var n,i,r,o=fv(a);function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).changeCurrentFolio=function(e){var t=n.props,i=t.side,r=t.documentView,o=t.documentViewActions,a=e.currentTarget.dataset;if(void 0!==a.id&&0!==a.id.length){var s=a.id;o.changeCurrentFolio(s,i,r[i].transcriptionType)}},n.changeCurrentFolio=n.changeCurrentFolio.bind(mv(n)),n}return n=a,(i=[{key:"render",value:function(){var e=this.props,n=e.side,i=e.document,r=e.documentView;if("-1"===r[n].iiifShortID)return null;var o=i.folioIndex[r[n].iiifShortID].name;return t().createElement("div",{className:"paginationComponent"},t().createElement("div",{className:"paginationControl"},t().createElement("span",{title:"Go back",onClick:this.changeCurrentFolio,"data-id":r[n].previousFolioShortID,className:r[n].hasPrevious?"arrow":"arrow disabled"},t().createElement(uc,null)),t().createElement("span",{className:"folioName"},o),t().createElement("span",{title:"Go forward",onClick:this.changeCurrentFolio,"data-id":r[n].nextFolioShortID,className:r[n].hasNext?"arrow":"arrow disabled"}," ",t().createElement(dc,null))))}}])&&dv(n.prototype,i),r&&dv(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);const yv=ot((function(e){return{document:e.document}}))(vv);function bv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function wv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bv(Object(n),!0).forEach((function(t){xv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xv(e,t,n){return(t=Ev(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ev(i.key),i)}}function Ev(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Sv(e,t){return Sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sv(e,t)}function Tv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Av(e);if(t){var r=Av(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Av(e){return Av=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Av(e)}var Pv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sv(e,t)}(a,e);var n,i,r,o=Tv(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).onOpen=function(e){t.setState({anchorRef:e.currentTarget,open:!0})},t.onClose=function(e){t.setState(wv(wv({},t.state),{},{open:!1}))},t.state={anchorRef:null,open:!1},t}return n=a,(i=[{key:"renderPopper",value:function(){var e,n=this.state,i=n.anchorRef,r=n.open,o="comment-".concat(this.props.commentID),a=this.props.comments.comments,s=a[this.props.commentID]?a[this.props.commentID].comment:null;s&&(e=uv(s));var l=e||s||"ERROR: Could not find comment for id: ".concat(this.props.commentID,".");return t().createElement(tg,{id:o,open:r,anchorEl:i},t().createElement(lg,{in:r},t().createElement(ih,{className:"editor-comment-content"},t().createElement("div",{onClick:this.onClose,style:{float:"right",padding:5,fontStyle:"bold"}},t().createElement("span",{className:"fa fa-window-close"})),t().createElement(rg,{style:{maxWidth:200,padding:"25px 15px 15px 15px"}},l))))}},{key:"render",value:function(){var e=this;return t().createElement("div",{style:{display:"inline"}},t().createElement("span",{onClick:function(t){return e.onOpen(t)},style:{fontStyle:"bold",fontSize:"18pt",color:"red"}},"*"),this.renderPopper())}}])&&Cv(n.prototype,i),r&&Cv(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const Ov=ot((function(e){return{comments:e.comments}}))(Pv);function Iv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Rv(i.key),i)}}function Rv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function kv(e,t){return kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kv(e,t)}function Dv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=jv(e);if(t){var r=jv(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function jv(e){return jv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jv(e)}var Mv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kv(e,t)}(a,e);var n,i,r,o=Dv(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={error:null,errorInfo:null},t}return n=a,r=[{key:"getDerivedStateFromError",value:function(e){return{error:!0}}}],(i=[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,errorInfo:t})}},{key:"render",value:function(){return this.state.errorInfo?t().createElement("div",{style:{height:"350px",overflowY:"scroll"}},t().createElement("h2",null,"Something went wrong."),t().createElement("details",{style:{whiteSpace:"pre-wrap"}},"There has been an error rendering a comment",t().createElement("br",null),this.state.error&&this.state.error.toString(),t().createElement("br",null),this.state.errorInfo.componentStack)):this.props.children}}])&&Iv(n.prototype,i),r&&Iv(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const Nv=function(e){var n=e.side,i=e.documentView,r=e.documentViewActions;return t().createElement("div",null,"-1"!==i.left.iiifShortID&&"-1"!==i.right.iiifShortID?t().createElement(Rg,{side:n,documentView:i,documentViewActions:r}):null,t().createElement("div",{className:"transcriptContent"},t().createElement(yv,{side:n,className:"pagination_upper",documentView:i,documentViewActions:r}),t().createElement("div",{className:"watermark"},t().createElement("div",{className:"watermark_contents"}))))};function Lv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Bv(i.key),i)}}function Bv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Fv(e,t){return Fv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fv(e,t)}function zv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=_v(e);if(t){var r=_v(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function _v(e){return _v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_v(e)}var Hv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fv(e,t)}(a,e);var n,i,r,o=zv(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(i=[{key:"nodeTreeToString",value:function(e){for(var t="",n=0;n<e.length;n++)"text"===e[n].type?t+="".concat(e[n].data," "):e[n].children.length>0&&(t+=this.nodeTreeToString(e[n].children));return t.trim()}},{key:"render",value:function(){var e=this.props,n=e.side,i=e.folioID,r=e.transcriptionType,o=e.document,a=e.documentView,s=e.documentViewActions;if("-1"===i)return t().createElement(Nv,{documentView:a,documentViewActions:s,side:n});var l=o.folioIndex[i];if(!l.transcription)return t().createElement(Nv,{documentView:a,documentViewActions:s,side:n});var c=l.transcription[r],u={replace:function(e){if("comment"===e.name){var n=e.attribs.rid;return t().createElement(Ov,{commentID:n})}return e}},d=c.html,p={gridTemplateAreas:c.layout};return t().createElement("div",null,t().createElement(Rg,{side:n,documentView:a,documentViewActions:s}),t().createElement(yv,{side:n,documentView:a,documentViewActions:s}),t().createElement("div",{className:"transcriptionViewComponent"},t().createElement("div",{className:"transcriptContent"},t().createElement(Mv,null,t().createElement("div",{className:"surface grid-mode",style:p},uv(d,u))))),t().createElement(yv,{side:n,documentView:a,documentViewActions:s}))}}])&&Lv(n.prototype,i),r&&Lv(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const Uv=ot((function(e){return{annotations:e.annotations,document:e.document}}))(Hv);function Vv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Wv(i.key),i)}}function Wv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Gv(e,t){return Gv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gv(e,t)}function qv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Zv(e);if(t){var r=Zv(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Zv(e){return Zv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zv(e)}var Xv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gv(e,t)}(a,e);var n,i,r,o=qv(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(i=[{key:"render",value:function(){var e=this.props,n=e.side,i=e.document,r=e.documentView,o=e.documentViewActions,a="xmlViewComponent ".concat(n),s="xmlViewComponent_".concat(n),l=r[n].iiifShortID;if("-1"===l)return t().createElement("div",{className:"watermark"},t().createElement("div",{className:"watermark_contents"}));var c=i.folioIndex[l];if(!c.transcription)return t().createElement(Nv,{documentView:r,documentViewActions:o,side:n});var u=r[n].transcriptionType,d=c.transcription[u].xml;return t().createElement("div",{id:s,className:a},t().createElement(Rg,{side:n,documentView:r,documentViewActions:o}),t().createElement(yv,{side:n,className:"pagination_upper",documentView:r,documentViewActions:o}),t().createElement("div",{className:"xmlContentInner"},t().createElement("pre",null,d)))}}])&&Vv(n.prototype,i),r&&Vv(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const Yv=ot((function(e){return{document:e.document}}))(Xv);function Kv(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Qv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qv(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Qv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Jv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function $v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jv(Object(n),!0).forEach((function(t){ey(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ey(e,t,n){return(t=ny(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ty(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ny(i.key),i)}}function ny(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function iy(e,t){return iy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iy(e,t)}function ry(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=oy(e);if(t){var r=oy(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function oy(e){return oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oy(e)}var ay=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iy(e,t)}(a,e);var n,i,r,o=ry(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this)).onFilterChange=function(t){var n=t.target.value;e.setState($v($v({},e.state),{},{filterTerm:n}))},e.state={filterTerm:""},e}return n=a,(i=[{key:"renderGlossary",value:function(){for(var e=this.props.glossary.glossary,n=this.state.filterTerm.toLowerCase(),i=function(e,t,n){var i,r=Kv(e.split(n));try{for(r.s();!(i=r.n()).done;)if(i.value.startsWith(t))return!0}catch(e){r.e(e)}finally{r.f()}return!1},r=[],o=0,a=0,s=Object.values(e);a<s.length;a++){var l=s[a];if(0===n.length&&l.headWord[0]===yg[o]){var c="alpha-".concat(o);r.push(t().createElement(rg,{variant:"h4",key:"gloss-heading-".concat(yg[o]),id:c},"—",yg[o]," ","—")),o++}var u=l.headWord.toLowerCase(),d=l.alternateSpellings.toLowerCase(),p=l.modernSpelling.toLowerCase();if(0===n.length||0!==n.length&&i(u,n," ")||0!==n.length&&i(p,n," ")||0!==n.length&&i(d,n,", ")){var h=sy(l),f=h[h.length-1].endsWith("."),m=l.alternateSpellings?", ".concat(l.alternateSpellings):"",g=l.meanings[0].partOfSpeech,v=g?"".concat(g,":"):"",y=g?",":":",b=l.modernSpelling?" (mod. ".concat(l.modernSpelling,")"):"",w=f?"":",",x=l.seeAlso?"".concat(w," see also <span>&#8594;</span>").concat(l.seeAlso," "):"",C=l.synonym?", syn. <span>&#8594;</span>".concat(l.synonym):"",E=l.antonym?", ant. <span>&#8594;</span>".concat(l.antonym):"";r.push(t().createElement(rg,{gutterBottom:!0,key:"gloss-".concat(l.headWord)},t().createElement("u",null,l.headWord),m,b,y," ",v," ",h.map((function(e){return uv(e)})),uv(x),uv(C),uv(E)))}}return r}},{key:"render",value:function(){return this.props.glossary.loaded?t().createElement("div",{id:"glossaryView"},t().createElement(Rg,{side:this.props.side,onFilterChange:this.onFilterChange,value:this.state.filterTerm,documentView:this.props.documentView,documentViewActions:this.props.documentViewActions}),t().createElement("div",{id:"glossaryViewInner"},t().createElement("div",{id:"glossaryContent"},t().createElement(rg,{variant:"h2",className:"title"},"Glossary"),t().createElement(rg,{className:"subtitle"},"For short titles, e.g., [COT1611], see",t().createElement("a",{href:"#/content/resources/bibliography"},"Bibliography"),"."),t().createElement("div",{className:"cite-instructions"},t().createElement(rg,{className:"cite-header"},"How to Cite"),t().createElement(rg,null,"“Glossary.” In",t().createElement("i",null,"Secrets of Craft and Nature in Renaissance France. A Digital Critical Edition and English Translation of BnF Ms. Fr. 640"),", edited by Making and Knowing Project, Pamela H. Smith, Naomi Rosenkranz, Tianna Helena Uchacz, Tillmann Taape, Clément Godbarge, Sophie Pitman, Jenny Boulboullé, Joel Klein, Donna Bilak, Marc Smith, and Terry Catapano. New York: Making and Knowing Project, 2020.",t().createElement("a",{href:"https://edition640.makingandknowing.org/#/folios/1r/f/1r/glossary"},"https://edition640.makingandknowing.org/#/folios/1r/f/1r/glossary"),".")),this.renderGlossary()))):null}}])&&ty(n.prototype,i),r&&ty(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);function sy(e){for(var t=[],n=0;n<e.meanings.length;n++){var i=e.meanings[n],r=i.references?" [".concat(i.references,"]"):"",o=e.meanings.length>1?"".concat(n+1,". "):"",a=n<e.meanings.length-1?" ":"";t.push("".concat(o).concat(i.meaning).concat(r).concat(a))}return t}const ly=ot((function(e){return{glossary:e.glossary}}))(ay);function cy(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,uy(i.key),i)}}function uy(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function dy(e,t){return dy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dy(e,t)}function py(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=hy(e);if(t){var r=hy(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function hy(e){return hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hy(e)}var fy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dy(e,t)}(a,e);var n,i,r,o=py(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(i=[{key:"render",value:function(){return t().createElement("div",{className:"single-pane-view"},this.props.singlePane)}}])&&cy(n.prototype,i),r&&cy(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const my=ot((function(e){return{document:e.document}}))(fy);const gy=function(n){return function(i){var r,o,a=kn(),s=jn(),l=(r=e.useContext(On).matches,(o=r[r.length-1])?o.params:{});return t().createElement(n,Object.assign({},i,{router:{location:a,navigate:s,params:l}}))}};function vy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function by(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function wy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?by(Object(n),!0).forEach((function(t){xy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):by(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xy(e,t,n){return(t=Ey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cy(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ey(i.key),i)}}function Ey(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Sy(e,t){return Sy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sy(e,t)}function Ty(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Py(e);if(t){var r=Py(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ay(e)}(this,n)}}function Ay(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Py(e){return Py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Py(e)}var Oy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sy(e,t)}(a,e);var n,i,r,o=Ty(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).onWidth=function(e,n){t.setState((function(t){var i=wy({},t);return i.left.width=e,i.right.width=n,i}))},t.getViewports=function(){var e,n,i,r,o=t.props.router.params,a=o.folioID,s=o.transcriptionType,l=o.folioID2,c=o.transcriptionType2;a?(l?(n=s,i=l,r=c||"tl"):(n="f",i=a,r=s||"tl"),e={left:{folioID:a,transcriptionType:n},right:{folioID:i,transcriptionType:r}}):e={left:{folioID:"-1",transcriptionType:"g"},right:{folioID:"-1",transcriptionType:"tl"}};return e};var n={isXMLMode:!1,width:0};return t.state={linkedMode:!0,bookMode:!1,left:wy({},n),right:wy({},n),viewports:t.getViewports()},t.documentViewActions={setXMLMode:t.setXMLMode.bind(Ay(t)),setLinkedMode:t.setLinkedMode.bind(Ay(t)),setBookMode:t.setBookMode.bind(Ay(t)),changeTranscriptionType:t.changeTranscriptionType.bind(Ay(t)),changeCurrentFolio:t.changeCurrentFolio.bind(Ay(t)),jumpToFolio:t.jumpToFolio.bind(Ay(t))},t}return n=a,i=[{key:"componentDidMount",value:function(){ec(this.props,"DiplomaticActions.setFixedFrameMode",!0)}},{key:"setXMLMode",value:function(e,t){this.setState((function(n){var i=wy({},n);return i[e].isXMLMode=t,i}))}},{key:"setLinkedMode",value:function(e){this.setState((function(t){return wy(wy({},t),{},{linkedMode:e})}))}},{key:"setBookMode",value:function(e,t){if(this.setState((function(e){return wy(wy({},e),{},{bookMode:t})})),t){var n=vy(this.findBookFolios(e),2),i=n[0],r=n[1];this.navigateFolios(i,"f",r,"f")}}},{key:"jumpToFolio",value:function(e,t){var n=this.props.document;if(n.folioByName[e]){var i,r=null===(i=n.folioByName[e])||void 0===i?void 0:i.id;this.changeCurrentFolio(r,t,this.getViewports()[t].transcriptionType)}}},{key:"findBookFolios",value:function(e){var t=this.props.document,n=t.folioIndex[e],i=n.name,r=n.pageNumber;return i.endsWith("v")?[t.folios[r].id,t.folios[r+1].id]:i.endsWith("r")?[t.folios[r-1].id,t.folios[r].id]:[null,null]}},{key:"changeTranscriptionType",value:function(e,t){var n=this.getViewports();if("left"===e){var i=n.left.folioID,r=n.right;this.navigateFolios(i,t,r.folioID,r.transcriptionType)}else{var o=n.right.folioID,a=n.left;this.navigateFolios(a.folioID,a.transcriptionType,o,t)}}},{key:"navigateFolios",value:function(e,t,n,i){e?t?n?i?this.props.router.navigate("/ec/".concat(e,"/").concat(t,"/").concat(n,"/").concat(i)):this.props.router.navigate("/ec/".concat(e,"/").concat(t,"/").concat(n,"/tc")):this.props.router.navigate("/ec/".concat(e,"/").concat(t)):this.props.router.navigate("/ec/".concat(e)):this.props.router.navigate("/ec")}},{key:"changeCurrentFolio",value:function(e,t,n){var i=this.getViewports();if(this.state.bookMode){var r=vy(this.findBookFolios(e),2),o=r[0],a=r[1];o&&this.navigateFolios(o,"f",a,"f")}else if(this.state.linkedMode)if("left"===t){var s=i.right;this.navigateFolios(e,n,e,s.transcriptionType)}else{var l=i.left;this.navigateFolios(e,l.transcriptionType,e,n)}else if("left"===t){var c=i.right;this.navigateFolios(e,n,c.folioID,c.transcriptionType)}else{var u=i.left;this.navigateFolios(u.folioID,u.transcriptionType,e,n)}}},{key:"determineViewType",value:function(e){var t=this.getViewports()[e].transcriptionType,n=this.state[e].isXMLMode;return"g"===t?"ImageGridView":"f"===t?"ImageView":"glossary"===t?"GlossaryView":n?"XMLView":"TranscriptionView"}},{key:"viewportState",value:function(e){var t=this.props.document,n=this.getViewports()[e];if("-1"===n.folioID)return wy(wy({},this.state[e]),{},{iiifShortID:n.folioID,transcriptionType:n.transcriptionType});var i=n.folioID,r=t.folios.length,o="",a="",s=!1,l=!1;if(this.state.bookMode){var c=vy(this.findBookFolios(i),1)[0],u=t.folioIndex[c].pageNumber;u>-1&&(o=(l=u<r-2)?t.folios[u+2].id:"",a=(s=u>1&&r>1)?t.folios[u-2].id:"")}else{var d=t.folioIndex[i].pageNumber;d>-1&&(o=(l=d<r-1)?t.folios[d+1].id:"",a=(s=d>0&&r>1)?t.folios[d-1].id:"")}return wy(wy({},this.state[e]),{},{iiifShortID:i,transcriptionType:n.transcriptionType,hasPrevious:s,hasNext:l,previousFolioShortID:a,nextFolioShortID:o})}},{key:"renderPane",value:function(e,n){var i=this.determineViewType(e),r=this.viewPaneKey(e),o=n[e].iiifShortID,a=n[e].transcriptionType;return"ImageView"===i?t().createElement(Yg,{key:r,folioID:o,documentView:n,documentViewActions:this.documentViewActions,side:e}):"TranscriptionView"===i?t().createElement(Uv,{key:r,documentView:n,documentViewActions:this.documentViewActions,side:e,folioID:o,transcriptionType:a}):"XMLView"===i?t().createElement(Yv,{key:r,folioID:o,transcriptionType:a,documentView:n,documentViewActions:this.documentViewActions,side:e}):"ImageGridView"===i?t().createElement(lv,{key:r,documentView:n,documentViewActions:this.documentViewActions,side:e}):"GlossaryView"===i?t().createElement(ly,{key:r,documentView:n,documentViewActions:this.documentViewActions,side:e}):t().createElement("div",null,"ERROR: Unrecognized viewType.")}},{key:"viewPaneKey",value:function(e){var t=this.state[e];return"ImageGridView"===t.viewType?"".concat(e,"-").concat(t.viewType):void 0!==t.folio?"".concat(e,"-").concat(t.viewType,"-").concat(t.folio.id):"".concat(e,"-").concat(t.viewType)}},{key:"render",value:function(){if(!this.props.document.loaded)return null;var e=wy(wy({},this.state),{},{left:this.viewportState("left"),right:this.viewportState("right")}),n=wy(wy({},this.state),{},{right:wy({},this.viewportState("right"))});return ve("md",this.props.width)?t().createElement("div",null,t().createElement(fi,{leftPane:this.renderPane("left",e),rightPane:this.renderPane("right",e),onWidth:this.onWidth})):t().createElement("div",null,t().createElement(my,{singlePane:this.renderPane("right",n)}))}}],i&&Cy(n.prototype,i),r&&Cy(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const Iy=be()(ot((function(e){return{document:e.document}}))(gy(Oy)));function Ry(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ky(i.key),i)}}function ky(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Dy(e,t){return Dy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dy(e,t)}function jy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=My(e);if(t){var r=My(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function My(e){return My=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},My(e)}var Ny=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dy(e,t)}(o,e);var t,n,i,r=jy(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this,e)).listening=!1,t}return t=o,(n=[{key:"componentDidUpdate",value:function(e){this.props.router.location!==e.router.location&&this.userNavigated()}},{key:"componentDidMount",value:function(){this.listening||(this.userNavigated(),this.listening=!0)}},{key:"userNavigated",value:function(){ec(this.props,"RouteListenerSaga.userNavigatation",this.props.router.location)}},{key:"render",value:function(){return null}}])&&Ry(t.prototype,n),i&&Ry(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(t().Component);const Ly=ot((function(e){return{}}))(gy(Ny));function By(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Fy(i.key),i)}}function Fy(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function zy(e,t){return zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zy(e,t)}function _y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Hy(e);if(t){var r=Hy(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hy(e)}var Uy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zy(e,t)}(s,e);var n,i,r,o=_y(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.apply(this,arguments)}return n=s,i=[{key:"componentDidMount",value:function(){var e=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,i=n.history;function r(){var e=n.location,t=e.pathname,r=e.search,o=e.hash,a=i.state||{};return[a.idx,xe({pathname:t,search:r,hash:o,state:a.usr||null,key:a.key||"default"})]}var o=null;n.addEventListener(Ee,(function(){if(o)p.call(o),o=null;else{var e=we.Pop,t=r(),n=t[0],i=t[1];if(p.length){if(null!=n){var a=c-n;a&&(o={action:e,location:i,retry:function(){y(-1*a)}},y(a))}}else v(e)}}));var s=we.Pop,l=r(),c=l[0],u=l[1],d=Te(),p=Te();function h(e){return"string"==typeof e?e:Pe(e)}function f(e,t){return void 0===t&&(t=null),xe(a({pathname:u.pathname,hash:"",search:""},"string"==typeof e?Oe(e):e,{state:t,key:Ae()}))}function m(e,t){return[{usr:e.state,key:e.key,idx:t},h(e)]}function g(e,t,n){return!p.length||(p.call({action:e,location:t,retry:n}),!1)}function v(e){s=e;var t=r();c=t[0],u=t[1],d.call({action:s,location:u})}function y(e){i.go(e)}null==c&&(c=0,i.replaceState(a({},i.state,{idx:c}),""));var b={get action(){return s},get location(){return u},createHref:h,push:function e(t,r){var o=we.Push,a=f(t,r);if(g(o,a,(function(){e(t,r)}))){var s=m(a,c+1),l=s[0],u=s[1];try{i.pushState(l,"",u)}catch(e){n.location.assign(u)}v(o)}},replace:function e(t,n){var r=we.Replace,o=f(t,n);if(g(r,o,(function(){e(t,n)}))){var a=m(o,c),s=a[0],l=a[1];i.replaceState(s,"",l),v(r)}},go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return d.push(e)},block:function(e){var t=p.push(e);return 1===p.length&&n.addEventListener(Ce,Se),function(){t(),p.length||n.removeEventListener(Ce,Se)}}};return b}();e.listen((function(){window.scrollTo(0,0)}))}},{key:"render",value:function(){var e=this.props.diplomatic.fixedFrameMode?"fixed":"sticky";return t().createElement(at,{store:this.props.store},t().createElement(ti,null,t().createElement("div",{id:"diplomatic",className:e},t().createElement(Ly,null),t().createElement("div",{id:"content"},t().createElement(Yn,null,t().createElement(Zn,{path:"/ec/:folioID/:transcriptionType/:folioID2/:transcriptionType2",element:t().createElement(Iy,this.props),exact:!0}),t().createElement(Zn,{path:"/ec/:folioID/:transcriptionType",element:t().createElement(Iy,this.props),exact:!0}),t().createElement(Zn,{path:"/ec/:folioID",element:t().createElement(Iy,this.props),exact:!0}),t().createElement(Zn,{path:"/ec",element:t().createElement(Iy,this.props),exact:!0}),t().createElement(Zn,{path:"/",element:t().createElement(qn,{to:"/ec"}),exact:!0}))))))}}],i&&By(n.prototype,i),r&&By(n,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(e.Component);const Vy=be()(ot((function(e){return{diplomatic:e.diplomatic,documentView:e.documentView}}))(Uy));const Wy=function(e){var n=se({palette:{primary:{main:"#792421"},secondary:{main:"#EBE3DD"}}});return t().createElement(de,{theme:n},t().createElement(Vy,{config:e.config,store:$l(e.config)}))}})(),o=o.default})()));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.EditionCrafter=t(require("react"),require("react-dom")):e.EditionCrafter=t(e.React,e.ReactDOM)}(self,((e,t)=>(()=>{var n={2616:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);i&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},9676:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8515:e=>{"use strict";e.exports=function(e){return e[1]}},9219:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},3660:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(9219),a=n(8571);r(n(8571),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,i=new a.Element(e,t,void 0,n);this.addNode(i),this.tagStack.push(i)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===o.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},8571:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(9219),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),E(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return r(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,n){var i=e.call(this,n)||this;return i.name=t,i.type=a.ElementType.Directive,i}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return r(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var m=function(e){function t(t,n,i,r){void 0===i&&(i=[]),void 0===r&&(r="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,i)||this;return o.name=t,o.attribs=n,o.type=r,o}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,i;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(i=e["x-attribsPrefix"])||void 0===i?void 0:i[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function x(e){return e.type===a.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(g(e)){var i=t?C(e.children):[],r=new m(e.name,o({},e.attribs),i);i.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=r}else if(v(e)){i=t?C(e.children):[];var a=new h(i);i.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){i=t?C(e.children):[];var s=new f(i);i.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function C(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=v,t.isText=y,t.isComment=b,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=E},9167:(e,t,n)=>{"use strict";var i=n(10),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return i.isMemo(e)?a:s[e.$$typeof]||r}s[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[i.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(f){var r=h(n);r&&r!==f&&e(t,r,i)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||i&&i[v]||m&&m[v]||s&&s[v])){var y=p(n,v);try{c(t,v,y)}catch(e){}}}}return t}},2634:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case u:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case r:return t}}}function E(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||x(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===r},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},10:(e,t,n)=>{"use strict";e.exports=n(2634)},4771:(e,t)=>{t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},896:e=>{var t="html",n="head",i="body",r=/<([a-zA-Z]+[0-9]?)/,o=/<head[^]*>/i,a=/<body[^]*>/i,s=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;s=l=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();s=function(e,t){return t?(d.documentElement.querySelector(t).innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var p,h="object"==typeof document?document.createElement("template"):{};h.content&&(p=function(e){return h.innerHTML=e,h.content.childNodes}),e.exports=function(e){var c,u,d,h,f=e.match(r);switch(f&&f[1]&&(c=f[1].toLowerCase()),c){case t:return u=l(e),o.test(e)||(d=u.querySelector(n))&&d.parentNode.removeChild(d),a.test(e)||(d=u.querySelector(i))&&d.parentNode.removeChild(d),u.querySelectorAll(t);case n:case i:return h=(u=s(e)).querySelectorAll(c),a.test(e)&&o.test(e)?h[0].parentNode.childNodes:h;default:return p?p(e):(d=s(e,i).querySelector(i)).childNodes}}},1911:(e,t,n)=>{var i=n(896),r=n(7226).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(o);return n&&n[1]&&(t=n[1]),r(i(e),null,t)}},7226:(e,t,n)=>{for(var i,r=n(3660),o=n(4771).CASE_SENSITIVE_TAG_NAMES,a=r.Comment,s=r.Element,l=r.ProcessingInstruction,c=r.Text,u={},d=0,p=o.length;d<p;d++)i=o[d],u[i.toLowerCase()]=i;function h(e){for(var t,n={},i=0,r=e.length;i<r;i++)n[(t=e[i]).name]=t.value;return n}function f(e){var t=function(e){return u[e]}(e=e.toLowerCase());return t||e}t.formatAttributes=h,t.formatDOM=function e(t,n,i){n=n||null;for(var r,o=[],u=0,d=t.length;u<d;u++){var p,m=t[u];switch(m.nodeType){case 1:r=f(m.nodeName),(p=new s(r,h(m.attributes))).children=e("template"===r?m.content.childNodes:m.childNodes,p);break;case 3:p=new c(m.nodeValue);break;case 8:p=new a(m.nodeValue);break;default:continue}var g=o[u-1]||null;g&&(g.next=p),p.parent=n,p.prev=g,p.next=null,o.push(p)}return i&&((p=new l(i.substring(0,i.indexOf(" ")).toLowerCase(),i)).next=o[0]||null,p.parent=n,o.unshift(p),o[1]&&(o[1].prev=o[0])),o}},6682:(e,t,n)=>{var i=n(3660),r=n(1911),o=n(1946),a=n(1136);r="function"==typeof r.default?r.default:r;var s={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:a(r(e,(t=t||{}).htmlparser2||s),t)}l.domToReact=a,l.htmlToDOM=r,l.attributesToProps=o,l.Comment=i.Comment,l.Element=i.Element,l.ProcessingInstruction=i.ProcessingInstruction,l.Text=i.Text,e.exports=l,l.default=l},1946:(e,t,n)=>{var i=n(6898),r=n(8340),o=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return i.possibleStandardNames[e]}e.exports=function(e,t){var n,c,u,d,p,h={},f=(e=e||{}).type&&s[e.type];for(n in e)if(u=e[n],i.isCustomAttribute(n))h[n]=u;else if(d=l(c=n.toLowerCase()))switch(p=i.getPropertyInfo(d),-1===o.indexOf(d)||-1===a.indexOf(t)||f||(d=l("default"+c)),h[d]=u,p&&p.type){case i.BOOLEAN:h[d]=!0;break;case i.OVERLOADED_BOOLEAN:""===u&&(h[d]=!0)}else r.PRESERVE_CUSTOM_ATTRIBUTES&&(h[n]=u);return r.setStyleProp(e.style,h),h}},1136:(e,t,n)=>{var i=n(4639),r=n(1946),o=n(8340),a=o.setStyleProp,s=o.canTextBeChildOfNode;function l(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var o,c,u,d,p,h=(n=n||{}).library||i,f=h.cloneElement,m=h.createElement,g=h.isValidElement,v=[],y="function"==typeof n.replace,b=n.trim,w=0,x=t.length;w<x;w++)if(o=t[w],y&&g(u=n.replace(o)))x>1&&(u=f(u,{key:u.key||w})),v.push(u);else if("text"!==o.type){switch(d=o.attribs,l(o)?a(d.style,d):d&&(d=r(d,o.name)),p=null,o.type){case"script":case"style":o.children[0]&&(d.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?d.defaultValue=o.children[0].data:o.children&&o.children.length&&(p=e(o.children,n));break;default:continue}x>1&&(d.key=w),v.push(m(o.name,d,p))}else{if((c=!o.data.trim().length)&&o.parent&&!s(o.parent))continue;if(b&&c)continue;v.push(o.data)}return 1===v.length?v[0]:v}},8340:(e,t,n)=>{var i=n(4639),r=n(7111).default;var o={reactCompat:!0};var a=i.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,i,r="function"==typeof t,o={},a={};for(n in e)i=e[n],r&&(o=t(n,i))&&2===o.length?a[o[0]]=o[1]:"string"==typeof i&&(a[i]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=r(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},5689:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function h(e){var t=e.match(n);t&&(d+=t.length);var i=e.lastIndexOf("\n");p=~i?e.length-i:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var g=[];function v(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;g.push(n)}function y(t){var n=t.exec(e);if(n){var i=n[0];return h(i),e=e.slice(i.length),n}}function b(){y(i)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var i=e.slice(2,n-2);return p+=2,h(i),e=e.slice(n),p+=2,t({type:"comment",comment:i})}}function E(){var e=f(),n=y(r);if(n){if(x(),!y(o))return v("property missing ':'");var i=y(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:i?u(i[0].replace(t,c)):c});return y(s),l}}return b(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},5652:(e,t,n)=>{var i="Expected a function",r=NaN,o="[object Symbol]",a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt,d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,p="object"==typeof self&&self&&self.Object===Object&&self,h=d||p||Function("return this")(),f=Object.prototype.toString,m=Math.max,g=Math.min,v=function(){return h.Date.now()};function y(e,t,n){var r,o,a,s,l,c,u=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(i);function f(t){var n=r,i=o;return r=o=void 0,u=t,s=e.apply(i,n)}function y(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-u>=a}function x(){var e=v();if(y(e))return E(e);l=setTimeout(x,function(e){var n=t-(e-c);return p?g(n,a-(e-u)):n}(e))}function E(e){return l=void 0,h&&r?f(e):(r=o=void 0,s)}function C(){var e=v(),n=y(e);if(r=arguments,o=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(x,t),d?f(e):s}(c);if(p)return l=setTimeout(x,t),f(c)}return void 0===l&&(l=setTimeout(x,t)),s}return t=w(t)||0,b(n)&&(d=!!n.leading,a=(p="maxWait"in n)?m(w(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),C.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=c=o=l=void 0},C.flush=function(){return void 0===l?s:E(v())},C}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&f.call(e)==o}(e))return r;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?r:+e}e.exports=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(i);return b(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),y(e,t,{leading:r,maxWait:t,trailing:o})}},281:function(e,t){var n,i,r,o,a;function s(e){return new s.Viewer(e)}!function(e){e.version={versionStr:"4.0.0",major:parseInt("4",10),minor:parseInt("0",10),revision:parseInt("0",10)};var t,n={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"},i=Object.prototype.toString,r=Object.prototype.hasOwnProperty;e.isFunction=function(t){return"function"===e.type(t)},e.isArray=Array.isArray||function(t){return"array"===e.type(t)},e.isWindow=function(e){return e&&"object"==typeof e&&"setInterval"in e},e.type=function(e){return null==e?String(e):n[i.call(e)]||"object"},e.isPlainObject=function(t){if(!t||"object"!==s.type(t)||t.nodeType||e.isWindow(t))return!1;if(t.constructor&&!r.call(t,"constructor")&&!r.call(t.constructor.prototype,"isPrototypeOf"))return!1;var n;for(var i in t)n=i;return void 0===n||r.call(t,n)},e.isEmptyObject=function(e){for(var t in e)return!1;return!0},e.freezeObject=function(t){return Object.freeze?e.freezeObject=Object.freeze:e.freezeObject=function(e){return e},e.freezeObject(t)},e.supportsCanvas=(t=document.createElement("canvas"),!(!e.isFunction(t.getContext)||!t.getContext("2d"))),e.isCanvasTainted=function(e){var t=!1;try{e.getContext("2d").getImageData(0,0,1,1)}catch(e){t=!0}return t},e.supportsAddEventListener=!(!document.documentElement.addEventListener||!document.addEventListener),e.supportsRemoveEventListener=!(!document.documentElement.removeEventListener||!document.removeEventListener),e.supportsEventListenerOptions=function(){var t=0;if(e.supportsAddEventListener)try{var n={get capture(){return t++,!1},get once(){return t++,!1},get passive(){return t++,!1}};window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(e){t=0}return t>=3}(),e.getCurrentPixelDensityRatio=function(){if(e.supportsCanvas){var t=document.createElement("canvas").getContext("2d"),n=window.devicePixelRatio||1,i=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return Math.max(n,1)/i}return 1},e.pixelDensityRatio=e.getCurrentPixelDensityRatio()}(s),function(e){e.extend=function(){var t,n,i,r,o,a,l=arguments[0]||{},c=arguments.length,u=!1,d=1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},d=2),"object"==typeof l||s.isFunction(l)||(l={}),c===d&&(l=this,--d);d<c;d++)if(null!==(t=arguments[d])||void 0!==t)for(n in t){var p=Object.getOwnPropertyDescriptor(t,n);void 0!==p?p.get||p.set?Object.defineProperty(l,n,p):l!==(r=p.value)&&(u&&r&&(s.isPlainObject(r)||(o=s.isArray(r)))?(i=l[n],o?(o=!1,a=i&&s.isArray(i)?i:[]):a=i&&s.isPlainObject(i)?i:{},l[n]=s.extend(u,a,r)):void 0!==r&&(l[n]=r)):e.console.warn('Could not copy inherited property "'+n+'".')}return l};e.extend(e,{DEFAULT_SETTINGS:{xmlPath:null,tileSources:null,tileHost:null,initialPage:0,crossOriginPolicy:!1,ajaxWithCredentials:!1,loadTilesWithAjax:!1,ajaxHeaders:{},splitHashDataForPost:!1,panHorizontal:!0,panVertical:!0,constrainDuringPan:!1,wrapHorizontal:!1,wrapVertical:!1,visibilityRatio:.5,minPixelRatio:.5,defaultZoomLevel:0,minZoomLevel:null,maxZoomLevel:null,homeFillsViewer:!1,clickTimeThreshold:300,clickDistThreshold:5,dblClickTimeThreshold:300,dblClickDistThreshold:20,springStiffness:6.5,animationTime:1.2,gestureSettingsMouse:{dragToPan:!0,scrollToZoom:!0,clickToZoom:!0,dblClickToZoom:!1,dblClickDragToZoom:!1,pinchToZoom:!1,zoomToRefPoint:!0,flickEnabled:!1,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsTouch:{dragToPan:!0,scrollToZoom:!1,clickToZoom:!1,dblClickToZoom:!0,dblClickDragToZoom:!0,pinchToZoom:!0,zoomToRefPoint:!0,flickEnabled:!0,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsPen:{dragToPan:!0,scrollToZoom:!1,clickToZoom:!0,dblClickToZoom:!1,dblClickDragToZoom:!1,pinchToZoom:!1,zoomToRefPoint:!0,flickEnabled:!1,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsUnknown:{dragToPan:!0,scrollToZoom:!1,clickToZoom:!1,dblClickToZoom:!0,dblClickDragToZoom:!1,pinchToZoom:!0,zoomToRefPoint:!0,flickEnabled:!0,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},zoomPerClick:2,zoomPerScroll:1.2,zoomPerDblClickDrag:1.2,zoomPerSecond:1,blendTime:0,alwaysBlend:!1,autoHideControls:!0,immediateRender:!1,minZoomImageRatio:.9,maxZoomPixelRatio:1.1,smoothTileEdgesMinZoom:1.1,iOSDevice:function(){if("object"!=typeof navigator)return!1;var e=navigator.userAgent;return"string"==typeof e&&(-1!==e.indexOf("iPhone")||-1!==e.indexOf("iPad")||-1!==e.indexOf("iPod"))}(),pixelsPerWheelLine:40,pixelsPerArrowPress:40,autoResize:!0,preserveImageSizeOnResize:!1,minScrollDeltaTime:50,rotationIncrement:90,showSequenceControl:!0,sequenceControlAnchor:null,preserveViewport:!1,preserveOverlays:!1,navPrevNextWrap:!1,showNavigationControl:!0,navigationControlAnchor:null,showZoomControl:!0,showHomeControl:!0,showFullPageControl:!0,showRotationControl:!1,showFlipControl:!1,controlsFadeDelay:2e3,controlsFadeLength:1500,mouseNavEnabled:!0,showNavigator:!1,navigatorElement:null,navigatorId:null,navigatorPosition:null,navigatorSizeRatio:.2,navigatorMaintainSizeRatio:!1,navigatorTop:null,navigatorLeft:null,navigatorHeight:null,navigatorWidth:null,navigatorAutoResize:!0,navigatorAutoFade:!0,navigatorRotate:!0,navigatorBackground:"#000",navigatorOpacity:.8,navigatorBorderColor:"#555",navigatorDisplayRegionColor:"#900",degrees:0,flipped:!1,opacity:1,preload:!1,compositeOperation:null,imageSmoothingEnabled:!0,placeholderFillStyle:null,subPixelRoundingForTransparency:null,showReferenceStrip:!1,referenceStripScroll:"horizontal",referenceStripElement:null,referenceStripHeight:null,referenceStripWidth:null,referenceStripPosition:"BOTTOM_LEFT",referenceStripSizeRatio:.2,collectionRows:3,collectionColumns:0,collectionLayout:"horizontal",collectionMode:!1,collectionTileSize:800,collectionTileMargin:80,imageLoaderLimit:0,maxImageCacheCount:200,timeout:3e4,useCanvas:!0,prefixUrl:"/images/",navImages:{zoomIn:{REST:"zoomin_rest.png",GROUP:"zoomin_grouphover.png",HOVER:"zoomin_hover.png",DOWN:"zoomin_pressed.png"},zoomOut:{REST:"zoomout_rest.png",GROUP:"zoomout_grouphover.png",HOVER:"zoomout_hover.png",DOWN:"zoomout_pressed.png"},home:{REST:"home_rest.png",GROUP:"home_grouphover.png",HOVER:"home_hover.png",DOWN:"home_pressed.png"},fullpage:{REST:"fullpage_rest.png",GROUP:"fullpage_grouphover.png",HOVER:"fullpage_hover.png",DOWN:"fullpage_pressed.png"},rotateleft:{REST:"rotateleft_rest.png",GROUP:"rotateleft_grouphover.png",HOVER:"rotateleft_hover.png",DOWN:"rotateleft_pressed.png"},rotateright:{REST:"rotateright_rest.png",GROUP:"rotateright_grouphover.png",HOVER:"rotateright_hover.png",DOWN:"rotateright_pressed.png"},flip:{REST:"flip_rest.png",GROUP:"flip_grouphover.png",HOVER:"flip_hover.png",DOWN:"flip_pressed.png"},previous:{REST:"previous_rest.png",GROUP:"previous_grouphover.png",HOVER:"previous_hover.png",DOWN:"previous_pressed.png"},next:{REST:"next_rest.png",GROUP:"next_grouphover.png",HOVER:"next_hover.png",DOWN:"next_pressed.png"}},debugMode:!1,debugGridColor:["#437AB2","#1B9E77","#D95F02","#7570B3","#E7298A","#66A61E","#E6AB02","#A6761D","#666666"],silenceMultiImageWarnings:!1},SIGNAL:"----seadragon----",delegate:function(e,t){return function(){var n=arguments;return void 0===n&&(n=[]),t.apply(e,n)}},BROWSERS:{UNKNOWN:0,IE:1,FIREFOX:2,SAFARI:3,CHROME:4,OPERA:5,EDGE:6,CHROMEEDGE:7},SUBPIXEL_ROUNDING_OCCURRENCES:{NEVER:0,ONLY_AT_REST:1,ALWAYS:2},_viewers:new Map,getViewer:function(t){return e._viewers.get(this.getElement(t))},getElement:function(e){return"string"==typeof e&&(e=document.getElementById(e)),e},getElementPosition:function(t){var n,i,o=new e.Point;for(i=r(t=e.getElement(t),n="fixed"===e.getElementStyle(t).position);i;)o.x+=t.offsetLeft,o.y+=t.offsetTop,n&&(o=o.plus(e.getPageScroll())),i=r(t=i,n="fixed"===e.getElementStyle(t).position);return o},getElementOffset:function(t){var n,i,r=(t=e.getElement(t))&&t.ownerDocument,o={top:0,left:0};return r?(n=r.documentElement,void 0!==t.getBoundingClientRect&&(o=t.getBoundingClientRect()),i=r===r.window?r:9===r.nodeType&&(r.defaultView||r.parentWindow),new e.Point(o.left+(i.pageXOffset||n.scrollLeft)-(n.clientLeft||0),o.top+(i.pageYOffset||n.scrollTop)-(n.clientTop||0))):new e.Point},getElementSize:function(t){return t=e.getElement(t),new e.Point(t.clientWidth,t.clientHeight)},getElementStyle:document.documentElement.currentStyle?function(t){return(t=e.getElement(t)).currentStyle}:function(t){return t=e.getElement(t),window.getComputedStyle(t,"")},getCssPropertyWithVendorPrefix:function(t){var n={};return e.getCssPropertyWithVendorPrefix=function(t){if(void 0!==n[t])return n[t];var i=document.createElement("div").style,r=null;if(void 0!==i[t])r=t;else for(var o=["Webkit","Moz","MS","O","webkit","moz","ms","o"],a=e.capitalizeFirstLetter(t),s=0;s<o.length;s++){var l=o[s]+a;if(void 0!==i[l]){r=l;break}}return n[t]=r,r},e.getCssPropertyWithVendorPrefix(t)},capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},positiveModulo:function(e,t){var n=e%t;return n<0&&(n+=t),n},pointInElement:function(t,n){t=e.getElement(t);var i=e.getElementOffset(t),r=e.getElementSize(t);return n.x>=i.x&&n.x<i.x+r.x&&n.y<i.y+r.y&&n.y>=i.y},getMousePosition:function(t){if("number"==typeof t.pageX)e.getMousePosition=function(t){var n=new e.Point;return n.x=t.pageX,n.y=t.pageY,n};else{if("number"!=typeof t.clientX)throw new Error("Unknown event mouse position, no known technique.");e.getMousePosition=function(t){var n=new e.Point;return n.x=t.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,n.y=t.clientY+document.body.scrollTop+document.documentElement.scrollTop,n}}return e.getMousePosition(t)},getPageScroll:function(){var t=document.documentElement||{},n=document.body||{};if("number"==typeof window.pageXOffset)e.getPageScroll=function(){return new e.Point(window.pageXOffset,window.pageYOffset)};else if(n.scrollLeft||n.scrollTop)e.getPageScroll=function(){return new e.Point(document.body.scrollLeft,document.body.scrollTop)};else{if(!t.scrollLeft&&!t.scrollTop)return new e.Point(0,0);e.getPageScroll=function(){return new e.Point(document.documentElement.scrollLeft,document.documentElement.scrollTop)}}return e.getPageScroll()},setPageScroll:function(t){if(void 0!==window.scrollTo)e.setPageScroll=function(e){window.scrollTo(e.x,e.y)};else{var n=e.getPageScroll();if(n.x===t.x&&n.y===t.y)return;document.body.scrollLeft=t.x,document.body.scrollTop=t.y;var i=e.getPageScroll();if(i.x!==n.x&&i.y!==n.y)return void(e.setPageScroll=function(e){document.body.scrollLeft=e.x,document.body.scrollTop=e.y});if(document.documentElement.scrollLeft=t.x,document.documentElement.scrollTop=t.y,(i=e.getPageScroll()).x!==n.x&&i.y!==n.y)return void(e.setPageScroll=function(e){document.documentElement.scrollLeft=e.x,document.documentElement.scrollTop=e.y});e.setPageScroll=function(e){}}e.setPageScroll(t)},getWindowSize:function(){var t=document.documentElement||{},n=document.body||{};if("number"==typeof window.innerWidth)e.getWindowSize=function(){return new e.Point(window.innerWidth,window.innerHeight)};else if(t.clientWidth||t.clientHeight)e.getWindowSize=function(){return new e.Point(document.documentElement.clientWidth,document.documentElement.clientHeight)};else{if(!n.clientWidth&&!n.clientHeight)throw new Error("Unknown window size, no known technique.");e.getWindowSize=function(){return new e.Point(document.body.clientWidth,document.body.clientHeight)}}return e.getWindowSize()},makeCenteredNode:function(t){t=e.getElement(t);var n=[e.makeNeutralElement("div"),e.makeNeutralElement("div"),e.makeNeutralElement("div")];return e.extend(n[0].style,{display:"table",height:"100%",width:"100%"}),e.extend(n[1].style,{display:"table-row"}),e.extend(n[2].style,{display:"table-cell",verticalAlign:"middle",textAlign:"center"}),n[0].appendChild(n[1]),n[1].appendChild(n[2]),n[2].appendChild(t),n[0]},makeNeutralElement:function(e){var t=document.createElement(e),n=t.style;return n.background="transparent none",n.border="none",n.margin="0px",n.padding="0px",n.position="static",t},now:function(){return Date.now?e.now=Date.now:e.now=function(){return(new Date).getTime()},e.now()},makeTransparentImage:function(t){var n=e.makeNeutralElement("img");return n.src=t,n},setElementOpacity:function(t,n,i){var r;t=e.getElement(t),i&&!e.Browser.alpha&&(n=Math.round(n)),e.Browser.opacity?t.style.opacity=n<1?n:"":n<1?(r="alpha(opacity="+Math.round(100*n)+")",t.style.filter=r):t.style.filter=""},setElementTouchActionNone:function(t){void 0!==(t=e.getElement(t)).style.touchAction?t.style.touchAction="none":void 0!==t.style.msTouchAction&&(t.style.msTouchAction="none")},setElementPointerEvents:function(t,n){void 0!==(t=e.getElement(t)).style&&void 0!==t.style.pointerEvents&&(t.style.pointerEvents=n)},setElementPointerEventsNone:function(t){e.setElementPointerEvents(t,"none")},addClass:function(t,n){(t=e.getElement(t)).className?-1===(" "+t.className+" ").indexOf(" "+n+" ")&&(t.className+=" "+n):t.className=n},indexOf:function(e,t,n){return Array.prototype.indexOf?this.indexOf=function(e,t,n){return e.indexOf(t,n)}:this.indexOf=function(e,t,n){var i,r,o=n||0;if(!e)throw new TypeError;if(0===(r=e.length)||o>=r)return-1;for(o<0&&(o=r-Math.abs(o)),i=o;i<r;i++)if(e[i]===t)return i;return-1},this.indexOf(e,t,n)},removeClass:function(t,n){var i,r,o=[];for(i=(t=e.getElement(t)).className.split(/\s+/),r=0;r<i.length;r++)i[r]&&i[r]!==n&&o.push(i[r]);t.className=o.join(" ")},normalizeEventListenerOptions:function(t){return void 0!==t?"boolean"==typeof t?e.supportsEventListenerOptions?{capture:t}:t:e.supportsEventListenerOptions?t:void 0!==t.capture&&t.capture:!!e.supportsEventListenerOptions&&{capture:!1}},addEvent:function(){if(e.supportsAddEventListener)return function(t,n,i,r){r=e.normalizeEventListenerOptions(r),(t=e.getElement(t)).addEventListener(n,i,r)};if(document.documentElement.attachEvent&&document.attachEvent)return function(t,n,i){(t=e.getElement(t)).attachEvent("on"+n,i)};throw new Error("No known event model.")}(),removeEvent:function(){if(e.supportsRemoveEventListener)return function(t,n,i,r){r=e.normalizeEventListenerOptions(r),(t=e.getElement(t)).removeEventListener(n,i,r)};if(document.documentElement.detachEvent&&document.detachEvent)return function(t,n,i){(t=e.getElement(t)).detachEvent("on"+n,i)};throw new Error("No known event model.")}(),cancelEvent:function(e){e.preventDefault()},eventIsCanceled:function(e){return e.defaultPrevented},stopEvent:function(e){e.stopPropagation()},createCallback:function(e,t){var n,i=[];for(n=2;n<arguments.length;n++)i.push(arguments[n]);return function(){var n,r=i.concat([]);for(n=0;n<arguments.length;n++)r.push(arguments[n]);return t.apply(e,r)}},getUrlParameter:function(e){var t=i[e];return t||null},getUrlProtocol:function(e){var t=e.match(/^([a-z]+:)\/\//i);return null===t?window.location.protocol:t[1].toLowerCase()},createAjaxRequest:function(t){var n;try{n=!!new ActiveXObject("Microsoft.XMLHTTP")}catch(e){n=!1}if(n)window.XMLHttpRequest?e.createAjaxRequest=function(e){return e?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest}:e.createAjaxRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP")};else{if(!window.XMLHttpRequest)throw new Error("Browser doesn't support XMLHttpRequest.");e.createAjaxRequest=function(){return new XMLHttpRequest}}return e.createAjaxRequest(t)},makeAjaxRequest:function(t,n,i){var r,o,a,s;e.isPlainObject(t)&&(n=t.success,i=t.error,r=t.withCredentials,o=t.headers,a=t.responseType||null,s=t.postData||null,t=t.url);var l=e.getUrlProtocol(t),c=e.createAjaxRequest("file:"===l);if(!e.isFunction(n))throw new Error("makeAjaxRequest requires a success callback");c.onreadystatechange=function(){4===c.readyState&&(c.onreadystatechange=function(){},c.status>=200&&c.status<300||0===c.status&&"http:"!==l&&"https:"!==l?n(c):e.isFunction(i)?i(c):e.console.error("AJAX request returned %d: %s",c.status,t))};var u=s?"POST":"GET";try{if(c.open(u,t,!0),a&&(c.responseType=a),o)for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&o[d]&&c.setRequestHeader(d,o[d]);r&&(c.withCredentials=!0),c.send(s)}catch(t){e.console.error("%s while making AJAX request: %s",t.name,t.message),c.onreadystatechange=function(){},e.isFunction(i)&&i(c,t)}return c},jsonp:function(t){var n,i=t.url,r=document.head||document.getElementsByTagName("head")[0]||document.documentElement,o=t.callbackName||"openseadragon"+e.now(),a=window[o],s="$1"+o+"$2",l=t.param||"callback",c=t.callback;i=i.replace(/(=)\?(&|$)|\?\?/i,s),i+=(/\?/.test(i)?"&":"?")+l+"="+o,window[o]=function(t){if(a)window[o]=a;else try{delete window[o]}catch(e){}c&&e.isFunction(c)&&c(t)},n=document.createElement("script"),void 0===t.async&&!1===t.async||(n.async="async"),t.scriptCharset&&(n.charset=t.scriptCharset),n.src=i,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=void 0)},r.insertBefore(n,r.firstChild)},createFromDZI:function(){throw"OpenSeadragon.createFromDZI is deprecated, use Viewer.open."},parseXml:function(t){if(window.DOMParser)e.parseXml=function(e){return(new DOMParser).parseFromString(e,"text/xml")};else{if(!window.ActiveXObject)throw new Error("Browser doesn't support XML DOM.");e.parseXml=function(e){var t=null;return(t=new ActiveXObject("Microsoft.XMLDOM")).async=!1,t.loadXML(e),t}}return e.parseXml(t)},parseJSON:function(t){return e.parseJSON=window.JSON.parse,e.parseJSON(t)},imageFormatSupported:function(e){return!!n[(e=e||"").toLowerCase()]},setImageFormatsSupported:function(t){e.extend(n,t)}});var t=function(e){};e.console=window.console||{log:t,debug:t,info:t,warn:t,error:t,assert:t},e.Browser={vendor:e.BROWSERS.UNKNOWN,version:0,alpha:!0};var n={bmp:!1,jpeg:!0,jpg:!0,png:!0,tif:!1,wdp:!1},i={};function r(e,t){return t&&e!==document.body?document.body:e.offsetParent}!function(){var t=navigator.appVersion,n=navigator.userAgent;switch(navigator.appName){case"Microsoft Internet Explorer":window.attachEvent&&window.ActiveXObject&&(e.Browser.vendor=e.BROWSERS.IE,e.Browser.version=parseFloat(n.substring(n.indexOf("MSIE")+5,n.indexOf(";",n.indexOf("MSIE")))));break;case"Netscape":window.addEventListener&&(n.indexOf("Edge")>=0?(e.Browser.vendor=e.BROWSERS.EDGE,e.Browser.version=parseFloat(n.substring(n.indexOf("Edge")+5))):n.indexOf("Edg")>=0?(e.Browser.vendor=e.BROWSERS.CHROMEEDGE,e.Browser.version=parseFloat(n.substring(n.indexOf("Edg")+4))):n.indexOf("Firefox")>=0?(e.Browser.vendor=e.BROWSERS.FIREFOX,e.Browser.version=parseFloat(n.substring(n.indexOf("Firefox")+8))):n.indexOf("Safari")>=0?(e.Browser.vendor=n.indexOf("Chrome")>=0?e.BROWSERS.CHROME:e.BROWSERS.SAFARI,e.Browser.version=parseFloat(n.substring(n.substring(0,n.indexOf("Safari")).lastIndexOf("/")+1,n.indexOf("Safari")))):null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(n)&&(e.Browser.vendor=e.BROWSERS.IE,e.Browser.version=parseFloat(RegExp.$1)));break;case"Opera":e.Browser.vendor=e.BROWSERS.OPERA,e.Browser.version=parseFloat(t)}var r,o,a,s=window.location.search.substring(1).split("&");for(a=0;a<s.length;a++)if((o=(r=s[a]).indexOf("="))>0){var l=r.substring(0,o),c=r.substring(o+1);try{i[l]=decodeURIComponent(c)}catch(t){e.console.error("Ignoring malformed URL parameter: %s=%s",l,c)}}e.Browser.alpha=!(e.Browser.vendor===e.BROWSERS.CHROME&&e.Browser.version<2),e.Browser.opacity=!0,e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<11&&e.console.error("Internet Explorer versions < 11 are not supported by OpenSeadragon")}(),function(t){var n=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame,i=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.msCancelAnimationFrame;if(n&&i)e.requestAnimationFrame=function(){return n.apply(t,arguments)},e.cancelAnimationFrame=function(){return i.apply(t,arguments)};else{var r,o=[],a=[],s=0;e.requestAnimationFrame=function(t){return o.push([++s,t]),r||(r=setInterval((function(){if(o.length){var t=e.now(),n=a;for(a=o,o=n;a.length;)a.shift()[1](t)}else clearInterval(r),r=void 0}),20)),s},e.cancelAnimationFrame=function(e){var t,n;for(t=0,n=o.length;t<n;t+=1)if(o[t][0]===e)return void o.splice(t,1);for(t=0,n=a.length;t<n;t+=1)if(a[t][0]===e)return void a.splice(t,1)}}}(window)}(s),i=[],void 0===(r="function"==typeof(n=function(){return s})?n.apply(t,i):n)||(e.exports=r),o=s,a={supportsFullScreen:!1,isFullScreen:function(){return!1},getFullScreenElement:function(){return null},requestFullScreen:function(){},exitFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",fullScreenErrorEventName:""},document.exitFullscreen?(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.fullscreenElement},a.requestFullScreen=function(e){return e.requestFullscreen()},a.exitFullScreen=function(){document.exitFullscreen()},a.fullScreenEventName="fullscreenchange",a.fullScreenErrorEventName="fullscreenerror"):document.msExitFullscreen?(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.msFullscreenElement},a.requestFullScreen=function(e){return e.msRequestFullscreen()},a.exitFullScreen=function(){document.msExitFullscreen()},a.fullScreenEventName="MSFullscreenChange",a.fullScreenErrorEventName="MSFullscreenError"):document.webkitExitFullscreen?(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.webkitFullscreenElement},a.requestFullScreen=function(e){return e.webkitRequestFullscreen()},a.exitFullScreen=function(){document.webkitExitFullscreen()},a.fullScreenEventName="webkitfullscreenchange",a.fullScreenErrorEventName="webkitfullscreenerror"):document.webkitCancelFullScreen?(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.webkitCurrentFullScreenElement},a.requestFullScreen=function(e){return e.webkitRequestFullScreen()},a.exitFullScreen=function(){document.webkitCancelFullScreen()},a.fullScreenEventName="webkitfullscreenchange",a.fullScreenErrorEventName="webkitfullscreenerror"):document.mozCancelFullScreen&&(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.mozFullScreenElement},a.requestFullScreen=function(e){return e.mozRequestFullScreen()},a.exitFullScreen=function(){document.mozCancelFullScreen()},a.fullScreenEventName="mozfullscreenchange",a.fullScreenErrorEventName="mozfullscreenerror"),a.isFullScreen=function(){return null!==a.getFullScreenElement()},a.cancelFullScreen=function(){o.console.error("cancelFullScreen is deprecated. Use exitFullScreen instead."),a.exitFullScreen()},o.extend(o,a),function(e){e.EventSource=function(){this.events={}},e.EventSource.prototype={addOnceHandler:function(e,t,n,i){var r=this;i=i||1;var o=0;this.addHandler(e,(function n(a){++o===i&&r.removeHandler(e,n),t(a)}),n)},addHandler:function(t,n,i){var r=this.events[t];r||(this.events[t]=r=[]),n&&e.isFunction(n)&&(r[r.length]={handler:n,userData:i||null})},removeHandler:function(t,n){var i,r=this.events[t],o=[];if(r&&e.isArray(r)){for(i=0;i<r.length;i++)r[i].handler!==n&&o.push(r[i]);this.events[t]=o}},numberOfHandlers:function(e){var t=this.events[e];return t?t.length:0},removeAllHandlers:function(e){if(e)this.events[e]=[];else for(var t in this.events)this.events[t]=[]},getHandler:function(e){var t=this.events[e];return t&&t.length?(t=1===t.length?[t[0]]:Array.apply(null,t),function(e,n){var i,r=t.length;for(i=0;i<r;i++)t[i]&&(n.eventSource=e,n.userData=t[i].userData,t[i].handler(n))}):null},raiseEvent:function(e,t){var n=this.getHandler(e);n&&(t||(t={}),n(this,t))}}}(s),function(e){var t=[],n={};e.MouseTracker=function(i){t.push(this);var r=arguments;e.isPlainObject(i)||(i={element:r[0],clickTimeThreshold:r[1],clickDistThreshold:r[2]}),this.hash=Math.random(),this.element=e.getElement(i.element),this.clickTimeThreshold=i.clickTimeThreshold||e.DEFAULT_SETTINGS.clickTimeThreshold,this.clickDistThreshold=i.clickDistThreshold||e.DEFAULT_SETTINGS.clickDistThreshold,this.dblClickTimeThreshold=i.dblClickTimeThreshold||e.DEFAULT_SETTINGS.dblClickTimeThreshold,this.dblClickDistThreshold=i.dblClickDistThreshold||e.DEFAULT_SETTINGS.dblClickDistThreshold,this.userData=i.userData||null,this.stopDelay=i.stopDelay||50,this.preProcessEventHandler=i.preProcessEventHandler||null,this.contextMenuHandler=i.contextMenuHandler||null,this.enterHandler=i.enterHandler||null,this.leaveHandler=i.leaveHandler||null,this.exitHandler=i.exitHandler||null,this.overHandler=i.overHandler||null,this.outHandler=i.outHandler||null,this.pressHandler=i.pressHandler||null,this.nonPrimaryPressHandler=i.nonPrimaryPressHandler||null,this.releaseHandler=i.releaseHandler||null,this.nonPrimaryReleaseHandler=i.nonPrimaryReleaseHandler||null,this.moveHandler=i.moveHandler||null,this.scrollHandler=i.scrollHandler||null,this.clickHandler=i.clickHandler||null,this.dblClickHandler=i.dblClickHandler||null,this.dragHandler=i.dragHandler||null,this.dragEndHandler=i.dragEndHandler||null,this.pinchHandler=i.pinchHandler||null,this.stopHandler=i.stopHandler||null,this.keyDownHandler=i.keyDownHandler||null,this.keyUpHandler=i.keyUpHandler||null,this.keyHandler=i.keyHandler||null,this.focusHandler=i.focusHandler||null,this.blurHandler=i.blurHandler||null;var o=this;n[this.hash]={click:function(t){!function(t,n){var i={originalEvent:n,eventType:"click",pointerType:"mouse",isEmulated:!1};N(t,i),i.preventDefault&&!i.defaultPrevented&&e.cancelEvent(n);i.stopPropagation&&e.stopEvent(n)}(o,t)},dblclick:function(t){!function(t,n){var i={originalEvent:n,eventType:"dblclick",pointerType:"mouse",isEmulated:!1};N(t,i),i.preventDefault&&!i.defaultPrevented&&e.cancelEvent(n);i.stopPropagation&&e.stopEvent(n)}(o,t)},keydown:function(t){!function(t,n){var i=null,r={originalEvent:n,eventType:"keydown",pointerType:"",isEmulated:!1};N(t,r),!t.keyDownHandler||r.preventGesture||r.defaultPrevented||(i={eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefault:r.preventDefault||r.defaultPrevented,userData:t.userData},t.keyDownHandler(i));(i&&i.preventDefault||r.preventDefault&&!r.defaultPrevented)&&e.cancelEvent(n);r.stopPropagation&&e.stopEvent(n)}(o,t)},keyup:function(t){!function(t,n){var i=null,r={originalEvent:n,eventType:"keyup",pointerType:"",isEmulated:!1};N(t,r),!t.keyUpHandler||r.preventGesture||r.defaultPrevented||(i={eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefault:r.preventDefault||r.defaultPrevented,userData:t.userData},t.keyUpHandler(i));(i&&i.preventDefault||r.preventDefault&&!r.defaultPrevented)&&e.cancelEvent(n);r.stopPropagation&&e.stopEvent(n)}(o,t)},keypress:function(t){!function(t,n){var i=null,r={originalEvent:n,eventType:"keypress",pointerType:"",isEmulated:!1};N(t,r),!t.keyHandler||r.preventGesture||r.defaultPrevented||(i={eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefault:r.preventDefault||r.defaultPrevented,userData:t.userData},t.keyHandler(i));(i&&i.preventDefault||r.preventDefault&&!r.defaultPrevented)&&e.cancelEvent(n);r.stopPropagation&&e.stopEvent(n)}(o,t)},focus:function(e){!function(e,t){var n={originalEvent:t,eventType:"focus",pointerType:"",isEmulated:!1};N(e,n),e.focusHandler&&!n.preventGesture&&e.focusHandler({eventSource:e,originalEvent:t,userData:e.userData})}(o,e)},blur:function(e){!function(e,t){var n={originalEvent:t,eventType:"blur",pointerType:"",isEmulated:!1};N(e,n),e.blurHandler&&!n.preventGesture&&e.blurHandler({eventSource:e,originalEvent:t,userData:e.userData})}(o,e)},contextmenu:function(t){!function(t,n){var i=null,r={originalEvent:n,eventType:"contextmenu",pointerType:"mouse",isEmulated:!1};N(t,r),!t.contextMenuHandler||r.preventGesture||r.defaultPrevented||(i={eventSource:t,position:w(y(n),t.element),originalEvent:r.originalEvent,preventDefault:r.preventDefault||r.defaultPrevented,userData:t.userData},t.contextMenuHandler(i));(i&&i.preventDefault||r.preventDefault&&!r.defaultPrevented)&&e.cancelEvent(n);r.stopPropagation&&e.stopEvent(n)}(o,t)},wheel:function(e){!function(e,t){C(e,t,t)}(o,e)},mousewheel:function(e){E(o,e)},DOMMouseScroll:function(e){E(o,e)},MozMousePixelScroll:function(e){E(o,e)},losecapture:function(t){!function(t,n){var i={id:e.MouseTracker.mousePointerId,type:"mouse"},r={originalEvent:n,eventType:"lostpointercapture",pointerType:"mouse",isEmulated:!1};N(t,r),n.target===t.element&&L(t,i,!1);r.stopPropagation&&e.stopEvent(n)}(o,t)},mouseenter:function(e){S(o,e)},mouseleave:function(e){T(o,e)},mouseover:function(e){P(o,e)},mouseout:function(e){A(o,e)},mousedown:function(e){O(o,e)},mouseup:function(e){I(o,e)},mousemove:function(e){k(o,e)},touchstart:function(t){!function(t,n){var i,r,o,a=n.changedTouches.length,s=t.getActivePointersListByType("touch");i=e.now(),s.getLength()>n.touches.length-a&&e.console.warn("Tracked touch contact count doesn't match event.touches.length");var l={originalEvent:n,eventType:"pointerdown",pointerType:"touch",isEmulated:!1};for(N(t,l),r=0;r<a;r++)B(t,l,o={id:n.changedTouches[r].identifier,type:"touch",isPrimary:0===s.getLength(),currentPos:y(n.changedTouches[r]),currentTime:i}),_(t,l,o,0),L(t,o,!0);l.preventDefault&&!l.defaultPrevented&&e.cancelEvent(n);l.stopPropagation&&e.stopEvent(n)}(o,t)},touchend:function(t){!function(t,n){var i,r,o,a=n.changedTouches.length;i=e.now();var s={originalEvent:n,eventType:"pointerup",pointerType:"touch",isEmulated:!1};for(N(t,s),r=0;r<a;r++)z(t,s,o={id:n.changedTouches[r].identifier,type:"touch",currentPos:y(n.changedTouches[r]),currentTime:i},0),L(t,o,!1),F(t,s,o);s.preventDefault&&!s.defaultPrevented&&e.cancelEvent(n);s.stopPropagation&&e.stopEvent(n)}(o,t)},touchmove:function(t){!function(t,n){var i,r,o=n.changedTouches.length;i=e.now();var a={originalEvent:n,eventType:"pointermove",pointerType:"touch",isEmulated:!1};for(N(t,a),r=0;r<o;r++)H(t,a,{id:n.changedTouches[r].identifier,type:"touch",currentPos:y(n.changedTouches[r]),currentTime:i});a.preventDefault&&!a.defaultPrevented&&e.cancelEvent(n);a.stopPropagation&&e.stopEvent(n)}(o,t)},touchcancel:function(t){!function(t,n){var i,r=n.changedTouches.length,o={originalEvent:n,eventType:"pointercancel",pointerType:"touch",isEmulated:!1};for(N(t,o),i=0;i<r;i++)U(t,o,{id:n.changedTouches[i].identifier,type:"touch"});o.stopPropagation&&e.stopEvent(n)}(o,t)},gesturestart:function(t){!function(t,n){e.eventIsCanceled(n)||n.preventDefault()}(0,t)},gesturechange:function(t){!function(t,n){e.eventIsCanceled(n)||n.preventDefault()}(0,t)},gotpointercapture:function(t){!function(t,n){var i={originalEvent:n,eventType:"gotpointercapture",pointerType:g(n),isEmulated:!1};N(t,i),n.target===t.element&&L(t,{id:n.pointerId,type:g(n)},!0);i.stopPropagation&&e.stopEvent(n)}(o,t)},lostpointercapture:function(t){!function(t,n){var i={originalEvent:n,eventType:"lostpointercapture",pointerType:g(n),isEmulated:!1};N(t,i),n.target===t.element&&L(t,{id:n.pointerId,type:g(n)},!1);i.stopPropagation&&e.stopEvent(n)}(o,t)},pointerenter:function(e){S(o,e)},pointerleave:function(e){T(o,e)},pointerover:function(e){P(o,e)},pointerout:function(e){A(o,e)},pointerdown:function(e){O(o,e)},pointerup:function(e){I(o,e)},pointermove:function(e){k(o,e)},pointercancel:function(t){!function(t,n){var i={id:n.pointerId,type:g(n)},r={originalEvent:n,eventType:"pointercancel",pointerType:i.type,isEmulated:!1};N(t,r),U(t,r,i),r.stopPropagation&&e.stopEvent(n)}(o,t)},pointerupcaptured:function(t){!function(t,n){var i=t.getActivePointersListByType(g(n));i.getById(n.pointerId)&&R(t,n);e.stopEvent(n)}(o,t)},pointermovecaptured:function(t){!function(t,n){var i=t.getActivePointersListByType(g(n));i.getById(n.pointerId)&&D(t,n);e.stopEvent(n)}(o,t)},tracking:!1,activePointersLists:[],lastClickPos:null,dblClickTimeOut:null,pinchGPoints:[],lastPinchDist:0,currentPinchDist:0,lastPinchCenter:null,currentPinchCenter:null,sentDragEvent:!1},this.hasGestureHandlers=!!(this.pressHandler||this.nonPrimaryPressHandler||this.releaseHandler||this.nonPrimaryReleaseHandler||this.clickHandler||this.dblClickHandler||this.dragHandler||this.dragEndHandler||this.pinchHandler),this.hasScrollHandler=!!this.scrollHandler,e.MouseTracker.havePointerEvents&&e.setElementPointerEvents(this.element,"auto"),this.exitHandler&&e.console.error("MouseTracker.exitHandler is deprecated. Use MouseTracker.leaveHandler instead."),i.startDisabled||this.setTracking(!0)},e.MouseTracker.prototype={destroy:function(){var e;for(p(this),this.element=null,e=0;e<t.length;e++)if(t[e]===this){t.splice(e,1);break}n[this.hash]=null,delete n[this.hash]},isTracking:function(){return n[this.hash].tracking},setTracking:function(t){return t?function(t){var i,r,o=n[t.hash];if(!o.tracking){for(r=0;r<e.MouseTracker.subscribeEvents.length;r++)i=e.MouseTracker.subscribeEvents[r],e.addEvent(t.element,i,o[i],i===e.MouseTracker.wheelEventName&&{passive:!1,capture:!1});d(t),o.tracking=!0}}(this):p(this),this},getActivePointersListByType:function(t){var i,r,o=n[this.hash],a=o.activePointersLists.length;for(i=0;i<a;i++)if(o.activePointersLists[i].type===t)return o.activePointersLists[i];return r=new e.MouseTracker.GesturePointList(t),o.activePointersLists.push(r),r},getActivePointerCount:function(){var e,t=n[this.hash],i=t.activePointersLists.length,r=0;for(e=0;e<i;e++)r+=t.activePointersLists[e].getLength();return r},preProcessEventHandler:function(){},contextMenuHandler:function(){},enterHandler:function(){},leaveHandler:function(){},exitHandler:function(){},overHandler:function(){},outHandler:function(){},pressHandler:function(){},nonPrimaryPressHandler:function(){},releaseHandler:function(){},nonPrimaryReleaseHandler:function(){},moveHandler:function(){},scrollHandler:function(){},clickHandler:function(){},dblClickHandler:function(){},dragHandler:function(){},dragEndHandler:function(){},pinchHandler:function(){},stopHandler:function(){},keyDownHandler:function(){},keyUpHandler:function(){},keyHandler:function(){},focusHandler:function(){},blurHandler:function(){}};var i,r,o,a,s,l,c=function(){try{return window.self!==window.top}catch(e){return!0}}();function u(e){try{return e.addEventListener&&e.removeEventListener}catch(e){return!1}}function d(e){var t,i,r,o,a,s=n[e.hash],l=s.activePointersLists.length;for(t=0;t<l;t++)if((r=s.activePointersLists[t]).getLength()>0){for(a=[],o=r.asArray(),i=0;i<o.length;i++)a.push(o[i]);for(i=0;i<a.length;i++)M(e,r,a[i])}for(t=0;t<l;t++)s.activePointersLists.pop();s.sentDragEvent=!1}function p(t){var i,r,o=n[t.hash];if(o.tracking){for(r=0;r<e.MouseTracker.subscribeEvents.length;r++)i=e.MouseTracker.subscribeEvents[r],e.removeEvent(t.element,i,o[i],!1);d(t),o.tracking=!1}}function h(e,t){var i=n[e.hash];if("pointerevent"===t)return{upName:"pointerup",upHandler:i.pointerupcaptured,moveName:"pointermove",moveHandler:i.pointermovecaptured};if("mouse"===t)return{upName:"pointerup",upHandler:i.pointerupcaptured,moveName:"pointermove",moveHandler:i.pointermovecaptured};if("touch"===t)return{upName:"touchend",upHandler:i.touchendcaptured,moveName:"touchmove",moveHandler:i.touchmovecaptured};throw new Error("MouseTracker.getCaptureEventParams: Unknown pointer type.")}function f(t,n){var i,r;if(e.MouseTracker.havePointerCapture)if(e.MouseTracker.havePointerEvents){if(!(r=t.getActivePointersListByType(n.type).getById(n.id))||!r.captured)return;try{t.element.releasePointerCapture(n.id)}catch(e){}}else t.element.releaseCapture();else i=h(t,e.MouseTracker.havePointerEvents?"pointerevent":n.type),c&&u(window.top)&&e.removeEvent(window.top,i.upName,i.upHandler,!0),e.removeEvent(e.MouseTracker.captureElement,i.moveName,i.moveHandler,!0),e.removeEvent(e.MouseTracker.captureElement,i.upName,i.upHandler,!0);L(t,n,!1)}function m(t){return e.MouseTracker.havePointerEvents?t.pointerId:e.MouseTracker.mousePointerId}function g(t){return e.MouseTracker.havePointerEvents?t.pointerType||(e.Browser.vendor===e.BROWSERS.IE?"mouse":""):"mouse"}function v(t){return!e.MouseTracker.havePointerEvents||t.isPrimary}function y(t){return e.getMousePosition(t)}function b(e,t){return w(y(e),t)}function w(t,n){var i=e.getElementOffset(n);return t.minus(i)}function x(t,n){return new e.Point((t.x+n.x)/2,(t.y+n.y)/2)}function E(t,n){var i={target:n.target||n.srcElement,type:"wheel",shiftKey:n.shiftKey||!1,clientX:n.clientX,clientY:n.clientY,pageX:n.pageX?n.pageX:n.clientX,pageY:n.pageY?n.pageY:n.clientY,deltaMode:"MozMousePixelScroll"===n.type?0:1,deltaX:0,deltaZ:0};"mousewheel"===e.MouseTracker.wheelEventName?i.deltaY=-n.wheelDelta/e.DEFAULT_SETTINGS.pixelsPerWheelLine:i.deltaY=n.detail,C(t,i,n)}function C(t,n,i){var r,o,a=null;r=n.deltaY<0?1:-1,N(t,o={originalEvent:n,eventType:"wheel",pointerType:"mouse",isEmulated:n!==i}),!t.scrollHandler||o.preventGesture||o.defaultPrevented||(a={eventSource:t,pointerType:"mouse",position:b(n,t.element),scroll:r,shift:n.shiftKey,isTouchEvent:!1,originalEvent:i,preventDefault:o.preventDefault||o.defaultPrevented,userData:t.userData},t.scrollHandler(a)),o.stopPropagation&&e.stopEvent(i),(a&&a.preventDefault||o.preventDefault&&!o.defaultPrevented)&&e.cancelEvent(i)}function S(t,n){var i={id:m(n),type:g(n),isPrimary:v(n),currentPos:y(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointerenter",pointerType:i.type,isEmulated:!1};N(t,r),B(t,r,i)}function T(t,n){var i={id:m(n),type:g(n),isPrimary:v(n),currentPos:y(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointerleave",pointerType:i.type,isEmulated:!1};N(t,r),F(t,r,i)}function P(t,n){var i={id:m(n),type:g(n),isPrimary:v(n),currentPos:y(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointerover",pointerType:i.type,isEmulated:!1};N(t,r),function(e,t,n){var i,r;i=e.getActivePointersListByType(n.type),r=i.getById(n.id),r?n=r:(n.captured=!1,n.insideElementPressed=!1);e.overHandler&&e.overHandler({eventSource:e,pointerType:n.type,position:w(n.currentPos,e.element),buttons:i.buttons,pointers:e.getActivePointerCount(),insideElementPressed:n.insideElementPressed,buttonDownAny:0!==i.buttons,isTouchEvent:"touch"===n.type,originalEvent:t.originalEvent,userData:e.userData})}(t,r,i),r.preventDefault&&!r.defaultPrevented&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n)}function A(t,n){var i={id:m(n),type:g(n),isPrimary:v(n),currentPos:y(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointerout",pointerType:i.type,isEmulated:!1};N(t,r),function(e,t,n){var i,r;i=e.getActivePointersListByType(n.type),r=i.getById(n.id),r?n=r:(n.captured=!1,n.insideElementPressed=!1);e.outHandler&&e.outHandler({eventSource:e,pointerType:n.type,position:n.currentPos&&w(n.currentPos,e.element),buttons:i.buttons,pointers:e.getActivePointerCount(),insideElementPressed:n.insideElementPressed,buttonDownAny:0!==i.buttons,isTouchEvent:"touch"===n.type,originalEvent:t.originalEvent,userData:e.userData})}(t,r,i),r.preventDefault&&!r.defaultPrevented&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n)}function O(t,n){var i={id:m(n),type:g(n),isPrimary:v(n),currentPos:y(n),currentTime:e.now()},r=e.MouseTracker.havePointerEvents&&"touch"===i.type&&e.Browser.vendor!==e.BROWSERS.IE,o={originalEvent:n,eventType:"pointerdown",pointerType:i.type,isEmulated:!1};N(t,o),_(t,o,i,n.button),o.preventDefault&&!o.defaultPrevented&&e.cancelEvent(n),o.stopPropagation&&e.stopEvent(n),o.shouldCapture&&(r?L(t,i,!0):function(t,n){var i;if(e.MouseTracker.havePointerCapture)if(e.MouseTracker.havePointerEvents)try{t.element.setPointerCapture(n.id)}catch(t){return void e.console.warn("setPointerCapture() called on invalid pointer ID")}else t.element.setCapture(!0);else i=h(t,e.MouseTracker.havePointerEvents?"pointerevent":n.type),c&&u(window.top)&&e.addEvent(window.top,i.upName,i.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,i.upName,i.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,i.moveName,i.moveHandler,!0);L(t,n,!0)}(t,i))}function I(e,t){R(e,t)}function R(t,n){var i,r={originalEvent:n,eventType:"pointerup",pointerType:(i={id:m(n),type:g(n),isPrimary:v(n),currentPos:y(n),currentTime:e.now()}).type,isEmulated:!1};N(t,r),z(t,r,i,n.button),r.preventDefault&&!r.defaultPrevented&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n),r.shouldReleaseCapture&&(n.target===t.element?f(t,i):L(t,i,!1))}function k(e,t){D(e,t)}function D(t,n){var i={id:m(n),type:g(n),isPrimary:v(n),currentPos:y(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointermove",pointerType:i.type,isEmulated:!1};N(t,r),H(t,r,i),r.preventDefault&&!r.defaultPrevented&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n)}function j(e,t){return t.speed=0,t.direction=0,t.contactPos=t.currentPos,t.contactTime=t.currentTime,t.lastPos=t.currentPos,t.lastTime=t.currentTime,e.add(t)}function M(t,n,i){var r,o=n.getById(i.id);return o?(o.captured&&(e.console.warn("stopTrackingPointer() called on captured pointer"),f(t,o)),n.removeContact(),r=n.removeById(i.id)):r=n.getLength(),r}function N(t,n){n.eventSource=t,n.eventPhase=n.originalEvent&&void 0!==n.originalEvent.eventPhase?n.originalEvent.eventPhase:0,n.defaultPrevented=e.eventIsCanceled(n.originalEvent),n.shouldCapture=!1,n.shouldReleaseCapture=!1,n.userData=t.userData,function(e,t){switch(t.eventType){case"pointermove":case"pointerdown":case"pointerup":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!1,t.preventGesture=!e.hasGestureHandlers,t.stopPropagation=!1;break;case"pointerover":case"pointerout":case"contextmenu":case"keydown":case"keyup":case"keypress":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!1,t.preventGesture=!1,t.stopPropagation=!1;break;case"wheel":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!1,t.preventGesture=!e.hasScrollHandler,t.stopPropagation=!1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":t.isStoppable=!0,t.isCancelable=!1,t.preventDefault=!1,t.preventGesture=!1,t.stopPropagation=!1;break;case"click":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!!e.clickHandler,t.preventGesture=!1,t.stopPropagation=!1;break;case"dblclick":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!!e.dblClickHandler,t.preventGesture=!1,t.stopPropagation=!1;break;default:t.isStoppable=!1,t.isCancelable=!1,t.preventDefault=!1,t.preventGesture=!1,t.stopPropagation=!1}}(t,n),t.preProcessEventHandler&&t.preProcessEventHandler(n)}function L(t,n,i){var r=t.getActivePointersListByType(n.type),o=r.getById(n.id);o?i&&!o.captured?(o.captured=!0,r.captureCount++):!i&&o.captured&&(o.captured=!1,r.captureCount--,r.captureCount<0&&(r.captureCount=0,e.console.warn("updatePointerCaptured() - pointsList.captureCount went negative"))):e.console.warn("updatePointerCaptured() called on untracked pointer")}function B(e,t,n){var i,r=e.getActivePointersListByType(n.type);(i=r.getById(n.id))?(i.insideElement=!0,i.lastPos=i.currentPos,i.lastTime=i.currentTime,i.currentPos=n.currentPos,i.currentTime=n.currentTime,n=i):(n.captured=!1,n.insideElementPressed=!1,n.insideElement=!0,j(r,n)),e.enterHandler&&e.enterHandler({eventSource:e,pointerType:n.type,position:w(n.currentPos,e.element),buttons:r.buttons,pointers:e.getActivePointerCount(),insideElementPressed:n.insideElementPressed,buttonDownAny:0!==r.buttons,isTouchEvent:"touch"===n.type,originalEvent:t.originalEvent,userData:e.userData})}function F(e,t,n){var i,r,o=e.getActivePointersListByType(n.type);(i=o.getById(n.id))?(i.captured?(i.insideElement=!1,i.lastPos=i.currentPos,i.lastTime=i.currentTime,i.currentPos=n.currentPos,i.currentTime=n.currentTime):M(e,o,i),n=i):(n.captured=!1,n.insideElementPressed=!1),(e.leaveHandler||e.exitHandler)&&(r={eventSource:e,pointerType:n.type,position:n.currentPos&&w(n.currentPos,e.element),buttons:o.buttons,pointers:e.getActivePointerCount(),insideElementPressed:n.insideElementPressed,buttonDownAny:0!==o.buttons,isTouchEvent:"touch"===n.type,originalEvent:t.originalEvent,userData:e.userData},e.leaveHandler&&e.leaveHandler(r),e.exitHandler&&e.exitHandler(r))}function _(t,i,r,o){var a,s=n[t.hash],l=t.getActivePointersListByType(r.type);if(void 0!==i.originalEvent.buttons?l.buttons=i.originalEvent.buttons:0===o?l.buttons|=1:1===o?l.buttons|=4:2===o?l.buttons|=2:3===o?l.buttons|=8:4===o?l.buttons|=16:5===o&&(l.buttons|=32),0!==o)return i.shouldCapture=!1,i.shouldReleaseCapture=!1,void(!t.nonPrimaryPressHandler||i.preventGesture||i.defaultPrevented||(i.preventDefault=!0,t.nonPrimaryPressHandler({eventSource:t,pointerType:r.type,position:w(r.currentPos,t.element),button:o,buttons:l.buttons,isTouchEvent:"touch"===r.type,originalEvent:i.originalEvent,userData:t.userData})));(a=l.getById(r.id))?(a.insideElementPressed=!0,a.insideElement=!0,a.originalTarget=i.originalEvent.target,a.contactPos=r.currentPos,a.contactTime=r.currentTime,a.lastPos=a.currentPos,a.lastTime=a.currentTime,a.currentPos=r.currentPos,a.currentTime=r.currentTime,r=a):(r.captured=!1,r.insideElementPressed=!0,r.insideElement=!0,r.originalTarget=i.originalEvent.target,j(l,r)),l.addContact(),i.preventGesture||i.defaultPrevented?(i.shouldCapture=!1,i.shouldReleaseCapture=!1):(i.shouldCapture=!0,i.shouldReleaseCapture=!1,i.preventDefault=!0,(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.addPoint(t,r),1===l.contacts?t.pressHandler&&!i.preventGesture&&t.pressHandler({eventSource:t,pointerType:r.type,position:w(r.contactPos,t.element),buttons:l.buttons,isTouchEvent:"touch"===r.type,originalEvent:i.originalEvent,userData:t.userData}):2===l.contacts&&t.pinchHandler&&"touch"===r.type&&(s.pinchGPoints=l.asArray(),s.lastPinchDist=s.currentPinchDist=s.pinchGPoints[0].currentPos.distanceTo(s.pinchGPoints[1].currentPos),s.lastPinchCenter=s.currentPinchCenter=x(s.pinchGPoints[0].currentPos,s.pinchGPoints[1].currentPos)))}function z(t,i,r,o){var a,s,l,c,u=n[t.hash],d=t.getActivePointersListByType(r.type),p=!1;if(void 0!==i.originalEvent.buttons?d.buttons=i.originalEvent.buttons:0===o?d.buttons^=-2:1===o?d.buttons^=-5:2===o?d.buttons^=-3:3===o?d.buttons^=-9:4===o?d.buttons^=-17:5===o&&(d.buttons^=-33),i.shouldCapture=!1,0!==o)return i.shouldReleaseCapture=!1,void(!t.nonPrimaryReleaseHandler||i.preventGesture||i.defaultPrevented||(i.preventDefault=!0,t.nonPrimaryReleaseHandler({eventSource:t,pointerType:r.type,position:w(r.currentPos,t.element),button:o,buttons:d.buttons,isTouchEvent:"touch"===r.type,originalEvent:i.originalEvent,userData:t.userData})));(l=d.getById(r.id))?(d.removeContact(),l.captured&&(p=!0),l.lastPos=l.currentPos,l.lastTime=l.currentTime,l.currentPos=r.currentPos,l.currentTime=r.currentTime,l.insideElement||M(t,d,l),a=l.currentPos,s=l.currentTime):(r.captured=!1,r.insideElementPressed=!1,r.insideElement=!0,j(d,r),l=r),i.preventGesture||i.defaultPrevented||(p?(i.shouldReleaseCapture=!0,i.preventDefault=!0,(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.removePoint(t,l),0===d.contacts?(t.releaseHandler&&a&&t.releaseHandler({eventSource:t,pointerType:l.type,position:w(a,t.element),buttons:d.buttons,insideElementPressed:l.insideElementPressed,insideElementReleased:l.insideElement,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,userData:t.userData}),t.dragEndHandler&&u.sentDragEvent&&t.dragEndHandler({eventSource:t,pointerType:l.type,position:w(l.currentPos,t.element),speed:l.speed,direction:l.direction,shift:i.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,userData:t.userData}),u.sentDragEvent=!1,(t.clickHandler||t.dblClickHandler)&&l.insideElement&&(c=s-l.contactTime<=t.clickTimeThreshold&&l.contactPos.distanceTo(a)<=t.clickDistThreshold,t.clickHandler&&t.clickHandler({eventSource:t,pointerType:l.type,position:w(l.currentPos,t.element),quick:c,shift:i.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,originalTarget:l.originalTarget,userData:t.userData}),t.dblClickHandler&&c&&(d.clicks++,1===d.clicks?(u.lastClickPos=a,u.dblClickTimeOut=setTimeout((function(){d.clicks=0}),t.dblClickTimeThreshold)):2===d.clicks&&(clearTimeout(u.dblClickTimeOut),d.clicks=0,u.lastClickPos.distanceTo(a)<=t.dblClickDistThreshold&&t.dblClickHandler({eventSource:t,pointerType:l.type,position:w(l.currentPos,t.element),shift:i.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,userData:t.userData}),u.lastClickPos=null)))):2===d.contacts&&t.pinchHandler&&"touch"===l.type&&(u.pinchGPoints=d.asArray(),u.lastPinchDist=u.currentPinchDist=u.pinchGPoints[0].currentPos.distanceTo(u.pinchGPoints[1].currentPos),u.lastPinchCenter=u.currentPinchCenter=x(u.pinchGPoints[0].currentPos,u.pinchGPoints[1].currentPos))):(i.shouldReleaseCapture=!1,t.releaseHandler&&a&&(t.releaseHandler({eventSource:t,pointerType:l.type,position:w(a,t.element),buttons:d.buttons,insideElementPressed:l.insideElementPressed,insideElementReleased:l.insideElement,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,userData:t.userData}),i.preventDefault=!0)))}function H(e,t,i){var r,o,a,s=n[e.hash],l=e.getActivePointersListByType(i.type);void 0!==t.originalEvent.buttons&&(l.buttons=t.originalEvent.buttons),(r=l.getById(i.id))&&(r.lastPos=r.currentPos,r.lastTime=r.currentTime,r.currentPos=i.currentPos,r.currentTime=i.currentTime,t.shouldCapture=!1,t.shouldReleaseCapture=!1,e.stopHandler&&"mouse"===i.type&&(clearTimeout(e.stopTimeOut),e.stopTimeOut=setTimeout((function(){!function(e,t,n){e.stopHandler&&e.stopHandler({eventSource:e,pointerType:n,position:b(t,e.element),buttons:e.getActivePointersListByType(n).buttons,isTouchEvent:"touch"===n,originalEvent:t,userData:e.userData})}(e,t.originalEvent,i.type)}),e.stopDelay)),0===l.contacts?e.moveHandler&&e.moveHandler({eventSource:e,pointerType:i.type,position:w(i.currentPos,e.element),buttons:l.buttons,isTouchEvent:"touch"===i.type,originalEvent:t.originalEvent,userData:e.userData}):1===l.contacts?(e.moveHandler&&(r=l.asArray()[0],e.moveHandler({eventSource:e,pointerType:r.type,position:w(r.currentPos,e.element),buttons:l.buttons,isTouchEvent:"touch"===r.type,originalEvent:t.originalEvent,userData:e.userData})),!e.dragHandler||t.preventGesture||t.defaultPrevented||(a=(r=l.asArray()[0]).currentPos.minus(r.lastPos),e.dragHandler({eventSource:e,pointerType:r.type,position:w(r.currentPos,e.element),buttons:l.buttons,delta:a,speed:r.speed,direction:r.direction,shift:t.originalEvent.shiftKey,isTouchEvent:"touch"===r.type,originalEvent:t.originalEvent,userData:e.userData}),t.preventDefault=!0,s.sentDragEvent=!0)):2===l.contacts&&(e.moveHandler&&(o=l.asArray(),e.moveHandler({eventSource:e,pointerType:o[0].type,position:w(x(o[0].currentPos,o[1].currentPos),e.element),buttons:l.buttons,isTouchEvent:"touch"===o[0].type,originalEvent:t.originalEvent,userData:e.userData})),!e.pinchHandler||"touch"!==i.type||t.preventGesture||t.defaultPrevented||(a=s.pinchGPoints[0].currentPos.distanceTo(s.pinchGPoints[1].currentPos))!==s.currentPinchDist&&(s.lastPinchDist=s.currentPinchDist,s.currentPinchDist=a,s.lastPinchCenter=s.currentPinchCenter,s.currentPinchCenter=x(s.pinchGPoints[0].currentPos,s.pinchGPoints[1].currentPos),e.pinchHandler({eventSource:e,pointerType:"touch",gesturePoints:s.pinchGPoints,lastCenter:w(s.lastPinchCenter,e.element),center:w(s.currentPinchCenter,e.element),lastDistance:s.lastPinchDist,distance:s.currentPinchDist,shift:t.originalEvent.shiftKey,originalEvent:t.originalEvent,userData:e.userData}),t.preventDefault=!0)))}function U(e,t,n){var i,r=e.getActivePointersListByType(n.type);(i=r.getById(n.id))&&M(e,r,i)}e.MouseTracker.gesturePointVelocityTracker=(i=[],r=0,o=0,a=function(e,t){return e.hash.toString()+t.type+t.id.toString()},s=function(){var t,n,r,a,s,l,c=i.length,u=e.now();for(a=u-o,o=u,t=0;t<c;t++)(r=(n=i[t]).gPoint).direction=Math.atan2(r.currentPos.y-n.lastPos.y,r.currentPos.x-n.lastPos.x),s=n.lastPos.distanceTo(r.currentPos),n.lastPos=r.currentPos,l=1e3*s/(a+1),r.speed=.75*l+.25*r.speed},{addPoint:function(t,n){var l=a(t,n);i.push({guid:l,gPoint:n,lastPos:n.currentPos}),1===i.length&&(o=e.now(),r=window.setInterval(s,50))},removePoint:function(e,t){var n,o=a(e,t),s=i.length;for(n=0;n<s;n++)if(i[n].guid===o){i.splice(n,1),0==--s&&window.clearInterval(r);break}}}),e.MouseTracker.captureElement=document,e.MouseTracker.wheelEventName=e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version>8||"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",e.MouseTracker.subscribeEvents=["click","dblclick","keydown","keyup","keypress","focus","blur","contextmenu",e.MouseTracker.wheelEventName],"DOMMouseScroll"===e.MouseTracker.wheelEventName&&e.MouseTracker.subscribeEvents.push("MozMousePixelScroll"),window.PointerEvent?(e.MouseTracker.havePointerEvents=!0,e.MouseTracker.subscribeEvents.push("pointerenter","pointerleave","pointerover","pointerout","pointerdown","pointerup","pointermove","pointercancel"),e.MouseTracker.havePointerCapture=(l=document.createElement("div"),e.isFunction(l.setPointerCapture)&&e.isFunction(l.releasePointerCapture)),e.MouseTracker.havePointerCapture&&e.MouseTracker.subscribeEvents.push("gotpointercapture","lostpointercapture")):(e.MouseTracker.havePointerEvents=!1,e.MouseTracker.subscribeEvents.push("mouseenter","mouseleave","mouseover","mouseout","mousedown","mouseup","mousemove"),e.MouseTracker.mousePointerId="legacy-mouse",e.MouseTracker.havePointerCapture=function(){var t=document.createElement("div");return e.isFunction(t.setCapture)&&e.isFunction(t.releaseCapture)}(),e.MouseTracker.havePointerCapture&&e.MouseTracker.subscribeEvents.push("losecapture"),"ontouchstart"in window&&e.MouseTracker.subscribeEvents.push("touchstart","touchend","touchmove","touchcancel"),"ongesturestart"in window&&e.MouseTracker.subscribeEvents.push("gesturestart","gesturechange")),e.MouseTracker.GesturePointList=function(e){this._gPoints=[],this.type=e,this.buttons=0,this.contacts=0,this.clicks=0,this.captureCount=0},e.MouseTracker.GesturePointList.prototype={getLength:function(){return this._gPoints.length},asArray:function(){return this._gPoints},add:function(e){return this._gPoints.push(e)},removeById:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].id===e){this._gPoints.splice(t,1);break}return this._gPoints.length},getByIndex:function(e){return e<this._gPoints.length?this._gPoints[e]:null},getById:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].id===e)return this._gPoints[t];return null},getPrimary:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].isPrimary)return this._gPoints[t];return null},addContact:function(){++this.contacts,this.contacts>1&&("mouse"===this.type||"pen"===this.type)&&(e.console.warn("GesturePointList.addContact() Implausible contacts value"),this.contacts=1)},removeContact:function(){--this.contacts,this.contacts<0&&(this.contacts=0)}}}(s),function(e){e.ControlAnchor={NONE:0,TOP_LEFT:1,TOP_RIGHT:2,BOTTOM_RIGHT:3,BOTTOM_LEFT:4,ABSOLUTE:5},e.Control=function(t,n,i){var r=t.parentNode;"number"==typeof n&&(e.console.error("Passing an anchor directly into the OpenSeadragon.Control constructor is deprecated; please use an options object instead. Support for this deprecated variant is scheduled for removal in December 2013"),n={anchor:n}),n.attachToViewer=void 0===n.attachToViewer||n.attachToViewer,this.autoFade=void 0===n.autoFade||n.autoFade,this.element=t,this.anchor=n.anchor,this.container=i,this.anchor===e.ControlAnchor.ABSOLUTE?(this.wrapper=e.makeNeutralElement("div"),this.wrapper.style.position="absolute",this.wrapper.style.top="number"==typeof n.top?n.top+"px":n.top,this.wrapper.style.left="number"==typeof n.left?n.left+"px":n.left,this.wrapper.style.height="number"==typeof n.height?n.height+"px":n.height,this.wrapper.style.width="number"==typeof n.width?n.width+"px":n.width,this.wrapper.style.margin="0px",this.wrapper.style.padding="0px",this.element.style.position="relative",this.element.style.top="0px",this.element.style.left="0px",this.element.style.height="100%",this.element.style.width="100%"):(this.wrapper=e.makeNeutralElement("div"),this.wrapper.style.display="inline-block",this.anchor===e.ControlAnchor.NONE&&(this.wrapper.style.width=this.wrapper.style.height="100%")),this.wrapper.appendChild(this.element),n.attachToViewer?this.anchor===e.ControlAnchor.TOP_RIGHT||this.anchor===e.ControlAnchor.BOTTOM_RIGHT?this.container.insertBefore(this.wrapper,this.container.firstChild):this.container.appendChild(this.wrapper):r.appendChild(this.wrapper)},e.Control.prototype={destroy:function(){this.wrapper.removeChild(this.element),this.anchor!==e.ControlAnchor.NONE&&this.container.removeChild(this.wrapper)},isVisible:function(){return"none"!==this.wrapper.style.display},setVisible:function(t){this.wrapper.style.display=t?this.anchor===e.ControlAnchor.ABSOLUTE?"block":"inline-block":"none"},setOpacity:function(t){this.element[e.SIGNAL]&&e.Browser.vendor===e.BROWSERS.IE?e.setElementOpacity(this.element,t,!0):e.setElementOpacity(this.wrapper,t,!0)}}}(s),function(e){function t(e,t){var n,i=e.controls;for(n=i.length-1;n>=0;n--)if(i[n].element===t)return n;return-1}e.ControlDock=function(t){var n,i,r=["topleft","topright","bottomright","bottomleft"];for(e.extend(!0,this,{id:"controldock-"+e.now()+"-"+Math.floor(1e6*Math.random()),container:e.makeNeutralElement("div"),controls:[]},t),this.container.onsubmit=function(){return!1},this.element&&(this.element=e.getElement(this.element),this.element.appendChild(this.container),this.element.style.position="relative",this.container.style.width="100%",this.container.style.height="100%"),i=0;i<r.length;i++)n=r[i],this.controls[n]=e.makeNeutralElement("div"),this.controls[n].style.position="absolute",n.match("left")&&(this.controls[n].style.left="0px"),n.match("right")&&(this.controls[n].style.right="0px"),n.match("top")&&(this.controls[n].style.top="0px"),n.match("bottom")&&(this.controls[n].style.bottom="0px");this.container.appendChild(this.controls.topleft),this.container.appendChild(this.controls.topright),this.container.appendChild(this.controls.bottomright),this.container.appendChild(this.controls.bottomleft)},e.ControlDock.prototype={addControl:function(n,i){var r=null;if(!(t(this,n=e.getElement(n))>=0)){switch(i.anchor){case e.ControlAnchor.TOP_RIGHT:r=this.controls.topright,n.style.position="relative",n.style.paddingRight="0px",n.style.paddingTop="0px";break;case e.ControlAnchor.BOTTOM_RIGHT:r=this.controls.bottomright,n.style.position="relative",n.style.paddingRight="0px",n.style.paddingBottom="0px";break;case e.ControlAnchor.BOTTOM_LEFT:r=this.controls.bottomleft,n.style.position="relative",n.style.paddingLeft="0px",n.style.paddingBottom="0px";break;case e.ControlAnchor.TOP_LEFT:r=this.controls.topleft,n.style.position="relative",n.style.paddingLeft="0px",n.style.paddingTop="0px";break;case e.ControlAnchor.ABSOLUTE:default:case e.ControlAnchor.NONE:r=this.container,n.style.margin="0px",n.style.padding="0px"}this.controls.push(new e.Control(n,i,r)),n.style.display="inline-block"}},removeControl:function(n){var i=t(this,n=e.getElement(n));return i>=0&&(this.controls[i].destroy(),this.controls.splice(i,1)),this},clearControls:function(){for(;this.controls.length>0;)this.controls.pop().destroy();return this},areControlsEnabled:function(){var e;for(e=this.controls.length-1;e>=0;e--)if(this.controls[e].isVisible())return!0;return!1},setControlsEnabled:function(e){var t;for(t=this.controls.length-1;t>=0;t--)this.controls[t].setVisible(e);return this}}}(s),function(e){e.Placement=e.freezeObject({CENTER:0,TOP_LEFT:1,TOP:2,TOP_RIGHT:3,RIGHT:4,BOTTOM_RIGHT:5,BOTTOM:6,BOTTOM_LEFT:7,LEFT:8,properties:{0:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!1,isVerticallyCentered:!0,isBottom:!1},1:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!0,isVerticallyCentered:!1,isBottom:!1},2:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!0,isVerticallyCentered:!1,isBottom:!1},3:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!0,isVerticallyCentered:!1,isBottom:!1},4:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!1,isVerticallyCentered:!0,isBottom:!1},5:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!1,isVerticallyCentered:!1,isBottom:!0},6:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!1,isVerticallyCentered:!1,isBottom:!0},7:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!1,isVerticallyCentered:!1,isBottom:!0},8:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!1,isVerticallyCentered:!0,isBottom:!1}}})}(s),function(e){var t={},n=1;function i(t){return t=e.getElement(t),new e.Point(0===t.clientWidth?1:t.clientWidth,0===t.clientHeight?1:t.clientHeight)}function r(t,n){if(n instanceof e.Overlay)return n;var i=null;if(n.element)i=e.getElement(n.element);else{var r=n.id?n.id:"openseadragon-overlay-"+Math.floor(1e7*Math.random());(i=e.getElement(n.id))||((i=document.createElement("a")).href="#/overlay/"+r),i.id=r,e.addClass(i,n.className?n.className:"openseadragon-overlay")}var o=n.location,a=n.width,s=n.height;if(!o){var l=n.x,c=n.y;if(void 0!==n.px){var u=t.viewport.imageToViewportRectangle(new e.Rect(n.px,n.py,a||0,s||0));l=u.x,c=u.y,a=void 0!==a?u.width:void 0,s=void 0!==s?u.height:void 0}o=new e.Point(l,c)}var d=n.placement;return d&&"string"===e.type(d)&&(d=e.Placement[n.placement.toUpperCase()]),new e.Overlay({element:i,location:o,placement:d,onDraw:n.onDraw,checkResize:n.checkResize,width:a,height:s,rotationMode:n.rotationMode})}function o(e,t){var n;for(n=e.length-1;n>=0;n--)if(e[n].element===t)return n;return-1}function a(t,n){return e.requestAnimationFrame((function(){n(t)}))}function s(t){e.requestAnimationFrame((function(){!function(t){var n,i;if(t.controlsShouldFade){for(n=1-(e.now()-t.controlsFadeBeginTime)/t.controlsFadeLength,n=Math.min(1,n),n=Math.max(0,n),i=t.controls.length-1;i>=0;i--)t.controls[i].autoFade&&t.controls[i].setOpacity(n);n>0&&s(t)}}(t)}))}function l(t){t.autoHideControls&&(t.controlsShouldFade=!0,t.controlsFadeBeginTime=e.now()+t.controlsFadeDelay,window.setTimeout((function(){s(t)}),t.controlsFadeDelay))}function c(e){var t;for(e.controlsShouldFade=!1,t=e.controls.length-1;t>=0;t--)e.controls[t].setOpacity(1)}function u(){c(this)}function d(){l(this)}function p(e){var t={tracker:e.eventSource,position:e.position,originalEvent:e.originalEvent,preventDefault:e.preventDefault};this.raiseEvent("canvas-contextmenu",t),e.preventDefault=t.preventDefault}function h(t){var n={originalEvent:t.originalEvent,preventDefaultAction:!1,preventVerticalPan:t.preventVerticalPan||!this.panVertical,preventHorizontalPan:t.preventHorizontalPan||!this.panHorizontal};if(this.raiseEvent("canvas-key",n),n.preventDefaultAction||t.ctrl||t.alt||t.meta)t.preventDefault=!1;else switch(t.keyCode){case 38:n.preventVerticalPan||(t.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,-this.pixelsPerArrowPress))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 40:n.preventVerticalPan||(t.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,this.pixelsPerArrowPress))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 37:n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(-this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 39:n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;default:t.preventDefault=!1}}function f(t){var n={originalEvent:t.originalEvent,preventDefaultAction:!1,preventVerticalPan:t.preventVerticalPan||!this.panVertical,preventHorizontalPan:t.preventHorizontalPan||!this.panHorizontal};if(this.raiseEvent("canvas-key",n),n.preventDefaultAction||t.ctrl||t.alt||t.meta)t.preventDefault=!1;else switch(t.keyCode){case 43:case 61:this.viewport.zoomBy(1.1),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 45:this.viewport.zoomBy(.9),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 48:this.viewport.goHome(),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 119:case 87:n.preventVerticalPan||(t.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,-40))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 115:case 83:n.preventVerticalPan||(t.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,40))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 97:n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(-40,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 100:n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(40,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 114:this.viewport.flipped?this.viewport.setRotation(this.viewport.getRotation()-this.rotationIncrement):this.viewport.setRotation(this.viewport.getRotation()+this.rotationIncrement),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 82:this.viewport.flipped?this.viewport.setRotation(this.viewport.getRotation()+this.rotationIncrement):this.viewport.setRotation(this.viewport.getRotation()-this.rotationIncrement),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 102:this.viewport.toggleFlip(),t.preventDefault=!0;break;case 106:this.goToPreviousPage();break;case 107:this.goToNextPage();break;default:t.preventDefault=!1}}function m(n){var i;document.activeElement===this.canvas||this.canvas.focus(),this.viewport.flipped&&(n.position.x=this.viewport.getContainerSize().x-n.position.x);var r={tracker:n.eventSource,position:n.position,quick:n.quick,shift:n.shift,originalEvent:n.originalEvent,originalTarget:n.originalTarget,preventDefaultAction:!1};this.raiseEvent("canvas-click",r),!r.preventDefaultAction&&this.viewport&&n.quick&&(!0===(i=this.gestureSettingsByDeviceType(n.pointerType)).clickToZoom&&(this.viewport.zoomBy(n.shift?1/this.zoomPerClick:this.zoomPerClick,i.zoomToRefPoint?this.viewport.pointFromPixel(n.position,!0):null),this.viewport.applyConstraints()),i.dblClickDragToZoom&&(!0===t[this.hash].draggingToZoom?(t[this.hash].lastClickTime=null,t[this.hash].draggingToZoom=!1):t[this.hash].lastClickTime=e.now()))}function g(e){var t,n={tracker:e.eventSource,position:e.position,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};this.raiseEvent("canvas-double-click",n),!n.preventDefaultAction&&this.viewport&&(t=this.gestureSettingsByDeviceType(e.pointerType)).dblClickToZoom&&(this.viewport.zoomBy(e.shift?1/this.zoomPerClick:this.zoomPerClick,t.zoomToRefPoint?this.viewport.pointFromPixel(e.position,!0):null),this.viewport.applyConstraints())}function v(e){var n,i={tracker:e.eventSource,pointerType:e.pointerType,position:e.position,delta:e.delta,speed:e.speed,direction:e.direction,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};if(this.raiseEvent("canvas-drag",i),n=this.gestureSettingsByDeviceType(e.pointerType),!i.preventDefaultAction&&this.viewport)if(n.dblClickDragToZoom&&t[this.hash].draggingToZoom){var r=Math.pow(this.zoomPerDblClickDrag,e.delta.y/50);this.viewport.zoomBy(r)}else if(n.dragToPan&&!t[this.hash].draggingToZoom){if(this.panHorizontal||(e.delta.x=0),this.panVertical||(e.delta.y=0),this.viewport.flipped&&(e.delta.x=-e.delta.x),this.constrainDuringPan){var o=this.viewport.deltaPointsFromPixels(e.delta.negate());this.viewport.centerSpringX.target.value+=o.x,this.viewport.centerSpringY.target.value+=o.y;var a=this.viewport.getConstrainedBounds();this.viewport.centerSpringX.target.value-=o.x,this.viewport.centerSpringY.target.value-=o.y,a.xConstrained&&(e.delta.x=0),a.yConstrained&&(e.delta.y=0)}this.viewport.panBy(this.viewport.deltaPointsFromPixels(e.delta.negate()),n.flickEnabled&&!this.constrainDuringPan)}}function y(n){var i,r={tracker:n.eventSource,pointerType:n.pointerType,position:n.position,speed:n.speed,direction:n.direction,shift:n.shift,originalEvent:n.originalEvent,preventDefaultAction:!1};if(this.raiseEvent("canvas-drag-end",r),i=this.gestureSettingsByDeviceType(n.pointerType),!r.preventDefaultAction&&this.viewport){if(!t[this.hash].draggingToZoom&&i.flickEnabled&&n.speed>=i.flickMinSpeed){var o=0;this.panHorizontal&&(o=i.flickMomentum*n.speed*Math.cos(n.direction));var a=0;this.panVertical&&(a=i.flickMomentum*n.speed*Math.sin(n.direction));var s=this.viewport.pixelFromPoint(this.viewport.getCenter(!0)),l=this.viewport.pointFromPixel(new e.Point(s.x-o,s.y-a));this.viewport.panTo(l,!1)}this.viewport.applyConstraints()}i.dblClickDragToZoom&&!0===t[this.hash].draggingToZoom&&(t[this.hash].draggingToZoom=!1)}function b(e){this.raiseEvent("canvas-enter",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function w(e){this.raiseEvent("canvas-exit",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function x(n){if(this.raiseEvent("canvas-press",{tracker:n.eventSource,pointerType:n.pointerType,position:n.position,insideElementPressed:n.insideElementPressed,insideElementReleased:n.insideElementReleased,originalEvent:n.originalEvent}),this.gestureSettingsByDeviceType(n.pointerType).dblClickDragToZoom){var i=t[this.hash].lastClickTime,r=e.now();if(null===i)return;r-i<this.dblClickTimeThreshold&&(t[this.hash].draggingToZoom=!0),t[this.hash].lastClickTime=null}}function E(e){this.raiseEvent("canvas-release",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,insideElementPressed:e.insideElementPressed,insideElementReleased:e.insideElementReleased,originalEvent:e.originalEvent})}function C(e){this.raiseEvent("canvas-nonprimary-press",{tracker:e.eventSource,position:e.position,pointerType:e.pointerType,button:e.button,buttons:e.buttons,originalEvent:e.originalEvent})}function S(e){this.raiseEvent("canvas-nonprimary-release",{tracker:e.eventSource,position:e.position,pointerType:e.pointerType,button:e.button,buttons:e.buttons,originalEvent:e.originalEvent})}function T(e){var t,n,i,r={tracker:e.eventSource,pointerType:e.pointerType,gesturePoints:e.gesturePoints,lastCenter:e.lastCenter,center:e.center,lastDistance:e.lastDistance,distance:e.distance,shift:e.shift,originalEvent:e.originalEvent,preventDefaultPanAction:!1,preventDefaultZoomAction:!1,preventDefaultRotateAction:!1};if(this.raiseEvent("canvas-pinch",r),this.viewport&&(!(t=this.gestureSettingsByDeviceType(e.pointerType)).pinchToZoom||r.preventDefaultPanAction&&r.preventDefaultZoomAction||(n=this.viewport.pointFromPixel(e.center,!0),t.zoomToRefPoint&&!r.preventDefaultPanAction&&(i=this.viewport.pointFromPixel(e.lastCenter,!0).minus(n),this.panHorizontal||(i.x=0),this.panVertical||(i.y=0),this.viewport.panBy(i,!0)),r.preventDefaultZoomAction||this.viewport.zoomBy(e.distance/e.lastDistance,n,!0),this.viewport.applyConstraints()),t.pinchRotate&&!r.preventDefaultRotateAction)){var o=Math.atan2(e.gesturePoints[0].currentPos.y-e.gesturePoints[1].currentPos.y,e.gesturePoints[0].currentPos.x-e.gesturePoints[1].currentPos.x),a=Math.atan2(e.gesturePoints[0].lastPos.y-e.gesturePoints[1].lastPos.y,e.gesturePoints[0].lastPos.x-e.gesturePoints[1].lastPos.x);this.viewport.setRotation(this.viewport.getRotation()+(o-a)*(180/Math.PI))}}function P(t){var n,i,r,o;(o=e.now())-this._lastScrollTime>this.minScrollDeltaTime?(this._lastScrollTime=o,n={tracker:t.eventSource,position:t.position,scroll:t.scroll,shift:t.shift,originalEvent:t.originalEvent,preventDefaultAction:!1,preventDefault:!0},this.raiseEvent("canvas-scroll",n),!n.preventDefaultAction&&this.viewport&&(this.viewport.flipped&&(t.position.x=this.viewport.getContainerSize().x-t.position.x),(i=this.gestureSettingsByDeviceType(t.pointerType)).scrollToZoom&&(r=Math.pow(this.zoomPerScroll,t.scroll),this.viewport.zoomBy(r,i.zoomToRefPoint?this.viewport.pointFromPixel(t.position,!0):null),this.viewport.applyConstraints())),t.preventDefault=n.preventDefault):t.preventDefault=!0}function A(e){t[this.hash].mouseInside=!0,c(this),this.raiseEvent("container-enter",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function O(e){e.pointers<1&&(t[this.hash].mouseInside=!1,t[this.hash].animating||l(this)),this.raiseEvent("container-exit",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function I(n){!function(n){if(n._opening||!t[n.hash])return;if(n.autoResize||t[n.hash].forceResize){var r;if(n._autoResizePolling){r=i(n.container);var o=t[n.hash].prevContainerSize;r.equals(o)||(t[n.hash].needsResize=!0)}t[n.hash].needsResize&&function(n,i){var r,o=n.viewport,a=o.getZoom(),s=o.getCenter();if(o.resize(i,n.preserveImageSizeOnResize),o.panTo(s,!0),n.preserveImageSizeOnResize)r=t[n.hash].prevContainerSize.x/i.x;else{var l=new e.Point(0,0),c=new e.Point(t[n.hash].prevContainerSize.x,t[n.hash].prevContainerSize.y).distanceTo(l);r=new e.Point(i.x,i.y).distanceTo(l)/c*t[n.hash].prevContainerSize.x/i.x}o.zoomTo(a*r,null,!0),t[n.hash].prevContainerSize=i,t[n.hash].forceRedraw=!0,t[n.hash].needsResize=!1,t[n.hash].forceResize=!1}(n,r||i(n.container))}var a=n.viewport.update(),s=n.world.update()||a;a&&n.raiseEvent("viewport-change");n.referenceStrip&&(s=n.referenceStrip.update(n.viewport)||s);var u=t[n.hash].animating;!u&&s&&(n.raiseEvent("animation-start"),c(n));var d=u&&!s;d&&(t[n.hash].animating=!1);(s||d||t[n.hash].forceRedraw||n.world.needsDraw())&&(!function(e){e.imageLoader.clear(),e.drawer.clear(),e.world.draw(),e.raiseEvent("update-viewport",{})}(n),n._drawOverlays(),n.navigator&&n.navigator.update(n.viewport),t[n.hash].forceRedraw=!1,s&&n.raiseEvent("animation"));d&&(n.raiseEvent("animation-finish"),t[n.hash].mouseInside||l(n));t[n.hash].animating=s}(n),n.isOpen()?n._updateRequestId=a(n,I):n._updateRequestId=!1}function R(e,t){return e?e+t:t}function k(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=this.zoomPerSecond,t[this.hash].zooming=!0,M(this)}function D(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=1/this.zoomPerSecond,t[this.hash].zooming=!0,M(this)}function j(){t[this.hash].zooming=!1}function M(t){e.requestAnimationFrame(e.delegate(t,N))}function N(){var n,i,r;t[this.hash].zooming&&this.viewport&&(i=(n=e.now())-t[this.hash].lastZoomTime,r=Math.pow(t[this.hash].zoomFactor,i/1e3),this.viewport.zoomBy(r),this.viewport.applyConstraints(),t[this.hash].lastZoomTime=n,M(this))}function L(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(this.zoomPerClick/1),this.viewport.applyConstraints())}function B(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(1/this.zoomPerClick),this.viewport.applyConstraints())}function F(){this.buttonGroup&&(this.buttonGroup.emulateEnter(),this.buttonGroup.emulateLeave())}function _(){this.viewport&&this.viewport.goHome()}function z(){this.isFullPage()&&!e.isFullScreen()?this.setFullPage(!1):this.setFullScreen(!this.isFullPage()),this.buttonGroup&&this.buttonGroup.emulateLeave(),this.fullPageButton.element.focus(),this.viewport&&this.viewport.applyConstraints()}function H(){if(this.viewport){var e=this.viewport.getRotation();this.viewport.flipped?e+=this.rotationIncrement:e-=this.rotationIncrement,this.viewport.setRotation(e)}}function U(){if(this.viewport){var e=this.viewport.getRotation();this.viewport.flipped?e-=this.rotationIncrement:e+=this.rotationIncrement,this.viewport.setRotation(e)}}function V(){this.viewport.toggleFlip()}e.Viewer=function(r){var o,s,c=arguments,u=this;if(e.isPlainObject(r)||(r={id:c[0],xmlPath:c.length>1?c[1]:void 0,prefixUrl:c.length>2?c[2]:void 0,controls:c.length>3?c[3]:void 0,overlays:c.length>4?c[4]:void 0}),r.config&&(e.extend(!0,r,r.config),delete r.config),e.extend(!0,this,{id:r.id,hash:r.hash||n++,initialPage:0,element:null,container:null,canvas:null,overlays:[],overlaysContainer:null,previousBody:[],customControls:[],source:null,drawer:null,world:null,viewport:null,navigator:null,collectionViewport:null,collectionDrawer:null,navImages:null,buttonGroup:null,profiler:null},e.DEFAULT_SETTINGS,r),void 0===this.hash)throw new Error("A hash must be defined, either by specifying options.id or options.hash.");for(void 0!==t[this.hash]&&e.console.warn("Hash "+this.hash+" has already been used."),t[this.hash]={fsBoundsDelta:new e.Point(1,1),prevContainerSize:null,animating:!1,forceRedraw:!1,needsResize:!1,forceResize:!1,mouseInside:!1,group:null,zooming:!1,zoomFactor:null,lastZoomTime:null,fullPage:!1,onfullscreenchange:null,lastClickTime:null,draggingToZoom:!1},this._sequenceIndex=0,this._firstOpen=!0,this._updateRequestId=null,this._loadQueue=[],this.currentOverlays=[],this._updatePixelDensityRatioBind=null,this._lastScrollTime=e.now(),e.EventSource.call(this),this.addHandler("open-failed",(function(t){var n=e.getString("Errors.OpenFailed",t.eventSource,t.message);u._showMessage(n)})),e.ControlDock.call(this,r),this.xmlPath&&(this.tileSources=[this.xmlPath]),this.element=this.element||document.getElementById(this.id),this.canvas=e.makeNeutralElement("div"),this.canvas.className="openseadragon-canvas",(s=this.canvas.style).width="100%",s.height="100%",s.overflow="hidden",s.position="absolute",s.top="0px",s.left="0px",e.setElementTouchActionNone(this.canvas),""!==r.tabIndex&&(this.canvas.tabIndex=void 0===r.tabIndex?0:r.tabIndex),this.container.className="openseadragon-container",function(e){e.width="100%",e.height="100%",e.position="relative",e.overflow="hidden",e.left="0px",e.top="0px",e.textAlign="left"}(this.container.style),e.setElementTouchActionNone(this.container),this.container.insertBefore(this.canvas,this.container.firstChild),this.element.appendChild(this.container),this.bodyWidth=document.body.style.width,this.bodyHeight=document.body.style.height,this.bodyOverflow=document.body.style.overflow,this.docOverflow=document.documentElement.style.overflow,this.innerTracker=new e.MouseTracker({userData:"Viewer.innerTracker",element:this.canvas,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,contextMenuHandler:e.delegate(this,p),keyDownHandler:e.delegate(this,h),keyHandler:e.delegate(this,f),clickHandler:e.delegate(this,m),dblClickHandler:e.delegate(this,g),dragHandler:e.delegate(this,v),dragEndHandler:e.delegate(this,y),enterHandler:e.delegate(this,b),leaveHandler:e.delegate(this,w),pressHandler:e.delegate(this,x),releaseHandler:e.delegate(this,E),nonPrimaryPressHandler:e.delegate(this,C),nonPrimaryReleaseHandler:e.delegate(this,S),scrollHandler:e.delegate(this,P),pinchHandler:e.delegate(this,T)}),this.outerTracker=new e.MouseTracker({userData:"Viewer.outerTracker",element:this.container,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,enterHandler:e.delegate(this,A),leaveHandler:e.delegate(this,O)}),this.toolbar&&(this.toolbar=new e.ControlDock({element:this.toolbar})),this.bindStandardControls(),t[this.hash].prevContainerSize=i(this.container),window.ResizeObserver?(this._autoResizePolling=!1,this._resizeObserver=new ResizeObserver((function(){t[u.hash].needsResize=!0})),this._resizeObserver.observe(this.container,{})):this._autoResizePolling=!0,this.world=new e.World({viewer:this}),this.world.addHandler("add-item",(function(e){u.source=u.world.getItemAt(0).source,t[u.hash].forceRedraw=!0,u._updateRequestId||(u._updateRequestId=a(u,I))})),this.world.addHandler("remove-item",(function(e){u.world.getItemCount()?u.source=u.world.getItemAt(0).source:u.source=null,t[u.hash].forceRedraw=!0})),this.world.addHandler("metrics-change",(function(e){u.viewport&&u.viewport._setContentBounds(u.world.getHomeBounds(),u.world.getContentFactor())})),this.world.addHandler("item-index-change",(function(e){u.source=u.world.getItemAt(0).source})),this.viewport=new e.Viewport({containerSize:t[this.hash].prevContainerSize,springStiffness:this.springStiffness,animationTime:this.animationTime,minZoomImageRatio:this.minZoomImageRatio,maxZoomPixelRatio:this.maxZoomPixelRatio,visibilityRatio:this.visibilityRatio,wrapHorizontal:this.wrapHorizontal,wrapVertical:this.wrapVertical,defaultZoomLevel:this.defaultZoomLevel,minZoomLevel:this.minZoomLevel,maxZoomLevel:this.maxZoomLevel,viewer:this,degrees:this.degrees,flipped:this.flipped,navigatorRotate:this.navigatorRotate,homeFillsViewer:this.homeFillsViewer,margins:this.viewportMargins,silenceMultiImageWarnings:this.silenceMultiImageWarnings}),this.viewport._setContentBounds(this.world.getHomeBounds(),this.world.getContentFactor()),this.imageLoader=new e.ImageLoader({jobLimit:this.imageLoaderLimit,timeout:r.timeout}),this.tileCache=new e.TileCache({maxImageCacheCount:this.maxImageCacheCount}),this.drawer=new e.Drawer({viewer:this,viewport:this.viewport,element:this.canvas,debugGridColor:this.debugGridColor}),this.overlaysContainer=e.makeNeutralElement("div"),this.canvas.appendChild(this.overlaysContainer),this.drawer.canRotate()||(this.rotateLeft&&(o=this.buttonGroup.buttons.indexOf(this.rotateLeft),this.buttonGroup.buttons.splice(o,1),this.buttonGroup.element.removeChild(this.rotateLeft.element)),this.rotateRight&&(o=this.buttonGroup.buttons.indexOf(this.rotateRight),this.buttonGroup.buttons.splice(o,1),this.buttonGroup.element.removeChild(this.rotateRight.element))),this._addUpdatePixelDensityRatioEvent(),this.showNavigator&&(this.navigator=new e.Navigator({element:this.navigatorElement,id:this.navigatorId,position:this.navigatorPosition,sizeRatio:this.navigatorSizeRatio,maintainSizeRatio:this.navigatorMaintainSizeRatio,top:this.navigatorTop,left:this.navigatorLeft,width:this.navigatorWidth,height:this.navigatorHeight,autoResize:this.navigatorAutoResize,autoFade:this.navigatorAutoFade,prefixUrl:this.prefixUrl,viewer:this,navigatorRotate:this.navigatorRotate,background:this.navigatorBackground,opacity:this.navigatorOpacity,borderColor:this.navigatorBorderColor,displayRegionColor:this.navigatorDisplayRegionColor,crossOriginPolicy:this.crossOriginPolicy,animationTime:this.animationTime})),this.sequenceMode&&this.bindSequenceControls(),this.tileSources&&this.open(this.tileSources),o=0;o<this.customControls.length;o++)this.addControl(this.customControls[o].id,{anchor:this.customControls[o].anchor});e.requestAnimationFrame((function(){l(u)})),void 0===this.imageSmoothingEnabled||this.imageSmoothingEnabled||this.drawer.setImageSmoothingEnabled(this.imageSmoothingEnabled),e._viewers.set(this.element,this)},e.extend(e.Viewer.prototype,e.EventSource.prototype,e.ControlDock.prototype,{isOpen:function(){return!!this.world.getItemCount()},openDzi:function(t){return e.console.error("[Viewer.openDzi] this function is deprecated; use Viewer.open() instead."),this.open(t)},openTileSource:function(t){return e.console.error("[Viewer.openTileSource] this function is deprecated; use Viewer.open() instead."),this.open(t)},get buttons(){return e.console.warn("Viewer.buttons is deprecated; Please use Viewer.buttonGroup"),this.buttonGroup},open:function(t,n){var i=this;if(this.close(),!t)return this;if(this.sequenceMode&&e.isArray(t))return this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),void 0===n||isNaN(n)||(this.initialPage=n),this.tileSources=t,this._sequenceIndex=Math.max(0,Math.min(this.tileSources.length-1,this.initialPage)),this.tileSources.length&&(this.open(this.tileSources[this._sequenceIndex]),this.showReferenceStrip&&this.addReferenceStrip()),this._updateSequenceButtons(this._sequenceIndex),this;if(e.isArray(t)||(t=[t]),!t.length)return this;this._opening=!0;for(var o,a=t.length,s=0,l=0,c=function(){if(s+l===a)if(s){!i._firstOpen&&i.preserveViewport||(i.viewport.goHome(!0),i.viewport.update()),i._firstOpen=!1;var e=t[0];if(e.tileSource&&(e=e.tileSource),i.overlays&&!i.preserveOverlays)for(var n=0;n<i.overlays.length;n++)i.currentOverlays[n]=r(i,i.overlays[n]);i._drawOverlays(),i._opening=!1,i.raiseEvent("open",{source:e})}else i._opening=!1,i.raiseEvent("open-failed",o)},u=function(t){e.isPlainObject(t)&&t.tileSource||(t={tileSource:t}),void 0!==t.index&&(e.console.error("[Viewer.open] setting indexes here is not supported; use addTiledImage instead"),delete t.index),void 0===t.collectionImmediately&&(t.collectionImmediately=!0);var n=t.success;t.success=function(e){if(s++,t.tileSource.overlays)for(var r=0;r<t.tileSource.overlays.length;r++)i.addOverlay(t.tileSource.overlays[r]);n&&n(e),c()};var r=t.error;t.error=function(e){l++,o||(o=e),r&&r(e),c()},i.addTiledImage(t)},d=0;d<t.length;d++)u(t[d]);return this},close:function(){return t[this.hash]?(this._opening=!1,this.navigator&&this.navigator.close(),this.preserveOverlays||(this.clearOverlays(),this.overlaysContainer.innerHTML=""),t[this.hash].animating=!1,this.world.removeAll(),this.imageLoader.clear(),this.raiseEvent("close"),this):this},destroy:function(){if(t[this.hash]){if(this.raiseEvent("before-destroy"),this._removeUpdatePixelDensityRatioEvent(),this.close(),this.clearOverlays(),this.overlaysContainer.innerHTML="",this._resizeObserver&&this._resizeObserver.disconnect(),this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),null!==this._updateRequestId&&(e.cancelAnimationFrame(this._updateRequestId),this._updateRequestId=null),this.drawer&&this.drawer.destroy(),this.navigator&&(this.navigator.destroy(),t[this.navigator.hash]=null,delete t[this.navigator.hash],this.navigator=null),this.buttonGroup)this.buttonGroup.destroy();else if(this.customButtons)for(;this.customButtons.length;)this.customButtons.pop().destroy();if(this.paging&&this.paging.destroy(),this.element)for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.container.onsubmit=null,this.clearControls(),this.innerTracker&&this.innerTracker.destroy(),this.outerTracker&&this.outerTracker.destroy(),t[this.hash]=null,delete t[this.hash],this.canvas=null,this.container=null,e._viewers.delete(this.element),this.element=null,this.raiseEvent("destroy"),this.removeAllHandlers()}},isMouseNavEnabled:function(){return this.innerTracker.isTracking()},setMouseNavEnabled:function(e){return this.innerTracker.setTracking(e),this.outerTracker.setTracking(e),this.raiseEvent("mouse-enabled",{enabled:e}),this},areControlsEnabled:function(){var e,t=this.controls.length;for(e=0;e<this.controls.length;e++)t=t&&this.controls[e].isVisible();return t},setControlsEnabled:function(e){return e?c(this):l(this),this.raiseEvent("controls-enabled",{enabled:e}),this},setDebugMode:function(e){for(var t=0;t<this.world.getItemCount();t++)this.world.getItemAt(t).debugMode=e;this.debugMode=e,this.forceRedraw()},isFullPage:function(){return t[this.hash].fullPage},setFullPage:function(n){var i,r,o=document.body,a=o.style,s=document.documentElement.style,l=this;if(n===this.isFullPage())return this;var c={fullPage:n,preventDefaultAction:!1};if(this.raiseEvent("pre-full-page",c),c.preventDefaultAction)return this;if(n){for(this.elementSize=e.getElementSize(this.element),this.pageScroll=e.getPageScroll(),this.elementMargin=this.element.style.margin,this.element.style.margin="0",this.elementPadding=this.element.style.padding,this.element.style.padding="0",this.bodyMargin=a.margin,this.docMargin=s.margin,a.margin="0",s.margin="0",this.bodyPadding=a.padding,this.docPadding=s.padding,a.padding="0",s.padding="0",this.bodyWidth=a.width,this.docWidth=s.width,a.width="100%",s.width="100%",this.bodyHeight=a.height,this.docHeight=s.height,a.height="100%",s.height="100%",this.bodyDisplay=a.display,a.display="block",this.previousBody=[],t[this.hash].prevElementParent=this.element.parentNode,t[this.hash].prevNextSibling=this.element.nextSibling,t[this.hash].prevElementWidth=this.element.style.width,t[this.hash].prevElementHeight=this.element.style.height,i=o.childNodes.length,r=0;r<i;r++)this.previousBody.push(o.childNodes[0]),o.removeChild(o.childNodes[0]);this.toolbar&&this.toolbar.element&&(this.toolbar.parentNode=this.toolbar.element.parentNode,this.toolbar.nextSibling=this.toolbar.element.nextSibling,o.appendChild(this.toolbar.element),e.addClass(this.toolbar.element,"fullpage")),e.addClass(this.element,"fullpage"),o.appendChild(this.element),this.element.style.height="100vh",this.element.style.width="100vw",this.toolbar&&this.toolbar.element&&(this.element.style.height=e.getElementSize(this.element).y-e.getElementSize(this.toolbar.element).y+"px"),t[this.hash].fullPage=!0,e.delegate(this,A)({})}else{for(this.element.style.margin=this.elementMargin,this.element.style.padding=this.elementPadding,a.margin=this.bodyMargin,s.margin=this.docMargin,a.padding=this.bodyPadding,s.padding=this.docPadding,a.width=this.bodyWidth,s.width=this.docWidth,a.height=this.bodyHeight,s.height=this.docHeight,a.display=this.bodyDisplay,o.removeChild(this.element),i=this.previousBody.length,r=0;r<i;r++)o.appendChild(this.previousBody.shift());e.removeClass(this.element,"fullpage"),t[this.hash].prevElementParent.insertBefore(this.element,t[this.hash].prevNextSibling),this.toolbar&&this.toolbar.element&&(o.removeChild(this.toolbar.element),e.removeClass(this.toolbar.element,"fullpage"),this.toolbar.parentNode.insertBefore(this.toolbar.element,this.toolbar.nextSibling),delete this.toolbar.parentNode,delete this.toolbar.nextSibling),this.element.style.width=t[this.hash].prevElementWidth,this.element.style.height=t[this.hash].prevElementHeight;var u=0;e.requestAnimationFrame((function t(){e.setPageScroll(l.pageScroll);var n=e.getPageScroll();++u<10&&(n.x!==l.pageScroll.x||n.y!==l.pageScroll.y)&&e.requestAnimationFrame(t)})),t[this.hash].fullPage=!1,e.delegate(this,O)({})}return this.navigator&&this.viewport&&this.navigator.update(this.viewport),this.raiseEvent("full-page",{fullPage:n}),this},setFullScreen:function(t){var n=this;if(!e.supportsFullScreen)return this.setFullPage(t);if(e.isFullScreen()===t)return this;var i={fullScreen:t,preventDefaultAction:!1};if(this.raiseEvent("pre-full-screen",i),i.preventDefaultAction)return this;if(t){if(this.setFullPage(!0),!this.isFullPage())return this;this.fullPageStyleWidth=this.element.style.width,this.fullPageStyleHeight=this.element.style.height,this.element.style.width="100%",this.element.style.height="100%";var r=function t(){var i=e.isFullScreen();i||(e.removeEvent(document,e.fullScreenEventName,t),e.removeEvent(document,e.fullScreenErrorEventName,t),n.setFullPage(!1),n.isFullPage()&&(n.element.style.width=n.fullPageStyleWidth,n.element.style.height=n.fullPageStyleHeight)),n.navigator&&n.viewport&&setTimeout((function(){n.navigator.update(n.viewport)})),n.raiseEvent("full-screen",{fullScreen:i})};e.addEvent(document,e.fullScreenEventName,r),e.addEvent(document,e.fullScreenErrorEventName,r),e.requestFullScreen(document.body)}else e.exitFullScreen();return this},isVisible:function(){return"hidden"!==this.container.style.visibility},isFullScreen:function(){return e.isFullScreen()&&this.isFullPage()},setVisible:function(e){return this.container.style.visibility=e?"":"hidden",this.raiseEvent("visible",{visible:e}),this},addTiledImage:function(t){e.console.assert(t,"[Viewer.addTiledImage] options is required"),e.console.assert(t.tileSource,"[Viewer.addTiledImage] options.tileSource is required"),e.console.assert(!t.replace||t.index>-1&&t.index<this.world.getItemCount(),"[Viewer.addTiledImage] if options.replace is used, options.index must be a valid index in Viewer.world");var n=this;t.replace&&(t.replaceItem=n.world.getItemAt(t.index)),this._hideMessage(),void 0===t.placeholderFillStyle&&(t.placeholderFillStyle=this.placeholderFillStyle),void 0===t.opacity&&(t.opacity=this.opacity),void 0===t.preload&&(t.preload=this.preload),void 0===t.compositeOperation&&(t.compositeOperation=this.compositeOperation),void 0===t.crossOriginPolicy&&(t.crossOriginPolicy=void 0!==t.tileSource.crossOriginPolicy?t.tileSource.crossOriginPolicy:this.crossOriginPolicy),void 0===t.ajaxWithCredentials&&(t.ajaxWithCredentials=this.ajaxWithCredentials),void 0===t.loadTilesWithAjax&&(t.loadTilesWithAjax=this.loadTilesWithAjax),void 0===t.ajaxHeaders||null===t.ajaxHeaders?t.ajaxHeaders=this.ajaxHeaders:e.isPlainObject(t.ajaxHeaders)&&e.isPlainObject(this.ajaxHeaders)&&(t.ajaxHeaders=e.extend({},this.ajaxHeaders,t.ajaxHeaders));var i={options:t};function r(e){for(var r=0;r<n._loadQueue.length;r++)if(n._loadQueue[r]===i){n._loadQueue.splice(r,1);break}0===n._loadQueue.length&&o(i),n.raiseEvent("add-item-failed",e),t.error&&t.error(e)}function o(e){n.collectionMode&&(n.world.arrange({immediately:e.options.collectionImmediately,rows:n.collectionRows,columns:n.collectionColumns,layout:n.collectionLayout,tileSize:n.collectionTileSize,tileMargin:n.collectionTileMargin}),n.world.setAutoRefigureSizes(!0))}function a(){for(var t,i,r;n._loadQueue.length&&(t=n._loadQueue[0]).tileSource;){if(n._loadQueue.splice(0,1),t.options.replace){var a=n.world.getIndexOfItem(t.options.replaceItem);-1!==a&&(t.options.index=a),n.world.removeItem(t.options.replaceItem)}i=new e.TiledImage({viewer:n,source:t.tileSource,viewport:n.viewport,drawer:n.drawer,tileCache:n.tileCache,imageLoader:n.imageLoader,x:t.options.x,y:t.options.y,width:t.options.width,height:t.options.height,fitBounds:t.options.fitBounds,fitBoundsPlacement:t.options.fitBoundsPlacement,clip:t.options.clip,placeholderFillStyle:t.options.placeholderFillStyle,opacity:t.options.opacity,preload:t.options.preload,degrees:t.options.degrees,flipped:t.options.flipped,compositeOperation:t.options.compositeOperation,springStiffness:n.springStiffness,animationTime:n.animationTime,minZoomImageRatio:n.minZoomImageRatio,wrapHorizontal:n.wrapHorizontal,wrapVertical:n.wrapVertical,immediateRender:n.immediateRender,blendTime:n.blendTime,alwaysBlend:n.alwaysBlend,minPixelRatio:n.minPixelRatio,smoothTileEdgesMinZoom:n.smoothTileEdgesMinZoom,iOSDevice:n.iOSDevice,crossOriginPolicy:t.options.crossOriginPolicy,ajaxWithCredentials:t.options.ajaxWithCredentials,loadTilesWithAjax:t.options.loadTilesWithAjax,ajaxHeaders:t.options.ajaxHeaders,debugMode:n.debugMode,subPixelRoundingForTransparency:n.subPixelRoundingForTransparency}),n.collectionMode&&n.world.setAutoRefigureSizes(!1),n.navigator&&(r=e.extend({},t.options,{replace:!1,originalTiledImage:i,tileSource:t.tileSource}),n.navigator.addTiledImage(r)),n.world.addItem(i,{index:t.options.index}),0===n._loadQueue.length&&o(t),1!==n.world.getItemCount()||n.preserveViewport||n.viewport.goHome(!0),t.options.success&&t.options.success({item:i})}}e.isArray(t.tileSource)?setTimeout((function(){r({message:"[Viewer.addTiledImage] Sequences can not be added; add them one at a time instead.",source:t.tileSource,options:t})})):(this._loadQueue.push(i),function(t,n,i,r,o){var a=t;if("string"===e.type(n))if(n.match(/^\s*<.*>\s*$/))n=e.parseXml(n);else if(n.match(/^\s*[{[].*[}\]]\s*$/))try{var s=e.parseJSON(n);n=s}catch(e){}function l(e,t){e.ready?r(e):(e.addHandler("ready",(function(){r(e)})),e.addHandler("open-failed",(function(e){o({message:e.message,source:t})})))}setTimeout((function(){if("string"===e.type(n))(n=new e.TileSource({url:n,crossOriginPolicy:void 0!==i.crossOriginPolicy?i.crossOriginPolicy:t.crossOriginPolicy,ajaxWithCredentials:t.ajaxWithCredentials,ajaxHeaders:i.ajaxHeaders?i.ajaxHeaders:t.ajaxHeaders,splitHashDataForPost:t.splitHashDataForPost,useCanvas:t.useCanvas,success:function(e){r(e.tileSource)}})).addHandler("open-failed",(function(e){o(e)}));else if(e.isPlainObject(n)||n.nodeType)if(void 0!==n.crossOriginPolicy||void 0===i.crossOriginPolicy&&void 0===t.crossOriginPolicy||(n.crossOriginPolicy=void 0!==i.crossOriginPolicy?i.crossOriginPolicy:t.crossOriginPolicy),void 0===n.ajaxWithCredentials&&(n.ajaxWithCredentials=t.ajaxWithCredentials),void 0===n.useCanvas&&(n.useCanvas=t.useCanvas),e.isFunction(n.getTileUrl)){var s=new e.TileSource(n);s.getTileUrl=n.getTileUrl,r(s)}else{var c=e.TileSource.determineType(a,n);if(!c)return void o({message:"Unable to load TileSource",source:n});var u=c.prototype.configure.apply(a,[n]);l(new c(u),n)}else l(n,n)}))}(this,t.tileSource,t,(function(e){i.tileSource=e,a()}),(function(e){e.options=t,r(e),a()})))},addSimpleImage:function(t){e.console.assert(t,"[Viewer.addSimpleImage] options is required"),e.console.assert(t.url,"[Viewer.addSimpleImage] options.url is required");var n=e.extend({},t,{tileSource:{type:"image",url:t.url}});delete n.url,this.addTiledImage(n)},addLayer:function(t){var n=this;e.console.error("[Viewer.addLayer] this function is deprecated; use Viewer.addTiledImage() instead.");var i=e.extend({},t,{success:function(e){n.raiseEvent("add-layer",{options:t,drawer:e.item})},error:function(e){n.raiseEvent("add-layer-failed",e)}});return this.addTiledImage(i),this},getLayerAtLevel:function(t){return e.console.error("[Viewer.getLayerAtLevel] this function is deprecated; use World.getItemAt() instead."),this.world.getItemAt(t)},getLevelOfLayer:function(t){return e.console.error("[Viewer.getLevelOfLayer] this function is deprecated; use World.getIndexOfItem() instead."),this.world.getIndexOfItem(t)},getLayersCount:function(){return e.console.error("[Viewer.getLayersCount] this function is deprecated; use World.getItemCount() instead."),this.world.getItemCount()},setLayerLevel:function(t,n){return e.console.error("[Viewer.setLayerLevel] this function is deprecated; use World.setItemIndex() instead."),this.world.setItemIndex(t,n)},removeLayer:function(t){return e.console.error("[Viewer.removeLayer] this function is deprecated; use World.removeItem() instead."),this.world.removeItem(t)},forceRedraw:function(){return t[this.hash].forceRedraw=!0,this},forceResize:function(){t[this.hash].needsResize=!0,t[this.hash].forceResize=!0},bindSequenceControls:function(){var t=e.delegate(this,u),n=e.delegate(this,d),i=e.delegate(this,this.goToNextPage),r=e.delegate(this,this.goToPreviousPage),o=this.navImages,a=!0;return this.showSequenceControl&&((this.previousButton||this.nextButton)&&(a=!1),this.previousButton=new e.Button({element:this.previousButton?e.getElement(this.previousButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.PreviousPage"),srcRest:R(this.prefixUrl,o.previous.REST),srcGroup:R(this.prefixUrl,o.previous.GROUP),srcHover:R(this.prefixUrl,o.previous.HOVER),srcDown:R(this.prefixUrl,o.previous.DOWN),onRelease:r,onFocus:t,onBlur:n}),this.nextButton=new e.Button({element:this.nextButton?e.getElement(this.nextButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.NextPage"),srcRest:R(this.prefixUrl,o.next.REST),srcGroup:R(this.prefixUrl,o.next.GROUP),srcHover:R(this.prefixUrl,o.next.HOVER),srcDown:R(this.prefixUrl,o.next.DOWN),onRelease:i,onFocus:t,onBlur:n}),this.navPrevNextWrap||this.previousButton.disable(),this.tileSources&&this.tileSources.length||this.nextButton.disable(),a&&(this.paging=new e.ButtonGroup({buttons:[this.previousButton,this.nextButton],clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.pagingControl=this.paging.element,this.toolbar?this.toolbar.addControl(this.pagingControl,{anchor:e.ControlAnchor.BOTTOM_RIGHT}):this.addControl(this.pagingControl,{anchor:this.sequenceControlAnchor||e.ControlAnchor.TOP_LEFT}))),this},bindStandardControls:function(){var t=e.delegate(this,k),n=e.delegate(this,j),i=e.delegate(this,L),r=e.delegate(this,D),o=e.delegate(this,B),a=e.delegate(this,_),s=e.delegate(this,z),l=e.delegate(this,H),c=e.delegate(this,U),p=e.delegate(this,V),h=e.delegate(this,u),f=e.delegate(this,d),m=this.navImages,g=[],v=!0;return this.showNavigationControl&&((this.zoomInButton||this.zoomOutButton||this.homeButton||this.fullPageButton||this.rotateLeftButton||this.rotateRightButton||this.flipButton)&&(v=!1),this.showZoomControl&&(g.push(this.zoomInButton=new e.Button({element:this.zoomInButton?e.getElement(this.zoomInButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.ZoomIn"),srcRest:R(this.prefixUrl,m.zoomIn.REST),srcGroup:R(this.prefixUrl,m.zoomIn.GROUP),srcHover:R(this.prefixUrl,m.zoomIn.HOVER),srcDown:R(this.prefixUrl,m.zoomIn.DOWN),onPress:t,onRelease:n,onClick:i,onEnter:t,onExit:n,onFocus:h,onBlur:f})),g.push(this.zoomOutButton=new e.Button({element:this.zoomOutButton?e.getElement(this.zoomOutButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.ZoomOut"),srcRest:R(this.prefixUrl,m.zoomOut.REST),srcGroup:R(this.prefixUrl,m.zoomOut.GROUP),srcHover:R(this.prefixUrl,m.zoomOut.HOVER),srcDown:R(this.prefixUrl,m.zoomOut.DOWN),onPress:r,onRelease:n,onClick:o,onEnter:r,onExit:n,onFocus:h,onBlur:f}))),this.showHomeControl&&g.push(this.homeButton=new e.Button({element:this.homeButton?e.getElement(this.homeButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.Home"),srcRest:R(this.prefixUrl,m.home.REST),srcGroup:R(this.prefixUrl,m.home.GROUP),srcHover:R(this.prefixUrl,m.home.HOVER),srcDown:R(this.prefixUrl,m.home.DOWN),onRelease:a,onFocus:h,onBlur:f})),this.showFullPageControl&&g.push(this.fullPageButton=new e.Button({element:this.fullPageButton?e.getElement(this.fullPageButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.FullPage"),srcRest:R(this.prefixUrl,m.fullpage.REST),srcGroup:R(this.prefixUrl,m.fullpage.GROUP),srcHover:R(this.prefixUrl,m.fullpage.HOVER),srcDown:R(this.prefixUrl,m.fullpage.DOWN),onRelease:s,onFocus:h,onBlur:f})),this.showRotationControl&&(g.push(this.rotateLeftButton=new e.Button({element:this.rotateLeftButton?e.getElement(this.rotateLeftButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.RotateLeft"),srcRest:R(this.prefixUrl,m.rotateleft.REST),srcGroup:R(this.prefixUrl,m.rotateleft.GROUP),srcHover:R(this.prefixUrl,m.rotateleft.HOVER),srcDown:R(this.prefixUrl,m.rotateleft.DOWN),onRelease:l,onFocus:h,onBlur:f})),g.push(this.rotateRightButton=new e.Button({element:this.rotateRightButton?e.getElement(this.rotateRightButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.RotateRight"),srcRest:R(this.prefixUrl,m.rotateright.REST),srcGroup:R(this.prefixUrl,m.rotateright.GROUP),srcHover:R(this.prefixUrl,m.rotateright.HOVER),srcDown:R(this.prefixUrl,m.rotateright.DOWN),onRelease:c,onFocus:h,onBlur:f}))),this.showFlipControl&&g.push(this.flipButton=new e.Button({element:this.flipButton?e.getElement(this.flipButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.Flip"),srcRest:R(this.prefixUrl,m.flip.REST),srcGroup:R(this.prefixUrl,m.flip.GROUP),srcHover:R(this.prefixUrl,m.flip.HOVER),srcDown:R(this.prefixUrl,m.flip.DOWN),onRelease:p,onFocus:h,onBlur:f})),v?(this.buttonGroup=new e.ButtonGroup({buttons:g,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.navControl=this.buttonGroup.element,this.addHandler("open",e.delegate(this,F)),this.toolbar?this.toolbar.addControl(this.navControl,{anchor:this.navigationControlAnchor||e.ControlAnchor.TOP_LEFT}):this.addControl(this.navControl,{anchor:this.navigationControlAnchor||e.ControlAnchor.TOP_LEFT})):this.customButtons=g),this},currentPage:function(){return this._sequenceIndex},goToPage:function(e){return this.tileSources&&e>=0&&e<this.tileSources.length&&(this._sequenceIndex=e,this._updateSequenceButtons(e),this.open(this.tileSources[e]),this.referenceStrip&&this.referenceStrip.setFocus(e),this.raiseEvent("page",{page:e})),this},addOverlay:function(t,n,i,a){var s;if(s=e.isPlainObject(t)?t:{element:t,location:n,placement:i,onDraw:a},t=e.getElement(s.element),o(this.currentOverlays,t)>=0)return this;var l=r(this,s);return this.currentOverlays.push(l),l.drawHTML(this.overlaysContainer,this.viewport),this.raiseEvent("add-overlay",{element:t,location:s.location,placement:s.placement}),this},updateOverlay:function(n,i,r){var a;return n=e.getElement(n),(a=o(this.currentOverlays,n))>=0&&(this.currentOverlays[a].update(i,r),t[this.hash].forceRedraw=!0,this.raiseEvent("update-overlay",{element:n,location:i,placement:r})),this},removeOverlay:function(n){var i;return n=e.getElement(n),(i=o(this.currentOverlays,n))>=0&&(this.currentOverlays[i].destroy(),this.currentOverlays.splice(i,1),t[this.hash].forceRedraw=!0,this.raiseEvent("remove-overlay",{element:n})),this},clearOverlays:function(){for(;this.currentOverlays.length>0;)this.currentOverlays.pop().destroy();return t[this.hash].forceRedraw=!0,this.raiseEvent("clear-overlay",{}),this},getOverlayById:function(t){var n;return t=e.getElement(t),(n=o(this.currentOverlays,t))>=0?this.currentOverlays[n]:null},_updateSequenceButtons:function(e){this.nextButton&&(this.tileSources&&this.tileSources.length-1!==e?this.nextButton.enable():this.navPrevNextWrap||this.nextButton.disable()),this.previousButton&&(e>0?this.previousButton.enable():this.navPrevNextWrap||this.previousButton.disable())},_showMessage:function(t){this._hideMessage();var n=e.makeNeutralElement("div");n.appendChild(document.createTextNode(t)),this.messageDiv=e.makeCenteredNode(n),e.addClass(this.messageDiv,"openseadragon-message"),this.container.appendChild(this.messageDiv)},_hideMessage:function(){var e=this.messageDiv;e&&(e.parentNode.removeChild(e),delete this.messageDiv)},gestureSettingsByDeviceType:function(e){switch(e){case"mouse":return this.gestureSettingsMouse;case"touch":return this.gestureSettingsTouch;case"pen":return this.gestureSettingsPen;default:return this.gestureSettingsUnknown}},_drawOverlays:function(){var e,t=this.currentOverlays.length;for(e=0;e<t;e++)this.currentOverlays[e].drawHTML(this.overlaysContainer,this.viewport)},_cancelPendingImages:function(){this._loadQueue=[]},removeReferenceStrip:function(){this.showReferenceStrip=!1,this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null)},addReferenceStrip:function(){if(this.showReferenceStrip=!0,this.sequenceMode){if(this.referenceStrip)return;this.tileSources.length&&this.tileSources.length>1&&(this.referenceStrip=new e.ReferenceStrip({id:this.referenceStripElement,position:this.referenceStripPosition,sizeRatio:this.referenceStripSizeRatio,scroll:this.referenceStripScroll,height:this.referenceStripHeight,width:this.referenceStripWidth,tileSources:this.tileSources,prefixUrl:this.prefixUrl,useCanvas:this.useCanvas,viewer:this}),this.referenceStrip.setFocus(this._sequenceIndex))}else e.console.warn('Attempting to display a reference strip while "sequenceMode" is off.')},_addUpdatePixelDensityRatioEvent:function(){this._updatePixelDensityRatioBind=this._updatePixelDensityRatio.bind(this),e.addEvent(window,"resize",this._updatePixelDensityRatioBind)},_removeUpdatePixelDensityRatioEvent:function(){e.removeEvent(window,"resize",this._updatePixelDensityRatioBind)},_updatePixelDensityRatio:function(){var t=e.pixelDensityRatio,n=e.getCurrentPixelDensityRatio();t!==n&&(e.pixelDensityRatio=n,this.world.resetItems(),this.forceRedraw())},goToPreviousPage:function(){var e=this._sequenceIndex-1;this.navPrevNextWrap&&e<0&&(e+=this.tileSources.length),this.goToPage(e)},goToNextPage:function(){var e=this._sequenceIndex+1;this.navPrevNextWrap&&e>=this.tileSources.length&&(e=0),this.goToPage(e)},isAnimating:function(){return t[this.hash].animating}})}(s),function(e){function t(e){var t={tracker:e.eventSource,position:e.position,quick:e.quick,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};if(this.viewer.raiseEvent("navigator-click",t),!t.preventDefaultAction&&e.quick&&this.viewer.viewport&&(this.panVertical||this.panHorizontal)){this.viewer.viewport.flipped&&(e.position.x=this.viewport.getContainerSize().x-e.position.x);var n=this.viewport.pointFromPixel(e.position);this.panVertical?this.panHorizontal||(n.x=this.viewer.viewport.getCenter(!0).x):n.y=this.viewer.viewport.getCenter(!0).y,this.viewer.viewport.panTo(n),this.viewer.viewport.applyConstraints()}}function n(e){var t={tracker:e.eventSource,position:e.position,delta:e.delta,speed:e.speed,direction:e.direction,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};this.viewer.raiseEvent("navigator-drag",t),!t.preventDefaultAction&&this.viewer.viewport&&(this.panHorizontal||(e.delta.x=0),this.panVertical||(e.delta.y=0),this.viewer.viewport.flipped&&(e.delta.x=-e.delta.x),this.viewer.viewport.panBy(this.viewport.deltaPointsFromPixels(e.delta)),this.viewer.constrainDuringPan&&this.viewer.viewport.applyConstraints())}function i(e){e.insideElementPressed&&this.viewer.viewport&&this.viewer.viewport.applyConstraints()}function r(e){var t={tracker:e.eventSource,position:e.position,scroll:e.scroll,shift:e.shift,originalEvent:e.originalEvent,preventDefault:e.preventDefault};this.viewer.raiseEvent("navigator-scroll",t),e.preventDefault=t.preventDefault}function o(e,t){a(e,"rotate("+t+"deg)")}function a(e,t){e.style.webkitTransform=t,e.style.mozTransform=t,e.style.msTransform=t,e.style.oTransform=t,e.style.transform=t}e.Navigator=function(a){var s,l,c,u,d=a.viewer,p=this;function h(e){o(p.displayRegionContainer,e),o(p.displayRegion,-e),p.viewport.setRotation(e)}(a.element||a.id?(a.element?(a.id&&e.console.warn("Given option.id for Navigator was ignored since option.element was provided and is being used instead."),a.element.id?a.id=a.element.id:a.id="navigator-"+e.now(),this.element=a.element):this.element=document.getElementById(a.id),a.controlOptions={anchor:e.ControlAnchor.NONE,attachToViewer:!1,autoFade:!1}):(a.id="navigator-"+e.now(),this.element=e.makeNeutralElement("div"),a.controlOptions={anchor:e.ControlAnchor.TOP_RIGHT,attachToViewer:!0,autoFade:a.autoFade},a.position&&("BOTTOM_RIGHT"===a.position?a.controlOptions.anchor=e.ControlAnchor.BOTTOM_RIGHT:"BOTTOM_LEFT"===a.position?a.controlOptions.anchor=e.ControlAnchor.BOTTOM_LEFT:"TOP_RIGHT"===a.position?a.controlOptions.anchor=e.ControlAnchor.TOP_RIGHT:"TOP_LEFT"===a.position?a.controlOptions.anchor=e.ControlAnchor.TOP_LEFT:"ABSOLUTE"===a.position&&(a.controlOptions.anchor=e.ControlAnchor.ABSOLUTE,a.controlOptions.top=a.top,a.controlOptions.left=a.left,a.controlOptions.height=a.height,a.controlOptions.width=a.width))),this.element.id=a.id,this.element.className+=" navigator",(a=e.extend(!0,{sizeRatio:e.DEFAULT_SETTINGS.navigatorSizeRatio},a,{element:this.element,tabIndex:-1,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:a.animationTime,autoResize:!1,minZoomImageRatio:1,background:a.background,opacity:a.opacity,borderColor:a.borderColor,displayRegionColor:a.displayRegionColor})).minPixelRatio=this.minPixelRatio=d.minPixelRatio,e.setElementTouchActionNone(this.element),this.borderWidth=2,this.fudge=new e.Point(1,1),this.totalBorderWidths=new e.Point(2*this.borderWidth,2*this.borderWidth).minus(this.fudge),a.controlOptions.anchor!==e.ControlAnchor.NONE&&(c=this.element.style,u=this.borderWidth,c.margin="0px",c.border=u+"px solid "+a.borderColor,c.padding="0px",c.background=a.background,c.opacity=a.opacity,c.overflow="hidden"),this.displayRegion=e.makeNeutralElement("div"),this.displayRegion.id=this.element.id+"-displayregion",this.displayRegion.className="displayregion",function(e,t){e.position="relative",e.top="0px",e.left="0px",e.fontSize="0px",e.overflow="hidden",e.border=t+"px solid "+a.displayRegionColor,e.margin="0px",e.padding="0px",e.background="transparent",e.float="left",e.cssFloat="left",e.styleFloat="left",e.zIndex=999999999,e.cursor="default"}(this.displayRegion.style,this.borderWidth),e.setElementPointerEventsNone(this.displayRegion),e.setElementTouchActionNone(this.displayRegion),this.displayRegionContainer=e.makeNeutralElement("div"),this.displayRegionContainer.id=this.element.id+"-displayregioncontainer",this.displayRegionContainer.className="displayregioncontainer",this.displayRegionContainer.style.width="100%",this.displayRegionContainer.style.height="100%",e.setElementPointerEventsNone(this.displayRegionContainer),e.setElementTouchActionNone(this.displayRegionContainer),d.addControl(this.element,a.controlOptions),this._resizeWithViewer=a.controlOptions.anchor!==e.ControlAnchor.ABSOLUTE&&a.controlOptions.anchor!==e.ControlAnchor.NONE,a.width&&a.height?(this.setWidth(a.width),this.setHeight(a.height)):this._resizeWithViewer&&(s=e.getElementSize(d.element),this.element.style.height=Math.round(s.y*a.sizeRatio)+"px",this.element.style.width=Math.round(s.x*a.sizeRatio)+"px",this.oldViewerSize=s,l=e.getElementSize(this.element),this.elementArea=l.x*l.y),this.oldContainerSize=new e.Point(0,0),e.Viewer.apply(this,[a]),this.displayRegionContainer.appendChild(this.displayRegion),this.element.getElementsByTagName("div")[0].appendChild(this.displayRegionContainer),a.navigatorRotate)&&(h(a.viewer.viewport?a.viewer.viewport.getRotation():a.viewer.degrees||0),a.viewer.addHandler("rotate",(function(e){h(e.degrees)})));this.innerTracker.destroy(),this.innerTracker=new e.MouseTracker({userData:"Navigator.innerTracker",element:this.element,dragHandler:e.delegate(this,n),clickHandler:e.delegate(this,t),releaseHandler:e.delegate(this,i),scrollHandler:e.delegate(this,r),preProcessEventHandler:function(e){"wheel"===e.eventType&&(e.preventDefault=!0)}}),this.outerTracker.userData="Navigator.outerTracker",e.setElementPointerEventsNone(this.canvas),e.setElementPointerEventsNone(this.container),this.addHandler("reset-size",(function(){p.viewport&&p.viewport.goHome(!0)})),d.world.addHandler("item-index-change",(function(e){window.setTimeout((function(){var t=p.world.getItemAt(e.previousIndex);p.world.setItemIndex(t,e.newIndex)}),1)})),d.world.addHandler("remove-item",(function(e){var t=e.item,n=p._getMatchingItem(t);n&&p.world.removeItem(n)})),this.update(d.viewport)},e.extend(e.Navigator.prototype,e.EventSource.prototype,e.Viewer.prototype,{updateSize:function(){if(this.viewport){var t=new e.Point(0===this.container.clientWidth?1:this.container.clientWidth,0===this.container.clientHeight?1:this.container.clientHeight);t.equals(this.oldContainerSize)||(this.viewport.resize(t,!0),this.viewport.goHome(!0),this.oldContainerSize=t,this.drawer.clear(),this.world.draw())}},setWidth:function(e){this.width=e,this.element.style.width="number"==typeof e?e+"px":e,this._resizeWithViewer=!1},setHeight:function(e){this.height=e,this.element.style.height="number"==typeof e?e+"px":e,this._resizeWithViewer=!1},setFlip:function(e){return this.viewport.setFlip(e),this.setDisplayTransform(this.viewer.viewport.getFlip()?"scale(-1,1)":"scale(1,1)"),this},setDisplayTransform:function(e){a(this.displayRegion,e),a(this.canvas,e),a(this.element,e)},update:function(t){var n,i,r,o,a,s;if(n=e.getElementSize(this.viewer.element),this._resizeWithViewer&&n.x&&n.y&&!n.equals(this.oldViewerSize)&&(this.oldViewerSize=n,this.maintainSizeRatio||!this.elementArea?(i=n.x*this.sizeRatio,r=n.y*this.sizeRatio):(i=Math.sqrt(this.elementArea*(n.x/n.y)),r=this.elementArea/i),this.element.style.width=Math.round(i)+"px",this.element.style.height=Math.round(r)+"px",this.elementArea||(this.elementArea=i*r),this.updateSize()),t&&this.viewport){o=t.getBoundsNoRotate(!0),a=this.viewport.pixelFromPointNoRotate(o.getTopLeft(),!1),s=this.viewport.pixelFromPointNoRotate(o.getBottomRight(),!1).minus(this.totalBorderWidths);var l=this.displayRegion.style;l.display=this.world.getItemCount()?"block":"none",l.top=Math.round(a.y)+"px",l.left=Math.round(a.x)+"px";var c=Math.abs(a.x-s.x),u=Math.abs(a.y-s.y);l.width=Math.round(Math.max(c,0))+"px",l.height=Math.round(Math.max(u,0))+"px"}},addTiledImage:function(t){var n=this,i=t.originalTiledImage;delete t.original;var r=e.extend({},t,{success:function(e){var t=e.item;function r(){n._matchBounds(t,i)}t._originalForNavigator=i,n._matchBounds(t,i,!0),n._matchOpacity(t,i),n._matchCompositeOperation(t,i),i.addHandler("bounds-change",r),i.addHandler("clip-change",r),i.addHandler("opacity-change",(function(){n._matchOpacity(t,i)})),i.addHandler("composite-operation-change",(function(){n._matchCompositeOperation(t,i)}))}});return e.Viewer.prototype.addTiledImage.apply(this,[r])},destroy:function(){return e.Viewer.prototype.destroy.apply(this)},_getMatchingItem:function(e){for(var t,n=this.world.getItemCount(),i=0;i<n;i++)if((t=this.world.getItemAt(i))._originalForNavigator===e)return t;return null},_matchBounds:function(e,t,n){var i=t.getBoundsNoRotate();e.setPosition(i.getTopLeft(),n),e.setWidth(i.width,n),e.setRotation(t.getRotation(),n),e.setClip(t.getClip()),e.setFlip(t.getFlip())},_matchOpacity:function(e,t){e.setOpacity(t.opacity)},_matchCompositeOperation:function(e,t){e.setCompositeOperation(t.compositeOperation)}})}(s),function(e){var t={Errors:{Dzc:"Sorry, we don't support Deep Zoom Collections!",Dzi:"Hmm, this doesn't appear to be a valid Deep Zoom Image.",Xml:"Hmm, this doesn't appear to be a valid Deep Zoom Image.",ImageFormat:"Sorry, we don't support {0}-based Deep Zoom Images.",Security:"It looks like a security restriction stopped us from loading this Deep Zoom Image.",Status:"This space unintentionally left blank ({0} {1}).",OpenFailed:"Unable to open {0}: {1}"},Tooltips:{FullPage:"Toggle full page",Home:"Go home",ZoomIn:"Zoom in",ZoomOut:"Zoom out",NextPage:"Next page",PreviousPage:"Previous page",RotateLeft:"Rotate left",RotateRight:"Rotate right",Flip:"Flip Horizontally"}};e.extend(e,{getString:function(n){var i,r=n.split("."),o=null,a=arguments,s=t;for(i=0;i<r.length-1;i++)s=s[r[i]]||{};return"string"!=typeof(o=s[r[i]])&&(e.console.error("Untranslated source string:",n),o=""),o.replace(/\{\d+\}/g,(function(e){var t=parseInt(e.match(/\d+/),10)+1;return t<a.length?a[t]:""}))},setString:function(e,n){var i,r=e.split("."),o=t;for(i=0;i<r.length-1;i++)o[r[i]]||(o[r[i]]={}),o=o[r[i]];o[r[i]]=n}})}(s),function(e){e.Point=function(e,t){this.x="number"==typeof e?e:0,this.y="number"==typeof t?t:0},e.Point.prototype={clone:function(){return new e.Point(this.x,this.y)},plus:function(t){return new e.Point(this.x+t.x,this.y+t.y)},minus:function(t){return new e.Point(this.x-t.x,this.y-t.y)},times:function(t){return new e.Point(this.x*t,this.y*t)},divide:function(t){return new e.Point(this.x/t,this.y/t)},negate:function(){return new e.Point(-this.x,-this.y)},distanceTo:function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},squaredDistanceTo:function(e){return Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2)},apply:function(t){return new e.Point(t(this.x),t(this.y))},equals:function(t){return t instanceof e.Point&&this.x===t.x&&this.y===t.y},rotate:function(t,n){var i,r;if(n=n||new e.Point(0,0),t%90==0){switch(e.positiveModulo(t,360)){case 0:i=1,r=0;break;case 90:i=0,r=1;break;case 180:i=-1,r=0;break;case 270:i=0,r=-1}}else{var o=t*Math.PI/180;i=Math.cos(o),r=Math.sin(o)}var a=i*(this.x-n.x)-r*(this.y-n.y)+n.x,s=r*(this.x-n.x)+i*(this.y-n.y)+n.y;return new e.Point(a,s)},toString:function(){return"("+Math.round(100*this.x)/100+","+Math.round(100*this.y)/100+")"}}}(s),function(e){e.TileSource=function(t,n,i,r,o,a){var s,l,c=this,u=arguments;if(s=e.isPlainObject(t)?t:{width:u[0],height:u[1],tileSize:u[2],tileOverlap:u[3],minLevel:u[4],maxLevel:u[5]},e.EventSource.call(this),e.extend(!0,this,s),!this.success)for(l=0;l<arguments.length;l++)if(e.isFunction(arguments[l])){this.success=arguments[l];break}this.success&&this.addHandler("ready",(function(e){c.success(e)})),"string"===e.type(arguments[0])&&(this.url=arguments[0]),this.url?(this.aspectRatio=1,this.dimensions=new e.Point(10,10),this._tileWidth=0,this._tileHeight=0,this.tileOverlap=0,this.minLevel=0,this.maxLevel=0,this.ready=!1,this.getImageInfo(this.url)):(this.ready=!0,this.aspectRatio=s.width&&s.height?s.width/s.height:1,this.dimensions=new e.Point(s.width,s.height),this.tileSize?(this._tileWidth=this._tileHeight=this.tileSize,delete this.tileSize):(this.tileWidth?(this._tileWidth=this.tileWidth,delete this.tileWidth):this._tileWidth=0,this.tileHeight?(this._tileHeight=this.tileHeight,delete this.tileHeight):this._tileHeight=0),this.tileOverlap=s.tileOverlap?s.tileOverlap:0,this.minLevel=s.minLevel?s.minLevel:0,this.maxLevel=void 0!==s.maxLevel&&null!==s.maxLevel?s.maxLevel:s.width&&s.height?Math.ceil(Math.log(Math.max(s.width,s.height))/Math.log(2)):0,this.success&&e.isFunction(this.success)&&this.success(this))},e.TileSource.prototype={getTileSize:function(t){return e.console.error("[TileSource.getTileSize] is deprecated. Use TileSource.getTileWidth() and TileSource.getTileHeight() instead"),this._tileWidth},getTileWidth:function(e){return this._tileWidth?this._tileWidth:this.getTileSize(e)},getTileHeight:function(e){return this._tileHeight?this._tileHeight:this.getTileSize(e)},setMaxLevel:function(e){this.maxLevel=e,this._memoizeLevelScale()},getLevelScale:function(e){return this._memoizeLevelScale(),this.getLevelScale(e)},_memoizeLevelScale:function(){var e,t={};for(e=0;e<=this.maxLevel;e++)t[e]=1/Math.pow(2,this.maxLevel-e);this.getLevelScale=function(e){return t[e]}},getNumTiles:function(t){var n=this.getLevelScale(t),i=Math.ceil(n*this.dimensions.x/this.getTileWidth(t)),r=Math.ceil(n*this.dimensions.y/this.getTileHeight(t));return new e.Point(i,r)},getPixelRatio:function(t){var n=this.dimensions.times(this.getLevelScale(t)),i=1/n.x*e.pixelDensityRatio,r=1/n.y*e.pixelDensityRatio;return new e.Point(i,r)},getClosestLevel:function(){var e,t;for(e=this.minLevel+1;e<=this.maxLevel&&!((t=this.getNumTiles(e)).x>1||t.y>1);e++);return e-1},getTileAtPoint:function(t,n){var i=n.x>=0&&n.x<=1&&n.y>=0&&n.y<=1/this.aspectRatio;e.console.assert(i,"[TileSource.getTileAtPoint] must be called with a valid point.");var r=this.dimensions.x*this.getLevelScale(t),o=n.x*r,a=n.y*r,s=Math.floor(o/this.getTileWidth(t)),l=Math.floor(a/this.getTileHeight(t));n.x>=1&&(s=this.getNumTiles(t).x-1);return n.y>=1/this.aspectRatio-1e-15&&(l=this.getNumTiles(t).y-1),new e.Point(s,l)},getTileBounds:function(t,n,i,r){var o=this.dimensions.times(this.getLevelScale(t)),a=this.getTileWidth(t),s=this.getTileHeight(t),l=0===n?0:a*n-this.tileOverlap,c=0===i?0:s*i-this.tileOverlap,u=a+(0===n?1:2)*this.tileOverlap,d=s+(0===i?1:2)*this.tileOverlap,p=1/o.x;return u=Math.min(u,o.x-l),d=Math.min(d,o.y-c),r?new e.Rect(0,0,u,d):new e.Rect(l*p,c*p,u*p,d*p)},getImageInfo:function(t){var n,i,r,o,a,s,l,c=this;t&&(l=(s=(a=t.split("/"))[a.length-1]).lastIndexOf("."))>-1&&(a[a.length-1]=s.slice(0,l));var u=null;if(this.splitHashDataForPost){var d=t.indexOf("#");-1!==d&&(u=t.substring(d+1),t=t.substr(0,d))}i=function(n){"string"==typeof n&&(n=e.parseXml(n));var i=e.TileSource.determineType(c,n,t);i?(void 0===(o=i.prototype.configure.apply(c,[n,t,u])).ajaxWithCredentials&&(o.ajaxWithCredentials=c.ajaxWithCredentials),r=new i(o),c.ready=!0,c.raiseEvent("ready",{tileSource:r})):c.raiseEvent("open-failed",{message:"Unable to load TileSource",source:t})},t.match(/\.js$/)?(n=t.split("/").pop().replace(".js",""),e.jsonp({url:t,async:!1,callbackName:n,callback:i})):e.makeAjaxRequest({url:t,postData:u,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,success:function(t){var n=function(t){var n,i,r=t.responseText,o=t.status;if(!t)throw new Error(e.getString("Errors.Security"));if(200!==t.status&&0!==t.status)throw n=404===(o=t.status)?"Not Found":t.statusText,new Error(e.getString("Errors.Status",o,n));if(r.match(/\s*<.*/))try{i=t.responseXML&&t.responseXML.documentElement?t.responseXML:e.parseXml(r)}catch(e){i=t.responseText}else if(r.match(/\s*[{[].*/))try{i=e.parseJSON(r)}catch(e){i=r}else i=r;return i}(t);i(n)},error:function(n,i){var r;try{r="HTTP "+n.status+" attempting to load TileSource: "+t}catch(e){r=(void 0!==i&&i.toString?i.toString():"Unknown error")+" attempting to load TileSource: "+t}e.console.error(r),c.raiseEvent("open-failed",{message:r,source:t,postData:u})}})},supports:function(e,t){return!1},configure:function(e,t,n){throw new Error("Method not implemented.")},getTileUrl:function(e,t,n){throw new Error("Method not implemented.")},getTilePostData:function(e,t,n){return null},getTileAjaxHeaders:function(e,t,n){return{}},getTileHashKey:function(e,t,n,i,r,o){function a(e){return r?e+"+"+JSON.stringify(r):e}return a("string"!=typeof i?e+"/"+t+"_"+n:i)},tileExists:function(e,t,n){var i=this.getNumTiles(e);return e>=this.minLevel&&e<=this.maxLevel&&t>=0&&n>=0&&t<i.x&&n<i.y},hasTransparency:function(e,t,n,i){return!!e||t.match(".png")},downloadTileStart:function(t){var n=t.userData,i=new Image;n.image=i,n.request=null;var r=function(e){i?(i.onload=i.onerror=i.onabort=null,t.finish(e?null:i,n.request,e)):t.finish(null,n.request,"Image load failed: undefined Image instance.")};i.onload=function(){r()},i.onabort=i.onerror=function(){r("Image load aborted.")},t.loadWithAjax?n.request=e.makeAjaxRequest({url:t.src,withCredentials:t.ajaxWithCredentials,headers:t.ajaxHeaders,responseType:"arraybuffer",postData:t.postData,success:function(e){var t;try{t=new window.Blob([e.response])}catch(i){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if("TypeError"===i.name&&n){var o=new n;o.append(e.response),t=o.getBlob()}}0===t.size?r("Empty image response."):i.src=(window.URL||window.webkitURL).createObjectURL(t)},error:function(e){r("Image load aborted - XHR error")}}):(!1!==t.crossOriginPolicy&&(i.crossOrigin=t.crossOriginPolicy),i.src=t.src)},downloadTileAbort:function(e){e.userData.request&&e.userData.request.abort();var t=e.userData.image;e.userData.image&&(t.onload=t.onerror=t.onabort=null)},createTileCache:function(e,t,n){e._data=t},destroyTileCache:function(e){e._data=null,e._renderedContext=null},getTileCacheData:function(e){return e._data},getTileCacheDataAsImage:function(e){return e._data},getTileCacheDataAsContext2D:function(e){if(!e._renderedContext){var t=document.createElement("canvas");t.width=e._data.width,t.height=e._data.height,e._renderedContext=t.getContext("2d"),e._renderedContext.drawImage(e._data,0,0),e._data=null}return e._renderedContext}},e.extend(!0,e.TileSource.prototype,e.EventSource.prototype),e.TileSource.determineType=function(t,n,i){var r;for(r in s)if(r.match(/.+TileSource$/)&&e.isFunction(s[r])&&e.isFunction(s[r].prototype.supports)&&s[r].prototype.supports.call(t,n,i))return s[r];return e.console.error("No TileSource was able to open %s %s",i,n),null}}(s),function(e){function t(t,n){var i,r,o=n.Image,a=o.Url,s=o.Format,l=o.Size,c=o.DisplayRect||[],u=parseInt(l.Width,10),d=parseInt(l.Height,10),p=parseInt(o.TileSize,10),h=parseInt(o.Overlap,10),f=[];for(r=0;r<c.length;r++)i=c[r].Rect,f.push(new e.DisplayRect(parseInt(i.X,10),parseInt(i.Y,10),parseInt(i.Width,10),parseInt(i.Height,10),parseInt(i.MinLevel,10),parseInt(i.MaxLevel,10)));return e.extend(!0,{width:u,height:d,tileSize:p,tileOverlap:h,minLevel:null,maxLevel:null,tilesUrl:a,fileFormat:s,displayRects:f},n)}e.DziTileSource=function(t,n,i,r,o,a,s,l,c){var u,d,p,h;if(h=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4],fileFormat:arguments[5],displayRects:arguments[6],minLevel:arguments[7],maxLevel:arguments[8]},this._levelRects={},this.tilesUrl=h.tilesUrl,this.fileFormat=h.fileFormat,this.displayRects=h.displayRects,this.displayRects)for(u=this.displayRects.length-1;u>=0;u--)for(p=(d=this.displayRects[u]).minLevel;p<=d.maxLevel;p++)this._levelRects[p]||(this._levelRects[p]=[]),this._levelRects[p].push(d);e.TileSource.apply(this,[h])},e.extend(e.DziTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){var n;return e.Image?n=e.Image.xmlns:e.documentElement&&("Image"!==e.documentElement.localName&&"Image"!==e.documentElement.tagName||(n=e.documentElement.namespaceURI)),-1!==(n=(n||"").toLowerCase()).indexOf("schemas.microsoft.com/deepzoom/2008")||-1!==n.indexOf("schemas.microsoft.com/deepzoom/2009")},configure:function(n,i,r){var o;return o=e.isPlainObject(n)?t(this,n):function(n,i){if(!i||!i.documentElement)throw new Error(e.getString("Errors.Xml"));var r,o,a,s,l,c=i.documentElement,u=c.localName||c.tagName,d=i.documentElement.namespaceURI,p=null,h=[];if("Image"===u)try{if(void 0===(s=c.getElementsByTagName("Size")[0])&&(s=c.getElementsByTagNameNS(d,"Size")[0]),p={Image:{xmlns:"http://schemas.microsoft.com/deepzoom/2008",Url:c.getAttribute("Url"),Format:c.getAttribute("Format"),DisplayRect:null,Overlap:parseInt(c.getAttribute("Overlap"),10),TileSize:parseInt(c.getAttribute("TileSize"),10),Size:{Height:parseInt(s.getAttribute("Height"),10),Width:parseInt(s.getAttribute("Width"),10)}}},!e.imageFormatSupported(p.Image.Format))throw new Error(e.getString("Errors.ImageFormat",p.Image.Format.toUpperCase()));for(void 0===(r=c.getElementsByTagName("DisplayRect"))&&(r=c.getElementsByTagNameNS(d,"DisplayRect")[0]),l=0;l<r.length;l++)void 0===(a=(o=r[l]).getElementsByTagName("Rect")[0])&&(a=o.getElementsByTagNameNS(d,"Rect")[0]),h.push({Rect:{X:parseInt(a.getAttribute("X"),10),Y:parseInt(a.getAttribute("Y"),10),Width:parseInt(a.getAttribute("Width"),10),Height:parseInt(a.getAttribute("Height"),10),MinLevel:parseInt(o.getAttribute("MinLevel"),10),MaxLevel:parseInt(o.getAttribute("MaxLevel"),10)}});return h.length&&(p.Image.DisplayRect=h),t(n,p)}catch(t){throw t instanceof Error?t:new Error(e.getString("Errors.Dzi"))}else{if("Collection"===u)throw new Error(e.getString("Errors.Dzc"));if("Error"===u){var f=c.getElementsByTagName("Message")[0].firstChild.nodeValue;throw new Error(f)}}throw new Error(e.getString("Errors.Dzi"))}(this,n),i&&!o.tilesUrl&&(o.tilesUrl=i.replace(/([^/]+?)(\.(dzi|xml|js)?(\?[^/]*)?)?\/?$/,"$1_files/"),-1!==i.search(/\.(dzi|xml|js)\?/)?o.queryParams=i.match(/\?.*/):o.queryParams=""),o},getTileUrl:function(e,t,n){return[this.tilesUrl,e,"/",t,"_",n,".",this.fileFormat,this.queryParams].join("")},tileExists:function(e,t,n){var i,r,o,a,s,l,c,u=this._levelRects[e];if(this.minLevel&&e<this.minLevel||this.maxLevel&&e>this.maxLevel)return!1;if(!u||!u.length)return!0;for(c=u.length-1;c>=0;c--)if(!(e<(i=u[c]).minLevel||e>i.maxLevel)&&(r=this.getLevelScale(e),o=i.x*r,a=i.y*r,s=o+i.width*r,l=a+i.height*r,o=Math.floor(o/this._tileWidth),a=Math.floor(a/this._tileWidth),s=Math.ceil(s/this._tileWidth),l=Math.ceil(l/this._tileWidth),o<=t&&t<s&&a<=n&&n<l))return!0;return!1}})}(s),function(e){function t(e){var t=Array.isArray(e.profile)?e.profile[0]:e.profile,n=-1!==["http://library.stanford.edu/iiif/image-api/compliance.html#level0","http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0","http://iiif.io/api/image/2/level0.json","level0","https://iiif.io/api/image/3/level0.json"].indexOf(t),i=!1;return 2===e.version&&e.profile.length>1&&e.profile[1].supports&&(i=-1!==e.profile[1].supports.indexOf("sizeByW")),3===e.version&&e.extraFeatures&&(i=-1!==e.extraFeatures.indexOf("sizeByWh")),!n||i}function n(e){for(var t=[],n=0;n<e.sizes.length;n++)t.push({url:e._id+"/full/"+e.sizes[n].width+","+(3===e.version?e.sizes[n].height:"")+"/0/default."+e.tileFormat,width:e.sizes[n].width,height:e.sizes[n].height});return t.sort((function(e,t){return e.width-t.width}))}function i(t,n,r){var o,a;if(3===t.nodeType&&r)(a=t.nodeValue.trim()).match(/^\d*$/)&&(a=Number(a)),n[r]?(e.isArray(n[r])||(n[r]=[n[r]]),n[r].push(a)):n[r]=a;else if(1===t.nodeType)for(o=0;o<t.childNodes.length;o++)i(t.childNodes[o],n,t.nodeName)}e.IIIFTileSource=function(i){if(e.extend(!0,this,i),this._id=this["@id"]||this.id||this.identifier||null,!(this.height&&this.width&&this._id))throw new Error("IIIF required parameters (width, height, or id) not provided.");if(i.tileSizePerScaleFactor={},this.tileFormat=this.tileFormat||"jpg",this.version=i.version,this.tile_width&&this.tile_height)i.tileWidth=this.tile_width,i.tileHeight=this.tile_height;else if(this.tile_width)i.tileSize=this.tile_width;else if(this.tile_height)i.tileSize=this.tile_height;else if(this.tiles)if(1===this.tiles.length)i.tileWidth=this.tiles[0].width,i.tileHeight=this.tiles[0].height||this.tiles[0].width,this.scale_factors=this.tiles[0].scaleFactors;else{this.scale_factors=[];for(var r=0;r<this.tiles.length;r++)for(var o=0;o<this.tiles[r].scaleFactors.length;o++){var a=this.tiles[r].scaleFactors[o];this.scale_factors.push(a),i.tileSizePerScaleFactor[a]={width:this.tiles[r].width,height:this.tiles[r].height||this.tiles[r].width}}}else if(t(i)){for(var s=Math.min(this.height,this.width),l=[256,512,1024],c=[],u=0;u<l.length;u++)l[u]<=s&&c.push(l[u]);c.length>0?i.tileSize=Math.max.apply(null,c):i.tileSize=s}else this.sizes&&this.sizes.length>0?(this.emulateLegacyImagePyramid=!0,i.levels=n(this),e.extend(!0,i,{width:i.levels[i.levels.length-1].width,height:i.levels[i.levels.length-1].height,tileSize:Math.max(i.height,i.width),tileOverlap:0,minLevel:0,maxLevel:i.levels.length-1}),this.levels=i.levels):e.console.error("Nothing in the info.json to construct image pyramids from");if(!i.maxLevel&&!this.emulateLegacyImagePyramid)if(this.scale_factors){var d=Math.max.apply(null,this.scale_factors);i.maxLevel=Math.round(Math.log(d)*Math.LOG2E)}else i.maxLevel=Number(Math.round(Math.log(Math.max(this.width,this.height),2)));e.TileSource.apply(this,[i])},e.extend(e.IIIFTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return!(!e.protocol||"http://iiif.io/api/image"!==e.protocol)||(!(!e["@context"]||"http://library.stanford.edu/iiif/image-api/1.1/context.json"!==e["@context"]&&"http://iiif.io/api/image/1/context.json"!==e["@context"])||(!(!e.profile||0!==e.profile.indexOf("http://library.stanford.edu/iiif/image-api/compliance.html"))||(!!(e.identifier&&e.width&&e.height)||!(!e.documentElement||"info"!==e.documentElement.tagName||"http://library.stanford.edu/iiif/image-api/ns/"!==e.documentElement.namespaceURI))))},configure:function(t,n,r){if(e.isPlainObject(t)){if(t["@context"]){var o=t["@context"];if(Array.isArray(o))for(var a=0;a<o.length;a++)if("string"==typeof o[a]&&(/^http:\/\/iiif\.io\/api\/image\/[1-3]\/context\.json$/.test(o[a])||"http://library.stanford.edu/iiif/image-api/1.1/context.json"===o[a])){o=o[a];break}switch(o){case"http://iiif.io/api/image/1/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/context.json":t.version=1;break;case"http://iiif.io/api/image/2/context.json":t.version=2;break;case"http://iiif.io/api/image/3/context.json":t.version=3;break;default:e.console.error("Data has a @context property which contains no known IIIF context URI.")}}else t["@context"]="http://iiif.io/api/image/1.0/context.json",t["@id"]=n.replace("/info.json",""),t.version=1;if(t.preferredFormats)for(var l=0;l<t.preferredFormats.length;l++)if(s.imageFormatSupported(t.preferredFormats[l])){t.tileFormat=t.preferredFormats[l];break}return t}var c=function(t){if(!t||!t.documentElement)throw new Error(e.getString("Errors.Xml"));var n=t.documentElement,r=n.tagName,o=null;if("info"===r)try{return i(n,o={}),o}catch(t){throw t instanceof Error?t:new Error(e.getString("Errors.IIIF"))}throw new Error(e.getString("Errors.IIIF"))}(t);return c["@context"]="http://iiif.io/api/image/1.0/context.json",c["@id"]=n.replace("/info.xml",""),c.version=1,c},getTileWidth:function(t){if(this.emulateLegacyImagePyramid)return e.TileSource.prototype.getTileWidth.call(this,t);var n=Math.pow(2,this.maxLevel-t);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[n]?this.tileSizePerScaleFactor[n].width:this._tileWidth},getTileHeight:function(t){if(this.emulateLegacyImagePyramid)return e.TileSource.prototype.getTileHeight.call(this,t);var n=Math.pow(2,this.maxLevel-t);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[n]?this.tileSizePerScaleFactor[n].height:this._tileHeight},getLevelScale:function(t){if(this.emulateLegacyImagePyramid){var n=NaN;return this.levels.length>0&&t>=this.minLevel&&t<=this.maxLevel&&(n=this.levels[t].width/this.levels[this.maxLevel].width),n}return e.TileSource.prototype.getLevelScale.call(this,t)},getNumTiles:function(t){return this.emulateLegacyImagePyramid?this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0):e.TileSource.prototype.getNumTiles.call(this,t)},getTileAtPoint:function(t,n){return this.emulateLegacyImagePyramid?new e.Point(0,0):e.TileSource.prototype.getTileAtPoint.call(this,t,n)},getTileUrl:function(e,t,n){if(this.emulateLegacyImagePyramid){var i=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(i=this.levels[e].url),i}var r,o,a,s,l,c,u,d,p,h,f,m,g,v=Math.pow(.5,this.maxLevel-e),y=Math.round(this.width*v),b=Math.round(this.height*v);return r=this.getTileWidth(e),o=this.getTileHeight(e),a=Math.round(r/v),s=Math.round(o/v),g=1===this.version?"native."+this.tileFormat:"default."+this.tileFormat,y<r&&b<o?(h=2===this.version&&y===this.width?"full":3===this.version&&y===this.width&&b===this.height?"max":3===this.version?y+","+b:y+",",l="full"):(c=t*a,u=n*s,d=Math.min(a,this.width-c),p=Math.min(s,this.height-u),l=0===t&&0===n&&d===this.width&&p===this.height?"full":[c,u,d,p].join(","),f=Math.round(d*v),m=Math.round(p*v),h=2===this.version&&f===this.width?"full":3===this.version&&f===this.width&&m===this.height?"max":3===this.version?f+","+m:f+","),[this._id,l,h,"0",g].join("/")},__testonly__:{canBeTiled:t,constructLevels:n}})}(s),function(e){e.OsmTileSource=function(t,n,i,r,o){var a;(a=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4]}).width&&a.height||(a.width=65572864,a.height=65572864),a.tileSize||(a.tileSize=256,a.tileOverlap=0),a.tilesUrl||(a.tilesUrl="http://tile.openstreetmap.org/"),a.minLevel=8,e.TileSource.apply(this,[a])},e.extend(e.OsmTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"openstreetmaps"===e.type},configure:function(e,t,n){return e},getTileUrl:function(e,t,n){return this.tilesUrl+(e-8)+"/"+t+"/"+n+".png"}})}(s),function(e){e.TmsTileSource=function(t,n,i,r,o){var a;a=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4]};var s,l=256*Math.ceil(a.width/256),c=256*Math.ceil(a.height/256);s=l>c?l/256:c/256,a.maxLevel=Math.ceil(Math.log(s)/Math.log(2))-1,a.tileSize=256,a.width=l,a.height=c,e.TileSource.apply(this,[a])},e.extend(e.TmsTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"tiledmapservice"===e.type},configure:function(e,t,n){return e},getTileUrl:function(e,t,n){var i=this.getNumTiles(e).y-1;return this.tilesUrl+e+"/"+t+"/"+(i-n)+".png"}})}(s),function(e){e.ZoomifyTileSource=function(e){void 0===e.tileSize&&(e.tileSize=256),void 0===e.fileFormat&&(e.fileFormat="jpg",this.fileFormat=e.fileFormat);var t={x:e.width,y:e.height};for(e.imageSizes=[{x:e.width,y:e.height}],e.gridSize=[this._getGridSize(e.width,e.height,e.tileSize)];parseInt(t.x,10)>e.tileSize||parseInt(t.y,10)>e.tileSize;)t.x=Math.floor(t.x/2),t.y=Math.floor(t.y/2),e.imageSizes.push({x:t.x,y:t.y}),e.gridSize.push(this._getGridSize(t.x,t.y,e.tileSize));e.imageSizes.reverse(),e.gridSize.reverse(),e.minLevel=0,e.maxLevel=e.gridSize.length-1,s.TileSource.apply(this,[e])},e.extend(e.ZoomifyTileSource.prototype,e.TileSource.prototype,{_getGridSize:function(e,t,n){return{x:Math.ceil(e/n),y:Math.ceil(t/n)}},_calculateAbsoluteTileNumber:function(e,t,n){for(var i=0,r={},o=0;o<e;o++)i+=(r=this.gridSize[o]).x*r.y;return i+=(r=this.gridSize[e]).x*n+t},supports:function(e,t){return e.type&&"zoomifytileservice"===e.type},configure:function(e,t,n){return e},getTileUrl:function(e,t,n){var i,r=this._calculateAbsoluteTileNumber(e,t,n);return i=Math.floor(r/256),this.tilesUrl+"TileGroup"+i+"/"+e+"-"+t+"-"+n+"."+this.fileFormat}})}(s),function(e){function t(e,t){return t.levels}e.LegacyTileSource=function(t){var n,i,r;e.isArray(t)&&(n={type:"legacy-image-pyramid",levels:t}),n.levels=function(t){var n,i,r=[];for(i=0;i<t.length;i++)(n=t[i]).height&&n.width&&n.url?r.push({url:n.url,width:Number(n.width),height:Number(n.height)}):e.console.error("Unsupported image format: %s",n.url?n.url:"<no URL>");return r.sort((function(e,t){return e.height-t.height}))}(n.levels),n.levels.length>0?(i=n.levels[n.levels.length-1].width,r=n.levels[n.levels.length-1].height):(i=0,r=0,e.console.error("No supported image formats found")),e.extend(!0,n,{width:i,height:r,tileSize:Math.max(r,i),tileOverlap:0,minLevel:0,maxLevel:n.levels.length>0?n.levels.length-1:0}),e.TileSource.apply(this,[n]),this.levels=n.levels},e.extend(e.LegacyTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"legacy-image-pyramid"===e.type||e.documentElement&&"legacy-image-pyramid"===e.documentElement.getAttribute("type")},configure:function(n,i,r){return e.isPlainObject(n)?t(this,n):function(n,i){if(!i||!i.documentElement)throw new Error(e.getString("Errors.Xml"));var r,o,a=i.documentElement,s=a.tagName,l=null,c=[];if("image"===s)try{for(l={type:a.getAttribute("type"),levels:[]},c=a.getElementsByTagName("level"),o=0;o<c.length;o++)r=c[o],l.levels.push({url:r.getAttribute("url"),width:parseInt(r.getAttribute("width"),10),height:parseInt(r.getAttribute("height"),10)});return t(n,l)}catch(e){throw e instanceof Error?e:new Error("Unknown error parsing Legacy Image Pyramid XML.")}else{if("collection"===s)throw new Error("Legacy Image Pyramid Collections not yet supported.");if("error"===s)throw new Error("Error: "+i)}throw new Error("Unknown element "+s)}(this,n)},getLevelScale:function(e){var t=NaN;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(t=this.levels[e].width/this.levels[this.maxLevel].width),t},getNumTiles:function(t){return this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0)},getTileUrl:function(e,t,n){var i=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(i=this.levels[e].url),i}})}(s),function(e){e.ImageTileSource=function(t){t=e.extend({buildPyramid:!0,crossOriginPolicy:!1,ajaxWithCredentials:!1,useCanvas:!0},t),e.TileSource.apply(this,[t])},e.extend(e.ImageTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"image"===e.type},configure:function(e,t,n){return e},getImageInfo:function(t){var n=this._image=new Image,i=this;this.crossOriginPolicy&&(n.crossOrigin=this.crossOriginPolicy),this.ajaxWithCredentials&&(n.useCredentials=this.ajaxWithCredentials),e.addEvent(n,"load",(function(){i.width=n.naturalWidth,i.height=n.naturalHeight,i.aspectRatio=i.width/i.height,i.dimensions=new e.Point(i.width,i.height),i._tileWidth=i.width,i._tileHeight=i.height,i.tileOverlap=0,i.minLevel=0,i.levels=i._buildLevels(),i.maxLevel=i.levels.length-1,i.ready=!0,i.raiseEvent("ready",{tileSource:i})})),e.addEvent(n,"error",(function(){i.raiseEvent("open-failed",{message:"Error loading image at "+t,source:t})})),n.src=t},getLevelScale:function(e){var t=NaN;return e>=this.minLevel&&e<=this.maxLevel&&(t=this.levels[e].width/this.levels[this.maxLevel].width),t},getNumTiles:function(t){return this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0)},getTileUrl:function(e,t,n){var i=null;return e>=this.minLevel&&e<=this.maxLevel&&(i=this.levels[e].url),i},getContext2D:function(e,t,n){var i=null;return e>=this.minLevel&&e<=this.maxLevel&&(i=this.levels[e].context2D),i},destroy:function(){this._freeupCanvasMemory()},_buildLevels:function(){var t=[{url:this._image.src,width:this._image.naturalWidth,height:this._image.naturalHeight}];if(!this.buildPyramid||!e.supportsCanvas||!this.useCanvas)return delete this._image,t;var n=this._image.naturalWidth,i=this._image.naturalHeight,r=document.createElement("canvas"),o=r.getContext("2d");if(r.width=n,r.height=i,o.drawImage(this._image,0,0,n,i),t[0].context2D=o,delete this._image,e.isCanvasTainted(r))return t;for(;n>=2&&i>=2;){n=Math.floor(n/2),i=Math.floor(i/2);var a=document.createElement("canvas"),s=a.getContext("2d");a.width=n,a.height=i,s.drawImage(r,0,0,n,i),t.splice(0,0,{context2D:s,width:n,height:i}),r=a,o=s}return t},_freeupCanvasMemory:function(){for(var e=0;e<this.levels.length;e++)this.levels[e].context2D&&(this.levels[e].context2D.canvas.height=0,this.levels[e].context2D.canvas.width=0)}})}(s),function(e){e.TileSourceCollection=function(t,n,i,r){e.console.error("TileSourceCollection is deprecated; use World instead")}}(s),function(e){function t(n){e.requestAnimationFrame((function(){!function(n){var i;n.shouldFade&&(i=1-(e.now()-n.fadeBeginTime)/n.fadeLength,i=Math.min(1,i),i=Math.max(0,i),n.imgGroup&&e.setElementOpacity(n.imgGroup,i,!0),i>0&&t(n))}(n)}))}function n(t,n){t.element.disabled||(n>=e.ButtonState.GROUP&&t.currentState===e.ButtonState.REST&&(!function(t){t.shouldFade=!1,t.imgGroup&&e.setElementOpacity(t.imgGroup,1,!0)}(t),t.currentState=e.ButtonState.GROUP),n>=e.ButtonState.HOVER&&t.currentState===e.ButtonState.GROUP&&(t.imgHover&&(t.imgHover.style.visibility=""),t.currentState=e.ButtonState.HOVER),n>=e.ButtonState.DOWN&&t.currentState===e.ButtonState.HOVER&&(t.imgDown&&(t.imgDown.style.visibility=""),t.currentState=e.ButtonState.DOWN))}function i(n,i){n.element.disabled||(i<=e.ButtonState.HOVER&&n.currentState===e.ButtonState.DOWN&&(n.imgDown&&(n.imgDown.style.visibility="hidden"),n.currentState=e.ButtonState.HOVER),i<=e.ButtonState.GROUP&&n.currentState===e.ButtonState.HOVER&&(n.imgHover&&(n.imgHover.style.visibility="hidden"),n.currentState=e.ButtonState.GROUP),i<=e.ButtonState.REST&&n.currentState===e.ButtonState.GROUP&&(!function(n){n.shouldFade=!0,n.fadeBeginTime=e.now()+n.fadeDelay,window.setTimeout((function(){t(n)}),n.fadeDelay)}(n),n.currentState=e.ButtonState.REST))}e.ButtonState={REST:0,GROUP:1,HOVER:2,DOWN:3},e.Button=function(t){var r=this;e.EventSource.call(this),e.extend(!0,this,{tooltip:null,srcRest:null,srcGroup:null,srcHover:null,srcDown:null,clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:e.DEFAULT_SETTINGS.clickDistThreshold,fadeDelay:0,fadeLength:2e3,onPress:null,onRelease:null,onClick:null,onEnter:null,onExit:null,onFocus:null,onBlur:null,userData:null},t),this.element=t.element||e.makeNeutralElement("div"),t.element||(this.imgRest=e.makeTransparentImage(this.srcRest),this.imgGroup=e.makeTransparentImage(this.srcGroup),this.imgHover=e.makeTransparentImage(this.srcHover),this.imgDown=e.makeTransparentImage(this.srcDown),this.imgRest.alt=this.imgGroup.alt=this.imgHover.alt=this.imgDown.alt=this.tooltip,e.setElementPointerEventsNone(this.imgRest),e.setElementPointerEventsNone(this.imgGroup),e.setElementPointerEventsNone(this.imgHover),e.setElementPointerEventsNone(this.imgDown),this.element.style.position="relative",e.setElementTouchActionNone(this.element),this.imgGroup.style.position=this.imgHover.style.position=this.imgDown.style.position="absolute",this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top="0px",this.imgGroup.style.left=this.imgHover.style.left=this.imgDown.style.left="0px",this.imgHover.style.visibility=this.imgDown.style.visibility="hidden",e.Browser.vendor===e.BROWSERS.FIREFOX&&e.Browser.version<3&&(this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top=""),this.element.appendChild(this.imgRest),this.element.appendChild(this.imgGroup),this.element.appendChild(this.imgHover),this.element.appendChild(this.imgDown)),this.addHandler("press",this.onPress),this.addHandler("release",this.onRelease),this.addHandler("click",this.onClick),this.addHandler("enter",this.onEnter),this.addHandler("exit",this.onExit),this.addHandler("focus",this.onFocus),this.addHandler("blur",this.onBlur),this.currentState=e.ButtonState.GROUP,this.fadeBeginTime=null,this.shouldFade=!1,this.element.style.display="inline-block",this.element.style.position="relative",this.element.title=this.tooltip,this.tracker=new e.MouseTracker({userData:"Button.tracker",element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(t){t.insideElementPressed?(n(r,e.ButtonState.DOWN),r.raiseEvent("enter",{originalEvent:t.originalEvent})):t.buttonDownAny||n(r,e.ButtonState.HOVER)},focusHandler:function(e){r.tracker.enterHandler(e),r.raiseEvent("focus",{originalEvent:e.originalEvent})},leaveHandler:function(t){i(r,e.ButtonState.GROUP),t.insideElementPressed&&r.raiseEvent("exit",{originalEvent:t.originalEvent})},blurHandler:function(e){r.tracker.leaveHandler(e),r.raiseEvent("blur",{originalEvent:e.originalEvent})},pressHandler:function(t){n(r,e.ButtonState.DOWN),r.raiseEvent("press",{originalEvent:t.originalEvent})},releaseHandler:function(t){t.insideElementPressed&&t.insideElementReleased?(i(r,e.ButtonState.HOVER),r.raiseEvent("release",{originalEvent:t.originalEvent})):t.insideElementPressed?i(r,e.ButtonState.GROUP):n(r,e.ButtonState.HOVER)},clickHandler:function(e){e.quick&&r.raiseEvent("click",{originalEvent:e.originalEvent})},keyHandler:function(e){13===e.keyCode?(r.raiseEvent("click",{originalEvent:e.originalEvent}),r.raiseEvent("release",{originalEvent:e.originalEvent}),e.preventDefault=!0):e.preventDefault=!1}}),i(this,e.ButtonState.REST)},e.extend(e.Button.prototype,e.EventSource.prototype,{notifyGroupEnter:function(){n(this,e.ButtonState.GROUP)},notifyGroupExit:function(){i(this,e.ButtonState.REST)},disable:function(){this.notifyGroupExit(),this.element.disabled=!0,this.tracker.setTracking(!1),e.setElementOpacity(this.element,.2,!0)},enable:function(){this.element.disabled=!1,this.tracker.setTracking(!0),e.setElementOpacity(this.element,1,!0),this.notifyGroupEnter()},destroy:function(){this.imgRest&&(this.element.removeChild(this.imgRest),this.imgRest=null),this.imgGroup&&(this.element.removeChild(this.imgGroup),this.imgGroup=null),this.imgHover&&(this.element.removeChild(this.imgHover),this.imgHover=null),this.imgDown&&(this.element.removeChild(this.imgDown),this.imgDown=null),this.removeAllHandlers(),this.tracker.destroy(),this.element=null}})}(s),function(e){e.ButtonGroup=function(t){e.extend(!0,this,{buttons:[],clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:e.DEFAULT_SETTINGS.clickDistThreshold,labelText:""},t);var n,i=this.buttons.concat([]),r=this;if(this.element=t.element||e.makeNeutralElement("div"),!t.group)for(this.element.style.display="inline-block",n=0;n<i.length;n++)this.element.appendChild(i[n].element);e.setElementTouchActionNone(this.element),this.tracker=new e.MouseTracker({userData:"ButtonGroup.tracker",element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(e){var t;for(t=0;t<r.buttons.length;t++)r.buttons[t].notifyGroupEnter()},leaveHandler:function(e){var t;if(!e.insideElementPressed)for(t=0;t<r.buttons.length;t++)r.buttons[t].notifyGroupExit()}})},e.ButtonGroup.prototype={emulateEnter:function(){this.tracker.enterHandler({eventSource:this.tracker})},emulateLeave:function(){this.tracker.leaveHandler({eventSource:this.tracker})},destroy:function(){for(;this.buttons.length;){var e=this.buttons.pop();this.element.removeChild(e.element),e.destroy()}this.tracker.destroy(),this.element=null}}}(s),function(e){e.Rect=function(t,n,i,r,o){var a,s;this.x="number"==typeof t?t:0,this.y="number"==typeof n?n:0,this.width="number"==typeof i?i:0,this.height="number"==typeof r?r:0,this.degrees="number"==typeof o?o:0,this.degrees=e.positiveModulo(this.degrees,360),this.degrees>=270?(a=this.getTopRight(),this.x=a.x,this.y=a.y,s=this.height,this.height=this.width,this.width=s,this.degrees-=270):this.degrees>=180?(a=this.getBottomRight(),this.x=a.x,this.y=a.y,this.degrees-=180):this.degrees>=90&&(a=this.getBottomLeft(),this.x=a.x,this.y=a.y,s=this.height,this.height=this.width,this.width=s,this.degrees-=90)},e.Rect.fromSummits=function(t,n,i){var r=t.distanceTo(n),o=t.distanceTo(i),a=n.minus(t),s=Math.atan(a.y/a.x);return a.x<0?s+=Math.PI:a.y<0&&(s+=2*Math.PI),new e.Rect(t.x,t.y,r,o,s/Math.PI*180)},e.Rect.prototype={clone:function(){return new e.Rect(this.x,this.y,this.width,this.height,this.degrees)},getAspectRatio:function(){return this.width/this.height},getTopLeft:function(){return new e.Point(this.x,this.y)},getBottomRight:function(){return new e.Point(this.x+this.width,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getTopRight:function(){return new e.Point(this.x+this.width,this.y).rotate(this.degrees,this.getTopLeft())},getBottomLeft:function(){return new e.Point(this.x,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getCenter:function(){return new e.Point(this.x+this.width/2,this.y+this.height/2).rotate(this.degrees,this.getTopLeft())},getSize:function(){return new e.Point(this.width,this.height)},equals:function(t){return t instanceof e.Rect&&this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.degrees===t.degrees},times:function(t){return new e.Rect(this.x*t,this.y*t,this.width*t,this.height*t,this.degrees)},translate:function(t){return new e.Rect(this.x+t.x,this.y+t.y,this.width,this.height,this.degrees)},union:function(t){var n=this.getBoundingBox(),i=t.getBoundingBox(),r=Math.min(n.x,i.x),o=Math.min(n.y,i.y),a=Math.max(n.x+n.width,i.x+i.width),s=Math.max(n.y+n.height,i.y+i.height);return new e.Rect(r,o,a-r,s-o)},intersection:function(t){var n=1e-10,i=[],r=this.getTopLeft();t.containsPoint(r,n)&&i.push(r);var o=this.getTopRight();t.containsPoint(o,n)&&i.push(o);var a=this.getBottomLeft();t.containsPoint(a,n)&&i.push(a);var s=this.getBottomRight();t.containsPoint(s,n)&&i.push(s);var l=t.getTopLeft();this.containsPoint(l,n)&&i.push(l);var c=t.getTopRight();this.containsPoint(c,n)&&i.push(c);var u=t.getBottomLeft();this.containsPoint(u,n)&&i.push(u);var d=t.getBottomRight();this.containsPoint(d,n)&&i.push(d);for(var p=this._getSegments(),h=t._getSegments(),f=0;f<p.length;f++)for(var m=p[f],g=0;g<h.length;g++){var v=h[g],y=b(m[0],m[1],v[0],v[1]);y&&i.push(y)}function b(t,i,r,o){var a=i.minus(t),s=o.minus(r),l=-s.x*a.y+a.x*s.y;if(0===l)return null;var c=(a.x*(t.y-r.y)-a.y*(t.x-r.x))/l,u=(s.x*(t.y-r.y)-s.y*(t.x-r.x))/l;return-1e-10<=c&&c<=1-n&&-1e-10<=u&&u<=1-n?new e.Point(t.x+u*a.x,t.y+u*a.y):null}if(0===i.length)return null;for(var w=i[0].x,x=i[0].x,E=i[0].y,C=i[0].y,S=1;S<i.length;S++){var T=i[S];T.x<w&&(w=T.x),T.x>x&&(x=T.x),T.y<E&&(E=T.y),T.y>C&&(C=T.y)}return new e.Rect(w,E,x-w,C-E)},_getSegments:function(){var e=this.getTopLeft(),t=this.getTopRight(),n=this.getBottomLeft(),i=this.getBottomRight();return[[e,t],[t,i],[i,n],[n,e]]},rotate:function(t,n){if(0===(t=e.positiveModulo(t,360)))return this.clone();n=n||this.getCenter();var i=this.getTopLeft().rotate(t,n),r=this.getTopRight().rotate(t,n).minus(i);r=r.apply((function(e){return Math.abs(e)<1e-15?0:e}));var o=Math.atan(r.y/r.x);return r.x<0?o+=Math.PI:r.y<0&&(o+=2*Math.PI),new e.Rect(i.x,i.y,this.width,this.height,o/Math.PI*180)},getBoundingBox:function(){if(0===this.degrees)return this.clone();var t=this.getTopLeft(),n=this.getTopRight(),i=this.getBottomLeft(),r=this.getBottomRight(),o=Math.min(t.x,n.x,i.x,r.x),a=Math.max(t.x,n.x,i.x,r.x),s=Math.min(t.y,n.y,i.y,r.y),l=Math.max(t.y,n.y,i.y,r.y);return new e.Rect(o,s,a-o,l-s)},getIntegerBoundingBox:function(){var t=this.getBoundingBox(),n=Math.floor(t.x),i=Math.floor(t.y),r=Math.ceil(t.width+t.x-n),o=Math.ceil(t.height+t.y-i);return new e.Rect(n,i,r,o)},containsPoint:function(e,t){t=t||0;var n=this.getTopLeft(),i=this.getTopRight(),r=this.getBottomLeft(),o=i.minus(n),a=r.minus(n);return(e.x-n.x)*o.x+(e.y-n.y)*o.y>=-t&&(e.x-i.x)*o.x+(e.y-i.y)*o.y<=t&&(e.x-n.x)*a.x+(e.y-n.y)*a.y>=-t&&(e.x-r.x)*a.x+(e.y-r.y)*a.y<=t},toString:function(){return"["+Math.round(100*this.x)/100+", "+Math.round(100*this.y)/100+", "+Math.round(100*this.width)/100+"x"+Math.round(100*this.height)/100+", "+Math.round(100*this.degrees)/100+"deg]"}}}(s),function(e){var t={};function n(e){var t;e.quick&&(t="horizontal"===this.scroll?Math.floor(e.position.x/this.panelWidth):Math.floor(e.position.y/this.panelHeight),this.viewer.goToPage(t));this.element.focus()}function i(t){if(this.dragging=!0,this.element){var n=Number(this.element.style.marginLeft.replace("px","")),i=Number(this.element.style.marginTop.replace("px","")),r=Number(this.element.style.width.replace("px","")),a=Number(this.element.style.height.replace("px","")),s=e.getElementSize(this.viewer.canvas);"horizontal"===this.scroll?-t.delta.x>0?n>-(r-s.x)&&(this.element.style.marginLeft=n+2*t.delta.x+"px",o(this,s.x,n+2*t.delta.x)):-t.delta.x<0&&n<0&&(this.element.style.marginLeft=n+2*t.delta.x+"px",o(this,s.x,n+2*t.delta.x)):-t.delta.y>0?i>-(a-s.y)&&(this.element.style.marginTop=i+2*t.delta.y+"px",o(this,s.y,i+2*t.delta.y)):-t.delta.y<0&&i<0&&(this.element.style.marginTop=i+2*t.delta.y+"px",o(this,s.y,i+2*t.delta.y))}}function r(t){if(this.element){var n=Number(this.element.style.marginLeft.replace("px","")),i=Number(this.element.style.marginTop.replace("px","")),r=Number(this.element.style.width.replace("px","")),a=Number(this.element.style.height.replace("px","")),s=e.getElementSize(this.viewer.canvas);"horizontal"===this.scroll?t.scroll>0?n>-(r-s.x)&&(this.element.style.marginLeft=n-60*t.scroll+"px",o(this,s.x,n-60*t.scroll)):t.scroll<0&&n<0&&(this.element.style.marginLeft=n-60*t.scroll+"px",o(this,s.x,n-60*t.scroll)):t.scroll<0?i>s.y-a&&(this.element.style.marginTop=i+60*t.scroll+"px",o(this,s.y,i+60*t.scroll)):t.scroll>0&&i<0&&(this.element.style.marginTop=i+60*t.scroll+"px",o(this,s.y,i+60*t.scroll)),t.preventDefault=!0}}function o(t,n,i){var r,o,a,s,l,c;for(r="horizontal"===t.scroll?t.panelWidth:t.panelHeight,o=Math.ceil(n/r)+5,l=o=(o=(a=Math.ceil((Math.abs(i)+n)/r)+1)-o)<0?0:o;l<a&&l<t.panels.length;l++)if(!(c=t.panels[l]).activePanel){var u,d=t.viewer.tileSources[l];u=d.referenceStripThumbnailUrl?{type:"image",url:d.referenceStripThumbnailUrl}:d,s=new e.Viewer({id:c.id,tileSources:[u],element:c,navigatorSizeRatio:t.sizeRatio,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:0,loadTilesWithAjax:t.viewer.loadTilesWithAjax,ajaxHeaders:t.viewer.ajaxHeaders,useCanvas:t.useCanvas}),e.setElementPointerEventsNone(s.canvas),e.setElementPointerEventsNone(s.container),s.innerTracker.setTracking(!1),s.outerTracker.setTracking(!1),t.miniViewers[c.id]=s,c.activePanel=!0}}function a(e){var t=e.eventSource.element;"horizontal"===this.scroll?t.style.marginBottom="0px":t.style.marginLeft="0px"}function s(t){var n=t.eventSource.element;"horizontal"===this.scroll?n.style.marginBottom="-"+e.getElementSize(n).y/2+"px":n.style.marginLeft="-"+e.getElementSize(n).x/2+"px"}function l(e){if(e.ctrl||e.alt||e.meta)e.preventDefault=!1;else switch(e.keyCode){case 38:case 39:r.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),e.preventDefault=!0;break;case 40:case 37:r.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),e.preventDefault=!0;break;default:e.preventDefault=!1}}function c(e){if(e.ctrl||e.alt||e.meta)e.preventDefault=!1;else switch(e.keyCode){case 61:case 48:case 119:case 87:case 100:r.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),e.preventDefault=!0;break;case 45:case 115:case 83:case 97:r.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),e.preventDefault=!0;break;default:e.preventDefault=!1}}e.ReferenceStrip=function(u){var d,p,h,f=u.viewer,m=e.getElementSize(f.element);for(u.id||(u.id="referencestrip-"+e.now(),this.element=e.makeNeutralElement("div"),this.element.id=u.id,this.element.className="referencestrip"),u=e.extend(!0,{sizeRatio:e.DEFAULT_SETTINGS.referenceStripSizeRatio,position:e.DEFAULT_SETTINGS.referenceStripPosition,scroll:e.DEFAULT_SETTINGS.referenceStripScroll,clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold},u,{element:this.element}),e.extend(this,u),t[this.id]={animating:!1},this.minPixelRatio=this.viewer.minPixelRatio,this.element.tabIndex=0,(p=this.element.style).marginTop="0px",p.marginRight="0px",p.marginBottom="0px",p.marginLeft="0px",p.left="0px",p.bottom="0px",p.border="0px",p.background="#000",p.position="relative",e.setElementTouchActionNone(this.element),e.setElementOpacity(this.element,.8),this.viewer=f,this.tracker=new e.MouseTracker({userData:"ReferenceStrip.tracker",element:this.element,clickHandler:e.delegate(this,n),dragHandler:e.delegate(this,i),scrollHandler:e.delegate(this,r),enterHandler:e.delegate(this,a),leaveHandler:e.delegate(this,s),keyDownHandler:e.delegate(this,l),keyHandler:e.delegate(this,c),preProcessEventHandler:function(e){"wheel"===e.eventType&&(e.preventDefault=!0)}}),u.width&&u.height?(this.element.style.width=u.width+"px",this.element.style.height=u.height+"px",f.addControl(this.element,{anchor:e.ControlAnchor.BOTTOM_LEFT})):"horizontal"===u.scroll?(this.element.style.width=m.x*u.sizeRatio*f.tileSources.length+12*f.tileSources.length+"px",this.element.style.height=m.y*u.sizeRatio+"px",f.addControl(this.element,{anchor:e.ControlAnchor.BOTTOM_LEFT})):(this.element.style.height=m.y*u.sizeRatio*f.tileSources.length+12*f.tileSources.length+"px",this.element.style.width=m.x*u.sizeRatio+"px",f.addControl(this.element,{anchor:e.ControlAnchor.TOP_LEFT})),this.panelWidth=m.x*this.sizeRatio+8,this.panelHeight=m.y*this.sizeRatio+8,this.panels=[],this.miniViewers={},h=0;h<f.tileSources.length;h++)(d=e.makeNeutralElement("div")).id=this.element.id+"-"+h,d.style.width=this.panelWidth+"px",d.style.height=this.panelHeight+"px",d.style.display="inline",d.style.float="left",d.style.cssFloat="left",d.style.styleFloat="left",d.style.padding="2px",e.setElementTouchActionNone(d),e.setElementPointerEventsNone(d),this.element.appendChild(d),d.activePanel=!1,this.panels.push(d);o(this,"vertical"===this.scroll?m.y:m.x,0),this.setFocus(0)},e.ReferenceStrip.prototype={setFocus:function(t){var n,i=this.element.querySelector("#"+this.element.id+"-"+t),r=e.getElementSize(this.viewer.canvas),s=Number(this.element.style.width.replace("px","")),l=Number(this.element.style.height.replace("px","")),c=-Number(this.element.style.marginLeft.replace("px","")),u=-Number(this.element.style.marginTop.replace("px",""));this.currentSelected!==i&&(this.currentSelected&&(this.currentSelected.style.background="#000"),this.currentSelected=i,this.currentSelected.style.background="#999","horizontal"===this.scroll?(n=Number(t)*(this.panelWidth+3))>c+r.x-this.panelWidth?(n=Math.min(n,s-r.x),this.element.style.marginLeft=-n+"px",o(this,r.x,-n)):n<c&&(n=Math.max(0,n-r.x/2),this.element.style.marginLeft=-n+"px",o(this,r.x,-n)):(n=Number(t)*(this.panelHeight+3))>u+r.y-this.panelHeight?(n=Math.min(n,l-r.y),this.element.style.marginTop=-n+"px",o(this,r.y,-n)):n<u&&(n=Math.max(0,n-r.y/2),this.element.style.marginTop=-n+"px",o(this,r.y,-n)),this.currentPage=t,a.call(this,{eventSource:this.tracker}))},update:function(){return!!t[this.id].animating},destroy:function(){if(this.miniViewers)for(var e in this.miniViewers)this.miniViewers[e].destroy();this.tracker.destroy(),this.element&&this.viewer.removeControl(this.element)}}}(s),function(e){e.DisplayRect=function(t,n,i,r,o,a){e.Rect.apply(this,[t,n,i,r]),this.minLevel=o,this.maxLevel=a},e.extend(e.DisplayRect.prototype,e.Rect.prototype)}(s),function(e){e.Spring=function(t){var n=arguments;"object"!=typeof t&&(t={initial:n.length&&"number"==typeof n[0]?n[0]:void 0,springStiffness:n.length>1?n[1].springStiffness:5,animationTime:n.length>1?n[1].animationTime:1.5}),e.console.assert("number"==typeof t.springStiffness&&0!==t.springStiffness,"[OpenSeadragon.Spring] options.springStiffness must be a non-zero number"),e.console.assert("number"==typeof t.animationTime&&t.animationTime>=0,"[OpenSeadragon.Spring] options.animationTime must be a number greater than or equal to 0"),t.exponential&&(this._exponential=!0,delete t.exponential),e.extend(!0,this,t),this.current={value:"number"==typeof this.initial?this.initial:this._exponential?0:1,time:e.now()},e.console.assert(!this._exponential||0!==this.current.value,"[OpenSeadragon.Spring] value must be non-zero for exponential springs"),this.start={value:this.current.value,time:this.current.time},this.target={value:this.current.value,time:this.current.time},this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},e.Spring.prototype={resetTo:function(t){e.console.assert(!this._exponential||0!==t,"[OpenSeadragon.Spring.resetTo] target must be non-zero for exponential springs"),this.start.value=this.target.value=this.current.value=t,this.start.time=this.target.time=this.current.time=e.now(),this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},springTo:function(t){e.console.assert(!this._exponential||0!==t,"[OpenSeadragon.Spring.springTo] target must be non-zero for exponential springs"),this.start.value=this.current.value,this.start.time=this.current.time,this.target.value=t,this.target.time=this.start.time+1e3*this.animationTime,this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value))},shiftBy:function(t){this.start.value+=t,this.target.value+=t,this._exponential&&(e.console.assert(0!==this.target.value&&0!==this.start.value,"[OpenSeadragon.Spring.shiftBy] spring value must be non-zero for exponential springs"),this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value))},setExponential:function(t){this._exponential=t,this._exponential&&(e.console.assert(0!==this.current.value&&0!==this.target.value&&0!==this.start.value,"[OpenSeadragon.Spring.setExponential] spring value must be non-zero for exponential springs"),this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},update:function(){var t,n;this.current.time=e.now(),this._exponential?(t=this.start._logValue,n=this.target._logValue):(t=this.start.value,n=this.target.value);var i,r,o=this.current.time>=this.target.time?n:t+(n-t)*(i=this.springStiffness,r=(this.current.time-this.start.time)/(this.target.time-this.start.time),(1-Math.exp(i*-r))/(1-Math.exp(-i))),a=this.current.value;return this._exponential?this.current.value=Math.exp(o):this.current.value=o,a!==this.current.value},isAtTargetValue:function(){return this.current.value===this.target.value}}}(s),function(e){e.ImageJob=function(t){e.extend(!0,this,{timeout:e.DEFAULT_SETTINGS.timeout,jobId:null},t),this.data=null,this.userData={},this.errorMsg=null},e.ImageJob.prototype={start:function(){var e=this,t=this.abort;this.jobId=window.setTimeout((function(){e.finish(null,null,"Image load exceeded timeout ("+e.timeout+" ms)")}),this.timeout),this.abort=function(){e.source.downloadTileAbort(e),"function"==typeof t&&t()},this.source.downloadTileStart(this)},finish:function(e,t,n){this.data=e,this.request=t,this.errorMsg=n,this.jobId&&window.clearTimeout(this.jobId),this.callback(this)}},e.ImageLoader=function(t){e.extend(!0,this,{jobLimit:e.DEFAULT_SETTINGS.imageLoaderLimit,timeout:e.DEFAULT_SETTINGS.timeout,jobQueue:[],jobsInProgress:0},t)},e.ImageLoader.prototype={addJob:function(t){if(!t.source){e.console.error("ImageLoader.prototype.addJob() requires [options.source]. TileSource since new API defines how images are fetched. Creating a dummy TileSource.");var n=e.TileSource.prototype;t.source={downloadTileStart:n.downloadTileStart,downloadTileAbort:n.downloadTileAbort}}var i=this,r={src:t.src,tile:t.tile||{},source:t.source,loadWithAjax:t.loadWithAjax,ajaxHeaders:t.loadWithAjax?t.ajaxHeaders:null,crossOriginPolicy:t.crossOriginPolicy,ajaxWithCredentials:t.ajaxWithCredentials,postData:t.postData,callback:function(e){!function(e,t,n){e.jobsInProgress--,(!e.jobLimit||e.jobsInProgress<e.jobLimit)&&e.jobQueue.length>0&&(e.jobQueue.shift().start(),e.jobsInProgress++);n(t.data,t.errorMsg,t.request)}(i,e,t.callback)},abort:t.abort,timeout:this.timeout},o=new e.ImageJob(r);!this.jobLimit||this.jobsInProgress<this.jobLimit?(o.start(),this.jobsInProgress++):this.jobQueue.push(o)},clear:function(){for(var e=0;e<this.jobQueue.length;e++){var t=this.jobQueue[e];"function"==typeof t.abort&&t.abort()}this.jobQueue=[]}}}(s),function(e){e.Tile=function(t,n,i,r,o,a,s,l,c,u,d,p){this.level=t,this.x=n,this.y=i,this.bounds=r,this.sourceBounds=u,this.exists=o,this._url=a,this.postData=d,this.context2D=s,this.loadWithAjax=l,this.ajaxHeaders=c,void 0===p&&(e.console.warn("Tile constructor needs 'cacheKey' variable: creation tile cache in Tile class is deprecated. TileSource.prototype.getTileHashKey will be used."),p=e.TileSource.prototype.getTileHashKey(t,n,i,a,c,d)),this.cacheKey=p,this.loaded=!1,this.loading=!1,this.element=null,this.imgElement=null,this.style=null,this.position=null,this.size=null,this.flipped=!1,this.blendStart=null,this.opacity=null,this.squaredDistance=null,this.visibility=null,this.hasTransparency=!1,this.beingDrawn=!1,this.lastTouchTime=0,this.isRightMost=!1,this.isBottomMost=!1},e.Tile.prototype={toString:function(){return this.level+"/"+this.x+"_"+this.y},_hasTransparencyChannel:function(){return console.warn("Tile.prototype._hasTransparencyChannel() has been deprecated and will be removed in the future. Use TileSource.prototype.hasTransparency() instead."),!!this.context2D||this.getUrl().match(".png")},drawHTML:function(t){if(this.cacheImageRecord)if(this.loaded){if(!this.element){var n=this.getImage();if(!n)return;this.element=e.makeNeutralElement("div"),this.imgElement=n.cloneNode(),this.imgElement.style.msInterpolationMode="nearest-neighbor",this.imgElement.style.width="100%",this.imgElement.style.height="100%",this.style=this.element.style,this.style.position="absolute"}this.element.parentNode!==t&&t.appendChild(this.element),this.imgElement.parentNode!==this.element&&this.element.appendChild(this.imgElement),this.style.top=this.position.y+"px",this.style.left=this.position.x+"px",this.style.height=this.size.y+"px",this.style.width=this.size.x+"px",this.flipped&&(this.style.transform="scaleX(-1)"),e.setElementOpacity(this.element,this.opacity)}else e.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString());else e.console.warn("[Tile.drawHTML] attempting to draw tile %s when it's not cached",this.toString())},get image(){return e.console.error("[Tile.image] property has been deprecated. Use [Tile.prototype.getImage] instead."),this.getImage()},get url(){return e.console.error("[Tile.url] property has been deprecated. Use [Tile.prototype.getUrl] instead."),this.getUrl()},getImage:function(){return this.cacheImageRecord.getImage()},getUrl:function(){return"function"==typeof this._url?this._url():this._url},getCanvasContext:function(){return this.context2D||this.cacheImageRecord.getRenderedContext()},drawCanvas:function(t,n,i,r,o,a){var s,l,c,u=this.position.times(e.pixelDensityRatio),d=this.size.times(e.pixelDensityRatio);this.context2D||this.cacheImageRecord?(s=this.getCanvasContext(),this.loaded&&s?(t.save(),t.globalAlpha=this.opacity,"number"==typeof i&&1!==i&&(u=u.times(i),d=d.times(i)),r instanceof e.Point&&(u=u.plus(r)),1===t.globalAlpha&&this.hasTransparency&&(o&&(u.x=Math.round(u.x),u.y=Math.round(u.y),d.x=Math.round(d.x),d.y=Math.round(d.y)),t.clearRect(u.x,u.y,d.x,d.y)),n({context:t,tile:this,rendered:s}),this.sourceBounds?(l=Math.min(this.sourceBounds.width,s.canvas.width),c=Math.min(this.sourceBounds.height,s.canvas.height)):(l=s.canvas.width,c=s.canvas.height),t.translate(u.x+d.x/2,0),this.flipped&&t.scale(-1,1),t.drawImage(s.canvas,0,0,l,c,-d.x/2,u.y,d.x,d.y),t.restore()):e.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString())):e.console.warn("[Tile.drawCanvas] attempting to draw tile %s when it's not cached",this.toString())},getScaleForEdgeSmoothing:function(){var t;if(this.cacheImageRecord)t=this.cacheImageRecord.getRenderedContext();else{if(!this.context2D)return e.console.warn("[Tile.drawCanvas] attempting to get tile scale %s when tile's not cached",this.toString()),1;t=this.context2D}return t.canvas.width/(this.size.x*e.pixelDensityRatio)},getTranslationForEdgeSmoothing:function(t,n,i){var r=Math.max(1,Math.ceil((i.x-n.x)/2)),o=Math.max(1,Math.ceil((i.y-n.y)/2));return new e.Point(r,o).minus(this.position.times(e.pixelDensityRatio).times(t||1).apply((function(e){return e%1})))},unload:function(){this.imgElement&&this.imgElement.parentNode&&this.imgElement.parentNode.removeChild(this.imgElement),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.imgElement=null,this.loaded=!1,this.loading=!1}}}(s),function(e){e.OverlayPlacement=e.Placement,e.OverlayRotationMode=e.freezeObject({NO_ROTATION:1,EXACT:2,BOUNDING_BOX:3}),e.Overlay=function(t,n,i){var r;r=e.isPlainObject(t)?t:{element:t,location:n,placement:i},this.element=r.element,this.style=r.element.style,this._init(r)},e.Overlay.prototype={_init:function(t){this.location=t.location,this.placement=void 0===t.placement?e.Placement.TOP_LEFT:t.placement,this.onDraw=t.onDraw,this.checkResize=void 0===t.checkResize||t.checkResize,this.width=void 0===t.width?null:t.width,this.height=void 0===t.height?null:t.height,this.rotationMode=t.rotationMode||e.OverlayRotationMode.EXACT,this.location instanceof e.Rect&&(this.width=this.location.width,this.height=this.location.height,this.location=this.location.getTopLeft(),this.placement=e.Placement.TOP_LEFT),this.scales=null!==this.width&&null!==this.height,this.bounds=new e.Rect(this.location.x,this.location.y,this.width,this.height),this.position=this.location},adjust:function(t,n){var i=e.Placement.properties[this.placement];i&&(i.isHorizontallyCentered?t.x-=n.x/2:i.isRight&&(t.x-=n.x),i.isVerticallyCentered?t.y-=n.y/2:i.isBottom&&(t.y-=n.y))},destroy:function(){var t=this.element,n=this.style;t.parentNode&&(t.parentNode.removeChild(t),t.prevElementParent&&(n.display="none",document.body.appendChild(t))),this.onDraw=null,n.top="",n.left="",n.position="",null!==this.width&&(n.width=""),null!==this.height&&(n.height="");var i=e.getCssPropertyWithVendorPrefix("transformOrigin"),r=e.getCssPropertyWithVendorPrefix("transform");i&&r&&(n[i]="",n[r]="")},drawHTML:function(t,n){var i=this.element;i.parentNode!==t&&(i.prevElementParent=i.parentNode,i.prevNextSibling=i.nextSibling,t.appendChild(i),this.style.position="absolute",this.size=e.getElementSize(i));var r=this._getOverlayPositionAndSize(n),o=r.position,a=this.size=r.size,s=r.rotate;if(this.onDraw)this.onDraw(o,a,this.element);else{var l=this.style;l.left=o.x+"px",l.top=o.y+"px",null!==this.width&&(l.width=a.x+"px"),null!==this.height&&(l.height=a.y+"px");var c=e.getCssPropertyWithVendorPrefix("transformOrigin"),u=e.getCssPropertyWithVendorPrefix("transform");c&&u&&(s?(l[c]=this._getTransformOrigin(),l[u]="rotate("+s+"deg)"):(l[c]="",l[u]="")),l.display="block"}},_getOverlayPositionAndSize:function(t){var n=t.pixelFromPoint(this.location,!0),i=this._getSizeInPixels(t);this.adjust(n,i);var r=0;if(t.getRotation(!0)&&this.rotationMode!==e.OverlayRotationMode.NO_ROTATION)if(this.rotationMode===e.OverlayRotationMode.BOUNDING_BOX&&null!==this.width&&null!==this.height){var o=new e.Rect(n.x,n.y,i.x,i.y),a=this._getBoundingBox(o,t.getRotation(!0));n=a.getTopLeft(),i=a.getSize()}else r=t.getRotation(!0);return{position:n,size:i,rotate:r}},_getSizeInPixels:function(t){var n=this.size.x,i=this.size.y;if(null!==this.width||null!==this.height){var r=t.deltaPixelsFromPointsNoRotate(new e.Point(this.width||0,this.height||0),!0);null!==this.width&&(n=r.x),null!==this.height&&(i=r.y)}if(this.checkResize&&(null===this.width||null===this.height)){var o=this.size=e.getElementSize(this.element);null===this.width&&(n=o.x),null===this.height&&(i=o.y)}return new e.Point(n,i)},_getBoundingBox:function(e,t){var n=this._getPlacementPoint(e);return e.rotate(t,n).getBoundingBox()},_getPlacementPoint:function(t){var n=new e.Point(t.x,t.y),i=e.Placement.properties[this.placement];return i&&(i.isHorizontallyCentered?n.x+=t.width/2:i.isRight&&(n.x+=t.width),i.isVerticallyCentered?n.y+=t.height/2:i.isBottom&&(n.y+=t.height)),n},_getTransformOrigin:function(){var t="",n=e.Placement.properties[this.placement];return n?(n.isLeft?t="left":n.isRight&&(t="right"),n.isTop?t+=" top":n.isBottom&&(t+=" bottom"),t):t},update:function(t,n){var i=e.isPlainObject(t)?t:{location:t,placement:n};this._init({location:i.location||this.location,placement:void 0!==i.placement?i.placement:this.placement,onDraw:i.onDraw||this.onDraw,checkResize:i.checkResize||this.checkResize,width:void 0!==i.width?i.width:this.width,height:void 0!==i.height?i.height:this.height,rotationMode:i.rotationMode||this.rotationMode})},getBounds:function(t){e.console.assert(t,"A viewport must now be passed to Overlay.getBounds.");var n=this.width,i=this.height;if(null===n||null===i){var r=t.deltaPointsFromPixelsNoRotate(this.size,!0);null===n&&(n=r.x),null===i&&(i=r.y)}var o=this.location.clone();return this.adjust(o,new e.Point(n,i)),this._adjustBoundsForRotation(t,new e.Rect(o.x,o.y,n,i))},_adjustBoundsForRotation:function(t,n){if(!t||0===t.getRotation(!0)||this.rotationMode===e.OverlayRotationMode.EXACT)return n;if(this.rotationMode===e.OverlayRotationMode.BOUNDING_BOX){if(null===this.width||null===this.height)return n;var i=this._getOverlayPositionAndSize(t);return t.viewerElementToViewportRectangle(new e.Rect(i.position.x,i.position.y,i.size.x,i.size.y))}return n.rotate(-t.getRotation(!0),this._getPlacementPoint(n))}}}(s),function(e){e.Drawer=function(t){e.console.assert(t.viewer,"[Drawer] options.viewer is required");var n=arguments;if(e.isPlainObject(t)||(t={source:n[0],viewport:n[1],element:n[2]}),e.console.assert(t.viewport,"[Drawer] options.viewport is required"),e.console.assert(t.element,"[Drawer] options.element is required"),t.source&&e.console.error("[Drawer] options.source is no longer accepted; use TiledImage instead"),this.viewer=t.viewer,this.viewport=t.viewport,this.debugGridColor="string"==typeof t.debugGridColor?[t.debugGridColor]:t.debugGridColor||e.DEFAULT_SETTINGS.debugGridColor,t.opacity&&e.console.error("[Drawer] options.opacity is no longer accepted; set the opacity on the TiledImage instead"),this.useCanvas=e.supportsCanvas&&(!this.viewer||this.viewer.useCanvas),this.container=e.getElement(t.element),this.canvas=e.makeNeutralElement(this.useCanvas?"canvas":"div"),this.context=this.useCanvas?this.canvas.getContext("2d"):null,this.sketchCanvas=null,this.sketchContext=null,this.element=this.container,this.container.dir="ltr",this.useCanvas){var i=this._calculateCanvasSize();this.canvas.width=i.x,this.canvas.height=i.y}this.canvas.style.width="100%",this.canvas.style.height="100%",this.canvas.style.position="absolute",e.setElementOpacity(this.canvas,this.opacity,!0),e.setElementPointerEventsNone(this.canvas),e.setElementTouchActionNone(this.canvas),this.container.style.textAlign="left",this.container.appendChild(this.canvas),this._imageSmoothingEnabled=!0},e.Drawer.prototype={addOverlay:function(t,n,i,r){return e.console.error("drawer.addOverlay is deprecated. Use viewer.addOverlay instead."),this.viewer.addOverlay(t,n,i,r),this},updateOverlay:function(t,n,i){return e.console.error("drawer.updateOverlay is deprecated. Use viewer.updateOverlay instead."),this.viewer.updateOverlay(t,n,i),this},removeOverlay:function(t){return e.console.error("drawer.removeOverlay is deprecated. Use viewer.removeOverlay instead."),this.viewer.removeOverlay(t),this},clearOverlays:function(){return e.console.error("drawer.clearOverlays is deprecated. Use viewer.clearOverlays instead."),this.viewer.clearOverlays(),this},viewportCoordToDrawerCoord:function(t){var n=this.viewport.pixelFromPointNoRotate(t,!0);return new e.Point(n.x*e.pixelDensityRatio,n.y*e.pixelDensityRatio)},clipWithPolygons:function(e,t){if(this.useCanvas){var n=this._getContext(t);n.beginPath(),e.forEach((function(e){e.forEach((function(e,t){n[0===t?"moveTo":"lineTo"](e.x,e.y)}))})),n.clip()}},setOpacity:function(t){e.console.error("drawer.setOpacity is deprecated. Use tiledImage.setOpacity instead.");for(var n=this.viewer.world,i=0;i<n.getItemCount();i++)n.getItemAt(i).setOpacity(t);return this},getOpacity:function(){e.console.error("drawer.getOpacity is deprecated. Use tiledImage.getOpacity instead.");for(var t=this.viewer.world,n=0,i=0;i<t.getItemCount();i++){var r=t.getItemAt(i).getOpacity();r>n&&(n=r)}return n},needsUpdate:function(){return e.console.error("[Drawer.needsUpdate] this function is deprecated. Use World.needsDraw instead."),this.viewer.world.needsDraw()},numTilesLoaded:function(){return e.console.error("[Drawer.numTilesLoaded] this function is deprecated. Use TileCache.numTilesLoaded instead."),this.viewer.tileCache.numTilesLoaded()},reset:function(){return e.console.error("[Drawer.reset] this function is deprecated. Use World.resetItems instead."),this.viewer.world.resetItems(),this},update:function(){return e.console.error("[Drawer.update] this function is deprecated. Use Drawer.clear and World.draw instead."),this.clear(),this.viewer.world.draw(),this},canRotate:function(){return this.useCanvas},destroy:function(){this.canvas.width=1,this.canvas.height=1,this.sketchCanvas=null,this.sketchContext=null},clear:function(){if(this.canvas.innerHTML="",this.useCanvas){var e=this._calculateCanvasSize();if((this.canvas.width!==e.x||this.canvas.height!==e.y)&&(this.canvas.width=e.x,this.canvas.height=e.y,this._updateImageSmoothingEnabled(this.context),null!==this.sketchCanvas)){var t=this._calculateSketchCanvasSize();this.sketchCanvas.width=t.x,this.sketchCanvas.height=t.y,this._updateImageSmoothingEnabled(this.sketchContext)}this._clear()}},_clear:function(e,t){if(this.useCanvas){var n=this._getContext(e);if(t)n.clearRect(t.x,t.y,t.width,t.height);else{var i=n.canvas;n.clearRect(0,0,i.width,i.height)}}},viewportToDrawerRectangle:function(t){var n=this.viewport.pixelFromPointNoRotate(t.getTopLeft(),!0),i=this.viewport.deltaPixelsFromPointsNoRotate(t.getSize(),!0);return new e.Rect(n.x*e.pixelDensityRatio,n.y*e.pixelDensityRatio,i.x*e.pixelDensityRatio,i.y*e.pixelDensityRatio)},drawTile:function(t,n,i,r,o,a,s){if(e.console.assert(t,"[Drawer.drawTile] tile is required"),e.console.assert(n,"[Drawer.drawTile] drawingHandler is required"),this.useCanvas){var l=this._getContext(i);r=r||1,t.drawCanvas(l,n,r,o,a,s)}else t.drawHTML(this.canvas)},_getContext:function(e){var t=this.context;if(e){if(null===this.sketchCanvas){this.sketchCanvas=document.createElement("canvas");var n=this._calculateSketchCanvasSize();if(this.sketchCanvas.width=n.x,this.sketchCanvas.height=n.y,this.sketchContext=this.sketchCanvas.getContext("2d"),0===this.viewport.getRotation()){var i=this;this.viewer.addHandler("rotate",(function e(){if(0!==i.viewport.getRotation()){i.viewer.removeHandler("rotate",e);var t=i._calculateSketchCanvasSize();i.sketchCanvas.width=t.x,i.sketchCanvas.height=t.y}}))}this._updateImageSmoothingEnabled(this.sketchContext)}t=this.sketchContext}return t},saveContext:function(e){this.useCanvas&&this._getContext(e).save()},restoreContext:function(e){this.useCanvas&&this._getContext(e).restore()},setClip:function(e,t){if(this.useCanvas){var n=this._getContext(t);n.beginPath(),n.rect(e.x,e.y,e.width,e.height),n.clip()}},drawRectangle:function(e,t,n){if(this.useCanvas){var i=this._getContext(n);i.save(),i.fillStyle=t,i.fillRect(e.x,e.y,e.width,e.height),i.restore()}},blendSketch:function(t,n,i,r){var o=t;if(e.isPlainObject(o)||(o={opacity:t,scale:n,translate:i,compositeOperation:r}),this.useCanvas&&this.sketchCanvas){t=o.opacity,r=o.compositeOperation;var a=o.bounds;if(this.context.save(),this.context.globalAlpha=t,r&&(this.context.globalCompositeOperation=r),a)a.x<0&&(a.width+=a.x,a.x=0),a.x+a.width>this.canvas.width&&(a.width=this.canvas.width-a.x),a.y<0&&(a.height+=a.y,a.y=0),a.y+a.height>this.canvas.height&&(a.height=this.canvas.height-a.y),this.context.drawImage(this.sketchCanvas,a.x,a.y,a.width,a.height,a.x,a.y,a.width,a.height);else{n=o.scale||1;var s=(i=o.translate)instanceof e.Point?i:new e.Point(0,0),l=0,c=0;if(i){var u=this.sketchCanvas.width-this.canvas.width,d=this.sketchCanvas.height-this.canvas.height;l=Math.round(u/2),c=Math.round(d/2)}this.context.drawImage(this.sketchCanvas,s.x-l*n,s.y-c*n,(this.canvas.width+2*l)*n,(this.canvas.height+2*c)*n,-l,-c,this.canvas.width+2*l,this.canvas.height+2*c)}this.context.restore()}},drawDebugInfo:function(t,n,i,r){if(this.useCanvas){var o=this.viewer.world.getIndexOfItem(r)%this.debugGridColor.length,a=this.context;a.save(),a.lineWidth=2*e.pixelDensityRatio,a.font="small-caps bold "+13*e.pixelDensityRatio+"px arial",a.strokeStyle=this.debugGridColor[o],a.fillStyle=this.debugGridColor[o],this.viewport.getRotation(!0)%360!=0&&this._offsetForRotation({degrees:this.viewport.getRotation(!0)}),r.getRotation(!0)%360!=0&&this._offsetForRotation({degrees:r.getRotation(!0),point:r.viewport.pixelFromPointNoRotate(r._getRotationPoint(!0),!0)}),r.viewport.getRotation(!0)%360==0&&r.getRotation(!0)%360==0&&r._drawer.viewer.viewport.getFlip()&&r._drawer._flip(),a.strokeRect(t.position.x*e.pixelDensityRatio,t.position.y*e.pixelDensityRatio,t.size.x*e.pixelDensityRatio,t.size.y*e.pixelDensityRatio);var s=(t.position.x+t.size.x/2)*e.pixelDensityRatio,l=(t.position.y+t.size.y/2)*e.pixelDensityRatio;a.translate(s,l),a.rotate(Math.PI/180*-this.viewport.getRotation(!0)),a.translate(-s,-l),0===t.x&&0===t.y&&(a.fillText("Zoom: "+this.viewport.getZoom(),t.position.x*e.pixelDensityRatio,(t.position.y-30)*e.pixelDensityRatio),a.fillText("Pan: "+this.viewport.getBounds().toString(),t.position.x*e.pixelDensityRatio,(t.position.y-20)*e.pixelDensityRatio)),a.fillText("Level: "+t.level,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+20)*e.pixelDensityRatio),a.fillText("Column: "+t.x,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+30)*e.pixelDensityRatio),a.fillText("Row: "+t.y,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+40)*e.pixelDensityRatio),a.fillText("Order: "+i+" of "+n,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+50)*e.pixelDensityRatio),a.fillText("Size: "+t.size.toString(),(t.position.x+10)*e.pixelDensityRatio,(t.position.y+60)*e.pixelDensityRatio),a.fillText("Position: "+t.position.toString(),(t.position.x+10)*e.pixelDensityRatio,(t.position.y+70)*e.pixelDensityRatio),this.viewport.getRotation(!0)%360!=0&&this._restoreRotationChanges(),r.getRotation(!0)%360!=0&&this._restoreRotationChanges(),r.viewport.getRotation(!0)%360==0&&r.getRotation(!0)%360==0&&r._drawer.viewer.viewport.getFlip()&&r._drawer._flip(),a.restore()}},debugRect:function(t){if(this.useCanvas){var n=this.context;n.save(),n.lineWidth=2*e.pixelDensityRatio,n.strokeStyle=this.debugGridColor[0],n.fillStyle=this.debugGridColor[0],n.strokeRect(t.x*e.pixelDensityRatio,t.y*e.pixelDensityRatio,t.width*e.pixelDensityRatio,t.height*e.pixelDensityRatio),n.restore()}},setImageSmoothingEnabled:function(e){this.useCanvas&&(this._imageSmoothingEnabled=e,this._updateImageSmoothingEnabled(this.context),this.viewer.forceRedraw())},_updateImageSmoothingEnabled:function(e){e.msImageSmoothingEnabled=this._imageSmoothingEnabled,e.imageSmoothingEnabled=this._imageSmoothingEnabled},getCanvasSize:function(t){var n=this._getContext(t).canvas;return new e.Point(n.width,n.height)},getCanvasCenter:function(){return new e.Point(this.canvas.width/2,this.canvas.height/2)},_offsetForRotation:function(t){var n=t.point?t.point.times(e.pixelDensityRatio):this.getCanvasCenter(),i=this._getContext(t.useSketch);i.save(),i.translate(n.x,n.y),this.viewer.viewport.flipped?(i.rotate(Math.PI/180*-t.degrees),i.scale(-1,1)):i.rotate(Math.PI/180*t.degrees),i.translate(-n.x,-n.y)},_flip:function(t){var n=(t=t||{}).point?t.point.times(e.pixelDensityRatio):this.getCanvasCenter(),i=this._getContext(t.useSketch);i.translate(n.x,0),i.scale(-1,1),i.translate(-n.x,0)},_restoreRotationChanges:function(e){this._getContext(e).restore()},_calculateCanvasSize:function(){var t=e.pixelDensityRatio,n=this.viewport.getContainerSize();return{x:Math.round(n.x*t),y:Math.round(n.y*t)}},_calculateSketchCanvasSize:function(){var e=this._calculateCanvasSize();if(0===this.viewport.getRotation())return e;var t=Math.ceil(Math.sqrt(e.x*e.x+e.y*e.y));return{x:t,y:t}}}}(s),function(e){e.Viewport=function(t){var n=arguments;n.length&&n[0]instanceof e.Point&&(t={containerSize:n[0],contentSize:n[1],config:n[2]}),t.config&&(e.extend(!0,t,t.config),delete t.config),this._margins=e.extend({left:0,top:0,right:0,bottom:0},t.margins||{}),delete t.margins,t.initialDegrees=t.degrees,delete t.degrees,e.extend(!0,this,{containerSize:null,contentSize:null,zoomPoint:null,rotationPivot:null,viewer:null,springStiffness:e.DEFAULT_SETTINGS.springStiffness,animationTime:e.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:e.DEFAULT_SETTINGS.minZoomImageRatio,maxZoomPixelRatio:e.DEFAULT_SETTINGS.maxZoomPixelRatio,visibilityRatio:e.DEFAULT_SETTINGS.visibilityRatio,wrapHorizontal:e.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:e.DEFAULT_SETTINGS.wrapVertical,defaultZoomLevel:e.DEFAULT_SETTINGS.defaultZoomLevel,minZoomLevel:e.DEFAULT_SETTINGS.minZoomLevel,maxZoomLevel:e.DEFAULT_SETTINGS.maxZoomLevel,initialDegrees:e.DEFAULT_SETTINGS.degrees,flipped:e.DEFAULT_SETTINGS.flipped,homeFillsViewer:e.DEFAULT_SETTINGS.homeFillsViewer,silenceMultiImageWarnings:e.DEFAULT_SETTINGS.silenceMultiImageWarnings},t),this._updateContainerInnerSize(),this.centerSpringX=new e.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.centerSpringY=new e.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.zoomSpring=new e.Spring({exponential:!0,initial:1,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.degreesSpring=new e.Spring({initial:t.initialDegrees,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._oldCenterX=this.centerSpringX.current.value,this._oldCenterY=this.centerSpringY.current.value,this._oldZoom=this.zoomSpring.current.value,this._oldDegrees=this.degreesSpring.current.value,this._setContentBounds(new e.Rect(0,0,1,1),1),this.goHome(!0),this.update()},e.Viewport.prototype={get degrees(){return e.console.warn("Accessing [Viewport.degrees] is deprecated. Use viewport.getRotation instead."),this.getRotation()},set degrees(t){e.console.warn("Setting [Viewport.degrees] is deprecated. Use viewport.rotateTo, viewport.rotateBy, or viewport.setRotation instead."),this.rotateTo(t)},resetContentSize:function(t){return e.console.assert(t,"[Viewport.resetContentSize] contentSize is required"),e.console.assert(t instanceof e.Point,"[Viewport.resetContentSize] contentSize must be an OpenSeadragon.Point"),e.console.assert(t.x>0,"[Viewport.resetContentSize] contentSize.x must be greater than 0"),e.console.assert(t.y>0,"[Viewport.resetContentSize] contentSize.y must be greater than 0"),this._setContentBounds(new e.Rect(0,0,1,t.y/t.x),t.x),this},setHomeBounds:function(t,n){e.console.error("[Viewport.setHomeBounds] this function is deprecated; The content bounds should not be set manually."),this._setContentBounds(t,n)},_setContentBounds:function(t,n){e.console.assert(t,"[Viewport._setContentBounds] bounds is required"),e.console.assert(t instanceof e.Rect,"[Viewport._setContentBounds] bounds must be an OpenSeadragon.Rect"),e.console.assert(t.width>0,"[Viewport._setContentBounds] bounds.width must be greater than 0"),e.console.assert(t.height>0,"[Viewport._setContentBounds] bounds.height must be greater than 0"),this._contentBoundsNoRotate=t.clone(),this._contentSizeNoRotate=this._contentBoundsNoRotate.getSize().times(n),this._contentBounds=t.rotate(this.getRotation()).getBoundingBox(),this._contentSize=this._contentBounds.getSize().times(n),this._contentAspectRatio=this._contentSize.x/this._contentSize.y,this.viewer&&this.viewer.raiseEvent("reset-size",{contentSize:this._contentSizeNoRotate.clone(),contentFactor:n,homeBounds:this._contentBoundsNoRotate.clone(),contentBounds:this._contentBounds.clone()})},getHomeZoom:function(){if(this.defaultZoomLevel)return this.defaultZoomLevel;var e=this._contentAspectRatio/this.getAspectRatio();return(this.homeFillsViewer?e>=1?e:1:e>=1?1:e)/this._contentBounds.width},getHomeBounds:function(){return this.getHomeBoundsNoRotate().rotate(-this.getRotation())},getHomeBoundsNoRotate:function(){var t=this._contentBounds.getCenter(),n=1/this.getHomeZoom(),i=n/this.getAspectRatio();return new e.Rect(t.x-n/2,t.y-i/2,n,i)},goHome:function(e){return this.viewer&&this.viewer.raiseEvent("home",{immediately:e}),this.fitBounds(this.getHomeBounds(),e)},getMinZoom:function(){var e=this.getHomeZoom();return this.minZoomLevel?this.minZoomLevel:this.minZoomImageRatio*e},getMaxZoom:function(){var e=this.maxZoomLevel;return e||(e=this._contentSize.x*this.maxZoomPixelRatio/this._containerInnerSize.x,e/=this._contentBounds.width),Math.max(e,this.getHomeZoom())},getAspectRatio:function(){return this._containerInnerSize.x/this._containerInnerSize.y},getContainerSize:function(){return new e.Point(this.containerSize.x,this.containerSize.y)},getMargins:function(){return e.extend({},this._margins)},setMargins:function(t){e.console.assert("object"===e.type(t),"[Viewport.setMargins] margins must be an object"),this._margins=e.extend({left:0,top:0,right:0,bottom:0},t),this._updateContainerInnerSize(),this.viewer&&this.viewer.forceRedraw()},getBounds:function(e){return this.getBoundsNoRotate(e).rotate(-this.getRotation(e))},getBoundsNoRotate:function(t){var n=this.getCenter(t),i=1/this.getZoom(t),r=i/this.getAspectRatio();return new e.Rect(n.x-i/2,n.y-r/2,i,r)},getBoundsWithMargins:function(e){return this.getBoundsNoRotateWithMargins(e).rotate(-this.getRotation(e),this.getCenter(e))},getBoundsNoRotateWithMargins:function(e){var t=this.getBoundsNoRotate(e),n=this._containerInnerSize.x*this.getZoom(e);return t.x-=this._margins.left/n,t.y-=this._margins.top/n,t.width+=(this._margins.left+this._margins.right)/n,t.height+=(this._margins.top+this._margins.bottom)/n,t},getCenter:function(t){var n,i,r,o,a,s,l=new e.Point(this.centerSpringX.current.value,this.centerSpringY.current.value),c=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return t?l:this.zoomPoint?(n=this.pixelFromPoint(this.zoomPoint,!0),o=(r=1/(i=this.getZoom()))/this.getAspectRatio(),a=new e.Rect(l.x-r/2,l.y-o/2,r,o),s=this._pixelFromPoint(this.zoomPoint,a).minus(n).rotate(-this.getRotation(!0)).divide(this._containerInnerSize.x*i),c.plus(s)):c},getZoom:function(e){return e?this.zoomSpring.current.value:this.zoomSpring.target.value},_applyZoomConstraints:function(e){return Math.max(Math.min(e,this.getMaxZoom()),this.getMinZoom())},_applyBoundaryConstraints:function(e){var t=this.viewportToViewerElementRectangle(e).getBoundingBox(),n=this.viewportToViewerElementRectangle(this._contentBoundsNoRotate).getBoundingBox(),i=!1,r=!1;if(this.wrapHorizontal);else{var o,a,s,l=t.x+t.width,c=n.x+n.width;o=t.width>n.width?this.visibilityRatio*n.width:this.visibilityRatio*t.width,a=n.x-l+o,s=c-t.x-o,o>n.width?(t.x+=(a+s)/2,i=!0):s<0?(t.x+=s,i=!0):a>0&&(t.x+=a,i=!0)}if(this.wrapVertical);else{var u,d,p,h=t.y+t.height,f=n.y+n.height;u=t.height>n.height?this.visibilityRatio*n.height:this.visibilityRatio*t.height,d=n.y-h+u,p=f-t.y-u,u>n.height?(t.y+=(d+p)/2,r=!0):p<0?(t.y+=p,r=!0):d>0&&(t.y+=d,r=!0)}var m=i||r,g=m?this.viewerElementToViewportRectangle(t):e.clone();return g.xConstrained=i,g.yConstrained=r,g.constraintApplied=m,g},_raiseConstraintsEvent:function(e){this.viewer&&this.viewer.raiseEvent("constrain",{immediately:e})},applyConstraints:function(e){var t=this.getZoom(),n=this._applyZoomConstraints(t);t!==n&&this.zoomTo(n,this.zoomPoint,e);var i=this.getConstrainedBounds(!1);return i.constraintApplied&&(this.fitBounds(i,e),this._raiseConstraintsEvent(e)),this},ensureVisible:function(e){return this.applyConstraints(e)},_fitBounds:function(t,n){var i=(n=n||{}).immediately||!1,r=n.constraints||!1,o=this.getAspectRatio(),a=t.getCenter(),s=new e.Rect(t.x,t.y,t.width,t.height,t.degrees+this.getRotation()).getBoundingBox();s.getAspectRatio()>=o?s.height=s.width/o:s.width=s.height*o,s.x=a.x-s.width/2,s.y=a.y-s.height/2;var l=1/s.width;if(i)return this.panTo(a,!0),this.zoomTo(l,null,!0),r&&this.applyConstraints(!0),this;var c=this.getCenter(!0),u=this.getZoom(!0);this.panTo(c,!0),this.zoomTo(u,null,!0);var d=this.getBounds(),p=this.getZoom();if(0===p||Math.abs(l/p-1)<1e-8)return this.zoomTo(l,null,!0),this.panTo(a,i),r&&this.applyConstraints(!1),this;if(r){this.panTo(a,!1),this.zoomTo(l,null,!1);var h=this.getConstrainedBounds();this.panTo(c,!0),this.zoomTo(u,null,!0),this.fitBounds(h)}else{var f=s.rotate(-this.getRotation()).getTopLeft().times(l).minus(d.getTopLeft().times(p)).divide(l-p);this.zoomTo(l,f,i)}return this},fitBounds:function(e,t){return this._fitBounds(e,{immediately:t,constraints:!1})},fitBoundsWithConstraints:function(e,t){return this._fitBounds(e,{immediately:t,constraints:!0})},fitVertically:function(t){var n=new e.Rect(this._contentBounds.x+this._contentBounds.width/2,this._contentBounds.y,0,this._contentBounds.height);return this.fitBounds(n,t)},fitHorizontally:function(t){var n=new e.Rect(this._contentBounds.x,this._contentBounds.y+this._contentBounds.height/2,this._contentBounds.width,0);return this.fitBounds(n,t)},getConstrainedBounds:function(e){var t;return t=this.getBounds(e),this._applyBoundaryConstraints(t)},panBy:function(t,n){var i=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return this.panTo(i.plus(t),n)},panTo:function(e,t){return t?(this.centerSpringX.resetTo(e.x),this.centerSpringY.resetTo(e.y)):(this.centerSpringX.springTo(e.x),this.centerSpringY.springTo(e.y)),this.viewer&&this.viewer.raiseEvent("pan",{center:e,immediately:t}),this},zoomBy:function(e,t,n){return this.zoomTo(this.zoomSpring.target.value*e,t,n)},zoomTo:function(t,n,i){var r=this;return this.zoomPoint=n instanceof e.Point&&!isNaN(n.x)&&!isNaN(n.y)?n:null,i?this._adjustCenterSpringsForZoomPoint((function(){r.zoomSpring.resetTo(t)})):this.zoomSpring.springTo(t),this.viewer&&this.viewer.raiseEvent("zoom",{zoom:t,refPoint:n,immediately:i}),this},setRotation:function(e,t){return this.rotateTo(e,null,t)},getRotation:function(e){return e?this.degreesSpring.current.value:this.degreesSpring.target.value},setRotationWithPivot:function(e,t,n){return this.rotateTo(e,t,n)},rotateTo:function(t,n,i){if(!this.viewer||!this.viewer.drawer.canRotate())return this;if(this.degreesSpring.target.value===t&&this.degreesSpring.isAtTargetValue())return this;if(this.rotationPivot=n instanceof e.Point&&!isNaN(n.x)&&!isNaN(n.y)?n:null,i)if(this.rotationPivot){if(!(t-this._oldDegrees))return this.rotationPivot=null,this;this._rotateAboutPivot(t)}else this.degreesSpring.resetTo(t);else{var r=e.positiveModulo(this.degreesSpring.current.value,360),o=e.positiveModulo(t,360),a=o-r;a>180?o-=360:a<-180&&(o+=360);var s=r-o;this.degreesSpring.resetTo(t+s),this.degreesSpring.springTo(t)}return this._setContentBounds(this.viewer.world.getHomeBounds(),this.viewer.world.getContentFactor()),this.viewer.forceRedraw(),this.viewer.raiseEvent("rotate",{degrees:t,immediately:!!i,pivot:this.rotationPivot||this.getCenter()}),this},rotateBy:function(e,t,n){return this.rotateTo(this.degreesSpring.target.value+e,t,n)},resize:function(e,t){var n,i=this.getBoundsNoRotate(),r=i;return this.containerSize.x=e.x,this.containerSize.y=e.y,this._updateContainerInnerSize(),t&&(n=e.x/this.containerSize.x,r.width=i.width*n,r.height=r.width/this.getAspectRatio()),this.viewer&&this.viewer.raiseEvent("resize",{newContainerSize:e,maintain:t}),this.fitBounds(r,!0)},_updateContainerInnerSize:function(){this._containerInnerSize=new e.Point(Math.max(1,this.containerSize.x-(this._margins.left+this._margins.right)),Math.max(1,this.containerSize.y-(this._margins.top+this._margins.bottom)))},update:function(){var e=this;this._adjustCenterSpringsForZoomPoint((function(){e.zoomSpring.update()})),this.degreesSpring.isAtTargetValue()&&(this.rotationPivot=null),this.centerSpringX.update(),this.centerSpringY.update(),this.rotationPivot?this._rotateAboutPivot(!0):this.degreesSpring.update();var t=this.centerSpringX.current.value!==this._oldCenterX||this.centerSpringY.current.value!==this._oldCenterY||this.zoomSpring.current.value!==this._oldZoom||this.degreesSpring.current.value!==this._oldDegrees;return this._oldCenterX=this.centerSpringX.current.value,this._oldCenterY=this.centerSpringY.current.value,this._oldZoom=this.zoomSpring.current.value,this._oldDegrees=this.degreesSpring.current.value,t},_rotateAboutPivot:function(e){var t=!0===e,n=this.rotationPivot.minus(this.getCenter());this.centerSpringX.shiftBy(n.x),this.centerSpringY.shiftBy(n.y),t?this.degreesSpring.update():this.degreesSpring.resetTo(e);var i=this.degreesSpring.current.value-this._oldDegrees,r=n.rotate(-1*i).times(-1);this.centerSpringX.shiftBy(r.x),this.centerSpringY.shiftBy(r.y)},_adjustCenterSpringsForZoomPoint:function(e){if(this.zoomPoint){var t=this.pixelFromPoint(this.zoomPoint,!0);e();var n=this.pixelFromPoint(this.zoomPoint,!0).minus(t),i=this.deltaPointsFromPixels(n,!0);this.centerSpringX.shiftBy(i.x),this.centerSpringY.shiftBy(i.y),this.zoomSpring.isAtTargetValue()&&(this.zoomPoint=null)}else e()},deltaPixelsFromPointsNoRotate:function(e,t){return e.times(this._containerInnerSize.x*this.getZoom(t))},deltaPixelsFromPoints:function(e,t){return this.deltaPixelsFromPointsNoRotate(e.rotate(this.getRotation(t)),t)},deltaPointsFromPixelsNoRotate:function(e,t){return e.divide(this._containerInnerSize.x*this.getZoom(t))},deltaPointsFromPixels:function(e,t){return this.deltaPointsFromPixelsNoRotate(e,t).rotate(-this.getRotation(t))},pixelFromPointNoRotate:function(e,t){return this._pixelFromPointNoRotate(e,this.getBoundsNoRotate(t))},pixelFromPoint:function(e,t){return this._pixelFromPoint(e,this.getBoundsNoRotate(t))},_pixelFromPointNoRotate:function(t,n){return t.minus(n.getTopLeft()).times(this._containerInnerSize.x/n.width).plus(new e.Point(this._margins.left,this._margins.top))},_pixelFromPoint:function(e,t){return this._pixelFromPointNoRotate(e.rotate(this.getRotation(!0),this.getCenter(!0)),t)},pointFromPixelNoRotate:function(t,n){var i=this.getBoundsNoRotate(n);return t.minus(new e.Point(this._margins.left,this._margins.top)).divide(this._containerInnerSize.x/i.width).plus(i.getTopLeft())},pointFromPixel:function(e,t){return this.pointFromPixelNoRotate(e,t).rotate(-this.getRotation(t),this.getCenter(t))},_viewportToImageDelta:function(t,n){var i=this._contentBoundsNoRotate.width;return new e.Point(t*this._contentSizeNoRotate.x/i,n*this._contentSizeNoRotate.x/i)},viewportToImageCoordinates:function(t,n){if(t instanceof e.Point)return this.viewportToImageCoordinates(t.x,t.y);if(this.viewer){var i=this.viewer.world.getItemCount();if(i>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.viewportToImageCoordinates] is not accurate with multi-image; use TiledImage.viewportToImageCoordinates instead.");else if(1===i){return this.viewer.world.getItemAt(0).viewportToImageCoordinates(t,n,!0)}}return this._viewportToImageDelta(t-this._contentBoundsNoRotate.x,n-this._contentBoundsNoRotate.y)},_imageToViewportDelta:function(t,n){var i=this._contentBoundsNoRotate.width;return new e.Point(t/this._contentSizeNoRotate.x*i,n/this._contentSizeNoRotate.x*i)},imageToViewportCoordinates:function(t,n){if(t instanceof e.Point)return this.imageToViewportCoordinates(t.x,t.y);if(this.viewer){var i=this.viewer.world.getItemCount();if(i>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.imageToViewportCoordinates] is not accurate with multi-image; use TiledImage.imageToViewportCoordinates instead.");else if(1===i){return this.viewer.world.getItemAt(0).imageToViewportCoordinates(t,n,!0)}}var r=this._imageToViewportDelta(t,n);return r.x+=this._contentBoundsNoRotate.x,r.y+=this._contentBoundsNoRotate.y,r},imageToViewportRectangle:function(t,n,i,r){var o=t;if(o instanceof e.Rect||(o=new e.Rect(t,n,i,r)),this.viewer){var a=this.viewer.world.getItemCount();if(a>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.imageToViewportRectangle] is not accurate with multi-image; use TiledImage.imageToViewportRectangle instead.");else if(1===a){return this.viewer.world.getItemAt(0).imageToViewportRectangle(t,n,i,r,!0)}}var s=this.imageToViewportCoordinates(o.x,o.y),l=this._imageToViewportDelta(o.width,o.height);return new e.Rect(s.x,s.y,l.x,l.y,o.degrees)},viewportToImageRectangle:function(t,n,i,r){var o=t;if(o instanceof e.Rect||(o=new e.Rect(t,n,i,r)),this.viewer){var a=this.viewer.world.getItemCount();if(a>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.viewportToImageRectangle] is not accurate with multi-image; use TiledImage.viewportToImageRectangle instead.");else if(1===a){return this.viewer.world.getItemAt(0).viewportToImageRectangle(t,n,i,r,!0)}}var s=this.viewportToImageCoordinates(o.x,o.y),l=this._viewportToImageDelta(o.width,o.height);return new e.Rect(s.x,s.y,l.x,l.y,o.degrees)},viewerElementToImageCoordinates:function(e){var t=this.pointFromPixel(e,!0);return this.viewportToImageCoordinates(t)},imageToViewerElementCoordinates:function(e){var t=this.imageToViewportCoordinates(e);return this.pixelFromPoint(t,!0)},windowToImageCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.windowToImageCoordinates] the viewport must have a viewer.");var n=t.minus(e.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(n)},imageToWindowCoordinates:function(t){return e.console.assert(this.viewer,"[Viewport.imageToWindowCoordinates] the viewport must have a viewer."),this.imageToViewerElementCoordinates(t).plus(e.getElementPosition(this.viewer.element))},viewerElementToViewportCoordinates:function(e){return this.pointFromPixel(e,!0)},viewportToViewerElementCoordinates:function(e){return this.pixelFromPoint(e,!0)},viewerElementToViewportRectangle:function(t){return e.Rect.fromSummits(this.pointFromPixel(t.getTopLeft(),!0),this.pointFromPixel(t.getTopRight(),!0),this.pointFromPixel(t.getBottomLeft(),!0))},viewportToViewerElementRectangle:function(t){return e.Rect.fromSummits(this.pixelFromPoint(t.getTopLeft(),!0),this.pixelFromPoint(t.getTopRight(),!0),this.pixelFromPoint(t.getBottomLeft(),!0))},windowToViewportCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.windowToViewportCoordinates] the viewport must have a viewer.");var n=t.minus(e.getElementPosition(this.viewer.element));return this.viewerElementToViewportCoordinates(n)},viewportToWindowCoordinates:function(t){return e.console.assert(this.viewer,"[Viewport.viewportToWindowCoordinates] the viewport must have a viewer."),this.viewportToViewerElementCoordinates(t).plus(e.getElementPosition(this.viewer.element))},viewportToImageZoom:function(t){if(this.viewer){var n=this.viewer.world.getItemCount();if(n>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.viewportToImageZoom] is not accurate with multi-image.");else if(1===n){return this.viewer.world.getItemAt(0).viewportToImageZoom(t)}}var i=this._contentSizeNoRotate.x;return t*(this._containerInnerSize.x/i*this._contentBoundsNoRotate.width)},imageToViewportZoom:function(t){if(this.viewer){var n=this.viewer.world.getItemCount();if(n>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.imageToViewportZoom] is not accurate with multi-image.");else if(1===n){return this.viewer.world.getItemAt(0).imageToViewportZoom(t)}}return t*(this._contentSizeNoRotate.x/this._containerInnerSize.x/this._contentBoundsNoRotate.width)},toggleFlip:function(){return this.setFlip(!this.getFlip()),this},getFlip:function(){return this.flipped},setFlip:function(e){return this.flipped===e||(this.flipped=e,this.viewer.navigator&&this.viewer.navigator.setFlip(this.getFlip()),this.viewer.forceRedraw(),this.viewer.raiseEvent("flip",{flipped:e})),this}}}(s),function(e){e.TiledImage=function(t){var n=this;e.console.assert(t.tileCache,"[TiledImage] options.tileCache is required"),e.console.assert(t.drawer,"[TiledImage] options.drawer is required"),e.console.assert(t.viewer,"[TiledImage] options.viewer is required"),e.console.assert(t.imageLoader,"[TiledImage] options.imageLoader is required"),e.console.assert(t.source,"[TiledImage] options.source is required"),e.console.assert(!t.clip||t.clip instanceof e.Rect,"[TiledImage] options.clip must be an OpenSeadragon.Rect if present"),e.EventSource.call(this),this._tileCache=t.tileCache,delete t.tileCache,this._drawer=t.drawer,delete t.drawer,this._imageLoader=t.imageLoader,delete t.imageLoader,t.clip instanceof e.Rect&&(this._clip=t.clip.clone()),delete t.clip;var i=t.x||0;delete t.x;var r=t.y||0;delete t.y,this.normHeight=t.source.dimensions.y/t.source.dimensions.x,this.contentAspectX=t.source.dimensions.x/t.source.dimensions.y;var o=1;t.width?(o=t.width,delete t.width,t.height&&(e.console.error("specifying both width and height to a tiledImage is not supported"),delete t.height)):t.height&&(o=t.height/this.normHeight,delete t.height);var a=t.fitBounds;delete t.fitBounds;var l=t.fitBoundsPlacement||s.Placement.CENTER;delete t.fitBoundsPlacement;var c=t.degrees||0;delete t.degrees,e.extend(!0,this,{viewer:null,tilesMatrix:{},coverage:{},loadingCoverage:{},lastDrawn:[],lastResetTime:0,_midDraw:!1,_needsDraw:!0,_hasOpaqueTile:!1,_tilesLoading:0,springStiffness:e.DEFAULT_SETTINGS.springStiffness,animationTime:e.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:e.DEFAULT_SETTINGS.minZoomImageRatio,wrapHorizontal:e.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:e.DEFAULT_SETTINGS.wrapVertical,immediateRender:e.DEFAULT_SETTINGS.immediateRender,blendTime:e.DEFAULT_SETTINGS.blendTime,alwaysBlend:e.DEFAULT_SETTINGS.alwaysBlend,minPixelRatio:e.DEFAULT_SETTINGS.minPixelRatio,smoothTileEdgesMinZoom:e.DEFAULT_SETTINGS.smoothTileEdgesMinZoom,iOSDevice:e.DEFAULT_SETTINGS.iOSDevice,debugMode:e.DEFAULT_SETTINGS.debugMode,crossOriginPolicy:e.DEFAULT_SETTINGS.crossOriginPolicy,ajaxWithCredentials:e.DEFAULT_SETTINGS.ajaxWithCredentials,placeholderFillStyle:e.DEFAULT_SETTINGS.placeholderFillStyle,opacity:e.DEFAULT_SETTINGS.opacity,preload:e.DEFAULT_SETTINGS.preload,compositeOperation:e.DEFAULT_SETTINGS.compositeOperation,subPixelRoundingForTransparency:e.DEFAULT_SETTINGS.subPixelRoundingForTransparency},t),this._preload=this.preload,delete this.preload,this._fullyLoaded=!1,this._xSpring=new e.Spring({initial:i,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._ySpring=new e.Spring({initial:r,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._scaleSpring=new e.Spring({initial:o,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._degreesSpring=new e.Spring({initial:c,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._updateForScale(),a&&this.fitBounds(a,l,!0),this._drawingHandler=function(t){n.viewer.raiseEvent("tile-drawing",e.extend({tiledImage:n},t))}},e.extend(e.TiledImage.prototype,e.EventSource.prototype,{needsDraw:function(){return this._needsDraw},getFullyLoaded:function(){return this._fullyLoaded},_setFullyLoaded:function(e){e!==this._fullyLoaded&&(this._fullyLoaded=e,this.raiseEvent("fully-loaded-change",{fullyLoaded:this._fullyLoaded}))},reset:function(){this._tileCache.clearTilesFor(this),this.lastResetTime=e.now(),this._needsDraw=!0},update:function(){var e=this._xSpring.update(),t=this._ySpring.update(),n=this._scaleSpring.update(),i=this._degreesSpring.update();return!!(e||t||n||i)&&(this._updateForScale(),this._needsDraw=!0,!0)},draw:function(){0!==this.opacity||this._preload?(this._midDraw=!0,this._updateViewport(),this._midDraw=!1):this._needsDraw=!1},destroy:function(){this.reset(),this.source.destroy&&this.source.destroy()},getBounds:function(e){return this.getBoundsNoRotate(e).rotate(this.getRotation(e),this._getRotationPoint(e))},getBoundsNoRotate:function(t){return t?new e.Rect(this._xSpring.current.value,this._ySpring.current.value,this._worldWidthCurrent,this._worldHeightCurrent):new e.Rect(this._xSpring.target.value,this._ySpring.target.value,this._worldWidthTarget,this._worldHeightTarget)},getWorldBounds:function(){return e.console.error("[TiledImage.getWorldBounds] is deprecated; use TiledImage.getBounds instead"),this.getBounds()},getClippedBounds:function(t){var n=this.getBoundsNoRotate(t);if(this._clip){var i=(t?this._worldWidthCurrent:this._worldWidthTarget)/this.source.dimensions.x,r=this._clip.times(i);n=new e.Rect(n.x+r.x,n.y+r.y,r.width,r.height)}return n.rotate(this.getRotation(t),this._getRotationPoint(t))},getTileBounds:function(e,t,n){var i=this.source.getNumTiles(e),r=(i.x+t%i.x)%i.x,o=(i.y+n%i.y)%i.y,a=this.source.getTileBounds(e,r,o);return this.getFlip()&&(a.x=1-a.x-a.width),a.x+=(t-r)/i.x,a.y+=this._worldHeightCurrent/this._worldWidthCurrent*((n-o)/i.y),a},getContentSize:function(){return new e.Point(this.source.dimensions.x,this.source.dimensions.y)},getSizeInWindowCoordinates:function(){var t=this.imageToWindowCoordinates(new e.Point(0,0)),n=this.imageToWindowCoordinates(this.getContentSize());return new e.Point(n.x-t.x,n.y-t.y)},_viewportToImageDelta:function(t,n,i){var r=i?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t*(this.source.dimensions.x/r),n*(this.source.dimensions.y*this.contentAspectX/r))},viewportToImageCoordinates:function(t,n,i){var r;return t instanceof e.Point?(i=n,r=t):r=new e.Point(t,n),r=r.rotate(-this.getRotation(i),this._getRotationPoint(i)),i?this._viewportToImageDelta(r.x-this._xSpring.current.value,r.y-this._ySpring.current.value):this._viewportToImageDelta(r.x-this._xSpring.target.value,r.y-this._ySpring.target.value)},_imageToViewportDelta:function(t,n,i){var r=i?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t/this.source.dimensions.x*r,n/this.source.dimensions.y/this.contentAspectX*r)},imageToViewportCoordinates:function(t,n,i){t instanceof e.Point&&(i=n,n=t.y,t=t.x);var r=this._imageToViewportDelta(t,n);return i?(r.x+=this._xSpring.current.value,r.y+=this._ySpring.current.value):(r.x+=this._xSpring.target.value,r.y+=this._ySpring.target.value),r.rotate(this.getRotation(i),this._getRotationPoint(i))},imageToViewportRectangle:function(t,n,i,r,o){var a=t;a instanceof e.Rect?o=n:a=new e.Rect(t,n,i,r);var s=this.imageToViewportCoordinates(a.getTopLeft(),o),l=this._imageToViewportDelta(a.width,a.height,o);return new e.Rect(s.x,s.y,l.x,l.y,a.degrees+this.getRotation(o))},viewportToImageRectangle:function(t,n,i,r,o){var a=t;t instanceof e.Rect?o=n:a=new e.Rect(t,n,i,r);var s=this.viewportToImageCoordinates(a.getTopLeft(),o),l=this._viewportToImageDelta(a.width,a.height,o);return new e.Rect(s.x,s.y,l.x,l.y,a.degrees-this.getRotation(o))},viewerElementToImageCoordinates:function(e){var t=this.viewport.pointFromPixel(e,!0);return this.viewportToImageCoordinates(t)},imageToViewerElementCoordinates:function(e){var t=this.imageToViewportCoordinates(e);return this.viewport.pixelFromPoint(t,!0)},windowToImageCoordinates:function(e){var t=e.minus(s.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(t)},imageToWindowCoordinates:function(e){return this.imageToViewerElementCoordinates(e).plus(s.getElementPosition(this.viewer.element))},_viewportToTiledImageRectangle:function(t){var n=this._scaleSpring.current.value;return t=t.rotate(-this.getRotation(!0),this._getRotationPoint(!0)),new e.Rect((t.x-this._xSpring.current.value)/n,(t.y-this._ySpring.current.value)/n,t.width/n,t.height/n,t.degrees)},viewportToImageZoom:function(e){return this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x*e},imageToViewportZoom:function(e){return e/(this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x)},setPosition:function(e,t){var n=this._xSpring.target.value===e.x&&this._ySpring.target.value===e.y;if(t){if(n&&this._xSpring.current.value===e.x&&this._ySpring.current.value===e.y)return;this._xSpring.resetTo(e.x),this._ySpring.resetTo(e.y),this._needsDraw=!0}else{if(n)return;this._xSpring.springTo(e.x),this._ySpring.springTo(e.y),this._needsDraw=!0}n||this._raiseBoundsChange()},setWidth:function(e,t){this._setScale(e,t)},setHeight:function(e,t){this._setScale(e/this.normHeight,t)},setCroppingPolygons:function(t){var n=function(t){return t.map((function(t){try{if(function(t){return t instanceof e.Point||"number"==typeof t.x&&"number"==typeof t.y}(t))return{x:t.x,y:t.y};throw new Error}catch(e){throw new Error("A Provided cropping polygon point is not supported")}}))};try{if(!e.isArray(t))throw new Error("Provided cropping polygon is not an array");this._croppingPolygons=t.map((function(e){return n(e)}))}catch(t){e.console.error("[TiledImage.setCroppingPolygons] Cropping polygon format not supported"),e.console.error(t),this._croppingPolygons=null}},resetCroppingPolygons:function(){this._croppingPolygons=null},fitBounds:function(t,n,i){n=n||e.Placement.CENTER;var r=e.Placement.properties[n],o=this.contentAspectX,a=0,s=0,l=1,c=1;if(this._clip&&(o=this._clip.getAspectRatio(),l=this._clip.width/this.source.dimensions.x,c=this._clip.height/this.source.dimensions.y,t.getAspectRatio()>o?(a=this._clip.x/this._clip.height*t.height,s=this._clip.y/this._clip.height*t.height):(a=this._clip.x/this._clip.width*t.width,s=this._clip.y/this._clip.width*t.width)),t.getAspectRatio()>o){var u=t.height/c,d=0;r.isHorizontallyCentered?d=(t.width-t.height*o)/2:r.isRight&&(d=t.width-t.height*o),this.setPosition(new e.Point(t.x-a+d,t.y-s),i),this.setHeight(u,i)}else{var p=t.width/l,h=0;r.isVerticallyCentered?h=(t.height-t.width/o)/2:r.isBottom&&(h=t.height-t.width/o),this.setPosition(new e.Point(t.x-a,t.y-s+h),i),this.setWidth(p,i)}},getClip:function(){return this._clip?this._clip.clone():null},setClip:function(t){e.console.assert(!t||t instanceof e.Rect,"[TiledImage.setClip] newClip must be an OpenSeadragon.Rect or null"),t instanceof e.Rect?this._clip=t.clone():this._clip=null,this._needsDraw=!0,this.raiseEvent("clip-change")},getFlip:function(){return!!this.flipped},setFlip:function(e){this.flipped=!!e,this._needsDraw=!0,this._raiseBoundsChange()},getOpacity:function(){return this.opacity},setOpacity:function(e){e!==this.opacity&&(this.opacity=e,this._needsDraw=!0,this.raiseEvent("opacity-change",{opacity:this.opacity}))},getPreload:function(){return this._preload},setPreload:function(e){this._preload=!!e,this._needsDraw=!0},getRotation:function(e){return e?this._degreesSpring.current.value:this._degreesSpring.target.value},setRotation:function(e,t){this._degreesSpring.target.value===e&&this._degreesSpring.isAtTargetValue()||(t?this._degreesSpring.resetTo(e):this._degreesSpring.springTo(e),this._needsDraw=!0,this._raiseBoundsChange())},_getRotationPoint:function(e){return this.getBoundsNoRotate(e).getCenter()},getCompositeOperation:function(){return this.compositeOperation},setCompositeOperation:function(e){e!==this.compositeOperation&&(this.compositeOperation=e,this._needsDraw=!0,this.raiseEvent("composite-operation-change",{compositeOperation:this.compositeOperation}))},_setScale:function(e,t){var n=this._scaleSpring.target.value===e;if(t){if(n&&this._scaleSpring.current.value===e)return;this._scaleSpring.resetTo(e),this._updateForScale(),this._needsDraw=!0}else{if(n)return;this._scaleSpring.springTo(e),this._updateForScale(),this._needsDraw=!0}n||this._raiseBoundsChange()},_updateForScale:function(){this._worldWidthTarget=this._scaleSpring.target.value,this._worldHeightTarget=this.normHeight*this._scaleSpring.target.value,this._worldWidthCurrent=this._scaleSpring.current.value,this._worldHeightCurrent=this.normHeight*this._scaleSpring.current.value},_raiseBoundsChange:function(){this.raiseEvent("bounds-change")},_isBottomItem:function(){return this.viewer.world.getItemAt(0)===this},_getLevelsInterval:function(){var e=Math.max(this.source.minLevel,Math.floor(Math.log(this.minZoomImageRatio)/Math.log(2))),t=this.viewport.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(0),!0).x*this._scaleSpring.current.value,n=Math.min(Math.abs(this.source.maxLevel),Math.abs(Math.floor(Math.log(t/this.minPixelRatio)/Math.log(2))));return n=Math.max(n,this.source.minLevel||0),{lowestLevel:e=Math.min(e,n),highestLevel:n}},_updateViewport:function(){for(this._needsDraw=!1,this._tilesLoading=0,this.loadingCoverage={};this.lastDrawn.length>0;){this.lastDrawn.pop().beingDrawn=!1}var t=this.viewport,n=this._viewportToTiledImageRectangle(t.getBoundsWithMargins(!0));if(!this.wrapHorizontal&&!this.wrapVertical){var i=this._viewportToTiledImageRectangle(this.getClippedBounds(!0));if(null===(n=n.intersection(i)))return}for(var r=this._getLevelsInterval(),o=r.lowestLevel,a=r.highestLevel,s=null,l=!1,c=e.now(),u=a;u>=o;u--){var d=!1,p=t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(u),!0).x*this._scaleSpring.current.value;if(u===o||!l&&p>=this.minPixelRatio)d=!0,l=!0;else if(!l)continue;var h=t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(u),!1).x*this._scaleSpring.current.value,f=t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(Math.max(this.source.getClosestLevel(),0)),!1).x*this._scaleSpring.current.value,m=this.immediateRender?1:f,g=Math.min(1,(p-.5)/.5),v=m/Math.abs(m-h);if(s=this._updateLevel(l,d,u,g,v,n,c,s),this._providesCoverage(this.coverage,u))break}this._drawTiles(this.lastDrawn),s&&!s.context2D?(this._loadTile(s,c),this._needsDraw=!0,this._setFullyLoaded(!1)):this._setFullyLoaded(0===this._tilesLoading)},_getCornerTiles:function(t,n,i){var r,o,a,s;this.wrapHorizontal?(r=e.positiveModulo(n.x,1),o=e.positiveModulo(i.x,1)):(r=Math.max(0,n.x),o=Math.min(1,i.x));var l=1/this.source.aspectRatio;this.wrapVertical?(a=e.positiveModulo(n.y,l),s=e.positiveModulo(i.y,l)):(a=Math.max(0,n.y),s=Math.min(l,i.y));var c=this.source.getTileAtPoint(t,new e.Point(r,a)),u=this.source.getTileAtPoint(t,new e.Point(o,s)),d=this.source.getNumTiles(t);return this.wrapHorizontal&&(c.x+=d.x*Math.floor(n.x),u.x+=d.x*Math.floor(i.x)),this.wrapVertical&&(c.y+=d.y*Math.floor(n.y/l),u.y+=d.y*Math.floor(i.y/l)),{topLeft:c,bottomRight:u}},_updateLevel:function(e,t,n,i,r,o,a,s){var l=o.getBoundingBox().getTopLeft(),c=o.getBoundingBox().getBottomRight();this.viewer&&this.viewer.raiseEvent("update-level",{tiledImage:this,havedrawn:e,level:n,opacity:i,visibility:r,drawArea:o,topleft:l,bottomright:c,currenttime:a,best:s}),this._resetCoverage(this.coverage,n),this._resetCoverage(this.loadingCoverage,n);var u=this._getCornerTiles(n,l,c),d=u.topLeft,p=u.bottomRight,h=this.source.getNumTiles(n),f=this.viewport.pixelFromPoint(this.viewport.getCenter());this.getFlip()&&(p.x+=1,this.wrapHorizontal||(p.x=Math.min(p.x,h.x-1)));for(var m=d.x;m<=p.x;m++)for(var g=d.y;g<=p.y;g++){var v;if(this.getFlip()){var y=(h.x+m%h.x)%h.x;v=m+h.x-y-y-1}else v=m;null!==o.intersection(this.getTileBounds(n,v,g))&&(s=this._updateTile(t,e,v,g,n,i,r,f,h,a,s))}return s},_updateTile:function(e,t,n,i,r,o,a,s,l,c,u){var d=this._getTile(n,i,r,c,l,this._worldWidthCurrent,this._worldHeightCurrent),p=t;this.viewer&&this.viewer.raiseEvent("update-tile",{tiledImage:this,tile:d}),this._setCoverage(this.coverage,r,n,i,!1);var h=d.loaded||d.loading||this._isCovered(this.loadingCoverage,r,n,i);if(this._setCoverage(this.loadingCoverage,r,n,i,h),!d.exists)return u;if(e&&!p&&(this._isCovered(this.coverage,r,n,i)?this._setCoverage(this.coverage,r,n,i,!0):p=!0),!p)return u;if(this._positionTile(d,this.source.tileOverlap,this.viewport,s,a),!d.loaded)if(d.context2D)this._setTileLoaded(d);else{var f=this._tileCache.getImageRecord(d.cacheKey);f&&this._setTileLoaded(d,f.getData())}d.loaded?this._blendTile(d,n,i,r,o,c)&&(this._needsDraw=!0):d.loading?this._tilesLoading++:h||(u=this._compareTiles(u,d));return u},_getTile:function(t,n,i,r,o,a,s){var l,c,u,d,p,h,f,m,g,v,y=this.tilesMatrix,b=this.source;return y[i]||(y[i]={}),y[i][t]||(y[i][t]={}),y[i][t][n]&&!y[i][t][n].flipped==!this.flipped||(l=(o.x+t%o.x)%o.x,c=(o.y+n%o.y)%o.y,u=this.getTileBounds(i,t,n),d=b.getTileBounds(i,l,c,!0),p=b.tileExists(i,l,c),h=b.getTileUrl(i,l,c),f=b.getTilePostData(i,l,c),this.loadTilesWithAjax?(m=b.getTileAjaxHeaders(i,l,c),e.isPlainObject(this.ajaxHeaders)&&(m=e.extend({},this.ajaxHeaders,m))):m=null,g=b.getContext2D?b.getContext2D(i,l,c):void 0,v=new e.Tile(i,t,n,u,p,h,g,this.loadTilesWithAjax,m,d,f,b.getTileHashKey(i,l,c,h,m,f)),this.getFlip()?0===l&&(v.isRightMost=!0):l===o.x-1&&(v.isRightMost=!0),c===o.y-1&&(v.isBottomMost=!0),v.flipped=this.flipped,y[i][t][n]=v),(v=y[i][t][n]).lastTouchTime=r,v},_loadTile:function(e,t){var n=this;e.loading=!0,this._imageLoader.addJob({src:e.getUrl(),tile:e,source:this.source,postData:e.postData,loadWithAjax:e.loadWithAjax,ajaxHeaders:e.ajaxHeaders,crossOriginPolicy:this.crossOriginPolicy,ajaxWithCredentials:this.ajaxWithCredentials,callback:function(i,r,o){n._onTileLoad(e,t,i,r,o)},abort:function(){e.loading=!1}})},_onTileLoad:function(t,n,i,r,o){if(!i)return e.console.error("Tile %s failed to load: %s - error: %s",t,t.getUrl(),r),this.viewer.raiseEvent("tile-load-failed",{tile:t,tiledImage:this,time:n,message:r,tileRequest:o}),t.loading=!1,void(t.exists=!1);if(n<this.lastResetTime)return e.console.warn("Ignoring tile %s loaded before reset: %s",t,t.getUrl()),void(t.loading=!1);var a=this,s=function(){var e=a.source.getClosestLevel();a._setTileLoaded(t,i,e,o)};this._midDraw?window.setTimeout(s,1):s()},_setTileLoaded:function(t,n,i,r){var o=0,a=this;function s(){return o++,l}function l(){0===--o&&(t.loading=!1,t.loaded=!0,t.hasTransparency=a.source.hasTransparency(t.context2D,t.getUrl(),t.ajaxHeaders,t.postData),t.context2D||a._tileCache.cacheTile({data:n,tile:t,cutoff:i,tiledImage:a}),a._needsDraw=!0)}this.viewer.raiseEvent("tile-loaded",{tile:t,tiledImage:this,tileRequest:r,get image(){return e.console.error("[tile-loaded] event 'image' has been deprecated. Use 'data' property instead."),n},data:n,getCompletionCallback:s}),s()()},_positionTile:function(t,n,i,r,o){var a=t.bounds.getTopLeft();a.x*=this._scaleSpring.current.value,a.y*=this._scaleSpring.current.value,a.x+=this._xSpring.current.value,a.y+=this._ySpring.current.value;var s=t.bounds.getSize();s.x*=this._scaleSpring.current.value,s.y*=this._scaleSpring.current.value;var l=i.pixelFromPointNoRotate(a,!0),c=i.pixelFromPointNoRotate(a,!1),u=i.deltaPixelsFromPointsNoRotate(s,!0),d=i.deltaPixelsFromPointsNoRotate(s,!1),p=c.plus(d.divide(2)),h=r.squaredDistanceTo(p);n||(u=u.plus(new e.Point(1,1))),t.isRightMost&&this.wrapHorizontal&&(u.x+=.75),t.isBottomMost&&this.wrapVertical&&(u.y+=.75),t.position=l,t.size=u,t.squaredDistance=h,t.visibility=o},_blendTile:function(e,t,n,i,r,o){var a,s,l=1e3*this.blendTime;if(e.blendStart||(e.blendStart=o),a=o-e.blendStart,s=l?Math.min(1,a/l):1,this.alwaysBlend&&(s*=r),e.opacity=s,this.lastDrawn.push(e),1===s)this._setCoverage(this.coverage,i,t,n,!0),this._hasOpaqueTile=!0;else if(a<l)return!0;return!1},_compareTiles:function(e,t){return e?t.visibility>e.visibility||t.visibility===e.visibility&&t.squaredDistance<e.squaredDistance?t:e:t},_drawTiles:function(r){if(0!==this.opacity&&(0!==r.length||this.placeholderFillStyle)){var o,a,s,l=r[0];l&&(o=this.opacity<1||this.compositeOperation&&"source-over"!==this.compositeOperation||!this._isBottomItem()&&this.source.hasTransparency(l.context2D,l.getUrl(),l.ajaxHeaders,l.postData));var c,u=this.viewport.getZoom(!0),d=this.viewportToImageZoom(u);r.length>1&&d>this.smoothTileEdgesMinZoom&&!this.iOSDevice&&this.getRotation(!0)%360==0&&e.supportsCanvas&&this.viewer.useCanvas&&(o=!0,a=l.getScaleForEdgeSmoothing(),s=l.getTranslationForEdgeSmoothing(a,this._drawer.getCanvasSize(!1),this._drawer.getCanvasSize(!0))),o&&(a||(c=this.viewport.viewportToViewerElementRectangle(this.getClippedBounds(!0)).getIntegerBoundingBox(),this._drawer.viewer.viewport.getFlip()&&(this.viewport.getRotation(!0)%360==0&&this.getRotation(!0)%360==0||(c.x=this._drawer.viewer.container.clientWidth-(c.x+c.width))),c=c.times(e.pixelDensityRatio)),this._drawer._clear(!0,c)),a||(this.viewport.getRotation(!0)%360!=0&&this._drawer._offsetForRotation({degrees:this.viewport.getRotation(!0),useSketch:o}),this.getRotation(!0)%360!=0&&this._drawer._offsetForRotation({degrees:this.getRotation(!0),point:this.viewport.pixelFromPointNoRotate(this._getRotationPoint(!0),!0),useSketch:o}),this.viewport.getRotation(!0)%360==0&&this.getRotation(!0)%360==0&&this._drawer.viewer.viewport.getFlip()&&this._drawer._flip());var p=!1;if(this._clip){this._drawer.saveContext(o);var h=this.imageToViewportRectangle(this._clip,!0);h=h.rotate(-this.getRotation(!0),this._getRotationPoint(!0));var f=this._drawer.viewportToDrawerRectangle(h);a&&(f=f.times(a)),s&&(f=f.translate(s)),this._drawer.setClip(f,o),p=!0}if(this._croppingPolygons){var m=this;this._drawer.saveContext(o);try{var g=this._croppingPolygons.map((function(e){return e.map((function(e){var t=m.imageToViewportCoordinates(e.x,e.y,!0).rotate(-m.getRotation(!0),m._getRotationPoint(!0)),n=m._drawer.viewportCoordToDrawerCoord(t);return a&&(n=n.times(a)),n}))}));this._drawer.clipWithPolygons(g,o)}catch(t){e.console.error(t)}p=!0}if(this.placeholderFillStyle&&!1===this._hasOpaqueTile){var v=this._drawer.viewportToDrawerRectangle(this.getBounds(!0));a&&(v=v.times(a)),s&&(v=v.translate(s));var y=null;y="function"==typeof this.placeholderFillStyle?this.placeholderFillStyle(this,this._drawer.context):this.placeholderFillStyle,this._drawer.drawRectangle(v,y,o)}var b=function(r){if("number"==typeof r)return i(r);if(!r||!e.Browser)return t;var o=r[e.Browser.vendor];n(o)&&(o=r["*"]);return i(o)}(this.subPixelRoundingForTransparency),w=!1;if(b===e.SUBPIXEL_ROUNDING_OCCURRENCES.ALWAYS)w=!0;else if(b===e.SUBPIXEL_ROUNDING_OCCURRENCES.ONLY_AT_REST){w=!(this.viewer&&this.viewer.isAnimating())}for(var x=r.length-1;x>=0;x--)l=r[x],this._drawer.drawTile(l,this._drawingHandler,o,a,s,w,this.source),l.beingDrawn=!0,this.viewer&&this.viewer.raiseEvent("tile-drawn",{tiledImage:this,tile:l});p&&this._drawer.restoreContext(o),a||(this.getRotation(!0)%360!=0&&this._drawer._restoreRotationChanges(o),this.viewport.getRotation(!0)%360!=0&&this._drawer._restoreRotationChanges(o)),o&&(a&&(this.viewport.getRotation(!0)%360!=0&&this._drawer._offsetForRotation({degrees:this.viewport.getRotation(!0),useSketch:!1}),this.getRotation(!0)%360!=0&&this._drawer._offsetForRotation({degrees:this.getRotation(!0),point:this.viewport.pixelFromPointNoRotate(this._getRotationPoint(!0),!0),useSketch:!1})),this._drawer.blendSketch({opacity:this.opacity,scale:a,translate:s,compositeOperation:this.compositeOperation,bounds:c}),a&&(this.getRotation(!0)%360!=0&&this._drawer._restoreRotationChanges(!1),this.viewport.getRotation(!0)%360!=0&&this._drawer._restoreRotationChanges(!1))),a||this.viewport.getRotation(!0)%360==0&&this.getRotation(!0)%360==0&&this._drawer.viewer.viewport.getFlip()&&this._drawer._flip(),this._drawDebugInfo(r)}},_drawDebugInfo:function(t){if(this.debugMode)for(var n=t.length-1;n>=0;n--){var i=t[n];try{this._drawer.drawDebugInfo(i,t.length,n,this)}catch(t){e.console.error(t)}}},_providesCoverage:function(e,t,n,i){var r,o,a,s;if(!e[t])return!1;if(void 0===n||void 0===i){for(a in r=e[t])if(Object.prototype.hasOwnProperty.call(r,a))for(s in o=r[a])if(Object.prototype.hasOwnProperty.call(o,s)&&!o[s])return!1;return!0}return void 0===e[t][n]||void 0===e[t][n][i]||!0===e[t][n][i]},_isCovered:function(e,t,n,i){return void 0===n||void 0===i?this._providesCoverage(e,t+1):this._providesCoverage(e,t+1,2*n,2*i)&&this._providesCoverage(e,t+1,2*n,2*i+1)&&this._providesCoverage(e,t+1,2*n+1,2*i)&&this._providesCoverage(e,t+1,2*n+1,2*i+1)},_setCoverage:function(t,n,i,r,o){t[n]?(t[n][i]||(t[n][i]={}),t[n][i][r]=o):e.console.warn("Setting coverage for a tile before its level's coverage has been reset: %s",n)},_resetCoverage:function(e,t){e[t]={}}});var t=e.SUBPIXEL_ROUNDING_OCCURRENCES.NEVER;function n(t){return t!==e.SUBPIXEL_ROUNDING_OCCURRENCES.ALWAYS&&t!==e.SUBPIXEL_ROUNDING_OCCURRENCES.ONLY_AT_REST&&t!==e.SUBPIXEL_ROUNDING_OCCURRENCES.NEVER}function i(e){return n(e)?t:e}}(s),function(e){var t=function(t){e.console.assert(t,"[TileCache.cacheTile] options is required"),e.console.assert(t.tile,"[TileCache.cacheTile] options.tile is required"),e.console.assert(t.tiledImage,"[TileCache.cacheTile] options.tiledImage is required"),this.tile=t.tile,this.tiledImage=t.tiledImage},n=function(t){e.console.assert(t,"[ImageRecord] options is required"),e.console.assert(t.data,"[ImageRecord] options.data is required"),this._tiles=[],t.create.apply(null,[this,t.data,t.ownerTile]),this._destroyImplementation=t.destroy.bind(null,this),this.getImage=t.getImage.bind(null,this),this.getData=t.getData.bind(null,this),this.getRenderedContext=t.getRenderedContext.bind(null,this)};n.prototype={destroy:function(){this._destroyImplementation(),this._tiles=null},addTile:function(t){e.console.assert(t,"[ImageRecord.addTile] tile is required"),this._tiles.push(t)},removeTile:function(t){for(var n=0;n<this._tiles.length;n++)if(this._tiles[n]===t)return void this._tiles.splice(n,1);e.console.warn("[ImageRecord.removeTile] trying to remove unknown tile",t)},getTileCount:function(){return this._tiles.length}},e.TileCache=function(t){t=t||{},this._maxImageCacheCount=t.maxImageCacheCount||e.DEFAULT_SETTINGS.maxImageCacheCount,this._tilesLoaded=[],this._imagesLoaded=[],this._imagesLoadedCount=0},e.TileCache.prototype={numTilesLoaded:function(){return this._tilesLoaded.length},cacheTile:function(i){e.console.assert(i,"[TileCache.cacheTile] options is required"),e.console.assert(i.tile,"[TileCache.cacheTile] options.tile is required"),e.console.assert(i.tile.cacheKey,"[TileCache.cacheTile] options.tile.cacheKey is required"),e.console.assert(i.tiledImage,"[TileCache.cacheTile] options.tiledImage is required");var r=i.cutoff||0,o=this._tilesLoaded.length,a=this._imagesLoaded[i.tile.cacheKey];if(a||(i.data||(e.console.error("[TileCache.cacheTile] options.image was renamed to options.data. '.image' attribute has been deprecated and will be removed in the future."),i.data=i.image),e.console.assert(i.data,"[TileCache.cacheTile] options.data is required to create an ImageRecord"),a=this._imagesLoaded[i.tile.cacheKey]=new n({data:i.data,ownerTile:i.tile,create:i.tiledImage.source.createTileCache,destroy:i.tiledImage.source.destroyTileCache,getImage:i.tiledImage.source.getTileCacheDataAsImage,getData:i.tiledImage.source.getTileCacheData,getRenderedContext:i.tiledImage.source.getTileCacheDataAsContext2D}),this._imagesLoadedCount++),a.addTile(i.tile),i.tile.cacheImageRecord=a,this._imagesLoadedCount>this._maxImageCacheCount){for(var s,l,c,u,d,p,h=null,f=-1,m=null,g=this._tilesLoaded.length-1;g>=0;g--)(s=(p=this._tilesLoaded[g]).tile).level<=r||s.beingDrawn||(h?(u=s.lastTouchTime,l=h.lastTouchTime,d=s.level,c=h.level,(u<l||u===l&&d>c)&&(h=s,f=g,m=p)):(h=s,f=g,m=p));h&&f>=0&&(this._unloadTile(m),o=f)}this._tilesLoaded[o]=new t({tile:i.tile,tiledImage:i.tiledImage})},clearTilesFor:function(t){var n;e.console.assert(t,"[TileCache.clearTilesFor] tiledImage is required");for(var i=0;i<this._tilesLoaded.length;++i)(n=this._tilesLoaded[i]).tiledImage===t&&(this._unloadTile(n),this._tilesLoaded.splice(i,1),i--)},getImageRecord:function(t){return e.console.assert(t,"[TileCache.getImageRecord] cacheKey is required"),this._imagesLoaded[t]},_unloadTile:function(t){e.console.assert(t,"[TileCache._unloadTile] tileRecord is required");var n=t.tile,i=t.tiledImage;n.unload(),n.cacheImageRecord=null;var r=this._imagesLoaded[n.cacheKey];r.removeTile(n),r.getTileCount()||(r.destroy(),delete this._imagesLoaded[n.cacheKey],this._imagesLoadedCount--),i.viewer.raiseEvent("tile-unloaded",{tile:n,tiledImage:i})}}}(s),function(e){e.World=function(t){var n=this;e.console.assert(t.viewer,"[World] options.viewer is required"),e.EventSource.call(this),this.viewer=t.viewer,this._items=[],this._needsDraw=!1,this._autoRefigureSizes=!0,this._needsSizesFigured=!1,this._delegatedFigureSizes=function(e){n._autoRefigureSizes?n._figureSizes():n._needsSizesFigured=!0},this._figureSizes()},e.extend(e.World.prototype,e.EventSource.prototype,{addItem:function(t,n){if(e.console.assert(t,"[World.addItem] item is required"),e.console.assert(t instanceof e.TiledImage,"[World.addItem] only TiledImages supported at this time"),void 0!==(n=n||{}).index){var i=Math.max(0,Math.min(this._items.length,n.index));this._items.splice(i,0,t)}else this._items.push(t);this._autoRefigureSizes?this._figureSizes():this._needsSizesFigured=!0,this._needsDraw=!0,t.addHandler("bounds-change",this._delegatedFigureSizes),t.addHandler("clip-change",this._delegatedFigureSizes),this.raiseEvent("add-item",{item:t})},getItemAt:function(t){return e.console.assert(void 0!==t,"[World.getItemAt] index is required"),this._items[t]},getIndexOfItem:function(t){return e.console.assert(t,"[World.getIndexOfItem] item is required"),e.indexOf(this._items,t)},getItemCount:function(){return this._items.length},setItemIndex:function(t,n){e.console.assert(t,"[World.setItemIndex] item is required"),e.console.assert(void 0!==n,"[World.setItemIndex] index is required");var i=this.getIndexOfItem(t);if(n>=this._items.length)throw new Error("Index bigger than number of layers.");n!==i&&-1!==i&&(this._items.splice(i,1),this._items.splice(n,0,t),this._needsDraw=!0,this.raiseEvent("item-index-change",{item:t,previousIndex:i,newIndex:n}))},removeItem:function(t){e.console.assert(t,"[World.removeItem] item is required");var n=e.indexOf(this._items,t);-1!==n&&(t.removeHandler("bounds-change",this._delegatedFigureSizes),t.removeHandler("clip-change",this._delegatedFigureSizes),t.destroy(),this._items.splice(n,1),this._figureSizes(),this._needsDraw=!0,this._raiseRemoveItem(t))},removeAll:function(){var e,t;for(this.viewer._cancelPendingImages(),t=0;t<this._items.length;t++)(e=this._items[t]).removeHandler("bounds-change",this._delegatedFigureSizes),e.removeHandler("clip-change",this._delegatedFigureSizes),e.destroy();var n=this._items;for(this._items=[],this._figureSizes(),this._needsDraw=!0,t=0;t<n.length;t++)e=n[t],this._raiseRemoveItem(e)},resetItems:function(){for(var e=0;e<this._items.length;e++)this._items[e].reset()},update:function(){for(var e=!1,t=0;t<this._items.length;t++)e=this._items[t].update()||e;return e},draw:function(){for(var e=0;e<this._items.length;e++)this._items[e].draw();this._needsDraw=!1},needsDraw:function(){for(var e=0;e<this._items.length;e++)if(this._items[e].needsDraw())return!0;return this._needsDraw},getHomeBounds:function(){return this._homeBounds.clone()},getContentFactor:function(){return this._contentFactor},setAutoRefigureSizes:function(e){this._autoRefigureSizes=e,e&this._needsSizesFigured&&(this._figureSizes(),this._needsSizesFigured=!1)},arrange:function(t){var n,i=(t=t||{}).immediately||!1,r=t.layout||e.DEFAULT_SETTINGS.collectionLayout,o=t.rows||e.DEFAULT_SETTINGS.collectionRows,a=t.columns||e.DEFAULT_SETTINGS.collectionColumns,s=t.tileSize||e.DEFAULT_SETTINGS.collectionTileSize,l=s+(t.tileMargin||e.DEFAULT_SETTINGS.collectionTileMargin);n=!t.rows&&a?a:Math.ceil(this._items.length/o);var c,u,d,p,h,f=0,m=0;this.setAutoRefigureSizes(!1);for(var g=0;g<this._items.length;g++)g&&g%n==0&&("horizontal"===r?(m+=l,f=0):(f+=l,m=0)),p=(d=(u=(c=this._items[g]).getBounds()).width>u.height?s:s*(u.width/u.height))*(u.height/u.width),h=new e.Point(f+(s-d)/2,m+(s-p)/2),c.setPosition(h,i),c.setWidth(d,i),"horizontal"===r?f+=l:m+=l;this.setAutoRefigureSizes(!0)},_figureSizes:function(){var t=this._homeBounds?this._homeBounds.clone():null,n=this._contentSize?this._contentSize.clone():null,i=this._contentFactor||0;if(this._items.length){var r=this._items[0],o=r.getBounds();this._contentFactor=r.getContentSize().x/o.width;for(var a=r.getClippedBounds().getBoundingBox(),s=a.x,l=a.y,c=a.x+a.width,u=a.y+a.height,d=1;d<this._items.length;d++)o=(r=this._items[d]).getBounds(),this._contentFactor=Math.max(this._contentFactor,r.getContentSize().x/o.width),a=r.getClippedBounds().getBoundingBox(),s=Math.min(s,a.x),l=Math.min(l,a.y),c=Math.max(c,a.x+a.width),u=Math.max(u,a.y+a.height);this._homeBounds=new e.Rect(s,l,c-s,u-l),this._contentSize=new e.Point(this._homeBounds.width*this._contentFactor,this._homeBounds.height*this._contentFactor)}else this._homeBounds=new e.Rect(0,0,1,1),this._contentSize=new e.Point(1,1),this._contentFactor=1;this._contentFactor===i&&this._homeBounds.equals(t)&&this._contentSize.equals(n)||this.raiseEvent("metrics-change",{})},_raiseRemoveItem:function(e){this.raiseEvent("remove-item",{item:e})}})}(s)},1245:(e,t,n)=>{"use strict";var i=n(1132);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},6838:(e,t,n)=>{e.exports=n(1245)()},1132:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3562:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(4639),o=s(r),a=s(n(6838));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),i=void 0;if(this.props.useWindow){var r=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:r.scrollTop;i=this.props.isReverse?o:this.calculateOffset(e,o)}else i=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;i<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,i=t.element,r=t.hasMore,a=(t.initialLoad,t.isReverse),s=t.loader,l=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return r&&(s?a?u.unshift(s):u.push(s):this.defaultLoader&&(a?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(i,c,u)}}]),t}(r.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},2857:(e,t,n)=>{e.exports=n(3562)},1100:(e,t)=>{"use strict";var n=60103,i=60106,r=60107,o=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,h=60116,f=60121,m=60122,g=60117,v=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),i=b("react.portal"),r=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),p=b("react.memo"),h=b("react.lazy"),f=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e.type){case r:case a:case o:case u:case d:return e;default:switch(e&&e.$$typeof){case l:case c:case h:case p:case s:return e;default:return t}}case i:return t}}}},8064:(e,t,n)=>{"use strict";n(1100)},6898:(e,t,n)=>{"use strict";function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,n,i,r,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var a={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){a[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=i(e,2),n=t[0],r=t[1];a[n]=new o(n,1,!1,r,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){a[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){a[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){a[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){a[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){a[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){a[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){a[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var s=/[\-\:]([a-z])/g,l=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(s,l);a[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(s,l);a[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(s,l);a[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){a[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)}));a.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){a[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var c=n(4831),u=c.CAMELCASE,d=c.SAME,p=c.possibleStandardNames,h=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),f=Object.keys(p).reduce((function(e,t){var n=p[t];return n===d?e[t]=t:n===u?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return a.hasOwnProperty(e)?a[e]:null},t.isCustomAttribute=h,t.possibleStandardNames=f},4831:(e,t)=>{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},6628:(e,t)=>{"use strict";var n,i=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case o:case s:case a:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case f:case l:return e;default:return t}}case r:return t}}}n=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return v(e)===c}},9388:(e,t,n)=>{"use strict";e.exports=n(6628)},9291:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=a(n(4639)),o=a(n(3039));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){return r.default.createElement("input",this.props,this.props.children)}}]),t}(r.default.Component);t.default=(0,o.default)(s)},819:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=l(n(4639)),a=l(n(6389)),s=l(n(6838));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this,t=i({},this.props);return t.parentBindings&&delete t.parentBindings,o.default.createElement("div",i({},t,{ref:function(t){e.props.parentBindings.domNode=t}}),this.props.children)}}]),t}(o.default.Component);c.propTypes={name:s.default.string,id:s.default.string},t.default=(0,a.default)(c)},740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(4639)),r=o(n(3039));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.render=function(){return i.default.createElement("a",r.props,r.props.children)},a(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default.Component);t.default=(0,r.default)(s)},9451:(e,t,n)=>{"use strict";t.rU=void 0;var i=h(n(740)),r=h(n(9291)),o=h(n(819)),a=h(n(8623)),s=h(n(9072)),l=h(n(3132)),c=h(n(9800)),u=h(n(3039)),d=h(n(6389)),p=h(n(6060));function h(e){return e&&e.__esModule?e:{default:e}}t.rU=i.default,r.default,o.default,a.default,s.default,l.default,c.default,u.default,d.default,p.default,i.default,r.default,o.default,a.default,s.default,l.default,c.default,u.default,d.default,p.default},6060:(e,t,n)=>{"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n(4639),c=(n(1346),n(2166),n(3132)),u=n(8623),d=n(6838),p=n(4134),h={to:d.string.isRequired,containerId:d.string,container:d.object,activeClass:d.string,spy:d.bool,smooth:d.oneOfType([d.bool,d.string]),offset:d.number,delay:d.number,isDynamic:d.bool,onClick:d.func,duration:d.oneOfType([d.number,d.func]),absolute:d.bool,onSetActive:d.func,onSetInactive:d.func,ignoreCancelEvents:d.bool,hashSpy:d.bool,spyThrottle:d.number},f={Scroll:function(e,t){console.warn("Helpers.Scroll is deprecated since v1.7.0");var n=t||u,d=function(t){function u(e){o(this,u);var t=a(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,e));return f.call(t),t.state={active:!1},t}return s(u,t),r(u,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();c.isMounted(e)||c.mount(e,this.props.spyThrottle),this.props.hashSpy&&(p.isMounted()||p.mount(n),p.mapContainer(this.props.to,e)),this.props.spy&&c.addStateHandler(this.stateHandler),c.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){c.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=i({},this.props);for(var r in h)n.hasOwnProperty(r)&&delete n[r];return n.className=t,n.onClick=this.handleClick,l.createElement(e,n)}}]),u}(l.Component),f=function(){var e=this;this.scrollTo=function(t,r){n.scrollTo(t,i({},e.state,r))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.stateHandler=function(){n.getActiveLink()!==e.props.to&&(null!==e.state&&e.state.active&&e.props.onSetInactive&&e.props.onSetInactive(),e.setState({active:!1}))},this.spyHandler=function(t){var i=e.getScrollSpyContainer();if(!p.isMounted()||p.isInitialized()){var r=e.props.to,o=null,a=0,s=0,l=0;if(i.getBoundingClientRect)l=i.getBoundingClientRect().top;if(!o||e.props.isDynamic){if(!(o=n.get(r)))return;var u=o.getBoundingClientRect();s=(a=u.top-l+t)+u.height}var d=t-e.props.offset,h=d>=Math.floor(a)&&d<Math.floor(s),f=d<Math.floor(a)||d>=Math.floor(s),m=n.getActiveLink();return f?(r===m&&n.setActiveLink(void 0),e.props.hashSpy&&p.getHash()===r&&p.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive()),c.updateStates()):h&&m!==r?(n.setActiveLink(r),e.props.hashSpy&&p.changeHash(r),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(r)),c.updateStates()):void 0}}};return d.propTypes=h,d.defaultProps={offset:0},d},Element:function(e){console.warn("Helpers.Element is deprecated since v1.7.0");var t=function(t){function n(e){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return s(n,t),r(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(e){this.props.name!==e.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;u.unregister(this.props.name)}},{key:"registerElems",value:function(e){u.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return l.createElement(e,i({},this.props,{parentBindings:this.childBindings}))}}]),n}(l.Component);return t.propTypes={name:d.string,id:d.string},t}};e.exports=f},9800:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=(s(n(2166)),s(n(5726))),o=s(n(785)),a=s(n(9072));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return r.default[e.smooth]||r.default.defaultEasing},c=function(){if("undefined"!=typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(e,t,n){window.setTimeout(e,n||1e3/60,(new Date).getTime())},u=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollLeft;var n=void 0!==window.pageXOffset,i="CSS1Compat"===(document.compatMode||"");return n?window.pageXOffset:i?document.documentElement.scrollLeft:document.body.scrollLeft},d=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollTop;var n=void 0!==window.pageXOffset,i="CSS1Compat"===(document.compatMode||"");return n?window.pageYOffset:i?document.documentElement.scrollTop:document.body.scrollTop},p=function e(t,n,i){var r=n.data;if(n.ignoreCancelEvents||!r.cancel)if(r.delta=Math.round(r.targetPosition-r.startPosition),null===r.start&&(r.start=i),r.progress=i-r.start,r.percent=r.progress>=r.duration?1:t(r.progress/r.duration),r.currentPosition=r.startPosition+Math.ceil(r.delta*r.percent),r.containerElement&&r.containerElement!==document&&r.containerElement!==document.body?n.horizontal?r.containerElement.scrollLeft=r.currentPosition:r.containerElement.scrollTop=r.currentPosition:n.horizontal?window.scrollTo(r.currentPosition,0):window.scrollTo(0,r.currentPosition),r.percent<1){var o=e.bind(null,t,n);c.call(window,o)}else a.default.registered.end&&a.default.registered.end(r.to,r.target,r.currentPosition);else a.default.registered.end&&a.default.registered.end(r.to,r.target,r.currentPositionY)},h=function(e){e.data.containerElement=e?e.containerId?document.getElementById(e.containerId):e.container&&e.container.nodeType?e.container:document:null},f=function(e,t,n,i){if(t.data=t.data||{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null},window.clearTimeout(t.data.delayTimeout),o.default.subscribe((function(){t.data.cancel=!0})),h(t),t.data.start=null,t.data.cancel=!1,t.data.startPosition=t.horizontal?u(t):d(t),t.data.targetPosition=t.absolute?e:e+t.data.startPosition,t.data.startPosition!==t.data.targetPosition){var r;t.data.delta=Math.round(t.data.targetPosition-t.data.startPosition),t.data.duration=("function"==typeof(r=t.duration)?r:function(){return r})(t.data.delta),t.data.duration=isNaN(parseFloat(t.data.duration))?1e3:parseFloat(t.data.duration),t.data.to=n,t.data.target=i;var s=l(t),f=p.bind(null,s,t);t&&t.delay>0?t.data.delayTimeout=window.setTimeout((function(){a.default.registered.begin&&a.default.registered.begin(t.data.to,t.data.target),c.call(window,f)}),t.delay):(a.default.registered.begin&&a.default.registered.begin(t.data.to,t.data.target),c.call(window,f))}else a.default.registered.end&&a.default.registered.end(t.data.to,t.data.target,t.data.currentPosition)},m=function(e){return(e=i({},e)).data=e.data||{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null},e.absolute=!0,e};t.default={animateTopScroll:f,getAnimationType:l,scrollToTop:function(e){f(0,m(e))},scrollToBottom:function(e){e=m(e),h(e),f(e.horizontal?function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollWidth-t.offsetWidth;var n=document.body,i=document.documentElement;return Math.max(n.scrollWidth,n.offsetWidth,i.clientWidth,i.scrollWidth,i.offsetWidth)}(e):function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollHeight-t.offsetHeight;var n=document.body,i=document.documentElement;return Math.max(n.scrollHeight,n.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)}(e),e)},scrollTo:function(e,t){f(e,m(t))},scrollMore:function(e,t){t=m(t),h(t);var n=t.horizontal?u(t):d(t);f(e+n,t)}}},785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6824),r=["mousedown","mousewheel","touchmove","keydown"];t.default={subscribe:function(e){return"undefined"!=typeof document&&r.forEach((function(t){return(0,i.addPassiveEventListener)(document,t,e)}))}}},6824:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.addPassiveEventListener=function(e,t,n){var i=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}();e.addEventListener(t,n,!!i&&{passive:!0})},t.removePassiveEventListener=function(e,t,n){e.removeEventListener(t,n)}},6389:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=l(n(4639)),a=(l(n(1346)),l(n(8623))),s=l(n(6838));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),r(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(e){this.props.name!==e.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;a.default.unregister(this.props.name)}},{key:"registerElems",value:function(e){a.default.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return o.default.createElement(e,i({},this.props,{parentBindings:this.childBindings}))}}]),n}(o.default.Component);return t.propTypes={name:s.default.string,id:s.default.string},t}},9072:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={registered:{},scrollEvent:{register:function(e,t){n.registered[e]=t},remove:function(e){n.registered[e]=null}}};t.default=n},4134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(6824);var i,r=n(2166),o=(i=r)&&i.__esModule?i:{default:i};var a={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(e){this.scroller=e,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(e,t){this.containers[e]=t},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var e=this,t=this.getHash();t?window.setTimeout((function(){e.scrollTo(t,!0),e.initialized=!0}),10):this.initialized=!0},scrollTo:function(e,t){var n=this.scroller;if(n.get(e)&&(t||e!==n.getActiveLink())){var i=this.containers[e]||document;n.scrollTo(e,{container:i})}},getHash:function(){return o.default.getHash()},changeHash:function(e,t){this.isInitialized()&&o.default.getHash()!==e&&o.default.updateHash(e,t)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};t.default=a},3039:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=u(n(4639)),a=u(n(3132)),s=u(n(8623)),l=u(n(6838)),c=u(n(4134));function u(e){return e&&e.__esModule?e:{default:e}}var d={to:l.default.string.isRequired,containerId:l.default.string,container:l.default.object,activeClass:l.default.string,activeStyle:l.default.object,spy:l.default.bool,horizontal:l.default.bool,smooth:l.default.oneOfType([l.default.bool,l.default.string]),offset:l.default.number,delay:l.default.number,isDynamic:l.default.bool,onClick:l.default.func,duration:l.default.oneOfType([l.default.number,l.default.func]),absolute:l.default.bool,onSetActive:l.default.func,onSetInactive:l.default.func,ignoreCancelEvents:l.default.bool,hashSpy:l.default.bool,saveHashHistory:l.default.bool,spyThrottle:l.default.number};t.default=function(e,t){var n=t||s.default,l=function(t){function s(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e));return u.call(t),t.state={active:!1},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,t),r(s,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e&&!t?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();a.default.isMounted(e)||a.default.mount(e,this.props.spyThrottle),this.props.hashSpy&&(c.default.isMounted()||c.default.mount(n),c.default.mapContainer(this.props.to,e)),a.default.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){a.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n={};n=this.state&&this.state.active?i({},this.props.style,this.props.activeStyle):i({},this.props.style);var r=i({},this.props);for(var a in d)r.hasOwnProperty(a)&&delete r[a];return r.className=t,r.style=n,r.onClick=this.handleClick,o.default.createElement(e,r)}}]),s}(o.default.PureComponent),u=function(){var e=this;this.scrollTo=function(t,r){n.scrollTo(t,i({},e.state,r))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.spyHandler=function(t,i){var r=e.getScrollSpyContainer();if(!c.default.isMounted()||c.default.isInitialized()){var o=e.props.horizontal,a=e.props.to,s=null,l=void 0,u=void 0;if(o){var d=0,p=0,h=0;if(r.getBoundingClientRect)h=r.getBoundingClientRect().left;if(!s||e.props.isDynamic){if(!(s=n.get(a)))return;var f=s.getBoundingClientRect();p=(d=f.left-h+t)+f.width}var m=t-e.props.offset;l=m>=Math.floor(d)&&m<Math.floor(p),u=m<Math.floor(d)||m>=Math.floor(p)}else{var g=0,v=0,y=0;if(r.getBoundingClientRect)y=r.getBoundingClientRect().top;if(!s||e.props.isDynamic){if(!(s=n.get(a)))return;var b=s.getBoundingClientRect();v=(g=b.top-y+i)+b.height}var w=i-e.props.offset;l=w>=Math.floor(g)&&w<Math.floor(v),u=w<Math.floor(g)||w>=Math.floor(v)}var x=n.getActiveLink();if(u){if(a===x&&n.setActiveLink(void 0),e.props.hashSpy&&c.default.getHash()===a){var E=e.props.saveHashHistory,C=void 0!==E&&E;c.default.changeHash("",C)}e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive(a,s))}if(l&&(x!==a||!1===e.state.active)){n.setActiveLink(a);var S=e.props.saveHashHistory,T=void 0!==S&&S;e.props.hashSpy&&c.default.changeHash(a,T),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(a,s))}}}};return l.propTypes=d,l.defaultProps={offset:0},l}},3132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(5652),o=(i=r)&&i.__esModule?i:{default:i},a=n(6824);var s={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(e,t){if(e){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:66;return(0,o.default)(e,t)}((function(t){s.scrollHandler(e)}),t);s.scrollSpyContainers.push(e),(0,a.addPassiveEventListener)(e,"scroll",n)}},isMounted:function(e){return-1!==s.scrollSpyContainers.indexOf(e)},currentPositionX:function(e){if(e===document){var t=void 0!==window.pageYOffset,n="CSS1Compat"===(document.compatMode||"");return t?window.pageXOffset:n?document.documentElement.scrollLeft:document.body.scrollLeft}return e.scrollLeft},currentPositionY:function(e){if(e===document){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return t?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop}return e.scrollTop},scrollHandler:function(e){(s.scrollSpyContainers[s.scrollSpyContainers.indexOf(e)].spyCallbacks||[]).forEach((function(t){return t(s.currentPositionX(e),s.currentPositionY(e))}))},addStateHandler:function(e){s.spySetState.push(e)},addSpyHandler:function(e,t){var n=s.scrollSpyContainers[s.scrollSpyContainers.indexOf(t)];n.spyCallbacks||(n.spyCallbacks=[]),n.spyCallbacks.push(e),e(s.currentPositionX(t),s.currentPositionY(t))},updateStates:function(){s.spySetState.forEach((function(e){return e()}))},unmount:function(e,t){s.scrollSpyContainers.forEach((function(e){return e.spyCallbacks&&e.spyCallbacks.length&&e.spyCallbacks.indexOf(t)>-1&&e.spyCallbacks.splice(e.spyCallbacks.indexOf(t),1)})),s.spySetState&&s.spySetState.length&&s.spySetState.indexOf(e)>-1&&s.spySetState.splice(s.spySetState.indexOf(e),1),document.removeEventListener("scroll",s.scrollHandler)},update:function(){return s.scrollSpyContainers.forEach((function(e){return s.scrollHandler(e)}))}};t.default=s},8623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=s(n(2166)),o=s(n(9800)),a=s(n(9072));function s(e){return e&&e.__esModule?e:{default:e}}var l={},c=void 0;t.default={unmount:function(){l={}},register:function(e,t){l[e]=t},unregister:function(e){delete l[e]},get:function(e){return l[e]||document.getElementById(e)||document.getElementsByName(e)[0]||document.getElementsByClassName(e)[0]},setActiveLink:function(e){return c=e},getActiveLink:function(){return c},scrollTo:function(e,t){var n=this.get(e);if(n){var s=(t=i({},t,{absolute:!1})).containerId,l=t.container,c=void 0;c=s?document.getElementById(s):l&&l.nodeType?l:document,t.absolute=!0;var u=t.horizontal,d=r.default.scrollOffset(c,n,u)+(t.offset||0);if(!t.smooth)return a.default.registered.begin&&a.default.registered.begin(e,n),c===document?t.horizontal?window.scrollTo(d,0):window.scrollTo(0,d):c.scrollTop=d,void(a.default.registered.end&&a.default.registered.end(e,n));o.default.animateTopScroll(d,t,e,n)}else console.warn("target Element not found")}}},5726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={defaultEasing:function(e){return e<.5?Math.pow(2*e,2)/2:1-Math.pow(2*(1-e),2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}},2166:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){for(var n=e.offsetTop,i=e.offsetParent;i&&!t(i);)n+=i.offsetTop,i=i.offsetParent;return{offsetTop:n,offsetParent:i}};t.default={updateHash:function(e,t){var n=0===e.indexOf("#")?e.substring(1):e,i=n?"#"+n:"",r=window&&window.location,o=i?r.pathname+r.search+i:r.pathname+r.search;t?history.pushState(history.state,"",o):history.replaceState(history.state,"",o)},getHash:function(){return window.location.hash.replace(/^#/,"")},filterElementInContainer:function(e){return function(t){return e.contains?e!=t&&e.contains(t):!!(16&e.compareDocumentPosition(t))}},scrollOffset:function(e,t,i){if(i)return e===document?t.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):"static"!==getComputedStyle(e).position?t.offsetLeft:t.offsetLeft-e.offsetLeft;if(e===document)return t.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if("static"!==getComputedStyle(e).position){if(t.offsetParent!==e){var r=n(t,(function(t){return t===e||t===document})),o=r.offsetTop;if(r.offsetParent!==e)throw new Error("Seems containerElement is not an ancestor of the Element");return o}return t.offsetTop}if(t.offsetParent===e.offsetParent)return t.offsetTop-e.offsetTop;var a=function(e){return e===document};return n(t,a).offsetTop-n(e,a).offsetTop}}},7111:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var r=i(n(6742)),o=n(9842);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,i){e&&i&&(n[(0,o.camelCase)(e,t)]=i)})),n):n}},9842:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,i=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(o,l)).replace(i,s))}},6742:(e,t,n)=>{var i=n(5689);function r(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var o,a,s=i(e),l="function"==typeof t,c=0,u=s.length;c<u;c++)o=(n=s[c]).property,a=n.value,l?t(o,a,n):a&&(r||(r={}),r[o]=a);return r}e.exports=r,e.exports.default=r},1582:(e,t,n)=>{"use strict";var i=n(4639);var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useState,a=i.useEffect,s=i.useLayoutEffect,l=i.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=o({inst:{value:n,getSnapshot:t}}),r=i[0].inst,u=i[1];return s((function(){r.value=n,r.getSnapshot=t,c(r)&&u({inst:r})}),[e,n,t]),a((function(){return c(r)&&u({inst:r}),e((function(){c(r)&&u({inst:r})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:u},6518:(e,t,n)=>{"use strict";var i=n(4639),r=n(4203);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useSyncExternalStore,s=i.useRef,l=i.useEffect,c=i.useMemo,u=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,i,r){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,a=e,e=i(e),void 0!==r&&p.hasValue){var t=p.value;if(r(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=i(e);return void 0!==r&&r(t,n)?t:(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,i,r]);var h=a(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),u(h),h}},4203:(e,t,n)=>{"use strict";e.exports=n(1582)},9205:(e,t,n)=>{"use strict";e.exports=n(6518)},5369:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(8515),r=n.n(i),o=n(2616),a=n.n(o),s=n(9676),l=n.n(s),c=new URL(n(8174),n.b),u=a()(r());u.push([e.id,"@import url(https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css);"]),u.push([e.id,"@import url(https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Martel+Sans:wght@200&family=Martel:wght@400;700&family=Taviraj:wght@300;500&display=swap);"]),u.push([e.id,"@import url(https://fonts.googleapis.com/icon?family=Material+Icons);"]),u.push([e.id,"@import url(https://use.fontawesome.com/releases/v5.0.8/css/all.css);"]);var d=l()(c);u.push([e.id,"*{box-sizing:border-box}div{width:auto}body{padding:0;margin:0;box-sizing:border-box}.warning{color:#ff0}.fa{width:1.5rem;padding:.2rem .1rem .1rem;text-align:center}.fa.active{background-color:rgba(158,158,158,.0392156863);border:.2rem solid #ff9800}.fa-book.active{border-radius:0 2rem 2rem 0}.fa:not(.active){color:gray}.fa.fa-lock,.fa.fa-lock-open{border-radius:2rem 0 0 2rem}.line-clamp{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:3}.line-clamp.two-lines{-webkit-line-clamp:2}.flex-parent{display:flex}.flex-parent.half-width{width:50%}.flex-parent.full-width{width:100%}.flex-parent.column{flex-direction:column}.flex-parent.jc-start{justify-content:flex-start}.flex-parent.jc-center{justify-content:center}.flex-parent.jc-end{justify-content:flex-end}.flex-parent.jc-space-btw{justify-content:space-between}.flex-parent.jc-space-around{justify-content:space-around}.flex-parent.ai-start{align-items:flex-start}.flex-parent.ai-center{align-items:center}.flex-parent.ai-end{align-items:flex-end}.flex-parent.wrap{flex-wrap:wrap}.flex-parent.row-reverse{flex-direction:row-reverse}.flex-parent.column-reverse{flex-direction:column-reverse}.flex-parent .flex-1{flex:1}.flex-parent .flex-2{flex:2}.flex-parent .flex-3{flex:3}.flex-parent .flex-4{flex:4}.flex-parent .flex-5{flex:5}.flex-parent .flex-6{flex:6}.flex-parent .flex-7{flex:7}.flex-parent .flex-8{flex:8}.flex-parent .flex-9{flex:9}.flex-parent .flex-10{flex:10}.flex-parent .flex-11{flex:11}.flex-parent .flex-12{flex:12}.bg-maroon-gradient{background-image:linear-gradient(to right, #792421, #66211c, #531d17, #411912, #30140d)}.bg-dark-gradient-bt{background-image:linear-gradient(to bottom, hsl(30, 50%, 90%), hsl(50, 43%, 83%), hsl(43, 54%, 77%))}.bg-dark-gradient-tb{background-image:linear-gradient(to bottom, hsl(43, 54%, 77%), hsl(50, 43%, 83%), hsl(30, 50%, 90%))}.bg-light-gradient-bt{background-image:linear-gradient(to bottom, hsl(30, 50%, 99%), hsl(50, 43%, 90%), hsl(43, 54%, 85%))}.bg-light-gradient-tb{background-image:linear-gradient(to bottom, hsl(43, 54%, 85%), hsl(50, 43%, 90%), hsl(30, 50%, 99%))}.accent-bar{height:10px;width:100%}.invisible{opacity:0}.disabled{opacity:.5}.figure-dialog-img-container img{display:block;width:100%;height:auto}a:hover{text-decoration:underline}a{color:#792421;text-decoration:none}@-webkit-keyframes slide-down{0%{height:2px;bottom:-5px}100%{height:6px;bottom:-9px}}@-moz-keyframes slide-down{0%{height:2px;bottom:-5px}100%{height:6px;bottom:-9px}}@-ms-keyframes slide-down{0%{height:2px;bottom:-5px}100%{height:6px;bottom:-9px}}@-o-keyframes slide-down{0%{height:2px;bottom:-5px}100%{height:6px;bottom:-9px}}@keyframes slide-down{0%{height:2px;bottom:-5px}100%{height:6px;bottom:-9px}}#globalNavigation{display:flex;align-items:center;flex-direction:row-reverse;font-size:.9rem;position:relative;top:-4rem;right:2rem;float:right}@media(min-width: 960px){#globalNavigation{display:block}}#globalNavigation .expandedViewOnly span,#globalNavigation .expandedViewOnly a{color:#fff;margin-left:1rem;cursor:pointer}#globalNavigation span .francais{font-weight:100}#globalNavigation input{height:1.5rem;padding:0 0 0 .5rem;font-style:italic;border:1px solid rgba(0,0,0,.3882352941);color:#756c6c;background-color:#d8d8d8}#loadingStateModal{position:fixed;z-index:9000;background-color:rgba(0,0,0,.48);width:100vw;height:100vh}.spinner{width:100%;height:100%;margin:calc(50vh - (1rem/2)) auto 0 auto;text-align:center}.spinner>div{width:1rem;height:1rem;background-color:#fff;border-radius:100%;display:inline-block;-webkit-animation:sk-bouncedelay 1.4s infinite ease-in-out both;animation:sk-bouncedelay 1.4s infinite ease-in-out both}.spinner .bounce1{-webkit-animation-delay:-0.32s;animation-delay:-0.32s}.spinner .bounce2{-webkit-animation-delay:-0.16s;animation-delay:-0.16s}@-webkit-keyframes sk-bouncedelay{0%,100%,80%{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes sk-bouncedelay{0%,100%,80%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}figure{padding:.3rem 0 0;border-radius:.2rem;margin:0;text-align:center}figure.current{background-color:rgba(7,122,255,.831)}.thumbnail-caption.current{color:rgba(7,122,255,.831) !important;font-weight:900}.watermark{width:100%;height:100%;margin:calc(50vh - (10rem/2)) auto 0 auto}.transcriptContent .watermark{margin:calc(50vh - 12.5rem) auto 0 auto}.watermark_contents{width:10rem;height:10rem;background-image:url("+d+');background-size:100%;background-repeat:no-repeat;margin:auto auto auto auto}.navigationComponent{position:fixed;z-index:2;height:48px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:4px;top:75px;background-color:#fff;border-radius:.3rem}.navigationComponent #tool-bar-buttons{font-size:15px}@media(min-width: 600px){.navigationComponent{top:80px}}@media(min-width: 960px){.navigationComponent{top:initial}}.navigationComponent button{cursor:pointer}.navigationRow{display:flex;justify-content:space-between;padding:12px 10px 12px 10px}.helpIcon{display:none;margin-top:6px;margin-right:16px}@media(min-width: 960px){.helpIcon{display:block}}.dropdownV2{width:150px;margin-right:10px}.imageViewComponent .navigationComponent{background-color:#4a4a4a;border-radius:.3rem;opacity:.8}@media(min-width: 960px){.imageViewComponent .navigationComponent{background-color:#000;color:#fff;border-radius:0;opacity:1}}.transcriptionViewComponent .navigationComponent{background-color:#fff;color:#000}#doc-type-help:after{color:#978e8e}#doc-type-help .dark .MuiSvgIcon-root.MuiSelect-icon{color:#fff}.breadcrumbs{overflow:hidden;display:none}@media(min-width: 960px){.breadcrumbs{display:block}}.breadcrumbs .folioName{display:inline;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:900;text-decoration:underline}.closeX{float:right;padding:3px;font-style:bold}.closeX:hover{cursor:pointer}.helpContainer .MuiListItem-root{display:flex;gap:10px}.helpContainer{padding:12px;width:335px;height:min(600px,100vh - 40px);position:relative;top:40px;overflow-x:auto}.helpContainer .readingGuide td{padding:8px}.helpContainer .readingGuide h2{margin-top:16px;margin-bottom:10px}.searchHelpContainer{padding:10px 15px 10px 0;width:335px}.helpHeader{text-align:center}.paginationComponent{white-space:nowrap;text-align:center;font-size:1.2rem;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-top:52px}@media(min-width: 960px){.paginationComponent{margin-bottom:0}}.paginationControl{padding:16px}.paginationControl .arrow{font-size:1.8rem;color:#4a4a4a;margin:1rem 1rem 0;cursor:pointer}.paginationControl .folioName{position:relative;top:-0.2rem;color:#4a4a4a}#diplomatic #content-view h1,#diplomatic #content-view h2,#diplomatic #content-view h3,#diplomatic #content-view h4,#diplomatic .header-wrapper h1,#diplomatic .header-wrapper h2,#diplomatic .header-wrapper h3,#diplomatic .header-wrapper h4,#diplomatic #entry-list-view h1,#diplomatic #entry-list-view h2,#diplomatic #entry-list-view h3,#diplomatic #entry-list-view h4,#diplomatic #annotation-list-view h1,#diplomatic #annotation-list-view h2,#diplomatic #annotation-list-view h3,#diplomatic #annotation-list-view h4{font-family:"Lato",sans-serif;color:#000;padding:0;margin:0}#diplomatic #content-view h1,#diplomatic .header-wrapper h1,#diplomatic #entry-list-view h1,#diplomatic #annotation-list-view h1{font-family:"Taviraj",serif;font-size:32px}#diplomatic #content-view h2,#diplomatic #content-view h3,#diplomatic .header-wrapper h2,#diplomatic .header-wrapper h3,#diplomatic #entry-list-view h2,#diplomatic #entry-list-view h3,#diplomatic #annotation-list-view h2,#diplomatic #annotation-list-view h3{font-weight:700}#diplomatic #content-view h2,#diplomatic .header-wrapper h2,#diplomatic #entry-list-view h2,#diplomatic #annotation-list-view h2{font-size:22px}#diplomatic #content-view h3,#diplomatic .header-wrapper h3,#diplomatic #entry-list-view h3,#diplomatic #annotation-list-view h3{font-size:18px}#diplomatic #content-view h4,#diplomatic .header-wrapper h4,#diplomatic #entry-list-view h4,#diplomatic #annotation-list-view h4{font-size:18px;font-weight:700}#diplomatic #content-view p,#diplomatic .header-wrapper p,#diplomatic #entry-list-view p,#diplomatic #annotation-list-view p{font-family:"Martel",serif;line-height:1.25}#diplomatic #content-view span,#diplomatic .header-wrapper span,#diplomatic #entry-list-view span,#diplomatic #annotation-list-view span{font-family:"Martel",serif;line-height:1.25;margin:0}#diplomatic #content-view a.MuiButton-containedPrimary.cta-button,#diplomatic .header-wrapper a.MuiButton-containedPrimary.cta-button,#diplomatic #entry-list-view a.MuiButton-containedPrimary.cta-button,#diplomatic #annotation-list-view a.MuiButton-containedPrimary.cta-button{color:#fff;padding:10px 70px;border-radius:0}#diplomatic #content-view a.MuiButton-containedPrimary.cta-button .MuiButton-label span,#diplomatic .header-wrapper a.MuiButton-containedPrimary.cta-button .MuiButton-label span,#diplomatic #entry-list-view a.MuiButton-containedPrimary.cta-button .MuiButton-label span,#diplomatic #annotation-list-view a.MuiButton-containedPrimary.cta-button .MuiButton-label span{font-family:"Lato",sans-serif;font-size:20px}#diplomatic #content-view a,#diplomatic .header-wrapper a,#diplomatic #entry-list-view a,#diplomatic #annotation-list-view a{color:#792421}#diplomatic #content-view a:hover,#diplomatic .header-wrapper a:hover,#diplomatic #entry-list-view a:hover,#diplomatic #annotation-list-view a:hover{color:#cba374}#diplomatic #content-view .cta-link.MuiLink-underlineHover:hover,#diplomatic .header-wrapper .cta-link.MuiLink-underlineHover:hover,#diplomatic #entry-list-view .cta-link.MuiLink-underlineHover:hover,#diplomatic #annotation-list-view .cta-link.MuiLink-underlineHover:hover{text-decoration:none}#diplomatic #content-view a.cta-link,#diplomatic .header-wrapper a.cta-link,#diplomatic #entry-list-view a.cta-link,#diplomatic #annotation-list-view a.cta-link{color:#000;text-align:center;width:fit-content;text-decoration:none;font-family:"Lato",sans-serif;font-size:16px;font-weight:700;position:relative;cursor:pointer;margin-bottom:5px}@media(min-width: 960px){#diplomatic #content-view a.cta-link,#diplomatic .header-wrapper a.cta-link,#diplomatic #entry-list-view a.cta-link,#diplomatic #annotation-list-view a.cta-link{font-size:18px}}#diplomatic #content-view a.cta-link.with-icon:after,#diplomatic .header-wrapper a.cta-link.with-icon:after,#diplomatic #entry-list-view a.cta-link.with-icon:after,#diplomatic #annotation-list-view a.cta-link.with-icon:after{font-family:"Font Awesome 5 Free";margin-left:7px;font-weight:600;content:"";font-size:15px}#diplomatic #content-view a.cta-link:before,#diplomatic .header-wrapper a.cta-link:before,#diplomatic #entry-list-view a.cta-link:before,#diplomatic #annotation-list-view a.cta-link:before{position:absolute;content:"";height:2px;background-color:#000;width:50%;right:30%;bottom:-5px;border-radius:2px}#diplomatic #content-view a.cta-link:hover:before,#diplomatic .header-wrapper a.cta-link:hover:before,#diplomatic #entry-list-view a.cta-link:hover:before,#diplomatic #annotation-list-view a.cta-link:hover:before{background-color:#792421;text-decoration:none;height:6px;bottom:-9px;-webkit-animation:slide-down .2s;-moz-animation:slide-down .2s;-ms-animation:slide-down .2s;-o-animation:slide-down .2s;animation:slide-down .2s}#diplomatic #content-view a.cta-link:hover:after,#diplomatic .header-wrapper a.cta-link:hover:after,#diplomatic #entry-list-view a.cta-link:hover:after,#diplomatic #annotation-list-view a.cta-link:hover:after{color:#792421}#diplomatic #content-view a.cta-link.active:before,#diplomatic .header-wrapper a.cta-link.active:before,#diplomatic #entry-list-view a.cta-link.active:before,#diplomatic #annotation-list-view a.cta-link.active:before{background-color:#792421;text-decoration:none;height:6px;bottom:-9px;-webkit-animation:slide-down .2s;-moz-animation:slide-down .2s;-ms-animation:slide-down .2s;-o-animation:slide-down .2s;animation:slide-down .2s}#diplomatic #content-view a.cta-link.active:after,#diplomatic .header-wrapper a.cta-link.active:after,#diplomatic #entry-list-view a.cta-link.active:after,#diplomatic #annotation-list-view a.cta-link.active:after{color:#792421}#diplomatic #content-view a.cta-link.light,#diplomatic .header-wrapper a.cta-link.light,#diplomatic #entry-list-view a.cta-link.light,#diplomatic #annotation-list-view a.cta-link.light{color:#444}#diplomatic #content-view a.cta-link.light:before,#diplomatic .header-wrapper a.cta-link.light:before,#diplomatic #entry-list-view a.cta-link.light:before,#diplomatic #annotation-list-view a.cta-link.light:before{background-color:#444}#diplomatic #content-view a.cta-link.light:hover:before,#diplomatic .header-wrapper a.cta-link.light:hover:before,#diplomatic #entry-list-view a.cta-link.light:hover:before,#diplomatic #annotation-list-view a.cta-link.light:hover:before{background-color:#792421}#diplomatic #content-view a.cta-link.video-link:after,#diplomatic .header-wrapper a.cta-link.video-link:after,#diplomatic #entry-list-view a.cta-link.video-link:after,#diplomatic #annotation-list-view a.cta-link.video-link:after{content:"";font-size:12px;margin-bottom:-2px}#diplomatic #content-view a.cta-link.search-link:after,#diplomatic .header-wrapper a.cta-link.search-link:after,#diplomatic #entry-list-view a.cta-link.search-link:after,#diplomatic #annotation-list-view a.cta-link.search-link:after{font-family:"Material Icons";content:"search";font-size:16px}#diplomatic #header{width:100%;padding:0px 20px;background-color:#fff;border-radius:0}@media(min-width: 1280px){#diplomatic #header{padding:5px 50px}}#diplomatic #header img{width:210px}@media(min-width: 600px){#diplomatic #header img{width:300px}}@media(min-width: 960px){#diplomatic #header img{width:300px}}#diplomatic #header .expandedViewOnly{width:100%}#diplomatic #header .nav-item{font-size:16px;margin-right:5px;white-space:nowrap;margin-bottom:15px}#diplomatic #header .search-btn{margin-bottom:10px;font-size:18px}#diplomatic .maroon-dropdown{background-color:#460c0a;border-radius:0;-webkit-box-shadow:inset 0 5px 5px -5px rgba(0,0,0,.8),0 5px 5px -5px rgba(0,0,0,.8);-moz-box-shadow:inset 0 5px 5px -5px rgba(0,0,0,.8),0 5px 5px -5px rgba(0,0,0,.8);box-shadow:inset 0 5px 5px -5px rgba(0,0,0,.8),0 5px 5px -5px rgba(0,0,0,.8)}#diplomatic .mobile-menu{padding:50px 0}#diplomatic .mobile-menu .list-container{position:relative}#diplomatic .mobile-menu .list-container .list{color:"white"}#diplomatic .search-bar{height:162px}#diplomatic .search-bar .label{font-size:32px;color:#fff;font-weight:400;white-space:nowrap}#diplomatic .search-bar .content{width:50%}#diplomatic .search-bar #search input{border:1px solid #dededf;border-radius:4px;width:300px;height:38px;font-size:14px;padding:5px 15px;font-family:"Lato",sans-serif}#diplomatic.sticky .header-wrapper.sticky{position:sticky;top:0;z-index:2}#diplomatic #footer{color:#fff;background-color:#460c0a;display:flex;flex-direction:column;padding:10px 20px}@media(min-width: 600px){#diplomatic #footer{padding:20px 30px}}@media(min-width: 960px){#diplomatic #footer{padding:30px 40px}}#diplomatic #footer p,#diplomatic #footer a{font-family:"Lato",sans-serif;font-size:16px;color:#fafafa;line-height:1.5;margin:0}#diplomatic #footer a:hover{color:#cba374;fill:#cba374}#diplomatic #footer .top{margin-bottom:10px}#diplomatic #footer .top p{margin:0 5px;white-space:nowrap}#diplomatic #footer .doi{text-align:center}#diplomatic #footer .copyright .symbols{text-decoration:none}#diplomatic #footer .copyright svg{width:14px;height:14px}#diplomatic #footer .logos{margin-bottom:10px}#diplomatic #footer .logos img{width:150px}@media(min-width: 600px){#diplomatic #footer .logos img{width:200px}}@media(min-width: 600px){#diplomatic #footer .logos img{width:250px}}#diplomatic #footer .footer-links{width:100%;text-align:center;font-size:12px;line-height:2}#diplomatic.fixed{background:#fff;position:fixed;width:100vw;height:calc(100vh - 12rem);font-size:.7rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:"OpenSans",sans-serif;font-size:.9rem}@media(min-width: 600px){#diplomatic.fixed{height:calc(100vh - 13rem)}}@media(min-width: 960px){#diplomatic.fixed{height:calc(100vh - 14rem)}}#diplomatic.fixed #content{line-height:1.2rem}#diplomatic.fixed h1,#diplomatic.fixed h2,#diplomatic.fixed h3,#diplomatic.fixed h4{color:rgba(0,0,0,.7215686275);font-family:"OpenSans",sans-serif;font-weight:700;padding:0;line-height:1.5rem}.imageGridComponent{background-color:#000;font-size:.8rem;overflow:scroll;height:100vh}.imageGridComponent>ul{display:flex;flex-wrap:wrap;list-style:none;padding-left:0;margin:1.5rem 0 8rem 2rem}.imageGridComponent>ul>li{margin-bottom:20px;width:150px;height:220px}.imageGridComponent>ul>li>figure{margin:8px}.imageGridComponent>ul>li>figure:hover{border:2px #eee solid;margin:6px}.imageGridComponent>ul>li>.thumbnail-caption{text-align:center;color:#fff}.hidden{display:none}.imageGridComponent .imageGridToolbar{padding:5px;color:#fff}.imageGridComponent .imageGridToolbar .jump-to{float:right;display:"inline";margin-right:30px}.imageGridComponent .imageGridToolbar .jump-to #jump-to-input{margin-left:5px}.imageGridComponent .imageGridToolbar .jump-to #jump-to-button{margin-left:5px;cursor:pointer}.split-pane-view{height:100%;width:100%;display:grid;grid-template-areas:"image_viewer divider transcription"}.split-pane-view>.divider{z-index:2;grid-area:divider;width:1rem;background:#bbb;cursor:ew-resize;display:flex}.split-pane-view>.divider>.drawer-button{align-self:center;align:center;cursor:auto}.split-pane-view>.divider>.drawer-button:hover{color:#fff}.split-pane-view>.divider>.hidden{display:none}.split-pane-view #annotation-view{font-size:16px}#image-view-seadragon-left,#image-view-seadragon-right{width:100%;height:100%;grid-area:image_viewer;background:#000}.imageViewComponent{position:relative;padding:0;margin:0;width:100%;height:100vh}.ImageZoomControl{position:absolute;z-index:1;top:8rem;color:#fff;list-style:none;background:#4a4a4a;opacity:.4;margin:0;padding:.4rem .5rem;border-radius:.3rem}@media(min-width: 960px){.ImageZoomControl{top:4rem;left:2rem}}.ImageZoomControl>li{color:#e0e0e0}.ImageZoomControl>li>.zoom-in{margin-top:8px}.ImageZoomControl>li:hover{color:#fff}.ImageZoomControl>li>.zoom-3{margin-top:8px}.ImageZoomControl>li>.zoom-2{margin-top:8px;margin-left:5px}.ImageZoomControl>li>.zoom-1{margin-top:8px;margin-left:7px}.ImageZoomControl>li>.zoom-out{margin-top:8px}.ImageZoomControl>li>.zoom-grid{margin-top:30px}.transcriptionViewComponent{overflow:scroll;height:calc(100vh - 7rem)}.transcriptionViewComponent .transcriptContent{padding:50px 16px;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;margin-bottom:92px}@media(min-width: 960px){.transcriptionViewComponent .transcriptContent{padding:5px 16px}}.transcriptionViewComponent .transcriptContent figure{display:inline-flex;flex-direction:column;width:100%;align-items:center;gap:6px}.transcriptionViewComponent .transcriptContent .block[data-layout=right-middle]{max-width:250px}.transcriptionViewComponent .transcriptContent .block[data-layout=right-top]{max-width:250px}.transcriptionViewComponent .transcriptContent .block[data-layout=right-bottom]{max-width:250px}.transcriptionViewComponent .transcriptContent .x-small-inline-figure{margin:5px;border:1px solid gray;width:30px}.transcriptionViewComponent .transcriptContent .small-inline-figure{margin:5px;border:1px solid gray;width:60px}.transcriptionViewComponent .transcriptContent .medium-inline-figure{margin:5px;border:1px solid gray;width:200px}.transcriptionViewComponent .transcriptContent .large-inline-figure{margin:5px;border:1px solid gray;width:350px}.transcriptionViewComponent .transcriptContent .surface{grid-area:transcription;margin:0;padding:0;list-style:none}.transcriptionViewComponent .transcriptContent .grid-mode{display:grid;grid-auto-rows:minmax(min-content, 0fr);grid-gap:2px}.transcriptionViewComponent .transcriptContent .surface>.small-font{font-size:11pt}.transcriptionViewComponent .transcriptContent .surface>div{padding:10px}.transcriptionViewComponent .transcriptContent .surface>#z0{grid-area:z0}.transcriptionViewComponent .transcriptContent .surface>#z1{grid-area:z1}.transcriptionViewComponent .transcriptContent .surface>#z2{grid-area:z2}.transcriptionViewComponent .transcriptContent .surface>#z3{grid-area:z3}.transcriptionViewComponent .transcriptContent .surface>#z4{grid-area:z4}.transcriptionViewComponent .transcriptContent .surface>#z5{grid-area:z5}.transcriptionViewComponent .transcriptContent .surface>#z6{grid-area:z6}.transcriptionViewComponent .transcriptContent .surface>#z7{grid-area:z7}.transcriptionViewComponent .transcriptContent .surface>#z8{grid-area:z8}.transcriptionViewComponent .transcriptContent .surface>#z9{grid-area:z9}.transcriptionViewComponent .transcriptContent .surface>#z10{grid-area:z10}.transcriptionViewComponent .transcriptContent .surface>#z11{grid-area:z11}.transcriptionViewComponent .transcriptContent .surface>#z12{grid-area:z12}.transcriptionViewComponent .transcriptContent .surface>#z13{grid-area:z13}.transcriptionViewComponent .transcriptContent .surface>#z14{grid-area:z14}.transcriptionViewComponent .transcriptContent .surface>#z15{grid-area:z15}.transcriptionViewComponent .transcriptContent .surface>#z16{grid-area:z16}.transcriptionViewComponent .transcriptContent .surface>#z17{grid-area:z17}.transcriptionViewComponent .transcriptContent .surface>#z18{grid-area:z18}.transcriptionViewComponent .transcriptContent .surface>#z19{grid-area:z19}.transcriptionViewComponent .transcriptContent .surface>#z20{grid-area:z20}.transcriptionViewComponent .transcriptContent .highlight{background-color:#ff0}.editor-comment-content{word-wrap:break-word}.inline-image{max-width:90%;max-height:360px;margin:auto;text-align:center}.xmlViewComponent .navigationComponent{background-color:#fff;color:#000}.xmlContent{padding:0;margin:4.5rem 0 0;width:calc(100% - 1.2rem);min-height:100vh;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;min-width:10rem}.xmlViewComponent{overflow:auto;margin:0 0 0 1rem;height:calc(100vh - 7rem)}.xmlContentInner{max-height:100%}.xmlContentInner pre{overflow-x:auto}#glossaryView #glossaryViewInner{overflow-y:scroll;margin:5px 0 0 0;width:calc(100% - 1.2rem);height:calc(100vh - 170px);padding:5px 16px}@media(min-width: 960px){#glossaryView #glossaryViewInner{margin:52px 0 0 0}}#glossaryView .cite-header{text-align:center;margin-bottom:5px}#glossaryView .cite-instructions{margin:20px;margin-left:15%;margin-right:15%}#glossaryView .navigationComponent{position:sticky;top:0}@media(min-width: 960px){#glossaryView .navigationComponent{position:fixed;top:initial}}#glossaryView .glossaryNav{background:#fff;padding:5px;position:relative}#glossaryView .glossaryNav #glossary-filter{margin-right:10px}#glossaryView .glossaryNav .alphaNav{display:none}@media(min-width: 960px){#glossaryView .glossaryNav .alphaNav{display:block}}#glossaryView .alphaNav{color:blue;display:inline}#glossaryView .title{white-space:nowrap;position:relative;width:calc(100% - 1.7rem);text-align:center;top:-2em;font-size:1.8rem;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media(min-width: 960px){#glossaryView .title{top:-1em}}#glossaryView .subtitle{white-space:nowrap;position:relative;width:calc(100% - 1.7rem);text-align:center;top:-2em;font-style:italic;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media(min-width: 960px){#glossaryView .subtitle{top:-1em}}#glossaryView #glossaryContent{padding:5rem 0 0;min-height:100vh;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;min-width:10rem}@media(min-width: 960px){#glossaryView #glossaryContent{padding:3.5rem 0 0}}.jumpToFolio_component{margin:1rem 0 0 -4.5rem;padding:.6rem;height:1.2rem;width:9.5rem;background:#e7e7e7;border:1px solid rgba(90,98,102,.53);border-radius:.3rem;-webkit-box-shadow:6px 6px 5px 0 rgba(0,0,0,.211765);-moz-box-shadow:6px 6px 5px 0 rgba(0,0,0,.211765);box-shadow:6px 6px 5px 0 rgba(0,0,0,.211765);font-family:sans-serif}.jumpToFolio_component input:focus{outline:none}.jumpToFolio_component:after,.jumpToFolio_component:before{bottom:100%;left:50%;border:solid rgba(0,0,0,0);content:" ";height:0;width:0;position:absolute;pointer-events:none}.jumpToFolio_component:after{border-color:rgba(255,255,255,0);border-bottom-color:#e7e7e7;border-width:9px;margin-left:-9px}.jumpToFolio_component:before{border-color:rgba(194,225,245,0);border-bottom-color:rgba(90,98,102,.53);border-width:11px;margin-left:-11px}[lang=ar],[lang=ota],[lang=fa],[lang=he],[lang*=-Arab-AR]{direction:rtl;text-align:right}[lang=en],[lang=fr],[lang=de],[lang=it],[lang*=ar-Latn-],[lang*=ota-Latn-]{direction:ltr;text-align:left}tei-choice tei-abbr+tei-expan:before,tei-choice tei-expan+tei-abbr:before,tei-choice tei-sic+tei-corr:before,tei-choice tei-corr+tei-sic:before,tei-choice tei-orig+tei-reg:before,tei-choice tei-reg+tei-orig:before{content:" ("}tei-choice tei-abbr+tei-expan:after,tei-choice tei-expan+tei-abbr:after,tei-choice tei-sic+tei-corr:after,tei-choice tei-corr+tei-sic:after,tei-choice tei-orig+tei-reg:after,tei-choice tei-reg+tei-orig:after{content:")"}tei-ab{display:block;margin-top:1em;margin-bottom:1em}tei-accMat{display:block}tei-accMat:before{content:"accompanying materials: "}tei-acquisition{display:block;margin-top:0;margin-bottom:0}tei-acquisition:before{font-weight:bold;content:"acquisition"}tei-activity{display:block}tei-activity:before{content:"activity: "}tei-add[place=above]{color:blue;vertical-align:super;font-size:10pt}tei-add[place=inline]:before{content:"«"}tei-add[place=inline]:after{content:"»"}tei-add[place=below]{vertical-align:sub}tei-additional{display:block}tei-additions{display:block}tei-additions:before{content:"Significant additions within the document: "}tei-addrLine{display:block}tei-address[data-tei-rend~=block],addresss[data-tei-rendition~="#block"]{display:block}tei-adminInfo{display:block}tei-app tei-note{display:none}tei-appInfo{display:block}tei-appInfo:before{content:"Application information: "}tei-application{display:block}tei-application:after{content:" " attr(version)}tei-argument{display:block}tei-att{font-family:Courier,monospace}tei-att:before{content:"@"}tei-titlestmt>tei-author{display:block;margin-bottom:1em}tei-publicationstmt>tei-availability{font-size:80%}tei-publicationstmt>tei-availability:before{font-weight:bold;content:"Availability: "}tei-publicationstmt>tei-availability[data-tei-status]:before{font-weight:bold;content:"Availability (" attr(status) "): "}tei-back{display:block}tei-bibl[data-tei-rend~=block],bibl[data-tei-rendition~="#block"]{display:block;padding-left:2em;text-indent:-2em}tei-biblFull{display:block}tei-binding{display:block}tei-binding:before{content:"Binding: \\a";white-space:pre-wrap}tei-binding[data-tei-contemporary]:before{content:"Binding: \\a" "Contemporary: " attr(contemporary) "\\a";white-space:pre-wrap}tei-bindingdesc{display:block}tei-bindngdesc:before{content:"Binding description: \\a"}tei-birth{display:block}tei-birth:before{content:"Birth: "}tei-cRefPattern{display:none}tei-caption{display:block;margin-top:1em;margin-bottom:1em}tei-case[data-tei-value]:before{font-weight:bold;content:attr(value) " "}tei-castgroup{display:block;margin-top:1em;margin-bottom:1em}tei-castitem{display:list-item}tei-castlist{display:block;list-style-type:none;margin-top:1em;margin-bottom:1em;margin-left:2em}tei-cb{display:block;margin-top:1em;margin-bottom:1em}tei-cb:before{content:"[column break]"}tei-cell{border-right:thin solid #000;border-bottom:thin solid #000;padding:2px}tei-cell[data-tei-role=label]{font-weight:bold}tei-climate{display:block;margin-top:1em;margin-bottom:1em}tei-climate:before{font-weight:bold;content:"Climate: "}tei-code{font-family:Courier,monospace}tei-collation{display:block;margin-top:1em;margin-bottom:1em}tei-condition{display:block;margin-top:1em;margin-bottom:1em}tei-constitution{display:block;margin-top:1em;margin-bottom:1em}tei-constitution:before{font-weight:bold;content:"Constitution: "}tei-constitution[data-tei-type]{display:block;margin-top:1em;margin-bottom:1em}tei-constitution[data-tei-type]:before{font-weight:bold;content:"Constitution (" attr(type) "): "}tei-constitution[data-tei-type=frags]{display:block;margin-top:1em;margin-bottom:1em}tei-constitution[data-tei-type=frags]:before{font-weight:bold;content:"Constitution (fragments): "}tei-custevent{display:list-item}tei-custodialhist{display:block;margin-top:1em;margin-bottom:1em}tei-date[data-tei-when]:empty:before{content:attr(when)}tei-del{color:red}tei-editionstmt{display:block}teieg-egxml{display:block;font-size:80%;margin-left:1em;padding-left:1em;border-left:1px solid #aaa;margin-top:.75em;margin-bottom:.75em;padding-top:.75em;padding-bottom:.75em;font-family:monospace;white-space:pre}tei-emph{font-style:italic}tei-encodingdesc{display:none}tei-epigraph{display:block;margin-top:1em;margin-bottom:1em}tei-explicit{font-style:italic}tei-filedesc>tei-extent{display:none}tei-figure{display:block;text-align:center;margin-left:auto;margin-right:auto}tei-gap[data-tei-reason=lost]:before{content:"["}tei-gap[data-tei-reason=lost]:after{content:attr(data-content) "]"}tei-gap[data-tei-reason=illegible]:after{content:attr(data-content)}tei-gi{font-family:Courier,monospace}tei-gi:before{content:"<"}tei-gi:after{content:">"}tei-head{display:block;font-family:"OpenSans",sans-serif;font-weight:700;font-size:1.5em;line-height:1.5rem}tei-body>tei-head{font-size:180%;text-indent:-0.5em}tei-div.textpart{display:none}tei-div>tei-head{font-size:170%;text-indent:-0.5em}tei-div>tei-div>tei-head{font-size:155%}tei-div>tei-div>tei-div>tei-head{font-size:140%}tei-div>tei-div>tei-div>tei-div>tei-head,list>tei-head{font-size:130%}tei-div>tei-div>tei-div>tei-div>tei-div>tei-head{font-size:120%}tei-div>tei-div>tei-div>tei-div>tei-div>tei-div tei-head{font-size:110%}tei-figure>tei-head{display:block;margin:1.5em auto 1.5em auto;padding:.5em 1.5em 1.5em 1.5em;border:1px solid #000;border-radius:15px;width:325px;position:relative;border:1px solid #aaa;background:#fafafa;text-indent:0;font-size:85%;text-align:justify;-webkit-box-shadow:0px 1px 3px rgba(0,0,0,.25);-moz-box-shadow:0px 1px 3px rgba(0,0,0,.25);box-shadow:0px 1px 3px rgba(0,0,0,.25);width:85%;font-family:Georgia,Serif;font-size:13pt}tei-hi[rend~=caps]{font-weight:bold}tei-hi[rend~=italic]{font-style:italic}tei-hi[rend~=underline]{text-decoration:underline}tei-ident{font-family:Courier,monospace}tei-incipit{font-style:italic}tei-item{display:list-item;margin-left:1em}tei-cell item{margin-left:1em}tei-l{display:block;width:35em}tei-l[data-lineno]:before{content:attr(data-lineno);position:absolute;left:2em}tei-lb:after{content:"\\a";white-space:pre}tei-lg{display:block;margin-top:1em;margin-bottom:1em}tei-list{display:block;margin-top:1em;margin-bottom:1em;list-style-type:none}tei-item>tei-list{margin-top:0}tei-sourcedesc tei-list{list-style-type:none}tei-sourcedesc>tei-list>tei-head{font-size:140%;font-weight:bold}tei-sourcedesc tei-list>tei-item{display:list-item}tei-text tei-list[type=simple]{list-style-type:none}tei-text tei-list[type=bulleted]{list-style-type:disc}tei-text tei-list[type=ordered]{list-style-type:none;counter-reset:items 0}tei-text tei-list[type=ordered]>tei-item{display:list-item;margin-left:0}tei-item>tei-list[type=ordered]{margin-left:1em}tei-text tei-list[type=ordered]>item:before{counter-increment:items 1;content:counter(items, decimal) ". "}tei-text tei-list[type=gloss]{list-style-type:none}tei-list[type=gloss]>tei-label{display:block;margin-top:.25em;margin-bottom:.25em;font-weight:bold}tei-list[type=gloss]>tei-item{margin-left:2em}tei-item>tei-list[type=ordered]{margin-left:1em}tei-listapp{display:block;margin:1em;padding:1em}tei-listbibl{display:block;list-style-type:none;margin-left:.5 em;margin-top:.5em}tei-listbibl>tei-head{font-size:120%;font-weight:bold}tei-listbibl>tei-bibl{display:list-item;margin-left:.5em}tei-listwit{display:block;list-style-type:none;margin-left:.5em}tei-listwit>tei-head{font-size:120%;font-weight:bold}tei-listwit>tei-witness{display:list-item;margin-left:2em;text-indent:-1.1em}tei-witness>tei-listwit{display:inline}tei-witness>tei-listwit>tei-head{display:inline}tei-witness>tei-listwit>tei-witness{display:inline}tei-locus{display:none}tei-milestone{display:none;margin-left:auto;margin-right:auto;text-align:center}tei-musicNotation{font-weight:bold}tei-musicNotation:before{font-weight:bold;content:"Musical Notation: "}tei-node{display:none}tei-note{display:none}tei-notesstmt{display:none}tei-ovar{font-style:italic}tei-origPlace{font-weight:bold}tei-origPlace:before{font-weight:bold;content:"Place of Origin: "}tei-p{display:block;margin-top:1em;margin-bottom:1em;text-align:justify}*[data-tei-rendition~="#center"] p{text-align:center}tei-availability>p:first-child{margin-top:0em}tei-performance{display:block;margin-top:1em;margin-bottom:1em}tei-person{display:block;margin-top:1em;margin-bottom:1em}tei-personGrp{display:block;margin-top:1em;margin-bottom:1em}tei-postscript{display:block;margin-top:2em}tei-principal{font-weight:bold}tei-principal:before{font-weight:bold;content:"Principal: "}tei-profiledesc{display:none}tei-publicationstmt>*{display:none}tei-publicationstmt{display:block;margin-top:1em;margin-bottom:1em}tei-publicationstmt>date{display:none}tei-publicationstmt>publisher{display:none}tei-q{quotes:"“" "”" "‘" "’" "“" "”" "‘" "’" "“" "”" "‘" "’" "“" "”"}tei-q:before{content:""}tei-q:after{content:""}tei-q[data-tei-next]:after{content:"" !important}tei-q[data-tei-prev]:before{content:"" !important}tei-quote{font-style:italic}tei-app tei-rdg{display:none}tei-re{display:block;margin-top:0;margin-bottom:0}tei-recordhist{display:block;margin-top:1em;margin-bottom:1em}tei-ref{color:#5f0000;text-decoration:underline;cursor:pointer}tei-remarks{font-weight:bold}tei-remarks:before{font-weight:bold;content:"remarks: "}tei-respstmt{display:block;margin-top:0;margin-bottom:0}tei-revisiondesc{display:none}tei-row{display:grid;grid-auto-flow:column;grid-auto-columns:1fr}tei-salute{display:block;margin-top:1em;margin-bottom:1em}tei-samplingdecl{display:block;margin-top:0;margin-bottom:0}tei-scriptnote{display:block;margin-top:1em;margin-bottom:1em}tei-seal{display:block;margin-top:0;margin-bottom:0}tei-seal:before{font-weight:bold;content:"Seal: "}tei-sealdesc{display:block;margin-top:1em;margin-bottom:1em}tei-secFol:before{font-weight:bold;content:"Second Folio: "}tei-secl>*:first-child:before{content:"\\a[";white-space:pre}tei-secl>*:last-child:after{content:"]\\a\\a";white-space:pre}tei-seg{outline:0px solid rgba(0,0,0,0)}tei-sense{display:block;margin-top:0;margin-bottom:0}tei-seriesstmt{display:none}tei-setting{display:block;margin-top:0;margin-bottom:0}tei-signed{display:block;margin-top:2em}tei-soCalled{quotes:"“" "”" "‘" "’" "“" "”" "‘" "’" "“" "”" "‘" "’" "“" "”"}tei-soCalled:before{content:open-quote}tei-soCalled:after{content:close-quote}tei-soCalled[data-tei-next]:after{content:"" !important}tei-soCalled[data-tei-prev]:before{content:"" !important}tei-sound{font-style:italic}tei-source{display:block;margin-top:0;margin-bottom:0}tei-sourcedesc{display:none}tei-space:before{font-weight:bold;content:""}tei-span[data-tei-data-n]:before{content:attr(data-n)}tei-speaker{font-weight:bold;margin-right:0}tei-sponsor{display:block;margin-top:0;margin-bottom:0}tei-sponsor:before{font-weight:bold;content:"Sponsor:"}tei-stage{display:block;margin-top:1em;margin-bottom:1em;font-style:italic}tei-stamp{display:block;margin-top:1em;margin-bottom:1em}tei-stamp:before{font-weight:bold;content:"Stamped: "}tei-surplus>*:first-child:before{content:"\\a[";white-space:pre}tei-surplus>*:last-child:after{content:"]\\a\\a";white-space:pre}tei-tei{display:block}tei-table{display:block;border-top:thin solid #000;border-left:thin solid #000}tei-table{margin-top:2em;margin-bottom:2em;font-size:12pt}tei-table>tei-head{border-bottom:thin solid #000;border-right:thin solid #000;font-size:120%;font-weight:bold;padding:2px;text-align:center}tei-teiheader{display:block;margin-top:2em;margin-bottom:2em}tei-tei>tei-text{display:block;line-height:1.5}tei-textclass{display:none}tei-textdesc{display:none}tei-tei tei-title{display:inline}tei-tei tei-title[level=a]{quotes:"“" "”" "‘" "’" "“" "”" "‘" "’" "“" "”" "‘" "’" "“" "”"}tei-tei tei-title[level=a]:before{content:open-quote}tei-tei tei-title[level=a]:after{content:close-quote}tei-tei tei-title[level=a][next]:after{content:"" !important}tei-tei tei-title[level=a][prev]:before{content:"" !important}tei-title[level=m]{font-style:italic}tei-titlestmt>tei-title{display:block;font-family:Arvo,sans-serif;font-weight:normal;font-weight:bold !important;font-size:150%}tei-typedesc{display:none}tei-u:before{content:"-"}tei-view{font-style:italic}tei-wit{display:inline}tei-witdetail{display:none}',""]);const p=u},3379:e=>{"use strict";var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var o={},a=[],s=0;s<e.length;s++){var l=e[s],c=i.base?l[0]+i.base:l[0],u=o[c]||0,d="".concat(c," ").concat(u);o[c]=u+1;var p=n(d),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var f=r(h,i);i.byIndex=s,t.splice(s,0,{identifier:d,updater:f,references:1})}a.push(d)}return a}function r(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var o=i(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var l=i(e,r),c=0;c<o.length;c++){var u=n(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},8174:e=>{"use strict";e.exports="data:image/png;base64,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RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICB4bWxuczppcHRjRXh0PSJodHRwOi8vaXB0Yy5vcmcvc3RkL0lwdGM0eG1wRXh0LzIwMDgtMDItMjkvIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6cGx1cz0iaHR0cDovL25zLnVzZXBsdXMub3JnL2xkZi94bXAvMS4wLyIKICAgIHhtbG5zOkdJTVA9Imh0dHA6Ly93d3cuZ2ltcC5vcmcveG1wLyIKICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICB4bXBNTTpEb2N1bWVudElEPSJnaW1wOmRvY2lkOmdpbXA6OGM5NjljZjQtNGNlMS00MDc1LWFkZWQtNTk5Y2E2M2QyNzQ2IgogICB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjJlODk1OTIzLTA4MzgtNGJjNS1hZDAxLWE4MDg0ZTI1Zjk1YSIKICAgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmFlOTEzNTU1LWMzOGItNDY4Zi1hODcwLWRjMzIwOWFhNDk4ZSIKICAgR0lNUDpBUEk9IjIuMCIKICAgR0lNUDpQbGF0Zm9ybT0iTWFjIE9TIgogICBHSU1QOlRpbWVTdGFtcD0iMTYxODU4OTAwNDUxMzAxMyIKICAgR0lNUDpWZXJzaW9uPSIyLjEwLjIyIgogICBkYzpGb3JtYXQ9ImltYWdlL3BuZyIKICAgdGlmZjpPcmllbnRhdGlvbj0iMSIKICAgeG1wOkNyZWF0b3JUb29sPSJHSU1QIDIuMTAiPgogICA8aXB0Y0V4dDpMb2NhdGlvbkNyZWF0ZWQ+CiAgICA8cmRmOkJhZy8+CiAgIDwvaXB0Y0V4dDpMb2NhdGlvbkNyZWF0ZWQ+CiAgIDxpcHRjRXh0OkxvY2F0aW9uU2hvd24+CiAgICA8cmRmOkJhZy8+CiAgIDwvaXB0Y0V4dDpMb2NhdGlvblNob3duPgogICA8aXB0Y0V4dDpBcnR3b3JrT3JPYmplY3Q+CiAgICA8cmRmOkJhZy8+CiAgIDwvaXB0Y0V4dDpBcnR3b3JrT3JPYmplY3Q+CiAgIDxpcHRjRXh0OlJlZ2lzdHJ5SWQ+CiAgICA8cmRmOkJhZy8+CiAgIDwvaXB0Y0V4dDpSZWdpc3RyeUlkPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDoxNTc3MDhjZi1jMmRjLTQ5MTktYjEzZS1iYWYxNjEyMmIwNzMiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTWFjIE9TKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMS0wNC0xNlQxMjowMzoyNC0wNDowMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgIDxwbHVzOkltYWdlU3VwcGxpZXI+CiAgICA8cmRmOlNlcS8+CiAgIDwvcGx1czpJbWFnZVN1cHBsaWVyPgogICA8cGx1czpJbWFnZUNyZWF0b3I+CiAgICA8cmRmOlNlcS8+CiAgIDwvcGx1czpJbWFnZUNyZWF0b3I+CiAgIDxwbHVzOkNvcHlyaWdodE93bmVyPgogICAgPHJkZjpTZXEvPgogICA8L3BsdXM6Q29weXJpZ2h0T3duZXI+CiAgIDxwbHVzOkxpY2Vuc29yPgogICAgPHJkZjpTZXEvPgogICA8L3BsdXM6TGljZW5zb3I+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg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"},4639:t=>{"use strict";t.exports=e},1346:e=>{"use strict";e.exports=t}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={id:e,exports:{}};return n[e].call(o.exports,o,o.exports,r),o.exports}r.m=n,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.b=document.baseURI||self.location.href,r.nc=void 0;var o={};return(()=>{"use strict";var e=r(3379),t=r.n(e),n=r(7795),i=r.n(n),o=r(569),a=r.n(o),s=r(3565),l=r.n(s),c=r(9216),u=r.n(c),d=r(4589),p=r.n(d),h=r(5369),f={};f.styleTagTransform=p(),f.setAttributes=l(),f.insert=a().bind(null,"head"),f.domAPI=i(),f.insertStyleElement=u();t()(h.Z,f),h.Z&&h.Z.locals&&h.Z.locals})(),(()=>{"use strict";r.d(o,{default:()=>jy});var e=r(4639),t=r.n(e);function n(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}function i(e,t){if(null==e)return{};var i,r,o=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)i=a[r],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(o[i]=e[i])}return o}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(this,arguments)}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e){return e&&"object"===s(e)&&e.constructor===Object}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?a({},e):e;return l(e)&&l(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(l(t[r])&&r in e?i[r]=c(e[r],t[r],n):i[r]=t[r])})),i}var u=["xs","sm","md","lg","xl"];function d(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}function p(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t,n){var i;return a({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),a({paddingLeft:t(2),paddingRight:t(2)},n,p({},e.up("sm"),a({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(i={minHeight:56},p(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),p(i,e.up("sm"),{minHeight:64}),i)},n)}function f(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}const m={black:"#000",white:"#fff"};const g={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const v={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const y={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const b={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};const w={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};const x={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};const E={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function S(e){if(e.type)return e;if("#"===e.charAt(0))return S(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(f(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function T(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function P(e){var t="hsl"===(e=S(e)).type?S(function(e){var t=(e=S(e)).values,n=t[0],i=t[1]/100,r=t[2]/100,o=i*Math.min(r,1-r),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return r-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),T({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function A(e,t){if(e=S(e),t=C(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return T(e)}function O(e,t){if(e=S(e),t=C(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return T(e)}var I={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:m.white,default:g[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},R={text:{primary:m.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:g[800],default:"#303030"},action:{active:m.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k(e,t,n,i){var r=i.light||i,o=i.dark||1.5*i;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=O(e.main,r):"dark"===t&&(e.dark=A(e.main,o)))}function D(e){var t=e.primary,n=void 0===t?{light:v[300],main:v[500],dark:v[700]}:t,r=e.secondary,o=void 0===r?{light:y.A200,main:y.A400,dark:y.A700}:r,s=e.error,l=void 0===s?{light:b[300],main:b[500],dark:b[700]}:s,u=e.warning,d=void 0===u?{light:w[300],main:w[500],dark:w[700]}:u,p=e.info,h=void 0===p?{light:x[300],main:x[500],dark:x[700]}:p,C=e.success,S=void 0===C?{light:E[300],main:E[500],dark:E[700]}:C,T=e.type,A=void 0===T?"light":T,O=e.contrastThreshold,D=void 0===O?3:O,j=e.tonalOffset,M=void 0===j?.2:j,N=i(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){var t=function(e,t){var n=P(e),i=P(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}(e,R.text.primary)>=D?R.text.primary:I.text.primary;return t}var B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=a({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(f(4,t));if("string"!=typeof e.main)throw new Error(f(5,JSON.stringify(e.main)));return k(e,"light",n,M),k(e,"dark",i,M),e.contrastText||(e.contrastText=L(e.main)),e},F={dark:R,light:I};return c(a({common:m,type:A,primary:B(n),secondary:B(o,"A400","A200","A700"),error:B(l),warning:B(d),info:B(h),success:B(S),grey:g,contrastThreshold:D,getContrastText:L,augmentColor:B,tonalOffset:M},F[A]),N)}function j(e){return Math.round(1e5*e)/1e5}function M(e){return j(e)}var N={textTransform:"uppercase"},L='"Roboto", "Helvetica", "Arial", sans-serif';function B(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?L:r,s=n.fontSize,l=void 0===s?14:s,u=n.fontWeightLight,d=void 0===u?300:u,p=n.fontWeightRegular,h=void 0===p?400:p,f=n.fontWeightMedium,m=void 0===f?500:f,g=n.fontWeightBold,v=void 0===g?700:g,y=n.htmlFontSize,b=void 0===y?16:y,w=n.allVariants,x=n.pxToRem,E=i(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var C=l/14,S=x||function(e){return"".concat(e/b*C,"rem")},T=function(e,t,n,i,r){return a({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===L?{letterSpacing:"".concat(j(i/t),"em")}:{},r,w)},P={h1:T(d,96,1.167,-1.5),h2:T(d,60,1.2,-.5),h3:T(h,48,1.167,0),h4:T(h,34,1.235,.25),h5:T(h,24,1.334,0),h6:T(m,20,1.6,.15),subtitle1:T(h,16,1.75,.15),subtitle2:T(m,14,1.57,.1),body1:T(h,16,1.5,.15),body2:T(h,14,1.43,.15),button:T(m,14,1.75,.4,N),caption:T(h,12,1.66,.4),overline:T(h,12,2.66,1,N)};return c(a({htmlFontSize:b,pxToRem:S,round:M,fontFamily:o,fontSize:l,fontWeightLight:d,fontWeightRegular:h,fontWeightMedium:m,fontWeightBold:v},P),E,{clone:!1})}function F(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const _=["none",F(0,2,1,-1,0,1,1,0,0,1,3,0),F(0,3,1,-2,0,2,2,0,0,1,5,0),F(0,3,3,-2,0,3,4,0,0,1,8,0),F(0,2,4,-1,0,4,5,0,0,1,10,0),F(0,3,5,-1,0,5,8,0,0,1,14,0),F(0,3,5,-1,0,6,10,0,0,1,18,0),F(0,4,5,-2,0,7,10,1,0,2,16,1),F(0,5,5,-3,0,8,10,1,0,3,14,2),F(0,5,6,-3,0,9,12,1,0,3,16,2),F(0,6,6,-3,0,10,14,1,0,4,18,3),F(0,6,7,-4,0,11,15,1,0,4,20,3),F(0,7,8,-4,0,12,17,2,0,5,22,4),F(0,7,8,-4,0,13,19,2,0,5,24,4),F(0,7,9,-4,0,14,21,2,0,5,26,4),F(0,8,9,-5,0,15,22,2,0,6,28,5),F(0,8,10,-5,0,16,24,2,0,6,30,5),F(0,8,11,-5,0,17,26,2,0,6,32,5),F(0,9,11,-5,0,18,28,2,0,7,34,6),F(0,9,12,-6,0,19,29,2,0,7,36,6),F(0,10,13,-6,0,20,31,3,0,8,38,7),F(0,10,13,-6,0,21,33,3,0,8,40,7),F(0,10,14,-6,0,22,35,3,0,8,42,7),F(0,11,14,-7,0,23,36,3,0,9,44,8),F(0,11,15,-7,0,24,38,3,0,9,46,8)];const z={borderRadius:4};function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function U(e,t){if(e){if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||U(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var W={xs:0,sm:600,md:960,lg:1280,xl:1920},G={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(W[e],"px)")}};const q=function(e,t){return t?c(e,t,{clone:!1}):e};var Z={m:"margin",p:"padding"},X={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Y={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},K=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!Y[e])return[e];e=Y[e]}var t=V(e.split(""),2),n=t[0],i=t[1],r=Z[n],o=X[i]||"";return Array.isArray(o)?o.map((function(e){return r+e})):[r+o]})),Q=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function J(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function $(e,t){return function(n){return e.reduce((function(e,i){return e[i]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function ee(e){var t=J(e.theme);return Object.keys(e).map((function(n){if(-1===Q.indexOf(n))return null;var i=$(K(n),t),r=e[n];return function(e,t,n){if(Array.isArray(t)){var i=e.theme.breakpoints||G;return t.reduce((function(e,r,o){return e[i.up(i.keys[o])]=n(t[o]),e}),{})}if("object"===s(t)){var r=e.theme.breakpoints||G;return Object.keys(t).reduce((function(e,i){return e[r.up(i)]=n(t[i]),e}),{})}return n(t)}(e,r,i)})).reduce(q,{})}ee.propTypes={},ee.filterProps=Q;var te={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ne={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ie(e){return"".concat(Math.round(e),"ms")}const re={easing:te,duration:ne,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?ne.standard:n,o=t.easing,a=void 0===o?te.easeInOut:o,s=t.delay,l=void 0===s?0:s;i(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:ie(r)," ").concat(a," ").concat("string"==typeof l?l:ie(l))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};const oe={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ae(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,s=e.palette,l=void 0===s?{}:s,d=e.spacing,p=e.typography,f=void 0===p?{}:p,m=i(e,["breakpoints","mixins","palette","spacing","typography"]),g=D(l),v=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,s=e.step,l=void 0===s?5:s,c=i(e,["values","unit","step"]);function d(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function p(e,t){var i=u.indexOf(t);return i===u.length-1?d(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==i&&"number"==typeof n[u[i+1]]?n[u[i+1]]:t)-l/100).concat(o,")")}return a({keys:u,values:n,up:d,down:function(e){var t=u.indexOf(e)+1,i=n[u[t]];return t===u.length?d("xs"):"@media (max-width:".concat(("number"==typeof i&&t>0?i:e)-l/100).concat(o,")")},between:p,only:function(e){return p(e,e)},width:function(e){return n[e]}},c)}(n),y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=J({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(d),b=c({breakpoints:v,direction:"ltr",mixins:h(v,y,o),overrides:{},palette:g,props:{},shadows:_,typography:B(g,f),spacing:y,shape:z,transitions:re,zIndex:oe},m),w=arguments.length,x=new Array(w>1?w-1:0),E=1;E<w;E++)x[E-1]=arguments[E];return b=x.reduce((function(e,t){return c(e,t)}),b)}const se=ae;const le=t().createContext(null);function ce(){return t().useContext(le)}const ue="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";const de=function(e){var n=e.children,i=e.theme,r=ce(),o=t().useMemo((function(){var e=null===r?i:function(e,t){return"function"==typeof t?t(e):a({},e,t)}(r,i);return null!=e&&(e[ue]=null!==r),e}),[i,r]);return t().createElement(le.Provider,{value:o},n)};function pe(e){var t=e.theme,n=e.name,i=e.props;if(!t||!t.props||!t.props[n])return i;var r,o=t.props[n];for(r in o)void 0===i[r]&&(i[r]=o[r]);return i}var he=r(9167),fe=r.n(he);const me=se();function ge(){return ce()||me}var ve=function(e,t){return!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?u.indexOf(e)<=u.indexOf(t):u.indexOf(e)<u.indexOf(t)},ye="undefined"==typeof window?e.useEffect:e.useLayoutEffect;const be=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var r=t.withTheme,o=void 0!==r&&r,s=t.noSSR,l=void 0!==s&&s,c=t.initialWidth;function u(t){var r=ge(),s=t.theme||r,u=pe({theme:s,name:"MuiWithWidth",props:a({},t)}),d=u.initialWidth,p=u.width,h=i(u,["initialWidth","width"]),f=e.useState(!1),m=f[0],g=f[1];ye((function(){g(!0)}),[]);var v=s.breakpoints.keys.slice().reverse().reduce((function(t,n){var i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=ce(),r=pe({theme:i,name:"MuiUseMediaQuery",props:{}}),o="function"==typeof t?t(i):t;o=o.replace(/^@media( ?)/m,"");var s="undefined"!=typeof window&&void 0!==window.matchMedia,l=a({},r,n),c=l.defaultMatches,u=void 0!==c&&c,d=l.matchMedia,p=void 0===d?s?window.matchMedia:null:d,h=l.noSsr,f=void 0!==h&&h,m=l.ssrMatchMedia,g=void 0===m?null:m,v=e.useState((function(){return f&&s?p(o).matches:g?g(o).matches:u})),y=v[0],b=v[1];return e.useEffect((function(){var e=!0;if(s){var t=p(o),n=function(){e&&b(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[o,p,s]),y}(s.breakpoints.up(n));return!t&&i?n:t}),null),y=a({width:p||(m||l?v:void 0)||d||c},o?{theme:s}:{},h);return void 0===y.width?null:e.createElement(n,y)}return fe()(u,n),u}};var we;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(we||(we={}));var xe=function(e){return e};var Ee="beforeunload",Ce="popstate";function Se(e){e.preventDefault(),e.returnValue=""}function Te(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function Pe(){return Math.random().toString(36).substr(2,8)}function Ae(e){var t=e.pathname,n=void 0===t?"/":t,i=e.search,r=void 0===i?"":i,o=e.hash,a=void 0===o?"":o;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function Oe(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}var Ie=r(4203),Re=r(9205),ke=r(1346),De=r.n(ke);var je=function(e){e()},Me=function(){return je},Ne=(0,e.createContext)(null);var Le=function(){throw new Error("uSES not initialized!")};var Be=r(9388),Fe=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function _e(e,t,n,i,r){var o,a,s,l,c,u=r.areStatesEqual,d=r.areOwnPropsEqual,p=r.areStatePropsEqual,h=!1;function f(r,h){var f,m,g=!d(h,a),v=!u(r,o,h,a);return o=r,a=h,g&&v?(s=e(o,a),t.dependsOnOwnProps&&(l=t(i,a)),c=n(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(i,a)),c=n(s,l,a)):v?(f=e(o,a),m=!p(f,s),s=f,m&&(c=n(s,l,a)),c):c}return function(r,u){return h?f(r,u):(s=e(o=r,a=u),l=t(i,a),c=n(s,l,a),h=!0,c)}}function ze(e){return function(t){var n=e(t);function i(){return n}return i.dependsOnOwnProps=!1,i}}function He(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Ue(e,t){return function(t,n){n.displayName;var i=function(e,t){return i.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(t,n){i.mapToProps=e,i.dependsOnOwnProps=He(e);var r=i(t,n);return"function"==typeof r&&(i.mapToProps=r,i.dependsOnOwnProps=He(r),r=i(t,n)),r},i}}function Ve(e,t){return function(n,i){throw new Error("Invalid value of type ".concat(typeof e," for ").concat(t," argument when connecting component ").concat(i.wrappedComponentName,"."))}}function We(e,t,n){return a({},n,e,t)}var Ge={notify:function(){},get:function(){return[]}};function qe(e,t){var n,i=Ge;function r(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(r):e.subscribe(r),i=function(){var e=Me(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var i=!0,r=n={callback:e,next:null,prev:n};return r.prev?r.prev.next=r:t=r,function(){i&&null!==t&&(i=!1,r.next?r.next.prev=r.prev:n=r.prev,r.prev?r.prev.next=r.next:t=r.next)}}}}())}var a={addNestedSub:function(e){return o(),i.subscribe(e)},notifyNestedSubs:function(){i.notify()},handleChangeWrapper:r,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,i.clear(),i=Ge)},getListeners:function(){return i}};return a}var Ze=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?e.useLayoutEffect:e.useEffect;function Xe(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Ye(e,t){if(Xe(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Xe(e[n[r]],t[n[r]]))return!1;return!0}function Ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||Je(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qe(e){return function(e){if(Array.isArray(e))return $e(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Je(e)||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 Je(e,t){if(e){if("string"==typeof e)return $e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$e(e,t):void 0}}function $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var et=["reactReduxForwardedRef"],tt=Le,nt=[null,null];function it(e,t,n,i,r,o){e.current=i,n.current=!1,r.current&&(r.current=null,o())}function rt(e,t){return e===t}const ot=function(i,r,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=(s.pure,s.areStatesEqual),c=void 0===l?rt:l,u=s.areOwnPropsEqual,d=void 0===u?Ye:u,p=s.areStatePropsEqual,h=void 0===p?Ye:p,f=s.areMergedPropsEqual,m=void 0===f?Ye:f,g=s.forwardRef,v=void 0!==g&&g,y=s.context,b=void 0===y?Ne:y,w=function(e){return e?"function"==typeof e?Ue(e):Ve(e,"mapStateToProps"):ze((function(){return{}}))}(i),x=function(e){return e&&"object"==typeof e?ze((function(t){return function(e,t){var n={},i=function(){var i=e[r];"function"==typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var r in e)i();return n}(e,t)})):e?"function"==typeof e?Ue(e):Ve(e,"mapDispatchToProps"):ze((function(e){return{dispatch:e}}))}(r),E=function(e){return e?"function"==typeof e?function(e){return function(t,n){n.displayName;var i,r=n.areMergedPropsEqual,o=!1;return function(t,n,a){var s=e(t,n,a);return o?r(s,i)||(i=s):(o=!0,i=s),i}}}(e):Ve(e,"mergeProps"):function(){return We}}(o),C=Boolean(i);return function(i){var r=i.displayName||i.name||"Component",o="Connect(".concat(r,")"),s={shouldHandleStateChanges:C,displayName:o,wrappedComponentName:r,WrappedComponent:i,initMapStateToProps:w,initMapDispatchToProps:x,initMergeProps:E,areStatesEqual:c,areStatePropsEqual:h,areOwnPropsEqual:d,areMergedPropsEqual:m};function l(r){var o=(0,e.useMemo)((function(){var e=r.reactReduxForwardedRef,t=n(r,et);return[r.context,e,t]}),[r]),l=Ke(o,3),c=l[0],u=l[1],d=l[2],p=(0,e.useMemo)((function(){return c&&c.Consumer&&(0,Be.isContextConsumer)(t().createElement(c.Consumer,null))?c:b}),[c,b]),h=(0,e.useContext)(p),f=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch),m=Boolean(h)&&Boolean(h.store);var g=f?r.store:h.store,v=m?h.getServerState:g.getState,y=(0,e.useMemo)((function(){return function(e,t){var i=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,a=n(t,Fe);return _e(i(e,a),r(e,a),o(e,a),e,a)}(g.dispatch,s)}),[g]),w=(0,e.useMemo)((function(){if(!C)return nt;var e=qe(g,f?void 0:h.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[g,f,h]),x=Ke(w,2),E=x[0],S=x[1],T=(0,e.useMemo)((function(){return f?h:a({},h,{subscription:E})}),[f,h,E]),P=(0,e.useRef)(),A=(0,e.useRef)(d),O=(0,e.useRef)(),I=(0,e.useRef)(!1),R=((0,e.useRef)(!1),(0,e.useRef)(!1)),k=(0,e.useRef)();Ze((function(){return R.current=!0,function(){R.current=!1}}),[]);var D,j,M,N,L=(0,e.useMemo)((function(){return function(){return O.current&&d===A.current?O.current:y(g.getState(),d)}}),[g,d]),B=(0,e.useMemo)((function(){return function(e){return E?function(e,t,n,i,r,o,a,s,l,c,u){if(!e)return function(){};var d=!1,p=null,h=function(){if(!d&&s.current){var e,n,h=t.getState();try{e=i(h,r.current)}catch(e){n=e,p=e}n||(p=null),e===o.current?a.current||c():(o.current=e,l.current=e,a.current=!0,u())}};return n.onStateChange=h,n.trySubscribe(),h(),function(){if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(C,g,E,y,A,P,I,R,O,S,e):function(){}}}),[E]);D=it,j=[A,P,I,d,O,S],Ze((function(){return D.apply(void 0,Qe(j))}),M);try{N=tt(B,L,v?function(){return y(v(),d)}:L)}catch(e){throw k.current&&(e.message+="\nThe error may be correlated with this previous error:\n".concat(k.current.stack,"\n\n")),e}Ze((function(){k.current=void 0,O.current=void 0,P.current=N}));var F=(0,e.useMemo)((function(){return t().createElement(i,a({},N,{ref:u}))}),[u,i,N]);return(0,e.useMemo)((function(){return C?t().createElement(p.Provider,{value:T},F):F}),[p,F,T])}var u=t().memo(l);if(u.WrappedComponent=i,u.displayName=l.displayName=o,v){var p=t().forwardRef((function(e,n){return t().createElement(u,a({},e,{reactReduxForwardedRef:n}))}));return p.displayName=o,p.WrappedComponent=i,fe()(p,i)}return fe()(u,i)}};const at=function(n){var i=n.store,r=n.context,o=n.children,a=n.serverState,s=(0,e.useMemo)((function(){var e=qe(i);return{store:i,subscription:e,getServerState:a?function(){return a}:void 0}}),[i,a]),l=(0,e.useMemo)((function(){return i.getState()}),[i]);Ze((function(){var e=s.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==i.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=void 0}}),[s,l]);var c=r||Ne;return t().createElement(c.Provider,{value:s},o)};var st,lt,ct;function ut(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,pt(i.key),i)}}function dt(e,t,n){return t&&ut(e.prototype,t),n&&ut(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pt(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ft(e){var t=vt();return function(){var n,i=bt(e);if(t){var r=bt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function mt(e){var t="function"==typeof Map?new Map:void 0;return mt=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return gt(e,arguments,bt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),yt(n,e)},mt(e)}function gt(e,t,n){return gt=vt()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&yt(r,n.prototype),r},gt.apply(null,arguments)}function vt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function yt(e,t){return yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yt(e,t)}function bt(e){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bt(e)}function wt(e,t){return Et(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||Tt(e,t)||xt()}function xt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Et(e){if(Array.isArray(e))return e}function Ct(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Tt(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function St(e){return function(e){if(Array.isArray(e))return At(e)}(e)||Pt(e)||Tt(e)||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 Tt(e,t){if(e){if("string"==typeof e)return At(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function Pt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ot.apply(this,arguments)}st=Re.useSyncExternalStoreWithSelector,function(e){tt=e}(Ie.useSyncExternalStore),lt=ke.unstable_batchedUpdates,je=lt,function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(ct||(ct={}));var It,Rt="popstate";function kt(e,t){if(!1===e||null==e)throw new Error(t)}function Dt(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function jt(e,t){return{usr:e.state,key:e.key,idx:t}}function Mt(e,t,n,i){return void 0===n&&(n=null),Ot({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?Lt(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function Nt(e){var t=e.pathname,n=void 0===t?"/":t,i=e.search,r=void 0===i?"":i,o=e.hash,a=void 0===o?"":o;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function Lt(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function Bt(e,t,n,i){void 0===i&&(i={});var r=i,o=r.window,a=void 0===o?document.defaultView:o,s=r.v5Compat,l=void 0!==s&&s,c=a.history,u=ct.Pop,d=null,p=h();function h(){return(c.state||{idx:null}).idx}function f(){u=ct.Pop;var e=h(),t=null==e?null:e-p;p=e,d&&d({action:u,location:g.location,delta:t})}function m(e){var t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeof e?e:Nt(e);return kt(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==p&&(p=0,c.replaceState(Ot({},c.state,{idx:p}),""));var g={get action(){return u},get location(){return e(a,c)},listen:function(e){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(Rt,f),d=e,function(){a.removeEventListener(Rt,f),d=null}},createHref:function(e){return t(a,e)},createURL:m,encodeLocation:function(e){var t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){u=ct.Push;var i=Mt(g.location,e,t);n&&n(i,e);var r=jt(i,p=h()+1),o=g.createHref(i);try{c.pushState(r,"",o)}catch(e){a.location.assign(o)}l&&d&&d({action:u,location:g.location,delta:1})},replace:function(e,t){u=ct.Replace;var i=Mt(g.location,e,t);n&&n(i,e);var r=jt(i,p=h()),o=g.createHref(i);c.replaceState(r,"",o),l&&d&&d({action:u,location:g.location,delta:0})},go:function(e){return c.go(e)}};return g}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(It||(It={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function Ft(e,t,n){void 0===n&&(n="/");var i=Jt(("string"==typeof t?Lt(t):t).pathname||"/",n);if(null==i)return null;var r=_t(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(r);for(var o=null,a=0;null==o&&a<r.length;++a)o=Yt(r[a],Qt(i));return o}function _t(e,t,n,i){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i="");var r=function(e,r,o){var a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};a.relativePath.startsWith("/")&&(kt(a.relativePath.startsWith(i),'Absolute route path "'+a.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(i.length));var s=nn([i,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(kt(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),_t(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:Xt(s,e.index),routesMeta:l})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var i,o=Ct(zt(e.path));try{for(o.s();!(i=o.n()).done;){var a=i.value;r(e,t,a)}}catch(e){o.e(e)}finally{o.f()}}else r(e,t)})),t}function zt(e){var t=e.split("/");if(0===t.length)return[];var n,i=Et(n=t)||Pt(n)||Tt(n)||xt(),r=i[0],o=i.slice(1),a=r.endsWith("?"),s=r.replace(/\?$/,"");if(0===o.length)return a?[s,""]:[s];var l=zt(o.join("/")),c=[];return c.push.apply(c,St(l.map((function(e){return""===e?s:[s,e].join("/")})))),a&&c.push.apply(c,St(l)),c.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var Ht=/^:\w+$/,Ut=3,Vt=2,Wt=1,Gt=10,qt=-2,Zt=function(e){return"*"===e};function Xt(e,t){var n=e.split("/"),i=n.length;return n.some(Zt)&&(i+=qt),t&&(i+=Vt),n.filter((function(e){return!Zt(e)})).reduce((function(e,t){return e+(Ht.test(t)?Ut:""===t?Wt:Gt)}),i)}function Yt(e,t){for(var n=e.routesMeta,i={},r="/",o=[],a=0;a<n.length;++a){var s=n[a],l=a===n.length-1,c="/"===r?t:t.slice(r.length)||"/",u=Kt({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c);if(!u)return null;Object.assign(i,u.params);var d=s.route;o.push({params:i,pathname:nn([r,u.pathname]),pathnameBase:rn(nn([r,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(r=nn([r,u.pathnameBase]))}return o}function Kt(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);Dt("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');var i=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(function(e,t){return i.push(t),"/([^\\/]+)"}));e.endsWith("*")?(i.push("*"),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))");var o=new RegExp(r,t?void 0:"i");return[o,i]}(e.path,e.caseSensitive,e.end),i=wt(n,2),r=i[0],o=i[1],a=t.match(r);if(!a)return null;var s=a[0],l=s.replace(/(.)\/+$/,"$1"),c=a.slice(1),u=o.reduce((function(e,t,n){if("*"===t){var i=c[n]||"";l=s.slice(0,s.length-i.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return Dt(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(c[n]||"",t),e}),{});return{params:u,pathname:s,pathnameBase:l,pattern:e}}function Qt(e){try{return decodeURI(e)}catch(t){return Dt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Jt(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&"/"!==i?null:e.slice(n)||"/"}function $t(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function en(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function tn(e,t,n,i){var r;void 0===i&&(i=!1),"string"==typeof e?r=Lt(e):(kt(!(r=Ot({},e)).pathname||!r.pathname.includes("?"),$t("?","pathname","search",r)),kt(!r.pathname||!r.pathname.includes("#"),$t("#","pathname","hash",r)),kt(!r.search||!r.search.includes("#"),$t("#","search","hash",r)));var o,a=""===e||""===r.pathname,s=a?"/":r.pathname;if(i||null==s)o=n;else{var l=t.length-1;if(s.startsWith("..")){for(var c=s.split("/");".."===c[0];)c.shift(),l-=1;r.pathname=c.join("/")}o=l>=0?t[l]:"/"}var u=function(e,t){void 0===t&&(t="/");var n="string"==typeof e?Lt(e):e,i=n.pathname,r=n.search,o=void 0===r?"":r,a=n.hash,s=void 0===a?"":a,l=i?i.startsWith("/")?i:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(i,t):t;return{pathname:l,search:on(o),hash:an(s)}}(r,o),d=s&&"/"!==s&&s.endsWith("/"),p=(a||"."===s)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!p||(u.pathname+="/"),u}var nn=function(e){return e.join("/").replace(/\/\/+/g,"/")},rn=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},on=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},an=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},sn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yt(e,t)}(n,e);var t=ft(n);function n(){return ht(this,n),t.apply(this,arguments)}return dt(n)}(mt(Error));function ln(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var cn=["post","put","patch","delete"],un=(new Set(cn),["get"].concat(cn));new Set(un),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;Symbol("deferred");function dn(e){return function(e){if(Array.isArray(e))return hn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pn(e)||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 pn(e,t){if(e){if("string"==typeof e)return hn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hn(e,t):void 0}}function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,vn(i.key),i)}}function gn(e,t,n){return t&&mn(e.prototype,t),n&&mn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vn(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function yn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bn(e,t)}function bn(e,t){return bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bn(e,t)}function wn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=xn(e);if(t){var r=xn(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function xn(e){return xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xn(e)}function En(){return En=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},En.apply(this,arguments)}var Cn=e.createContext(null);var Sn=e.createContext(null);var Tn=e.createContext(null);var Pn=e.createContext(null);var An=e.createContext(null);var On=e.createContext({outlet:null,matches:[],isDataRoute:!1});var In=e.createContext(null);function Rn(){return null!=e.useContext(An)}function kn(){return Rn()||kt(!1),e.useContext(An).location}function Dn(t){e.useContext(Pn).static||e.useLayoutEffect(t)}function jn(){var t,n,i;return e.useContext(On).isDataRoute?(t=Un(Ln.UseNavigateStable).router,n=Wn(Bn.UseNavigateStable),i=e.useRef(!1),Dn((function(){i.current=!0})),e.useCallback((function(e,r){void 0===r&&(r={}),i.current&&("number"==typeof e?t.navigate(e):t.navigate(e,En({fromRouteId:n},r)))}),[t,n])):function(){Rn()||kt(!1);var t=e.useContext(Pn),n=t.basename,i=t.navigator,r=e.useContext(On).matches,o=kn().pathname,a=JSON.stringify(en(r).map((function(e){return e.pathnameBase}))),s=e.useRef(!1);Dn((function(){s.current=!0}));var l=e.useCallback((function(e,t){if(void 0===t&&(t={}),s.current)if("number"!=typeof e){var r=tn(e,JSON.parse(a),o,"path"===t.relative);"/"!==n&&(r.pathname="/"===r.pathname?n:nn([n,r.pathname])),(t.replace?i.replace:i.push)(r,t.state,t)}else i.go(e)}),[n,i,a,o]);return l}()}function Mn(t,n,i){Rn()||kt(!1);var r,o=e.useContext(Pn).navigator,a=e.useContext(On).matches,s=a[a.length-1],l=s?s.params:{},c=(s&&s.pathname,s?s.pathnameBase:"/"),u=(s&&s.route,kn());if(n){var d,p="string"==typeof n?Lt(n):n;"/"===c||(null==(d=p.pathname)?void 0:d.startsWith(c))||kt(!1),r=p}else r=u;var h=r.pathname||"/",f=Ft(t,{pathname:"/"===c?h:h.slice(c.length)||"/"});var m=Hn(f&&f.map((function(e){return Object.assign({},e,{params:Object.assign({},l,e.params),pathname:nn([c,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:nn([c,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),a,i);return n&&m?e.createElement(An.Provider,{value:{location:En({pathname:"/",search:"",hash:"",state:null,key:"default"},r),navigationType:ct.Pop}},m):m}function Nn(){var t=function(){var t,n=e.useContext(In),i=Vn(Bn.UseRouteError),r=Wn(Bn.UseRouteError);if(n)return n;return null==(t=i.errors)?void 0:t[r]}(),n=ln(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),i=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},n),i?e.createElement("pre",{style:o},i):null,null)}var Ln,Bn,Fn=e.createElement(Nn,null),_n=function(t){yn(i,t);var n=wn(i);function i(e){var t;return fn(this,i),(t=n.call(this,e)).state={location:e.location,revalidation:e.revalidation,error:e.error},t}return gn(i,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return this.state.error?e.createElement(On.Provider,{value:this.props.routeContext},e.createElement(In.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}}]),i}(e.Component);function zn(t){var n=t.routeContext,i=t.match,r=t.children,o=e.useContext(Cn);return o&&o.static&&o.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=i.route.id),e.createElement(On.Provider,{value:n},r)}function Hn(t,n,i){var r;if(void 0===n&&(n=[]),void 0===i&&(i=null),null==t){var o;if(null==(o=i)||!o.errors)return null;t=i.matches}var a=t,s=null==(r=i)?void 0:r.errors;if(null!=s){var l=a.findIndex((function(e){return e.route.id&&(null==s?void 0:s[e.route.id])}));l>=0||kt(!1),a=a.slice(0,Math.min(a.length,l+1))}return a.reduceRight((function(t,r,o){var l=r.route.id?null==s?void 0:s[r.route.id]:null,c=null;i&&(c=r.route.errorElement||Fn);var u=n.concat(a.slice(0,o+1)),d=function(){var n;return n=l?c:r.route.Component?e.createElement(r.route.Component,null):r.route.element?r.route.element:t,e.createElement(zn,{match:r,routeContext:{outlet:t,matches:u,isDataRoute:null!=i},children:n})};return i&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?e.createElement(_n,{location:i.location,revalidation:i.revalidation,component:c,error:l,children:d(),routeContext:{outlet:null,matches:u,isDataRoute:!0}}):d()}),null)}function Un(t){var n=e.useContext(Cn);return n||kt(!1),n}function Vn(t){var n=e.useContext(Sn);return n||kt(!1),n}function Wn(t){var n=function(t){var n=e.useContext(On);return n||kt(!1),n}(),i=n.matches[n.matches.length-1];return i.route.id||kt(!1),i.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(Ln||(Ln={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(Bn||(Bn={}));var Gn;function qn(t){var n=t.to,i=t.replace,r=t.state,o=t.relative;Rn()||kt(!1);var a=e.useContext(On).matches,s=kn().pathname,l=jn(),c=tn(n,en(a).map((function(e){return e.pathnameBase})),s,"path"===o),u=JSON.stringify(c);return e.useEffect((function(){return l(JSON.parse(u),{replace:i,state:r,relative:o})}),[l,u,o,i,r]),null}function Zn(e){kt(!1)}function Xn(t){var n=t.basename,i=void 0===n?"/":n,r=t.children,o=void 0===r?null:r,a=t.location,s=t.navigationType,l=void 0===s?ct.Pop:s,c=t.navigator,u=t.static,d=void 0!==u&&u;Rn()&&kt(!1);var p=i.replace(/^\/*/,"/"),h=e.useMemo((function(){return{basename:p,navigator:c,static:d}}),[p,c,d]);"string"==typeof a&&(a=Lt(a));var f=a,m=f.pathname,g=void 0===m?"/":m,v=f.search,y=void 0===v?"":v,b=f.hash,w=void 0===b?"":b,x=f.state,E=void 0===x?null:x,C=f.key,S=void 0===C?"default":C,T=e.useMemo((function(){var e=Jt(g,p);return null==e?null:{location:{pathname:e,search:y,hash:w,state:E,key:S},navigationType:l}}),[p,g,y,w,E,S,l]);return null==T?null:e.createElement(Pn.Provider,{value:h},e.createElement(An.Provider,{children:o,value:T}))}function Yn(e){var t=e.children,n=e.location;return Mn(Qn(t),n)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(Gn||(Gn={}));var Kn=new Promise((function(){}));e.Component;function Qn(t,n){void 0===n&&(n=[]);var i=[];return e.Children.forEach(t,(function(t,r){if(e.isValidElement(t)){var o=[].concat(dn(n),[r]);if(t.type!==e.Fragment){t.type!==Zn&&kt(!1),t.props.index&&t.props.children&&kt(!1);var a={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(a.children=Qn(t.props.children,o)),i.push(a)}else i.push.apply(i,Qn(t.props.children,o))}})),i}function Jn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||$n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $n(e,t){if(e){if("string"==typeof e)return ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ei(e,t):void 0}}function ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ti(t){var n,i=t.basename,r=t.children,o=t.window,a=e.useRef();null==a.current&&(a.current=(void 0===(n={window:o,v5Compat:!0})&&(n={}),Bt((function(e,t){var n=Lt(e.location.hash.substr(1)),i=n.pathname,r=void 0===i?"/":i,o=n.search,a=void 0===o?"":o,s=n.hash;return Mt("",{pathname:r,search:a,hash:void 0===s?"":s},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){var n=e.document.querySelector("base"),i="";if(n&&n.getAttribute("href")){var r=e.location.href,o=r.indexOf("#");i=-1===o?r:r.slice(0,o)}return i+"#"+("string"==typeof t?t:Nt(t))}),(function(e,t){Dt("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),n)));var s=a.current,l=Jn(e.useState({action:s.action,location:s.location}),2),c=l[0],u=l[1];return e.useLayoutEffect((function(){return s.listen(u)}),[s]),e.createElement(Xn,{basename:i,children:r,location:c.location,navigationType:c.action,navigator:s})}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;var ni,ii;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(ni||(ni={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(ii||(ii={}));function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function oi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){ai(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ai(e,t,n){return(t=li(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function si(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,li(i.key),i)}}function li(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function ci(e,t){return ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ci(e,t)}function ui(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=pi(e);if(t){var r=pi(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return di(e)}(this,n)}}function di(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pi(e){return pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pi(e)}var hi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ci(e,t)}(a,e);var n,i,r,o=ui(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this)).onDrag=function(e){if(t.dragging){var n=window.innerWidth-t.dividerWidth,i=e.clientX-t.dividerWidth/2,r=n-i;i>t.leftPaneMinWidth&&r>t.rightPaneMinWidth&&(t.splitFraction=0===n?0:i/n,t.updateUI()),t.updatePaneSize()}},t.onStartDrag=function(e){t.dragging=!0},t.onEndDrag=function(e){t.dragging=!1},t.onResize=function(e){t.updatePaneSize()},t.firstFolio=e.document.folios[0],t.rightPaneMinWidth=200,t.leftPaneMinWidth=200,t.splitFraction=.5,t.dividerWidth=16;var n=window.innerWidth,i=n/2/n,r=1-i;return t.state={style:{gridTemplateColumns:"".concat(i,"fr ").concat(t.dividerWidth,"px ").concat(r,"fr")}},t.dragging=!1,t.onDrag=t.onDrag.bind(di(t)),t.onResize=t.onResize.bind(di(t)),t.onEndDrag=t.onEndDrag.bind(di(t)),t.updatePaneSize=t.updatePaneSize.bind(di(t)),t.updatePaneSize=t.updatePaneSize.bind(di(t)),t}return n=a,(i=[{key:"updateUI",value:function(){var e=this.splitFraction,t=1-e;this.setState(oi(oi({},this.state),{},{style:oi(oi({},this.state.style),{},{gridTemplateColumns:"".concat(e,"fr ").concat(this.dividerWidth,"px ").concat(t,"fr")})}))}},{key:"updatePaneSize",value:function(){var e=Math.floor(Math.abs(window.innerWidth*this.splitFraction)),t=Math.floor(window.innerWidth*(1-this.splitFraction));this.props.onWidth&&e>=this.leftPaneMinWidth&&this.props.onWidth(e,t)}},{key:"componentDidMount",value:function(){if(this.updateUI(),window.addEventListener("mousemove",this.onDrag),window.addEventListener("mouseup",this.onEndDrag),window.addEventListener("resize",this.onResize),this.props.onWidth){var e=Math.floor(Math.abs(window.innerWidth*this.splitFraction)),t=Math.floor(window.innerWidth*(1-this.splitFraction));this.props.onWidth(e,t)}}},{key:"componentWillUnmount",value:function(){window.removeEventListener("mousemove",this.onDrag),window.removeEventListener("mouseup",this.onEndDrag),window.removeEventListener("resize",this.onResize)}},{key:"renderDivider",value:function(){return t().createElement("div",{className:"divider",onMouseDown:this.onStartDrag},t().createElement("div",{className:"drawer-button hidden",onClick:this.onDrawerButton},t().createElement("i",{className:"drawer-icon fas fa-caret-left fa-2x"}," ")))}},{key:"render",value:function(){return t().createElement("div",{className:"split-pane-view",style:oi({},this.state.style)},this.props.leftPane,this.renderDivider(),this.props.rightPane)}}])&&si(n.prototype,i),r&&si(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const fi=ot((function(e){return{document:e.document}}))(hi);function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mi(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vi(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var yi="function"==typeof Symbol&&Symbol.observable||"@@observable",bi=function(){return Math.random().toString(36).substring(7).split("").join(".")},wi={INIT:"@@redux/INIT"+bi(),REPLACE:"@@redux/REPLACE"+bi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+bi()}};function xi(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ei(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(vi(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(vi(1));return n(Ei)(e,t)}if("function"!=typeof e)throw new Error(vi(2));var r=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(vi(3));return o}function d(e){if("function"!=typeof e)throw new Error(vi(4));if(l)throw new Error(vi(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(vi(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!xi(e))throw new Error(vi(7));if(void 0===e.type)throw new Error(vi(8));if(l)throw new Error(vi(9));try{l=!0,o=r(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:wi.INIT}),(i={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(vi(10));r=e,p({type:wi.REPLACE})}})[yi]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(vi(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[yi]=function(){return this},e},i}function Ci(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var r=t[i];0,"function"==typeof e[r]&&(n[r]=e[r])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:wi.INIT}))throw new Error(vi(12));if(void 0===n(void 0,{type:wi.PROBE_UNKNOWN_ACTION()}))throw new Error(vi(13))}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var i=!1,r={},s=0;s<a.length;s++){var l=a[s],c=n[l],u=e[l],d=c(u,t);if(void 0===d){t&&t.type;throw new Error(vi(14))}r[l]=d,i=i||d!==u}return(i=i||a.length!==Object.keys(e).length)?r:e}}function Si(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Ti=function(e){return"@@redux-saga/"+e},Pi=Ti("CANCEL_PROMISE"),Ai=Ti("CHANNEL_END"),Oi=Ti("IO"),Ii=Ti("MATCH"),Ri=Ti("MULTICAST"),ki=Ti("SAGA_ACTION"),Di=Ti("SELF_CANCELLATION"),ji=Ti("TASK"),Mi=Ti("TASK_CANCEL"),Ni=Ti("TERMINATE"),Li=Ti("LOCATION"),Bi=function(e){return null==e},Fi=function(e){return null!=e},_i=function(e){return"function"==typeof e},zi=function(e){return"string"==typeof e},Hi=Array.isArray,Ui=function(e){return e&&_i(e.then)},Vi=function(e){return e&&_i(e.next)&&_i(e.throw)},Wi=function e(t){return t&&(zi(t)||Zi(t)||_i(t)||Hi(t)&&t.every(e))},Gi=function(e){return e&&_i(e.take)&&_i(e.close)},qi=function(e){return _i(e)&&e.hasOwnProperty("toString")},Zi=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},Xi=function(e){return Gi(e)&&e[Ri]};var Yi=function(e){return function(){return e}}(!0),Ki=function(){};var Qi=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var Ji=function(e,t){a(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function $i(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var er=function(e){throw e},tr=function(e){return{value:e,done:!0}};function nr(e,t,n){void 0===t&&(t=er),void 0===n&&(n="iterator");var i={meta:{name:n},next:e,throw:t,return:tr,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(i[Symbol.iterator]=function(){return i}),i}function ir(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var rr=function(e){return Array.apply(null,new Array(e))},or=function(e){return function(t){return e(Object.defineProperty(t,ki,{value:!0}))}},ar=function(e){return e===Ni},sr=function(e){return e===Mi},lr=function(e){return ar(e)||sr(e)};function cr(e,t){var n=Object.keys(e),i=n.length;var r,o=0,a=Hi(e)?rr(i):{},s={};return n.forEach((function(e){var n=function(n,s){r||(s||lr(n)?(t.cancel(),t(n,s)):(a[e]=n,++o===i&&(r=!0,t(a))))};n.cancel=Ki,s[e]=n})),t.cancel=function(){r||(r=!0,n.forEach((function(e){return s[e].cancel()})))},s}function ur(e){return{name:e.name||"anonymous",location:dr(e)}}function dr(e){return e[Li]}function pr(e,t){void 0===e&&(e=10);var n=new Array(e),i=0,r=0,o=0,a=function(t){n[r]=t,r=(r+1)%e,i++},s=function(){if(0!=i){var t=n[o];return n[o]=null,i--,o=(o+1)%e,t}},l=function(){for(var e=[];i;)e.push(s());return e};return{isEmpty:function(){return 0==i},put:function(s){var c;if(i<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[r]=s,o=r=(r+1)%e;break;case 4:c=2*e,n=l(),i=n.length,r=n.length,o=0,n.length=c,e=c,a(s)}},take:s,flush:l}}var hr=function(e){return pr(e,4)},fr="TAKE",mr="PUT",gr="ALL",vr="RACE",yr="CALL",br="CPS",wr="FORK",xr="JOIN",Er="CANCEL",Cr="SELECT",Sr="ACTION_CHANNEL",Tr="CANCELLED",Pr="FLUSH",Ar="GET_CONTEXT",Or="SET_CONTEXT",Ir=function(e,t){var n;return(n={})[Oi]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Rr(e,t){return void 0===e&&(e="*"),Wi(e)?(Fi(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Ir(fr,{pattern:e})):Xi(e)&&Fi(t)&&Wi(t)?Ir(fr,{channel:e,pattern:t}):Gi(e)?(Fi(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Ir(fr,{channel:e})):void 0}function kr(e,t){return Bi(t)&&(t=e,e=void 0),Ir(mr,{channel:e,action:t})}function Dr(e,t){var n,i=null;return _i(e)?n=e:(Hi(e)?(i=e[0],n=e[1]):(i=e.context,n=e.fn),i&&zi(n)&&_i(i[n])&&(n=i[n])),{context:i,fn:n,args:t}}function jr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Ir(wr,Dr(e,n))}function Mr(e){void 0===e&&(e=Qi);for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Ir(Cr,{selector:e,args:n})}function Nr(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}const Lr=Nr;var Br=[],Fr=0;function _r(e){try{Ur(),e()}finally{Vr()}}function zr(e){Br.push(e),Fr||(Ur(),Wr())}function Hr(e){try{return Ur(),e()}finally{Wr()}}function Ur(){Fr++}function Vr(){Fr--}function Wr(){var e;for(Vr();!Fr&&void 0!==(e=Br.shift());)_r(e)}var Gr=function(e){return function(t){return e.some((function(e){return Kr(e)(t)}))}},qr=function(e){return function(t){return e(t)}},Zr=function(e){return function(t){return t.type===String(e)}},Xr=function(e){return function(t){return t.type===e}},Yr=function(){return Yi};function Kr(e){var t="*"===e?Yr:zi(e)?Zr:Hi(e)?Gr:qi(e)?Zr:_i(e)?qr:Zi(e)?Xr:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var Qr={type:Ai},Jr=function(e){return e&&e.type===Ai};function $r(e){void 0===e&&(e=hr());var t=!1,n=[];return{take:function(i){t&&e.isEmpty()?i(Qr):e.isEmpty()?(n.push(i),i.cancel=function(){$i(n,i)}):i(e.take())},put:function(i){if(!t){if(0===n.length)return e.put(i);n.shift()(i)}},flush:function(n){t&&e.isEmpty()?n(Qr):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var i=0,r=e.length;i<r;i++){(0,e[i])(Qr)}}}}}function eo(){var e=function(){var e,t=!1,n=[],i=n,r=function(){i===n&&(i=n.slice())},o=function(){t=!0;var e=n=i;i=[],e.forEach((function(e){e(Qr)}))};return(e={})[Ri]=!0,e.put=function(e){if(!t)if(Jr(e))o();else for(var r=n=i,a=0,s=r.length;a<s;a++){var l=r[a];l[Ii](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=Yr),t?e(Qr):(e[Ii]=n,r(),i.push(e),e.cancel=function(e){var t=!1;return function(){t||(t=!0,e())}}((function(){r(),$i(i,e)})))},e.close=o,e}(),t=e.put;return e.put=function(e){e[ki]?t(e):zr((function(){t(e)}))},e}var to=0,no=1,io=2,ro=3;function oo(e,t){var n=e[Pi];_i(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var ao,so=0,lo=function(){return++so};function co(e){e.isRunning()&&e.cancel()}var uo=((ao={})[fr]=function(e,t,n){var i=t.channel,r=void 0===i?e.channel:i,o=t.pattern,a=t.maybe,s=function(e){e instanceof Error?n(e,!0):!Jr(e)||a?n(e):n(Ni)};try{r.take(s,Fi(o)?Kr(o):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},ao[mr]=function(e,t,n){var i=t.channel,r=t.action,o=t.resolve;zr((function(){var t;try{t=(i?i.put:e.dispatch)(r)}catch(e){return void n(e,!0)}o&&Ui(t)?oo(t,n):n(t)}))},ao[gr]=function(e,t,n,i){var r=i.digestEffect,o=so,a=Object.keys(t);if(0!==a.length){var s=cr(t,n);a.forEach((function(e){r(t[e],o,s[e],e)}))}else n(Hi(t)?[]:{})},ao[vr]=function(e,t,n,i){var r=i.digestEffect,o=so,a=Object.keys(t),s=Hi(t)?rr(a.length):{},l={},c=!1;a.forEach((function(e){var t=function(t,i){c||(i||lr(t)?(n.cancel(),n(t,i)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=Ki,l[e]=t})),n.cancel=function(){c||(c=!0,a.forEach((function(e){return l[e].cancel()})))},a.forEach((function(e){c||r(t[e],o,l[e],e)}))},ao[yr]=function(e,t,n,i){var r=t.context,o=t.fn,a=t.args,s=i.task;try{var l=o.apply(r,a);if(Ui(l))return void oo(l,n);if(Vi(l))return void Eo(e,l,s.context,so,ur(o),!1,n);n(l)}catch(e){n(e,!0)}},ao[br]=function(e,t,n){var i=t.context,r=t.fn,o=t.args;try{var a=function(e,t){Bi(e)?n(t):n(e,!0)};r.apply(i,o.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},ao[wr]=function(e,t,n,i){var r=t.context,o=t.fn,a=t.args,s=t.detached,l=i.task,c=function(e){var t=e.context,n=e.fn,i=e.args;try{var r=n.apply(t,i);if(Vi(r))return r;var o=!1;return nr((function(e){return o?{value:e,done:!0}:(o=!0,{value:r,done:!Ui(r)})}))}catch(e){return nr((function(){throw e}))}}({context:r,fn:o,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:ur(t)}(c,o);Hr((function(){var t=Eo(e,c,l.context,so,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},ao[xr]=function(e,t,n,i){var r=i.task,o=function(e,t){if(e.isRunning()){var n={task:r,cb:t};t.cancel=function(){e.isRunning()&&$i(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(Hi(t)){if(0===t.length)return void n([]);var a=cr(t,n);t.forEach((function(e,t){o(e,a[t])}))}else o(t,n)},ao[Er]=function(e,t,n,i){var r=i.task;t===Di?co(r):Hi(t)?t.forEach(co):co(t),n()},ao[Cr]=function(e,t,n){var i=t.selector,r=t.args;try{n(i.apply(void 0,[e.getState()].concat(r)))}catch(e){n(e,!0)}},ao[Sr]=function(e,t,n){var i=t.pattern,r=$r(t.buffer),o=Kr(i),a=function t(n){Jr(n)||e.channel.take(t,o),r.put(n)},s=r.close;r.close=function(){a.cancel(),s()},e.channel.take(a,o),n(r)},ao[Tr]=function(e,t,n,i){n(i.task.isCancelled())},ao[Pr]=function(e,t,n){t.flush(n)},ao[Ar]=function(e,t,n,i){n(i.task.context[t])},ao[Or]=function(e,t,n,i){var r=i.task;Ji(r.context,t),n()},ao);function po(e,t){return e+"?"+t}function ho(e){var t=e.name,n=e.location;return n?t+" "+po(n.fileName,n.lineNumber):t}function fo(e){var t=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))}((function(e){return e.cancelledTasks}),e);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}var mo=null,go=[],vo=function(e){e.crashedEffect=mo,go.push(e)},yo=function(){mo=null,go.length=0},bo=function(e){mo=e},wo=function(){var e=go[0],t=go.slice(1),n=e.crashedEffect?function(e){var t=dr(e);return t?t.code+" "+po(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+ho(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+ho(e.meta)})),[fo(go)]).join("\n")};function xo(e,t,n,i,r,o,a){var s;void 0===a&&(a=Ki);var l,c,u=to,d=null,p=[],h=Object.create(n),f=function(e,t,n){var i,r=[],o=!1;function a(e){t(),l(),n(e,!0)}function s(t){r.push(t),t.cont=function(s,l){o||($i(r,t),t.cont=Ki,l?a(s):(t===e&&(i=s),r.length||(o=!0,n(i))))}}function l(){o||(o=!0,r.forEach((function(e){e.cont=Ki,e.cancel()})),r=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return r}}}(t,(function(){p.push.apply(p,f.getTasks().map((function(e){return e.meta.name})))}),m);function m(t,n){if(n){if(u=io,vo({meta:r,cancelledTasks:p}),g.isRoot){var i=wo();yo(),e.onError(t,{sagaStack:i})}c=t,d&&d.reject(t)}else t===Mi?u=no:u!==no&&(u=ro),l=t,d&&d.resolve(t);g.cont(t,n),g.joiners.forEach((function(e){e.cb(t,n)})),g.joiners=null}var g=((s={})[ji]=!0,s.id=i,s.meta=r,s.isRoot=o,s.context=h,s.joiners=[],s.queue=f,s.cancel=function(){u===to&&(u=no,f.cancelAll(),m(Mi,!1))},s.cont=a,s.end=m,s.setContext=function(e){Ji(h,e)},s.toPromise=function(){return d||(d=Lr(),u===io?d.reject(c):u!==to&&d.resolve(l)),d.promise},s.isRunning=function(){return u===to},s.isCancelled=function(){return u===no||u===to&&t.status===no},s.isAborted=function(){return u===io},s.result=function(){return l},s.error=function(){return c},s);return g}function Eo(e,t,n,i,r,o,a){var s=e.finalizeRunEffect((function(t,n,i){if(Ui(t))oo(t,i);else if(Vi(t))Eo(e,t,c.context,n,r,!1,i);else if(t&&t[Oi]){(0,uo[t.type])(e,t.payload,i,u)}else i(t)}));d.cancel=Ki;var l={meta:r,cancel:function(){l.status===to&&(l.status=no,d(Mi))},status:to},c=xo(e,l,n,i,r,o,a),u={task:c,digestEffect:p};return a&&(a.cancel=c.cancel),d(),c;function d(e,n){try{var r;n?(r=t.throw(e),yo()):sr(e)?(l.status=no,d.cancel(),r=_i(t.return)?t.return(Mi):{done:!0,value:Mi}):r=ar(e)?_i(t.return)?t.return():{done:!0}:t.next(e),r.done?(l.status!==no&&(l.status=ro),l.cont(r.value)):p(r.value,i,d)}catch(e){if(l.status===no)throw e;l.status=io,l.cont(e,!0)}}function p(t,n,i,r){void 0===r&&(r="");var o,a=lo();function l(n,r){o||(o=!0,i.cancel=Ki,e.sagaMonitor&&(r?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),r&&bo(t),i(n,r))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:r,effect:t}),l.cancel=Ki,i.cancel=function(){o||(o=!0,l.cancel(),l.cancel=Ki,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function Co(e,t){var n=e.channel,i=void 0===n?eo():n,r=e.dispatch,o=e.getState,a=e.context,s=void 0===a?{}:a,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,d=void 0===u?ir:u;for(var p=arguments.length,h=new Array(p>2?p-2:0),f=2;f<p;f++)h[f-2]=arguments[f];var m=t.apply(void 0,h);var g,v=lo();if(l&&(l.rootSagaStarted=l.rootSagaStarted||Ki,l.effectTriggered=l.effectTriggered||Ki,l.effectResolved=l.effectResolved||Ki,l.effectRejected=l.effectRejected||Ki,l.effectCancelled=l.effectCancelled||Ki,l.actionDispatched=l.actionDispatched||Ki,l.rootSagaStarted({effectId:v,saga:t,args:h})),c){var y=Si.apply(void 0,c);g=function(e){return function(t,n,i){return y((function(t){return e(t,n,i)}))(t)}}}else g=Qi;var b={channel:i,dispatch:or(r),getState:o,sagaMonitor:l,onError:d,finalizeRunEffect:g};return Hr((function(){var e=Eo(b,m,s,v,ur(t),!0,void 0);return l&&l.effectResolved(v,e),e}))}const So=function(e){var t,i=void 0===e?{}:e,r=i.context,o=void 0===r?{}:r,s=i.channel,l=void 0===s?eo():s,c=i.sagaMonitor,u=n(i,["context","channel","sagaMonitor"]);function d(e){var n=e.getState,i=e.dispatch;return t=Co.bind(null,a({},u,{context:o,channel:l,dispatch:i,getState:n,sagaMonitor:c})),function(e){return function(t){c&&c.actionDispatched&&c.actionDispatched(t);var n=e(t);return l.put(t),n}}}return d.run=function(){return t.apply(void 0,arguments)},d.setContext=function(e){Ji(o,e)},d},To=So;var Po=function(e){return{done:!0,value:e}},Ao={};function Oo(e){return Gi(e)?"channel":qi(e)?String(e):_i(e)?e.name:String(e)}function Io(e,t,n){var i,r,o,a=t;function s(t,n){if(a===Ao)return Po(t);if(n&&!r)throw a=Ao,n;i&&i(t);var s=n?e[r](n):e[a]();return a=s.nextState,o=s.effect,i=s.stateUpdater,r=s.errorState,a===Ao?Po(t):o}return nr(s,(function(e){return s(null,e)}),n)}function Ro(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o,a={done:!1,value:Rr(e)},s=function(e){return o=e};return Io({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=o,{done:!1,value:jr.apply(void 0,[t].concat(i,[e]))})};var e}},"q1","takeEvery("+Oo(e)+", "+t.name+")")}function ko(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return jr.apply(void 0,[Ro,e,t].concat(i))}function Do(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Do(Object(n),!0).forEach((function(t){Mo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Do(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var No={loadGlossary:function(e,t){return jo(jo({},e),{},{loaded:!0,glossary:t})}};const Lo=No;function Bo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Fo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach((function(t){Ho(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ho(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uo={},Vo="https://github.com/cu-mkp/editioncrafter-project/text-partial-resource.md";function Wo(e){throw new Error("IIIF manifest parser error: ".concat(e))}function Go(e){var t,n=Bo(e.items);try{for(n.s();!(t=n.n()).done;){var i=t.value;"AnnotationPage"!==i.type&&Wo("Expected AnnotationPage in items property of ".concat(e.id)),i.items||Wo("Expected items property in AnnotationPage ".concat(i.id));var r,o=Bo(i.items);try{for(o.s();!(r=o.n()).done;){var a=r.value;if("Annotation"!==a.type&&Wo("Expected Annotation in items property of ".concat(i.id)),"painting"===a.motivation){a.body||Wo("Expected body property in Annotation ".concat(a.id)),a.body.thumbnail||Wo("Expected body.thumbnail property in Annotation ".concat(a.id));var s=a.body.thumbnail[0].id;return s||Wo("Unable to find thumbnail for resource: ".concat(a.body.id)),{imageURL:"".concat(a.body.id,"/info.json"),thumbnailURL:s}}}}catch(e){o.e(e)}finally{o.f()}}}catch(e){n.e(e)}finally{n.f()}return Wo("Unable to find painting Annotation for canvas: ".concat(e.id)),null}function qo(e){return e.label?e.label.none[0]:(t="".concat(e.id," does not have a label property."),console.warn("IIIF manifest parser warning: ".concat(t)),"");var t}function Zo(e,t){var n={};if(e.annotations){var i,r=Bo(e.annotations);try{for(r.s();!(i=r.n()).done;){var o=i.value;"AnnotationPage"!==o.type&&Wo("Expected AnnotationPage in annotations property of ".concat(e.id)),o.items||Wo("Expected items property in AnnotationPage ".concat(o.id));var a,s=Bo(o.items);try{for(s.s();!(a=s.n()).done;){var l=a.value;if("Annotation"!==l.type&&Wo("Expected Annotation in items property of ".concat(o.id)),"supplementing"===l.motivation){l.body||Wo("Expected body property in Annotation ".concat(l.id));var c=l.body;if(c.profile===Vo&&"TextPartial"===c.type){c.id||Wo("Expected id property in TextPartial in ".concat(l.id)),c.format||Wo("Expected format property in TextPartial in ".concat(l.id));var u=c.id,d=c.format,p=u.split("/");p.length<5&&Wo("TextPartial id property is in the wrong format: ".concat(u));var h=p[p.length-2];t[h]&&(n[h]||(n[h]={}),"text/html"===d&&(n[h].htmlURL=u),"text/xml"===d&&(n[h].xmlURL=u))}}}}catch(e){s.e(e)}finally{s.f()}}}catch(e){r.e(e)}finally{r.f()}}return n}Uo.loadDocument=function(e,t){var n=function(e,t){var n=[];e["@context"]&&e["@context"].includes("http://iiif.io/api/presentation/3/context.json")||Wo("Expected root object to have a @context containing: http://iiif.io/api/presentation/3/context.json");"Manifest"!==e.type&&Wo("Expected root object of type 'Manifest'.");e.items||Wo("Expected manifest to have an items property.");for(var i=e.items,r=0;r<i.length;r++){var o=i[r];"Canvas"!==o.type&&Wo("Expected items[".concat(r,"] to be of type 'Canvas'.")),o.id||Wo("Expected items[".concat(r,"] to have an id property."));var a=o.id.substr(o.id.lastIndexOf("/")+1),s=qo(o),l=Go(o),c={id:a,name:s,pageNumber:r,image_zoom_url:l.imageURL,image_thumbnail_url:l.thumbnailURL,annotationURLs:Zo(o,t)};n.push(c)}return n}(t,e.transcriptionTypes),i=function(e){for(var t={},n={},i=0;i<e.length;i++){var r=e[i];t[r.id]=r,n[r.name]=r}return{folioIndex:t,folioByName:n}}(n),r=i.folioIndex,o=i.folioByName;return zo(zo({},e),{},{loaded:!0,folios:n,folioIndex:r,folioByName:o})},Uo.loadFolio=function(e,t){var n=e.folioIndex[t.id],i=e.folios.indexOf(n);return e.folios[i]=t,e.folioIndex[t.id]=t,e.folioByName[t.name]=t,zo({},e)};const Xo=Uo;function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yo(Object(n),!0).forEach((function(t){Qo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jo={setFixedFrameMode:function(e,t){return Ko(Ko({},e),{},{fixedFrameMode:t})}};const $o=Jo,ea={fixedFrameMode:!1};function ta(e,t,n){return{documentName:t,manifestURL:e,transcriptionTypes:n,folios:[],loaded:!1,folioIndex:{},folioByName:{}}}function na(e,t){return function(){return e.apply(t,arguments)}}var ia=Object.prototype.toString,ra=Object.getPrototypeOf,oa=function(e){return function(t){var n=ia.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null)),aa=function(e){return e=e.toLowerCase(),function(t){return oa(t)===e}},sa=function(e){return function(t){return typeof t===e}},la=Array.isArray,ca=sa("undefined");var ua=aa("ArrayBuffer");var da=sa("string"),pa=sa("function"),ha=sa("number"),fa=function(e){return null!==e&&"object"==typeof e},ma=function(e){if("object"!==oa(e))return!1;var t=ra(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},ga=aa("Date"),va=aa("File"),ya=aa("Blob"),ba=aa("FileList"),wa=aa("URLSearchParams");function xa(e,t){var n,i,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,o=void 0!==r&&r;if(null!=e)if("object"!=typeof e&&(e=[e]),la(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{var a,s=o?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;for(n=0;n<l;n++)a=s[n],t.call(null,e[a],a,e)}}function Ea(e,t){t=t.toLowerCase();for(var n,i=Object.keys(e),r=i.length;r-- >0;)if(t===(n=i[r]).toLowerCase())return n;return null}var Ca="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Sa=function(e){return!ca(e)&&e!==Ca};var Ta,Pa,Aa=(Ta="undefined"!=typeof Uint8Array&&ra(Uint8Array),function(e){return Ta&&e instanceof Ta}),Oa=aa("HTMLFormElement"),Ia=(Pa=Object.prototype.hasOwnProperty,function(e,t){return Pa.call(e,t)}),Ra=aa("RegExp"),ka=function(e,t){var n=Object.getOwnPropertyDescriptors(e),i={};xa(n,(function(n,r){!1!==t(n,r,e)&&(i[r]=n)})),Object.defineProperties(e,i)},Da="abcdefghijklmnopqrstuvwxyz",ja="0123456789",Ma={DIGIT:ja,ALPHA:Da,ALPHA_DIGIT:Da+Da.toUpperCase()+ja};var Na=aa("AsyncFunction");const La={isArray:la,isArrayBuffer:ua,isBuffer:function(e){return null!==e&&!ca(e)&&null!==e.constructor&&!ca(e.constructor)&&pa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"==typeof FormData&&e instanceof FormData||pa(e.append)&&("formdata"===(t=oa(e))||"object"===t&&pa(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ua(e.buffer)},isString:da,isNumber:ha,isBoolean:function(e){return!0===e||!1===e},isObject:fa,isPlainObject:ma,isUndefined:ca,isDate:ga,isFile:va,isBlob:ya,isRegExp:Ra,isFunction:pa,isStream:function(e){return fa(e)&&pa(e.pipe)},isURLSearchParams:wa,isTypedArray:Aa,isFileList:ba,forEach:xa,merge:function e(){for(var t=(Sa(this)&&this||{}).caseless,n={},i=function(i,r){var o=t&&Ea(n,r)||r;ma(n[o])&&ma(i)?n[o]=e(n[o],i):ma(i)?n[o]=e({},i):la(i)?n[o]=i.slice():n[o]=i},r=0,o=arguments.length;r<o;r++)arguments[r]&&xa(arguments[r],i);return n},extend:function(e,t,n){return xa(t,(function(t,i){n&&pa(t)?e[i]=na(t,n):e[i]=t}),{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,i){var r,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a=r[o],i&&!i(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&ra(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:oa,kindOfTest:aa,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n},toArray:function(e){if(!e)return null;if(la(e))return e;var t=e.length;if(!ha(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,i=(e&&e[Symbol.iterator]).call(e);(n=i.next())&&!n.done;){var r=n.value;t.call(e,r[0],r[1])}},matchAll:function(e,t){for(var n,i=[];null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:Oa,hasOwnProperty:Ia,hasOwnProp:Ia,reduceDescriptors:ka,freezeMethods:function(e){ka(e,(function(t,n){if(pa(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var i=e[n];pa(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},i=function(e){e.forEach((function(e){n[e]=!0}))};return la(e)?i(e):i(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t},findKey:Ea,global:Ca,isContextDefined:Sa,ALPHABET:Ma,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ma.ALPHA_DIGIT,n="",i=t.length;e--;)n+=t[Math.random()*i|0];return n},isSpecCompliantForm:function(e){return!!(e&&pa(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(n,i){if(fa(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;var r=la(n)?[]:{};return xa(n,(function(t,n){var o=e(t,i+1);!ca(o)&&(r[n]=o)})),t[i]=void 0,r}}return n}(e,0)},isAsyncFn:Na,isThenable:function(e){return e&&(fa(e)||pa(e))&&pa(e.then)&&pa(e.catch)}};function Ba(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}La.inherits(Ba,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:La.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Fa=Ba.prototype,_a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){_a[e]={value:e}})),Object.defineProperties(Ba,_a),Object.defineProperty(Fa,"isAxiosError",{value:!0}),Ba.from=function(e,t,n,i,r,o){var a=Object.create(Fa);return La.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),Ba.call(a,e.message,t,n,i,r),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const za=Ba;function Ha(e){return La.isPlainObject(e)||La.isArray(e)}function Ua(e){return La.endsWith(e,"[]")?e.slice(0,-2):e}function Va(e,t,n){return e?e.concat(t).map((function(e,t){return e=Ua(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var Wa=La.toFlatObject(La,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Ga=function(e,t,n){if(!La.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var i=(n=La.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!La.isUndefined(t[e])}))).metaTokens,r=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&La.isSpecCompliantForm(t);if(!La.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(La.isDate(e))return e.toISOString();if(!s&&La.isBlob(e))throw new za("Blob is not supported. Use a Buffer instead.");return La.isArrayBuffer(e)||La.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){var s=e;if(e&&!r&&"object"==typeof e)if(La.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(La.isArray(e)&&function(e){return La.isArray(e)&&!e.some(Ha)}(e)||(La.isFileList(e)||La.endsWith(n,"[]"))&&(s=La.toArray(e)))return n=Ua(n),s.forEach((function(e,i){!La.isUndefined(e)&&null!==e&&t.append(!0===a?Va([n],i,o):null===a?n:n+"[]",l(e))})),!1;return!!Ha(e)||(t.append(Va(r,n,o),l(e)),!1)}var u=[],d=Object.assign(Wa,{defaultVisitor:c,convertValue:l,isVisitable:Ha});if(!La.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!La.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+i.join("."));u.push(n),La.forEach(n,(function(n,o){!0===(!(La.isUndefined(n)||null===n)&&r.call(t,n,La.isString(o)?o.trim():o,i,d))&&e(n,i?i.concat(o):[o])})),u.pop()}}(e),t};function qa(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Za(e,t){this._pairs=[],e&&Ga(e,this,t)}var Xa=Za.prototype;Xa.append=function(e,t){this._pairs.push([e,t])},Xa.toString=function(e){var t=e?function(t){return e.call(this,t,qa)}:qa;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Ya=Za;function Ka(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Qa(e,t,n){if(!t)return e;var i,r=n&&n.encode||Ka,o=n&&n.serialize;if(i=o?o(t,n):La.isURLSearchParams(t)?t.toString():new Ya(t,n).toString(r)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}function Ja(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,$a(i.key),i)}}function $a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var es=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.handlers=[]}var t,n,i;return t=e,n=[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){La.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}],n&&Ja(t.prototype,n),i&&Ja(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();const ts=es,ns={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var is;const rs={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ya,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:("undefined"==typeof navigator||"ReactNative"!==(is=navigator.product)&&"NativeScript"!==is&&"NS"!==is)&&"undefined"!=typeof window&&"undefined"!=typeof document,isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};const os=function(e){function t(e,n,i,r){var o=e[r++],a=Number.isFinite(+o),s=r>=e.length;return o=!o&&La.isArray(i)?i.length:o,s?(La.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):(i[o]&&La.isObject(i[o])||(i[o]=[]),t(e,n,i[o],r)&&La.isArray(i[o])&&(i[o]=function(e){var t,n,i={},r=Object.keys(e),o=r.length;for(t=0;t<o;t++)i[n=r[t]]=e[n];return i}(i[o])),!a)}if(La.isFormData(e)&&La.isFunction(e.entries)){var n={};return La.forEachEntry(e,(function(e,i){t(function(e){return La.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),i,n,0)})),n}return null};var as={"Content-Type":void 0};var ss={transitional:ns,adapter:["xhr","http"],transformRequest:[function(e,t){var n,i=t.getContentType()||"",r=i.indexOf("application/json")>-1,o=La.isObject(e);if(o&&La.isHTMLForm(e)&&(e=new FormData(e)),La.isFormData(e))return r&&r?JSON.stringify(os(e)):e;if(La.isArrayBuffer(e)||La.isBuffer(e)||La.isStream(e)||La.isFile(e)||La.isBlob(e))return e;if(La.isArrayBufferView(e))return e.buffer;if(La.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ga(e,new rs.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return rs.isNode&&La.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=La.isFileList(e))||i.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return Ga(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(La.isString(e))try{return(t||JSON.parse)(e),La.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ss.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&La.isString(e)&&(n&&!this.responseType||i)){var r=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw za.from(e,za.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rs.classes.FormData,Blob:rs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};La.forEach(["delete","get","head"],(function(e){ss.headers[e]={}})),La.forEach(["post","put","patch"],(function(e){ss.headers[e]=La.merge(as)}));const ls=ss;var cs=La.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);function us(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ds(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ds(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ds(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ps(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,hs(i.key),i)}}function hs(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var fs=Symbol("internals");function ms(e){return e&&String(e).trim().toLowerCase()}function gs(e){return!1===e||null==e?e:La.isArray(e)?e.map(gs):String(e)}function vs(e,t,n,i,r){return La.isFunction(i)?i.call(this,t,n):(r&&(t=n),La.isString(t)?La.isString(i)?-1!==t.indexOf(i):La.isRegExp(i)?i.test(t):void 0:void 0)}var ys=function(e,t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),e&&this.set(e)}var i,r,o;return i=n,r=[{key:"set",value:function(e,t,n){var i=this;function r(e,t,n){var r=ms(t);if(!r)throw new Error("header name must be a non-empty string");var o=La.findKey(i,r);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=gs(e))}var o=function(e,t){return La.forEach(e,(function(e,n){return r(e,n,t)}))};return La.isPlainObject(e)||e instanceof this.constructor?o(e,t):La.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o(function(e){var t,n,i,r={};return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),t=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!t||r[t]&&cs[t]||("set-cookie"===t?r[t]?r[t].push(n):r[t]=[n]:r[t]=r[t]?r[t]+", "+n:n)})),r}(e),t):null!=e&&r(t,e,n),this}},{key:"get",value:function(e,t){if(e=ms(e)){var n=La.findKey(this,e);if(n){var i=this[n];if(!t)return i;if(!0===t)return function(e){for(var t,n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=i.exec(e);)n[t[1]]=t[2];return n}(i);if(La.isFunction(t))return t.call(this,i,n);if(La.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=ms(e)){var n=La.findKey(this,e);return!(!n||void 0===this[n]||t&&!vs(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,i=!1;function r(e){if(e=ms(e)){var r=La.findKey(n,e);!r||t&&!vs(0,n[r],r,t)||(delete n[r],i=!0)}}return La.isArray(e)?e.forEach(r):r(e),i}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,i=!1;n--;){var r=t[n];e&&!vs(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}},{key:"normalize",value:function(e){var t=this,n={};return La.forEach(this,(function(i,r){var o=La.findKey(n,r);if(o)return t[o]=gs(i),void delete t[r];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(r):String(r).trim();a!==r&&delete t[r],t[a]=gs(i),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return La.forEach(this,(function(n,i){null!=n&&!1!==n&&(t[i]=e&&La.isArray(n)?n.join(", "):n)})),t}},{key:e,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=us(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:t,get:function(){return"AxiosHeaders"}}],o=[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return i.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[fs]=this[fs]={accessors:{}}).accessors,n=this.prototype;function i(e){var i=ms(e);t[i]||(function(e,t){var n=La.toCamelCase(" "+t);["get","set","has"].forEach((function(i){Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[i]=!0)}return La.isArray(e)?e.forEach(i):i(e),this}}],r&&ps(i.prototype,r),o&&ps(i,o),Object.defineProperty(i,"prototype",{writable:!1}),n}(Symbol.iterator,Symbol.toStringTag);ys.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),La.freezeMethods(ys.prototype),La.freezeMethods(ys);const bs=ys;function ws(e,t){var n=this||ls,i=t||n,r=bs.from(i.headers),o=i.data;return La.forEach(e,(function(e){o=e.call(n,o,r.normalize(),t?t.status:void 0)})),r.normalize(),o}function xs(e){return!(!e||!e.__CANCEL__)}function Es(e,t,n){za.call(this,null==e?"canceled":e,za.ERR_CANCELED,t,n),this.name="CanceledError"}La.inherits(Es,za,{__CANCEL__:!0});const Cs=Es;const Ss=rs.isStandardBrowserEnv?{write:function(e,t,n,i,r,o){var a=[];a.push(e+"="+encodeURIComponent(t)),La.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),La.isString(i)&&a.push("path="+i),La.isString(r)&&a.push("domain="+r),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Ts(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ps=rs.isStandardBrowserEnv?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=La.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};const As=function(e,t){e=e||10;var n,i=new Array(e),r=new Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){var l=Date.now(),c=r[a];n||(n=l),i[o]=s,r[o]=l;for(var u=a,d=0;u!==o;)d+=i[u++],u%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),!(l-n<t)){var p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}};function Os(e,t){var n=0,i=As(50,250);return function(r){var o=r.loaded,a=r.lengthComputable?r.total:void 0,s=o-n,l=i(s);n=o;var c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:r};c[t?"download":"upload"]=!0,e(c)}}const Is="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var i,r=e.data,o=bs.from(e.headers).normalize(),a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}La.isFormData(r)&&(rs.isStandardBrowserEnv||rs.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));var l=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(c+":"+u))}var d=Ts(e.baseURL,e.url);function p(){if(l){var i=bs.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new za("Request failed with status code "+n.status,[za.ERR_BAD_REQUEST,za.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:i,config:e,request:l}),l=null}}if(l.open(e.method.toUpperCase(),Qa(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=p:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(p)},l.onabort=function(){l&&(n(new za("Request aborted",za.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new za("Network Error",za.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||ns;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new za(t,i.clarifyTimeoutError?za.ETIMEDOUT:za.ECONNABORTED,e,l)),l=null},rs.isStandardBrowserEnv){var h=(e.withCredentials||Ps(d))&&e.xsrfCookieName&&Ss.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&La.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),La.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",Os(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Os(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=function(t){l&&(n(!t||t.type?new Cs(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));var f,m=(f=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d))&&f[1]||"";m&&-1===rs.protocols.indexOf(m)?n(new za("Unsupported protocol "+m+":",za.ERR_BAD_REQUEST,e)):l.send(r||null)}))};var Rs={http:null,xhr:Is};La.forEach(Rs,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const ks=function(e){for(var t,n,i=(e=La.isArray(e)?e:[e]).length,r=0;r<i&&(t=e[r],!(n=La.isString(t)?Rs[t.toLowerCase()]:t));r++);if(!n){if(!1===n)throw new za("Adapter ".concat(t," is not supported by the environment"),"ERR_NOT_SUPPORT");throw new Error(La.hasOwnProp(Rs,t)?"Adapter '".concat(t,"' is not available in the build"):"Unknown adapter '".concat(t,"'"))}if(!La.isFunction(n))throw new TypeError("adapter is not a function");return n};function Ds(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cs(null,e)}function js(e){return Ds(e),e.headers=bs.from(e.headers),e.data=ws.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ks(e.adapter||ls.adapter)(e).then((function(t){return Ds(e),t.data=ws.call(e,e.transformResponse,t),t.headers=bs.from(t.headers),t}),(function(t){return xs(t)||(Ds(e),t&&t.response&&(t.response.data=ws.call(e,e.transformResponse,t.response),t.response.headers=bs.from(t.response.headers))),Promise.reject(t)}))}var Ms=function(e){return e instanceof bs?e.toJSON():e};function Ns(e,t){t=t||{};var n={};function i(e,t,n){return La.isPlainObject(e)&&La.isPlainObject(t)?La.merge.call({caseless:n},e,t):La.isPlainObject(t)?La.merge({},t):La.isArray(t)?t.slice():t}function r(e,t,n){return La.isUndefined(t)?La.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function o(e,t){if(!La.isUndefined(t))return i(void 0,t)}function a(e,t){return La.isUndefined(t)?La.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,r,o){return o in t?i(n,r):o in e?i(void 0,n):void 0}var l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t){return r(Ms(e),Ms(t),!0)}};return La.forEach(Object.keys(Object.assign({},e,t)),(function(i){var o=l[i]||r,a=o(e[i],t[i],i);La.isUndefined(a)&&o!==s||(n[i]=a)})),n}var Ls="1.4.0",Bs={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Bs[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Fs={};Bs.transitional=function(e,t,n){function i(e,t){return"[Axios v1.4.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new za(i(r," has been removed"+(t?" in "+t:"")),za.ERR_DEPRECATED);return t&&!Fs[r]&&(Fs[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}};const _s={assertOptions:function(e,t,n){if("object"!=typeof e)throw new za("options must be an object",za.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),r=i.length;r-- >0;){var o=i[r],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new za("option "+o+" must be "+l,za.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new za("Unknown option "+o,za.ERR_BAD_OPTION)}},validators:Bs};function zs(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Hs(i.key),i)}}function Hs(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Us=_s.validators,Vs=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaults=t,this.interceptors={request:new ts,response:new ts}}var t,n,i;return t=e,n=[{key:"request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n,i=t=Ns(this.defaults,t),r=i.transitional,o=i.paramsSerializer,a=i.headers;void 0!==r&&_s.assertOptions(r,{silentJSONParsing:Us.transitional(Us.boolean),forcedJSONParsing:Us.transitional(Us.boolean),clarifyTimeoutError:Us.transitional(Us.boolean)},!1),null!=o&&(La.isFunction(o)?t.paramsSerializer={serialize:o}:_s.assertOptions(o,{encode:Us.function,serialize:Us.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),(n=a&&La.merge(a.common,a[t.method]))&&La.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete a[e]})),t.headers=bs.concat(n,a);var s=[],l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var c,u=[];this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));var d,p=0;if(!l){var h=[js.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,u),d=h.length,c=Promise.resolve(t);p<d;)c=c.then(h[p++],h[p++]);return c}d=s.length;var f=t;for(p=0;p<d;){var m=s[p++],g=s[p++];try{f=m(f)}catch(e){g.call(this,e);break}}try{c=js.call(this,f)}catch(e){return Promise.reject(e)}for(p=0,d=u.length;p<d;)c=c.then(u[p++],u[p++]);return c}},{key:"getUri",value:function(e){return Qa(Ts((e=Ns(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}],n&&zs(t.prototype,n),i&&zs(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();La.forEach(["delete","get","head","options"],(function(e){Vs.prototype[e]=function(t,n){return this.request(Ns(n||{},{method:e,url:t,data:(n||{}).data}))}})),La.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(Ns(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Vs.prototype[e]=t(),Vs.prototype[e+"Form"]=t(!0)}));const Ws=Vs;function Gs(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,qs(i.key),i)}}function qs(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Zs=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var i=this;this.promise.then((function(e){if(i._listeners){for(var t=i._listeners.length;t-- >0;)i._listeners[t](e);i._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){i.subscribe(e),t=e})).then(e);return n.cancel=function(){i.unsubscribe(t)},n},t((function(e,t,r){i.reason||(i.reason=new Cs(e,t,r),n(i.reason))}))}var t,n,i;return t=e,n=[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],i=[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}],n&&Gs(t.prototype,n),i&&Gs(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Xs=Zs;function Ys(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ks(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ks(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ks(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Qs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Qs).forEach((function(e){var t=Ys(e,2),n=t[0],i=t[1];Qs[i]=n}));const Js=Qs;var $s=function e(t){var n=new Ws(t),i=na(Ws.prototype.request,n);return La.extend(i,Ws.prototype,n,{allOwnKeys:!0}),La.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(Ns(t,n))},i}(ls);$s.Axios=Ws,$s.CanceledError=Cs,$s.CancelToken=Xs,$s.isCancel=xs,$s.VERSION=Ls,$s.toFormData=Ga,$s.AxiosError=za,$s.Cancel=$s.CanceledError,$s.all=function(e){return Promise.all(e)},$s.spread=function(e){return function(t){return e.apply(null,t)}},$s.isAxiosError=function(e){return La.isObject(e)&&!0===e.isAxiosError},$s.mergeConfig=Ns,$s.AxiosHeaders=bs,$s.formToJSON=function(e){return os(La.isHTMLForm(e)?new FormData(e):e)},$s.HttpStatusCode=Js,$s.default=$s;const el=$s;var tl=r(281),nl=r.n(tl);const il=function(e){return JSON.parse(JSON.stringify(e))};function rl(e){return function(e){if(Array.isArray(e))return sl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||al(e)||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 ol(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=al(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function al(e,t){if(e){if("string"==typeof e)return sl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sl(e,t):void 0}}function sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ll={middle:!1,top:!1,"left-middle":!1,"right-middle":!1,bottom:!1,"left-top":!1,"right-top":!1,"left-bottom":!1,"right-bottom":!1},cl=["tall","extra-tall","wide","full"];function ul(e,t,n,i){switch(e){case"top":t[0][1]=i.id,"wide"===n&&(t[0][2]=i.id),"full"===n&&(t[0][0]=i.id,t[0][2]=i.id);break;case"left-middle":t[1][0]=i.id,"tall"===n?t[2][0]=i.id:"wide"===n&&(t[1][1]=i.id,t[1][2]=i.id);break;case"right-middle":t[1][2]=i.id,"tall"===n&&(t[2][2]=i.id);break;case"bottom":t[2][1]=i.id,"wide"===n&&(t[2][2]=i.id),"full"===n&&(t[2][0]=i.id,t[2][2]=i.id);break;case"left-top":t[0][0]=i.id,"tall"===n?t[1][0]=i.id:"wide"===n&&(t[0][1]=i.id,t[0][2]=i.id);break;case"right-top":t[0][2]=i.id,"tall"===n&&(t[1][2]=i.id);break;case"left-bottom":t[2][0]=i.id,"wide"===n&&(t[2][1]=i.id,t[2][2]=i.id);break;case"right-bottom":t[2][2]=i.id;break;default:t[1][1]=i.id,t[1][2]=i.id,"full"===n&&(t[1][0]=i.id)}}function dl(e,t,n){var i=document.createElement("div");i.innerHTML=e;var r=i.getElementsByTagName("tei-body")[0].children,o=function(e){var t=e.getAttribute("rend");return Object.keys(ll).includes(t)?t:"middle"};function a(e){var t=e.getAttribute("style");return cl.includes(t)?t:null}var s=[],l="",c=0,u=0;try{var d,p=ol(r);try{for(p.s();!(d=p.n()).done;){var h,f=d.value,m=il(t),g=il(ll),v=f.id,y=ol(f.children);try{for(y.s();!(h=y.n()).done;){var b=h.value,w=o(b),x=a(b);b.setAttribute("data-entry-id",v),g[w]?(b.id=g[w][0].id,g[w].push(b)):(c++,b.id="z".concat(c),g[w]=[b]),n(w,m,x,b)}}catch(e){y.e(e)}finally{y.f()}for(var E=0,C=Object.values(g);E<C.length;E++){var S=C[E];S&&(l=l.concat(hl(S)))}s[u]=fl(m[0],s[u]),s[u+1]=fl(m[1],s[u+1]),s[u+2]=fl(m[2],s[u+2]),u+=1}}catch(e){p.e(e)}finally{p.f()}}catch(e){console.log(e)}return{html:l,layout:pl(s)}}function pl(e){var t=rl(e);e[0]&&"."===e[0][0]&&"."===e[0][1]&&t.shift();var n,i="",r=ol(t);try{for(r.s();!(n=r.n()).done;){var o=n.value.join(" ");i+=" '".concat(o,"'")}}catch(e){r.e(e)}finally{r.f()}return i}function hl(e){for(var t=e[0],n=t.id,i=t.attributes["data-entry-id"].value,r="",o=0;o<t.classList.length;o++)r="".concat(r," ").concat(t.classList.item(o));var a,s='<div id="'.concat(n,'" className="').concat(r,'" data-entry-id="').concat(i,'">'),l=ol(e);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.setAttribute("className","block"),s="div"===c.name?s.concat("".concat(c.innerHTML," <br/>")):s.concat("".concat(c.outerHTML))}}catch(e){l.e(e)}finally{l.f()}return s.concat("</div>")}function fl(e,t){if(t){for(var n=[],i=0;i<4;i++)"."!==e[i]?n[i]=e[i]:n[i]=t[i];return n}return e}function ml(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return gl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gl(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function gl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function yl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vl(Object(n),!0).forEach((function(t){bl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wl(e){if(e.loading)return new Promise((function(t){t(e)}));e.loading=!0;var t=yl({},e);return new Promise((function(n,i){var r=Object.keys(t.annotationURLs),o=Object.fromEntries(r.map((function(e){return[e,!1]})));r.length>0?el.get(t.image_zoom_url).then((function(a){t.tileSource=new(nl().IIIFTileSource)(a.data);var s,l=ml(r);try{var c=function(){var r=s.value,a=t.annotationURLs[r],l=a.htmlURL,c=a.xmlURL;t.transcription||(t.transcription={}),t.transcription[r]={},el.all([el.get(l),el.get(c)]).then(el.spread((function(e,n){var a,s,c=(a=e.data,s=n.data,yl(yl({},function(e){return dl(e,[[".",".","."],[".",".","."],[".",".","."]],ul)}(a)),{},{xml:s}));c?(t.transcription[r]=c,t.loading=!1,o[r]=!0):i(new Error("Unable to load transcription: ".concat(l)))}))).catch((function(t){e.loading=!1,i(t)})).finally((function(){0===Object.values(o).filter((function(e){return!e})).length&&n(t)}))};for(l.s();!(s=l.n()).done;)c()}catch(e){l.e(e)}finally{l.f()}})).catch((function(t){e.loading=!1,i(t)})):el.get(t.image_zoom_url).then((function(e){t.tileSource=new(nl().IIIFTileSource)(e.data),t.loading=!1,n(t)})).catch((function(t){e.loading=!1,i(t)}))}))}function xl(){xl=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:x(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(P([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function x(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return A()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=u(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function E(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=f,i(y,"constructor",{value:f,configurable:!0}),i(f,"constructor",{value:h,configurable:!0}),h.displayName=l(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new w(c(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var El=xl().mark(Il),Cl=xl().mark(Rl),Sl=xl().mark(kl),Tl=xl().mark(Dl),Pl=xl().mark(jl),Al=function(e){return e.document},Ol=function(e){return e.glossary};function Il(e){var t,n,i;return xl().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.payload.params[0].pathname,!((n=t.split("/")).length>1)){r.next=14;break}r.t0=n[1],r.next="ec"===r.t0?6:14;break;case 6:return r.next=8,Rl();case 8:return i=r.sent,r.next=11,Dl(i);case 11:return r.next=13,kl(n);case 13:return r.abrupt("break",14);case 14:case"end":return r.stop()}}),El)}function Rl(){var e,t;return xl().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Mr(Al);case 2:if((e=n.sent).loaded){n.next=10;break}return n.next=6,el.get(e.manifestURL);case 6:return t=n.sent,n.next=9,Gl("DocumentActions.loadDocument",t.data);case 9:return n.abrupt("return",t.data);case 10:return n.abrupt("return",null);case 11:case"end":return n.stop()}}),Cl)}function kl(e){var t,n,i,r,o,a,s,l,c;return xl().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Mr(Al);case 2:if(!(t=u.sent).loaded){u.next=21;break}e.length>2&&(n=e[2],e.length>4&&(i=e[4])),(r=[]).push(n),i&&i!==n&&r.push(i),o=0,a=r;case 9:if(!(o<a.length)){u.next=21;break}if(s=a[o],!(l=t.folioIndex[s])||l.loading){u.next=18;break}return u.next=15,wl(l);case 15:return c=u.sent,u.next=18,Gl("DocumentActions.loadFolio",c);case 18:o++,u.next=9;break;case 21:case"end":return u.stop()}}),Sl)}function Dl(e){var t,n;return xl().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Mr(Ol);case 2:if(i.sent.loaded){i.next=12;break}if(null!=e&&e.seeAlso&&0!==e.seeAlso.length&&e.seeAlso[0].id){i.next=6;break}throw new Error("Missing glossary link in seeAlso array.");case 6:return t=e.seeAlso[0].id,i.next=9,el.get(t);case 9:return n=i.sent,i.next=12,Gl("GlossaryActions.loadGlossary",n.data);case 12:case"end":return i.stop()}}),Tl)}function jl(){return xl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ko("RouteListenerSaga.userNavigatation",Il);case 2:case"end":return e.stop()}}),Pl)}function Ml(){Ml=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:x(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(P([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function x(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return A()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=u(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function E(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=f,i(y,"constructor",{value:f,configurable:!0}),i(f,"constructor",{value:h,configurable:!0}),h.displayName=l(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new w(c(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var Nl=Ml().mark(Ll);function Ll(){return Ml().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t=[jl()],n=void 0,(n=Ir(gr,t)).combinator=!0,n;case 2:case"end":return e.stop()}var t,n}),Nl)}function Bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Fl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _l(e){return function(e){if(Array.isArray(e))return zl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return zl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zl(e,t)}(e)||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 zl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Hl(){Hl=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:x(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(P([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function x(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return A()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=u(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function E(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=f,i(y,"constructor",{value:f,configurable:!0}),i(f,"constructor",{value:h,configurable:!0}),h.displayName=l(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new w(c(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var Ul=Hl().mark(Gl);function Vl(e){var t=To(),n=Ei(function(e){var t=e.iiifManifest,n=e.documentName,i=e.transcriptionTypes;return Ci({diplomatic:ql("DiplomaticActions",$o,ea),document:ql("DocumentActions",Xo,ta(t,n,i)),glossary:ql("GlossaryActions",Lo,{glossary:{},loaded:!1})})}(e),window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__(),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),i=function(){throw new Error(vi(15))},r={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},o=t.map((function(e){return e(r)}));return i=Si.apply(void 0,o)(n.dispatch),gi(gi({},n),{},{dispatch:i})}}}(t));return t.run(Ll),n}function Wl(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];e.dispatch({type:t,payload:{params:i,dispatcher:{dispatch:e.dispatch}}})}function Gl(e){var t,n,i,r=arguments;return Hl().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:for(t=r.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=r[i];return o.next=3,kr({type:e,payload:{params:n}});case 3:return o.abrupt("return",o.sent);case 4:case"end":return o.stop()}}),Ul)}function ql(e,t,n){for(var i=[],r=0,o=Object.keys(t);r<o.length;r++){var a=o[r];i.push("".concat(e,".").concat(a))}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:i).includes(r.type)?function(e,t,n){var i=n.payload&&n.payload.params?n.payload.params:[];return t.apply(void 0,[e].concat(_l(i),[n.payload.dispatcher]))}(e,function(e,t){return t[e.split(".")[1]]}(r.type,o),r):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bl(Object(n),!0).forEach((function(t){Fl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)}}var Zl={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Xl=t().createContext&&t().createContext(Zl),Yl=function(){return Yl=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Yl.apply(this,arguments)},Kl=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function Ql(e){return e&&e.map((function(e,n){return t().createElement(e.tag,Yl({key:n},e.attr),Ql(e.child))}))}function Jl(e){return function(n){return t().createElement($l,Yl({attr:Yl({},e.attr)},n),Ql(e.child))}}function $l(e){var n=function(n){var i,r=e.attr,o=e.size,a=e.title,s=Kl(e,["attr","size","title"]),l=o||n.size||"1em";return n.className&&(i=n.className),e.className&&(i=(i?i+" ":"")+e.className),t().createElement("svg",Yl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:i,style:Yl(Yl({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&t().createElement("title",null,a),e.children)};return void 0!==Xl?t().createElement(Xl.Consumer,null,(function(e){return n(e)})):n(Zl)}function ec(e){return Jl({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z"}}]})(e)}function tc(e){return Jl({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z"}}]})(e)}function nc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var i=a({},t);return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}r(8064);function ic(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ic(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}const rc=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=ic(e))&&(i&&(i+=" "),i+=t);return i};function oc(e){return e&&e.ownerDocument||document}function ac(e){if("string"!=typeof e)throw new Error(f(7));return e.charAt(0).toUpperCase()+e.slice(1)}var sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};const lc="object"===("undefined"==typeof window?"undefined":sc(window))&&"object"===("undefined"==typeof document?"undefined":sc(document))&&9===document.nodeType;function cc(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,d(i.key),i)}}function uc(e,t,n){return t&&cc(e.prototype,t),n&&cc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dc(e,t){return dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dc(e,t)}function pc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dc(e,t)}function hc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var fc={}.constructor;function mc(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(mc);if(e.constructor!==fc)return e;var t={};for(var n in e)t[n]=mc(e[n]);return t}function gc(e,t,n){void 0===e&&(e="unnamed");var i=n.jss,r=mc(t),o=i.plugins.onCreateRule(e,r,n);return o||(e[0],null)}var vc=function(e,t){for(var n="",i=0;i<e.length&&"!important"!==e[i];i++)n&&(n+=t),n+=e[i];return n},yc=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=vc(e[n]," ");else t=vc(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function bc(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function wc(e,t){for(var n="",i=0;i<t;i++)n+=" ";return n+e}function xc(e,t,n){void 0===n&&(n={});var i="";if(!t)return i;var r=n.indent,o=void 0===r?0:r,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=bc(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var h=d[p];null!=h&&(i&&(i+=l),i+=wc(p+":"+c+yc(h)+";",o))}}else for(var f in a){var m=a[f];null!=m&&(i&&(i+=l),i+=wc(f+":"+c+yc(m)+";",o))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(i&&(i+=l),i+=wc(g+":"+c+yc(v)+";",o))}return(i||n.allowEmpty)&&e?(i&&(i=""+l+i+l),wc(""+e+c+"{"+i,--o)+wc("}",o)):i}var Ec=/([[\].#*$><+~=|^:(),"'`\s])/g,Cc="undefined"!=typeof CSS&&CSS.escape,Sc=function(e){return Cc?Cc(e):e.replace(Ec,"\\$1")},Tc=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var i=n.sheet,r=n.Renderer;this.key=e,this.options=n,this.style=t,i?this.renderer=i.renderer:r&&(this.renderer=new r)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var i=!!n&&n.force;if(!i&&this.style[e]===t)return this;var r=t;n&&!1===n.process||(r=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==r||!1===r,a=e in this.style;if(o&&!a&&!i)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=r,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,r),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Pc=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var o=i.selector,a=i.scoped,s=i.sheet,l=i.generateId;return o?r.selectorText=o:!1!==a&&(r.id=l(hc(hc(r)),s),r.selectorText="."+Sc(r.id)),r}pc(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var i in n)t.setProperty(e,i,n[i])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=yc(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?a({},e,{allowEmpty:!0}):e;return xc(this.selectorText,this.style,n)},uc(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Tc),Ac={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Pc(e,t,n)}},Oc={indent:1,children:!0},Ic=/@([\w-]+)/,Rc=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var i=e.match(Ic);for(var r in this.at=i?i[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new eu(a({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),i):null},t.replaceRule=function(e,t,n){var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),i},t.toString=function(e){void 0===e&&(e=Oc);var t=bc(e).linebreak;if(null==e.indent&&(e.indent=Oc.indent),null==e.children&&(e.children=Oc.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),kc=/@container|@media|@supports\s+/,Dc={onCreateRule:function(e,t,n){return kc.test(e)?new Rc(e,t,n):null}},jc={indent:1,children:!0},Mc=/@keyframes\s+([\w-]+)/,Nc=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=e.match(Mc);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var r=n.scoped,o=n.sheet,s=n.generateId;for(var l in this.id=!1===r?this.name:Sc(s(this,o)),this.rules=new eu(a({},n,{parent:this})),t)this.rules.add(l,t[l],a({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=jc);var t=bc(e).linebreak;if(null==e.indent&&(e.indent=jc.indent),null==e.children&&(e.children=jc.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Lc=/@keyframes\s+/,Bc=/\$([\w-]+)/g,Fc=function(e,t){return"string"==typeof e?e.replace(Bc,(function(e,n){return n in t?t[n]:e})):e},_c=function(e,t,n){var i=e[t],r=Fc(i,n);r!==i&&(e[t]=r)},zc={onCreateRule:function(e,t,n){return"string"==typeof e&&Lc.test(e)?new Nc(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&_c(e,"animation-name",n.keyframes),"animation"in e&&_c(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var i=n.options.sheet;if(!i)return e;switch(t){case"animation":case"animation-name":return Fc(e,i.keyframes);default:return e}}},Hc=function(e){function t(){return e.apply(this,arguments)||this}return pc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?a({},e,{allowEmpty:!0}):e;return xc(this.key,this.style,n)},t}(Tc),Uc={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Hc(e,t,n):null}},Vc=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=bc(e).linebreak;if(Array.isArray(this.style)){for(var n="",i=0;i<this.style.length;i++)n+=xc(this.at,this.style[i]),this.style[i+1]&&(n+=t);return n}return xc(this.at,this.style,e)},e}(),Wc=/@font-face/,Gc={onCreateRule:function(e,t,n){return Wc.test(e)?new Vc(e,t,n):null}},qc=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return xc(this.key,this.style,e)},e}(),Zc={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new qc(e,t,n):null}},Xc=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Yc={"@charset":!0,"@import":!0,"@namespace":!0},Kc={onCreateRule:function(e,t,n){return e in Yc?new Xc(e,t,n):null}},Qc=[Ac,Dc,zc,Uc,Gc,Zc,Kc],Jc={process:!0},$c={force:!0,process:!0},eu=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var i=this.options,r=i.parent,o=i.sheet,s=i.jss,l=i.Renderer,c=i.generateId,u=i.scoped,d=a({classes:this.classes,parent:r,sheet:o,jss:s,Renderer:l,generateId:c,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=t,p in this.classes&&(d.selector="."+Sc(this.classes[p]));var h=gc(p,t,d);if(!h)return null;this.register(h);var f=void 0===d.index?this.index.length:d.index;return this.index.splice(f,0,h),h},t.replace=function(e,t,n){var i=this.get(e),r=this.index.indexOf(i);i&&this.remove(i);var o=n;return-1!==r&&(o=a({},n,{index:r})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Pc?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Nc&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Pc?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Nc&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var i=0;i<this.index.length;i++)this.updateOne(this.index[i],t,n)},t.updateOne=function(t,n,i){void 0===i&&(i=Jc);var r=this.options,o=r.jss.plugins,a=r.sheet;if(t.rules instanceof e)t.rules.update(n,i);else{var s=t.style;if(o.onUpdate(n,t,a,i),i.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,$c)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,$c)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,i=!!n&&n.options.link,r=bc(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||i)&&(t&&(t+=r),t+=a)}return t},e}(),tu=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=a({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new eu(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var i=this.queue;this.attached&&!i&&(this.queue=[]);var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),this.attached?this.deployed?(i?i.push(r):(this.insertRule(r),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),r):r:(this.deployed=!1,r)):null},t.replaceRule=function(e,t,n){var i=this.rules.get(e);if(!i)return this.addRule(e,t,n);var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),this.attached?this.deployed?(this.renderer&&(r?i.renderable&&this.renderer.replaceRule(i.renderable,r):this.renderer.deleteRule(i)),r):r:(this.deployed=!1,r)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var i in e){var r=this.addRule(i,e[i],t);r&&n.push(r)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),nu=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var i=0;i<this.registry.onCreateRule.length;i++){var r=this.registry.onCreateRule[i](e,t,n);if(r)return r}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var i=0;i<this.registry.onProcessStyle.length;i++)t.style=this.registry.onProcessStyle[i](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,i){for(var r=0;r<this.registry.onUpdate.length;r++)this.registry.onUpdate[r](e,t,n,i)},t.onChangeValue=function(e,t,n){for(var i=e,r=0;r<this.registry.onChangeValue.length;r++)i=this.registry.onChangeValue[r](i,t,n);return i},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),iu=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var i=0;i<t.length;i++)if(t[i].options.index>n)return void t.splice(i,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,i=t.attached,r=n(t,["attached"]),o=bc(r).linebreak,a="",s=0;s<this.registry.length;s++){var l=this.registry[s];null!=i&&l.attached!==i||(a&&(a+=o),a+=l.toString(r))}return a},uc(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ru=new iu,ou="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),au="2f1acc6c3a606b082e5eef5e54414ffb";null==ou[au]&&(ou[au]=0);var su=ou[au]++,lu=function(e){void 0===e&&(e={});var t=0;return function(n,i){t+=1;var r="",o="";return i&&(i.options.classNamePrefix&&(o=i.options.classNamePrefix),null!=i.options.jss.id&&(r=String(i.options.jss.id))),e.minify?""+(o||"c")+su+r+t:o+n.key+"-"+su+(r?"-"+r:"")+"-"+t}},cu=function(e){var t;return function(){return t||(t=e()),t}},uu=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},du=function(e,t,n){try{var i=n;if(Array.isArray(n)&&(i=yc(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,i);else{var r=i?i.indexOf("!important"):-1,o=r>-1?i.substr(0,r-1):i;e.style.setProperty(t,o,r>-1?"important":"")}}catch(e){return!1}return!0},pu=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},hu=function(e,t){return e.selectorText=t,e.selectorText===t},fu=cu((function(){return document.querySelector("head")}));function mu(e){var t=ru.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(i.attached&&i.options.index>t.index&&i.options.insertionPoint===t.insertionPoint)return i}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var i=e[n];if(i.attached&&i.options.insertionPoint===t.insertionPoint)return i}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var i=e.insertionPoint;if(i&&"string"==typeof i){var r=function(e){for(var t=fu(),n=0;n<t.childNodes.length;n++){var i=t.childNodes[n];if(8===i.nodeType&&i.nodeValue.trim()===e)return i}return null}(i);if(r)return{parent:r.parentNode,node:r.nextSibling}}return!1}var gu=cu((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),vu=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},yu=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},bu=function(){function e(e){this.getPropertyValue=uu,this.setProperty=du,this.removeProperty=pu,this.setSelector=hu,this.hasInsertedRules=!1,this.cssRules=[],e&&ru.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,i=t.meta,r=t.element;this.element=r||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),i&&this.element.setAttribute("data-meta",i);var o=gu();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,i=mu(t);if(!1!==i&&i.parent)i.parent.insertBefore(e,i.node);else if(n&&"number"==typeof n.nodeType){var r=n,o=r.parentNode;o&&o.insertBefore(e,r.nextSibling)}else fu().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var i=e,r=n;if("conditional"===e.type||"keyframes"===e.type){var o=yu(n,t);if(!1===(r=vu(n,i.toString({children:!1}),o)))return!1;this.refCssRule(e,o,r)}return this.insertRules(i.rules,r),r}var a=e.toString();if(!a)return!1;var s=yu(n,t),l=vu(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof tu&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),wu=0,xu=function(){function e(e){this.id=wu++,this.version="10.10.0",this.plugins=new nu,this.options={id:{minify:!1},createGenerateId:lu,Renderer:lc?bu:null,plugins:[]},this.generateId=lu({minify:!1});for(var t=0;t<Qc.length;t++)this.plugins.use(Qc[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=a({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===ru.index?0:ru.index+1);var i=new tu(e,a({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(i),i},t.removeStyleSheet=function(e){return e.detach(),ru.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var i=a({},n,{name:e,jss:this,Renderer:this.options.Renderer});i.generateId||(i.generateId=this.generateId),i.classes||(i.classes={}),i.keyframes||(i.keyframes={});var r=gc(e,t,i);return r&&this.plugins.onProcessRule(r),r},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Eu=function(e){return new xu(e)},Cu="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Su(e){var t=null;for(var n in e){var i=e[n],r=typeof i;if("function"===r)t||(t={}),t[n]=i;else if("object"===r&&null!==i&&!Array.isArray(i)){var o=Su(i);o&&(t||(t={}),t[n]=o)}}return t}Eu();var Tu={set:function(e,t,n,i){var r=e.get(t);r||(r=new Map,e.set(t,r)),r.set(n,i)},get:function(e,t,n){var i=e.get(t);return i?i.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}};const Pu=Tu;var Au=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ou=Date.now(),Iu="fnValues"+Ou,Ru="fnStyle"+ ++Ou;const ku=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var i=gc(e,{},n);return i[Ru]=t,i},onProcessStyle:function(e,t){if(Iu in t||Ru in t)return e;var n={};for(var i in e){var r=e[i];"function"==typeof r&&(delete e[i],n[i]=r)}return t[Iu]=n,e},onUpdate:function(e,t,n,i){var r=t,o=r[Ru];o&&(r.style=o(e)||{});var a=r[Iu];if(a)for(var s in a)r.prop(s,a[s](e),i)}}};var Du="@global",ju="@global ",Mu=function(){function e(e,t,n){for(var i in this.type="global",this.at=Du,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new eu(a({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var i=this.rules.add(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),i},t.replaceRule=function(e,t,n){var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),i},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Nu=function(){function e(e,t,n){this.type="global",this.at=Du,this.isProcessed=!1,this.key=e,this.options=n;var i=e.substr(8);this.rule=n.jss.createRule(i,t,a({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Lu=/\s*,\s*/g;function Bu(e,t){for(var n=e.split(Lu),i="",r=0;r<n.length;r++)i+=t+" "+n[r].trim(),n[r+1]&&(i+=", ");return i}const Fu=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Du)return new Mu(e,t,n);if("@"===e[0]&&e.substr(0,8)===ju)return new Nu(e,t,n);var i=n.parent;return i&&("global"===i.type||i.options.parent&&"global"===i.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,i=e.style,r=i?i[Du]:null;if(r){for(var o in r)t.addRule(o,r[o],a({},n,{selector:Bu(o,e.selector)}));delete i[Du]}}(e,t),function(e,t){var n=e.options,i=e.style;for(var r in i)if("@"===r[0]&&r.substr(0,Du.length)===Du){var o=Bu(r.substr(Du.length),e.selector);t.addRule(o,i[r],a({},n,{selector:o})),delete i[r]}}(e,t))}}};var _u=/\s*,\s*/g,zu=/&/g,Hu=/\$([\w-]+)/g;const Uu=function(){function e(e,t){return function(n,i){var r=e.getRule(i)||t&&t.getRule(i);return r?r.selector:i}}function t(e,t){for(var n=t.split(_u),i=e.split(_u),r="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<i.length;s++){var l=i[s];r&&(r+=", "),r+=-1!==l.indexOf("&")?l.replace(zu,a):a+" "+l}return r}function n(e,t,n){if(n)return a({},n,{index:n.index+1});var i=e.options.nestingLevel;i=void 0===i?1:i+1;var r=a({},e.options,{nestingLevel:i,index:t.indexOf(e)+1});return delete r.name,r}return{onProcessStyle:function(i,r,o){if("style"!==r.type)return i;var s,l,c=r,u=c.options.parent;for(var d in i){var p=-1!==d.indexOf("&"),h="@"===d[0];if(p||h){if(s=n(c,u,s),p){var f=t(d,c.selector);l||(l=e(u,o)),f=f.replace(Hu,l);var m=c.key+"-"+d;"replaceRule"in u?u.replaceRule(m,i[d],a({},s,{selector:f})):u.addRule(m,i[d],a({},s,{selector:f}))}else h&&u.addRule(d,{},s).addRule(c.key,i[d],{selector:c.selector});delete i[d]}}return i}}};var Vu=/[A-Z]/g,Wu=/^ms-/,Gu={};function qu(e){return"-"+e.toLowerCase()}const Zu=function(e){if(Gu.hasOwnProperty(e))return Gu[e];var t=e.replace(Vu,qu);return Gu[e]=Wu.test(t)?"-"+t:t};function Xu(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Zu(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Xu):t.fallbacks=Xu(e.fallbacks)),t}const Yu=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Xu(e[t]);return e}return Xu(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var i=Zu(t);return t===i?e:(n.prop(i,e),null)}}};var Ku=Cu&&CSS?CSS.px:"px",Qu=Cu&&CSS?CSS.ms:"ms",Ju=Cu&&CSS?CSS.percent:"%";function $u(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},i={};for(var r in e)i[r]=e[r],i[r.replace(t,n)]=e[r];return i}var ed=$u({"animation-delay":Qu,"animation-duration":Qu,"background-position":Ku,"background-position-x":Ku,"background-position-y":Ku,"background-size":Ku,border:Ku,"border-bottom":Ku,"border-bottom-left-radius":Ku,"border-bottom-right-radius":Ku,"border-bottom-width":Ku,"border-left":Ku,"border-left-width":Ku,"border-radius":Ku,"border-right":Ku,"border-right-width":Ku,"border-top":Ku,"border-top-left-radius":Ku,"border-top-right-radius":Ku,"border-top-width":Ku,"border-width":Ku,"border-block":Ku,"border-block-end":Ku,"border-block-end-width":Ku,"border-block-start":Ku,"border-block-start-width":Ku,"border-block-width":Ku,"border-inline":Ku,"border-inline-end":Ku,"border-inline-end-width":Ku,"border-inline-start":Ku,"border-inline-start-width":Ku,"border-inline-width":Ku,"border-start-start-radius":Ku,"border-start-end-radius":Ku,"border-end-start-radius":Ku,"border-end-end-radius":Ku,margin:Ku,"margin-bottom":Ku,"margin-left":Ku,"margin-right":Ku,"margin-top":Ku,"margin-block":Ku,"margin-block-end":Ku,"margin-block-start":Ku,"margin-inline":Ku,"margin-inline-end":Ku,"margin-inline-start":Ku,padding:Ku,"padding-bottom":Ku,"padding-left":Ku,"padding-right":Ku,"padding-top":Ku,"padding-block":Ku,"padding-block-end":Ku,"padding-block-start":Ku,"padding-inline":Ku,"padding-inline-end":Ku,"padding-inline-start":Ku,"mask-position-x":Ku,"mask-position-y":Ku,"mask-size":Ku,height:Ku,width:Ku,"min-height":Ku,"max-height":Ku,"min-width":Ku,"max-width":Ku,bottom:Ku,left:Ku,top:Ku,right:Ku,inset:Ku,"inset-block":Ku,"inset-block-end":Ku,"inset-block-start":Ku,"inset-inline":Ku,"inset-inline-end":Ku,"inset-inline-start":Ku,"box-shadow":Ku,"text-shadow":Ku,"column-gap":Ku,"column-rule":Ku,"column-rule-width":Ku,"column-width":Ku,"font-size":Ku,"font-size-delta":Ku,"letter-spacing":Ku,"text-decoration-thickness":Ku,"text-indent":Ku,"text-stroke":Ku,"text-stroke-width":Ku,"word-spacing":Ku,motion:Ku,"motion-offset":Ku,outline:Ku,"outline-offset":Ku,"outline-width":Ku,perspective:Ku,"perspective-origin-x":Ju,"perspective-origin-y":Ju,"transform-origin":Ju,"transform-origin-x":Ju,"transform-origin-y":Ju,"transform-origin-z":Ju,"transition-delay":Qu,"transition-duration":Qu,"vertical-align":Ku,"flex-basis":Ku,"shape-margin":Ku,size:Ku,gap:Ku,grid:Ku,"grid-gap":Ku,"row-gap":Ku,"grid-row-gap":Ku,"grid-column-gap":Ku,"grid-template-rows":Ku,"grid-template-columns":Ku,"grid-auto-rows":Ku,"grid-auto-columns":Ku,"box-shadow-x":Ku,"box-shadow-y":Ku,"box-shadow-blur":Ku,"box-shadow-spread":Ku,"font-line-height":Ku,"text-shadow-x":Ku,"text-shadow-y":Ku,"text-shadow-blur":Ku});function td(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]=td(e,t[i],n);else if("object"==typeof t)if("fallbacks"===e)for(var r in t)t[r]=td(r,t[r],n);else for(var o in t)t[o]=td(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||ed[e];return!a||0===t&&a===Ku?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}const nd=function(e){void 0===e&&(e={});var t=$u(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var i in e)e[i]=td(i,e[i],t);return e},onChangeValue:function(e,n){return td(n,e,t)}}};function id(e){return function(e){if(Array.isArray(e))return H(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||U(e)||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.")}()}var rd="",od="",ad="",sd="",ld=lc&&"ontouchstart"in document.documentElement;if(lc){var cd={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ud=document.createElement("p").style;for(var dd in cd)if(dd+"Transform"in ud){rd=dd,od=cd[dd];break}"Webkit"===rd&&"msHyphens"in ud&&(rd="ms",od=cd.ms,sd="edge"),"Webkit"===rd&&"-apple-trailing-word"in ud&&(ad="apple")}var pd={js:rd,css:od,vendor:ad,browser:sd,isTouch:ld};var hd={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===pd.js?"-webkit-"+e:pd.css+e)}},fd={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===pd.js?pd.css+"print-"+e:e)}},md=/[-\s]+(.)?/g;function gd(e,t){return t?t.toUpperCase():""}function vd(e){return e.replace(md,gd)}function yd(e){return vd("-"+e)}var bd,wd={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===pd.js){var n="mask-image";if(vd(n)in t)return e;if(pd.js+yd(n)in t)return pd.css+e}return e}},xd={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==pd.vendor||pd.isTouch?e:pd.css+e)}},Ed={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:pd.css+e)}},Cd={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:pd.css+e)}},Sd={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===pd.js||"ms"===pd.js&&"edge"!==pd.browser?pd.css+e:e)}},Td={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===pd.js||"ms"===pd.js||"apple"===pd.vendor?pd.css+e:e)}},Pd={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===pd.js?"WebkitColumn"+yd(e)in t&&pd.css+"column-"+e:"Moz"===pd.js&&("page"+yd(e)in t&&"page-"+e))}},Ad={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===pd.js)return e;var n=e.replace("-inline","");return pd.js+yd(n)in t&&pd.css+n}},Od={supportedProperty:function(e,t){return vd(e)in t&&e}},Id={supportedProperty:function(e,t){var n=yd(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:pd.js+n in t?pd.css+e:"Webkit"!==pd.js&&"Webkit"+n in t&&"-webkit-"+e}},Rd={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===pd.js?""+pd.css+e:e)}},kd={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===pd.js?pd.css+"scroll-chaining":e)}},Dd={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},jd={supportedProperty:function(e,t){var n=Dd[e];return!!n&&(pd.js+yd(n)in t&&pd.css+n)}},Md={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Nd=Object.keys(Md),Ld=function(e){return pd.css+e},Bd={supportedProperty:function(e,t,n){var i=n.multiple;if(Nd.indexOf(e)>-1){var r=Md[e];if(!Array.isArray(r))return pd.js+yd(r)in t&&pd.css+r;if(!i)return!1;for(var o=0;o<r.length;o++)if(!(pd.js+yd(r[0])in t))return!1;return r.map(Ld)}return!1}},Fd=[hd,fd,wd,xd,Ed,Cd,Sd,Td,Pd,Ad,Od,Id,Rd,kd,jd,Bd],_d=Fd.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),zd=Fd.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,id(t.noPrefill)),e}),[]),Hd={};if(lc){bd=document.createElement("p");var Ud=window.getComputedStyle(document.documentElement,"");for(var Vd in Ud)isNaN(Vd)||(Hd[Ud[Vd]]=Ud[Vd]);zd.forEach((function(e){return delete Hd[e]}))}function Wd(e,t){if(void 0===t&&(t={}),!bd)return e;if(null!=Hd[e])return Hd[e];"transition"!==e&&"transform"!==e||(t[e]=e in bd.style);for(var n=0;n<_d.length&&(Hd[e]=_d[n](e,bd.style,t),!Hd[e]);n++);try{bd.style[e]=""}catch(e){return!1}return Hd[e]}var Gd,qd={},Zd={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Xd=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Yd(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var i=t?Wd(t):", "+Wd(n);return i||(t||n)}function Kd(e,t){var n=t;if(!Gd||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var i=e+n;if(null!=qd[i])return qd[i];try{Gd.style[e]=n}catch(e){return qd[i]=!1,!1}if(Zd[e])n=n.replace(Xd,Yd);else if(""===Gd.style[e]&&("-ms-flex"===(n=pd.css+n)&&(Gd.style[e]="-ms-flexbox"),Gd.style[e]=n,""===Gd.style[e]))return qd[i]=!1,!1;return Gd.style[e]="",qd[i]=n,qd[i]}lc&&(Gd=document.createElement("p"));const Qd=function(){function e(t){for(var n in t){var i=t[n];if("fallbacks"===n&&Array.isArray(i))t[n]=i.map(e);else{var r=!1,o=Wd(n);o&&o!==n&&(r=!0);var a=!1,s=Kd(o,yc(i));s&&s!==i&&(a=!0),(r||a)&&(r&&delete t[n],t[o||n]=s||i)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===pd.js?e:"@"+pd.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Kd(t,yc(e))||e}}};const Jd=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var i={},r=Object.keys(t).sort(e),o=0;o<r.length;o++)i[r[o]]=t[r[o]];return i}}};var $d=Eu({plugins:[ku(),Fu(),Uu(),Yu(),nd(),"undefined"==typeof window?null:Qd(),Jd()]}),ep=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,i=e.productionPrefix,r=void 0===i?"jss":i,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var i=t.options.name;if(i&&0===i.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Au.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(i,"-").concat(e.key);return t.options.theme[ue]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(r).concat(c())}}(),tp={disableGeneration:!1,generateClassName:ep,jss:$d,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},np=t().createContext(tp);var ip=-1e9;const rp={};function op(e,t){var n=e.state,i=e.theme,r=e.stylesOptions,o=e.stylesCreator,s=e.name;if(!r.disableGeneration){var l=Pu.get(r.sheetsManager,o,i);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Pu.set(r.sheetsManager,o,i,l));var c=a({},o.options,r,{theme:i,flip:"boolean"==typeof r.flip?r.flip:"rtl"===i.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var u=r.sheetsRegistry;if(0===l.refs){var d;r.sheetsCache&&(d=Pu.get(r.sheetsCache,o,i));var p=o.create(i,s);d||((d=r.jss.createStyleSheet(p,a({link:!1},c))).attach(),r.sheetsCache&&Pu.set(r.sheetsCache,o,i,d)),u&&u.add(d),l.staticSheet=d,l.dynamicStyles=Su(p)}if(l.dynamicStyles){var h=r.jss.createStyleSheet(l.dynamicStyles,a({link:!0},c));h.update(t),h.attach(),n.dynamicSheet=h,n.classes=nc({baseClasses:l.staticSheet.classes,newClasses:h.classes}),u&&u.add(h)}else n.classes=l.staticSheet.classes;l.refs+=1}}function ap(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.name,o=n.classNamePrefix,s=n.Component,l=n.defaultTheme,u=void 0===l?rp:l,d=i(n,["name","classNamePrefix","Component","defaultTheme"]),p=function(e){var t="function"==typeof e;return{create:function(n,i){var r;try{r=t?e(n):e}catch(e){throw e}if(!i||!n.overrides||!n.overrides[i])return r;var o=n.overrides[i],s=a({},r);return Object.keys(o).forEach((function(e){s[e]=c(s[e],o[e])})),s},options:{}}}(e),h=r||o||"makeStyles";p.options={index:ip+=1,name:r,meta:h,classNamePrefix:h};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=ce()||u,i=a({},t().useContext(np),d),o=t().useRef(),l=t().useRef();!function(e,n){var i,r=t().useRef([]),o=t().useMemo((function(){return{}}),n);r.current!==o&&(r.current=o,i=e()),t().useEffect((function(){return function(){i&&i()}}),[o])}((function(){var t={name:r,state:{},stylesCreator:p,stylesOptions:i,theme:n};return op(t,e),l.current=!1,o.current=t,function(){!function(e){var t=e.state,n=e.theme,i=e.stylesOptions,r=e.stylesCreator;if(!i.disableGeneration){var o=Pu.get(i.sheetsManager,r,n);o.refs-=1;var a=i.sheetsRegistry;0===o.refs&&(Pu.delete(i.sheetsManager,r,n),i.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(i.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(t)}}),[n,p]),t().useEffect((function(){l.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(o.current,e),l.current=!0}));var c=function(e,t,n){var i=e.state;if(e.stylesOptions.disableGeneration)return t||{};i.cacheClasses||(i.cacheClasses={value:null,lastProp:null,lastJSS:{}});var r=!1;return i.classes!==i.cacheClasses.lastJSS&&(i.cacheClasses.lastJSS=i.classes,r=!0),t!==i.cacheClasses.lastProp&&(i.cacheClasses.lastProp=t,r=!0),r&&(i.cacheClasses.value=nc({baseClasses:i.cacheClasses.lastJSS,newClasses:t,Component:n})),i.cacheClasses.value}(o.current,e.classes,s);return c}}const sp=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var o=n.defaultTheme,s=n.withTheme,l=void 0!==s&&s,c=n.name,u=i(n,["defaultTheme","withTheme","name"]);var d=c,p=ap(e,a({defaultTheme:o,Component:r,name:c||r.displayName,classNamePrefix:d},u)),h=t().forwardRef((function(e,n){e.classes;var s,u=e.innerRef,d=i(e,["classes","innerRef"]),h=p(a({},r.defaultProps,e)),f=d;return("string"==typeof c||l)&&(s=ce()||o,c&&(f=pe({theme:s,name:c,props:d})),l&&!f.theme&&(f.theme=s)),t().createElement(r,a({ref:u||n,classes:h},f))}));return fe()(h,r),h}};const lp=function(e,t){return sp(e,a({defaultTheme:me},t))};function cp(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function i(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,r)}),n)}return i.clear=function(){clearTimeout(t)},i}function up(e){return oc(e).defaultView||window}function dp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];e.apply(this,i),t.apply(this,i)}}),(function(){}))}function pp(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function hp(t,n){return e.useMemo((function(){return null==t&&null==n?null:function(e){pp(t,e),pp(n,e)}}),[t,n])}var fp="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;const mp=e.forwardRef((function(t,n){var i=t.children,r=t.container,o=t.disablePortal,a=void 0!==o&&o,s=t.onRendered,l=e.useState(null),c=l[0],u=l[1],d=hp(e.isValidElement(i)?i.ref:null,n);return fp((function(){a||u(function(e){return e="function"==typeof e?e():e,ke.findDOMNode(e)}(r)||document.body)}),[r,a]),fp((function(){if(c&&!a)return pp(n,c),function(){pp(n,null)}}),[n,c,a]),fp((function(){s&&(c||a)&&s()}),[s,c,a]),a?e.isValidElement(i)?e.cloneElement(i,{ref:d}):i:c?ke.createPortal(i,c):c}));var gp="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function vp(t){var n=e.useRef(t);return gp((function(){n.current=t})),e.useCallback((function(){return n.current.apply(void 0,arguments)}),[])}function yp(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function bp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wp(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function xp(e,t,n){var i=arguments.length>4?arguments[4]:void 0,r=[t,n].concat(id(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===r.indexOf(e)&&-1===o.indexOf(e.tagName)&&bp(e,i)}))}function Ep(e,t){var n=-1;return e.some((function(e,i){return!!t(e)&&(n=i,!0)})),n}function Cp(e,t){var n,i=[],r=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=oc(e);return t.body===e?up(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=yp();i.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(wp(o)+a,"px"),n=oc(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){r.push(e.style.paddingRight),e.style.paddingRight="".concat(wp(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;i.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){r[t]?e.style.paddingRight=r[t]:e.style.removeProperty("padding-right")})),i.forEach((function(e){var t=e.value,n=e.el,i=e.key;t?n.style.setProperty(i,t):n.style.removeProperty(i)}))}}var Sp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return uc(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&bp(e.modalRef,!1);var i=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);xp(t,e.mountNode,e.modalRef,i,!0);var r=Ep(this.containers,(function(e){return e.container===t}));return-1!==r?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:i}),n)}},{key:"mount",value:function(e,t){var n=Ep(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),i=this.containers[n];i.restore||(i.restore=Cp(i,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Ep(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),i=this.containers[n];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(t,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&bp(e.modalRef,!0),xp(i.container,e.mountNode,e.modalRef,i.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var r=i.modals[i.modals.length-1];r.modalRef&&bp(r.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const Tp=function(t){var n=t.children,i=t.disableAutoFocus,r=void 0!==i&&i,o=t.disableEnforceFocus,a=void 0!==o&&o,s=t.disableRestoreFocus,l=void 0!==s&&s,c=t.getDoc,u=t.isEnabled,d=t.open,p=e.useRef(),h=e.useRef(null),f=e.useRef(null),m=e.useRef(),g=e.useRef(null),v=e.useCallback((function(e){g.current=ke.findDOMNode(e)}),[]),y=hp(n.ref,v),b=e.useRef();return e.useEffect((function(){b.current=d}),[d]),!b.current&&d&&"undefined"!=typeof window&&(m.current=c().activeElement),e.useEffect((function(){if(d){var e=oc(g.current);r||!g.current||g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var t=function(){null!==g.current&&(e.hasFocus()&&!a&&u()&&!p.current?g.current&&!g.current.contains(e.activeElement)&&g.current.focus():p.current=!1)},n=function(t){!a&&u()&&9===t.keyCode&&e.activeElement===g.current&&(p.current=!0,t.shiftKey?f.current.focus():h.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[r,a,l,u,d]),e.createElement(e.Fragment,null,e.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelStart"}),e.cloneElement(n,{ref:y}),e.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))};var Pp={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const Ap=e.forwardRef((function(t,n){var r=t.invisible,o=void 0!==r&&r,s=t.open,l=i(t,["invisible","open"]);return s?e.createElement("div",a({"aria-hidden":!0,ref:n},l,{style:a({},Pp.root,o?Pp.invisible:{},l.style)})):null}));var Op=new Sp;const Ip=e.forwardRef((function(t,n){var r=ce(),o=pe({name:"MuiModal",props:a({},t),theme:r}),s=o.BackdropComponent,l=void 0===s?Ap:s,c=o.BackdropProps,u=o.children,d=o.closeAfterTransition,p=void 0!==d&&d,h=o.container,f=o.disableAutoFocus,m=void 0!==f&&f,g=o.disableBackdropClick,v=void 0!==g&&g,y=o.disableEnforceFocus,b=void 0!==y&&y,w=o.disableEscapeKeyDown,x=void 0!==w&&w,E=o.disablePortal,C=void 0!==E&&E,S=o.disableRestoreFocus,T=void 0!==S&&S,P=o.disableScrollLock,A=void 0!==P&&P,O=o.hideBackdrop,I=void 0!==O&&O,R=o.keepMounted,k=void 0!==R&&R,D=o.manager,j=void 0===D?Op:D,M=o.onBackdropClick,N=o.onClose,L=o.onEscapeKeyDown,B=o.onRendered,F=o.open,_=i(o,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),z=e.useState(!0),H=z[0],U=z[1],V=e.useRef({}),W=e.useRef(null),G=e.useRef(null),q=hp(G,n),Z=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(o),X=function(){return oc(W.current)},Y=function(){return V.current.modalRef=G.current,V.current.mountNode=W.current,V.current},K=function(){j.mount(Y(),{disableScrollLock:A}),G.current.scrollTop=0},Q=vp((function(){var e=function(e){return e="function"==typeof e?e():e,ke.findDOMNode(e)}(h)||X().body;j.add(Y(),e),G.current&&K()})),J=e.useCallback((function(){return j.isTopModal(Y())}),[j]),$=vp((function(e){W.current=e,e&&(B&&B(),F&&J()?K():bp(G.current,!0))})),ee=e.useCallback((function(){j.remove(Y())}),[j]);if(e.useEffect((function(){return function(){ee()}}),[ee]),e.useEffect((function(){F?Q():Z&&p||ee()}),[F,ee,Z,p,Q]),!k&&!F&&(!Z||H))return null;var te=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(r||{zIndex:oe}),ne={};return void 0===u.props.tabIndex&&(ne.tabIndex=u.props.tabIndex||"-1"),Z&&(ne.onEnter=dp((function(){U(!1)}),u.props.onEnter),ne.onExited=dp((function(){U(!0),p&&ee()}),u.props.onExited)),e.createElement(mp,{ref:$,container:h,disablePortal:C},e.createElement("div",a({ref:q,onKeyDown:function(e){"Escape"===e.key&&J()&&(L&&L(e),x||(e.stopPropagation(),N&&N(e,"escapeKeyDown")))},role:"presentation"},_,{style:a({},te.root,!F&&H?te.hidden:{},_.style)}),I?null:e.createElement(l,a({open:F,onClick:function(e){e.target===e.currentTarget&&(M&&M(e),!v&&N&&N(e,"backdropClick"))}},c)),e.createElement(Tp,{disableEnforceFocus:b,disableAutoFocus:m,disableRestoreFocus:T,getDoc:X,isEnabled:J,open:F},e.cloneElement(u,ne))))})),Rp=!1,kp=t().createContext(null);var Dp="unmounted",jp="exited",Mp="entering",Np="entered",Lp="exiting",Bp=function(e){function i(t,n){var i;i=e.call(this,t,n)||this;var r,o=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?o?(r=jp,i.appearStatus=Mp):r=Np:r=t.unmountOnExit||t.mountOnEnter?Dp:jp,i.state={status:r},i.nextCallback=null,i}pc(i,e),i.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Dp?{status:jp}:null};var r=i.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Mp&&n!==Np&&(t=Mp):n!==Mp&&n!==Np||(t=Lp)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Mp){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:De().findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jp&&this.setState({status:Dp})},r.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,r=this.props.nodeRef?[i]:[De().findDOMNode(this),i],o=r[0],a=r[1],s=this.getTimeouts(),l=i?s.appear:s.enter;!e&&!n||Rp?this.safeSetState({status:Np},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Mp},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Np},(function(){t.props.onEntered(o,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:De().findDOMNode(this);t&&!Rp?(this.props.onExit(i),this.safeSetState({status:Lp},(function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:jp},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:jp},(function(){e.props.onExited(i)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:De().findDOMNode(this),i=null==e&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=r[0],a=r[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Dp)return null;var i=this.props,r=i.children,o=(i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef,n(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t().createElement(kp.Provider,{value:null},"function"==typeof r?r(e,o):t().cloneElement(t().Children.only(r),o))},i}(t().Component);function Fp(){}Bp.contextType=kp,Bp.propTypes={},Bp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fp,onEntering:Fp,onEntered:Fp,onExit:Fp,onExiting:Fp,onExited:Fp},Bp.UNMOUNTED=Dp,Bp.EXITED=jp,Bp.ENTERING=Mp,Bp.ENTERED=Np,Bp.EXITING=Lp;const _p=Bp;var zp=function(e){return e.scrollTop};function Hp(e,t){var n=e.timeout,i=e.style,r=void 0===i?{}:i;return{duration:r.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:r.transitionDelay}}function Up(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Vp={entering:{opacity:1,transform:Up(1)},entered:{opacity:1,transform:"none"}},Wp=e.forwardRef((function(t,n){var r=t.children,o=t.disableStrictModeCompat,s=void 0!==o&&o,l=t.in,c=t.onEnter,u=t.onEntered,d=t.onEntering,p=t.onExit,h=t.onExited,f=t.onExiting,m=t.style,g=t.timeout,v=void 0===g?"auto":g,y=t.TransitionComponent,b=void 0===y?_p:y,w=i(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),x=e.useRef(),E=e.useRef(),C=ge(),S=C.unstable_strictMode&&!s,T=e.useRef(null),P=hp(r.ref,n),A=hp(S?T:void 0,P),O=function(e){return function(t,n){if(e){var i=V(S?[T.current,t]:[t,n],2),r=i[0],o=i[1];void 0===o?e(r):e(r,o)}}},I=O(d),R=O((function(e,t){zp(e);var n,i=Hp({style:m,timeout:v},{mode:"enter"}),r=i.duration,o=i.delay;"auto"===v?(n=C.transitions.getAutoHeightDuration(e.clientHeight),E.current=n):n=r,e.style.transition=[C.transitions.create("opacity",{duration:n,delay:o}),C.transitions.create("transform",{duration:.666*n,delay:o})].join(","),c&&c(e,t)})),k=O(u),D=O(f),j=O((function(e){var t,n=Hp({style:m,timeout:v},{mode:"exit"}),i=n.duration,r=n.delay;"auto"===v?(t=C.transitions.getAutoHeightDuration(e.clientHeight),E.current=t):t=i,e.style.transition=[C.transitions.create("opacity",{duration:t,delay:r}),C.transitions.create("transform",{duration:.666*t,delay:r||.333*t})].join(","),e.style.opacity="0",e.style.transform=Up(.75),p&&p(e)})),M=O(h);return e.useEffect((function(){return function(){clearTimeout(x.current)}}),[]),e.createElement(b,a({appear:!0,in:l,nodeRef:S?T:void 0,onEnter:R,onEntered:k,onEntering:I,onExit:j,onExited:M,onExiting:D,addEndListener:function(e,t){var n=S?e:t;"auto"===v&&(x.current=setTimeout(n,E.current||0))},timeout:"auto"===v?null:v},w),(function(t,n){return e.cloneElement(r,a({style:a({opacity:0,transform:Up(.75),visibility:"exited"!==t||l?void 0:"hidden"},Vp[t],m,r.props.style),ref:A},n))}))}));Wp.muiSupportAuto=!0;const Gp=Wp;var qp=e.forwardRef((function(t,n){var r=t.classes,o=t.className,s=t.component,l=void 0===s?"div":s,c=t.square,u=void 0!==c&&c,d=t.elevation,p=void 0===d?1:d,h=t.variant,f=void 0===h?"elevation":h,m=i(t,["classes","className","component","square","elevation","variant"]);return e.createElement(l,a({className:rc(r.root,o,"outlined"===f?r.outlined:r["elevation".concat(p)],!u&&r.rounded),ref:n},m))}));const Zp=lp((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),a({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(qp);function Xp(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Yp(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Kp(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Qp(e){return"function"==typeof e?e():e}var Jp=e.forwardRef((function(t,n){var r=t.action,o=t.anchorEl,s=t.anchorOrigin,l=void 0===s?{vertical:"top",horizontal:"left"}:s,c=t.anchorPosition,u=t.anchorReference,d=void 0===u?"anchorEl":u,p=t.children,h=t.classes,f=t.className,m=t.container,g=t.elevation,v=void 0===g?8:g,y=t.getContentAnchorEl,b=t.marginThreshold,w=void 0===b?16:b,x=t.onEnter,E=t.onEntered,C=t.onEntering,S=t.onExit,T=t.onExited,P=t.onExiting,A=t.open,O=t.PaperProps,I=void 0===O?{}:O,R=t.transformOrigin,k=void 0===R?{vertical:"top",horizontal:"left"}:R,D=t.TransitionComponent,j=void 0===D?Gp:D,M=t.transitionDuration,N=void 0===M?"auto":M,L=t.TransitionProps,B=void 0===L?{}:L,F=i(t,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),_=e.useRef(),z=e.useCallback((function(e){if("anchorPosition"===d)return c;var t=Qp(o),n=(t&&1===t.nodeType?t:oc(_.current).body).getBoundingClientRect(),i=0===e?l.vertical:"center";return{top:n.top+Xp(n,i),left:n.left+Yp(n,l.horizontal)}}),[o,l.horizontal,l.vertical,c,d]),H=e.useCallback((function(e){var t=0;if(y&&"anchorEl"===d){var n=y(e);if(n&&e.contains(n)){var i=function(e,t){for(var n=t,i=0;n&&n!==e;)i+=(n=n.parentElement).scrollTop;return i}(e,n);t=n.offsetTop+n.clientHeight/2-i||0}0}return t}),[l.vertical,d,y]),U=e.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Xp(e,k.vertical)+t,horizontal:Yp(e,k.horizontal)}}),[k.horizontal,k.vertical]),V=e.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},i=U(n,t);if("none"===d)return{top:null,left:null,transformOrigin:Kp(i)};var r=z(t),a=r.top-i.vertical,s=r.left-i.horizontal,l=a+n.height,c=s+n.width,u=up(Qp(o)),p=u.innerHeight-w,h=u.innerWidth-w;if(a<w){var f=a-w;a-=f,i.vertical+=f}else if(l>p){var m=l-p;a-=m,i.vertical+=m}if(s<w){var g=s-w;s-=g,i.horizontal+=g}else if(c>h){var v=c-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Kp(i)}}),[o,d,z,H,U,w]),W=e.useCallback((function(){var e=_.current;if(e){var t=V(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[V]),G=e.useCallback((function(e){_.current=ke.findDOMNode(e)}),[]);e.useEffect((function(){A&&W()})),e.useImperativeHandle(r,(function(){return A?{updatePosition:function(){W()}}:null}),[A,W]),e.useEffect((function(){if(A){var e=cp((function(){W()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[A,W]);var q=N;"auto"!==N||j.muiSupportAuto||(q=void 0);var Z=m||(o?oc(Qp(o)).body:void 0);return e.createElement(Ip,a({container:Z,open:A,ref:n,BackdropProps:{invisible:!0},className:rc(h.root,f)},F),e.createElement(j,a({appear:!0,in:A,onEnter:x,onEntered:E,onExit:S,onExited:T,onExiting:P,timeout:q},B,{onEntering:dp((function(e,t){C&&C(e,t),W()}),B.onEntering)}),e.createElement(Zp,a({elevation:v,ref:G},I,{className:rc(h.paper,I.className)}),p)))}));const $p=lp({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Jp);const eh=e.createContext({});var th=e.forwardRef((function(t,n){var r=t.children,o=t.classes,s=t.className,l=t.component,c=void 0===l?"ul":l,u=t.dense,d=void 0!==u&&u,p=t.disablePadding,h=void 0!==p&&p,f=t.subheader,m=i(t,["children","classes","className","component","dense","disablePadding","subheader"]),g=e.useMemo((function(){return{dense:d}}),[d]);return e.createElement(eh.Provider,{value:g},e.createElement(c,a({className:rc(o.root,s,d&&o.dense,!h&&o.padding,f&&o.subheader),ref:n},m),f,r))}));const nh=lp({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(th);function ih(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function rh(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function oh(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function ah(e,t,n,i,r,o){for(var a=!1,s=r(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!i&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&oh(s,o)&&!l)return void s.focus();s=r(e,s,n)}}var sh="undefined"==typeof window?e.useEffect:e.useLayoutEffect,lh=e.forwardRef((function(t,n){var r=t.actions,o=t.autoFocus,s=void 0!==o&&o,l=t.autoFocusItem,c=void 0!==l&&l,u=t.children,d=t.className,p=t.disabledItemsFocusable,h=void 0!==p&&p,f=t.disableListWrap,m=void 0!==f&&f,g=t.onKeyDown,v=t.variant,y=void 0===v?"selectedMenu":v,b=i(t,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),w=e.useRef(null),x=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});sh((function(){s&&w.current.focus()}),[s]),e.useImperativeHandle(r,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!w.current.style.width;if(e.clientHeight<w.current.clientHeight&&n){var i="".concat(yp(),"px");w.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=i,w.current.style.width="calc(100% + ".concat(i,")")}return w.current}}}),[]);var E=hp(e.useCallback((function(e){w.current=ke.findDOMNode(e)}),[]),n),C=-1;e.Children.forEach(u,(function(t,n){e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===y&&t.props.selected||-1===C)&&(C=n))}));var S=e.Children.map(u,(function(t,n){if(n===C){var i={};return c&&(i.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===y&&(i.tabIndex=0),e.cloneElement(t,i)}return t}));return e.createElement(nh,a({role:"menu",ref:E,className:d,onKeyDown:function(e){var t=w.current,n=e.key,i=oc(t).activeElement;if("ArrowDown"===n)e.preventDefault(),ah(t,i,m,h,ih);else if("ArrowUp"===n)e.preventDefault(),ah(t,i,m,h,rh);else if("Home"===n)e.preventDefault(),ah(t,null,m,h,ih);else if("End"===n)e.preventDefault(),ah(t,null,m,h,rh);else if(1===n.length){var r=x.current,o=n.toLowerCase(),a=performance.now();r.keys.length>0&&(a-r.lastTime>500?(r.keys=[],r.repeating=!0,r.previousKeyMatched=!0):r.repeating&&o!==r.keys[0]&&(r.repeating=!1)),r.lastTime=a,r.keys.push(o);var s=i&&!r.repeating&&oh(i,r);r.previousKeyMatched&&(s||ah(t,i,!1,h,ih,r))?e.preventDefault():r.previousKeyMatched=!1}g&&g(e)},tabIndex:s?0:-1},b),S)}));const ch=lh;var uh={vertical:"top",horizontal:"right"},dh={vertical:"top",horizontal:"left"},ph=e.forwardRef((function(t,n){var r=t.autoFocus,o=void 0===r||r,s=t.children,l=t.classes,c=t.disableAutoFocusItem,u=void 0!==c&&c,d=t.MenuListProps,p=void 0===d?{}:d,h=t.onClose,f=t.onEntering,m=t.open,g=t.PaperProps,v=void 0===g?{}:g,y=t.PopoverClasses,b=t.transitionDuration,w=void 0===b?"auto":b,x=t.TransitionProps,E=(x=void 0===x?{}:x).onEntering,C=i(x,["onEntering"]),S=t.variant,T=void 0===S?"selectedMenu":S,P=i(t,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),A=ge(),O=o&&!u&&m,I=e.useRef(null),R=e.useRef(null),k=-1;e.Children.map(s,(function(t,n){e.isValidElement(t)&&(t.props.disabled||("menu"!==T&&t.props.selected||-1===k)&&(k=n))}));var D=e.Children.map(s,(function(t,n){return n===k?e.cloneElement(t,{ref:function(e){R.current=ke.findDOMNode(e),pp(t.ref,e)}}):t}));return e.createElement($p,a({getContentAnchorEl:function(){return R.current},classes:y,onClose:h,TransitionProps:a({onEntering:function(e,t){I.current&&I.current.adjustStyleForScrollbar(e,A),f&&f(e,t),E&&E(e,t)}},C),anchorOrigin:"rtl"===A.direction?uh:dh,transformOrigin:"rtl"===A.direction?uh:dh,PaperProps:a({},v,{classes:a({},v.classes,{root:l.paper})}),open:m,ref:n,transitionDuration:w},P),e.createElement(ch,a({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),h&&h(e,"tabKeyDown"))},actions:I,autoFocus:o&&(-1===k||u),autoFocusItem:O,variant:T},p,{className:rc(l.list,p.className)}),D))}));const hh=lp({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(ph);function fh(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function mh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(fh(e.value)&&""!==e.value||t&&fh(e.defaultValue)&&""!==e.defaultValue)}function gh(e,t){return"object"===s(t)&&null!==t?e===t:String(e)===String(t)}var vh=e.forwardRef((function(t,n){var r=t["aria-label"],o=t.autoFocus,s=t.autoWidth,l=t.children,c=t.classes,u=t.className,d=t.defaultValue,p=t.disabled,h=t.displayEmpty,m=t.IconComponent,g=t.inputRef,v=t.labelId,y=t.MenuProps,b=void 0===y?{}:y,w=t.multiple,x=t.name,E=t.onBlur,C=t.onChange,S=t.onClose,T=t.onFocus,P=t.onOpen,A=t.open,O=t.readOnly,I=t.renderValue,R=t.SelectDisplayProps,k=void 0===R?{}:R,D=t.tabIndex,j=(t.type,t.value),M=t.variant,N=void 0===M?"standard":M,L=i(t,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),B=function(t){var n=t.controlled,i=t.default,r=(t.name,t.state,e.useRef(void 0!==n).current),o=e.useState(i),a=o[0],s=o[1];return[r?n:a,e.useCallback((function(e){r||s(e)}),[])]}({controlled:j,default:d,name:"Select"}),F=V(B,2),_=F[0],z=F[1],H=e.useRef(null),U=e.useState(null),W=U[0],G=U[1],q=e.useRef(null!=A).current,Z=e.useState(),X=Z[0],Y=Z[1],K=e.useState(!1),Q=K[0],J=K[1],$=hp(n,g);e.useImperativeHandle($,(function(){return{focus:function(){W.focus()},node:H.current,value:_}}),[W,_]),e.useEffect((function(){o&&W&&W.focus()}),[o,W]),e.useEffect((function(){if(W){var e=oc(W).getElementById(v);if(e){var t=function(){getSelection().isCollapsed&&W.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[v,W]);var ee,te,ne=function(e,t){e?P&&P(t):S&&S(t),q||(Y(s?null:W.clientWidth),J(e))},ie=e.Children.toArray(l),re=function(e){return function(t){var n;if(w||ne(!1,t),w){n=Array.isArray(_)?_.slice():[];var i=_.indexOf(e.props.value);-1===i?n.push(e.props.value):n.splice(i,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),_!==n&&(z(n),C&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:x}}),C(t,e)))}},oe=null!==W&&(q?A:Q);delete L["aria-invalid"];var ae=[],se=!1;(mh({value:_})||h)&&(I?ee=I(_):se=!0);var le=ie.map((function(t){if(!e.isValidElement(t))return null;var n;if(w){if(!Array.isArray(_))throw new Error(f(2));(n=_.some((function(e){return gh(e,t.props.value)})))&&se&&ae.push(t.props.children)}else(n=gh(_,t.props.value))&&se&&(te=t.props.children);return n&&!0,e.cloneElement(t,{"aria-selected":n?"true":void 0,onClick:re(t),onKeyUp:function(e){" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:n,value:void 0,"data-value":t.props.value})}));se&&(ee=w?ae.join(", "):te);var ce,ue=X;!s&&q&&W&&(ue=W.clientWidth),ce=void 0!==D?D:p?null:0;var de=k.id||(x?"mui-component-select-".concat(x):void 0);return e.createElement(e.Fragment,null,e.createElement("div",a({className:rc(c.root,c.select,c.selectMenu,c[N],u,p&&c.disabled),ref:G,tabIndex:ce,role:"button","aria-disabled":p?"true":void 0,"aria-expanded":oe?"true":void 0,"aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[v,de].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!O){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ne(!0,e))}},onMouseDown:p||O?null:function(e){0===e.button&&(e.preventDefault(),W.focus(),ne(!0,e))},onBlur:function(e){!oe&&E&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:_,name:x}}),E(e))},onFocus:T},k,{id:de}),function(e){return null==e||"string"==typeof e&&!e.trim()}(ee)?e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):ee),e.createElement("input",a({value:Array.isArray(_)?_.join(","):_,name:x,ref:H,"aria-hidden":!0,onChange:function(e){var t=ie.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=ie[t];z(n.props.value),C&&C(e,n)}},tabIndex:-1,className:c.nativeInput,autoFocus:o},L)),e.createElement(m,{className:rc(c.icon,c["icon".concat(ac(N))],oe&&c.iconOpen,p&&c.disabled)}),e.createElement(hh,a({id:"menu-".concat(x||""),anchorEl:W,open:oe,onClose:function(e){ne(!1,e)}},b,{MenuListProps:a({"aria-labelledby":v,role:"listbox",disableListWrap:!0},b.MenuListProps),PaperProps:a({},b.PaperProps,{style:a({minWidth:ue},null!=b.PaperProps?b.PaperProps.style:null)})}),le))}));const yh=vh;function bh(e){var t=e.props,n=e.states,i=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],i&&void 0===t[n]&&(e[n]=i[n]),e}),{})}var wh=e.createContext();const xh=wh;function Eh(){return e.useContext(xh)}var Ch=e.forwardRef((function(t,n){var r=t.children,o=t.classes,s=t.className,l=t.color,c=void 0===l?"inherit":l,u=t.component,d=void 0===u?"svg":u,p=t.fontSize,h=void 0===p?"medium":p,f=t.htmlColor,m=t.titleAccess,g=t.viewBox,v=void 0===g?"0 0 24 24":g,y=i(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return e.createElement(d,a({className:rc(o.root,s,"inherit"!==c&&o["color".concat(ac(c))],"default"!==h&&"medium"!==h&&o["fontSize".concat(ac(h))]),focusable:"false",viewBox:v,color:f,"aria-hidden":!m||void 0,role:m?"img":void 0,ref:n},y),r,m?e.createElement("title",null,m):null)}));Ch.muiName="SvgIcon";const Sh=lp((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(Ch);const Th=(Ph=e.createElement("path",{d:"M7 10l5 5 5-5z"}),(Ah=function(e,n){return t().createElement(Sh,a({ref:n},e),Ph)}).muiName=Sh.muiName,t().memo(t().forwardRef(Ah)));var Ph,Ah;function Oh(e,t){return parseInt(e[t],10)||0}var Ih="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Rh={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},kh=e.forwardRef((function(t,n){var r=t.onChange,o=t.rows,s=t.rowsMax,l=t.rowsMin,c=t.maxRows,u=t.minRows,d=void 0===u?1:u,p=t.style,h=t.value,f=i(t,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),m=c||s,g=o||l||d,v=e.useRef(null!=h).current,y=e.useRef(null),b=hp(n,y),w=e.useRef(null),x=e.useRef(0),E=e.useState({}),C=E[0],S=E[1],T=e.useCallback((function(){var e=y.current,n=window.getComputedStyle(e),i=w.current;i.style.width=n.width,i.value=e.value||t.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");var r=n["box-sizing"],o=Oh(n,"padding-bottom")+Oh(n,"padding-top"),a=Oh(n,"border-bottom-width")+Oh(n,"border-top-width"),s=i.scrollHeight-o;i.value="x";var l=i.scrollHeight-o,c=s;g&&(c=Math.max(Number(g)*l,c)),m&&(c=Math.min(Number(m)*l,c));var u=(c=Math.max(c,l))+("border-box"===r?o+a:0),d=Math.abs(c-s)<=1;S((function(e){return x.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==d)?(x.current+=1,{overflow:d,outerHeightStyle:u}):e}))}),[m,g,t.placeholder]);e.useEffect((function(){var e=cp((function(){x.current=0,T()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[T]),Ih((function(){T()})),e.useEffect((function(){x.current=0}),[h]);return e.createElement(e.Fragment,null,e.createElement("textarea",a({value:h,onChange:function(e){x.current=0,v||T(),r&&r(e)},ref:b,rows:g,style:a({height:C.outerHeightStyle,overflow:C.overflow?"hidden":null},p)},f)),e.createElement("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:a({},Rh,p)}))}));const Dh=kh;var jh="undefined"==typeof window?e.useEffect:e.useLayoutEffect,Mh=e.forwardRef((function(t,n){var r=t["aria-describedby"],o=t.autoComplete,s=t.autoFocus,l=t.classes,c=t.className,u=(t.color,t.defaultValue),d=t.disabled,p=t.endAdornment,h=(t.error,t.fullWidth),m=void 0!==h&&h,g=t.id,v=t.inputComponent,y=void 0===v?"input":v,b=t.inputProps,w=void 0===b?{}:b,x=t.inputRef,E=(t.margin,t.multiline),C=void 0!==E&&E,S=t.name,T=t.onBlur,P=t.onChange,A=t.onClick,O=t.onFocus,I=t.onKeyDown,R=t.onKeyUp,k=t.placeholder,D=t.readOnly,j=t.renderSuffix,M=t.rows,N=t.rowsMax,L=t.rowsMin,B=t.maxRows,F=t.minRows,_=t.startAdornment,z=t.type,H=void 0===z?"text":z,U=t.value,V=i(t,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),W=null!=w.value?w.value:U,G=e.useRef(null!=W).current,q=e.useRef(),Z=e.useCallback((function(e){0}),[]),X=hp(w.ref,Z),Y=hp(x,X),K=hp(q,Y),Q=e.useState(!1),J=Q[0],$=Q[1],ee=e.useContext(wh);var te=bh({props:t,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});te.focused=ee?ee.focused:J,e.useEffect((function(){!ee&&d&&J&&($(!1),T&&T())}),[ee,d,J,T]);var ne=ee&&ee.onFilled,ie=ee&&ee.onEmpty,re=e.useCallback((function(e){mh(e)?ne&&ne():ie&&ie()}),[ne,ie]);jh((function(){G&&re({value:W})}),[W,re,G]);e.useEffect((function(){re(q.current)}),[]);var oe=y,ae=a({},w,{ref:K});"string"!=typeof oe?ae=a({inputRef:K,type:H},ae,{ref:null}):C?!M||B||F||N||L?(ae=a({minRows:M||F,rowsMax:N,maxRows:B},ae),oe=Dh):oe="textarea":ae=a({type:H},ae);return e.useEffect((function(){ee&&ee.setAdornedStart(Boolean(_))}),[ee,_]),e.createElement("div",a({className:rc(l.root,l["color".concat(ac(te.color||"primary"))],c,te.disabled&&l.disabled,te.error&&l.error,m&&l.fullWidth,te.focused&&l.focused,ee&&l.formControl,C&&l.multiline,_&&l.adornedStart,p&&l.adornedEnd,"dense"===te.margin&&l.marginDense),onClick:function(e){q.current&&e.currentTarget===e.target&&q.current.focus(),A&&A(e)},ref:n},V),_,e.createElement(xh.Provider,{value:null},e.createElement(oe,a({"aria-invalid":te.error,"aria-describedby":r,autoComplete:o,autoFocus:s,defaultValue:u,disabled:te.disabled,id:g,onAnimationStart:function(e){re("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:S,placeholder:k,readOnly:D,required:te.required,rows:M,value:W,onKeyDown:I,onKeyUp:R},ae,{className:rc(l.input,w.className,te.disabled&&l.disabled,C&&l.inputMultiline,te.hiddenLabel&&l.inputHiddenLabel,_&&l.inputAdornedStart,p&&l.inputAdornedEnd,"search"===H&&l.inputTypeSearch,"dense"===te.margin&&l.inputMarginDense),onBlur:function(e){T&&T(e),w.onBlur&&w.onBlur(e),ee&&ee.onBlur?ee.onBlur(e):$(!1)},onChange:function(e){if(!G){var t=e.target||q.current;if(null==t)throw new Error(f(1));re({value:t.value})}for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];w.onChange&&w.onChange.apply(w,[e].concat(i)),P&&P.apply(void 0,[e].concat(i))},onFocus:function(e){te.disabled?e.stopPropagation():(O&&O(e),w.onFocus&&w.onFocus(e),ee&&ee.onFocus?ee.onFocus(e):$(!0))}}))),p,j?j(a({},te,{startAdornment:_})):null)}));const Nh=lp((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},r={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:a({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus:-ms-input-placeholder":r,"&:focus::-ms-input-placeholder":r},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(Mh);var Lh=e.forwardRef((function(t,n){var r=t.disableUnderline,o=t.classes,s=t.fullWidth,l=void 0!==s&&s,c=t.inputComponent,u=void 0===c?"input":c,d=t.multiline,p=void 0!==d&&d,h=t.type,f=void 0===h?"text":h,m=i(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return e.createElement(Nh,a({classes:a({},o,{root:rc(o.root,!r&&o.underline),underline:null}),fullWidth:l,inputComponent:u,multiline:p,ref:n,type:f},m))}));Lh.muiName="Input";const Bh=lp((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(Lh);const Fh=e.forwardRef((function(t,n){var r=t.classes,o=t.className,s=t.disabled,l=t.IconComponent,c=t.inputRef,u=t.variant,d=void 0===u?"standard":u,p=i(t,["classes","className","disabled","IconComponent","inputRef","variant"]);return e.createElement(e.Fragment,null,e.createElement("select",a({className:rc(r.root,r.select,r[d],o,s&&r.disabled),disabled:s,ref:c||n},p)),t.multiple?null:e.createElement(l,{className:rc(r.icon,r["icon".concat(ac(d))],s&&r.disabled)}))}));var _h=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},zh=e.createElement(Bh,null),Hh=e.forwardRef((function(t,n){var r=t.children,o=t.classes,s=t.IconComponent,l=void 0===s?Th:s,c=t.input,u=void 0===c?zh:c,d=t.inputProps,p=(t.variant,i(t,["children","classes","IconComponent","input","inputProps","variant"])),h=bh({props:t,muiFormControl:Eh(),states:["variant"]});return e.cloneElement(u,a({inputComponent:Fh,inputProps:a({children:r,classes:o,IconComponent:l,variant:h.variant,type:void 0},d,u?u.props.inputProps:{}),ref:n},p))}));Hh.muiName="Select";lp(_h,{name:"MuiNativeSelect"})(Hh);var Uh=e.forwardRef((function(t,n){var r=t.disableUnderline,o=t.classes,s=t.fullWidth,l=void 0!==s&&s,c=t.inputComponent,u=void 0===c?"input":c,d=t.multiline,p=void 0!==d&&d,h=t.type,f=void 0===h?"text":h,m=i(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return e.createElement(Nh,a({classes:a({},o,{root:rc(o.root,!r&&o.underline),underline:null}),fullWidth:l,inputComponent:u,multiline:p,ref:n,type:f},m))}));Uh.muiName="Input";const Vh=lp((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:i,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:i}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(Uh);var Wh=e.forwardRef((function(t,n){t.children;var r=t.classes,o=t.className,s=t.label,l=t.labelWidth,c=t.notched,u=t.style,d=i(t,["children","classes","className","label","labelWidth","notched","style"]),h="rtl"===ge().direction?"right":"left";if(void 0!==s)return e.createElement("fieldset",a({"aria-hidden":!0,className:rc(r.root,o),ref:n,style:u},d),e.createElement("legend",{className:rc(r.legendLabelled,c&&r.legendNotched)},s?e.createElement("span",null,s):e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var f=l>0?.75*l+8:.01;return e.createElement("fieldset",a({"aria-hidden":!0,style:a(p({},"padding".concat(ac(h)),8),u),className:rc(r.root,o),ref:n},d),e.createElement("legend",{className:r.legend,style:{width:c?f:.01}},e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))}));const Gh=lp((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(Wh);var qh=e.forwardRef((function(t,n){var r=t.classes,o=t.fullWidth,s=void 0!==o&&o,l=t.inputComponent,c=void 0===l?"input":l,u=t.label,d=t.labelWidth,p=void 0===d?0:d,h=t.multiline,f=void 0!==h&&h,m=t.notched,g=t.type,v=void 0===g?"text":g,y=i(t,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return e.createElement(Nh,a({renderSuffix:function(t){return e.createElement(Gh,{className:r.notchedOutline,label:u,labelWidth:p,notched:void 0!==m?m:Boolean(t.startAdornment||t.filled||t.focused)})},classes:a({},r,{root:rc(r.root,r.underline),notchedOutline:null}),fullWidth:s,inputComponent:c,multiline:f,ref:n,type:v},y))}));qh.muiName="Input";const Zh=lp((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(qh);var Xh=_h,Yh=e.createElement(Bh,null),Kh=e.createElement(Vh,null),Qh=e.forwardRef((function t(n,r){var o=n.autoWidth,s=void 0!==o&&o,l=n.children,c=n.classes,u=n.displayEmpty,d=void 0!==u&&u,p=n.IconComponent,h=void 0===p?Th:p,f=n.id,m=n.input,g=n.inputProps,v=n.label,y=n.labelId,b=n.labelWidth,w=void 0===b?0:b,x=n.MenuProps,E=n.multiple,C=void 0!==E&&E,S=n.native,T=void 0!==S&&S,P=n.onClose,A=n.onOpen,O=n.open,I=n.renderValue,R=n.SelectDisplayProps,k=n.variant,D=void 0===k?"standard":k,j=i(n,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),M=T?Fh:yh,N=bh({props:n,muiFormControl:Eh(),states:["variant"]}).variant||D,L=m||{standard:Yh,outlined:e.createElement(Zh,{label:v,labelWidth:w}),filled:Kh}[N];return e.cloneElement(L,a({inputComponent:M,inputProps:a({children:l,IconComponent:h,variant:N,type:void 0,multiple:C},T?{id:f}:{autoWidth:s,displayEmpty:d,labelId:y,MenuProps:x,onClose:P,onOpen:A,open:O,renderValue:I,SelectDisplayProps:a({id:f},R)},g,{classes:g?nc({baseClasses:c,newClasses:g.classes,Component:t}):c},m?m.props.inputProps:{}),ref:r},j))}));Qh.muiName="Select";const Jh=lp(Xh,{name:"MuiSelect"})(Qh);var $h=!0,ef=!1,tf=null,nf={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function rf(e){e.metaKey||e.altKey||e.ctrlKey||($h=!0)}function of(){$h=!1}function af(){"hidden"===this.visibilityState&&ef&&($h=!0)}function sf(e){var t,n,i,r=e.target;try{return r.matches(":focus-visible")}catch(e){}return $h||(n=(t=r).type,!("INPUT"!==(i=t.tagName)||!nf[n]||t.readOnly)||"TEXTAREA"===i&&!t.readOnly||!!t.isContentEditable)}function lf(){ef=!0,window.clearTimeout(tf),tf=window.setTimeout((function(){ef=!1}),100)}function cf(){return{isFocusVisible:sf,onBlurVisible:lf,ref:e.useCallback((function(e){var t,n=ke.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",rf,!0),t.addEventListener("mousedown",of,!0),t.addEventListener("pointerdown",of,!0),t.addEventListener("touchstart",of,!0),t.addEventListener("visibilitychange",af,!0))}),[])}}function uf(t,n){var i=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){i[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),i}function df(e,t,n){return null!=n[t]?n[t]:e.props[t]}function pf(t,n,i){var r=uf(t.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var i,r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var c=r[l][i];s[r[l][i]]=n(c)}s[l]=n(l)}for(i=0;i<o.length;i++)s[o[i]]=n(o[i]);return s}(n,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,e.isValidElement)(s)){var l=a in n,c=a in r,u=n[a],d=(0,e.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,e.isValidElement)(u)&&(o[a]=(0,e.cloneElement)(s,{onExited:i.bind(null,s),in:u.props.in,exit:df(s,"exit",t),enter:df(s,"enter",t)})):o[a]=(0,e.cloneElement)(s,{in:!1}):o[a]=(0,e.cloneElement)(s,{onExited:i.bind(null,s),in:!0,exit:df(s,"exit",t),enter:df(s,"enter",t)})}})),o}var hf=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ff=function(i){function r(e,t){var n,r=(n=i.call(this,e,t)||this).handleExited.bind(hc(n));return n.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},n}pc(r,i);var o=r.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,n){var i,r,o=n.children,a=n.handleExited;return{children:n.firstRender?(i=t,r=a,uf(i.children,(function(t){return(0,e.cloneElement)(t,{onExited:r.bind(null,t),in:!0,appear:df(t,"appear",i),enter:df(t,"enter",i),exit:df(t,"exit",i)})}))):pf(t,o,a),firstRender:!1}},o.handleExited=function(e,t){var n=uf(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=a({},t.children);return delete n[e.key],{children:n}})))},o.render=function(){var e=this.props,i=e.component,r=e.childFactory,o=n(e,["component","childFactory"]),a=this.state.contextValue,s=hf(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===i?t().createElement(kp.Provider,{value:a},s):t().createElement(kp.Provider,{value:a},t().createElement(i,o,s))},r}(t().Component);ff.propTypes={},ff.defaultProps={component:"div",childFactory:function(e){return e}};const mf=ff;var gf="undefined"==typeof window?e.useEffect:e.useLayoutEffect;const vf=function(t){var n=t.classes,i=t.pulsate,r=void 0!==i&&i,o=t.rippleX,a=t.rippleY,s=t.rippleSize,l=t.in,c=t.onExited,u=void 0===c?function(){}:c,d=t.timeout,p=e.useState(!1),h=p[0],f=p[1],m=rc(n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-s/2+a,left:-s/2+o},v=rc(n.child,h&&n.childLeaving,r&&n.childPulsate),y=vp(u);return gf((function(){if(!l){f(!0);var e=setTimeout(y,d);return function(){clearTimeout(e)}}}),[y,l,d]),e.createElement("span",{className:m,style:g},e.createElement("span",{className:v}))};var yf=e.forwardRef((function(t,n){var r=t.center,o=void 0!==r&&r,s=t.classes,l=t.className,c=i(t,["center","classes","className"]),u=e.useState([]),d=u[0],p=u[1],h=e.useRef(0),f=e.useRef(null);e.useEffect((function(){f.current&&(f.current(),f.current=null)}),[d]);var m=e.useRef(!1),g=e.useRef(null),v=e.useRef(null),y=e.useRef(null);e.useEffect((function(){return function(){clearTimeout(g.current)}}),[]);var b=e.useCallback((function(t){var n=t.pulsate,i=t.rippleX,r=t.rippleY,o=t.rippleSize,a=t.cb;p((function(t){return[].concat(id(t),[e.createElement(vf,{key:h.current,classes:s,timeout:550,pulsate:n,rippleX:i,rippleY:r,rippleSize:o})])})),h.current+=1,f.current=a}),[s]),w=e.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,r=void 0!==i&&i,a=t.center,s=void 0===a?o||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&m.current)m.current=!1;else{"touchstart"===e.type&&(m.current=!0);var u,d,p,h=c?null:y.current,f=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(f.width/2),d=Math.round(f.height/2);else{var w=e.touches?e.touches[0]:e,x=w.clientX,E=w.clientY;u=Math.round(x-f.left),d=Math.round(E-f.top)}if(s)(p=Math.sqrt((2*Math.pow(f.width,2)+Math.pow(f.height,2))/3))%2==0&&(p+=1);else{var C=2*Math.max(Math.abs((h?h.clientWidth:0)-u),u)+2,S=2*Math.max(Math.abs((h?h.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(C,2)+Math.pow(S,2))}e.touches?null===v.current&&(v.current=function(){b({pulsate:r,rippleX:u,rippleY:d,rippleSize:p,cb:n})},g.current=setTimeout((function(){v.current&&(v.current(),v.current=null)}),80)):b({pulsate:r,rippleX:u,rippleY:d,rippleSize:p,cb:n})}}),[o,b]),x=e.useCallback((function(){w({},{pulsate:!0})}),[w]),E=e.useCallback((function(e,t){if(clearTimeout(g.current),"touchend"===e.type&&v.current)return e.persist(),v.current(),v.current=null,void(g.current=setTimeout((function(){E(e,t)})));v.current=null,p((function(e){return e.length>0?e.slice(1):e})),f.current=t}),[]);return e.useImperativeHandle(n,(function(){return{pulsate:x,start:w,stop:E}}),[x,w,E]),e.createElement("span",a({className:rc(s.root,l),ref:y},c),e.createElement(mf,{component:null,exit:!0},d))}));const bf=lp((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(e.memo(yf));var wf=e.forwardRef((function(t,n){var r=t.action,o=t.buttonRef,s=t.centerRipple,l=void 0!==s&&s,c=t.children,u=t.classes,d=t.className,p=t.component,h=void 0===p?"button":p,f=t.disabled,m=void 0!==f&&f,g=t.disableRipple,v=void 0!==g&&g,y=t.disableTouchRipple,b=void 0!==y&&y,w=t.focusRipple,x=void 0!==w&&w,E=t.focusVisibleClassName,C=t.onBlur,S=t.onClick,T=t.onFocus,P=t.onFocusVisible,A=t.onKeyDown,O=t.onKeyUp,I=t.onMouseDown,R=t.onMouseLeave,k=t.onMouseUp,D=t.onTouchEnd,j=t.onTouchMove,M=t.onTouchStart,N=t.onDragLeave,L=t.tabIndex,B=void 0===L?0:L,F=t.TouchRippleProps,_=t.type,z=void 0===_?"button":_,H=i(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),U=e.useRef(null);var V=e.useRef(null),W=e.useState(!1),G=W[0],q=W[1];m&&G&&q(!1);var Z=cf(),X=Z.isFocusVisible,Y=Z.onBlurVisible,K=Z.ref;function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;return vp((function(i){return t&&t(i),!n&&V.current&&V.current[e](i),!0}))}e.useImperativeHandle(r,(function(){return{focusVisible:function(){q(!0),U.current.focus()}}}),[]),e.useEffect((function(){G&&x&&!v&&V.current.pulsate()}),[v,x,G]);var J=Q("start",I),$=Q("stop",N),ee=Q("stop",k),te=Q("stop",(function(e){G&&e.preventDefault(),R&&R(e)})),ne=Q("start",M),ie=Q("stop",D),re=Q("stop",j),oe=Q("stop",(function(e){G&&(Y(e),q(!1)),C&&C(e)}),!1),ae=vp((function(e){U.current||(U.current=e.currentTarget),X(e)&&(q(!0),P&&P(e)),T&&T(e)})),se=function(){var e=ke.findDOMNode(U.current);return h&&"button"!==h&&!("A"===e.tagName&&e.href)},le=e.useRef(!1),ce=vp((function(e){x&&!le.current&&G&&V.current&&" "===e.key&&(le.current=!0,e.persist(),V.current.stop(e,(function(){V.current.start(e)}))),e.target===e.currentTarget&&se()&&" "===e.key&&e.preventDefault(),A&&A(e),e.target===e.currentTarget&&se()&&"Enter"===e.key&&!m&&(e.preventDefault(),S&&S(e))})),ue=vp((function(e){x&&" "===e.key&&V.current&&G&&!e.defaultPrevented&&(le.current=!1,e.persist(),V.current.stop(e,(function(){V.current.pulsate(e)}))),O&&O(e),S&&e.target===e.currentTarget&&se()&&" "===e.key&&!e.defaultPrevented&&S(e)})),de=h;"button"===de&&H.href&&(de="a");var pe={};"button"===de?(pe.type=z,pe.disabled=m):("a"===de&&H.href||(pe.role="button"),pe["aria-disabled"]=m);var he=hp(o,n),fe=hp(K,U),me=hp(he,fe),ge=e.useState(!1),ve=ge[0],ye=ge[1];e.useEffect((function(){ye(!0)}),[]);var be=ve&&!v&&!m;return e.createElement(de,a({className:rc(u.root,d,G&&[u.focusVisible,E],m&&u.disabled),onBlur:oe,onClick:S,onFocus:ae,onKeyDown:ce,onKeyUp:ue,onMouseDown:J,onMouseLeave:te,onMouseUp:ee,onDragLeave:$,onTouchEnd:ie,onTouchMove:re,onTouchStart:ne,ref:me,tabIndex:m?-1:B},pe,H),c,be?e.createElement(bf,a({ref:V,center:l},F)):null)}));const xf=lp({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(wf);var Ef="undefined"==typeof window?e.useEffect:e.useLayoutEffect,Cf=e.forwardRef((function(t,n){var r=t.alignItems,o=void 0===r?"center":r,s=t.autoFocus,l=void 0!==s&&s,c=t.button,u=void 0!==c&&c,d=t.children,p=t.classes,h=t.className,f=t.component,m=t.ContainerComponent,g=void 0===m?"li":m,v=t.ContainerProps,y=(v=void 0===v?{}:v).className,b=i(v,["className"]),w=t.dense,x=void 0!==w&&w,E=t.disabled,C=void 0!==E&&E,S=t.disableGutters,T=void 0!==S&&S,P=t.divider,A=void 0!==P&&P,O=t.focusVisibleClassName,I=t.selected,R=void 0!==I&&I,k=i(t,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),D=e.useContext(eh),j={dense:x||D.dense||!1,alignItems:o},M=e.useRef(null);Ef((function(){l&&M.current&&M.current.focus()}),[l]);var N,L,B=e.Children.toArray(d),F=B.length&&(N=B[B.length-1],L=["ListItemSecondaryAction"],e.isValidElement(N)&&-1!==L.indexOf(N.type.muiName)),_=hp(e.useCallback((function(e){M.current=ke.findDOMNode(e)}),[]),n),z=a({className:rc(p.root,h,j.dense&&p.dense,!T&&p.gutters,A&&p.divider,C&&p.disabled,u&&p.button,"center"!==o&&p.alignItemsFlexStart,F&&p.secondaryAction,R&&p.selected),disabled:C},k),H=f||"li";return u&&(z.component=f||"div",z.focusVisibleClassName=rc(p.focusVisible,O),H=xf),F?(H=z.component||f?H:"div","li"===g&&("li"===H?H="div":"li"===z.component&&(z.component="div")),e.createElement(eh.Provider,{value:j},e.createElement(g,a({className:rc(p.container,y),ref:_},b),e.createElement(H,z,B),B.pop()))):e.createElement(eh.Provider,{value:j},e.createElement(H,a({ref:_},z),B))}));const Sf=lp((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(Cf);var Tf=e.forwardRef((function(t,n){var r,o=t.classes,s=t.className,l=t.component,c=void 0===l?"li":l,u=t.disableGutters,d=void 0!==u&&u,p=t.ListItemClasses,h=t.role,f=void 0===h?"menuitem":h,m=t.selected,g=t.tabIndex,v=i(t,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return t.disabled||(r=void 0!==g?g:-1),e.createElement(Sf,a({button:!0,role:f,tabIndex:r,component:c,selected:m,disableGutters:d,classes:a({dense:o.dense},p),className:rc(o.root,s,m&&o.selected,!d&&o.gutters),ref:n},v))}));const Pf=lp((function(e){return{root:a({},e.typography.body1,p({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:a({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(Tf);function Af(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Of(i.key),i)}}function Of(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function If(e,t){return If=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},If(e,t)}function Rf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Df(e);if(t){var r=Df(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kf(e)}(this,n)}}function kf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Df(e){return Df=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Df(e)}const jf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&If(e,t)}(a,e);var n,i,r,o=Rf(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).handleSubmit=t.handleSubmit.bind(kf(t)),t.state={textInput:""},t}return n=a,(i=[{key:"handleSubmit",value:function(e){e.preventDefault();var t=new FormData(e.target).get("folioID");this.props.submitHandler(t,this.props.side),this.props.blurHandler(),this.setState({textInput:""})}},{key:"componentDidUpdate",value:function(e){if(this.props.isVisible){var t=document.createElement("script"),n="".concat(this.props.side,"_jumpInput");t.innerHTML="setTimeout(function() { document.getElementById('".concat(n,"').focus(); }, 250);"),document.body.appendChild(t)}}},{key:"handleChange",value:function(e){this.setState({textInput:e.target.value})}},{key:"render",value:function(){var e={position:"fixed",zIndex:1,top:this.props.positionY,left:this.props.positionX,display:this.props.isVisible?"inline":"none"},n="".concat(this.props.side,"_jumpInput");return t().createElement("div",{className:"jumpToFolio_component",style:e},t().createElement("form",{onSubmit:this.handleSubmit},t().createElement("input",{placeholder:"Page Name (e.g. '3r')",value:this.state.textInput,id:n,name:"folioID",type:"text",onChange:this.handleChange.bind(this),onBlur:this.props.blurHandler})))}}])&&Af(n.prototype,i),r&&Af(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);var Mf={transcriptionTypeLabels:{f:"Facsimile",glossary:"Glossary"}};const Nf=Mf;var Lf="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Bf=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Lf&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var Ff=Lf&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Bf))}};function _f(e){return e&&"[object Function]"==={}.toString.call(e)}function zf(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Hf(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Uf(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=zf(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?e:Uf(Hf(e))}function Vf(e){return e&&e.referenceNode?e.referenceNode:e}var Wf=Lf&&!(!window.MSInputMethodContext||!document.documentMode),Gf=Lf&&/MSIE 10/.test(navigator.userAgent);function qf(e){return 11===e?Wf:10===e?Gf:Wf||Gf}function Zf(e){if(!e)return document.documentElement;for(var t=qf(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===zf(n,"position")?Zf(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Xf(e){return null!==e.parentNode?Xf(e.parentNode):e}function Yf(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||i.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&Zf(a.firstElementChild)!==a?Zf(l):l;var c=Xf(e);return c.host?Yf(c.host,t):Yf(e,Xf(t).host)}function Kf(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[t]}return e[t]}function Qf(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function Jf(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],qf(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function $f(e){var t=e.body,n=e.documentElement,i=qf(10)&&getComputedStyle(n);return{height:Jf("Height",t,n,i),width:Jf("Width",t,n,i)}}var em=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),tm=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},nm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function im(e){return nm({},e,{right:e.left+e.width,bottom:e.top+e.height})}function rm(e){var t={};try{if(qf(10)){t=e.getBoundingClientRect();var n=Kf(e,"top"),i=Kf(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?$f(e.ownerDocument):{},a=o.width||e.clientWidth||r.width,s=o.height||e.clientHeight||r.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=zf(e);l-=Qf(u,"x"),c-=Qf(u,"y"),r.width-=l,r.height-=c}return im(r)}function om(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=qf(10),r="HTML"===t.nodeName,o=rm(e),a=rm(t),s=Uf(e),l=zf(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=im({top:o.top-a.top-c,left:o.left-a.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!i&&r){var p=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-h,d.right-=u-h,d.marginTop=p,d.marginLeft=h}return(i&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Kf(t,"top"),r=Kf(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}(d,t)),d}function am(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===zf(e,"position"))return!0;var n=Hf(e);return!!n&&am(n)}function sm(e){if(!e||!e.parentElement||qf())return document.documentElement;for(var t=e.parentElement;t&&"none"===zf(t,"transform");)t=t.parentElement;return t||document.documentElement}function lm(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=r?sm(e):Yf(e,Vf(t));if("viewport"===i)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=om(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Kf(n),s=t?0:Kf(n,"left");return im({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o})}(a,r);else{var s=void 0;"scrollParent"===i?"BODY"===(s=Uf(Hf(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===i?e.ownerDocument.documentElement:i;var l=om(s,a,r);if("HTML"!==s.nodeName||am(a))o=l;else{var c=$f(e.ownerDocument),u=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var p="number"==typeof(n=n||0);return o.left+=p?n:n.left||0,o.top+=p?n:n.top||0,o.right-=p?n:n.right||0,o.bottom-=p?n:n.bottom||0,o}function cm(e){return e.width*e.height}function um(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=lm(n,i,o,r),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return nm({key:e},s[e],{area:cm(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function dm(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return om(n,i?sm(t):Yf(t,Vf(n)),i)}function pm(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function hm(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function fm(e,t,n){n=n.split("-")[0];var i=pm(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[a]=t[a]+t[l]/2-i[l]/2,r[s]=n===s?t[s]-i[c]:t[hm(s)],r}function mm(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function gm(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var i=mm(e,(function(e){return e[t]===n}));return e.indexOf(i)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&_f(n)&&(t.offsets.popper=im(t.offsets.popper),t.offsets.reference=im(t.offsets.reference),t=n(t,e))})),t}function vm(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=dm(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=um(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=fm(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=gm(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function ym(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function bm(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==document.body.style[o])return o}return null}function wm(){return this.state.isDestroyed=!0,ym(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[bm("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function xm(e){var t=e.ownerDocument;return t?t.defaultView:window}function Em(e,t,n,i){var r="BODY"===e.nodeName,o=r?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),r||Em(Uf(o.parentNode),t,n,i),i.push(o)}function Cm(e,t,n,i){n.updateBound=i,xm(e).addEventListener("resize",n.updateBound,{passive:!0});var r=Uf(e);return Em(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function Sm(){this.state.eventsEnabled||(this.state=Cm(this.reference,this.options,this.state,this.scheduleUpdate))}function Tm(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,xm(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Pm(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Am(e,t){Object.keys(t).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Pm(t[n])&&(i="px"),e.style[n]=t[n]+i}))}var Om=Lf&&/Firefox/i.test(navigator.userAgent);function Im(e,t,n){var i=mm(e,(function(e){return e.name===t})),r=!!i&&e.some((function(e){return e.name===n&&e.enabled&&e.order<i.order}));if(!r){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}var Rm=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],km=Rm.slice(3);function Dm(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=km.indexOf(e),i=km.slice(n+1).concat(km.slice(0,n));return t?i.reverse():i}var jm="flip",Mm="clockwise",Nm="counterclockwise";function Lm(e,t,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(mm(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map((function(e,i){var r=(1===i?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return e;if(0===a.indexOf("%")){return im("%p"===a?n:i)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,r,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,i){Pm(n)&&(r[t]+=n*("-"===e[i-1]?-1:1))}))})),r}var Bm={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,o=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:tm({},l,o[l]),end:tm({},l,o[l]+o[c]-a[c])};e.offsets.popper=nm({},a,u[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,r=e.offsets,o=r.popper,a=r.reference,s=i.split("-")[0],l=void 0;return l=Pm(+n)?[+n,0]:Lm(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Zf(e.instance.popper);e.instance.reference===n&&(n=Zf(n));var i=bm("transform"),r=e.instance.popper.style,o=r.top,a=r.left,s=r[i];r.top="",r.left="",r[i]="";var l=lm(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=o,r.left=a,r[i]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),tm({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(i=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),tm({},n,i)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=nm({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<o(i[l])&&(e.offsets.popper[l]=o(i[l])-n[c]),n[l]>o(i[s])&&(e.offsets.popper[l]=o(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Im(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",f=pm(i)[c];s[h]-f<a[d]&&(e.offsets.popper[d]-=a[d]-(s[h]-f)),s[d]+f>a[h]&&(e.offsets.popper[d]+=s[d]+f-a[h]),e.offsets.popper=im(e.offsets.popper);var m=s[d]+s[c]/2-f/2,g=zf(e.instance.popper),v=parseFloat(g["margin"+u]),y=parseFloat(g["border"+u+"Width"]),b=m-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(a[c]-f,b),0),e.arrowElement=i,e.offsets.arrow=(tm(n={},d,Math.round(b)),tm(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(ym(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=lm(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],r=hm(i),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case jm:a=[i,r];break;case Mm:a=Dm(i);break;case Nm:a=Dm(i,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return e;i=e.placement.split("-")[0],r=hm(i);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),h=d(c.left)<d(n.left),f=d(c.right)>d(n.right),m=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),v="left"===i&&h||"right"===i&&f||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),b=!!t.flipVariations&&(y&&"start"===o&&h||y&&"end"===o&&f||!y&&"start"===o&&m||!y&&"end"===o&&g),w=!!t.flipVariationsByContent&&(y&&"start"===o&&f||y&&"end"===o&&h||!y&&"start"===o&&g||!y&&"end"===o&&m),x=b||w;(p||v||x)&&(e.flipped=!0,(p||v)&&(i=a[l+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=nm({},e.offsets.popper,fm(e.instance.popper,e.offsets.reference,e.placement)),e=gm(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),e.placement=hm(t),e.offsets.popper=im(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Im(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=mm(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,r=e.offsets.popper,o=mm(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=Zf(e.instance.popper),l=rm(s),c={position:r.position},u=function(e,t){var n=e.offsets,i=n.popper,r=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},l=o(r.width),c=o(i.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?o:a:s,h=t?o:s;return{left:p(l%2==1&&c%2==1&&!d&&t?i.left-1:i.left),top:h(i.top),bottom:h(i.bottom),right:p(i.right)}}(e,window.devicePixelRatio<2||!Om),d="bottom"===n?"top":"bottom",p="right"===i?"left":"right",h=bm("transform"),f=void 0,m=void 0;if(m="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,f="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&h)c[h]="translate3d("+f+"px, "+m+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,v="right"===p?-1:1;c[d]=m*g,c[p]=f*v,c.willChange=d+", "+p}var y={"x-placement":e.placement};return e.attributes=nm({},y,e.attributes),e.styles=nm({},c,e.styles),e.arrowStyles=nm({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Am(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Am(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,r){var o=dm(r,t,e,n.positionFixed),a=um(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Am(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},Fm={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Bm},_m=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Ff(this.update.bind(this)),this.options=nm({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(nm({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){i.options.modifiers[t]=nm({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return nm({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&_f(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return em(e,[{key:"update",value:function(){return vm.call(this)}},{key:"destroy",value:function(){return wm.call(this)}},{key:"enableEventListeners",value:function(){return Sm.call(this)}},{key:"disableEventListeners",value:function(){return Tm.call(this)}}]),e}();_m.Utils=("undefined"!=typeof window?window:r.g).PopperUtils,_m.placements=Rm,_m.Defaults=Fm;const zm=_m;function Hm(e){return"function"==typeof e?e():e}var Um="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Vm={},Wm=e.forwardRef((function(t,n){var r=t.anchorEl,o=t.children,s=t.container,l=t.disablePortal,c=void 0!==l&&l,u=t.keepMounted,d=void 0!==u&&u,p=t.modifiers,h=t.open,f=t.placement,m=void 0===f?"bottom":f,g=t.popperOptions,v=void 0===g?Vm:g,y=t.popperRef,b=t.style,w=t.transition,x=void 0!==w&&w,E=i(t,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),C=e.useRef(null),S=hp(C,n),T=e.useRef(null),P=hp(T,y),A=e.useRef(P);Um((function(){A.current=P}),[P]),e.useImperativeHandle(y,(function(){return T.current}),[]);var O=e.useState(!0),I=O[0],R=O[1],k=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(m,ce()),D=e.useState(k),j=D[0],M=D[1];e.useEffect((function(){T.current&&T.current.update()}));var N=e.useCallback((function(){if(C.current&&r&&h){T.current&&(T.current.destroy(),A.current(null));var e=function(e){M(e.placement)},t=(Hm(r),new zm(Hm(r),C.current,a({placement:k},v,{modifiers:a({},c?{}:{preventOverflow:{boundariesElement:"window"}},p,v.modifiers),onCreate:dp(e,v.onCreate),onUpdate:dp(e,v.onUpdate)})));A.current(t)}}),[r,c,p,h,k,v]),L=e.useCallback((function(e){pp(S,e),N()}),[S,N]),B=function(){T.current&&(T.current.destroy(),A.current(null))};if(e.useEffect((function(){return function(){B()}}),[]),e.useEffect((function(){h||x||B()}),[h,x]),!d&&!h&&(!x||I))return null;var F={placement:j};return x&&(F.TransitionProps={in:h,onEnter:function(){R(!1)},onExited:function(){R(!0),B()}}),e.createElement(mp,{disablePortal:c,container:s},e.createElement("div",a({ref:L,role:"tooltip"},E,{style:a({position:"fixed",top:0,left:0,display:h||!d||x?null:"none"},b)}),"function"==typeof o?o(F):o))}));const Gm=Wm;var qm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Zm=e.forwardRef((function(t,n){var r=t.align,o=void 0===r?"inherit":r,s=t.classes,l=t.className,c=t.color,u=void 0===c?"initial":c,d=t.component,p=t.display,h=void 0===p?"initial":p,f=t.gutterBottom,m=void 0!==f&&f,g=t.noWrap,v=void 0!==g&&g,y=t.paragraph,b=void 0!==y&&y,w=t.variant,x=void 0===w?"body1":w,E=t.variantMapping,C=void 0===E?qm:E,S=i(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),T=d||(b?"p":C[x]||qm[x])||"span";return e.createElement(T,a({className:rc(s.root,l,"inherit"!==x&&s[x],"initial"!==u&&s["color".concat(ac(u))],v&&s.noWrap,m&&s.gutterBottom,b&&s.paragraph,"inherit"!==o&&s["align".concat(ac(o))],"initial"!==h&&s["display".concat(ac(h))]),ref:n},S))}));const Xm=lp((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Zm);var Ym={entering:{opacity:1},entered:{opacity:1}},Km={enter:ne.enteringScreen,exit:ne.leavingScreen},Qm=e.forwardRef((function(t,n){var r=t.children,o=t.disableStrictModeCompat,s=void 0!==o&&o,l=t.in,c=t.onEnter,u=t.onEntered,d=t.onEntering,p=t.onExit,h=t.onExited,f=t.onExiting,m=t.style,g=t.TransitionComponent,v=void 0===g?_p:g,y=t.timeout,b=void 0===y?Km:y,w=i(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),x=ge(),E=x.unstable_strictMode&&!s,C=e.useRef(null),S=hp(r.ref,n),T=hp(E?C:void 0,S),P=function(e){return function(t,n){if(e){var i=V(E?[C.current,t]:[t,n],2),r=i[0],o=i[1];void 0===o?e(r):e(r,o)}}},A=P(d),O=P((function(e,t){zp(e);var n=Hp({style:m,timeout:b},{mode:"enter"});e.style.webkitTransition=x.transitions.create("opacity",n),e.style.transition=x.transitions.create("opacity",n),c&&c(e,t)})),I=P(u),R=P(f),k=P((function(e){var t=Hp({style:m,timeout:b},{mode:"exit"});e.style.webkitTransition=x.transitions.create("opacity",t),e.style.transition=x.transitions.create("opacity",t),p&&p(e)})),D=P(h);return e.createElement(v,a({appear:!0,in:l,nodeRef:E?C:void 0,onEnter:O,onEntered:I,onEntering:A,onExit:k,onExited:D,onExiting:R,timeout:b},w),(function(t,n){return e.cloneElement(r,a({style:a({opacity:0,visibility:"exited"!==t||l?void 0:"hidden"},Ym[t],m,r.props.style),ref:T},n))}))}));const Jm=Qm;var $m=e.forwardRef((function(t,n){var r=t.children,o=t.classes,s=t.className,l=t.disableTypography,c=void 0!==l&&l,u=t.inset,d=void 0!==u&&u,p=t.primary,h=t.primaryTypographyProps,f=t.secondary,m=t.secondaryTypographyProps,g=i(t,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),v=e.useContext(eh).dense,y=null!=p?p:r;null==y||y.type===Xm||c||(y=e.createElement(Xm,a({variant:v?"body2":"body1",className:o.primary,component:"span",display:"block"},h),y));var b=f;return null==b||b.type===Xm||c||(b=e.createElement(Xm,a({variant:"body2",className:o.secondary,color:"textSecondary",display:"block"},m),b)),e.createElement("div",a({className:rc(o.root,s,v&&o.dense,d&&o.inset,y&&b&&o.multiline),ref:n},g),y,b)}));const eg=lp({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})($m);const tg=function(e){return t().createElement(Gm,{anchorEl:e.anchorEl,open:e.open,style:e.marginStyle},t().createElement(Jm,{in:e.open},t().createElement(Zp,{className:"helpContainer"},t().createElement("div",{onClick:e.onClose,className:"closeX"},t().createElement("span",{className:"fa fa-window-close"})),t().createElement("div",null,t().createElement(Xm,{variant:"h6",component:"h2"},"Toolbar Buttons"),t().createElement(nh,null,t().createElement(Sf,null,t().createElement("span",{className:"fa fa-lock"}),t().createElement(eg,{primary:"Toggle Sync Views"})),t().createElement(Sf,null,t().createElement("span",{className:"fa fa-book"}),t().createElement(eg,{primary:"Toggle Book Mode"})),t().createElement(Sf,null,t().createElement("span",{className:"fa fa-code"}),t().createElement(eg,{primary:"Toggle XML Mode"})),t().createElement(Sf,null,t().createElement("span",{className:"horizontal-buttons"},t().createElement(ec,null),t().createElement(tc,null)),t().createElement(eg,{primary:"Go Forward / Back"})),t().createElement(Sf,null,t().createElement("span",{className:"fa fa-hand-point-right"}),t().createElement(eg,{primary:"Jump to folio"})),t().createElement("div",{className:"readingGuide"},t().createElement(Xm,{variant:"h6",component:"h2"},"Reading Guide"),t().createElement("table",null,t().createElement("thead",null,t().createElement("tr",null,t().createElement("th",null,t().createElement(Xm,{variant:"overline",component:"span"},"Syntax")),t().createElement("th",null,t().createElement(Xm,{variant:"overline",component:"span"},"Meaning")))),t().createElement("tbody",null,t().createElement("tr",null,t().createElement("td",null,t().createElement("img",{src:"data:image/png;base64,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",alt:"howtouse-ups"})),t().createElement("td",null,t().createElement(Xm,null,"Text is under the paper strip"))),t().createElement("tr",null,t().createElement("td",null,t().createElement("img",{src:"data:image/png;base64,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",alt:"howtouse-curly"})),t().createElement("td",null,t().createElement(Xm,null,"Expanded version implied by abbreviation marks"))),t().createElement("tr",null,t().createElement("td",null,t().createElement("img",{src:"data:image/png;base64,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",alt:"howtouse-square"})),t().createElement("td",null,t().createElement(Xm,null,"Editorial interventions and corrections"))),t().createElement("tr",null,t().createElement("td",null,t().createElement("img",{src:"data:image/png;base64,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",alt:"howtouse-asterisk"})),t().createElement("td",null,t().createElement(Xm,null,"Editorial Comments"))))))),t().createElement(Xm,null,"See  ",t().createElement("a",{href:"#/content/how-to-use"},"How to Use"),"  for more information.")))))};var ng=r(9451);function ig(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,rg(i.key),i)}}function rg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function og(e,t){return og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},og(e,t)}function ag(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=sg(e);if(t){var r=sg(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function sg(e){return sg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sg(e)}var lg=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","Z"],cg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&og(e,t)}(a,e);var n,i,r,o=ag(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(i=[{key:"renderAlphaLinks",value:function(){for(var e=[],n=0;n<lg.length;n++){var i=lg[n],r="alpha-".concat(n);e.push(t().createElement("span",{key:"link-".concat(r)},t().createElement(ng.rU,{to:r,offset:-120,containerId:"glossaryViewInner",smooth:"true"},i)," "))}return t().createElement("div",{style:{display:"inline"}},t().createElement("input",{id:"glossary-filter",className:"searchBox",placeholder:"Filter by Entry",onChange:this.props.onFilterChange,value:this.props.filterTerm}),t().createElement("div",{className:"alphaNav"},t().createElement("span",{style:{color:"black"}},"Go to: "),e))}},{key:"render",value:function(){return t().createElement("div",{className:"glossaryNav"},this.renderAlphaLinks())}}])&&ig(n.prototype,i),r&&ig(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);function ug(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function dg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ug(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ug(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pg(e,t,n){return(t=fg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hg(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,fg(i.key),i)}}function fg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function mg(e,t){return mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mg(e,t)}function gg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=yg(e);if(t){var r=yg(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vg(e)}(this,n)}}function vg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yg(e){return yg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yg(e)}var bg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mg(e,t)}(a,e);var n,i,r,o=gg(a);function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).onJumpBoxBlur=function(e){this.setState({popoverVisible:!1})},n.changeType=function(e){void 0!==e.target.value&&n.props.documentViewActions.changeTranscriptionType(n.props.side,e.target.value)},n.toggleHelp=function(e){n.setState({openHelp:!n.state.openHelp})},n.toggleBookmode=function(e){this.props.documentView.bookMode||(this.props.documentViewActions.changeCurrentFolio(this.props.documentView.left.iiifShortID,"left",this.props.documentView.left.transcriptionType),this.props.documentViewActions.changeCurrentFolio(this.props.documentView.left.nextFolioShortID,"right",this.props.documentView.left.transcriptionType)),this.props.documentViewActions.setBookMode(this.props.documentView.left.iiifShortID,!this.props.documentView.bookMode)},n.toggleXMLMode=function(e){this.props.documentViewActions.setXMLMode(this.props.side,!this.props.documentView[this.props.side].isXMLMode)},n.toggleLockmode=function(e){this.props.documentView.bookMode?this.toggleBookmode():(!1===this.props.documentView.linkedMode&&("left"===this.props.side?this.props.documentViewActions.changeCurrentFolio(this.props.documentView.left.iiifShortID,"right",this.props.documentView.right.transcriptionType):this.props.documentViewActions.changeCurrentFolio(this.props.documentView.right.iiifShortID,"left",this.props.documentView.left.transcriptionType)),this.props.documentViewActions.setLinkedMode(!this.props.documentView.linkedMode))},n.changeCurrentFolio=function(e){var t=n.props,i=t.documentViewActions,r=t.documentView,o=t.side;if(void 0!==e.currentTarget.dataset.id&&0!==e.currentTarget.dataset.id.length){var a=e.currentTarget.dataset.id;i.changeCurrentFolio(a,o,r[o].transcriptionType)}},n.revealJumpBox=function(e){this.setState({popoverVisible:!0,popoverX:e.clientX,popoverY:e.clientY})},n.changeType=n.changeType.bind(vg(n)),n.revealJumpBox=n.revealJumpBox.bind(vg(n)),n.onJumpBoxBlur=n.onJumpBoxBlur.bind(vg(n)),n.toggleLockmode=n.toggleLockmode.bind(vg(n)),n.toggleBookmode=n.toggleBookmode.bind(vg(n)),n.toggleXMLMode=n.toggleXMLMode.bind(vg(n)),n.changeCurrentFolio=n.changeCurrentFolio.bind(vg(n)),n.helpRef=null,n.state={popoverVisible:!1,popoverX:-1,popoverY:-1,openHelp:!1},n}return n=a,(i=[{key:"render",value:function(){var e,n=this,i=this.props,r=i.side,o=i.document,a=i.documentView,s=i.documentViewActions,l=i.onFilterChange;if(!a)return t().createElement("div",null,"Unknown Transcription Type");var c=a[r].width-8,u={width:c,maxWidth:c},d=ve("md",this.props.width)?a[r].width<500?{display:"none"}:{display:"flex"}:{},p="f"===a[r].transcriptionType?{color:"white"}:{color:"black"},h="f"===a[r].transcriptionType?"dark":"light",f="glossary"===a[r].transcriptionType?{visibility:"hidden"}:{visibility:"visible"},m=a.linkedMode?"fa fa-lock":"fa fa-lock-open";a.bookMode||(m+=" active");var g="f"===a[r].transcriptionType,v=a.bookMode?"fa fa-book active":"fa fa-book",y=a[r].isXMLMode?"fa fa-code active":"fa fa-code",b=null===(e=o.folioIndex[a[r].iiifShortID])||void 0===e?void 0:e.name,w=g?{color:"white"}:{color:"black"},x="left"===r?{marginRight:"55px"}:{marginRight:"15px"};return t().createElement("div",{className:"navigationComponent",style:u},t().createElement("div",{id:"navigation-row",className:"navigationRow"},"glossary"!==a[r].transcriptionType?t().createElement("div",{id:"tool-bar-buttons",className:"breadcrumbs",style:f},t().createElement("span",{title:"Toggle coordination of views",onClick:this.toggleLockmode,className:m})," ",t().createElement("span",{title:"Toggle book mode",onClick:this.toggleBookmode,className:v})," ",t().createElement("span",{title:"Toggle XML mode",onClick:this.toggleXMLMode,className:g?"invisible":y})," "," ",t().createElement("span",{title:"Go back",onClick:this.changeCurrentFolio,"data-id":a[r].previousFolioShortID,className:a[r].hasPrevious?"arrow":"arrow disabled"}," ",t().createElement(ec,null)," "),t().createElement("span",{title:"Go forward",onClick:this.changeCurrentFolio,"data-id":a[r].nextFolioShortID,className:a[r].hasNext?"arrow":"arrow disabled"}," ",t().createElement(tc,null)),"  ",o.documentName," / ",t().createElement("div",{onClick:this.revealJumpBox,className:"folioName"}," ",b," ",t().createElement("span",{style:w,className:"fa fa-hand-point-right"})),t().createElement(jf,{side:r,isVisible:this.state.popoverVisible,positionX:this.state.popoverX,positionY:this.state.popoverY,submitHandler:s.jumpToFolio,blurHandler:this.onJumpBoxBlur})):t().createElement(cg,{onFilterChange:l,value:this.props.value}),t().createElement("div",{id:"doc-type-help",style:d,ref:function(e){n.helpRef=e}},t().createElement(Jh,{className:h,style:dg(dg({},p),{},{marginRight:15}),value:a[r].transcriptionType,id:"doc-type",onClick:this.changeType},Object.keys(this.props.document.transcriptionTypes).map((function(e){return t().createElement(Pf,{value:e},n.props.document.transcriptionTypes[e])})),t().createElement(Pf,{value:"f"},Nf.transcriptionTypeLabels.f),t().createElement(Pf,{value:"glossary"},Nf.transcriptionTypeLabels.glossary)),t().createElement("span",{title:"Toggle folio help",onClick:this.toggleHelp,className:"helpIcon"},t().createElement("i",{className:"fas fa-question-circle"})),t().createElement(tg,{marginStyle:x,anchorEl:this.helpRef,open:this.state.openHelp,onClose:this.toggleHelp}))))}}])&&hg(n.prototype,i),r&&hg(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);const wg=be()(ot((function(e){return{document:e.document}}))(bg));function xg(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Eg(i.key),i)}}function Eg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Cg(e,t){return Cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cg(e,t)}function Sg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Tg(e);if(t){var r=Tg(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Tg(e){return Tg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tg(e)}var Pg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cg(e,t)}(a,e);var n,i,r,o=Sg(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(i=[{key:"render",value:function(){var e="os-zoom-in ".concat(this.props.side),n="os-zoom-out ".concat(this.props.side),i=this.props.documentView.bookMode?null:this.props.onZoomGrid;return t().createElement("ul",{className:"ImageZoomControl"},t().createElement("li",null,t().createElement("i",{title:"Zoom In",id:e,className:"zoom-in fas fa-plus-circle fa-2x"})),t().createElement("li",null,t().createElement("i",{title:"Fixed Zoom 1",onClick:this.props.onZoomFixed_1,className:"zoom-3 fas fa-circle fa-2x"})),t().createElement("li",null,t().createElement("i",{title:"Fixed Zoom 2",onClick:this.props.onZoomFixed_2,className:"zoom-2 fas fa-circle fa-lg"})),t().createElement("li",null,t().createElement("i",{title:"Fixed Zoom 3",onClick:this.props.onZoomFixed_3,className:"zoom-1 fas fa-circle"})),t().createElement("li",null,t().createElement("i",{title:"Zoom Out",id:n,className:"zoom-out fas fa-minus-circle fa-2x"})),t().createElement("li",{className:this.props.documentView.bookMode?"disabled":""},t().createElement("i",{title:"Return to grid mode (not available in book mode)",onClick:i,className:"zoom-grid fas fa-th fa-2x"})))}}])&&xg(n.prototype,i),r&&xg(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);function Ag(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Og(i.key),i)}}function Og(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Ig(e,t){return Ig=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ig(e,t)}function Rg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=kg(e);if(t){var r=kg(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function kg(e){return kg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kg(e)}var Dg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ig(e,t)}(a,e);var n,i,r,o=Rg(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,i=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var e=this.props,n=e.side,i=e.initViewer,r=e.tileSource;return t().createElement("div",{id:"image-view-seadragon-".concat(n),ref:function(e){i(e,r)}})}}],i&&Ag(n.prototype,i),r&&Ag(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);function jg(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Mg(i.key),i)}}function Mg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Ng(e,t){return Ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ng(e,t)}function Lg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Bg(e);if(t){var r=Bg(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Bg(e){return Bg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bg(e)}var Fg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ng(e,t)}(a,e);var n,i,r,o=Lg(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).initViewer=function(t,n){if(t){var i="os-zoom-in ".concat(e.props.side),r="os-zoom-out ".concat(e.props.side);e.viewer=nl()({element:t,zoomInButton:i,zoomOutButton:r,prefixUrl:"./img/openseadragon/"}),e.viewer.addTiledImage({tileSource:n})}else e.viewer=null},e.onZoomGrid=function(t){e.props.documentViewActions.changeTranscriptionType(e.props.side,"g")},e.onZoomFixed_1=function(t){e.viewer.viewport.zoomTo(e.viewer.viewport.getMaxZoom())},e.onZoomFixed_2=function(t){e.viewer.viewport.zoomTo(e.viewer.viewport.getMaxZoom()/2)},e.onZoomFixed_3=function(t){e.viewer.viewport.fitVertically()},e}return n=a,(i=[{key:"componentDidUpdate",value:function(e){if(e.folioID!==this.props.folioID){var t=this.props,n=t.document,i=t.folioID,r=n.folioIndex[i];r.tileSource&&this.viewer&&this.viewer.open(r.tileSource)}}},{key:"render",value:function(){var e=this.props,n=e.document,i=e.folioID,r=e.side,o=n.folioIndex[i];return t().createElement("div",null,o.tileSource&&t().createElement("div",{className:"image-view imageViewComponent ".concat(this.props.side)},t().createElement(wg,{side:this.props.side,documentView:this.props.documentView,documentViewActions:this.props.documentViewActions}),t().createElement(Pg,{side:this.props.side,documentView:this.props.documentView,onZoomFixed_1:this.onZoomFixed_1,onZoomFixed_2:this.onZoomFixed_2,onZoomFixed_3:this.onZoomFixed_3,onZoomGrid:this.onZoomGrid}),t().createElement(Dg,{side:r,tileSource:o.tileSource,initViewer:this.initViewer})))}}])&&jg(n.prototype,i),r&&jg(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const _g=ot((function(e){return{document:e.document}}))(Fg);var zg=r(2857),Hg=r.n(zg);function Ug(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Vg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ug(Object(n),!0).forEach((function(t){Wg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ug(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wg(e,t,n){return(t=qg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gg(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,qg(i.key),i)}}function qg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Zg(e,t){return Zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zg(e,t)}function Xg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Kg(e);if(t){var r=Kg(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Yg(e)}(this,n)}}function Yg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kg(e){return Kg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kg(e)}var Qg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zg(e,t)}(a,e);var n,i,r,o=Xg(a);function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).onJumpToChange=function(e){var t=e.target.value;n.setState(Vg(Vg({},n.state),{},{jumpToBuffer:t}))},n.onJumpTo=function(e){var t=n.state.jumpToBuffer,i=n.props,r=i.side,o=i.document,a=i.documentViewActions;if(e.preventDefault(),o.folioByName[t]){var s=o.folioByName[t];s&&a.changeCurrentFolio(s.id,r)}n.setState(Vg(Vg({},n.state),{},{jumpToBuffer:""}))},n.onClickThumb=function(e,t){n.props.documentViewActions.changeCurrentFolio(e,n.props.side)},n.moreThumbs=function(){var e=n.state.thumbs,t=n.state.visibleThumbs,i=t.length+n.loadIncrement;t=e.length>=i?e.slice(0,i):e,n.setState({visibleThumbs:t})},n.generateThumbs=n.generateThumbs.bind(Yg(n)),n.loadIncrement=10,n.state={jumpToBuffer:"",thumbs:"",visibleThumbs:[]},n}return n=a,i=[{key:"componentDidUpdate",value:function(e){var t=this.props.documentView[this.props.side].iiifShortID,n=this.props.documentView[this.props.side].iiifShortID;if(t!==n){var i=this.generateThumbs(n,this.props.document.folios),r=i.length>this.loadIncrement?this.loadIncrement:i.length,o=i.slice(0,r);this.setState({thumbs:i,visibleThumbs:o})}}},{key:"renderToolbar",value:function(){return t().createElement("div",{className:"imageGridToolbar"},t().createElement("div",{className:"jump-to"},t().createElement("form",{onSubmit:this.onJumpTo},t().createElement("span",null,"Jump to: "),t().createElement("input",{id:"jump-to-input",placeholder:"Page Name (e.g. '3r')",onChange:this.onJumpToChange,value:this.state.jumpToBuffer}),t().createElement("button",{id:"jump-to-button",onClick:this.onJumpTo},t().createElement("span",{style:{color:"black"},className:"fa fa-hand-point-right"})))))}},{key:"componentDidMount",value:function(){var e=this.props.documentView[this.props.side].iiifShortID,t=this.generateThumbs(e,this.props.document.folios),n=t.length>this.loadIncrement?this.loadIncrement:t.length,i=t.slice(0,n);this.setState({thumbs:t,visibleThumbs:i})}},{key:"generateThumbs",value:function(e,n){var i=this,r=n.map((function(n,r){return t().createElement("li",{key:"thumb-".concat(r),className:"thumbnail"},t().createElement("figure",{className:n.id===e?"current":""},t().createElement("a",{id:n.id,onClick:i.onClickThumb.bind(i,n.id)},t().createElement("img",{src:n.image_thumbnail_url,alt:n.name}))),t().createElement("figcaption",{className:n.id===e?"thumbnail-caption current":"thumbnail-caption"},n.id===e?"*".concat(n.name):n.name))}));return r}},{key:"hasMore",value:function(){return this.state.visibleThumbs.length!==this.state.thumbs.length}},{key:"render",value:function(){var e="imageGridComponent";e="".concat(e," ").concat(this.props.side);var n=this.state.visibleThumbs;return-1===n.constructor.toString().indexOf("Array")&&(n=[]),t().createElement("div",{className:e},this.renderToolbar(),t().createElement(Hg(),{element:"ul",loadMore:this.moreThumbs,hasMore:this.hasMore(),useWindow:!1},n))}}],i&&Gg(n.prototype,i),r&&Gg(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);const Jg=ot((function(e){return{document:e.document}}))(Qg);var $g=r(6682);$g.domToReact,$g.htmlToDOM,$g.attributesToProps,$g.Comment,$g.Element,$g.ProcessingInstruction,$g.Text;const ev=$g;function tv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,nv(i.key),i)}}function nv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function iv(e,t){return iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iv(e,t)}function rv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=av(e);if(t){var r=av(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ov(e)}(this,n)}}function ov(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function av(e){return av=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},av(e)}var sv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iv(e,t)}(a,e);var n,i,r,o=rv(a);function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).changeCurrentFolio=function(e){var t=n.props,i=t.side,r=t.documentView,o=t.documentViewActions,a=e.currentTarget.dataset;if(void 0!==a.id&&0!==a.id.length){var s=a.id;o.changeCurrentFolio(s,i,r[i].transcriptionType)}},n.changeCurrentFolio=n.changeCurrentFolio.bind(ov(n)),n}return n=a,(i=[{key:"render",value:function(){var e=this.props,n=e.side,i=e.document,r=e.documentView;if("-1"===r[n].iiifShortID)return null;var o=i.folioIndex[r[n].iiifShortID].name;return t().createElement("div",{className:"paginationComponent"},t().createElement("div",{className:"paginationControl"},t().createElement("span",{title:"Go back",onClick:this.changeCurrentFolio,"data-id":r[n].previousFolioShortID,className:r[n].hasPrevious?"arrow":"arrow disabled"},t().createElement(ec,null)),t().createElement("span",{className:"folioName"},o),t().createElement("span",{title:"Go forward",onClick:this.changeCurrentFolio,"data-id":r[n].nextFolioShortID,className:r[n].hasNext?"arrow":"arrow disabled"}," ",t().createElement(tc,null))))}}])&&tv(n.prototype,i),r&&tv(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);const lv=ot((function(e){return{document:e.document}}))(sv);function cv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function uv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cv(Object(n),!0).forEach((function(t){dv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dv(e,t,n){return(t=hv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,hv(i.key),i)}}function hv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function fv(e,t){return fv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fv(e,t)}function mv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=gv(e);if(t){var r=gv(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function gv(e){return gv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gv(e)}const vv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fv(e,t)}(a,e);var n,i,r,o=mv(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).onOpen=function(e){t.setState({anchorRef:e.currentTarget,open:!0})},t.onClose=function(e){t.setState(uv(uv({},t.state),{},{open:!1}))},t.state={anchorRef:null,open:!1},t}return n=a,(i=[{key:"renderPopper",value:function(){var e=this.state,n=e.anchorRef,i=e.open,r=ev(this.props.text)||"ERROR: Could not find comment for id: ".concat(this.props.commentID,".");return t().createElement(Gm,{id:this.props.commentID,open:i,anchorEl:n},t().createElement(Jm,{in:i},t().createElement(Zp,{className:"editor-comment-content"},t().createElement("div",{onClick:this.onClose,style:{float:"right",padding:5,fontStyle:"bold"}},t().createElement("span",{className:"fa fa-window-close"})),t().createElement(Xm,{style:{maxWidth:200,padding:"25px 15px 15px 15px"}},r))))}},{key:"render",value:function(){var e=this;return t().createElement("div",{style:{display:"inline"}},t().createElement("span",{onClick:function(t){return e.onOpen(t)},style:{fontStyle:"bold",fontSize:"18pt",color:"red"}},"*"),this.renderPopper())}}])&&pv(n.prototype,i),r&&pv(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);function yv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,bv(i.key),i)}}function bv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function wv(e,t){return wv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wv(e,t)}function xv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Ev(e);if(t){var r=Ev(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Ev(e){return Ev=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ev(e)}var Cv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wv(e,t)}(a,e);var n,i,r,o=xv(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={error:null,errorInfo:null},t}return n=a,r=[{key:"getDerivedStateFromError",value:function(e){return{error:!0}}}],(i=[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,errorInfo:t})}},{key:"render",value:function(){return this.state.errorInfo?t().createElement("div",{style:{height:"350px",overflowY:"scroll"}},t().createElement("h2",null,"Something went wrong."),t().createElement("details",{style:{whiteSpace:"pre-wrap"}},"There has been an error rendering a comment",t().createElement("br",null),this.state.error&&this.state.error.toString(),t().createElement("br",null),this.state.errorInfo.componentStack)):this.props.children}}])&&yv(n.prototype,i),r&&yv(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const Sv=function(e){var n=e.side,i=e.documentView,r=e.documentViewActions;return t().createElement("div",null,"-1"!==i.left.iiifShortID&&"-1"!==i.right.iiifShortID?t().createElement(wg,{side:n,documentView:i,documentViewActions:r}):null,t().createElement("div",{className:"transcriptContent"},t().createElement(lv,{side:n,className:"pagination_upper",documentView:i,documentViewActions:r}),t().createElement("div",{className:"watermark"},t().createElement("div",{className:"watermark_contents"}))))};function Tv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Pv(i.key),i)}}function Pv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Av(e,t){return Av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Av(e,t)}function Ov(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Iv(e);if(t){var r=Iv(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Iv(e){return Iv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Iv(e)}var Rv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Av(e,t)}(a,e);var n,i,r,o=Ov(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,i=[{key:"nodeTreeToString",value:function(e){for(var t="",n=0;n<e.length;n++)"text"===e[n].type?t+="".concat(e[n].data," "):e[n].children.length>0&&(t+=this.nodeTreeToString(e[n].children));return t.trim()}},{key:"render",value:function(){var e=this.props,n=e.side,i=e.folioID,r=e.transcriptionType,o=e.document,a=e.documentView,s=e.documentViewActions;if("-1"===i)return t().createElement(Sv,{documentView:a,documentViewActions:s,side:n});var l=o.folioIndex[i];if(!l.transcription)return t().createElement(Sv,{documentView:a,documentViewActions:s,side:n});var c=l.transcription[r];if(!c)return t().createElement(Sv,{documentView:a,documentViewActions:s,side:n});var u,d=(u={replace:function(e){switch(e.name){case"tei-note":var n,i=(null===(n=e.children[0])||void 0===n?void 0:n.data)||"",r=e.attribs.n;return r?t().createElement(vv,{commentID:r,text:i}):e;case"tei-figure":var o,a,s=e.children.find((function(e){return"tei-graphic"===e.name})),l=null==s||null===(o=s.attribs)||void 0===o?void 0:o.url;if(!l)return e;var c=e.children.find((function(e){return"tei-figdesc"===e.name})),u=null==c||null===(a=c.children[0])||void 0===a?void 0:a.data;return t().createElement("figure",{className:"inline-figure"},t().createElement("img",{src:l,alt:u||"",className:"inline-image"}),u?t().createElement("figcaption",null,u):null);default:return e}}},u),p=c.html,h=c.layout;if(!p)return t().createElement(Sv,{documentView:a,documentViewActions:s,side:n});var f={gridTemplateAreas:h};return t().createElement("div",null,t().createElement(wg,{side:n,documentView:a,documentViewActions:s}),t().createElement(lv,{side:n,documentView:a,documentViewActions:s}),t().createElement("div",{className:"transcriptionViewComponent"},t().createElement("div",{className:"transcriptContent"},t().createElement(Cv,null,t().createElement("div",{className:"surface grid-mode",style:f},ev(p,d))))),t().createElement(lv,{side:n,documentView:a,documentViewActions:s}))}}],i&&Tv(n.prototype,i),r&&Tv(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const kv=ot((function(e){return{annotations:e.annotations,document:e.document}}))(Rv);function Dv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,jv(i.key),i)}}function jv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Mv(e,t){return Mv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mv(e,t)}function Nv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Lv(e);if(t){var r=Lv(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Lv(e){return Lv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lv(e)}var Bv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mv(e,t)}(a,e);var n,i,r,o=Nv(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(i=[{key:"render",value:function(){var e=this.props,n=e.side,i=e.document,r=e.documentView,o=e.documentViewActions,a="xmlViewComponent ".concat(n),s="xmlViewComponent_".concat(n),l=r[n].iiifShortID;if("-1"===l)return t().createElement("div",{className:"watermark"},t().createElement("div",{className:"watermark_contents"}));var c=i.folioIndex[l];if(!c.transcription)return t().createElement(Sv,{documentView:r,documentViewActions:o,side:n});var u=r[n].transcriptionType,d=c.transcription[u].xml;return t().createElement("div",{id:s,className:a},t().createElement(wg,{side:n,documentView:r,documentViewActions:o}),t().createElement(lv,{side:n,className:"pagination_upper",documentView:r,documentViewActions:o}),t().createElement("div",{className:"xmlContentInner"},t().createElement("pre",null,d)))}}])&&Dv(n.prototype,i),r&&Dv(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const Fv=ot((function(e){return{document:e.document}}))(Bv);function _v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return zv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zv(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function zv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Hv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Uv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hv(Object(n),!0).forEach((function(t){Vv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vv(e,t,n){return(t=Gv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Gv(i.key),i)}}function Gv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function qv(e,t){return qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qv(e,t)}function Zv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Xv(e);if(t){var r=Xv(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Xv(e){return Xv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xv(e)}var Yv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qv(e,t)}(a,e);var n,i,r,o=Zv(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this)).onFilterChange=function(t){var n=t.target.value;e.setState(Uv(Uv({},e.state),{},{filterTerm:n}))},e.state={filterTerm:""},e}return n=a,(i=[{key:"renderGlossary",value:function(){for(var e=this.props.glossary.glossary,n=this.state.filterTerm.toLowerCase(),i=function(e,t,n){var i,r=_v(e.split(n));try{for(r.s();!(i=r.n()).done;)if(i.value.startsWith(t))return!0}catch(e){r.e(e)}finally{r.f()}return!1},r=[],o=0,a=0,s=Object.values(e);a<s.length;a++){var l=s[a];if(0===n.length&&l.headWord[0]===lg[o]){var c="alpha-".concat(o);r.push(t().createElement(Xm,{variant:"h4",key:"gloss-heading-".concat(lg[o]),id:c},"—",lg[o]," ","—")),o++}var u=l.headWord.toLowerCase(),d=l.alternateSpellings.toLowerCase(),p=l.modernSpelling.toLowerCase();if(0===n.length||0!==n.length&&i(u,n," ")||0!==n.length&&i(p,n," ")||0!==n.length&&i(d,n,", ")){var h=Kv(l),f=h[h.length-1].endsWith("."),m=l.alternateSpellings?", ".concat(l.alternateSpellings):"",g=l.meanings[0].partOfSpeech,v=g?"".concat(g,":"):"",y=g?",":":",b=l.modernSpelling?" (mod. ".concat(l.modernSpelling,")"):"",w=f?"":",",x=l.seeAlso?"".concat(w," see also <span>&#8594;</span>").concat(l.seeAlso," "):"",E=l.synonym?", syn. <span>&#8594;</span>".concat(l.synonym):"",C=l.antonym?", ant. <span>&#8594;</span>".concat(l.antonym):"";r.push(t().createElement(Xm,{gutterBottom:!0,key:"gloss-".concat(l.headWord)},t().createElement("u",null,l.headWord),m,b,y," ",v," ",h.map((function(e){return ev(e)})),ev(x),ev(E),ev(C)))}}return r}},{key:"render",value:function(){return this.props.glossary.loaded?t().createElement("div",{id:"glossaryView"},t().createElement(wg,{side:this.props.side,onFilterChange:this.onFilterChange,value:this.state.filterTerm,documentView:this.props.documentView,documentViewActions:this.props.documentViewActions}),t().createElement("div",{id:"glossaryViewInner"},t().createElement("div",{id:"glossaryContent"},t().createElement(Xm,{variant:"h2",className:"title"},"Glossary"),t().createElement(Xm,{className:"subtitle"},"For short titles, e.g., [COT1611], see",t().createElement("a",{href:"#/content/resources/bibliography"},"Bibliography"),"."),t().createElement("div",{className:"cite-instructions"},t().createElement(Xm,{className:"cite-header"},"How to Cite"),t().createElement(Xm,null,"“Glossary.” In",t().createElement("i",null,"Secrets of Craft and Nature in Renaissance France. A Digital Critical Edition and English Translation of BnF Ms. Fr. 640"),", edited by Making and Knowing Project, Pamela H. Smith, Naomi Rosenkranz, Tianna Helena Uchacz, Tillmann Taape, Clément Godbarge, Sophie Pitman, Jenny Boulboullé, Joel Klein, Donna Bilak, Marc Smith, and Terry Catapano. New York: Making and Knowing Project, 2020.",t().createElement("a",{href:"https://edition640.makingandknowing.org/#/folios/1r/f/1r/glossary"},"https://edition640.makingandknowing.org/#/folios/1r/f/1r/glossary"),".")),this.renderGlossary()))):null}}])&&Wv(n.prototype,i),r&&Wv(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);function Kv(e){for(var t=[],n=0;n<e.meanings.length;n++){var i=e.meanings[n],r=i.references?" [".concat(i.references,"]"):"",o=e.meanings.length>1?"".concat(n+1,". "):"",a=n<e.meanings.length-1?" ":"";t.push("".concat(o).concat(i.meaning).concat(r).concat(a))}return t}const Qv=ot((function(e){return{glossary:e.glossary}}))(Yv);function Jv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,$v(i.key),i)}}function $v(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function ey(e,t){return ey=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ey(e,t)}function ty(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=ny(e);if(t){var r=ny(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function ny(e){return ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ny(e)}var iy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ey(e,t)}(a,e);var n,i,r,o=ty(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(i=[{key:"render",value:function(){return t().createElement("div",{className:"single-pane-view"},this.props.singlePane)}}])&&Jv(n.prototype,i),r&&Jv(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const ry=ot((function(e){return{document:e.document}}))(iy);const oy=function(n){return function(i){var r,o,a=kn(),s=jn(),l=(r=e.useContext(On).matches,(o=r[r.length-1])?o.params:{});return t().createElement(n,Object.assign({},i,{router:{location:a,navigate:s,params:l}}))}};function ay(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ly(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function cy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ly(Object(n),!0).forEach((function(t){uy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ly(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uy(e,t,n){return(t=py(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dy(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,py(i.key),i)}}function py(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function hy(e,t){return hy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hy(e,t)}function fy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=gy(e);if(t){var r=gy(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return my(e)}(this,n)}}function my(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gy(e){return gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gy(e)}var vy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hy(e,t)}(a,e);var n,i,r,o=fy(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).onWidth=function(e,n){t.setState((function(t){var i=cy({},t);return i.left.width=e,i.right.width=n,i}))},t.getViewports=function(){var e,n,i,r,o=t.props.router.params,a=o.folioID,s=o.transcriptionType,l=o.folioID2,c=o.transcriptionType2;a?(l?(n=s,i=l,r=c||"tl"):(n="f",i=a,r=s||"tl"),e={left:{folioID:a,transcriptionType:n},right:{folioID:i,transcriptionType:r}}):e={left:{folioID:"-1",transcriptionType:"g"},right:{folioID:"-1",transcriptionType:"tl"}};return e};var n={isXMLMode:!1,width:0};return t.state={linkedMode:!0,bookMode:!1,left:cy({},n),right:cy({},n),viewports:t.getViewports()},t.documentViewActions={setXMLMode:t.setXMLMode.bind(my(t)),setLinkedMode:t.setLinkedMode.bind(my(t)),setBookMode:t.setBookMode.bind(my(t)),changeTranscriptionType:t.changeTranscriptionType.bind(my(t)),changeCurrentFolio:t.changeCurrentFolio.bind(my(t)),jumpToFolio:t.jumpToFolio.bind(my(t))},t}return n=a,i=[{key:"componentDidMount",value:function(){Wl(this.props,"DiplomaticActions.setFixedFrameMode",!0)}},{key:"setXMLMode",value:function(e,t){this.setState((function(n){var i=cy({},n);return i[e].isXMLMode=t,i}))}},{key:"setLinkedMode",value:function(e){this.setState((function(t){return cy(cy({},t),{},{linkedMode:e})}))}},{key:"setBookMode",value:function(e,t){if(this.setState((function(e){return cy(cy({},e),{},{bookMode:t})})),t){var n=ay(this.findBookFolios(e),2),i=n[0],r=n[1];this.navigateFolios(i,"f",r,"f")}}},{key:"jumpToFolio",value:function(e,t){var n=this.props.document;if(n.folioByName[e]){var i,r=null===(i=n.folioByName[e])||void 0===i?void 0:i.id;this.changeCurrentFolio(r,t,this.getViewports()[t].transcriptionType)}}},{key:"findBookFolios",value:function(e){var t=this.props.document,n=t.folioIndex[e],i=n.name,r=n.pageNumber;return i.endsWith("v")?[t.folios[r].id,t.folios[r+1].id]:i.endsWith("r")?[t.folios[r-1].id,t.folios[r].id]:[null,null]}},{key:"changeTranscriptionType",value:function(e,t){var n=this.getViewports();if("left"===e){var i=n.left.folioID,r=n.right;this.navigateFolios(i,t,r.folioID,r.transcriptionType)}else{var o=n.right.folioID,a=n.left;this.navigateFolios(a.folioID,a.transcriptionType,o,t)}}},{key:"navigateFolios",value:function(e,t,n,i){e?t?n?i?this.props.router.navigate("/ec/".concat(e,"/").concat(t,"/").concat(n,"/").concat(i)):this.props.router.navigate("/ec/".concat(e,"/").concat(t,"/").concat(n,"/tc")):this.props.router.navigate("/ec/".concat(e,"/").concat(t)):this.props.router.navigate("/ec/".concat(e)):this.props.router.navigate("/ec")}},{key:"changeCurrentFolio",value:function(e,t,n){var i=this.getViewports();if(this.state.bookMode){var r=ay(this.findBookFolios(e),2),o=r[0],a=r[1];o&&this.navigateFolios(o,"f",a,"f")}else if(this.state.linkedMode)if("left"===t){var s=i.right;this.navigateFolios(e,n,e,s.transcriptionType)}else{var l=i.left;this.navigateFolios(e,l.transcriptionType,e,n)}else if("left"===t){var c=i.right;this.navigateFolios(e,n,c.folioID,c.transcriptionType)}else{var u=i.left;this.navigateFolios(u.folioID,u.transcriptionType,e,n)}}},{key:"determineViewType",value:function(e){var t=this.getViewports()[e].transcriptionType,n=this.state[e].isXMLMode;return"g"===t?"ImageGridView":"f"===t?"ImageView":"glossary"===t?"GlossaryView":n?"XMLView":"TranscriptionView"}},{key:"viewportState",value:function(e){var t=this.props.document,n=this.getViewports()[e];if("-1"===n.folioID)return cy(cy({},this.state[e]),{},{iiifShortID:n.folioID,transcriptionType:n.transcriptionType});var i=n.folioID,r=t.folios.length,o="",a="",s=!1,l=!1;if(this.state.bookMode){var c=ay(this.findBookFolios(i),1)[0],u=t.folioIndex[c].pageNumber;u>-1&&(o=(l=u<r-2)?t.folios[u+2].id:"",a=(s=u>1&&r>1)?t.folios[u-2].id:"")}else{var d=t.folioIndex[i].pageNumber;d>-1&&(o=(l=d<r-1)?t.folios[d+1].id:"",a=(s=d>0&&r>1)?t.folios[d-1].id:"")}return cy(cy({},this.state[e]),{},{iiifShortID:i,transcriptionType:n.transcriptionType,hasPrevious:s,hasNext:l,previousFolioShortID:a,nextFolioShortID:o})}},{key:"renderPane",value:function(e,n){var i=this.determineViewType(e),r=this.viewPaneKey(e),o=n[e].iiifShortID,a=n[e].transcriptionType;return"ImageView"===i?t().createElement(_g,{key:r,folioID:o,documentView:n,documentViewActions:this.documentViewActions,side:e}):"TranscriptionView"===i?t().createElement(kv,{key:r,documentView:n,documentViewActions:this.documentViewActions,side:e,folioID:o,transcriptionType:a}):"XMLView"===i?t().createElement(Fv,{key:r,folioID:o,transcriptionType:a,documentView:n,documentViewActions:this.documentViewActions,side:e}):"ImageGridView"===i?t().createElement(Jg,{key:r,documentView:n,documentViewActions:this.documentViewActions,side:e}):"GlossaryView"===i?t().createElement(Qv,{key:r,documentView:n,documentViewActions:this.documentViewActions,side:e}):t().createElement("div",null,"ERROR: Unrecognized viewType.")}},{key:"viewPaneKey",value:function(e){var t=this.state[e];return"ImageGridView"===t.viewType?"".concat(e,"-").concat(t.viewType):void 0!==t.folio?"".concat(e,"-").concat(t.viewType,"-").concat(t.folio.id):"".concat(e,"-").concat(t.viewType)}},{key:"render",value:function(){if(!this.props.document.loaded)return null;var e=cy(cy({},this.state),{},{left:this.viewportState("left"),right:this.viewportState("right")}),n=cy(cy({},this.state),{},{right:cy({},this.viewportState("right"))});return ve("md",this.props.width)?t().createElement("div",null,t().createElement(fi,{leftPane:this.renderPane("left",e),rightPane:this.renderPane("right",e),onWidth:this.onWidth})):t().createElement("div",null,t().createElement(ry,{singlePane:this.renderPane("right",n)}))}}],i&&dy(n.prototype,i),r&&dy(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const yy=be()(ot((function(e){return{document:e.document}}))(oy(vy)));function by(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,wy(i.key),i)}}function wy(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function xy(e,t){return xy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xy(e,t)}function Ey(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Cy(e);if(t){var r=Cy(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Cy(e){return Cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cy(e)}var Sy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xy(e,t)}(o,e);var t,n,i,r=Ey(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this,e)).listening=!1,t}return t=o,(n=[{key:"componentDidUpdate",value:function(e){this.props.router.location!==e.router.location&&this.userNavigated()}},{key:"componentDidMount",value:function(){this.listening||(this.userNavigated(),this.listening=!0)}},{key:"userNavigated",value:function(){Wl(this.props,"RouteListenerSaga.userNavigatation",this.props.router.location)}},{key:"render",value:function(){return null}}])&&by(t.prototype,n),i&&by(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(t().Component);const Ty=ot((function(e){return{}}))(oy(Sy));function Py(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ay(i.key),i)}}function Ay(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Oy(e,t){return Oy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oy(e,t)}function Iy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Ry(e);if(t){var r=Ry(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Ry(e){return Ry=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ry(e)}var ky=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oy(e,t)}(s,e);var n,i,r,o=Iy(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.apply(this,arguments)}return n=s,i=[{key:"componentDidMount",value:function(){var e=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,i=n.history;function r(){var e=n.location,t=e.pathname,r=e.search,o=e.hash,a=i.state||{};return[a.idx,xe({pathname:t,search:r,hash:o,state:a.usr||null,key:a.key||"default"})]}var o=null;n.addEventListener(Ce,(function(){if(o)p.call(o),o=null;else{var e=we.Pop,t=r(),n=t[0],i=t[1];if(p.length){if(null!=n){var a=c-n;a&&(o={action:e,location:i,retry:function(){y(-1*a)}},y(a))}}else v(e)}}));var s=we.Pop,l=r(),c=l[0],u=l[1],d=Te(),p=Te();function h(e){return"string"==typeof e?e:Ae(e)}function f(e,t){return void 0===t&&(t=null),xe(a({pathname:u.pathname,hash:"",search:""},"string"==typeof e?Oe(e):e,{state:t,key:Pe()}))}function m(e,t){return[{usr:e.state,key:e.key,idx:t},h(e)]}function g(e,t,n){return!p.length||(p.call({action:e,location:t,retry:n}),!1)}function v(e){s=e;var t=r();c=t[0],u=t[1],d.call({action:s,location:u})}function y(e){i.go(e)}null==c&&(c=0,i.replaceState(a({},i.state,{idx:c}),""));var b={get action(){return s},get location(){return u},createHref:h,push:function e(t,r){var o=we.Push,a=f(t,r);if(g(o,a,(function(){e(t,r)}))){var s=m(a,c+1),l=s[0],u=s[1];try{i.pushState(l,"",u)}catch(e){n.location.assign(u)}v(o)}},replace:function e(t,n){var r=we.Replace,o=f(t,n);if(g(r,o,(function(){e(t,n)}))){var a=m(o,c),s=a[0],l=a[1];i.replaceState(s,"",l),v(r)}},go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return d.push(e)},block:function(e){var t=p.push(e);return 1===p.length&&n.addEventListener(Ee,Se),function(){t(),p.length||n.removeEventListener(Ee,Se)}}};return b}();e.listen((function(){window.scrollTo(0,0)}))}},{key:"render",value:function(){var e=this.props.diplomatic.fixedFrameMode?"fixed":"sticky";return t().createElement(at,{store:this.props.store},t().createElement(ti,null,t().createElement("div",{id:"diplomatic",className:e},t().createElement(Ty,null),t().createElement("div",{id:"content"},t().createElement(Yn,null,t().createElement(Zn,{path:"/ec/:folioID/:transcriptionType/:folioID2/:transcriptionType2",element:t().createElement(yy,this.props),exact:!0}),t().createElement(Zn,{path:"/ec/:folioID/:transcriptionType",element:t().createElement(yy,this.props),exact:!0}),t().createElement(Zn,{path:"/ec/:folioID",element:t().createElement(yy,this.props),exact:!0}),t().createElement(Zn,{path:"/ec",element:t().createElement(yy,this.props),exact:!0}),t().createElement(Zn,{path:"/",element:t().createElement(qn,{to:"/ec"}),exact:!0}))))))}}],i&&Py(n.prototype,i),r&&Py(n,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(e.Component);const Dy=be()(ot((function(e){return{diplomatic:e.diplomatic,documentView:e.documentView}}))(ky));const jy=function(e){var n=se({palette:{primary:{main:"#792421"},secondary:{main:"#EBE3DD"}}});return t().createElement(de,{theme:n},t().createElement(Dy,{config:e.config,store:Vl(e.config)}))}})(),o=o.default})()));