@cu-mkp/editioncrafter 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editioncrafter.min.js +1 -2
- package/dist/editioncrafter.min.js.LICENSE.txt +3 -3
- package/dist/es/src/component/DocumentView.js +14 -14
- package/dist/es/src/component/HelpPopper.js +19 -12
- package/dist/es/src/component/ImageGridView.js +4 -6
- package/dist/es/src/component/ImageView.js +0 -5
- package/dist/es/src/component/JumpToFolio.js +3 -3
- package/dist/es/src/component/Navigation.js +1 -1
- package/dist/es/src/component/TranscriptionView.js +11 -20
- package/dist/es/src/component/Watermark.js +25 -0
- package/dist/es/src/component/XMLView.js +21 -83
- package/dist/es/src/icons/howtouse-asterisk.png +0 -0
- package/dist/es/src/icons/howtouse-beaker.png +0 -0
- package/dist/es/src/icons/howtouse-curly.png +0 -0
- package/dist/es/src/icons/howtouse-square.png +0 -0
- package/dist/es/src/icons/howtouse-ups.png +0 -0
- package/dist/es/src/img/banner-about.png +0 -0
- package/dist/es/src/img/banner-essays.jpg +0 -0
- package/dist/es/src/img/banner-essays.png +0 -0
- package/dist/es/src/img/banner-how-to.png +0 -0
- package/dist/es/src/img/banner-resources.png +0 -0
- package/dist/es/src/img/book-open-cropped.png +0 -0
- package/dist/es/src/img/book-open.png +0 -0
- package/dist/es/src/img/book-spine.png +0 -0
- package/dist/es/src/img/bookcover-cropped.png +0 -0
- package/dist/es/src/img/cropped-MKLizardFilled-32x32.jpg +0 -0
- package/dist/es/src/img/folio48r-drawing.png +0 -0
- package/dist/es/src/img/howtouse-asterisk.png +0 -0
- package/dist/es/src/img/howtouse-beaker.png +0 -0
- package/dist/es/src/img/howtouse-curly.png +0 -0
- package/dist/es/src/img/howtouse-square.png +0 -0
- package/dist/es/src/img/howtouse-ups.png +0 -0
- package/dist/es/src/img/lizard-no-bg.png +0 -0
- package/dist/es/src/img/logo_center_multi_line.png +0 -0
- package/dist/es/src/img/logo_center_single_line.png +0 -0
- package/dist/es/src/img/logo_columbia.png +0 -0
- package/dist/es/src/img/mk-banner-logo.png +0 -0
- package/dist/es/src/img/mk-homepage-logo.png +0 -0
- package/dist/es/src/img/openseadragon/button_grouphover.png +0 -0
- package/dist/es/src/img/openseadragon/button_hover.png +0 -0
- package/dist/es/src/img/openseadragon/button_pressed.png +0 -0
- package/dist/es/src/img/openseadragon/button_rest.png +0 -0
- package/dist/es/src/img/openseadragon/fullpage_grouphover.png +0 -0
- package/dist/es/src/img/openseadragon/fullpage_hover.png +0 -0
- package/dist/es/src/img/openseadragon/fullpage_pressed.png +0 -0
- package/dist/es/src/img/openseadragon/fullpage_rest.png +0 -0
- package/dist/es/src/img/openseadragon/home_grouphover.png +0 -0
- package/dist/es/src/img/openseadragon/home_hover.png +0 -0
- package/dist/es/src/img/openseadragon/home_pressed.png +0 -0
- package/dist/es/src/img/openseadragon/home_rest.png +0 -0
- package/dist/es/src/img/openseadragon/next_grouphover.png +0 -0
- package/dist/es/src/img/openseadragon/next_hover.png +0 -0
- package/dist/es/src/img/openseadragon/next_pressed.png +0 -0
- package/dist/es/src/img/openseadragon/next_rest.png +0 -0
- package/dist/es/src/img/openseadragon/previous_grouphover.png +0 -0
- package/dist/es/src/img/openseadragon/previous_hover.png +0 -0
- package/dist/es/src/img/openseadragon/previous_pressed.png +0 -0
- package/dist/es/src/img/openseadragon/previous_rest.png +0 -0
- package/dist/es/src/img/openseadragon/rotateleft_grouphover.png +0 -0
- package/dist/es/src/img/openseadragon/rotateleft_hover.png +0 -0
- package/dist/es/src/img/openseadragon/rotateleft_pressed.png +0 -0
- package/dist/es/src/img/openseadragon/rotateleft_rest.png +0 -0
- package/dist/es/src/img/openseadragon/rotateright_grouphover.png +0 -0
- package/dist/es/src/img/openseadragon/rotateright_hover.png +0 -0
- package/dist/es/src/img/openseadragon/rotateright_pressed.png +0 -0
- package/dist/es/src/img/openseadragon/rotateright_rest.png +0 -0
- package/dist/es/src/img/openseadragon/zoomin_grouphover.png +0 -0
- package/dist/es/src/img/openseadragon/zoomin_hover.png +0 -0
- package/dist/es/src/img/openseadragon/zoomin_pressed.png +0 -0
- package/dist/es/src/img/openseadragon/zoomin_rest.png +0 -0
- package/dist/es/src/img/openseadragon/zoomout_grouphover.png +0 -0
- package/dist/es/src/img/openseadragon/zoomout_hover.png +0 -0
- package/dist/es/src/img/openseadragon/zoomout_pressed.png +0 -0
- package/dist/es/src/img/openseadragon/zoomout_rest.png +0 -0
- package/dist/es/src/img/spinner.gif +0 -0
- package/dist/es/src/img/text-bg.png +0 -0
- package/dist/es/src/img/watermark.png +0 -0
- package/dist/es/src/index.js +1 -0
- package/dist/es/src/scss/_base.scss +0 -13
- package/dist/es/src/scss/_navigation.scss +9 -1
- package/dist/es/src/scss/_xmlView.scss +7 -3
- package/package.json +6 -12
- package/dist/cjs/src/action/CommentActions.js +0 -20
- package/dist/cjs/src/action/DiplomaticActions.js +0 -19
- package/dist/cjs/src/action/DocumentActions.js +0 -188
- package/dist/cjs/src/action/GlossaryActions.js +0 -20
- package/dist/cjs/src/action/initialState/commentInitialState.js +0 -13
- package/dist/cjs/src/action/initialState/diplomaticInitialState.js +0 -10
- package/dist/cjs/src/action/initialState/documentInitialState.js +0 -17
- package/dist/cjs/src/action/initialState/glossaryInitialState.js +0 -13
- package/dist/cjs/src/action/rootReducer.js +0 -30
- package/dist/cjs/src/component/AlphabetLinks.js +0 -76
- package/dist/cjs/src/component/CustomizedTooltops.js +0 -173
- package/dist/cjs/src/component/DiploMatic.js +0 -90
- package/dist/cjs/src/component/DocumentView.js +0 -427
- package/dist/cjs/src/component/EditorComment.js +0 -124
- package/dist/cjs/src/component/ErrorBoundary.js +0 -71
- package/dist/cjs/src/component/FigureImage.js +0 -82
- package/dist/cjs/src/component/GlossaryView.js +0 -166
- package/dist/cjs/src/component/HelpPopper.js +0 -83
- package/dist/cjs/src/component/ImageGridView.js +0 -193
- package/dist/cjs/src/component/ImageView.js +0 -125
- package/dist/cjs/src/component/ImageZoomControl.js +0 -67
- package/dist/cjs/src/component/JumpToFolio.js +0 -103
- package/dist/cjs/src/component/Navigation.js +0 -266
- package/dist/cjs/src/component/Pagination.js +0 -81
- package/dist/cjs/src/component/RouteListener.js +0 -66
- package/dist/cjs/src/component/SeaDragonComponent.js +0 -51
- package/dist/cjs/src/component/SinglePaneView.js +0 -46
- package/dist/cjs/src/component/SplitPaneView.js +0 -164
- package/dist/cjs/src/component/TranscriptionView.js +0 -147
- package/dist/cjs/src/component/XMLView.js +0 -154
- package/dist/cjs/src/globals.d.ts +0 -1
- package/dist/cjs/src/hocs/withRouter.js +0 -29
- package/dist/cjs/src/icons/ByIcon.js +0 -27
- package/dist/cjs/src/icons/CcIcon.js +0 -27
- package/dist/cjs/src/icons/NcIcon.js +0 -27
- package/dist/cjs/src/icons/SaIcon.js +0 -27
- package/dist/cjs/src/icons/SideMenuIconLeft.js +0 -49
- package/dist/cjs/src/icons/SideMenuIconRight.js +0 -49
- package/dist/cjs/src/index.js +0 -34
- package/dist/cjs/src/lib/copyObject.js +0 -11
- package/dist/cjs/src/lib/registerServiceWorker.js +0 -95
- package/dist/cjs/src/model/DocumentHelper.js +0 -17
- package/dist/cjs/src/model/Folio.js +0 -92
- package/dist/cjs/src/model/ReduxStore.js +0 -110
- package/dist/cjs/src/model/folioLayout.js +0 -416
- package/dist/cjs/src/polyfills.js +0 -212
- package/dist/cjs/src/saga/RouteListenerSaga.js +0 -198
- package/dist/cjs/src/saga/rootSaga.js +0 -23
- package/dist/cjs/src/scss/_CETEIcean.scss +0 -914
- package/dist/cjs/src/scss/_base.scss +0 -187
- package/dist/cjs/src/scss/_diplomatic.scss +0 -332
- package/dist/cjs/src/scss/_globalNavigation.scss +0 -34
- package/dist/cjs/src/scss/_glossary.scss +0 -105
- package/dist/cjs/src/scss/_imageGridView.scss +0 -60
- package/dist/cjs/src/scss/_imageView.scss +0 -16
- package/dist/cjs/src/scss/_imageZoomControl.scss +0 -51
- package/dist/cjs/src/scss/_jumpbox.scss +0 -42
- package/dist/cjs/src/scss/_navigation.scss +0 -135
- package/dist/cjs/src/scss/_pagination.scss +0 -36
- package/dist/cjs/src/scss/_spinner.scss +0 -60
- package/dist/cjs/src/scss/_splitPaneView.scss +0 -35
- package/dist/cjs/src/scss/_thumbnails.scss +0 -17
- package/dist/cjs/src/scss/_transcriptView.scss +0 -178
- package/dist/cjs/src/scss/_watermark.scss +0 -19
- package/dist/cjs/src/scss/_xmlView.scss +0 -25
- package/dist/cjs/src/scss/editioncrafter.scss +0 -109
- package/dist/editioncrafter.css +0 -2462
- package/dist/editioncrafter.css.map +0 -1
- package/dist/editioncrafter.min.js.map +0 -1
- package/dist/es/src/polyfills.js +0 -216
|
@@ -1,3 +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={4363:(e,t,n)=>{var r=n(71977),i=n(35959),o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not a function")}},83326:(e,t,n)=>{var r=n(30771),i=n(35959),o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not a constructor")}},34667:(e,t,n)=>{var r=n(71977),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},79143:(e,t,n)=>{var r=n(63048),i=n(4977),o=n(20421).f,a=r("unscopables"),s=Array.prototype;null==s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},53314:(e,t,n)=>{"use strict";var r=n(31570).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},54375:(e,t,n)=>{var r=n(56701),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw i("Incorrect invocation")}},26424:(e,t,n)=>{var r=n(47212),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not an object")}},48620:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},72382:(e,t,n)=>{var r=n(44418);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},79310:(e,t,n)=>{"use strict";var r,i,o,a=n(48620),s=n(61337),l=n(62021),u=n(71977),c=n(47212),f=n(42011),h=n(9558),p=n(35959),d=n(91873),v=n(88424),m=n(90424),g=n(56701),y=n(83155),b=n(40157),w=n(63048),x=n(54552),E=n(85774),S=E.enforce,T=E.get,P=l.Int8Array,O=P&&P.prototype,C=l.Uint8ClampedArray,R=C&&C.prototype,k=P&&y(P),_=O&&y(O),j=Object.prototype,I=l.TypeError,A=w("toStringTag"),D=x("TYPED_ARRAY_TAG"),M="TypedArrayConstructor",L=a&&!!b&&"Opera"!==h(l.opera),N=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},z=function(e){if(!c(e))return!1;var t=h(e);return f(B,t)||f(F,t)};for(r in B)(o=(i=l[r])&&i.prototype)?S(o)[M]=i:L=!1;for(r in F)(o=(i=l[r])&&i.prototype)&&(S(o)[M]=i);if((!L||!u(k)||k===Function.prototype)&&(k=function(){throw I("Incorrect invocation")},L))for(r in B)l[r]&&b(l[r],k);if((!L||!_||_===j)&&(_=k.prototype,L))for(r in B)l[r]&&b(l[r].prototype,_);if(L&&y(R)!==_&&b(R,_),s&&!f(_,A))for(r in N=!0,m(_,A,{configurable:!0,get:function(){return c(this)?this[D]:void 0}}),B)l[r]&&d(l[r],D,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:N&&D,aTypedArray:function(e){if(z(e))return e;throw I("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!b||g(k,e)))return e;throw I(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(s){if(n)for(var i in B){var o=l[i];if(o&&f(o.prototype,e))try{delete o.prototype[e]}catch(n){try{o.prototype[e]=t}catch(e){}}}_[e]&&!n||v(_,e,n?t:L&&O[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(s){if(b){if(n)for(r in B)if((i=l[r])&&f(i,e))try{delete i[e]}catch(e){}if(k[e]&&!n)return;try{return v(k,e,n?t:L&&k[e]||t)}catch(e){}}for(r in B)!(i=l[r])||i[e]&&!n||v(i,e,t)}},getTypedArrayConstructor:function e(t){var n=y(t);if(c(n)){var r=T(n);return r&&f(r,M)?r[M]:e(n)}},isView:function(e){if(!c(e))return!1;var t=h(e);return"DataView"===t||f(B,t)||f(F,t)},isTypedArray:z,TypedArray:k,TypedArrayPrototype:_}},84669:(e,t,n)=>{"use strict";var r=n(62021),i=n(44686),o=n(61337),a=n(48620),s=n(87967),l=n(91873),u=n(90424),c=n(49001),f=n(44418),h=n(54375),p=n(42898),d=n(83346),v=n(96029),m=n(72194),g=n(83155),y=n(40157),b=n(84190).f,w=n(56661),x=n(11404),E=n(14249),S=n(85774),T=s.PROPER,P=s.CONFIGURABLE,O="ArrayBuffer",C="DataView",R="prototype",k="Wrong index",_=S.getterFor(O),j=S.getterFor(C),I=S.set,A=r[O],D=A,M=D&&D[R],L=r[C],N=L&&L[R],B=Object.prototype,F=r.Array,z=r.RangeError,H=i(w),U=i([].reverse),V=m.pack,W=m.unpack,G=function(e){return[255&e]},q=function(e){return[255&e,e>>8&255]},X=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Z=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},$=function(e){return V(e,23,4)},Y=function(e){return V(e,52,8)},K=function(e,t,n){u(e[R],t,{configurable:!0,get:function(){return n(this)[t]}})},J=function(e,t,n,r){var i=v(n),o=j(e);if(i+t>o.byteLength)throw z(k);var a=o.bytes,s=i+o.byteOffset,l=x(a,s,s+t);return r?l:U(l)},Q=function(e,t,n,r,i,o){var a=v(n),s=j(e);if(a+t>s.byteLength)throw z(k);for(var l=s.bytes,u=a+s.byteOffset,c=r(+i),f=0;f<t;f++)l[u+f]=c[o?f:t-f-1]};if(a){var ee=T&&A.name!==O;if(f((function(){A(1)}))&&f((function(){new A(-1)}))&&!f((function(){return new A,new A(1.5),new A(NaN),1!=A.length||ee&&!P})))ee&&P&&l(A,"name",O);else{(D=function(e){return h(this,M),new A(v(e))})[R]=M;for(var te,ne=b(A),re=0;ne.length>re;)(te=ne[re++])in D||l(D,te,A[te]);M.constructor=D}y&&g(N)!==B&&y(N,B);var ie=new L(new D(2)),oe=i(N.setInt8);ie.setInt8(0,2147483648),ie.setInt8(1,2147483649),!ie.getInt8(0)&&ie.getInt8(1)||c(N,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else M=(D=function(e){h(this,M);var t=v(e);I(this,{type:O,bytes:H(F(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)})[R],N=(L=function(e,t,n){h(this,N),h(e,M);var r=_(e),i=r.byteLength,a=p(t);if(a<0||a>i)throw z("Wrong offset");if(a+(n=void 0===n?i-a:d(n))>i)throw z("Wrong length");I(this,{type:C,buffer:e,byteLength:n,byteOffset:a,bytes:r.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)})[R],o&&(K(D,"byteLength",_),K(L,"buffer",j),K(L,"byteLength",j),K(L,"byteOffset",j)),c(N,{getInt8:function(e){return J(this,1,e)[0]<<24>>24},getUint8:function(e){return J(this,1,e)[0]},getInt16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Z(J(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Z(J(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return W(J(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return W(J(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Q(this,1,e,G,t)},setUint8:function(e,t){Q(this,1,e,G,t)},setInt16:function(e,t){Q(this,2,e,q,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Q(this,2,e,q,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Q(this,4,e,X,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Q(this,4,e,X,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Q(this,4,e,$,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Q(this,8,e,Y,t,arguments.length>2?arguments[2]:void 0)}});E(D,O),E(L,C),e.exports={ArrayBuffer:D,DataView:L}},63085:(e,t,n)=>{"use strict";var r=n(94548),i=n(65217),o=n(48601),a=n(6687),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),l=o(n),u=i(e,l),c=i(t,l),f=arguments.length>2?arguments[2]:void 0,h=s((void 0===f?l:i(f,l))-c,l-u),p=1;for(c<u&&u<c+h&&(p=-1,c+=h-1,u+=h-1);h-- >0;)c in n?n[u]=n[c]:a(n,u),u+=p,c+=p;return n}},56661:(e,t,n)=>{"use strict";var r=n(94548),i=n(65217),o=n(48601);e.exports=function(e){for(var t=r(this),n=o(t),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);u>s;)t[s++]=e;return t}},15558:(e,t,n)=>{"use strict";var r=n(13140).forEach,i=n(65537)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},50491:(e,t,n)=>{var r=n(48601);e.exports=function(e,t){for(var n=0,i=r(t),o=new e(i);i>n;)o[n]=t[n++];return o}},36281:(e,t,n)=>{"use strict";var r=n(5735),i=n(85563),o=n(94548),a=n(90828),s=n(27803),l=n(30771),u=n(48601),c=n(82216),f=n(68979),h=n(369),p=Array;e.exports=function(e){var t=o(e),n=l(this),d=arguments.length,v=d>1?arguments[1]:void 0,m=void 0!==v;m&&(v=r(v,d>2?arguments[2]:void 0));var g,y,b,w,x,E,S=h(t),T=0;if(!S||this===p&&s(S))for(g=u(t),y=n?new this(g):p(g);g>T;T++)E=m?v(t[T],T):t[T],c(y,T,E);else for(x=(w=f(t,S)).next,y=n?new this:[];!(b=i(x,w)).done;T++)E=m?a(w,v,[b.value,T],!0):b.value,c(y,T,E);return y.length=T,y}},14525:(e,t,n)=>{var r=n(30630),i=n(65217),o=n(48601),a=function(e){return function(t,n,a){var s,l=r(t),u=o(l),c=i(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},13140:(e,t,n)=>{var r=n(5735),i=n(44686),o=n(83436),a=n(94548),s=n(48601),l=n(82449),u=i([].push),c=function(e){var t=1==e,n=2==e,i=3==e,c=4==e,f=6==e,h=7==e,p=5==e||f;return function(d,v,m,g){for(var y,b,w=a(d),x=o(w),E=r(v,m),S=s(x),T=0,P=g||l,O=t?P(d,S):n||h?P(d,0):void 0;S>T;T++)if((p||T in x)&&(b=E(y=x[T],T,w),e))if(t)O[T]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return T;case 2:u(O,y)}else switch(e){case 4:return!1;case 7:u(O,y)}return f?-1:i||c?c:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},99202:(e,t,n)=>{"use strict";var r=n(30103),i=n(30630),o=n(42898),a=n(48601),s=n(65537),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),h=c||!f;e.exports=h?function(e){if(c)return r(u,this,arguments)||0;var t=i(this),n=a(t),s=n-1;for(arguments.length>1&&(s=l(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},94855:(e,t,n)=>{var r=n(44418),i=n(63048),o=n(60617),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},65537:(e,t,n)=>{"use strict";var r=n(44418);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},1870:(e,t,n)=>{var r=n(4363),i=n(94548),o=n(83436),a=n(48601),s=TypeError,l=function(e){return function(t,n,l,u){r(n);var c=i(t),f=o(c),h=a(c),p=e?h-1:0,d=e?-1:1;if(l<2)for(;;){if(p in f){u=f[p],p+=d;break}if(p+=d,e?p<0:h<=p)throw s("Reduce of empty array with no initial value")}for(;e?p>=0:h>p;p+=d)p in f&&(u=n(u,f[p],p,c));return u}};e.exports={left:l(!1),right:l(!0)}},80379:(e,t,n)=>{"use strict";var r=n(61337),i=n(54773),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},11404:(e,t,n)=>{var r=n(65217),i=n(48601),o=n(82216),a=Array,s=Math.max;e.exports=function(e,t,n){for(var l=i(e),u=r(t,l),c=r(void 0===n?l:n,l),f=a(s(c-u,0)),h=0;u<c;u++,h++)o(f,h,e[u]);return f.length=h,f}},64494:(e,t,n)=>{var r=n(44686);e.exports=r([].slice)},37116:(e,t,n)=>{var r=n(11404),i=Math.floor,o=function(e,t){for(var n,r,i=e.length,o=1;o<i;){for(r=o,n=e[o];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},a=function(e,t,n,r){for(var i=t.length,o=n.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?r(t[a],n[s])<=0?t[a++]:n[s++]:a<i?t[a++]:n[s++];return e};e.exports=function e(t,n){var s=t.length,l=i(s/2);return s<8?o(t,n):a(t,e(r(t,0,l),n),e(r(t,l),n),n)}},82353:(e,t,n)=>{var r=n(54773),i=n(30771),o=n(47212),a=n(63048)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===s||r(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},82449:(e,t,n)=>{var r=n(82353);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},90828:(e,t,n)=>{var r=n(26424),i=n(2326);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},88716:(e,t,n)=>{var r=n(63048)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},62393:(e,t,n)=>{var r=n(44686),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},9558:(e,t,n)=>{var r=n(73649),i=n(71977),o=n(62393),a=n(63048)("toStringTag"),s=Object,l="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?o(t):"Object"==(r=o(t))&&i(t.callee)?"Arguments":r}},56e3:(e,t,n)=>{"use strict";var r=n(4977),i=n(90424),o=n(49001),a=n(5735),s=n(54375),l=n(5323),u=n(7536),c=n(55268),f=n(17073),h=n(25676),p=n(61337),d=n(42426).fastKey,v=n(85774),m=v.set,g=v.getterFor;e.exports={getConstructor:function(e,t,n,c){var f=e((function(e,i){s(e,h),m(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),p||(e.size=0),l(i)||u(i,e[c],{that:e,AS_ENTRIES:n})})),h=f.prototype,v=g(t),y=function(e,t,n){var r,i,o=v(e),a=b(e,t);return a?a.value=n:(o.last=a={index:i=d(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),p?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},b=function(e,t){var n,r=v(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(h,{clear:function(){for(var e=v(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var t=this,n=v(t),r=b(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),p?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=v(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),o(h,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),p&&i(h,"size",{configurable:!0,get:function(){return v(this).size}}),f},setStrong:function(e,t,n){var r=t+" Iterator",i=g(t),o=g(r);c(e,t,(function(e,t){m(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?f("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),h(t)}}},71975:(e,t,n)=>{"use strict";var r=n(44686),i=n(49001),o=n(42426).getWeakData,a=n(54375),s=n(26424),l=n(5323),u=n(47212),c=n(7536),f=n(13140),h=n(42011),p=n(85774),d=p.set,v=p.getterFor,m=f.find,g=f.findIndex,y=r([].splice),b=0,w=function(e){return e.frozen||(e.frozen=new x)},x=function(){this.entries=[]},E=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};x.prototype={get:function(e){var t=E(this,e);if(t)return t[1]},has:function(e){return!!E(this,e)},set:function(e,t){var n=E(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var f=e((function(e,i){a(e,p),d(e,{type:t,id:b++,frozen:void 0}),l(i)||c(i,e[r],{that:e,AS_ENTRIES:n})})),p=f.prototype,m=v(t),g=function(e,t,n){var r=m(e),i=o(s(t),!0);return!0===i?w(r).set(t,n):i[r.id]=n,e};return i(p,{delete:function(e){var t=m(this);if(!u(e))return!1;var n=o(e);return!0===n?w(t).delete(e):n&&h(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!u(e))return!1;var n=o(e);return!0===n?w(t).has(e):n&&h(n,t.id)}}),i(p,n?{get:function(e){var t=m(this);if(u(e)){var n=o(e);return!0===n?w(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),f}}},82219:(e,t,n)=>{"use strict";var r=n(94427),i=n(62021),o=n(44686),a=n(31943),s=n(88424),l=n(42426),u=n(7536),c=n(54375),f=n(71977),h=n(5323),p=n(47212),d=n(44418),v=n(88716),m=n(14249),g=n(18310);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=y?"set":"add",x=i[e],E=x&&x.prototype,S=x,T={},P=function(e){var t=o(E[e]);s(E,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!f(x)||!(b||E.forEach&&!d((function(){(new x).entries().next()})))))S=n.getConstructor(t,e,y,w),l.enable();else if(a(e,!0)){var O=new S,C=O[w](b?{}:-0,1)!=O,R=d((function(){O.has(1)})),k=v((function(e){new x(e)})),_=!b&&d((function(){for(var e=new x,t=5;t--;)e[w](t,t);return!e.has(-0)}));k||((S=t((function(e,t){c(e,E);var n=g(new x,e,S);return h(t)||u(t,n[w],{that:n,AS_ENTRIES:y}),n}))).prototype=E,E.constructor=S),(R||_)&&(P("delete"),P("has"),y&&P("get")),(_||C)&&P(w),b&&E.clear&&delete E.clear}return T[e]=S,r({global:!0,constructor:!0,forced:S!=x},T),m(S,e),b||n.setStrong(S,e,y),S}},66616:(e,t,n)=>{var r=n(42011),i=n(33575),o=n(94912),a=n(20421);e.exports=function(e,t,n){for(var s=i(t),l=a.f,u=o.f,c=0;c<s.length;c++){var f=s[c];r(e,f)||n&&r(n,f)||l(e,f,u(t,f))}}},81610:(e,t,n)=>{var r=n(63048)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},51322:(e,t,n)=>{var r=n(44418);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},9604:(e,t,n)=>{var r=n(44686),i=n(28089),o=n(38444),a=/"/g,s=r("".replace);e.exports=function(e,t,n,r){var l=o(i(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+s(o(r),a,""")+'"'),u+">"+l+"</"+t+">"}},17073:e=>{e.exports=function(e,t){return{value:e,done:t}}},91873:(e,t,n)=>{var r=n(61337),i=n(20421),o=n(95323);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},95323:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},82216:(e,t,n)=>{"use strict";var r=n(38069),i=n(20421),o=n(95323);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},6607:(e,t,n)=>{"use strict";var r=n(44686),i=n(44418),o=n(27121).start,a=RangeError,s=isFinite,l=Math.abs,u=Date.prototype,c=u.toISOString,f=r(u.getTime),h=r(u.getUTCDate),p=r(u.getUTCFullYear),d=r(u.getUTCHours),v=r(u.getUTCMilliseconds),m=r(u.getUTCMinutes),g=r(u.getUTCMonth),y=r(u.getUTCSeconds);e.exports=i((function(){return"0385-07-25T07:06:39.999Z"!=c.call(new Date(-50000000000001))}))||!i((function(){c.call(new Date(NaN))}))?function(){if(!s(f(this)))throw a("Invalid time value");var e=this,t=p(e),n=v(e),r=t<0?"-":t>9999?"+":"";return r+o(l(t),r?6:4,0)+"-"+o(g(e)+1,2,0)+"-"+o(h(e),2,0)+"T"+o(d(e),2,0)+":"+o(m(e),2,0)+":"+o(y(e),2,0)+"."+o(n,3,0)+"Z"}:c},27733:(e,t,n)=>{"use strict";var r=n(26424),i=n(44565),o=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw o("Incorrect hint");return i(this,e)}},90424:(e,t,n)=>{var r=n(14382),i=n(20421);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},88424:(e,t,n)=>{var r=n(71977),i=n(20421),o=n(14382),a=n(56722);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&o(n,u,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},49001:(e,t,n)=>{var r=n(88424);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},56722:(e,t,n)=>{var r=n(62021),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6687:(e,t,n)=>{"use strict";var r=n(35959),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw i("Cannot delete property "+r(t)+" of "+r(e))}},61337:(e,t,n)=>{var r=n(44418);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},76330:e=>{var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},12649:(e,t,n)=>{var r=n(62021),i=n(47212),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},91983:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},7413:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},69839:(e,t,n)=>{var r=n(12649)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},87464:(e,t,n)=>{var r=n(82894).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},85327:(e,t,n)=>{var r=n(4340),i=n(80999);e.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},32657:e=>{e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},4340:e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},7452:(e,t,n)=>{var r=n(82894);e.exports=/MSIE|Trident/.test(r)},73034:(e,t,n)=>{var r=n(82894);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},99082:(e,t,n)=>{var r=n(82894);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},80999:(e,t,n)=>{var r=n(62393);e.exports="undefined"!=typeof process&&"process"==r(process)},59515:(e,t,n)=>{var r=n(82894);e.exports=/web0s(?!.*chrome)/i.test(r)},82894:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},60617:(e,t,n)=>{var r,i,o=n(62021),a=n(82894),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},39047:(e,t,n)=>{var r=n(82894).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},90154:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},94427:(e,t,n)=>{var r=n(62021),i=n(94912).f,o=n(91873),a=n(88424),s=n(56722),l=n(66616),u=n(31943);e.exports=function(e,t){var n,c,f,h,p,d=e.target,v=e.global,m=e.stat;if(n=v?r:m?r[d]||s(d,{}):(r[d]||{}).prototype)for(c in t){if(h=t[c],f=e.dontCallGetSet?(p=i(n,c))&&p.value:n[c],!u(v?c:d+(m?".":"#")+c,e.forced)&&void 0!==f){if(typeof h==typeof f)continue;l(h,f)}(e.sham||f&&f.sham)&&o(h,"sham",!0),a(n,c,h,e)}}},44418:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},88533:(e,t,n)=>{"use strict";n(79841);var r=n(3137),i=n(88424),o=n(3458),a=n(44418),s=n(63048),l=n(91873),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,f){var h=s(e),p=!a((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),d=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!p||!d||n){var v=r(/./[h]),m=t(h,""[e],(function(e,t,n,i,a){var s=r(e),l=t.exec;return l===o||l===c.exec?p&&!a?{done:!0,value:v(t,n,i)}:{done:!0,value:s(n,t,i)}:{done:!1}}));i(String.prototype,e,m[0]),i(c,h,m[1])}f&&l(c[h],"sham",!0)}},20154:(e,t,n)=>{"use strict";var r=n(54773),i=n(48601),o=n(91983),a=n(5735);e.exports=function e(t,n,s,l,u,c,f,h){for(var p,d=u,v=0,m=!!f&&a(f,h);v<l;)v in s&&(p=m?m(s[v],v,n):s[v],c>0&&r(p)?d=e(t,n,p,i(p),d,c-1)-1:(o(d+1),t[d]=p),d++),v++;return d}},15287:(e,t,n)=>{var r=n(44418);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},30103:(e,t,n)=>{var r=n(16973),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},5735:(e,t,n)=>{var r=n(3137),i=n(4363),o=n(16973),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},16973:(e,t,n)=>{var r=n(44418);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},18961:(e,t,n)=>{"use strict";var r=n(44686),i=n(4363),o=n(47212),a=n(42011),s=n(64494),l=n(16973),u=Function,c=r([].concat),f=r([].join),h={};e.exports=l?u.bind:function(e){var t=i(this),n=t.prototype,r=s(arguments,1),l=function(){var n=c(r,s(arguments));return this instanceof l?function(e,t,n){if(!a(h,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";h[t]=u("C,a","return new C("+f(r,",")+")")}return h[t](e,n)}(t,n.length,n):t.apply(e,n)};return o(n)&&(l.prototype=n),l}},85563:(e,t,n)=>{var r=n(16973),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},87967:(e,t,n)=>{var r=n(61337),i=n(42011),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},52059:(e,t,n)=>{var r=n(44686),i=n(4363);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},3137:(e,t,n)=>{var r=n(62393),i=n(44686);e.exports=function(e){if("Function"===r(e))return i(e)}},44686:(e,t,n)=>{var r=n(16973),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},45718:(e,t,n)=>{var r=n(62021),i=n(71977);e.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},369:(e,t,n)=>{var r=n(9558),i=n(71260),o=n(5323),a=n(32916),s=n(63048)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[r(e)]}},68979:(e,t,n)=>{var r=n(85563),i=n(4363),o=n(26424),a=n(35959),s=n(369),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw l(a(e)+" is not iterable")}},36047:(e,t,n)=>{var r=n(44686),i=n(54773),o=n(71977),a=n(62393),s=n(38444),l=r([].push);e.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var u=e[r];"string"==typeof u?l(n,u):"number"!=typeof u&&"Number"!=a(u)&&"String"!=a(u)||l(n,s(u))}var c=n.length,f=!0;return function(e,t){if(f)return f=!1,t;if(i(this))return t;for(var r=0;r<c;r++)if(n[r]===e)return t}}}},71260:(e,t,n)=>{var r=n(4363),i=n(5323);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},32048:(e,t,n)=>{var r=n(44686),i=n(94548),o=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,h){var p=n+e.length,d=r.length,v=c;return void 0!==f&&(f=i(f),v=u),s(h,v,(function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,p);case"<":u=f[l(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>d){var h=o(c/10);return 0===h?i:h<=d?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):i}u=r[c-1]}return void 0===u?"":u}))}},62021:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},42011:(e,t,n)=>{var r=n(44686),i=n(94548),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},68653:e=>{e.exports={}},84362:e=>{e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}}},7772:(e,t,n)=>{var r=n(45718);e.exports=r("document","documentElement")},84497:(e,t,n)=>{var r=n(61337),i=n(44418),o=n(12649);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},72194:e=>{var t=Array,n=Math.abs,r=Math.pow,i=Math.floor,o=Math.log,a=Math.LN2;e.exports={pack:function(e,s,l){var u,c,f,h=t(l),p=8*l-s-1,d=(1<<p)-1,v=d>>1,m=23===s?r(2,-24)-r(2,-77):0,g=e<0||0===e&&1/e<0?1:0,y=0;for((e=n(e))!=e||e===1/0?(c=e!=e?1:0,u=d):(u=i(o(e)/a),e*(f=r(2,-u))<1&&(u--,f*=2),(e+=u+v>=1?m/f:m*r(2,1-v))*f>=2&&(u++,f/=2),u+v>=d?(c=0,u=d):u+v>=1?(c=(e*f-1)*r(2,s),u+=v):(c=e*r(2,v-1)*r(2,s),u=0));s>=8;)h[y++]=255&c,c/=256,s-=8;for(u=u<<s|c,p+=s;p>0;)h[y++]=255&u,u/=256,p-=8;return h[--y]|=128*g,h},unpack:function(e,t){var n,i=e.length,o=8*i-t-1,a=(1<<o)-1,s=a>>1,l=o-7,u=i-1,c=e[u--],f=127&c;for(c>>=7;l>0;)f=256*f+e[u--],l-=8;for(n=f&(1<<-l)-1,f>>=-l,l+=t;l>0;)n=256*n+e[u--],l-=8;if(0===f)f=1-s;else{if(f===a)return n?NaN:c?-1/0:1/0;n+=r(2,t),f-=s}return(c?-1:1)*n*r(2,f-t)}}},83436:(e,t,n)=>{var r=n(44686),i=n(44418),o=n(62393),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):a(e)}:a},18310:(e,t,n)=>{var r=n(71977),i=n(47212),o=n(40157);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},85430:(e,t,n)=>{var r=n(44686),i=n(71977),o=n(88817),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},42426:(e,t,n)=>{var r=n(94427),i=n(44686),o=n(68653),a=n(47212),s=n(42011),l=n(20421).f,u=n(84190),c=n(12026),f=n(87544),h=n(54552),p=n(15287),d=!1,v=h("meta"),m=0,g=function(e){l(e,v,{value:{objectID:"O"+m++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},d=!0;var e=u.f,t=i([].splice),n={};n[v]=1,e(n).length&&(u.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===v){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,v)){if(!f(e))return"F";if(!t)return"E";g(e)}return e[v].objectID},getWeakData:function(e,t){if(!s(e,v)){if(!f(e))return!0;if(!t)return!1;g(e)}return e[v].weakData},onFreeze:function(e){return p&&d&&f(e)&&!s(e,v)&&g(e),e}};o[v]=!0},85774:(e,t,n)=>{var r,i,o,a=n(41859),s=n(62021),l=n(47212),u=n(91873),c=n(42011),f=n(88817),h=n(58093),p=n(68653),d="Object already initialized",v=s.TypeError,m=s.WeakMap;if(a||f.state){var g=f.state||(f.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw v(d);return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var y=h("state");p[y]=!0,r=function(e,t){if(c(e,y))throw v(d);return t.facade=e,u(e,y,t),t},i=function(e){return c(e,y)?e[y]:{}},o=function(e){return c(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}}}},27803:(e,t,n)=>{var r=n(63048),i=n(32916),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},54773:(e,t,n)=>{var r=n(62393);e.exports=Array.isArray||function(e){return"Array"==r(e)}},60301:(e,t,n)=>{var r=n(9558);e.exports=function(e){var t=r(e);return"BigInt64Array"==t||"BigUint64Array"==t}},71977:(e,t,n)=>{var r=n(76330),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},30771:(e,t,n)=>{var r=n(44686),i=n(44418),o=n(71977),a=n(9558),s=n(45718),l=n(85430),u=function(){},c=[],f=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,p=r(h.exec),d=!h.exec(u),v=function(e){if(!o(e))return!1;try{return f(u,c,e),!0}catch(e){return!1}},m=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(h,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!f||i((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?m:v},32020:(e,t,n)=>{var r=n(42011);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},31943:(e,t,n)=>{var r=n(44418),i=n(71977),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==c||n!=u&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},78236:(e,t,n)=>{var r=n(47212),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},5323:e=>{e.exports=function(e){return null==e}},47212:(e,t,n)=>{var r=n(71977),i=n(76330),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},9596:e=>{e.exports=!1},16142:(e,t,n)=>{var r=n(47212),i=n(62393),o=n(63048)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},16874:(e,t,n)=>{var r=n(45718),i=n(71977),o=n(56701),a=n(41635),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},7536:(e,t,n)=>{var r=n(5735),i=n(85563),o=n(26424),a=n(35959),s=n(27803),l=n(48601),u=n(56701),c=n(68979),f=n(369),h=n(2326),p=TypeError,d=function(e,t){this.stopped=e,this.result=t},v=d.prototype;e.exports=function(e,t,n){var m,g,y,b,w,x,E,S=n&&n.that,T=!(!n||!n.AS_ENTRIES),P=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),R=r(t,S),k=function(e){return m&&h(m,"normal",e),new d(!0,e)},_=function(e){return T?(o(e),C?R(e[0],e[1],k):R(e[0],e[1])):C?R(e,k):R(e)};if(P)m=e.iterator;else if(O)m=e;else{if(!(g=f(e)))throw p(a(e)+" is not iterable");if(s(g)){for(y=0,b=l(e);b>y;y++)if((w=_(e[y]))&&u(v,w))return w;return new d(!1)}m=c(e,g)}for(x=P?e.next:m.next;!(E=i(x,m)).done;){try{w=_(E.value)}catch(e){h(m,"throw",e)}if("object"==typeof w&&w&&u(v,w))return w}return new d(!1)}},2326:(e,t,n)=>{var r=n(85563),i=n(26424),o=n(71260);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return i(a),n}},28110:(e,t,n)=>{"use strict";var r=n(74765).IteratorPrototype,i=n(4977),o=n(95323),a=n(14249),s=n(32916),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=i(r,{next:o(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},55268:(e,t,n)=>{"use strict";var r=n(94427),i=n(85563),o=n(9596),a=n(87967),s=n(71977),l=n(28110),u=n(83155),c=n(40157),f=n(14249),h=n(91873),p=n(88424),d=n(63048),v=n(32916),m=n(74765),g=a.PROPER,y=a.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,x=d("iterator"),E="keys",S="values",T="entries",P=function(){return this};e.exports=function(e,t,n,a,d,m,O){l(n,t,a);var C,R,k,_=function(e){if(e===d&&M)return M;if(!w&&e in A)return A[e];switch(e){case E:case S:case T:return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",I=!1,A=e.prototype,D=A[x]||A["@@iterator"]||d&&A[d],M=!w&&D||_(d),L="Array"==t&&A.entries||D;if(L&&(C=u(L.call(new e)))!==Object.prototype&&C.next&&(o||u(C)===b||(c?c(C,b):s(C[x])||p(C,x,P)),f(C,j,!0,!0),o&&(v[j]=P)),g&&d==S&&D&&D.name!==S&&(!o&&y?h(A,"name",S):(I=!0,M=function(){return i(D,this)})),d)if(R={values:_(S),keys:m?M:_(E),entries:_(T)},O)for(k in R)(w||I||!(k in A))&&p(A,k,R[k]);else r({target:t,proto:!0,forced:w||I},R);return o&&!O||A[x]===M||p(A,x,M,{name:d}),v[t]=M,R}},74765:(e,t,n)=>{"use strict";var r,i,o,a=n(44418),s=n(71977),l=n(47212),u=n(4977),c=n(83155),f=n(88424),h=n(63048),p=n(9596),d=h("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(r=i):v=!0),!l(r)||a((function(){var e={};return r[d].call(e)!==e}))?r={}:p&&(r=u(r)),s(r[d])||f(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},32916:e=>{e.exports={}},48601:(e,t,n)=>{var r=n(83346);e.exports=function(e){return r(e.length)}},14382:(e,t,n)=>{var r=n(44686),i=n(44418),o=n(71977),a=n(42011),s=n(61337),l=n(87967).CONFIGURABLE,u=n(85430),c=n(85774),f=c.enforce,h=c.get,p=String,d=Object.defineProperty,v=r("".slice),m=r("".replace),g=r([].join),y=s&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===v(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?d(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=f(e);return a(r,"source")||(r.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return o(this)&&h(this).source||u(this)}),"toString")},36241:e=>{var t=Math.expm1,n=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){var t=+e;return 0==t?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:t},78159:(e,t,n)=>{var r=n(30673),i=Math.abs,o=Math.pow,a=o(2,-52),s=o(2,-23),l=o(2,127)*(2-s),u=o(2,-126);e.exports=Math.fround||function(e){var t,n,o=+e,c=i(o),f=r(o);return c<u?f*function(e){return e+1/a-1/a}(c/u/s)*u*s:(n=(t=(1+s/a)*c)-(t-c))>l||n!=n?f*(1/0):f*n}},76280:e=>{var t=Math.log,n=Math.LOG10E;e.exports=Math.log10||function(e){return t(e)*n}},54641:e=>{var t=Math.log;e.exports=Math.log1p||function(e){var n=+e;return n>-1e-8&&n<1e-8?n-n*n/2:t(1+n)}},30673:e=>{e.exports=Math.sign||function(e){var t=+e;return 0==t||t!=t?t:t<0?-1:1}},56729:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},53465:(e,t,n)=>{var r,i,o,a,s,l=n(62021),u=n(5735),c=n(94912).f,f=n(18774).set,h=n(53789),p=n(99082),d=n(73034),v=n(59515),m=n(80999),g=l.MutationObserver||l.WebKitMutationObserver,y=l.document,b=l.process,w=l.Promise,x=c(l,"queueMicrotask"),E=x&&x.value;if(!E){var S=new h,T=function(){var e,t;for(m&&(e=b.domain)&&e.exit();t=S.get();)try{t()}catch(e){throw S.head&&r(),e}e&&e.enter()};p||m||v||!g||!y?!d&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=u(a.then,a),r=function(){s(T)}):m?r=function(){b.nextTick(T)}:(f=u(f,l),r=function(){f(T)}):(i=!0,o=y.createTextNode(""),new g(T).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),E=function(e){S.head||r(),S.add(e)}}e.exports=E},54386:(e,t,n)=>{"use strict";var r=n(4363),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},60769:(e,t,n)=>{var r=n(16142),i=TypeError;e.exports=function(e){if(r(e))throw i("The method doesn't accept regular expressions");return e}},20218:(e,t,n)=>{var r=n(62021).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},35369:(e,t,n)=>{var r=n(62021),i=n(44418),o=n(44686),a=n(38444),s=n(13873).trim,l=n(20223),u=o("".charAt),c=r.parseFloat,f=r.Symbol,h=f&&f.iterator,p=1/c(l+"-0")!=-1/0||h&&!i((function(){c(Object(h))}));e.exports=p?function(e){var t=s(a(e)),n=c(t);return 0===n&&"-"==u(t,0)?-0:n}:c},80633:(e,t,n)=>{var r=n(62021),i=n(44418),o=n(44686),a=n(38444),s=n(13873).trim,l=n(20223),u=r.parseInt,c=r.Symbol,f=c&&c.iterator,h=/^[+-]?0x/i,p=o(h.exec),d=8!==u(l+"08")||22!==u(l+"0x16")||f&&!i((function(){u(Object(f))}));e.exports=d?function(e,t){var n=s(a(e));return u(n,t>>>0||(p(h,n)?16:10))}:u},66898:(e,t,n)=>{"use strict";var r=n(61337),i=n(44686),o=n(85563),a=n(44418),s=n(6555),l=n(29833),u=n(75073),c=n(94548),f=n(83436),h=Object.assign,p=Object.defineProperty,d=i([].concat);e.exports=!h||a((function(){if(r&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=h({},e)[n]||s(h({},t)).join("")!=i}))?function(e,t){for(var n=c(e),i=arguments.length,a=1,h=l.f,p=u.f;i>a;)for(var v,m=f(arguments[a++]),g=h?d(s(m),h(m)):s(m),y=g.length,b=0;y>b;)v=g[b++],r&&!o(p,m,v)||(n[v]=m[v]);return n}:h},4977:(e,t,n)=>{var r,i=n(26424),o=n(39839),a=n(90154),s=n(68653),l=n(7772),u=n(12649),c=n(58093),f="prototype",h="script",p=c("IE_PROTO"),d=function(){},v=function(e){return"<"+h+">"+e+"</"+h+">"},m=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g="undefined"!=typeof document?document.domain&&r?m(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):m(r);for(var i=a.length;i--;)delete g[f][a[i]];return g()};s[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d[f]=i(e),n=new d,d[f]=null,n[p]=e):n=g(),void 0===t?n:o.f(n,t)}},39839:(e,t,n)=>{var r=n(61337),i=n(73504),o=n(20421),a=n(26424),s=n(30630),l=n(6555);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),i=l(t),u=i.length,c=0;u>c;)o.f(e,n=i[c++],r[n]);return e}},20421:(e,t,n)=>{var r=n(61337),i=n(84497),o=n(73504),a=n(26424),s=n(38069),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=c(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},94912:(e,t,n)=>{var r=n(61337),i=n(85563),o=n(75073),a=n(95323),s=n(30630),l=n(38069),u=n(42011),c=n(84497),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=l(t),c)try{return f(e,t)}catch(e){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},12026:(e,t,n)=>{var r=n(62393),i=n(30630),o=n(84190).f,a=n(11404),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return o(e)}catch(e){return a(s)}}(e):o(i(e))}},84190:(e,t,n)=>{var r=n(91717),i=n(90154).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},29833:(e,t)=>{t.f=Object.getOwnPropertySymbols},83155:(e,t,n)=>{var r=n(42011),i=n(71977),o=n(94548),a=n(58093),s=n(51322),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},87544:(e,t,n)=>{var r=n(44418),i=n(47212),o=n(62393),a=n(72382),s=Object.isExtensible,l=r((function(){s(1)}));e.exports=l||a?function(e){return!!i(e)&&((!a||"ArrayBuffer"!=o(e))&&(!s||s(e)))}:s},56701:(e,t,n)=>{var r=n(44686);e.exports=r({}.isPrototypeOf)},91717:(e,t,n)=>{var r=n(44686),i=n(42011),o=n(30630),a=n(14525).indexOf,s=n(68653),l=r([].push);e.exports=function(e,t){var n,r=o(e),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);for(;t.length>u;)i(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},6555:(e,t,n)=>{var r=n(91717),i=n(90154);e.exports=Object.keys||function(e){return r(e,i)}},75073:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},14441:(e,t,n)=>{"use strict";var r=n(9596),i=n(62021),o=n(44418),a=n(39047);e.exports=r||!o((function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete i[e]}}))},40157:(e,t,n)=>{var r=n(52059),i=n(26424),o=n(34667);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},92304:(e,t,n)=>{var r=n(61337),i=n(44686),o=n(6555),a=n(30630),s=i(n(75073).f),l=i([].push),u=function(e){return function(t){for(var n,i=a(t),u=o(i),c=u.length,f=0,h=[];c>f;)n=u[f++],r&&!s(i,n)||l(h,e?[n,i[n]]:i[n]);return h}};e.exports={entries:u(!0),values:u(!1)}},66379:(e,t,n)=>{"use strict";var r=n(73649),i=n(9558);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},44565:(e,t,n)=>{var r=n(85563),i=n(71977),o=n(47212),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},33575:(e,t,n)=>{var r=n(45718),i=n(44686),o=n(84190),a=n(29833),s=n(26424),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},5761:(e,t,n)=>{var r=n(62021);e.exports=r},54593:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},29600:(e,t,n)=>{var r=n(62021),i=n(10930),o=n(71977),a=n(31943),s=n(85430),l=n(63048),u=n(85327),c=n(4340),f=n(9596),h=n(60617),p=i&&i.prototype,d=l("species"),v=!1,m=o(r.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===h)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!h||h<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[d]=r,!(v=n.then((function(){}))instanceof r))return!0}return!t&&(u||c)&&!m}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:m,SUBCLASSING:v}},10930:(e,t,n)=>{var r=n(62021);e.exports=r.Promise},3434:(e,t,n)=>{var r=n(26424),i=n(47212),o=n(54386);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},57927:(e,t,n)=>{var r=n(10930),i=n(88716),o=n(29600).CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},86145:(e,t,n)=>{var r=n(20421).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},53789:e=>{var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},1079:(e,t,n)=>{var r=n(85563),i=n(26424),o=n(71977),a=n(62393),s=n(3458),l=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var u=r(n,e,t);return null!==u&&i(u),u}if("RegExp"===a(e))return r(s,e,t);throw l("RegExp#exec called on incompatible receiver")}},3458:(e,t,n)=>{"use strict";var r,i,o=n(85563),a=n(44686),s=n(38444),l=n(525),u=n(9862),c=n(678),f=n(4977),h=n(85774).get,p=n(82755),d=n(22705),v=c("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,g=m,y=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),E=(i=/b*/g,o(m,r=/a/,"a"),o(m,i,"a"),0!==r.lastIndex||0!==i.lastIndex),S=u.BROKEN_CARET,T=void 0!==/()??/.exec("")[1];(E||T||S||p||d)&&(g=function(e){var t,n,r,i,a,u,c,p=this,d=h(p),P=s(e),O=d.raw;if(O)return O.lastIndex=p.lastIndex,t=o(g,O,P),p.lastIndex=O.lastIndex,t;var C=d.groups,R=S&&p.sticky,k=o(l,p),_=p.source,j=0,I=P;if(R&&(k=w(k,"y",""),-1===b(k,"g")&&(k+="g"),I=x(P,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==y(P,p.lastIndex-1))&&(_="(?: "+_+")",I=" "+I,j++),n=new RegExp("^(?:"+_+")",k)),T&&(n=new RegExp("^"+_+"$(?!\\s)",k)),E&&(r=p.lastIndex),i=o(m,R?n:p,I),R?i?(i.input=x(i.input,j),i[0]=x(i[0],j),i.index=p.lastIndex,p.lastIndex+=i[0].length):p.lastIndex=0:E&&i&&(p.lastIndex=p.global?i.index+i[0].length:r),T&&i&&i.length>1&&o(v,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&C)for(i.groups=u=f(null),a=0;a<C.length;a++)u[(c=C[a])[0]]=i[c[1]];return i}),e.exports=g},525:(e,t,n)=>{"use strict";var r=n(26424);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},18737:(e,t,n)=>{var r=n(85563),i=n(42011),o=n(56701),a=n(525),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},9862:(e,t,n)=>{var r=n(44418),i=n(62021).RegExp,o=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},82755:(e,t,n)=>{var r=n(44418),i=n(62021).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},22705:(e,t,n)=>{var r=n(44418),i=n(62021).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},28089:(e,t,n)=>{var r=n(5323),i=TypeError;e.exports=function(e){if(r(e))throw i("Can't call method on "+e);return e}},21157:e=>{e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},29440:(e,t,n)=>{"use strict";var r,i=n(62021),o=n(30103),a=n(71977),s=n(32657),l=n(82894),u=n(64494),c=n(51130),f=i.Function,h=/MSIE .\./.test(l)||s&&((r=i.Bun.version.split(".")).length<3||0==r[0]&&(r[1]<3||3==r[1]&&0==r[2]));e.exports=function(e,t){var n=t?2:1;return h?function(r,i){var s=c(arguments.length,1)>n,l=a(r)?r:f(r),h=s?u(arguments,n):[],p=s?function(){o(l,this,h)}:l;return t?e(p,i):e(p)}:e}},25676:(e,t,n)=>{"use strict";var r=n(45718),i=n(90424),o=n(63048),a=n(61337),s=o("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},14249:(e,t,n)=>{var r=n(20421).f,i=n(42011),o=n(63048)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},58093:(e,t,n)=>{var r=n(678),i=n(54552),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},88817:(e,t,n)=>{var r=n(62021),i=n(56722),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},678:(e,t,n)=>{var r=n(9596),i=n(88817);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})},82799:(e,t,n)=>{var r=n(26424),i=n(83326),o=n(5323),a=n(63048)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||o(n=r(s)[a])?t:i(n)}},72067:(e,t,n)=>{var r=n(44418);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},31570:(e,t,n)=>{var r=n(44686),i=n(42898),o=n(38444),a=n(28089),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,f=o(a(t)),h=i(n),p=f.length;return h<0||h>=p?e?"":void 0:(r=l(f,h))<55296||r>56319||h+1===p||(c=l(f,h+1))<56320||c>57343?e?s(f,h):r:e?u(f,h,h+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},17862:(e,t,n)=>{var r=n(82894);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},27121:(e,t,n)=>{var r=n(44686),i=n(83346),o=n(38444),a=n(64671),s=n(28089),l=r(a),u=r("".slice),c=Math.ceil,f=function(e){return function(t,n,r){var a,f,h=o(s(t)),p=i(n),d=h.length,v=void 0===r?" ":o(r);return p<=d||""==v?h:((f=l(v,c((a=p-d)/v.length))).length>a&&(f=u(f,0,a)),e?h+f:f+h)}};e.exports={start:f(!1),end:f(!0)}},5999:(e,t,n)=>{var r=n(44686),i=2147483647,o=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,u=r(a.exec),c=Math.floor,f=String.fromCharCode,h=r("".charCodeAt),p=r([].join),d=r([].push),v=r("".replace),m=r("".split),g=r("".toLowerCase),y=function(e){return e+22+75*(e<26)},b=function(e,t,n){var r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),r+=36;return c(r+36*e/(e+38))},w=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=h(e,n++);if(i>=55296&&i<=56319&&n<r){var o=h(e,n++);56320==(64512&o)?d(t,((1023&i)<<10)+(1023&o)+65536):(d(t,i),n--)}else d(t,i)}return t}(e);var n,r,o=e.length,a=128,u=0,v=72;for(n=0;n<e.length;n++)(r=e[n])<128&&d(t,f(r));var m=t.length,g=m;for(m&&d(t,"-");g<o;){var w=i;for(n=0;n<e.length;n++)(r=e[n])>=a&&r<w&&(w=r);var x=g+1;if(w-a>c((i-u)/x))throw l(s);for(u+=(w-a)*x,a=w,n=0;n<e.length;n++){if((r=e[n])<a&&++u>i)throw l(s);if(r==a){for(var E=u,S=36;;){var T=S<=v?1:S>=v+26?26:S-v;if(E<T)break;var P=E-T,O=36-T;d(t,f(y(T+P%O))),E=c(P/O),S+=36}d(t,f(y(E))),v=b(u,x,g==m),u=0,g++}}u++,a++}return p(t,"")};e.exports=function(e){var t,n,r=[],i=m(v(g(e),a,"."),".");for(t=0;t<i.length;t++)n=i[t],d(r,u(o,n)?"xn--"+w(n):n);return p(r,".")}},64671:(e,t,n)=>{"use strict";var r=n(42898),i=n(38444),o=n(28089),a=RangeError;e.exports=function(e){var t=i(o(this)),n="",s=r(e);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},49397:(e,t,n)=>{"use strict";var r=n(13873).end,i=n(75531);e.exports=i("trimEnd")?function(){return r(this)}:"".trimEnd},75531:(e,t,n)=>{var r=n(87967).PROPER,i=n(44418),o=n(20223);e.exports=function(e){return i((function(){return!!o[e]()||"
"!=="
"[e]()||r&&o[e].name!==e}))}},52241:(e,t,n)=>{"use strict";var r=n(13873).start,i=n(75531);e.exports=i("trimStart")?function(){return r(this)}:"".trimStart},13873:(e,t,n)=>{var r=n(44686),i=n(28089),o=n(38444),a=n(20223),s=r("".replace),l=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,u,"$1")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},36009:(e,t,n)=>{var r=n(60617),i=n(44418);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},6352:(e,t,n)=>{var r=n(85563),i=n(45718),o=n(63048),a=n(88424);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},50334:(e,t,n)=>{var r=n(36009);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},18774:(e,t,n)=>{var r,i,o,a,s=n(62021),l=n(30103),u=n(5735),c=n(71977),f=n(42011),h=n(44418),p=n(7772),d=n(64494),v=n(12649),m=n(51130),g=n(99082),y=n(80999),b=s.setImmediate,w=s.clearImmediate,x=s.process,E=s.Dispatch,S=s.Function,T=s.MessageChannel,P=s.String,O=0,C={},R="onreadystatechange";h((function(){r=s.location}));var k=function(e){if(f(C,e)){var t=C[e];delete C[e],t()}},_=function(e){return function(){k(e)}},j=function(e){k(e.data)},I=function(e){s.postMessage(P(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){m(arguments.length,1);var t=c(e)?e:S(e),n=d(arguments,1);return C[++O]=function(){l(t,void 0,n)},i(O),O},w=function(e){delete C[e]},y?i=function(e){x.nextTick(_(e))}:E&&E.now?i=function(e){E.now(_(e))}:T&&!g?(a=(o=new T).port2,o.port1.onmessage=j,i=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(I)?(i=I,s.addEventListener("message",j,!1)):i=R in v("script")?function(e){p.appendChild(v("script"))[R]=function(){p.removeChild(this),k(e)}}:function(e){setTimeout(_(e),0)}),e.exports={set:b,clear:w}},19290:(e,t,n)=>{var r=n(44686);e.exports=r(1..valueOf)},65217:(e,t,n)=>{var r=n(42898),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},56421:(e,t,n)=>{var r=n(33841),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw i("Can't convert number to bigint");return BigInt(t)}},96029:(e,t,n)=>{var r=n(42898),i=n(83346),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw o("Wrong length or index");return n}},30630:(e,t,n)=>{var r=n(83436),i=n(28089);e.exports=function(e){return r(i(e))}},42898:(e,t,n)=>{var r=n(56729);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},83346:(e,t,n)=>{var r=n(42898),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},94548:(e,t,n)=>{var r=n(28089),i=Object;e.exports=function(e){return i(r(e))}},98008:(e,t,n)=>{var r=n(85260),i=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw i("Wrong offset");return n}},85260:(e,t,n)=>{var r=n(42898),i=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw i("The argument can't be less than 0");return t}},33841:(e,t,n)=>{var r=n(85563),i=n(47212),o=n(16874),a=n(71260),s=n(44565),l=n(63048),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},38069:(e,t,n)=>{var r=n(33841),i=n(16874);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},73649:(e,t,n)=>{var r={};r[n(63048)("toStringTag")]="z",e.exports="[object z]"===String(r)},38444:(e,t,n)=>{var r=n(9558),i=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},35959:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6052:(e,t,n)=>{"use strict";var r=n(94427),i=n(62021),o=n(85563),a=n(61337),s=n(19716),l=n(79310),u=n(84669),c=n(54375),f=n(95323),h=n(91873),p=n(78236),d=n(83346),v=n(96029),m=n(98008),g=n(38069),y=n(42011),b=n(9558),w=n(47212),x=n(16874),E=n(4977),S=n(56701),T=n(40157),P=n(84190).f,O=n(93012),C=n(13140).forEach,R=n(25676),k=n(90424),_=n(20421),j=n(94912),I=n(85774),A=n(18310),D=I.get,M=I.set,L=I.enforce,N=_.f,B=j.f,F=Math.round,z=i.RangeError,H=u.ArrayBuffer,U=H.prototype,V=u.DataView,W=l.NATIVE_ARRAY_BUFFER_VIEWS,G=l.TYPED_ARRAY_TAG,q=l.TypedArray,X=l.TypedArrayPrototype,Z=l.aTypedArrayConstructor,$=l.isTypedArray,Y="BYTES_PER_ELEMENT",K="Wrong length",J=function(e,t){Z(e);for(var n=0,r=t.length,i=new e(r);r>n;)i[n]=t[n++];return i},Q=function(e,t){k(e,t,{configurable:!0,get:function(){return D(this)[t]}})},ee=function(e){var t;return S(U,e)||"ArrayBuffer"==(t=b(e))||"SharedArrayBuffer"==t},te=function(e,t){return $(e)&&!x(t)&&t in e&&p(+t)&&t>=0},ne=function(e,t){return t=g(t),te(e,t)?f(2,e[t]):B(e,t)},re=function(e,t,n){return t=g(t),!(te(e,t)&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?N(e,t,n):(e[t]=n.value,e)};a?(W||(j.f=ne,_.f=re,Q(X,"buffer"),Q(X,"byteOffset"),Q(X,"byteLength"),Q(X,"length")),r({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:ne,defineProperty:re}),e.exports=function(e,t,n){var a=e.match(/\d+/)[0]/8,l=e+(n?"Clamped":"")+"Array",u="get"+e,f="set"+e,p=i[l],g=p,y=g&&g.prototype,b={},x=function(e,t){N(e,t,{get:function(){return function(e,t){var n=D(e);return n.view[u](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=D(e);n&&(r=(r=F(r))<0?0:r>255?255:255&r),i.view[f](t*a+i.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};W?s&&(g=t((function(e,t,n,r){return c(e,y),A(w(t)?ee(t)?void 0!==r?new p(t,m(n,a),r):void 0!==n?new p(t,m(n,a)):new p(t):$(t)?J(g,t):o(O,g,t):new p(v(t)),e,g)})),T&&T(g,q),C(P(p),(function(e){e in g||h(g,e,p[e])})),g.prototype=y):(g=t((function(e,t,n,r){c(e,y);var i,s,l,u=0,f=0;if(w(t)){if(!ee(t))return $(t)?J(g,t):o(O,g,t);i=t,f=m(n,a);var h=t.byteLength;if(void 0===r){if(h%a)throw z(K);if((s=h-f)<0)throw z(K)}else if((s=d(r)*a)+f>h)throw z(K);l=s/a}else l=v(t),i=new H(s=l*a);for(M(e,{buffer:i,byteOffset:f,byteLength:s,length:l,view:new V(i)});u<l;)x(e,u++)})),T&&T(g,q),y=g.prototype=E(X)),y.constructor!==g&&h(y,"constructor",g),L(y).TypedArrayConstructor=g,G&&h(y,G,l);var S=g!=p;b[l]=g,r({global:!0,constructor:!0,forced:S,sham:!W},b),Y in g||h(g,Y,a),Y in y||h(y,Y,a),R(l)}):e.exports=function(){}},19716:(e,t,n)=>{var r=n(62021),i=n(44418),o=n(88716),a=n(79310).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,l=r.Int8Array;e.exports=!a||!i((function(){l(1)}))||!i((function(){new l(-1)}))||!o((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||i((function(){return 1!==new l(new s(2),1,void 0).length}))},57636:(e,t,n)=>{var r=n(50491),i=n(27106);e.exports=function(e,t){return r(i(e),t)}},93012:(e,t,n)=>{var r=n(5735),i=n(85563),o=n(83326),a=n(94548),s=n(48601),l=n(68979),u=n(369),c=n(27803),f=n(60301),h=n(79310).aTypedArrayConstructor,p=n(56421);e.exports=function(e){var t,n,d,v,m,g,y,b,w=o(this),x=a(e),E=arguments.length,S=E>1?arguments[1]:void 0,T=void 0!==S,P=u(x);if(P&&!c(P))for(b=(y=l(x,P)).next,x=[];!(g=i(b,y)).done;)x.push(g.value);for(T&&E>2&&(S=r(S,arguments[2])),n=s(x),d=new(h(w))(n),v=f(d),t=0;n>t;t++)m=T?S(x[t],t):x[t],d[t]=v?p(m):+m;return d}},27106:(e,t,n)=>{var r=n(79310),i=n(82799),o=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;e.exports=function(e){return o(i(e,a(e)))}},54552:(e,t,n)=>{var r=n(44686),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},35266:(e,t,n)=>{var r=n(44418),i=n(63048),o=n(61337),a=n(9596),s=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),a&&!e.toJSON||!t.size&&(a||!o)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},41635:(e,t,n)=>{var r=n(36009);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},73504:(e,t,n)=>{var r=n(61337),i=n(44418);e.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},51130:e=>{var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},41859:(e,t,n)=>{var r=n(62021),i=n(71977),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},75273:(e,t,n)=>{var r=n(5761),i=n(42011),o=n(95787),a=n(20421).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},95787:(e,t,n)=>{var r=n(63048);t.f=r},63048:(e,t,n)=>{var r=n(62021),i=n(678),o=n(42011),a=n(54552),s=n(36009),l=n(41635),u=r.Symbol,c=i("wks"),f=l?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)||(c[e]=s&&o(u,e)?u[e]:f("Symbol."+e)),c[e]}},20223:e=>{e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},52050:(e,t,n)=>{"use strict";var r=n(94427),i=n(62021),o=n(84669),a=n(25676),s="ArrayBuffer",l=o[s];r({global:!0,constructor:!0,forced:i[s]!==l},{ArrayBuffer:l}),a(s)},70158:(e,t,n)=>{var r=n(94427),i=n(79310);r({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},18394:(e,t,n)=>{"use strict";var r=n(94427),i=n(3137),o=n(44418),a=n(84669),s=n(26424),l=n(65217),u=n(83346),c=n(82799),f=a.ArrayBuffer,h=a.DataView,p=h.prototype,d=i(f.prototype.slice),v=i(p.getUint8),m=i(p.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(d&&void 0===t)return d(s(this),e);for(var n=s(this).byteLength,r=l(e,n),i=l(void 0===t?n:t,n),o=new(c(this,f))(u(i-r)),a=new h(this),p=new h(o),g=0;r<i;)m(p,g++,v(a,r++));return o}})},57617:(e,t,n)=>{"use strict";var r=n(94427),i=n(44418),o=n(54773),a=n(47212),s=n(94548),l=n(48601),u=n(91983),c=n(82216),f=n(82449),h=n(94855),p=n(63048),d=n(60617),v=p("isConcatSpreadable"),m=d>=51||!i((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),g=function(e){if(!a(e))return!1;var t=e[v];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,arity:1,forced:!m||!h("concat")},{concat:function(e){var t,n,r,i,o,a=s(this),h=f(a,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(g(o=-1===t?a:arguments[t]))for(i=l(o),u(p+i),n=0;n<i;n++,p++)n in o&&c(h,p,o[n]);else u(p+1),c(h,p++,o);return h.length=p,h}})},55793:(e,t,n)=>{var r=n(94427),i=n(63085),o=n(79143);r({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},40585:(e,t,n)=>{"use strict";var r=n(94427),i=n(13140).every;r({target:"Array",proto:!0,forced:!n(65537)("every")},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},73172:(e,t,n)=>{var r=n(94427),i=n(56661),o=n(79143);r({target:"Array",proto:!0},{fill:i}),o("fill")},77549:(e,t,n)=>{"use strict";var r=n(94427),i=n(13140).filter;r({target:"Array",proto:!0,forced:!n(94855)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},69779:(e,t,n)=>{"use strict";var r=n(94427),i=n(13140).findIndex,o=n(79143),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},94843:(e,t,n)=>{"use strict";var r=n(94427),i=n(13140).find,o=n(79143),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},46664:(e,t,n)=>{"use strict";var r=n(94427),i=n(20154),o=n(4363),a=n(94548),s=n(48601),l=n(82449);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=a(this),r=s(n);return o(e),(t=l(n,0)).length=i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},71942:(e,t,n)=>{"use strict";var r=n(94427),i=n(20154),o=n(94548),a=n(48601),s=n(42898),l=n(82449);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=a(t),r=l(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:s(e)),r}})},31814:(e,t,n)=>{"use strict";var r=n(94427),i=n(15558);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},25163:(e,t,n)=>{var r=n(94427),i=n(36281);r({target:"Array",stat:!0,forced:!n(88716)((function(e){Array.from(e)}))},{from:i})},6539:(e,t,n)=>{"use strict";var r=n(94427),i=n(14525).includes,o=n(44418),a=n(79143);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},95968:(e,t,n)=>{"use strict";var r=n(94427),i=n(3137),o=n(14525).indexOf,a=n(65537),s=i([].indexOf),l=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:l||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:o(this,e,t)}})},11110:(e,t,n)=>{n(94427)({target:"Array",stat:!0},{isArray:n(54773)})},46295:(e,t,n)=>{"use strict";var r=n(30630),i=n(79143),o=n(32916),a=n(85774),s=n(20421).f,l=n(55268),u=n(17073),c=n(9596),f=n(61337),h="Array Iterator",p=a.set,d=a.getterFor(h);e.exports=l(Array,"Array",(function(e,t){p(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var v=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&f&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(e){}},1945:(e,t,n)=>{"use strict";var r=n(94427),i=n(44686),o=n(83436),a=n(30630),s=n(65537),l=i([].join);r({target:"Array",proto:!0,forced:o!=Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},71631:(e,t,n)=>{var r=n(94427),i=n(99202);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},71765:(e,t,n)=>{"use strict";var r=n(94427),i=n(13140).map;r({target:"Array",proto:!0,forced:!n(94855)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},30010:(e,t,n)=>{"use strict";var r=n(94427),i=n(44418),o=n(30771),a=n(82216),s=Array;r({target:"Array",stat:!0,forced:i((function(){function e(){}return!(s.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new(o(this)?this:s)(t);t>e;)a(n,e,arguments[e++]);return n.length=t,n}})},16408:(e,t,n)=>{"use strict";var r=n(94427),i=n(1870).right,o=n(65537),a=n(60617);r({target:"Array",proto:!0,forced:!n(80999)&&a>79&&a<83||!o("reduceRight")},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},77012:(e,t,n)=>{"use strict";var r=n(94427),i=n(1870).left,o=n(65537),a=n(60617);r({target:"Array",proto:!0,forced:!n(80999)&&a>79&&a<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},77653:(e,t,n)=>{"use strict";var r=n(94427),i=n(44686),o=n(54773),a=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},52180:(e,t,n)=>{"use strict";var r=n(94427),i=n(54773),o=n(30771),a=n(47212),s=n(65217),l=n(48601),u=n(30630),c=n(82216),f=n(63048),h=n(94855),p=n(64494),d=h("slice"),v=f("species"),m=Array,g=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,r,f,h=u(this),d=l(h),y=s(e,d),b=s(void 0===t?d:t,d);if(i(h)&&(n=h.constructor,(o(n)&&(n===m||i(n.prototype))||a(n)&&null===(n=n[v]))&&(n=void 0),n===m||void 0===n))return p(h,y,b);for(r=new(void 0===n?m:n)(g(b-y,0)),f=0;y<b;y++,f++)y in h&&c(r,f,h[y]);return r.length=f,r}})},96194:(e,t,n)=>{"use strict";var r=n(94427),i=n(13140).some;r({target:"Array",proto:!0,forced:!n(65537)("some")},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},98166:(e,t,n)=>{"use strict";var r=n(94427),i=n(44686),o=n(4363),a=n(94548),s=n(48601),l=n(6687),u=n(38444),c=n(44418),f=n(37116),h=n(65537),p=n(87464),d=n(7452),v=n(60617),m=n(39047),g=[],y=i(g.sort),b=i(g.push),w=c((function(){g.sort(void 0)})),x=c((function(){g.sort(null)})),E=h("sort"),S=!c((function(){if(v)return v<70;if(!(p&&p>3)){if(d)return!0;if(m)return m<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:t+r,v:n})}for(g.sort((function(e,t){return t.v-e.v})),r=0;r<g.length;r++)t=g[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:w||!x||!E||!S},{sort:function(e){void 0!==e&&o(e);var t=a(this);if(S)return void 0===e?y(t):y(t,e);var n,r,i=[],c=s(t);for(r=0;r<c;r++)r in t&&b(i,t[r]);for(f(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:u(t)>u(n)?1:-1}}(e)),n=s(i),r=0;r<n;)t[r]=i[r++];for(;r<c;)l(t,r++);return t}})},60079:(e,t,n)=>{n(25676)("Array")},64431:(e,t,n)=>{"use strict";var r=n(94427),i=n(94548),o=n(65217),a=n(42898),s=n(48601),l=n(80379),u=n(91983),c=n(82449),f=n(82216),h=n(6687),p=n(94855)("splice"),d=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,r,p,m,g,y,b=i(this),w=s(b),x=o(e,w),E=arguments.length;for(0===E?n=r=0:1===E?(n=0,r=w-x):(n=E-2,r=v(d(a(t),0),w-x)),u(w+n-r),p=c(b,r),m=0;m<r;m++)(g=x+m)in b&&f(p,m,b[g]);if(p.length=r,n<r){for(m=x;m<w-r;m++)y=m+n,(g=m+r)in b?b[y]=b[g]:h(b,y);for(m=w;m>w-r+n;m--)h(b,m-1)}else if(n>r)for(m=w-r;m>x;m--)y=m+n-1,(g=m+r-1)in b?b[y]=b[g]:h(b,y);for(m=0;m<n;m++)b[m+x]=arguments[m+2];return l(b,w-r+n),p}})},50090:(e,t,n)=>{n(79143)("flatMap")},33549:(e,t,n)=>{n(79143)("flat")},16235:(e,t,n)=>{var r=n(94427),i=n(84669);r({global:!0,constructor:!0,forced:!n(48620)},{DataView:i.DataView})},87655:(e,t,n)=>{n(16235)},89239:(e,t,n)=>{var r=n(94427),i=n(44686),o=Date,a=i(o.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return a(new o)}})},95899:(e,t,n)=>{var r=n(94427),i=n(6607);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},77556:(e,t,n)=>{"use strict";var r=n(94427),i=n(44418),o=n(94548),a=n(33841);r({target:"Date",proto:!0,arity:1,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=o(this),n=a(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},60388:(e,t,n)=>{var r=n(42011),i=n(88424),o=n(27733),a=n(63048)("toPrimitive"),s=Date.prototype;r(s,a)||i(s,a,o)},51966:(e,t,n)=>{var r=n(44686),i=n(88424),o=Date.prototype,a="Invalid Date",s="toString",l=r(o[s]),u=r(o.getTime);String(new Date(NaN))!=a&&i(o,s,(function(){var e=u(this);return e==e?l(this):a}))},44343:(e,t,n)=>{var r=n(94427),i=n(18961);r({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},21437:(e,t,n)=>{"use strict";var r=n(71977),i=n(47212),o=n(20421),a=n(83155),s=n(63048),l=n(14382),u=s("hasInstance"),c=Function.prototype;u in c||o.f(c,u,{value:l((function(e){if(!r(this)||!i(e))return!1;var t=this.prototype;if(!i(t))return e instanceof this;for(;e=a(e);)if(t===e)return!0;return!1}),u)})},21282:(e,t,n)=>{var r=n(61337),i=n(87967).EXISTS,o=n(44686),a=n(90424),s=Function.prototype,l=o(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(u.exec);r&&!i&&a(s,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},88350:(e,t,n)=>{var r=n(94427),i=n(45718),o=n(30103),a=n(85563),s=n(44686),l=n(44418),u=n(71977),c=n(16874),f=n(64494),h=n(36047),p=n(36009),d=String,v=i("JSON","stringify"),m=s(/./.exec),g=s("".charAt),y=s("".charCodeAt),b=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,T=!p||l((function(){var e=i("Symbol")();return"[null]"!=v([e])||"{}"!=v({a:e})||"{}"!=v(Object(e))})),P=l((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),O=function(e,t){var n=f(arguments),r=h(t);if(u(r)||void 0!==e&&!c(e))return n[1]=function(e,t){if(u(r)&&(t=a(r,this,d(e),t)),!c(t))return t},o(v,null,n)},C=function(e,t,n){var r=g(n,t-1),i=g(n,t+1);return m(E,e)&&!m(S,i)||m(S,e)&&!m(E,r)?"\\u"+w(y(e,0),16):e};v&&r({target:"JSON",stat:!0,arity:3,forced:T||P},{stringify:function(e,t,n){var r=f(arguments),i=o(T?O:v,null,r);return P&&"string"==typeof i?b(i,x,C):i}})},50889:(e,t,n)=>{var r=n(62021);n(14249)(r.JSON,"JSON",!0)},70522:(e,t,n)=>{"use strict";n(82219)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(56e3))},75982:(e,t,n)=>{n(70522)},71648:(e,t,n)=>{var r=n(94427),i=n(54641),o=Math.acosh,a=Math.log,s=Math.sqrt,l=Math.LN2;r({target:"Math",stat:!0,forced:!o||710!=Math.floor(o(Number.MAX_VALUE))||o(1/0)!=1/0},{acosh:function(e){var t=+e;return t<1?NaN:t>94906265.62425156?a(t)+l:i(t-1+s(t-1)*s(t+1))}})},4823:(e,t,n)=>{var r=n(94427),i=Math.asinh,o=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function e(t){var n=+t;return isFinite(n)&&0!=n?n<0?-e(-n):o(n+a(n*n+1)):n}})},71804:(e,t,n)=>{var r=n(94427),i=Math.atanh,o=Math.log;r({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(e){var t=+e;return 0==t?t:o((1+t)/(1-t))/2}})},1104:(e,t,n)=>{var r=n(94427),i=n(30673),o=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return i(t)*a(o(t),1/3)}})},70397:(e,t,n)=>{var r=n(94427),i=Math.floor,o=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-i(o(t+.5)*a):32}})},34496:(e,t,n)=>{var r=n(94427),i=n(36241),o=Math.cosh,a=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(e){var t=i(a(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},78615:(e,t,n)=>{var r=n(94427),i=n(36241);r({target:"Math",stat:!0,forced:i!=Math.expm1},{expm1:i})},40284:(e,t,n)=>{n(94427)({target:"Math",stat:!0},{fround:n(78159)})},99817:(e,t,n)=>{var r=n(94427),i=Math.hypot,o=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,arity:2,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,i=0,s=0,l=arguments.length,u=0;s<l;)u<(n=o(arguments[s++]))?(i=i*(r=u/n)*r+1,u=n):i+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*a(i)}})},24465:(e,t,n)=>{var r=n(94427),i=n(44418),o=Math.imul;r({target:"Math",stat:!0,forced:i((function(){return-5!=o(4294967295,5)||2!=o.length}))},{imul:function(e,t){var n=65535,r=+e,i=+t,o=n&r,a=n&i;return 0|o*a+((n&r>>>16)*a+o*(n&i>>>16)<<16>>>0)}})},46469:(e,t,n)=>{n(94427)({target:"Math",stat:!0},{log10:n(76280)})},25357:(e,t,n)=>{n(94427)({target:"Math",stat:!0},{log1p:n(54641)})},28081:(e,t,n)=>{var r=n(94427),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return i(e)/o}})},93204:(e,t,n)=>{n(94427)({target:"Math",stat:!0},{sign:n(30673)})},501:(e,t,n)=>{var r=n(94427),i=n(44418),o=n(36241),a=Math.abs,s=Math.exp,l=Math.E;r({target:"Math",stat:!0,forced:i((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){var t=+e;return a(t)<1?(o(t)-o(-t))/2:(s(t-1)-s(-t-1))*(l/2)}})},37731:(e,t,n)=>{var r=n(94427),i=n(36241),o=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=+e,n=i(t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},77810:(e,t,n)=>{n(14249)(Math,"Math",!0)},97930:(e,t,n)=>{n(94427)({target:"Math",stat:!0},{trunc:n(56729)})},29976:(e,t,n)=>{"use strict";var r=n(94427),i=n(9596),o=n(61337),a=n(62021),s=n(5761),l=n(44686),u=n(31943),c=n(42011),f=n(18310),h=n(56701),p=n(16874),d=n(33841),v=n(44418),m=n(84190).f,g=n(94912).f,y=n(20421).f,b=n(19290),w=n(13873).trim,x="Number",E=a[x],S=s[x],T=E.prototype,P=a.TypeError,O=l("".slice),C=l("".charCodeAt),R=function(e){var t,n,r,i,o,a,s,l,u=d(e,"number");if(p(u))throw P("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=w(u),43===(t=C(u,0))||45===t){if(88===(n=C(u,2))||120===n)return NaN}else if(48===t){switch(C(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=(o=O(u,2)).length,s=0;s<a;s++)if((l=C(o,s))<48||l>i)return NaN;return parseInt(o,r)}return+u},k=u(x,!E(" 0o1")||!E("0b1")||E("+0x1")),_=function(e){var t,n=arguments.length<1?0:E(function(e){var t=d(e,"number");return"bigint"==typeof t?t:R(t)}(e));return h(T,t=this)&&v((function(){b(t)}))?f(Object(n),this,_):n};_.prototype=T,k&&!i&&(T.constructor=_),r({global:!0,constructor:!0,wrap:!0,forced:k},{Number:_});var j=function(e,t){for(var n,r=o?m(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)c(t,n=r[i])&&!c(e,n)&&y(e,n,g(t,n))};i&&S&&j(s[x],S),(k||i)&&j(s[x],E)},29176:(e,t,n)=>{n(94427)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},73300:(e,t,n)=>{n(94427)({target:"Number",stat:!0},{isFinite:n(20218)})},51234:(e,t,n)=>{n(94427)({target:"Number",stat:!0},{isInteger:n(78236)})},77846:(e,t,n)=>{n(94427)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},6797:(e,t,n)=>{var r=n(94427),i=n(78236),o=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},53606:(e,t,n)=>{n(94427)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},68663:(e,t,n)=>{n(94427)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},62989:(e,t,n)=>{var r=n(94427),i=n(35369);r({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},52276:(e,t,n)=>{var r=n(94427),i=n(80633);r({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},19830:(e,t,n)=>{"use strict";var r=n(94427),i=n(44686),o=n(42898),a=n(19290),s=n(64671),l=n(44418),u=RangeError,c=String,f=Math.floor,h=i(s),p=i("".slice),d=i(1..toFixed),v=function e(t,n,r){return 0===n?r:n%2==1?e(t,n-1,r*t):e(t*t,n/2,r)},m=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=f(i/1e7)},g=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=f(r/t),r=r%t*1e7},y=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=c(e[t]);n=""===n?r:n+h("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:l((function(){return"0.000"!==d(8e-5,3)||"1"!==d(.9,0)||"1.25"!==d(1.255,2)||"1000000000000000128"!==d(0xde0b6b3a7640080,0)}))||!l((function(){d({})}))},{toFixed:function(e){var t,n,r,i,s=a(this),l=o(e),f=[0,0,0,0,0,0],d="",b="0";if(l<0||l>20)throw u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(d="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*v(2,69,1))-69)<0?s*v(2,-t,1):s/v(2,t,1),n*=4503599627370496,(t=52-t)>0){for(m(f,0,n),r=l;r>=7;)m(f,1e7,0),r-=7;for(m(f,v(10,r,1),0),r=t-1;r>=23;)g(f,1<<23),r-=23;g(f,1<<r),m(f,1,1),g(f,2),b=y(f)}else m(f,0,n),m(f,1<<-t,0),b=y(f)+h("0",l);return b=l>0?d+((i=b.length)<=l?"0."+h("0",l-i)+b:p(b,0,i-l)+"."+p(b,i-l)):d+b}})},94568:(e,t,n)=>{"use strict";var r=n(94427),i=n(44686),o=n(44418),a=n(19290),s=i(1..toPrecision);r({target:"Number",proto:!0,forced:o((function(){return"1"!==s(1,void 0)}))||!o((function(){s({})}))},{toPrecision:function(e){return void 0===e?s(a(this)):s(a(this),e)}})},38786:(e,t,n)=>{var r=n(94427),i=n(66898);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},39160:(e,t,n)=>{n(94427)({target:"Object",stat:!0,sham:!n(61337)},{create:n(4977)})},88455:(e,t,n)=>{"use strict";var r=n(94427),i=n(61337),o=n(14441),a=n(4363),s=n(94548),l=n(20421);i&&r({target:"Object",proto:!0,forced:o},{__defineGetter__:function(e,t){l.f(s(this),e,{get:a(t),enumerable:!0,configurable:!0})}})},85972:(e,t,n)=>{var r=n(94427),i=n(61337),o=n(39839).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==o,sham:!i},{defineProperties:o})},47042:(e,t,n)=>{var r=n(94427),i=n(61337),o=n(20421).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!i},{defineProperty:o})},66082:(e,t,n)=>{"use strict";var r=n(94427),i=n(61337),o=n(14441),a=n(4363),s=n(94548),l=n(20421);i&&r({target:"Object",proto:!0,forced:o},{__defineSetter__:function(e,t){l.f(s(this),e,{set:a(t),enumerable:!0,configurable:!0})}})},14298:(e,t,n)=>{var r=n(94427),i=n(92304).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},55686:(e,t,n)=>{var r=n(94427),i=n(15287),o=n(44418),a=n(47212),s=n(42426).onFreeze,l=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){l(1)})),sham:!i},{freeze:function(e){return l&&a(e)?l(s(e)):e}})},54925:(e,t,n)=>{var r=n(94427),i=n(7536),o=n(82216);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,n){o(t,e,n)}),{AS_ENTRIES:!0}),t}})},58436:(e,t,n)=>{var r=n(94427),i=n(44418),o=n(30630),a=n(94912).f,s=n(61337);r({target:"Object",stat:!0,forced:!s||i((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},8607:(e,t,n)=>{var r=n(94427),i=n(61337),o=n(33575),a=n(30630),s=n(94912),l=n(82216);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,u=o(r),c={},f=0;u.length>f;)void 0!==(n=i(r,t=u[f++]))&&l(c,t,n);return c}})},33375:(e,t,n)=>{var r=n(94427),i=n(44418),o=n(12026).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},7820:(e,t,n)=>{var r=n(94427),i=n(36009),o=n(44418),a=n(29833),s=n(94548);r({target:"Object",stat:!0,forced:!i||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},16252:(e,t,n)=>{var r=n(94427),i=n(44418),o=n(94548),a=n(83155),s=n(51322);r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},88819:(e,t,n)=>{var r=n(94427),i=n(87544);r({target:"Object",stat:!0,forced:Object.isExtensible!==i},{isExtensible:i})},87874:(e,t,n)=>{var r=n(94427),i=n(44418),o=n(47212),a=n(62393),s=n(72382),l=Object.isFrozen;r({target:"Object",stat:!0,forced:s||i((function(){l(1)}))},{isFrozen:function(e){return!o(e)||(!(!s||"ArrayBuffer"!=a(e))||!!l&&l(e))}})},37038:(e,t,n)=>{var r=n(94427),i=n(44418),o=n(47212),a=n(62393),s=n(72382),l=Object.isSealed;r({target:"Object",stat:!0,forced:s||i((function(){l(1)}))},{isSealed:function(e){return!o(e)||(!(!s||"ArrayBuffer"!=a(e))||!!l&&l(e))}})},59097:(e,t,n)=>{n(94427)({target:"Object",stat:!0},{is:n(21157)})},62639:(e,t,n)=>{var r=n(94427),i=n(94548),o=n(6555);r({target:"Object",stat:!0,forced:n(44418)((function(){o(1)}))},{keys:function(e){return o(i(e))}})},46023:(e,t,n)=>{"use strict";var r=n(94427),i=n(61337),o=n(14441),a=n(94548),s=n(38069),l=n(83155),u=n(94912).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(e){var t,n=a(this),r=s(e);do{if(t=u(n,r))return t.get}while(n=l(n))}})},64311:(e,t,n)=>{"use strict";var r=n(94427),i=n(61337),o=n(14441),a=n(94548),s=n(38069),l=n(83155),u=n(94912).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(e){var t,n=a(this),r=s(e);do{if(t=u(n,r))return t.set}while(n=l(n))}})},68907:(e,t,n)=>{var r=n(94427),i=n(47212),o=n(42426).onFreeze,a=n(15287),s=n(44418),l=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!a},{preventExtensions:function(e){return l&&i(e)?l(o(e)):e}})},92088:(e,t,n)=>{var r=n(94427),i=n(47212),o=n(42426).onFreeze,a=n(15287),s=n(44418),l=Object.seal;r({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!a},{seal:function(e){return l&&i(e)?l(o(e)):e}})},23658:(e,t,n)=>{n(94427)({target:"Object",stat:!0},{setPrototypeOf:n(40157)})},16084:(e,t,n)=>{var r=n(73649),i=n(88424),o=n(66379);r||i(Object.prototype,"toString",o,{unsafe:!0})},28757:(e,t,n)=>{var r=n(94427),i=n(92304).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},33873:(e,t,n)=>{var r=n(94427),i=n(35369);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},91214:(e,t,n)=>{var r=n(94427),i=n(80633);r({global:!0,forced:parseInt!=i},{parseInt:i})},19639:(e,t,n)=>{"use strict";var r=n(94427),i=n(85563),o=n(4363),a=n(54386),s=n(54593),l=n(7536);r({target:"Promise",stat:!0,forced:n(57927)},{all:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,c=s((function(){var n=o(t.resolve),a=[],s=0,c=1;l(e,(function(e){var o=s++,l=!1;c++,i(n,t,e).then((function(e){l||(l=!0,a[o]=e,--c||r(a))}),u)})),--c||r(a)}));return c.error&&u(c.value),n.promise}})},1427:(e,t,n)=>{"use strict";var r=n(94427),i=n(9596),o=n(29600).CONSTRUCTOR,a=n(10930),s=n(45718),l=n(71977),u=n(88424),c=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&l(a)){var f=s("Promise").prototype.catch;c.catch!==f&&u(c,"catch",f,{unsafe:!0})}},34071:(e,t,n)=>{"use strict";var r,i,o,a=n(94427),s=n(9596),l=n(80999),u=n(62021),c=n(85563),f=n(88424),h=n(40157),p=n(14249),d=n(25676),v=n(4363),m=n(71977),g=n(47212),y=n(54375),b=n(82799),w=n(18774).set,x=n(53465),E=n(84362),S=n(54593),T=n(53789),P=n(85774),O=n(10930),C=n(29600),R=n(54386),k="Promise",_=C.CONSTRUCTOR,j=C.REJECTION_EVENT,I=C.SUBCLASSING,A=P.getterFor(k),D=P.set,M=O&&O.prototype,L=O,N=M,B=u.TypeError,F=u.document,z=u.process,H=R.f,U=H,V=!!(F&&F.createEvent&&u.dispatchEvent),W="unhandledrejection",G=function(e){var t;return!(!g(e)||!m(t=e.then))&&t},q=function(e,t){var n,r,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,f=e.domain;try{s?(a||(2===t.rejection&&K(t),t.rejection=1),!0===s?n=o:(f&&f.enter(),n=s(o),f&&(f.exit(),i=!0)),n===e.promise?u(B("Promise-chain cycle")):(r=G(n))?c(r,n,l,u):l(n)):u(o)}catch(e){f&&!i&&f.exit(),u(e)}},X=function(e,t){e.notified||(e.notified=!0,x((function(){for(var n,r=e.reactions;n=r.get();)q(n,e);e.notified=!1,t&&!e.rejection&&$(e)})))},Z=function(e,t,n){var r,i;V?((r=F.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!j&&(i=u["on"+e])?i(r):e===W&&E("Unhandled promise rejection",n)},$=function(e){c(w,u,(function(){var t,n=e.facade,r=e.value;if(Y(e)&&(t=S((function(){l?z.emit("unhandledRejection",r,n):Z(W,n,r)})),e.rejection=l||Y(e)?2:1,t.error))throw t.value}))},Y=function(e){return 1!==e.rejection&&!e.parent},K=function(e){c(w,u,(function(){var t=e.facade;l?z.emit("rejectionHandled",t):Z("rejectionhandled",t,e.value)}))},J=function(e,t,n){return function(r){e(t,r,n)}},Q=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,X(e,!0))},ee=function e(t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===n)throw B("Promise can't be resolved itself");var i=G(n);i?x((function(){var r={done:!1};try{c(i,n,J(e,r,t),J(Q,r,t))}catch(e){Q(r,e,t)}})):(t.value=n,t.state=1,X(t,!1))}catch(e){Q({done:!1},e,t)}}};if(_&&(N=(L=function(e){y(this,N),v(e),c(r,this);var t=A(this);try{e(J(ee,t),J(Q,t))}catch(e){Q(t,e)}}).prototype,(r=function(e){D(this,{type:k,done:!1,notified:!1,parent:!1,reactions:new T,rejection:!1,state:0,value:void 0})}).prototype=f(N,"then",(function(e,t){var n=A(this),r=H(b(this,L));return n.parent=!0,r.ok=!m(e)||e,r.fail=m(t)&&t,r.domain=l?z.domain:void 0,0==n.state?n.reactions.add(r):x((function(){q(r,n)})),r.promise})),i=function(){var e=new r,t=A(e);this.promise=e,this.resolve=J(ee,t),this.reject=J(Q,t)},R.f=H=function(e){return e===L||undefined===e?new i(e):U(e)},!s&&m(O)&&M!==Object.prototype)){o=M.then,I||f(M,"then",(function(e,t){var n=this;return new L((function(e,t){c(o,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete M.constructor}catch(e){}h&&h(M,N)}a({global:!0,constructor:!0,wrap:!0,forced:_},{Promise:L}),p(L,k,!1,!0),d(k)},69369:(e,t,n)=>{"use strict";var r=n(94427),i=n(9596),o=n(10930),a=n(44418),s=n(45718),l=n(71977),u=n(82799),c=n(3434),f=n(88424),h=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){h.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n=l(e);return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),!i&&l(o)){var p=s("Promise").prototype.finally;h.finally!==p&&f(h,"finally",p,{unsafe:!0})}},67921:(e,t,n)=>{n(34071),n(19639),n(1427),n(83700),n(15831),n(2771)},83700:(e,t,n)=>{"use strict";var r=n(94427),i=n(85563),o=n(4363),a=n(54386),s=n(54593),l=n(7536);r({target:"Promise",stat:!0,forced:n(57927)},{race:function(e){var t=this,n=a.f(t),r=n.reject,u=s((function(){var a=o(t.resolve);l(e,(function(e){i(a,t,e).then(n.resolve,r)}))}));return u.error&&r(u.value),n.promise}})},15831:(e,t,n)=>{"use strict";var r=n(94427),i=n(85563),o=n(54386);r({target:"Promise",stat:!0,forced:n(29600).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},2771:(e,t,n)=>{"use strict";var r=n(94427),i=n(45718),o=n(9596),a=n(10930),s=n(29600).CONSTRUCTOR,l=n(3434),u=i("Promise"),c=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return l(c&&this===u?a:this,e)}})},145:(e,t,n)=>{var r=n(94427),i=n(30103),o=n(4363),a=n(26424);r({target:"Reflect",stat:!0,forced:!n(44418)((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,n){return i(o(e),t,a(n))}})},12745:(e,t,n)=>{var r=n(94427),i=n(45718),o=n(30103),a=n(18961),s=n(83326),l=n(26424),u=n(47212),c=n(4977),f=n(44418),h=i("Reflect","construct"),p=Object.prototype,d=[].push,v=f((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),m=!f((function(){h((function(){}))})),g=v||m;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(m&&!v)return h(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return o(d,r,t),new(o(a,e,r))}var i=n.prototype,f=c(u(i)?i:p),g=o(e,f,t);return u(g)?g:f}})},37175:(e,t,n)=>{var r=n(94427),i=n(61337),o=n(26424),a=n(38069),s=n(20421);r({target:"Reflect",stat:!0,forced:n(44418)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(e,t,n){o(e);var r=a(t);o(n);try{return s.f(e,r,n),!0}catch(e){return!1}}})},98611:(e,t,n)=>{var r=n(94427),i=n(26424),o=n(94912).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=o(i(e),t);return!(n&&!n.configurable)&&delete e[t]}})},94133:(e,t,n)=>{var r=n(94427),i=n(61337),o=n(26424),a=n(94912);r({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(e,t){return a.f(o(e),t)}})},28611:(e,t,n)=>{var r=n(94427),i=n(26424),o=n(83155);r({target:"Reflect",stat:!0,sham:!n(51322)},{getPrototypeOf:function(e){return o(i(e))}})},48448:(e,t,n)=>{var r=n(94427),i=n(85563),o=n(47212),a=n(26424),s=n(32020),l=n(94912),u=n(83155);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,c,f=arguments.length<3?t:arguments[2];return a(t)===f?t[n]:(r=l.f(t,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,f):o(c=u(t))?e(c,n,f):void 0}})},68156:(e,t,n)=>{n(94427)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},56449:(e,t,n)=>{var r=n(94427),i=n(26424),o=n(87544);r({target:"Reflect",stat:!0},{isExtensible:function(e){return i(e),o(e)}})},73949:(e,t,n)=>{n(94427)({target:"Reflect",stat:!0},{ownKeys:n(33575)})},98017:(e,t,n)=>{var r=n(94427),i=n(45718),o=n(26424);r({target:"Reflect",stat:!0,sham:!n(15287)},{preventExtensions:function(e){o(e);try{var t=i("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},71449:(e,t,n)=>{var r=n(94427),i=n(26424),o=n(34667),a=n(40157);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){i(e),o(t);try{return a(e,t),!0}catch(e){return!1}}})},37307:(e,t,n)=>{var r=n(94427),i=n(85563),o=n(26424),a=n(47212),s=n(32020),l=n(44418),u=n(20421),c=n(94912),f=n(83155),h=n(95323);r({target:"Reflect",stat:!0,forced:l((function(){var e=function(){},t=u.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,n,r){var l,p,d,v=arguments.length<4?t:arguments[3],m=c.f(o(t),n);if(!m){if(a(p=f(t)))return e(p,n,r,v);m=h(0)}if(s(m)){if(!1===m.writable||!a(v))return!1;if(l=c.f(v,n)){if(l.get||l.set||!1===l.writable)return!1;l.value=r,u.f(v,n,l)}else u.f(v,n,h(0,r))}else{if(void 0===(d=m.set))return!1;i(d,v,r)}return!0}})},49582:(e,t,n)=>{var r=n(61337),i=n(62021),o=n(44686),a=n(31943),s=n(18310),l=n(91873),u=n(84190).f,c=n(56701),f=n(16142),h=n(38444),p=n(18737),d=n(9862),v=n(86145),m=n(88424),g=n(44418),y=n(42011),b=n(85774).enforce,w=n(25676),x=n(63048),E=n(82755),S=n(22705),T=x("match"),P=i.RegExp,O=P.prototype,C=i.SyntaxError,R=o(O.exec),k=o("".charAt),_=o("".replace),j=o("".indexOf),I=o("".slice),A=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,M=/a/g,L=new P(D)!==D,N=d.MISSED_STICKY,B=d.UNSUPPORTED_Y,F=r&&(!L||N||E||S||g((function(){return M[T]=!1,P(D)!=D||P(M)==M||"/a/i"!=P(D,"i")})));if(a("RegExp",F)){for(var z=function(e,t){var n,r,i,o,a,u,d=c(O,this),v=f(e),m=void 0===t,g=[],w=e;if(!d&&v&&m&&e.constructor===z)return e;if((v||c(O,e))&&(e=e.source,m&&(t=p(w))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),w=e,E&&"dotAll"in D&&(r=!!t&&j(t,"s")>-1)&&(t=_(t,/s/g,"")),n=t,N&&"sticky"in D&&(i=!!t&&j(t,"y")>-1)&&B&&(t=_(t,/y/g,"")),S&&(o=function(e){for(var t,n=e.length,r=0,i="",o=[],a={},s=!1,l=!1,u=0,c="";r<=n;r++){if("\\"===(t=k(e,r)))t+=k(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:R(A,I(e,r+1))&&(r+=2,l=!0),i+=t,u++;continue;case">"===t&&l:if(""===c||y(a,c))throw new C("Invalid capture group name");a[c]=!0,o[o.length]=[c,u],l=!1,c="";continue}l?c+=t:i+=t}return[i,o]}(e),e=o[0],g=o[1]),a=s(P(e,t),d?this:O,z),(r||i||g.length)&&(u=b(a),r&&(u.dotAll=!0,u.raw=z(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=k(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+k(e,++r);return i}(e),n)),i&&(u.sticky=!0),g.length&&(u.groups=g)),e!==w)try{l(a,"source",""===w?"(?:)":w)}catch(e){}return a},H=u(P),U=0;H.length>U;)v(z,P,H[U++]);O.constructor=z,z.prototype=O,m(i,"RegExp",z,{constructor:!0})}w("RegExp")},79841:(e,t,n)=>{"use strict";var r=n(94427),i=n(3458);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},78864:(e,t,n)=>{var r=n(62021),i=n(61337),o=n(90424),a=n(525),s=n(44418),l=r.RegExp,u=l.prototype;i&&s((function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(t)!==r||n!==r}))&&o(u,"flags",{configurable:!0,get:a})},80202:(e,t,n)=>{"use strict";var r=n(87967).PROPER,i=n(88424),o=n(26424),a=n(38444),s=n(44418),l=n(18737),u="toString",c=RegExp.prototype[u],f=s((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),h=r&&c.name!=u;(f||h)&&i(RegExp.prototype,u,(function(){var e=o(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},14609:(e,t,n)=>{"use strict";n(82219)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(56e3))},5851:(e,t,n)=>{n(14609)},79660:(e,t,n)=>{"use strict";var r=n(94427),i=n(9604);r({target:"String",proto:!0,forced:n(72067)("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},69705:(e,t,n)=>{"use strict";var r=n(94427),i=n(9604);r({target:"String",proto:!0,forced:n(72067)("big")},{big:function(){return i(this,"big","","")}})},57803:(e,t,n)=>{"use strict";var r=n(94427),i=n(9604);r({target:"String",proto:!0,forced:n(72067)("blink")},{blink:function(){return i(this,"blink","","")}})},81511:(e,t,n)=>{"use strict";var r=n(94427),i=n(9604);r({target:"String",proto:!0,forced:n(72067)("bold")},{bold:function(){return i(this,"b","","")}})},14773:(e,t,n)=>{"use strict";var r=n(94427),i=n(31570).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},68244:(e,t,n)=>{"use strict";var r,i=n(94427),o=n(3137),a=n(94912).f,s=n(83346),l=n(38444),u=n(60769),c=n(28089),f=n(81610),h=n(9596),p=o("".endsWith),d=o("".slice),v=Math.min,m=f("endsWith");i({target:"String",proto:!0,forced:!!(h||m||(r=a(String.prototype,"endsWith"),!r||r.writable))&&!m},{endsWith:function(e){var t=l(c(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:v(s(n),r),o=l(e);return p?p(t,o,i):d(t,i-o.length,i)===o}})},88182:(e,t,n)=>{"use strict";var r=n(94427),i=n(9604);r({target:"String",proto:!0,forced:n(72067)("fixed")},{fixed:function(){return i(this,"tt","","")}})},70117:(e,t,n)=>{"use strict";var r=n(94427),i=n(9604);r({target:"String",proto:!0,forced:n(72067)("fontcolor")},{fontcolor:function(e){return i(this,"font","color",e)}})},61036:(e,t,n)=>{"use strict";var r=n(94427),i=n(9604);r({target:"String",proto:!0,forced:n(72067)("fontsize")},{fontsize:function(e){return i(this,"font","size",e)}})},84184:(e,t,n)=>{var r=n(94427),i=n(44686),o=n(65217),a=RangeError,s=String.fromCharCode,l=String.fromCodePoint,u=i([].join);r({target:"String",stat:!0,arity:1,forced:!!l&&1!=l.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],o(t,1114111)!==t)throw a(t+" is not a valid code point");n[i]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return u(n,"")}})},5088:(e,t,n)=>{"use strict";var r=n(94427),i=n(44686),o=n(60769),a=n(28089),s=n(38444),l=n(81610),u=i("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},85455:(e,t,n)=>{"use strict";var r=n(94427),i=n(9604);r({target:"String",proto:!0,forced:n(72067)("italics")},{italics:function(){return i(this,"i","","")}})},7296:(e,t,n)=>{"use strict";var r=n(31570).charAt,i=n(38444),o=n(85774),a=n(55268),s=n(17073),l="String Iterator",u=o.set,c=o.getterFor(l);a(String,"String",(function(e){u(this,{type:l,string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))}))},30186:(e,t,n)=>{"use strict";var r=n(94427),i=n(9604);r({target:"String",proto:!0,forced:n(72067)("link")},{link:function(e){return i(this,"a","href",e)}})},59919:(e,t,n)=>{"use strict";var r=n(85563),i=n(88533),o=n(26424),a=n(5323),s=n(83346),l=n(38444),u=n(28089),c=n(71260),f=n(53314),h=n(1079);i("match",(function(e,t,n){return[function(t){var n=u(this),i=a(t)?void 0:c(t,e);return i?r(i,t,n):new RegExp(t)[e](l(n))},function(e){var r=o(this),i=l(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return h(r,i);var u=r.unicode;r.lastIndex=0;for(var c,p=[],d=0;null!==(c=h(r,i));){var v=l(c[0]);p[d]=v,""===v&&(r.lastIndex=f(i,s(r.lastIndex),u)),d++}return 0===d?null:p}]}))},8542:(e,t,n)=>{"use strict";var r=n(94427),i=n(27121).end;r({target:"String",proto:!0,forced:n(17862)},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},28491:(e,t,n)=>{"use strict";var r=n(94427),i=n(27121).start;r({target:"String",proto:!0,forced:n(17862)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},13290:(e,t,n)=>{var r=n(94427),i=n(44686),o=n(30630),a=n(94548),s=n(38444),l=n(48601),u=i([].push),c=i([].join);r({target:"String",stat:!0},{raw:function(e){var t=o(a(e).raw),n=l(t);if(!n)return"";for(var r=arguments.length,i=[],f=0;;){if(u(i,s(t[f++])),f===n)return c(i,"");f<r&&u(i,s(arguments[f]))}}})},42379:(e,t,n)=>{n(94427)({target:"String",proto:!0},{repeat:n(64671)})},75422:(e,t,n)=>{"use strict";var r=n(30103),i=n(85563),o=n(44686),a=n(88533),s=n(44418),l=n(26424),u=n(71977),c=n(5323),f=n(42898),h=n(83346),p=n(38444),d=n(28089),v=n(53314),m=n(71260),g=n(32048),y=n(1079),b=n(63048)("replace"),w=Math.max,x=Math.min,E=o([].concat),S=o([].push),T=o("".indexOf),P=o("".slice),O="$0"==="a".replace(/./,"$0"),C=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,n){var o=C?"$":"$0";return[function(e,n){var r=d(this),o=c(e)?void 0:m(e,b);return o?i(o,e,r,n):i(t,p(r),e,n)},function(e,i){var a=l(this),s=p(e);if("string"==typeof i&&-1===T(i,o)&&-1===T(i,"$<")){var c=n(t,a,s,i);if(c.done)return c.value}var d=u(i);d||(i=p(i));var m=a.global;if(m){var b=a.unicode;a.lastIndex=0}for(var O=[];;){var C=y(a,s);if(null===C)break;if(S(O,C),!m)break;""===p(C[0])&&(a.lastIndex=v(s,h(a.lastIndex),b))}for(var R,k="",_=0,j=0;j<O.length;j++){for(var I=p((C=O[j])[0]),A=w(x(f(C.index),s.length),0),D=[],M=1;M<C.length;M++)S(D,void 0===(R=C[M])?R:String(R));var L=C.groups;if(d){var N=E([I],D,A,s);void 0!==L&&S(N,L);var B=p(r(i,void 0,N))}else B=g(I,s,A,D,L,i);A>=_&&(k+=P(s,_,A)+B,_=A+I.length)}return k+P(s,_)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!O||C)},67250:(e,t,n)=>{"use strict";var r=n(85563),i=n(88533),o=n(26424),a=n(5323),s=n(28089),l=n(21157),u=n(38444),c=n(71260),f=n(1079);i("search",(function(e,t,n){return[function(t){var n=s(this),i=a(t)?void 0:c(t,e);return i?r(i,t,n):new RegExp(t)[e](u(n))},function(e){var r=o(this),i=u(e),a=n(t,r,i);if(a.done)return a.value;var s=r.lastIndex;l(s,0)||(r.lastIndex=0);var c=f(r,i);return l(r.lastIndex,s)||(r.lastIndex=s),null===c?-1:c.index}]}))},36401:(e,t,n)=>{"use strict";var r=n(94427),i=n(9604);r({target:"String",proto:!0,forced:n(72067)("small")},{small:function(){return i(this,"small","","")}})},59770:(e,t,n)=>{"use strict";var r=n(30103),i=n(85563),o=n(44686),a=n(88533),s=n(26424),l=n(5323),u=n(16142),c=n(28089),f=n(82799),h=n(53314),p=n(83346),d=n(38444),v=n(71260),m=n(11404),g=n(1079),y=n(3458),b=n(9862),w=n(44418),x=b.UNSUPPORTED_Y,E=4294967295,S=Math.min,T=[].push,P=o(/./.exec),O=o(T),C=o("".slice);a("split",(function(e,t,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=d(c(this)),a=void 0===n?E:n>>>0;if(0===a)return[];if(void 0===e)return[o];if(!u(e))return i(t,o,e,a);for(var s,l,f,h=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,g=new RegExp(e.source,p+"g");(s=i(y,g,o))&&!((l=g.lastIndex)>v&&(O(h,C(o,v,s.index)),s.length>1&&s.index<o.length&&r(T,h,m(s,1)),f=s[0].length,v=l,h.length>=a));)g.lastIndex===s.index&&g.lastIndex++;return v===o.length?!f&&P(g,"")||O(h,""):O(h,C(o,v)),h.length>a?m(h,0,a):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:i(t,this,e,n)}:t,[function(t,n){var r=c(this),a=l(t)?void 0:v(t,e);return a?i(a,t,r,n):i(o,d(r),t,n)},function(e,r){var i=s(this),a=d(e),l=n(o,i,a,r,o!==t);if(l.done)return l.value;var u=f(i,RegExp),c=i.unicode,v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(x?"g":"y"),m=new u(x?"^(?:"+i.source+")":i,v),y=void 0===r?E:r>>>0;if(0===y)return[];if(0===a.length)return null===g(m,a)?[a]:[];for(var b=0,w=0,T=[];w<a.length;){m.lastIndex=x?0:w;var P,R=g(m,x?C(a,w):a);if(null===R||(P=S(p(m.lastIndex+(x?w:0)),a.length))===b)w=h(a,w,c);else{if(O(T,C(a,b,w)),T.length===y)return T;for(var k=1;k<=R.length-1;k++)if(O(T,R[k]),T.length===y)return T;w=b=P}}return O(T,C(a,b)),T}]}),!!w((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),x)},76139:(e,t,n)=>{"use strict";var r,i=n(94427),o=n(3137),a=n(94912).f,s=n(83346),l=n(38444),u=n(60769),c=n(28089),f=n(81610),h=n(9596),p=o("".startsWith),d=o("".slice),v=Math.min,m=f("startsWith");i({target:"String",proto:!0,forced:!!(h||m||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!m},{startsWith:function(e){var t=l(c(this));u(e);var n=s(v(arguments.length>1?arguments[1]:void 0,t.length)),r=l(e);return p?p(t,r,n):d(t,n,n+r.length)===r}})},97532:(e,t,n)=>{"use strict";var r=n(94427),i=n(9604);r({target:"String",proto:!0,forced:n(72067)("strike")},{strike:function(){return i(this,"strike","","")}})},73908:(e,t,n)=>{"use strict";var r=n(94427),i=n(9604);r({target:"String",proto:!0,forced:n(72067)("sub")},{sub:function(){return i(this,"sub","","")}})},2584:(e,t,n)=>{"use strict";var r=n(94427),i=n(9604);r({target:"String",proto:!0,forced:n(72067)("sup")},{sup:function(){return i(this,"sup","","")}})},77233:(e,t,n)=>{n(99405);var r=n(94427),i=n(49397);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==i},{trimEnd:i})},56668:(e,t,n)=>{var r=n(94427),i=n(52241);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==i},{trimLeft:i})},99405:(e,t,n)=>{var r=n(94427),i=n(49397);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},42546:(e,t,n)=>{n(56668);var r=n(94427),i=n(52241);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},98963:(e,t,n)=>{"use strict";var r=n(94427),i=n(13873).trim;r({target:"String",proto:!0,forced:n(75531)("trim")},{trim:function(){return i(this)}})},23001:(e,t,n)=>{n(75273)("asyncIterator")},19773:(e,t,n)=>{"use strict";var r=n(94427),i=n(62021),o=n(85563),a=n(44686),s=n(9596),l=n(61337),u=n(36009),c=n(44418),f=n(42011),h=n(56701),p=n(26424),d=n(30630),v=n(38069),m=n(38444),g=n(95323),y=n(4977),b=n(6555),w=n(84190),x=n(12026),E=n(29833),S=n(94912),T=n(20421),P=n(39839),O=n(75073),C=n(88424),R=n(90424),k=n(678),_=n(58093),j=n(68653),I=n(54552),A=n(63048),D=n(95787),M=n(75273),L=n(6352),N=n(14249),B=n(85774),F=n(13140).forEach,z=_("hidden"),H="Symbol",U="prototype",V=B.set,W=B.getterFor(H),G=Object[U],q=i.Symbol,X=q&&q[U],Z=i.TypeError,$=i.QObject,Y=S.f,K=T.f,J=x.f,Q=O.f,ee=a([].push),te=k("symbols"),ne=k("op-symbols"),re=k("wks"),ie=!$||!$[U]||!$[U].findChild,oe=l&&c((function(){return 7!=y(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Y(G,t);r&&delete G[t],K(e,t,n),r&&e!==G&&K(G,t,r)}:K,ae=function(e,t){var n=te[e]=y(X);return V(n,{type:H,tag:e,description:t}),l||(n.description=t),n},se=function(e,t,n){e===G&&se(ne,t,n),p(e);var r=v(t);return p(n),f(te,r)?(n.enumerable?(f(e,z)&&e[z][r]&&(e[z][r]=!1),n=y(n,{enumerable:g(0,!1)})):(f(e,z)||K(e,z,g(1,{})),e[z][r]=!0),oe(e,r,n)):K(e,r,n)},le=function(e,t){p(e);var n=d(t),r=b(n).concat(he(n));return F(r,(function(t){l&&!o(ue,n,t)||se(e,t,n[t])})),e},ue=function(e){var t=v(e),n=o(Q,this,t);return!(this===G&&f(te,t)&&!f(ne,t))&&(!(n||!f(this,t)||!f(te,t)||f(this,z)&&this[z][t])||n)},ce=function(e,t){var n=d(e),r=v(t);if(n!==G||!f(te,r)||f(ne,r)){var i=Y(n,r);return!i||!f(te,r)||f(n,z)&&n[z][r]||(i.enumerable=!0),i}},fe=function(e){var t=J(d(e)),n=[];return F(t,(function(e){f(te,e)||f(j,e)||ee(n,e)})),n},he=function(e){var t=e===G,n=J(t?ne:d(e)),r=[];return F(n,(function(e){!f(te,e)||t&&!f(G,e)||ee(r,te[e])})),r};u||(C(X=(q=function(){if(h(X,this))throw Z("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=I(e);return l&&ie&&oe(G,t,{configurable:!0,set:function e(n){this===G&&o(e,ne,n),f(this,z)&&f(this[z],t)&&(this[z][t]=!1),oe(this,t,g(1,n))}}),ae(t,e)})[U],"toString",(function(){return W(this).tag})),C(q,"withoutSetter",(function(e){return ae(I(e),e)})),O.f=ue,T.f=se,P.f=le,S.f=ce,w.f=x.f=fe,E.f=he,D.f=function(e){return ae(A(e),e)},l&&(R(X,"description",{configurable:!0,get:function(){return W(this).description}}),s||C(G,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),F(b(re),(function(e){M(e)})),r({target:H,stat:!0,forced:!u},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?y(e):le(y(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:fe}),L(),N(q,H),j[z]=!0},41337:(e,t,n)=>{"use strict";var r=n(94427),i=n(61337),o=n(62021),a=n(44686),s=n(42011),l=n(71977),u=n(56701),c=n(38444),f=n(90424),h=n(66616),p=o.Symbol,d=p&&p.prototype;if(i&&l(p)&&(!("description"in d)||void 0!==p().description)){var v={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(d,this)?new p(e):void 0===e?p():p(e);return""===e&&(v[t]=!0),t};h(m,p),m.prototype=d,d.constructor=m;var g="Symbol(test)"==String(p("test")),y=a(d.valueOf),b=a(d.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),E=a("".slice);f(d,"description",{configurable:!0,get:function(){var e=y(this);if(s(v,e))return"";var t=b(e),n=g?E(t,7,-1):x(t,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},41604:(e,t,n)=>{var r=n(94427),i=n(45718),o=n(42011),a=n(38444),s=n(678),l=n(50334),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(o(u,t))return u[t];var n=i("Symbol")(t);return u[t]=n,c[n]=t,n}})},82984:(e,t,n)=>{n(75273)("hasInstance")},40522:(e,t,n)=>{n(75273)("isConcatSpreadable")},26329:(e,t,n)=>{n(75273)("iterator")},58026:(e,t,n)=>{n(19773),n(41604),n(10299),n(88350),n(7820)},10299:(e,t,n)=>{var r=n(94427),i=n(42011),o=n(16874),a=n(35959),s=n(678),l=n(50334),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!o(e))throw TypeError(a(e)+" is not a symbol");if(i(u,e))return u[e]}})},21972:(e,t,n)=>{n(75273)("match")},82021:(e,t,n)=>{n(75273)("replace")},61747:(e,t,n)=>{n(75273)("search")},11577:(e,t,n)=>{n(75273)("species")},16574:(e,t,n)=>{n(75273)("split")},87620:(e,t,n)=>{var r=n(75273),i=n(6352);r("toPrimitive"),i()},45503:(e,t,n)=>{var r=n(45718),i=n(75273),o=n(14249);i("toStringTag"),o(r("Symbol"),"Symbol")},47793:(e,t,n)=>{n(75273)("unscopables")},14160:(e,t,n)=>{"use strict";var r=n(44686),i=n(79310),o=r(n(63085)),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(e,t){return o(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},29681:(e,t,n)=>{"use strict";var r=n(79310),i=n(13140).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},5194:(e,t,n)=>{"use strict";var r=n(79310),i=n(56661),o=n(56421),a=n(9558),s=n(85563),l=n(44686),u=n(44418),c=r.aTypedArray,f=r.exportTypedArrayMethod,h=l("".slice);f("fill",(function(e){var t=arguments.length;c(this);var n="Big"===h(a(this),0,3)?o(e):+e;return s(i,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},18673:(e,t,n)=>{"use strict";var r=n(79310),i=n(13140).filter,o=n(57636),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},53469:(e,t,n)=>{"use strict";var r=n(79310),i=n(13140).findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},60140:(e,t,n)=>{"use strict";var r=n(79310),i=n(13140).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},21295:(e,t,n)=>{n(6052)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},72428:(e,t,n)=>{n(6052)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},49987:(e,t,n)=>{"use strict";var r=n(79310),i=n(13140).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},54429:(e,t,n)=>{"use strict";var r=n(19716);(0,n(79310).exportTypedArrayStaticMethod)("from",n(93012),r)},50106:(e,t,n)=>{"use strict";var r=n(79310),i=n(14525).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},72360:(e,t,n)=>{"use strict";var r=n(79310),i=n(14525).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},99089:(e,t,n)=>{n(6052)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},20518:(e,t,n)=>{n(6052)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},9759:(e,t,n)=>{n(6052)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},89583:(e,t,n)=>{"use strict";var r=n(62021),i=n(44418),o=n(44686),a=n(79310),s=n(46295),l=n(63048)("iterator"),u=r.Uint8Array,c=o(s.values),f=o(s.keys),h=o(s.entries),p=a.aTypedArray,d=a.exportTypedArrayMethod,v=u&&u.prototype,m=!i((function(){v[l].call([1])})),g=!!v&&v.values&&v[l]===v.values&&"values"===v.values.name,y=function(){return c(p(this))};d("entries",(function(){return h(p(this))}),m),d("keys",(function(){return f(p(this))}),m),d("values",y,m||!g,{name:"values"}),d(l,y,m||!g,{name:"values"})},16885:(e,t,n)=>{"use strict";var r=n(79310),i=n(44686),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=i([].join);a("join",(function(e){return s(o(this),e)}))},98214:(e,t,n)=>{"use strict";var r=n(79310),i=n(30103),o=n(99202),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return i(o,a(this),t>1?[e,arguments[1]]:[e])}))},28614:(e,t,n)=>{"use strict";var r=n(79310),i=n(13140).map,o=n(27106),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},61776:(e,t,n)=>{"use strict";var r=n(79310),i=n(19716),o=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(o(this))(t);t>e;)n[e]=arguments[e++];return n}),i)},55221:(e,t,n)=>{"use strict";var r=n(79310),i=n(1870).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},25705:(e,t,n)=>{"use strict";var r=n(79310),i=n(1870).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},73792:(e,t,n)=>{"use strict";var r=n(79310),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){for(var e,t=this,n=i(t).length,r=a(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t}))},10701:(e,t,n)=>{"use strict";var r=n(62021),i=n(85563),o=n(79310),a=n(48601),s=n(98008),l=n(94548),u=n(44418),c=r.RangeError,f=r.Int8Array,h=f&&f.prototype,p=h&&h.set,d=o.aTypedArray,v=o.exportTypedArrayMethod,m=!u((function(){var e=new Uint8ClampedArray(2);return i(p,e,{length:1,0:3},1),3!==e[1]})),g=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));v("set",(function(e){d(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(m)return i(p,this,n,t);var r=this.length,o=a(n),u=0;if(o+t>r)throw c("Wrong length");for(;u<o;)this[t+u]=n[u++]}),!m||g)},17877:(e,t,n)=>{"use strict";var r=n(79310),i=n(27106),o=n(44418),a=n(64494),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(e,t){for(var n=a(s(this),e,t),r=i(this),o=0,l=n.length,u=new r(l);l>o;)u[o]=n[o++];return u}),o((function(){new Int8Array(1).slice()})))},55823:(e,t,n)=>{"use strict";var r=n(79310),i=n(13140).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},29845:(e,t,n)=>{"use strict";var r=n(62021),i=n(3137),o=n(44418),a=n(4363),s=n(37116),l=n(79310),u=n(87464),c=n(7452),f=n(60617),h=n(39047),p=l.aTypedArray,d=l.exportTypedArrayMethod,v=r.Uint16Array,m=v&&i(v.prototype.sort),g=!(!m||o((function(){m(new v(2),null)}))&&o((function(){m(new v(2),{})}))),y=!!m&&!o((function(){if(f)return f<74;if(u)return u<67;if(c)return!0;if(h)return h<602;var e,t,n=new v(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(m(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));d("sort",(function(e){return void 0!==e&&a(e),y?m(this,e):s(p(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!y||g)},37943:(e,t,n)=>{"use strict";var r=n(79310),i=n(83346),o=n(65217),a=n(27106),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=s(this),r=n.length,l=o(e,r);return new(a(n))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,i((void 0===t?r:o(t,r))-l))}))},94869:(e,t,n)=>{"use strict";var r=n(62021),i=n(30103),o=n(79310),a=n(44418),s=n(64494),l=r.Int8Array,u=o.aTypedArray,c=o.exportTypedArrayMethod,f=[].toLocaleString,h=!!l&&a((function(){f.call(new l(1))}));c("toLocaleString",(function(){return i(f,h?s(u(this)):u(this),s(arguments))}),a((function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()}))||!a((function(){l.prototype.toLocaleString.call([1,2])})))},16048:(e,t,n)=>{"use strict";var r=n(79310).exportTypedArrayMethod,i=n(44418),o=n(62021),a=n(44686),s=o.Uint8Array,l=s&&s.prototype||{},u=[].toString,c=a([].join);i((function(){u.call({})}))&&(u=function(){return c(this)});var f=l.toString!=u;r("toString",u,f)},56506:(e,t,n)=>{n(6052)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},1699:(e,t,n)=>{n(6052)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},44176:(e,t,n)=>{n(6052)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},58484:(e,t,n)=>{n(6052)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},3773:(e,t,n)=>{"use strict";var r,i=n(15287),o=n(62021),a=n(44686),s=n(49001),l=n(42426),u=n(82219),c=n(71975),f=n(47212),h=n(85774).enforce,p=n(44418),d=n(41859),v=Object,m=Array.isArray,g=v.isExtensible,y=v.isFrozen,b=v.isSealed,w=v.freeze,x=v.seal,E={},S={},T=!o.ActiveXObject&&"ActiveXObject"in o,P=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},O=u("WeakMap",P,c),C=O.prototype,R=a(C.set);if(d)if(T){r=c.getConstructor(P,"WeakMap",!0),l.enable();var k=a(C.delete),_=a(C.has),j=a(C.get);s(C,{delete:function(e){if(f(e)&&!g(e)){var t=h(this);return t.frozen||(t.frozen=new r),k(this,e)||t.frozen.delete(e)}return k(this,e)},has:function(e){if(f(e)&&!g(e)){var t=h(this);return t.frozen||(t.frozen=new r),_(this,e)||t.frozen.has(e)}return _(this,e)},get:function(e){if(f(e)&&!g(e)){var t=h(this);return t.frozen||(t.frozen=new r),_(this,e)?j(this,e):t.frozen.get(e)}return j(this,e)},set:function(e,t){if(f(e)&&!g(e)){var n=h(this);n.frozen||(n.frozen=new r),_(this,e)?R(this,e,t):n.frozen.set(e,t)}else R(this,e,t);return this}})}else i&&p((function(){var e=w([]);return R(new O,e,1),!y(e)}))&&s(C,{set:function(e,t){var n;return m(e)&&(y(e)?n=E:b(e)&&(n=S)),R(this,e,t),n==E&&w(e),n==S&&x(e),this}})},99571:(e,t,n)=>{n(3773)},37843:(e,t,n)=>{"use strict";n(82219)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(71975))},45757:(e,t,n)=>{n(37843)},59645:(e,t,n)=>{var r=n(94427),i=n(62021),o=n(18774).clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},35887:(e,t,n)=>{var r=n(62021),i=n(7413),o=n(69839),a=n(15558),s=n(91873),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in i)i[u]&&l(r[u]&&r[u].prototype);l(o)},78322:(e,t,n)=>{var r=n(62021),i=n(7413),o=n(69839),a=n(46295),s=n(91873),l=n(63048),u=l("iterator"),c=l("toStringTag"),f=a.values,h=function(e,t){if(e){if(e[u]!==f)try{s(e,u,f)}catch(t){e[u]=f}if(e[c]||s(e,c,t),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var p in i)h(r[p]&&r[p].prototype,p);h(o,"DOMTokenList")},34372:(e,t,n)=>{n(59645),n(70954)},24547:(e,t,n)=>{var r=n(94427),i=n(62021),o=n(53465),a=n(4363),s=n(51130),l=n(80999),u=i.process;r({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(e){s(arguments.length,1),a(e);var t=l&&u.domain;o(t?t.bind(e):e)}})},70954:(e,t,n)=>{var r=n(94427),i=n(62021),o=n(18774).set,a=n(29440),s=i.setImmediate?a(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},8564:(e,t,n)=>{var r=n(94427),i=n(62021),o=n(29440)(i.setInterval,!0);r({global:!0,bind:!0,forced:i.setInterval!==o},{setInterval:o})},20986:(e,t,n)=>{var r=n(94427),i=n(62021),o=n(29440)(i.setTimeout,!0);r({global:!0,bind:!0,forced:i.setTimeout!==o},{setTimeout:o})},20362:(e,t,n)=>{n(8564),n(20986)},26881:(e,t,n)=>{"use strict";n(46295);var r=n(94427),i=n(62021),o=n(85563),a=n(44686),s=n(61337),l=n(35266),u=n(88424),c=n(90424),f=n(49001),h=n(14249),p=n(28110),d=n(85774),v=n(54375),m=n(71977),g=n(42011),y=n(5735),b=n(9558),w=n(26424),x=n(47212),E=n(38444),S=n(4977),T=n(95323),P=n(68979),O=n(369),C=n(51130),R=n(63048),k=n(37116),_=R("iterator"),j="URLSearchParams",I=j+"Iterator",A=d.set,D=d.getterFor(j),M=d.getterFor(I),L=Object.getOwnPropertyDescriptor,N=function(e){if(!s)return i[e];var t=L(i,e);return t&&t.value},B=N("fetch"),F=N("Request"),z=N("Headers"),H=F&&F.prototype,U=z&&z.prototype,V=i.RegExp,W=i.TypeError,G=i.decodeURIComponent,q=i.encodeURIComponent,X=a("".charAt),Z=a([].join),$=a([].push),Y=a("".replace),K=a([].shift),J=a([].splice),Q=a("".split),ee=a("".slice),te=/\+/g,ne=Array(4),re=function(e){return ne[e-1]||(ne[e-1]=V("((?:%[\\da-f]{2}){"+e+"})","gi"))},ie=function(e){try{return G(e)}catch(t){return e}},oe=function(e){var t=Y(e,te," "),n=4;try{return G(t)}catch(e){for(;n;)t=Y(t,re(n--),ie);return t}},ae=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},le=function(e){return se[e]},ue=function(e){return Y(q(e),ae,le)},ce=p((function(e,t){A(this,{type:I,iterator:P(D(e).entries),kind:t})}),"Iterator",(function(){var e=M(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===X(e,0)?ee(e,1):e:E(e)))};fe.prototype={type:j,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,a,s,l,u=O(e);if(u)for(n=(t=P(e,u)).next;!(r=o(n,t)).done;){if(a=(i=P(w(r.value))).next,(s=o(a,i)).done||(l=o(a,i)).done||!o(a,i).done)throw W("Expected sequence with length 2");$(this.entries,{key:E(s.value),value:E(l.value)})}else for(var c in e)g(e,c)&&$(this.entries,{key:c,value:E(e[c])})},parseQuery:function(e){if(e)for(var t,n,r=Q(e,"&"),i=0;i<r.length;)(t=r[i++]).length&&(n=Q(t,"="),$(this.entries,{key:oe(K(n)),value:oe(Z(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],$(n,ue(e.key)+"="+ue(e.value));return Z(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var he=function(){v(this,pe);var e=A(this,new fe(arguments.length>0?arguments[0]:void 0));s||(this.length=e.entries.length)},pe=he.prototype;if(f(pe,{append:function(e,t){C(arguments.length,2);var n=D(this);$(n.entries,{key:E(e),value:E(t)}),s||this.length++,n.updateURL()},delete:function(e){C(arguments.length,1);for(var t=D(this),n=t.entries,r=E(e),i=0;i<n.length;)n[i].key===r?J(n,i,1):i++;s||(this.length=n.length),t.updateURL()},get:function(e){C(arguments.length,1);for(var t=D(this).entries,n=E(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){C(arguments.length,1);for(var t=D(this).entries,n=E(e),r=[],i=0;i<t.length;i++)t[i].key===n&&$(r,t[i].value);return r},has:function(e){C(arguments.length,1);for(var t=D(this).entries,n=E(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){C(arguments.length,1);for(var n,r=D(this),i=r.entries,o=!1,a=E(e),l=E(t),u=0;u<i.length;u++)(n=i[u]).key===a&&(o?J(i,u--,1):(o=!0,n.value=l));o||$(i,{key:a,value:l}),s||(this.length=i.length),r.updateURL()},sort:function(){var e=D(this);k(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=D(this).entries,r=y(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new ce(this,"keys")},values:function(){return new ce(this,"values")},entries:function(){return new ce(this,"entries")}},{enumerable:!0}),u(pe,_,pe.entries,{name:"entries"}),u(pe,"toString",(function(){return D(this).serialize()}),{enumerable:!0}),s&&c(pe,"size",{get:function(){return D(this).entries.length},configurable:!0,enumerable:!0}),h(he,j),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:he}),!l&&m(z)){var de=a(U.has),ve=a(U.set),me=function(e){if(x(e)){var t,n=e.body;if(b(n)===j)return t=e.headers?new z(e.headers):new z,de(t,"content-type")||ve(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),S(e,{body:T(0,E(n)),headers:T(0,t)})}return e};if(m(B)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return B(e,arguments.length>1?me(arguments[1]):{})}}),m(F)){var ge=function(e){return v(this,H),new F(e,arguments.length>1?me(arguments[1]):{})};H.constructor=ge,ge.prototype=H,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ge})}}e.exports={URLSearchParams:he,getState:D}},14533:(e,t,n)=>{n(26881)},51834:(e,t,n)=>{"use strict";n(7296);var r,i=n(94427),o=n(61337),a=n(35266),s=n(62021),l=n(5735),u=n(44686),c=n(88424),f=n(90424),h=n(54375),p=n(42011),d=n(66898),v=n(36281),m=n(11404),g=n(31570).codeAt,y=n(5999),b=n(38444),w=n(14249),x=n(51130),E=n(26881),S=n(85774),T=S.set,P=S.getterFor("URL"),O=E.URLSearchParams,C=E.getState,R=s.URL,k=s.TypeError,_=s.parseInt,j=Math.floor,I=Math.pow,A=u("".charAt),D=u(/./.exec),M=u([].join),L=u(1..toString),N=u([].pop),B=u([].push),F=u("".replace),z=u([].shift),H=u("".split),U=u("".slice),V=u("".toLowerCase),W=u([].unshift),G="Invalid scheme",q="Invalid host",X="Invalid port",Z=/[a-z]/i,$=/[\d+-.a-z]/i,Y=/\d/,K=/^0x/i,J=/^[0-7]+$/,Q=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,oe=/[\t\n\r]/g,ae=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)W(t,e%256),e=j(e/256);return M(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=L(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},se={},le=d({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=d({},le,{"#":1,"?":1,"{":1,"}":1}),ce=d({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var n=g(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},he={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var n;return 2==e.length&&D(Z,A(e,0))&&(":"==(n=A(e,1))||!t&&"|"==n)},de=function(e){var t;return e.length>1&&pe(U(e,0,2))&&(2==e.length||"/"===(t=A(e,2))||"\\"===t||"?"===t||"#"===t)},ve=function(e){return"."===e||"%2e"===V(e)},me={},ge={},ye={},be={},we={},xe={},Ee={},Se={},Te={},Pe={},Oe={},Ce={},Re={},ke={},_e={},je={},Ie={},Ae={},De={},Me={},Le={},Ne=function e(t,n,r){var i,o,a,s=b(t);if(n){if(o=this.parse(s))throw k(o);this.searchParams=null}else{if(void 0!==r&&(i=new e(r,!0)),o=this.parse(s,null,i))throw k(o);(a=C(new O)).bindURL(this),this.searchParams=a}};Ne.prototype={type:"URL",parse:function(e,t,n){var i,o,a,s,l,u=this,c=t||me,f=0,h="",d=!1,g=!1,y=!1;for(e=b(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=F(e,re,""),e=F(e,ie,"$1")),e=F(e,oe,""),i=v(e);f<=i.length;){switch(o=i[f],c){case me:if(!o||!D(Z,o)){if(t)return G;c=ye;continue}h+=V(o),c=ge;break;case ge:if(o&&(D($,o)||"+"==o||"-"==o||"."==o))h+=V(o);else{if(":"!=o){if(t)return G;h="",c=ye,f=0;continue}if(t&&(u.isSpecial()!=p(he,h)||"file"==h&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=h,t)return void(u.isSpecial()&&he[u.scheme]==u.port&&(u.port=null));h="","file"==u.scheme?c=ke:u.isSpecial()&&n&&n.scheme==u.scheme?c=be:u.isSpecial()?c=Se:"/"==i[f+1]?(c=we,f++):(u.cannotBeABaseURL=!0,B(u.path,""),c=De)}break;case ye:if(!n||n.cannotBeABaseURL&&"#"!=o)return G;if(n.cannotBeABaseURL&&"#"==o){u.scheme=n.scheme,u.path=m(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,c=Le;break}c="file"==n.scheme?ke:xe;continue;case be:if("/"!=o||"/"!=i[f+1]){c=xe;continue}c=Te,f++;break;case we:if("/"==o){c=Pe;break}c=Ae;continue;case xe:if(u.scheme=n.scheme,o==r)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query=n.query;else if("/"==o||"\\"==o&&u.isSpecial())c=Ee;else if("?"==o)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query="",c=Me;else{if("#"!=o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.path.length--,c=Ae;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query=n.query,u.fragment="",c=Le}break;case Ee:if(!u.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,c=Ae;continue}c=Pe}else c=Te;break;case Se:if(c=Te,"/"!=o||"/"!=A(h,f+1))continue;f++;break;case Te:if("/"!=o&&"\\"!=o){c=Pe;continue}break;case Pe:if("@"==o){d&&(h="%40"+h),d=!0,a=v(h);for(var w=0;w<a.length;w++){var x=a[w];if(":"!=x||y){var E=fe(x,ce);y?u.password+=E:u.username+=E}else y=!0}h=""}else if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(d&&""==h)return"Invalid authority";f-=v(h).length+1,h="",c=Oe}else h+=o;break;case Oe:case Ce:if(t&&"file"==u.scheme){c=je;continue}if(":"!=o||g){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(u.isSpecial()&&""==h)return q;if(t&&""==h&&(u.includesCredentials()||null!==u.port))return;if(s=u.parseHost(h))return s;if(h="",c=Ie,t)return;continue}"["==o?g=!0:"]"==o&&(g=!1),h+=o}else{if(""==h)return q;if(s=u.parseHost(h))return s;if(h="",c=Re,t==Ce)return}break;case Re:if(!D(Y,o)){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()||t){if(""!=h){var S=_(h,10);if(S>65535)return X;u.port=u.isSpecial()&&S===he[u.scheme]?null:S,h=""}if(t)return;c=Ie;continue}return X}h+=o;break;case ke:if(u.scheme="file","/"==o||"\\"==o)c=_e;else{if(!n||"file"!=n.scheme){c=Ae;continue}if(o==r)u.host=n.host,u.path=m(n.path),u.query=n.query;else if("?"==o)u.host=n.host,u.path=m(n.path),u.query="",c=Me;else{if("#"!=o){de(M(m(i,f),""))||(u.host=n.host,u.path=m(n.path),u.shortenPath()),c=Ae;continue}u.host=n.host,u.path=m(n.path),u.query=n.query,u.fragment="",c=Le}}break;case _e:if("/"==o||"\\"==o){c=je;break}n&&"file"==n.scheme&&!de(M(m(i,f),""))&&(pe(n.path[0],!0)?B(u.path,n.path[0]):u.host=n.host),c=Ae;continue;case je:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&pe(h))c=Ae;else if(""==h){if(u.host="",t)return;c=Ie}else{if(s=u.parseHost(h))return s;if("localhost"==u.host&&(u.host=""),t)return;h="",c=Ie}continue}h+=o;break;case Ie:if(u.isSpecial()){if(c=Ae,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=r&&(c=Ae,"/"!=o))continue}else u.fragment="",c=Le;else u.query="",c=Me;break;case Ae:if(o==r||"/"==o||"\\"==o&&u.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(l=V(l=h))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(u.shortenPath(),"/"==o||"\\"==o&&u.isSpecial()||B(u.path,"")):ve(h)?"/"==o||"\\"==o&&u.isSpecial()||B(u.path,""):("file"==u.scheme&&!u.path.length&&pe(h)&&(u.host&&(u.host=""),h=A(h,0)+":"),B(u.path,h)),h="","file"==u.scheme&&(o==r||"?"==o||"#"==o))for(;u.path.length>1&&""===u.path[0];)z(u.path);"?"==o?(u.query="",c=Me):"#"==o&&(u.fragment="",c=Le)}else h+=fe(o,ue);break;case De:"?"==o?(u.query="",c=Me):"#"==o?(u.fragment="",c=Le):o!=r&&(u.path[0]+=fe(o,se));break;case Me:t||"#"!=o?o!=r&&("'"==o&&u.isSpecial()?u.query+="%27":u.query+="#"==o?"%23":fe(o,se)):(u.fragment="",c=Le);break;case Le:o!=r&&(u.fragment+=fe(o,le))}f++}},parseHost:function(e){var t,n,r;if("["==A(e,0)){if("]"!=A(e,e.length-1))return q;if(t=function(e){var t,n,r,i,o,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,f=0,h=function(){return A(e,f)};if(":"==h()){if(":"!=A(e,1))return;f+=2,c=++u}for(;h();){if(8==u)return;if(":"!=h()){for(t=n=0;n<4&&D(ee,h());)t=16*t+_(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,u>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!D(Y,h()))return;for(;D(Y,h());){if(o=_(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}l[u]=256*l[u]+i,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;l[u++]=t}else{if(null!==c)return;f++,c=++u}}if(null!==c)for(a=u-c,u=7;0!=u&&a>0;)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s;else if(8!=u)return;return l}(U(e,1,-1)),!t)return q;this.host=t}else if(this.isSpecial()){if(e=y(e),D(te,e))return q;if(t=function(e){var t,n,r,i,o,a,s,l=H(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=l[r]))return e;if(o=10,i.length>1&&"0"==A(i,0)&&(o=D(K,i)?16:8,i=U(i,8==o?1:2)),""===i)a=0;else{if(!D(10==o?Q:8==o?J:ee,i))return e;a=_(i,o)}B(n,a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=I(256,5-t))return null}else if(a>255)return null;for(s=N(n),r=0;r<n.length;r++)s+=n[r]*I(256,3-r);return s}(e),null===t)return q;this.host=t}else{if(D(ne,e))return q;for(t="",n=v(e),r=0;r<n.length;r++)t+=fe(n[r],se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(he,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=ae(i),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+M(a,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw k(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Be(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",me)},getUsername:function(){return this.username},setUsername:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=fe(t[n],ce)}},getPassword:function(){return this.password},setPassword:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=fe(t[n],ce)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Oe)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ce)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=b(e))?this.port=null:this.parse(e,Re))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+M(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=b(e))?this.query=null:("?"==A(e,0)&&(e=U(e,1)),this.query="",this.parse(e,Me)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=b(e))?("#"==A(e,0)&&(e=U(e,1)),this.fragment="",this.parse(e,Le)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Be=function(e){var t=h(this,Fe),n=x(arguments.length,1)>1?arguments[1]:void 0,r=T(t,new Ne(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Fe=Be.prototype,ze=function(e,t){return{get:function(){return P(this)[e]()},set:t&&function(e){return P(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(f(Fe,"href",ze("serialize","setHref")),f(Fe,"origin",ze("getOrigin")),f(Fe,"protocol",ze("getProtocol","setProtocol")),f(Fe,"username",ze("getUsername","setUsername")),f(Fe,"password",ze("getPassword","setPassword")),f(Fe,"host",ze("getHost","setHost")),f(Fe,"hostname",ze("getHostname","setHostname")),f(Fe,"port",ze("getPort","setPort")),f(Fe,"pathname",ze("getPathname","setPathname")),f(Fe,"search",ze("getSearch","setSearch")),f(Fe,"searchParams",ze("getSearchParams")),f(Fe,"hash",ze("getHash","setHash"))),c(Fe,"toJSON",(function(){return P(this).serialize()}),{enumerable:!0}),c(Fe,"toString",(function(){return P(this).serialize()}),{enumerable:!0}),R){var He=R.createObjectURL,Ue=R.revokeObjectURL;He&&c(Be,"createObjectURL",l(He,R)),Ue&&c(Be,"revokeObjectURL",l(Ue,R))}w(Be,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Be})},50909:(e,t,n)=>{n(51834)},65268:(e,t,n)=>{"use strict";var r=n(94427),i=n(85563);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},26124:(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},41303:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(26124),a=n(68377);i(n(68377),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,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},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},68377:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=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])},r(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}r(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,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);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(26124),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 i(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 u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=c;var f=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=f;var h=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return i(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=h;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(h);t.CDATA=p;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(h);t.Document=d;var v=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return i(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,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(h);function m(e){return(0,a.isTag)(e)}function g(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 u(e.data);else if(b(e))n=new c(e.data);else if(m(e)){var r=t?S(e.children):[],i=new v(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(g(e)){r=t?S(e.children):[];var a=new p(r);r.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){r=t?S(e.children):[];var s=new d(r);r.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 f(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 S(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=v,t.isTag=m,t.isCDATA=g,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},89483:(e,t,n)=>{"use strict";var r=n(35837),i={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 r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(d){var i=p(n);i&&i!==d&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=l(t),v=l(n),m=0;m<a.length;++m){var g=a[m];if(!(o[g]||r&&r[g]||v&&v[g]||s&&s[g])){var y=h(n,g);try{u(t,g,y)}catch(e){}}}}return t}},6891:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=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,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=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 r:switch(e=e.type){case c:case f:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case m:case v:case l:return e;default:return t}}case i:return t}}}function E(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=o,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||x(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===s||e===a||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=x},35837:(e,t,n)=>{"use strict";e.exports=n(6891)},76949:(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"]},37028:e=>{var t="html",n="head",r="body",i=/<([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`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var c=new u;s=l=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),c.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var f=document.implementation.createHTMLDocument();s=function(e,t){return t?(f.documentElement.querySelector(t).innerHTML=e,f):(f.documentElement.innerHTML=e,f)}}var h,p="object"==typeof document?document.createElement("template"):{};p.content&&(h=function(e){return p.innerHTML=e,p.content.childNodes}),e.exports=function(e){var u,c,f,p,d=e.match(i);switch(d&&d[1]&&(u=d[1].toLowerCase()),u){case t:return c=l(e),o.test(e)||(f=c.querySelector(n))&&f.parentNode.removeChild(f),a.test(e)||(f=c.querySelector(r))&&f.parentNode.removeChild(f),c.querySelectorAll(t);case n:case r:return p=(c=s(e)).querySelectorAll(u),a.test(e)&&o.test(e)?p[0].parentNode.childNodes:p;default:return h?h(e):(f=s(e,r).querySelector(r)).childNodes}}},17233:(e,t,n)=>{var r=n(37028),i=n(98794).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]),i(r(e),null,t)}},98794:(e,t,n)=>{for(var r,i=n(41303),o=n(76949).CASE_SENSITIVE_TAG_NAMES,a=i.Comment,s=i.Element,l=i.ProcessingInstruction,u=i.Text,c={},f=0,h=o.length;f<h;f++)r=o[f],c[r.toLowerCase()]=r;function p(e){for(var t,n={},r=0,i=e.length;r<i;r++)n[(t=e[r]).name]=t.value;return n}function d(e){var t=function(e){return c[e]}(e=e.toLowerCase());return t||e}t.formatAttributes=p,t.formatDOM=function e(t,n,r){n=n||null;for(var i,o=[],c=0,f=t.length;c<f;c++){var h,v=t[c];switch(v.nodeType){case 1:i=d(v.nodeName),(h=new s(i,p(v.attributes))).children=e("template"===i?v.content.childNodes:v.childNodes,h);break;case 3:h=new u(v.nodeValue);break;case 8:h=new a(v.nodeValue);break;default:continue}var m=o[c-1]||null;m&&(m.next=h),h.parent=n,h.prev=m,h.next=null,o.push(h)}return r&&((h=new l(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=o[0]||null,h.parent=n,o.unshift(h),o[1]&&(o[1].prev=o[0])),o}},57626:(e,t,n)=>{var r=n(41303),i=n(17233),o=n(56414),a=n(54916);i="function"==typeof i.default?i.default:i;var s={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:a(i(e,(t=t||{}).htmlparser2||s),t)}l.domToReact=a,l.htmlToDOM=i,l.attributesToProps=o,l.Comment=r.Comment,l.Element=r.Element,l.ProcessingInstruction=r.ProcessingInstruction,l.Text=r.Text,e.exports=l,l.default=l},56414:(e,t,n)=>{var r=n(74762),i=n(27241),o=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,u,c,f,h,p={},d=(e=e||{}).type&&s[e.type];for(n in e)if(c=e[n],r.isCustomAttribute(n))p[n]=c;else if(f=l(u=n.toLowerCase()))switch(h=r.getPropertyInfo(f),-1===o.indexOf(f)||-1===a.indexOf(t)||d||(f=l("default"+u)),p[f]=c,h&&h.type){case r.BOOLEAN:p[f]=!0;break;case r.OVERLOADED_BOOLEAN:""===c&&(p[f]=!0)}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(p[n]=c);return i.setStyleProp(e.style,p),p}},54916:(e,t,n)=>{var r=n(84639),i=n(56414),o=n(27241),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,u,c,f,h,p=(n=n||{}).library||r,d=p.cloneElement,v=p.createElement,m=p.isValidElement,g=[],y="function"==typeof n.replace,b=n.trim,w=0,x=t.length;w<x;w++)if(o=t[w],y&&m(c=n.replace(o)))x>1&&(c=d(c,{key:c.key||w})),g.push(c);else if("text"!==o.type){switch(f=o.attribs,l(o)?a(f.style,f):f&&(f=i(f,o.name)),h=null,o.type){case"script":case"style":o.children[0]&&(f.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?f.defaultValue=o.children[0].data:o.children&&o.children.length&&(h=e(o.children,n));break;default:continue}x>1&&(f.key=w),g.push(v(o.name,f,h))}else{if((u=!o.data.trim().length)&&o.parent&&!s(o.parent))continue;if(b&&u)continue;g.push(o.data)}return 1===g.length?g[0]:g}},27241:(e,t,n)=>{var r=n(84639),i=n(36764).default;var o={reactCompat:!0};var a=r.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,r,i="function"==typeof t,o={},a={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?a[o[0]]=o[1]:"string"==typeof r&&(a[r]=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=i(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},8751:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(l,u):u}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var f=1,h=1;function p(e){var t=e.match(n);t&&(f+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function d(){var e={line:f,column:h};return function(t){return t.position=new v(e),b(),t}}function v(e){this.start=e,this.end={line:f,column:h},this.source=l.source}v.prototype.content=e;var m=[];function g(t){var n=new Error(l.source+":"+f+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=f,n.column=h,n.source=e,!l.silent)throw n;m.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){y(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return h+=2,p(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}function E(){var e=d(),n=y(i);if(n){if(x(),!y(o))return g("property missing ':'");var r=y(a),l=e({type:"declaration",property:c(n[0].replace(t,u)),value:r?c(r[0].replace(t,u)):u});return y(s),l}}return b(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},58821:(e,t,n)=>{var r="Expected a function",i=NaN,o="[object Symbol]",a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,f="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,p=f||h||Function("return this")(),d=Object.prototype.toString,v=Math.max,m=Math.min,g=function(){return p.Date.now()};function y(e,t,n){var i,o,a,s,l,u,c=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new TypeError(r);function d(t){var n=i,r=o;return i=o=void 0,c=t,s=e.apply(r,n)}function y(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-c>=a}function x(){var e=g();if(y(e))return E(e);l=setTimeout(x,function(e){var n=t-(e-u);return h?m(n,a-(e-c)):n}(e))}function E(e){return l=void 0,p&&i?d(e):(i=o=void 0,s)}function S(){var e=g(),n=y(e);if(i=arguments,o=this,u=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(x,t),f?d(e):s}(u);if(h)return l=setTimeout(x,t),d(u)}return void 0===l&&(l=setTimeout(x,t)),s}return t=w(t)||0,b(n)&&(f=!!n.leading,a=(h="maxWait"in n)?v(w(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),S.cancel=function(){void 0!==l&&clearTimeout(l),c=0,i=u=o=l=void 0},S.flush=function(){return void 0===l?s:E(g())},S}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)&&d.call(e)==o}(e))return i;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||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?i:+e}e.exports=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(r);return b(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),y(e,t,{leading:i,maxWait:t,trailing:o})}},61054:function(e,t){var n,r,i,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"},r=Object.prototype.toString,i=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[r.call(e)]||"object"},e.isPlainObject=function(t){if(!t||"object"!==s.type(t)||t.nodeType||e.isWindow(t))return!1;if(t.constructor&&!i.call(t,"constructor")&&!i.call(t.constructor.prototype,"isPrototypeOf"))return!1;var n;for(var r in t)n=r;return void 0===n||i.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,r=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return Math.max(n,1)/r}return 1},e.pixelDensityRatio=e.getCurrentPixelDensityRatio()}(s),function(e){e.extend=function(){var t,n,r,i,o,a,l=arguments[0]||{},u=arguments.length,c=!1,f=1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},f=2),"object"==typeof l||s.isFunction(l)||(l={}),u===f&&(l=this,--f);f<u;f++)if(null!==(t=arguments[f])||void 0!==t)for(n in t){var h=Object.getOwnPropertyDescriptor(t,n);void 0!==h?h.get||h.set?Object.defineProperty(l,n,h):l!==(i=h.value)&&(c&&i&&(s.isPlainObject(i)||(o=s.isArray(i)))?(r=l[n],o?(o=!1,a=r&&s.isArray(r)?r:[]):a=r&&s.isPlainObject(r)?r:{},l[n]=s.extend(c,a,i)):void 0!==i&&(l[n]=i)):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,r,o=new e.Point;for(r=i(t=e.getElement(t),n="fixed"===e.getElementStyle(t).position);r;)o.x+=t.offsetLeft,o.y+=t.offsetTop,n&&(o=o.plus(e.getPageScroll())),r=i(t=r,n="fixed"===e.getElementStyle(t).position);return o},getElementOffset:function(t){var n,r,i=(t=e.getElement(t))&&t.ownerDocument,o={top:0,left:0};return i?(n=i.documentElement,void 0!==t.getBoundingClientRect&&(o=t.getBoundingClientRect()),r=i===i.window?i:9===i.nodeType&&(i.defaultView||i.parentWindow),new e.Point(o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0),o.top+(r.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 r=document.createElement("div").style,i=null;if(void 0!==r[t])i=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!==r[l]){i=l;break}}return n[t]=i,i},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 r=e.getElementOffset(t),i=e.getElementSize(t);return n.x>=r.x&&n.x<r.x+i.x&&n.y<r.y+i.y&&n.y>=r.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 r=e.getPageScroll();if(r.x!==n.x&&r.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,(r=e.getPageScroll()).x!==n.x&&r.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,r){var i;t=e.getElement(t),r&&!e.Browser.alpha&&(n=Math.round(n)),e.Browser.opacity?t.style.opacity=n<1?n:"":n<1?(i="alpha(opacity="+Math.round(100*n)+")",t.style.filter=i):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 r,i,o=n||0;if(!e)throw new TypeError;if(0===(i=e.length)||o>=i)return-1;for(o<0&&(o=i-Math.abs(o)),r=o;r<i;r++)if(e[r]===t)return r;return-1},this.indexOf(e,t,n)},removeClass:function(t,n){var r,i,o=[];for(r=(t=e.getElement(t)).className.split(/\s+/),i=0;i<r.length;i++)r[i]&&r[i]!==n&&o.push(r[i]);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,r,i){i=e.normalizeEventListenerOptions(i),(t=e.getElement(t)).addEventListener(n,r,i)};if(document.documentElement.attachEvent&&document.attachEvent)return function(t,n,r){(t=e.getElement(t)).attachEvent("on"+n,r)};throw new Error("No known event model.")}(),removeEvent:function(){if(e.supportsRemoveEventListener)return function(t,n,r,i){i=e.normalizeEventListenerOptions(i),(t=e.getElement(t)).removeEventListener(n,r,i)};if(document.documentElement.detachEvent&&document.detachEvent)return function(t,n,r){(t=e.getElement(t)).detachEvent("on"+n,r)};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,r=[];for(n=2;n<arguments.length;n++)r.push(arguments[n]);return function(){var n,i=r.concat([]);for(n=0;n<arguments.length;n++)i.push(arguments[n]);return t.apply(e,i)}},getUrlParameter:function(e){var t=r[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,r){var i,o,a,s;e.isPlainObject(t)&&(n=t.success,r=t.error,i=t.withCredentials,o=t.headers,a=t.responseType||null,s=t.postData||null,t=t.url);var l=e.getUrlProtocol(t),u=e.createAjaxRequest("file:"===l);if(!e.isFunction(n))throw new Error("makeAjaxRequest requires a success callback");u.onreadystatechange=function(){4===u.readyState&&(u.onreadystatechange=function(){},u.status>=200&&u.status<300||0===u.status&&"http:"!==l&&"https:"!==l?n(u):e.isFunction(r)?r(u):e.console.error("AJAX request returned %d: %s",u.status,t))};var c=s?"POST":"GET";try{if(u.open(c,t,!0),a&&(u.responseType=a),o)for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&o[f]&&u.setRequestHeader(f,o[f]);i&&(u.withCredentials=!0),u.send(s)}catch(t){e.console.error("%s while making AJAX request: %s",t.name,t.message),u.onreadystatechange=function(){},e.isFunction(r)&&r(u,t)}return u},jsonp:function(t){var n,r=t.url,i=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",u=t.callback;r=r.replace(/(=)\?(&|$)|\?\?/i,s),r+=(/\?/.test(r)?"&":"?")+l+"="+o,window[o]=function(t){if(a)window[o]=a;else try{delete window[o]}catch(e){}u&&e.isFunction(u)&&u(t)},n=document.createElement("script"),void 0===t.async&&!1===t.async||(n.async="async"),t.scriptCharset&&(n.charset=t.scriptCharset),n.src=r,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,i&&n.parentNode&&i.removeChild(n),n=void 0)},i.insertBefore(n,i.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},r={};function i(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 i,o,a,s=window.location.search.substring(1).split("&");for(a=0;a<s.length;a++)if((o=(i=s[a]).indexOf("="))>0){var l=i.substring(0,o),u=i.substring(o+1);try{r[l]=decodeURIComponent(u)}catch(t){e.console.error("Ignoring malformed URL parameter: %s=%s",l,u)}}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,r=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.msCancelAnimationFrame;if(n&&r)e.requestAnimationFrame=function(){return n.apply(t,arguments)},e.cancelAnimationFrame=function(){return r.apply(t,arguments)};else{var i,o=[],a=[],s=0;e.requestAnimationFrame=function(t){return o.push([++s,t]),i||(i=setInterval((function(){if(o.length){var t=e.now(),n=a;for(a=o,o=n;a.length;)a.shift()[1](t)}else clearInterval(i),i=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),r=[],void 0===(i="function"==typeof(n=function(){return s})?n.apply(t,r):n)||(e.exports=i),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,r){var i=this;r=r||1;var o=0;this.addHandler(e,(function n(a){++o===r&&i.removeHandler(e,n),t(a)}),n)},addHandler:function(t,n,r){var i=this.events[t];i||(this.events[t]=i=[]),n&&e.isFunction(n)&&(i[i.length]={handler:n,userData:r||null})},removeHandler:function(t,n){var r,i=this.events[t],o=[];if(i&&e.isArray(i)){for(r=0;r<i.length;r++)i[r].handler!==n&&o.push(i[r]);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 r,i=t.length;for(r=0;r<i;r++)t[r]&&(n.eventSource=e,n.userData=t[r].userData,t[r].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(r){t.push(this);var i=arguments;e.isPlainObject(r)||(r={element:i[0],clickTimeThreshold:i[1],clickDistThreshold:i[2]}),this.hash=Math.random(),this.element=e.getElement(r.element),this.clickTimeThreshold=r.clickTimeThreshold||e.DEFAULT_SETTINGS.clickTimeThreshold,this.clickDistThreshold=r.clickDistThreshold||e.DEFAULT_SETTINGS.clickDistThreshold,this.dblClickTimeThreshold=r.dblClickTimeThreshold||e.DEFAULT_SETTINGS.dblClickTimeThreshold,this.dblClickDistThreshold=r.dblClickDistThreshold||e.DEFAULT_SETTINGS.dblClickDistThreshold,this.userData=r.userData||null,this.stopDelay=r.stopDelay||50,this.preProcessEventHandler=r.preProcessEventHandler||null,this.contextMenuHandler=r.contextMenuHandler||null,this.enterHandler=r.enterHandler||null,this.leaveHandler=r.leaveHandler||null,this.exitHandler=r.exitHandler||null,this.overHandler=r.overHandler||null,this.outHandler=r.outHandler||null,this.pressHandler=r.pressHandler||null,this.nonPrimaryPressHandler=r.nonPrimaryPressHandler||null,this.releaseHandler=r.releaseHandler||null,this.nonPrimaryReleaseHandler=r.nonPrimaryReleaseHandler||null,this.moveHandler=r.moveHandler||null,this.scrollHandler=r.scrollHandler||null,this.clickHandler=r.clickHandler||null,this.dblClickHandler=r.dblClickHandler||null,this.dragHandler=r.dragHandler||null,this.dragEndHandler=r.dragEndHandler||null,this.pinchHandler=r.pinchHandler||null,this.stopHandler=r.stopHandler||null,this.keyDownHandler=r.keyDownHandler||null,this.keyUpHandler=r.keyUpHandler||null,this.keyHandler=r.keyHandler||null,this.focusHandler=r.focusHandler||null,this.blurHandler=r.blurHandler||null;var o=this;n[this.hash]={click:function(t){!function(t,n){var r={originalEvent:n,eventType:"click",pointerType:"mouse",isEmulated:!1};M(t,r),r.preventDefault&&!r.defaultPrevented&&e.cancelEvent(n);r.stopPropagation&&e.stopEvent(n)}(o,t)},dblclick:function(t){!function(t,n){var r={originalEvent:n,eventType:"dblclick",pointerType:"mouse",isEmulated:!1};M(t,r),r.preventDefault&&!r.defaultPrevented&&e.cancelEvent(n);r.stopPropagation&&e.stopEvent(n)}(o,t)},keydown:function(t){!function(t,n){var r=null,i={originalEvent:n,eventType:"keydown",pointerType:"",isEmulated:!1};M(t,i),!t.keyDownHandler||i.preventGesture||i.defaultPrevented||(r={eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefault:i.preventDefault||i.defaultPrevented,userData:t.userData},t.keyDownHandler(r));(r&&r.preventDefault||i.preventDefault&&!i.defaultPrevented)&&e.cancelEvent(n);i.stopPropagation&&e.stopEvent(n)}(o,t)},keyup:function(t){!function(t,n){var r=null,i={originalEvent:n,eventType:"keyup",pointerType:"",isEmulated:!1};M(t,i),!t.keyUpHandler||i.preventGesture||i.defaultPrevented||(r={eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefault:i.preventDefault||i.defaultPrevented,userData:t.userData},t.keyUpHandler(r));(r&&r.preventDefault||i.preventDefault&&!i.defaultPrevented)&&e.cancelEvent(n);i.stopPropagation&&e.stopEvent(n)}(o,t)},keypress:function(t){!function(t,n){var r=null,i={originalEvent:n,eventType:"keypress",pointerType:"",isEmulated:!1};M(t,i),!t.keyHandler||i.preventGesture||i.defaultPrevented||(r={eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefault:i.preventDefault||i.defaultPrevented,userData:t.userData},t.keyHandler(r));(r&&r.preventDefault||i.preventDefault&&!i.defaultPrevented)&&e.cancelEvent(n);i.stopPropagation&&e.stopEvent(n)}(o,t)},focus:function(e){!function(e,t){var n={originalEvent:t,eventType:"focus",pointerType:"",isEmulated:!1};M(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};M(e,n),e.blurHandler&&!n.preventGesture&&e.blurHandler({eventSource:e,originalEvent:t,userData:e.userData})}(o,e)},contextmenu:function(t){!function(t,n){var r=null,i={originalEvent:n,eventType:"contextmenu",pointerType:"mouse",isEmulated:!1};M(t,i),!t.contextMenuHandler||i.preventGesture||i.defaultPrevented||(r={eventSource:t,position:w(y(n),t.element),originalEvent:i.originalEvent,preventDefault:i.preventDefault||i.defaultPrevented,userData:t.userData},t.contextMenuHandler(r));(r&&r.preventDefault||i.preventDefault&&!i.defaultPrevented)&&e.cancelEvent(n);i.stopPropagation&&e.stopEvent(n)}(o,t)},wheel:function(e){!function(e,t){S(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 r={id:e.MouseTracker.mousePointerId,type:"mouse"},i={originalEvent:n,eventType:"lostpointercapture",pointerType:"mouse",isEmulated:!1};M(t,i),n.target===t.element&&L(t,r,!1);i.stopPropagation&&e.stopEvent(n)}(o,t)},mouseenter:function(e){T(o,e)},mouseleave:function(e){P(o,e)},mouseover:function(e){O(o,e)},mouseout:function(e){C(o,e)},mousedown:function(e){R(o,e)},mouseup:function(e){k(o,e)},mousemove:function(e){j(o,e)},touchstart:function(t){!function(t,n){var r,i,o,a=n.changedTouches.length,s=t.getActivePointersListByType("touch");r=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(M(t,l),i=0;i<a;i++)N(t,l,o={id:n.changedTouches[i].identifier,type:"touch",isPrimary:0===s.getLength(),currentPos:y(n.changedTouches[i]),currentTime:r}),F(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 r,i,o,a=n.changedTouches.length;r=e.now();var s={originalEvent:n,eventType:"pointerup",pointerType:"touch",isEmulated:!1};for(M(t,s),i=0;i<a;i++)z(t,s,o={id:n.changedTouches[i].identifier,type:"touch",currentPos:y(n.changedTouches[i]),currentTime:r},0),L(t,o,!1),B(t,s,o);s.preventDefault&&!s.defaultPrevented&&e.cancelEvent(n);s.stopPropagation&&e.stopEvent(n)}(o,t)},touchmove:function(t){!function(t,n){var r,i,o=n.changedTouches.length;r=e.now();var a={originalEvent:n,eventType:"pointermove",pointerType:"touch",isEmulated:!1};for(M(t,a),i=0;i<o;i++)H(t,a,{id:n.changedTouches[i].identifier,type:"touch",currentPos:y(n.changedTouches[i]),currentTime:r});a.preventDefault&&!a.defaultPrevented&&e.cancelEvent(n);a.stopPropagation&&e.stopEvent(n)}(o,t)},touchcancel:function(t){!function(t,n){var r,i=n.changedTouches.length,o={originalEvent:n,eventType:"pointercancel",pointerType:"touch",isEmulated:!1};for(M(t,o),r=0;r<i;r++)U(t,o,{id:n.changedTouches[r].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 r={originalEvent:n,eventType:"gotpointercapture",pointerType:m(n),isEmulated:!1};M(t,r),n.target===t.element&&L(t,{id:n.pointerId,type:m(n)},!0);r.stopPropagation&&e.stopEvent(n)}(o,t)},lostpointercapture:function(t){!function(t,n){var r={originalEvent:n,eventType:"lostpointercapture",pointerType:m(n),isEmulated:!1};M(t,r),n.target===t.element&&L(t,{id:n.pointerId,type:m(n)},!1);r.stopPropagation&&e.stopEvent(n)}(o,t)},pointerenter:function(e){T(o,e)},pointerleave:function(e){P(o,e)},pointerover:function(e){O(o,e)},pointerout:function(e){C(o,e)},pointerdown:function(e){R(o,e)},pointerup:function(e){k(o,e)},pointermove:function(e){j(o,e)},pointercancel:function(t){!function(t,n){var r={id:n.pointerId,type:m(n)},i={originalEvent:n,eventType:"pointercancel",pointerType:r.type,isEmulated:!1};M(t,i),U(t,i,r),i.stopPropagation&&e.stopEvent(n)}(o,t)},pointerupcaptured:function(t){!function(t,n){var r=t.getActivePointersListByType(m(n));r.getById(n.pointerId)&&_(t,n);e.stopEvent(n)}(o,t)},pointermovecaptured:function(t){!function(t,n){var r=t.getActivePointersListByType(m(n));r.getById(n.pointerId)&&I(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."),r.startDisabled||this.setTracking(!0)},e.MouseTracker.prototype={destroy:function(){var e;for(h(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 r,i,o=n[t.hash];if(!o.tracking){for(i=0;i<e.MouseTracker.subscribeEvents.length;i++)r=e.MouseTracker.subscribeEvents[i],e.addEvent(t.element,r,o[r],r===e.MouseTracker.wheelEventName&&{passive:!1,capture:!1});f(t),o.tracking=!0}}(this):h(this),this},getActivePointersListByType:function(t){var r,i,o=n[this.hash],a=o.activePointersLists.length;for(r=0;r<a;r++)if(o.activePointersLists[r].type===t)return o.activePointersLists[r];return i=new e.MouseTracker.GesturePointList(t),o.activePointersLists.push(i),i},getActivePointerCount:function(){var e,t=n[this.hash],r=t.activePointersLists.length,i=0;for(e=0;e<r;e++)i+=t.activePointersLists[e].getLength();return i},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 r,i,o,a,s,l,u=function(){try{return window.self!==window.top}catch(e){return!0}}();function c(e){try{return e.addEventListener&&e.removeEventListener}catch(e){return!1}}function f(e){var t,r,i,o,a,s=n[e.hash],l=s.activePointersLists.length;for(t=0;t<l;t++)if((i=s.activePointersLists[t]).getLength()>0){for(a=[],o=i.asArray(),r=0;r<o.length;r++)a.push(o[r]);for(r=0;r<a.length;r++)D(e,i,a[r])}for(t=0;t<l;t++)s.activePointersLists.pop();s.sentDragEvent=!1}function h(t){var r,i,o=n[t.hash];if(o.tracking){for(i=0;i<e.MouseTracker.subscribeEvents.length;i++)r=e.MouseTracker.subscribeEvents[i],e.removeEvent(t.element,r,o[r],!1);f(t),o.tracking=!1}}function p(e,t){var r=n[e.hash];if("pointerevent"===t)return{upName:"pointerup",upHandler:r.pointerupcaptured,moveName:"pointermove",moveHandler:r.pointermovecaptured};if("mouse"===t)return{upName:"pointerup",upHandler:r.pointerupcaptured,moveName:"pointermove",moveHandler:r.pointermovecaptured};if("touch"===t)return{upName:"touchend",upHandler:r.touchendcaptured,moveName:"touchmove",moveHandler:r.touchmovecaptured};throw new Error("MouseTracker.getCaptureEventParams: Unknown pointer type.")}function d(t,n){var r,i;if(e.MouseTracker.havePointerCapture)if(e.MouseTracker.havePointerEvents){if(!(i=t.getActivePointersListByType(n.type).getById(n.id))||!i.captured)return;try{t.element.releasePointerCapture(n.id)}catch(e){}}else t.element.releaseCapture();else r=p(t,e.MouseTracker.havePointerEvents?"pointerevent":n.type),u&&c(window.top)&&e.removeEvent(window.top,r.upName,r.upHandler,!0),e.removeEvent(e.MouseTracker.captureElement,r.moveName,r.moveHandler,!0),e.removeEvent(e.MouseTracker.captureElement,r.upName,r.upHandler,!0);L(t,n,!1)}function v(t){return e.MouseTracker.havePointerEvents?t.pointerId:e.MouseTracker.mousePointerId}function m(t){return e.MouseTracker.havePointerEvents?t.pointerType||(e.Browser.vendor===e.BROWSERS.IE?"mouse":""):"mouse"}function g(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 r=e.getElementOffset(n);return t.minus(r)}function x(t,n){return new e.Point((t.x+n.x)/2,(t.y+n.y)/2)}function E(t,n){var r={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?r.deltaY=-n.wheelDelta/e.DEFAULT_SETTINGS.pixelsPerWheelLine:r.deltaY=n.detail,S(t,r,n)}function S(t,n,r){var i,o,a=null;i=n.deltaY<0?1:-1,M(t,o={originalEvent:n,eventType:"wheel",pointerType:"mouse",isEmulated:n!==r}),!t.scrollHandler||o.preventGesture||o.defaultPrevented||(a={eventSource:t,pointerType:"mouse",position:b(n,t.element),scroll:i,shift:n.shiftKey,isTouchEvent:!1,originalEvent:r,preventDefault:o.preventDefault||o.defaultPrevented,userData:t.userData},t.scrollHandler(a)),o.stopPropagation&&e.stopEvent(r),(a&&a.preventDefault||o.preventDefault&&!o.defaultPrevented)&&e.cancelEvent(r)}function T(t,n){var r={id:v(n),type:m(n),isPrimary:g(n),currentPos:y(n),currentTime:e.now()},i={originalEvent:n,eventType:"pointerenter",pointerType:r.type,isEmulated:!1};M(t,i),N(t,i,r)}function P(t,n){var r={id:v(n),type:m(n),isPrimary:g(n),currentPos:y(n),currentTime:e.now()},i={originalEvent:n,eventType:"pointerleave",pointerType:r.type,isEmulated:!1};M(t,i),B(t,i,r)}function O(t,n){var r={id:v(n),type:m(n),isPrimary:g(n),currentPos:y(n),currentTime:e.now()},i={originalEvent:n,eventType:"pointerover",pointerType:r.type,isEmulated:!1};M(t,i),function(e,t,n){var r,i;r=e.getActivePointersListByType(n.type),i=r.getById(n.id),i?n=i:(n.captured=!1,n.insideElementPressed=!1);e.overHandler&&e.overHandler({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})}(t,i,r),i.preventDefault&&!i.defaultPrevented&&e.cancelEvent(n),i.stopPropagation&&e.stopEvent(n)}function C(t,n){var r={id:v(n),type:m(n),isPrimary:g(n),currentPos:y(n),currentTime:e.now()},i={originalEvent:n,eventType:"pointerout",pointerType:r.type,isEmulated:!1};M(t,i),function(e,t,n){var r,i;r=e.getActivePointersListByType(n.type),i=r.getById(n.id),i?n=i:(n.captured=!1,n.insideElementPressed=!1);e.outHandler&&e.outHandler({eventSource:e,pointerType:n.type,position:n.currentPos&&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})}(t,i,r),i.preventDefault&&!i.defaultPrevented&&e.cancelEvent(n),i.stopPropagation&&e.stopEvent(n)}function R(t,n){var r={id:v(n),type:m(n),isPrimary:g(n),currentPos:y(n),currentTime:e.now()},i=e.MouseTracker.havePointerEvents&&"touch"===r.type&&e.Browser.vendor!==e.BROWSERS.IE,o={originalEvent:n,eventType:"pointerdown",pointerType:r.type,isEmulated:!1};M(t,o),F(t,o,r,n.button),o.preventDefault&&!o.defaultPrevented&&e.cancelEvent(n),o.stopPropagation&&e.stopEvent(n),o.shouldCapture&&(i?L(t,r,!0):function(t,n){var r;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 r=p(t,e.MouseTracker.havePointerEvents?"pointerevent":n.type),u&&c(window.top)&&e.addEvent(window.top,r.upName,r.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,r.upName,r.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,r.moveName,r.moveHandler,!0);L(t,n,!0)}(t,r))}function k(e,t){_(e,t)}function _(t,n){var r,i={originalEvent:n,eventType:"pointerup",pointerType:(r={id:v(n),type:m(n),isPrimary:g(n),currentPos:y(n),currentTime:e.now()}).type,isEmulated:!1};M(t,i),z(t,i,r,n.button),i.preventDefault&&!i.defaultPrevented&&e.cancelEvent(n),i.stopPropagation&&e.stopEvent(n),i.shouldReleaseCapture&&(n.target===t.element?d(t,r):L(t,r,!1))}function j(e,t){I(e,t)}function I(t,n){var r={id:v(n),type:m(n),isPrimary:g(n),currentPos:y(n),currentTime:e.now()},i={originalEvent:n,eventType:"pointermove",pointerType:r.type,isEmulated:!1};M(t,i),H(t,i,r),i.preventDefault&&!i.defaultPrevented&&e.cancelEvent(n),i.stopPropagation&&e.stopEvent(n)}function A(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 D(t,n,r){var i,o=n.getById(r.id);return o?(o.captured&&(e.console.warn("stopTrackingPointer() called on captured pointer"),d(t,o)),n.removeContact(),i=n.removeById(r.id)):i=n.getLength(),i}function M(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,r){var i=t.getActivePointersListByType(n.type),o=i.getById(n.id);o?r&&!o.captured?(o.captured=!0,i.captureCount++):!r&&o.captured&&(o.captured=!1,i.captureCount--,i.captureCount<0&&(i.captureCount=0,e.console.warn("updatePointerCaptured() - pointsList.captureCount went negative"))):e.console.warn("updatePointerCaptured() called on untracked pointer")}function N(e,t,n){var r,i=e.getActivePointersListByType(n.type);(r=i.getById(n.id))?(r.insideElement=!0,r.lastPos=r.currentPos,r.lastTime=r.currentTime,r.currentPos=n.currentPos,r.currentTime=n.currentTime,n=r):(n.captured=!1,n.insideElementPressed=!1,n.insideElement=!0,A(i,n)),e.enterHandler&&e.enterHandler({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})}function B(e,t,n){var r,i,o=e.getActivePointersListByType(n.type);(r=o.getById(n.id))?(r.captured?(r.insideElement=!1,r.lastPos=r.currentPos,r.lastTime=r.currentTime,r.currentPos=n.currentPos,r.currentTime=n.currentTime):D(e,o,r),n=r):(n.captured=!1,n.insideElementPressed=!1),(e.leaveHandler||e.exitHandler)&&(i={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(i),e.exitHandler&&e.exitHandler(i))}function F(t,r,i,o){var a,s=n[t.hash],l=t.getActivePointersListByType(i.type);if(void 0!==r.originalEvent.buttons?l.buttons=r.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 r.shouldCapture=!1,r.shouldReleaseCapture=!1,void(!t.nonPrimaryPressHandler||r.preventGesture||r.defaultPrevented||(r.preventDefault=!0,t.nonPrimaryPressHandler({eventSource:t,pointerType:i.type,position:w(i.currentPos,t.element),button:o,buttons:l.buttons,isTouchEvent:"touch"===i.type,originalEvent:r.originalEvent,userData:t.userData})));(a=l.getById(i.id))?(a.insideElementPressed=!0,a.insideElement=!0,a.originalTarget=r.originalEvent.target,a.contactPos=i.currentPos,a.contactTime=i.currentTime,a.lastPos=a.currentPos,a.lastTime=a.currentTime,a.currentPos=i.currentPos,a.currentTime=i.currentTime,i=a):(i.captured=!1,i.insideElementPressed=!0,i.insideElement=!0,i.originalTarget=r.originalEvent.target,A(l,i)),l.addContact(),r.preventGesture||r.defaultPrevented?(r.shouldCapture=!1,r.shouldReleaseCapture=!1):(r.shouldCapture=!0,r.shouldReleaseCapture=!1,r.preventDefault=!0,(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.addPoint(t,i),1===l.contacts?t.pressHandler&&!r.preventGesture&&t.pressHandler({eventSource:t,pointerType:i.type,position:w(i.contactPos,t.element),buttons:l.buttons,isTouchEvent:"touch"===i.type,originalEvent:r.originalEvent,userData:t.userData}):2===l.contacts&&t.pinchHandler&&"touch"===i.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,r,i,o){var a,s,l,u,c=n[t.hash],f=t.getActivePointersListByType(i.type),h=!1;if(void 0!==r.originalEvent.buttons?f.buttons=r.originalEvent.buttons:0===o?f.buttons^=-2:1===o?f.buttons^=-5:2===o?f.buttons^=-3:3===o?f.buttons^=-9:4===o?f.buttons^=-17:5===o&&(f.buttons^=-33),r.shouldCapture=!1,0!==o)return r.shouldReleaseCapture=!1,void(!t.nonPrimaryReleaseHandler||r.preventGesture||r.defaultPrevented||(r.preventDefault=!0,t.nonPrimaryReleaseHandler({eventSource:t,pointerType:i.type,position:w(i.currentPos,t.element),button:o,buttons:f.buttons,isTouchEvent:"touch"===i.type,originalEvent:r.originalEvent,userData:t.userData})));(l=f.getById(i.id))?(f.removeContact(),l.captured&&(h=!0),l.lastPos=l.currentPos,l.lastTime=l.currentTime,l.currentPos=i.currentPos,l.currentTime=i.currentTime,l.insideElement||D(t,f,l),a=l.currentPos,s=l.currentTime):(i.captured=!1,i.insideElementPressed=!1,i.insideElement=!0,A(f,i),l=i),r.preventGesture||r.defaultPrevented||(h?(r.shouldReleaseCapture=!0,r.preventDefault=!0,(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.removePoint(t,l),0===f.contacts?(t.releaseHandler&&a&&t.releaseHandler({eventSource:t,pointerType:l.type,position:w(a,t.element),buttons:f.buttons,insideElementPressed:l.insideElementPressed,insideElementReleased:l.insideElement,isTouchEvent:"touch"===l.type,originalEvent:r.originalEvent,userData:t.userData}),t.dragEndHandler&&c.sentDragEvent&&t.dragEndHandler({eventSource:t,pointerType:l.type,position:w(l.currentPos,t.element),speed:l.speed,direction:l.direction,shift:r.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:r.originalEvent,userData:t.userData}),c.sentDragEvent=!1,(t.clickHandler||t.dblClickHandler)&&l.insideElement&&(u=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:u,shift:r.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:r.originalEvent,originalTarget:l.originalTarget,userData:t.userData}),t.dblClickHandler&&u&&(f.clicks++,1===f.clicks?(c.lastClickPos=a,c.dblClickTimeOut=setTimeout((function(){f.clicks=0}),t.dblClickTimeThreshold)):2===f.clicks&&(clearTimeout(c.dblClickTimeOut),f.clicks=0,c.lastClickPos.distanceTo(a)<=t.dblClickDistThreshold&&t.dblClickHandler({eventSource:t,pointerType:l.type,position:w(l.currentPos,t.element),shift:r.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:r.originalEvent,userData:t.userData}),c.lastClickPos=null)))):2===f.contacts&&t.pinchHandler&&"touch"===l.type&&(c.pinchGPoints=f.asArray(),c.lastPinchDist=c.currentPinchDist=c.pinchGPoints[0].currentPos.distanceTo(c.pinchGPoints[1].currentPos),c.lastPinchCenter=c.currentPinchCenter=x(c.pinchGPoints[0].currentPos,c.pinchGPoints[1].currentPos))):(r.shouldReleaseCapture=!1,t.releaseHandler&&a&&(t.releaseHandler({eventSource:t,pointerType:l.type,position:w(a,t.element),buttons:f.buttons,insideElementPressed:l.insideElementPressed,insideElementReleased:l.insideElement,isTouchEvent:"touch"===l.type,originalEvent:r.originalEvent,userData:t.userData}),r.preventDefault=!0)))}function H(e,t,r){var i,o,a,s=n[e.hash],l=e.getActivePointersListByType(r.type);void 0!==t.originalEvent.buttons&&(l.buttons=t.originalEvent.buttons),(i=l.getById(r.id))&&(i.lastPos=i.currentPos,i.lastTime=i.currentTime,i.currentPos=r.currentPos,i.currentTime=r.currentTime,t.shouldCapture=!1,t.shouldReleaseCapture=!1,e.stopHandler&&"mouse"===r.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,r.type)}),e.stopDelay)),0===l.contacts?e.moveHandler&&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}):1===l.contacts?(e.moveHandler&&(i=l.asArray()[0],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})),!e.dragHandler||t.preventGesture||t.defaultPrevented||(a=(i=l.asArray()[0]).currentPos.minus(i.lastPos),e.dragHandler({eventSource:e,pointerType:i.type,position:w(i.currentPos,e.element),buttons:l.buttons,delta:a,speed:i.speed,direction:i.direction,shift:t.originalEvent.shiftKey,isTouchEvent:"touch"===i.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"!==r.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 r,i=e.getActivePointersListByType(n.type);(r=i.getById(n.id))&&D(e,i,r)}e.MouseTracker.gesturePointVelocityTracker=(r=[],i=0,o=0,a=function(e,t){return e.hash.toString()+t.type+t.id.toString()},s=function(){var t,n,i,a,s,l,u=r.length,c=e.now();for(a=c-o,o=c,t=0;t<u;t++)(i=(n=r[t]).gPoint).direction=Math.atan2(i.currentPos.y-n.lastPos.y,i.currentPos.x-n.lastPos.x),s=n.lastPos.distanceTo(i.currentPos),n.lastPos=i.currentPos,l=1e3*s/(a+1),i.speed=.75*l+.25*i.speed},{addPoint:function(t,n){var l=a(t,n);r.push({guid:l,gPoint:n,lastPos:n.currentPos}),1===r.length&&(o=e.now(),i=window.setInterval(s,50))},removePoint:function(e,t){var n,o=a(e,t),s=r.length;for(n=0;n<s;n++)if(r[n].guid===o){r.splice(n,1),0==--s&&window.clearInterval(i);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,r){var i=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=r,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):i.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,r=e.controls;for(n=r.length-1;n>=0;n--)if(r[n].element===t)return n;return-1}e.ControlDock=function(t){var n,r,i=["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%"),r=0;r<i.length;r++)n=i[r],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,r){var i=null;if(!(t(this,n=e.getElement(n))>=0)){switch(r.anchor){case e.ControlAnchor.TOP_RIGHT:i=this.controls.topright,n.style.position="relative",n.style.paddingRight="0px",n.style.paddingTop="0px";break;case e.ControlAnchor.BOTTOM_RIGHT:i=this.controls.bottomright,n.style.position="relative",n.style.paddingRight="0px",n.style.paddingBottom="0px";break;case e.ControlAnchor.BOTTOM_LEFT:i=this.controls.bottomleft,n.style.position="relative",n.style.paddingLeft="0px",n.style.paddingBottom="0px";break;case e.ControlAnchor.TOP_LEFT:i=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:i=this.container,n.style.margin="0px",n.style.padding="0px"}this.controls.push(new e.Control(n,r,i)),n.style.display="inline-block"}},removeControl:function(n){var r=t(this,n=e.getElement(n));return r>=0&&(this.controls[r].destroy(),this.controls.splice(r,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 r(t){return t=e.getElement(t),new e.Point(0===t.clientWidth?1:t.clientWidth,0===t.clientHeight?1:t.clientHeight)}function i(t,n){if(n instanceof e.Overlay)return n;var r=null;if(n.element)r=e.getElement(n.element);else{var i=n.id?n.id:"openseadragon-overlay-"+Math.floor(1e7*Math.random());(r=e.getElement(n.id))||((r=document.createElement("a")).href="#/overlay/"+i),r.id=i,e.addClass(r,n.className?n.className:"openseadragon-overlay")}var o=n.location,a=n.width,s=n.height;if(!o){var l=n.x,u=n.y;if(void 0!==n.px){var c=t.viewport.imageToViewportRectangle(new e.Rect(n.px,n.py,a||0,s||0));l=c.x,u=c.y,a=void 0!==a?c.width:void 0,s=void 0!==s?c.height:void 0}o=new e.Point(l,u)}var f=n.placement;return f&&"string"===e.type(f)&&(f=e.Placement[n.placement.toUpperCase()]),new e.Overlay({element:r,location:o,placement:f,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,r;if(t.controlsShouldFade){for(n=1-(e.now()-t.controlsFadeBeginTime)/t.controlsFadeLength,n=Math.min(1,n),n=Math.max(0,n),r=t.controls.length-1;r>=0;r--)t.controls[r].autoFade&&t.controls[r].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 u(e){var t;for(e.controlsShouldFade=!1,t=e.controls.length-1;t>=0;t--)e.controls[t].setOpacity(1)}function c(){u(this)}function f(){l(this)}function h(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 p(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 d(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 v(n){var r;document.activeElement===this.canvas||this.canvas.focus(),this.viewport.flipped&&(n.position.x=this.viewport.getContainerSize().x-n.position.x);var i={tracker:n.eventSource,position:n.position,quick:n.quick,shift:n.shift,originalEvent:n.originalEvent,originalTarget:n.originalTarget,preventDefaultAction:!1};this.raiseEvent("canvas-click",i),!i.preventDefaultAction&&this.viewport&&n.quick&&(!0===(r=this.gestureSettingsByDeviceType(n.pointerType)).clickToZoom&&(this.viewport.zoomBy(n.shift?1/this.zoomPerClick:this.zoomPerClick,r.zoomToRefPoint?this.viewport.pointFromPixel(n.position,!0):null),this.viewport.applyConstraints()),r.dblClickDragToZoom&&(!0===t[this.hash].draggingToZoom?(t[this.hash].lastClickTime=null,t[this.hash].draggingToZoom=!1):t[this.hash].lastClickTime=e.now()))}function m(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 g(e){var n,r={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",r),n=this.gestureSettingsByDeviceType(e.pointerType),!r.preventDefaultAction&&this.viewport)if(n.dblClickDragToZoom&&t[this.hash].draggingToZoom){var i=Math.pow(this.zoomPerDblClickDrag,e.delta.y/50);this.viewport.zoomBy(i)}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 r,i={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",i),r=this.gestureSettingsByDeviceType(n.pointerType),!i.preventDefaultAction&&this.viewport){if(!t[this.hash].draggingToZoom&&r.flickEnabled&&n.speed>=r.flickMinSpeed){var o=0;this.panHorizontal&&(o=r.flickMomentum*n.speed*Math.cos(n.direction));var a=0;this.panVertical&&(a=r.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()}r.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 r=t[this.hash].lastClickTime,i=e.now();if(null===r)return;i-r<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 S(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 T(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 P(e){var t,n,r,i={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",i),this.viewport&&(!(t=this.gestureSettingsByDeviceType(e.pointerType)).pinchToZoom||i.preventDefaultPanAction&&i.preventDefaultZoomAction||(n=this.viewport.pointFromPixel(e.center,!0),t.zoomToRefPoint&&!i.preventDefaultPanAction&&(r=this.viewport.pointFromPixel(e.lastCenter,!0).minus(n),this.panHorizontal||(r.x=0),this.panVertical||(r.y=0),this.viewport.panBy(r,!0)),i.preventDefaultZoomAction||this.viewport.zoomBy(e.distance/e.lastDistance,n,!0),this.viewport.applyConstraints()),t.pinchRotate&&!i.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 O(t){var n,r,i,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),(r=this.gestureSettingsByDeviceType(t.pointerType)).scrollToZoom&&(i=Math.pow(this.zoomPerScroll,t.scroll),this.viewport.zoomBy(i,r.zoomToRefPoint?this.viewport.pointFromPixel(t.position,!0):null),this.viewport.applyConstraints())),t.preventDefault=n.preventDefault):t.preventDefault=!0}function C(e){t[this.hash].mouseInside=!0,u(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 R(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 k(n){!function(n){if(n._opening||!t[n.hash])return;if(n.autoResize||t[n.hash].forceResize){var i;if(n._autoResizePolling){i=r(n.container);var o=t[n.hash].prevContainerSize;i.equals(o)||(t[n.hash].needsResize=!0)}t[n.hash].needsResize&&function(n,r){var i,o=n.viewport,a=o.getZoom(),s=o.getCenter();if(o.resize(r,n.preserveImageSizeOnResize),o.panTo(s,!0),n.preserveImageSizeOnResize)i=t[n.hash].prevContainerSize.x/r.x;else{var l=new e.Point(0,0),u=new e.Point(t[n.hash].prevContainerSize.x,t[n.hash].prevContainerSize.y).distanceTo(l);i=new e.Point(r.x,r.y).distanceTo(l)/u*t[n.hash].prevContainerSize.x/r.x}o.zoomTo(a*i,null,!0),t[n.hash].prevContainerSize=r,t[n.hash].forceRedraw=!0,t[n.hash].needsResize=!1,t[n.hash].forceResize=!1}(n,i||r(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 c=t[n.hash].animating;!c&&s&&(n.raiseEvent("animation-start"),u(n));var f=c&&!s;f&&(t[n.hash].animating=!1);(s||f||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"));f&&(n.raiseEvent("animation-finish"),t[n.hash].mouseInside||l(n));t[n.hash].animating=s}(n),n.isOpen()?n._updateRequestId=a(n,k):n._updateRequestId=!1}function _(e,t){return e?e+t:t}function j(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=this.zoomPerSecond,t[this.hash].zooming=!0,D(this)}function I(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=1/this.zoomPerSecond,t[this.hash].zooming=!0,D(this)}function A(){t[this.hash].zooming=!1}function D(t){e.requestAnimationFrame(e.delegate(t,M))}function M(){var n,r,i;t[this.hash].zooming&&this.viewport&&(r=(n=e.now())-t[this.hash].lastZoomTime,i=Math.pow(t[this.hash].zoomFactor,r/1e3),this.viewport.zoomBy(i),this.viewport.applyConstraints(),t[this.hash].lastZoomTime=n,D(this))}function L(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(this.zoomPerClick/1),this.viewport.applyConstraints())}function N(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(1/this.zoomPerClick),this.viewport.applyConstraints())}function B(){this.buttonGroup&&(this.buttonGroup.emulateEnter(),this.buttonGroup.emulateLeave())}function F(){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(i){var o,s,u=arguments,c=this;if(e.isPlainObject(i)||(i={id:u[0],xmlPath:u.length>1?u[1]:void 0,prefixUrl:u.length>2?u[2]:void 0,controls:u.length>3?u[3]:void 0,overlays:u.length>4?u[4]:void 0}),i.config&&(e.extend(!0,i,i.config),delete i.config),e.extend(!0,this,{id:i.id,hash:i.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,i),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);c._showMessage(n)})),e.ControlDock.call(this,i),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),""!==i.tabIndex&&(this.canvas.tabIndex=void 0===i.tabIndex?0:i.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,h),keyDownHandler:e.delegate(this,p),keyHandler:e.delegate(this,d),clickHandler:e.delegate(this,v),dblClickHandler:e.delegate(this,m),dragHandler:e.delegate(this,g),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,S),nonPrimaryReleaseHandler:e.delegate(this,T),scrollHandler:e.delegate(this,O),pinchHandler:e.delegate(this,P)}),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,C),leaveHandler:e.delegate(this,R)}),this.toolbar&&(this.toolbar=new e.ControlDock({element:this.toolbar})),this.bindStandardControls(),t[this.hash].prevContainerSize=r(this.container),window.ResizeObserver?(this._autoResizePolling=!1,this._resizeObserver=new ResizeObserver((function(){t[c.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){c.source=c.world.getItemAt(0).source,t[c.hash].forceRedraw=!0,c._updateRequestId||(c._updateRequestId=a(c,k))})),this.world.addHandler("remove-item",(function(e){c.world.getItemCount()?c.source=c.world.getItemAt(0).source:c.source=null,t[c.hash].forceRedraw=!0})),this.world.addHandler("metrics-change",(function(e){c.viewport&&c.viewport._setContentBounds(c.world.getHomeBounds(),c.world.getContentFactor())})),this.world.addHandler("item-index-change",(function(e){c.source=c.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:i.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(c)})),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 r=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,u=function(){if(s+l===a)if(s){!r._firstOpen&&r.preserveViewport||(r.viewport.goHome(!0),r.viewport.update()),r._firstOpen=!1;var e=t[0];if(e.tileSource&&(e=e.tileSource),r.overlays&&!r.preserveOverlays)for(var n=0;n<r.overlays.length;n++)r.currentOverlays[n]=i(r,r.overlays[n]);r._drawOverlays(),r._opening=!1,r.raiseEvent("open",{source:e})}else r._opening=!1,r.raiseEvent("open-failed",o)},c=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 i=0;i<t.tileSource.overlays.length;i++)r.addOverlay(t.tileSource.overlays[i]);n&&n(e),u()};var i=t.error;t.error=function(e){l++,o||(o=e),i&&i(e),u()},r.addTiledImage(t)},f=0;f<t.length;f++)c(t[f]);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?u(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 r,i,o=document.body,a=o.style,s=document.documentElement.style,l=this;if(n===this.isFullPage())return this;var u={fullPage:n,preventDefaultAction:!1};if(this.raiseEvent("pre-full-page",u),u.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,r=o.childNodes.length,i=0;i<r;i++)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,C)({})}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),r=this.previousBody.length,i=0;i<r;i++)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 c=0;e.requestAnimationFrame((function t(){e.setPageScroll(l.pageScroll);var n=e.getPageScroll();++c<10&&(n.x!==l.pageScroll.x||n.y!==l.pageScroll.y)&&e.requestAnimationFrame(t)})),t[this.hash].fullPage=!1,e.delegate(this,R)({})}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 r={fullScreen:t,preventDefaultAction:!1};if(this.raiseEvent("pre-full-screen",r),r.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 i=function t(){var r=e.isFullScreen();r||(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:r})};e.addEvent(document,e.fullScreenEventName,i),e.addEvent(document,e.fullScreenErrorEventName,i),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 r={options:t};function i(e){for(var i=0;i<n._loadQueue.length;i++)if(n._loadQueue[i]===r){n._loadQueue.splice(i,1);break}0===n._loadQueue.length&&o(r),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,r,i;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)}r=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&&(i=e.extend({},t.options,{replace:!1,originalTiledImage:r,tileSource:t.tileSource}),n.navigator.addTiledImage(i)),n.world.addItem(r,{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:r})}}e.isArray(t.tileSource)?setTimeout((function(){i({message:"[Viewer.addTiledImage] Sequences can not be added; add them one at a time instead.",source:t.tileSource,options:t})})):(this._loadQueue.push(r),function(t,n,r,i,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?i(e):(e.addHandler("ready",(function(){i(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!==r.crossOriginPolicy?r.crossOriginPolicy:t.crossOriginPolicy,ajaxWithCredentials:t.ajaxWithCredentials,ajaxHeaders:r.ajaxHeaders?r.ajaxHeaders:t.ajaxHeaders,splitHashDataForPost:t.splitHashDataForPost,useCanvas:t.useCanvas,success:function(e){i(e.tileSource)}})).addHandler("open-failed",(function(e){o(e)}));else if(e.isPlainObject(n)||n.nodeType)if(void 0!==n.crossOriginPolicy||void 0===r.crossOriginPolicy&&void 0===t.crossOriginPolicy||(n.crossOriginPolicy=void 0!==r.crossOriginPolicy?r.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,i(s)}else{var u=e.TileSource.determineType(a,n);if(!u)return void o({message:"Unable to load TileSource",source:n});var c=u.prototype.configure.apply(a,[n]);l(new u(c),n)}else l(n,n)}))}(this,t.tileSource,t,(function(e){r.tileSource=e,a()}),(function(e){e.options=t,i(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 r=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(r),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,c),n=e.delegate(this,f),r=e.delegate(this,this.goToNextPage),i=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:_(this.prefixUrl,o.previous.REST),srcGroup:_(this.prefixUrl,o.previous.GROUP),srcHover:_(this.prefixUrl,o.previous.HOVER),srcDown:_(this.prefixUrl,o.previous.DOWN),onRelease:i,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:_(this.prefixUrl,o.next.REST),srcGroup:_(this.prefixUrl,o.next.GROUP),srcHover:_(this.prefixUrl,o.next.HOVER),srcDown:_(this.prefixUrl,o.next.DOWN),onRelease:r,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,j),n=e.delegate(this,A),r=e.delegate(this,L),i=e.delegate(this,I),o=e.delegate(this,N),a=e.delegate(this,F),s=e.delegate(this,z),l=e.delegate(this,H),u=e.delegate(this,U),h=e.delegate(this,V),p=e.delegate(this,c),d=e.delegate(this,f),v=this.navImages,m=[],g=!0;return this.showNavigationControl&&((this.zoomInButton||this.zoomOutButton||this.homeButton||this.fullPageButton||this.rotateLeftButton||this.rotateRightButton||this.flipButton)&&(g=!1),this.showZoomControl&&(m.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:_(this.prefixUrl,v.zoomIn.REST),srcGroup:_(this.prefixUrl,v.zoomIn.GROUP),srcHover:_(this.prefixUrl,v.zoomIn.HOVER),srcDown:_(this.prefixUrl,v.zoomIn.DOWN),onPress:t,onRelease:n,onClick:r,onEnter:t,onExit:n,onFocus:p,onBlur:d})),m.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:_(this.prefixUrl,v.zoomOut.REST),srcGroup:_(this.prefixUrl,v.zoomOut.GROUP),srcHover:_(this.prefixUrl,v.zoomOut.HOVER),srcDown:_(this.prefixUrl,v.zoomOut.DOWN),onPress:i,onRelease:n,onClick:o,onEnter:i,onExit:n,onFocus:p,onBlur:d}))),this.showHomeControl&&m.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:_(this.prefixUrl,v.home.REST),srcGroup:_(this.prefixUrl,v.home.GROUP),srcHover:_(this.prefixUrl,v.home.HOVER),srcDown:_(this.prefixUrl,v.home.DOWN),onRelease:a,onFocus:p,onBlur:d})),this.showFullPageControl&&m.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:_(this.prefixUrl,v.fullpage.REST),srcGroup:_(this.prefixUrl,v.fullpage.GROUP),srcHover:_(this.prefixUrl,v.fullpage.HOVER),srcDown:_(this.prefixUrl,v.fullpage.DOWN),onRelease:s,onFocus:p,onBlur:d})),this.showRotationControl&&(m.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:_(this.prefixUrl,v.rotateleft.REST),srcGroup:_(this.prefixUrl,v.rotateleft.GROUP),srcHover:_(this.prefixUrl,v.rotateleft.HOVER),srcDown:_(this.prefixUrl,v.rotateleft.DOWN),onRelease:l,onFocus:p,onBlur:d})),m.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:_(this.prefixUrl,v.rotateright.REST),srcGroup:_(this.prefixUrl,v.rotateright.GROUP),srcHover:_(this.prefixUrl,v.rotateright.HOVER),srcDown:_(this.prefixUrl,v.rotateright.DOWN),onRelease:u,onFocus:p,onBlur:d}))),this.showFlipControl&&m.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:_(this.prefixUrl,v.flip.REST),srcGroup:_(this.prefixUrl,v.flip.GROUP),srcHover:_(this.prefixUrl,v.flip.HOVER),srcDown:_(this.prefixUrl,v.flip.DOWN),onRelease:h,onFocus:p,onBlur:d})),g?(this.buttonGroup=new e.ButtonGroup({buttons:m,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.navControl=this.buttonGroup.element,this.addHandler("open",e.delegate(this,B)),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=m),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,r,a){var s;if(s=e.isPlainObject(t)?t:{element:t,location:n,placement:r,onDraw:a},t=e.getElement(s.element),o(this.currentOverlays,t)>=0)return this;var l=i(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,r,i){var a;return n=e.getElement(n),(a=o(this.currentOverlays,n))>=0&&(this.currentOverlays[a].update(r,i),t[this.hash].forceRedraw=!0,this.raiseEvent("update-overlay",{element:n,location:r,placement:i})),this},removeOverlay:function(n){var r;return n=e.getElement(n),(r=o(this.currentOverlays,n))>=0&&(this.currentOverlays[r].destroy(),this.currentOverlays.splice(r,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 r(e){e.insideElementPressed&&this.viewer.viewport&&this.viewer.viewport.applyConstraints()}function i(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,u,c,f=a.viewer,h=this;function p(e){o(h.displayRegionContainer,e),o(h.displayRegion,-e),h.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=f.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&&(u=this.element.style,c=this.borderWidth,u.margin="0px",u.border=c+"px solid "+a.borderColor,u.padding="0px",u.background=a.background,u.opacity=a.opacity,u.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),f.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(f.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)&&(p(a.viewer.viewport?a.viewer.viewport.getRotation():a.viewer.degrees||0),a.viewer.addHandler("rotate",(function(e){p(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,r),scrollHandler:e.delegate(this,i),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(){h.viewport&&h.viewport.goHome(!0)})),f.world.addHandler("item-index-change",(function(e){window.setTimeout((function(){var t=h.world.getItemAt(e.previousIndex);h.world.setItemIndex(t,e.newIndex)}),1)})),f.world.addHandler("remove-item",(function(e){var t=e.item,n=h._getMatchingItem(t);n&&h.world.removeItem(n)})),this.update(f.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,r,i,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?(r=n.x*this.sizeRatio,i=n.y*this.sizeRatio):(r=Math.sqrt(this.elementArea*(n.x/n.y)),i=this.elementArea/r),this.element.style.width=Math.round(r)+"px",this.element.style.height=Math.round(i)+"px",this.elementArea||(this.elementArea=r*i),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 u=Math.abs(a.x-s.x),c=Math.abs(a.y-s.y);l.width=Math.round(Math.max(u,0))+"px",l.height=Math.round(Math.max(c,0))+"px"}},addTiledImage:function(t){var n=this,r=t.originalTiledImage;delete t.original;var i=e.extend({},t,{success:function(e){var t=e.item;function i(){n._matchBounds(t,r)}t._originalForNavigator=r,n._matchBounds(t,r,!0),n._matchOpacity(t,r),n._matchCompositeOperation(t,r),r.addHandler("bounds-change",i),r.addHandler("clip-change",i),r.addHandler("opacity-change",(function(){n._matchOpacity(t,r)})),r.addHandler("composite-operation-change",(function(){n._matchCompositeOperation(t,r)}))}});return e.Viewer.prototype.addTiledImage.apply(this,[i])},destroy:function(){return e.Viewer.prototype.destroy.apply(this)},_getMatchingItem:function(e){for(var t,n=this.world.getItemCount(),r=0;r<n;r++)if((t=this.world.getItemAt(r))._originalForNavigator===e)return t;return null},_matchBounds:function(e,t,n){var r=t.getBoundsNoRotate();e.setPosition(r.getTopLeft(),n),e.setWidth(r.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 r,i=n.split("."),o=null,a=arguments,s=t;for(r=0;r<i.length-1;r++)s=s[i[r]]||{};return"string"!=typeof(o=s[i[r]])&&(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 r,i=e.split("."),o=t;for(r=0;r<i.length-1;r++)o[i[r]]||(o[i[r]]={}),o=o[i[r]];o[i[r]]=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 r,i;if(n=n||new e.Point(0,0),t%90==0){switch(e.positiveModulo(t,360)){case 0:r=1,i=0;break;case 90:r=0,i=1;break;case 180:r=-1,i=0;break;case 270:r=0,i=-1}}else{var o=t*Math.PI/180;r=Math.cos(o),i=Math.sin(o)}var a=r*(this.x-n.x)-i*(this.y-n.y)+n.x,s=i*(this.x-n.x)+r*(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,r,i,o,a){var s,l,u=this,c=arguments;if(s=e.isPlainObject(t)?t:{width:c[0],height:c[1],tileSize:c[2],tileOverlap:c[3],minLevel:c[4],maxLevel:c[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){u.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),r=Math.ceil(n*this.dimensions.x/this.getTileWidth(t)),i=Math.ceil(n*this.dimensions.y/this.getTileHeight(t));return new e.Point(r,i)},getPixelRatio:function(t){var n=this.dimensions.times(this.getLevelScale(t)),r=1/n.x*e.pixelDensityRatio,i=1/n.y*e.pixelDensityRatio;return new e.Point(r,i)},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 r=n.x>=0&&n.x<=1&&n.y>=0&&n.y<=1/this.aspectRatio;e.console.assert(r,"[TileSource.getTileAtPoint] must be called with a valid point.");var i=this.dimensions.x*this.getLevelScale(t),o=n.x*i,a=n.y*i,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,r,i){var o=this.dimensions.times(this.getLevelScale(t)),a=this.getTileWidth(t),s=this.getTileHeight(t),l=0===n?0:a*n-this.tileOverlap,u=0===r?0:s*r-this.tileOverlap,c=a+(0===n?1:2)*this.tileOverlap,f=s+(0===r?1:2)*this.tileOverlap,h=1/o.x;return c=Math.min(c,o.x-l),f=Math.min(f,o.y-u),i?new e.Rect(0,0,c,f):new e.Rect(l*h,u*h,c*h,f*h)},getImageInfo:function(t){var n,r,i,o,a,s,l,u=this;t&&(l=(s=(a=t.split("/"))[a.length-1]).lastIndexOf("."))>-1&&(a[a.length-1]=s.slice(0,l));var c=null;if(this.splitHashDataForPost){var f=t.indexOf("#");-1!==f&&(c=t.substring(f+1),t=t.substr(0,f))}r=function(n){"string"==typeof n&&(n=e.parseXml(n));var r=e.TileSource.determineType(u,n,t);r?(void 0===(o=r.prototype.configure.apply(u,[n,t,c])).ajaxWithCredentials&&(o.ajaxWithCredentials=u.ajaxWithCredentials),i=new r(o),u.ready=!0,u.raiseEvent("ready",{tileSource:i})):u.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:r})):e.makeAjaxRequest({url:t,postData:c,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,success:function(t){var n=function(t){var n,r,i=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(i.match(/\s*<.*/))try{r=t.responseXML&&t.responseXML.documentElement?t.responseXML:e.parseXml(i)}catch(e){r=t.responseText}else if(i.match(/\s*[{[].*/))try{r=e.parseJSON(i)}catch(e){r=i}else r=i;return r}(t);r(n)},error:function(n,r){var i;try{i="HTTP "+n.status+" attempting to load TileSource: "+t}catch(e){i=(void 0!==r&&r.toString?r.toString():"Unknown error")+" attempting to load TileSource: "+t}e.console.error(i),u.raiseEvent("open-failed",{message:i,source:t,postData:c})}})},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,r,i,o){function a(e){return i?e+"+"+JSON.stringify(i):e}return a("string"!=typeof r?e+"/"+t+"_"+n:r)},tileExists:function(e,t,n){var r=this.getNumTiles(e);return e>=this.minLevel&&e<=this.maxLevel&&t>=0&&n>=0&&t<r.x&&n<r.y},hasTransparency:function(e,t,n,r){return!!e||t.match(".png")},downloadTileStart:function(t){var n=t.userData,r=new Image;n.image=r,n.request=null;var i=function(e){r?(r.onload=r.onerror=r.onabort=null,t.finish(e?null:r,n.request,e)):t.finish(null,n.request,"Image load failed: undefined Image instance.")};r.onload=function(){i()},r.onabort=r.onerror=function(){i("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(r){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if("TypeError"===r.name&&n){var o=new n;o.append(e.response),t=o.getBlob()}}0===t.size?i("Empty image response."):r.src=(window.URL||window.webkitURL).createObjectURL(t)},error:function(e){i("Image load aborted - XHR error")}}):(!1!==t.crossOriginPolicy&&(r.crossOrigin=t.crossOriginPolicy),r.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,r){var i;for(i in s)if(i.match(/.+TileSource$/)&&e.isFunction(s[i])&&e.isFunction(s[i].prototype.supports)&&s[i].prototype.supports.call(t,n,r))return s[i];return e.console.error("No TileSource was able to open %s %s",r,n),null}}(s),function(e){function t(t,n){var r,i,o=n.Image,a=o.Url,s=o.Format,l=o.Size,u=o.DisplayRect||[],c=parseInt(l.Width,10),f=parseInt(l.Height,10),h=parseInt(o.TileSize,10),p=parseInt(o.Overlap,10),d=[];for(i=0;i<u.length;i++)r=u[i].Rect,d.push(new e.DisplayRect(parseInt(r.X,10),parseInt(r.Y,10),parseInt(r.Width,10),parseInt(r.Height,10),parseInt(r.MinLevel,10),parseInt(r.MaxLevel,10)));return e.extend(!0,{width:c,height:f,tileSize:h,tileOverlap:p,minLevel:null,maxLevel:null,tilesUrl:a,fileFormat:s,displayRects:d},n)}e.DziTileSource=function(t,n,r,i,o,a,s,l,u){var c,f,h,p;if(p=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=p.tilesUrl,this.fileFormat=p.fileFormat,this.displayRects=p.displayRects,this.displayRects)for(c=this.displayRects.length-1;c>=0;c--)for(h=(f=this.displayRects[c]).minLevel;h<=f.maxLevel;h++)this._levelRects[h]||(this._levelRects[h]=[]),this._levelRects[h].push(f);e.TileSource.apply(this,[p])},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,r,i){var o;return o=e.isPlainObject(n)?t(this,n):function(n,r){if(!r||!r.documentElement)throw new Error(e.getString("Errors.Xml"));var i,o,a,s,l,u=r.documentElement,c=u.localName||u.tagName,f=r.documentElement.namespaceURI,h=null,p=[];if("Image"===c)try{if(void 0===(s=u.getElementsByTagName("Size")[0])&&(s=u.getElementsByTagNameNS(f,"Size")[0]),h={Image:{xmlns:"http://schemas.microsoft.com/deepzoom/2008",Url:u.getAttribute("Url"),Format:u.getAttribute("Format"),DisplayRect:null,Overlap:parseInt(u.getAttribute("Overlap"),10),TileSize:parseInt(u.getAttribute("TileSize"),10),Size:{Height:parseInt(s.getAttribute("Height"),10),Width:parseInt(s.getAttribute("Width"),10)}}},!e.imageFormatSupported(h.Image.Format))throw new Error(e.getString("Errors.ImageFormat",h.Image.Format.toUpperCase()));for(void 0===(i=u.getElementsByTagName("DisplayRect"))&&(i=u.getElementsByTagNameNS(f,"DisplayRect")[0]),l=0;l<i.length;l++)void 0===(a=(o=i[l]).getElementsByTagName("Rect")[0])&&(a=o.getElementsByTagNameNS(f,"Rect")[0]),p.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 p.length&&(h.Image.DisplayRect=p),t(n,h)}catch(t){throw t instanceof Error?t:new Error(e.getString("Errors.Dzi"))}else{if("Collection"===c)throw new Error(e.getString("Errors.Dzc"));if("Error"===c){var d=u.getElementsByTagName("Message")[0].firstChild.nodeValue;throw new Error(d)}}throw new Error(e.getString("Errors.Dzi"))}(this,n),r&&!o.tilesUrl&&(o.tilesUrl=r.replace(/([^/]+?)(\.(dzi|xml|js)?(\?[^/]*)?)?\/?$/,"$1_files/"),-1!==r.search(/\.(dzi|xml|js)\?/)?o.queryParams=r.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 r,i,o,a,s,l,u,c=this._levelRects[e];if(this.minLevel&&e<this.minLevel||this.maxLevel&&e>this.maxLevel)return!1;if(!c||!c.length)return!0;for(u=c.length-1;u>=0;u--)if(!(e<(r=c[u]).minLevel||e>r.maxLevel)&&(i=this.getLevelScale(e),o=r.x*i,a=r.y*i,s=o+r.width*i,l=a+r.height*i,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),r=!1;return 2===e.version&&e.profile.length>1&&e.profile[1].supports&&(r=-1!==e.profile[1].supports.indexOf("sizeByW")),3===e.version&&e.extraFeatures&&(r=-1!==e.extraFeatures.indexOf("sizeByWh")),!n||r}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 r(t,n,i){var o,a;if(3===t.nodeType&&i)(a=t.nodeValue.trim()).match(/^\d*$/)&&(a=Number(a)),n[i]?(e.isArray(n[i])||(n[i]=[n[i]]),n[i].push(a)):n[i]=a;else if(1===t.nodeType)for(o=0;o<t.childNodes.length;o++)r(t.childNodes[o],n,t.nodeName)}e.IIIFTileSource=function(r){if(e.extend(!0,this,r),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(r.tileSizePerScaleFactor={},this.tileFormat=this.tileFormat||"jpg",this.version=r.version,this.tile_width&&this.tile_height)r.tileWidth=this.tile_width,r.tileHeight=this.tile_height;else if(this.tile_width)r.tileSize=this.tile_width;else if(this.tile_height)r.tileSize=this.tile_height;else if(this.tiles)if(1===this.tiles.length)r.tileWidth=this.tiles[0].width,r.tileHeight=this.tiles[0].height||this.tiles[0].width,this.scale_factors=this.tiles[0].scaleFactors;else{this.scale_factors=[];for(var i=0;i<this.tiles.length;i++)for(var o=0;o<this.tiles[i].scaleFactors.length;o++){var a=this.tiles[i].scaleFactors[o];this.scale_factors.push(a),r.tileSizePerScaleFactor[a]={width:this.tiles[i].width,height:this.tiles[i].height||this.tiles[i].width}}}else if(t(r)){for(var s=Math.min(this.height,this.width),l=[256,512,1024],u=[],c=0;c<l.length;c++)l[c]<=s&&u.push(l[c]);u.length>0?r.tileSize=Math.max.apply(null,u):r.tileSize=s}else this.sizes&&this.sizes.length>0?(this.emulateLegacyImagePyramid=!0,r.levels=n(this),e.extend(!0,r,{width:r.levels[r.levels.length-1].width,height:r.levels[r.levels.length-1].height,tileSize:Math.max(r.height,r.width),tileOverlap:0,minLevel:0,maxLevel:r.levels.length-1}),this.levels=r.levels):e.console.error("Nothing in the info.json to construct image pyramids from");if(!r.maxLevel&&!this.emulateLegacyImagePyramid)if(this.scale_factors){var f=Math.max.apply(null,this.scale_factors);r.maxLevel=Math.round(Math.log(f)*Math.LOG2E)}else r.maxLevel=Number(Math.round(Math.log(Math.max(this.width,this.height),2)));e.TileSource.apply(this,[r])},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,i){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 u=function(t){if(!t||!t.documentElement)throw new Error(e.getString("Errors.Xml"));var n=t.documentElement,i=n.tagName,o=null;if("info"===i)try{return r(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 u["@context"]="http://iiif.io/api/image/1.0/context.json",u["@id"]=n.replace("/info.xml",""),u.version=1,u},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 r=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(r=this.levels[e].url),r}var i,o,a,s,l,u,c,f,h,p,d,v,m,g=Math.pow(.5,this.maxLevel-e),y=Math.round(this.width*g),b=Math.round(this.height*g);return i=this.getTileWidth(e),o=this.getTileHeight(e),a=Math.round(i/g),s=Math.round(o/g),m=1===this.version?"native."+this.tileFormat:"default."+this.tileFormat,y<i&&b<o?(p=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"):(u=t*a,c=n*s,f=Math.min(a,this.width-u),h=Math.min(s,this.height-c),l=0===t&&0===n&&f===this.width&&h===this.height?"full":[u,c,f,h].join(","),d=Math.round(f*g),v=Math.round(h*g),p=2===this.version&&d===this.width?"full":3===this.version&&d===this.width&&v===this.height?"max":3===this.version?d+","+v:d+","),[this._id,l,p,"0",m].join("/")},__testonly__:{canBeTiled:t,constructLevels:n}})}(s),function(e){e.OsmTileSource=function(t,n,r,i,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,r,i,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),u=256*Math.ceil(a.height/256);s=l>u?l/256:u/256,a.maxLevel=Math.ceil(Math.log(s)/Math.log(2))-1,a.tileSize=256,a.width=l,a.height=u,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 r=this.getNumTiles(e).y-1;return this.tilesUrl+e+"/"+t+"/"+(r-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 r=0,i={},o=0;o<e;o++)r+=(i=this.gridSize[o]).x*i.y;return r+=(i=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 r,i=this._calculateAbsoluteTileNumber(e,t,n);return r=Math.floor(i/256),this.tilesUrl+"TileGroup"+r+"/"+e+"-"+t+"-"+n+"."+this.fileFormat}})}(s),function(e){function t(e,t){return t.levels}e.LegacyTileSource=function(t){var n,r,i;e.isArray(t)&&(n={type:"legacy-image-pyramid",levels:t}),n.levels=function(t){var n,r,i=[];for(r=0;r<t.length;r++)(n=t[r]).height&&n.width&&n.url?i.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 i.sort((function(e,t){return e.height-t.height}))}(n.levels),n.levels.length>0?(r=n.levels[n.levels.length-1].width,i=n.levels[n.levels.length-1].height):(r=0,i=0,e.console.error("No supported image formats found")),e.extend(!0,n,{width:r,height:i,tileSize:Math.max(i,r),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,r,i){return e.isPlainObject(n)?t(this,n):function(n,r){if(!r||!r.documentElement)throw new Error(e.getString("Errors.Xml"));var i,o,a=r.documentElement,s=a.tagName,l=null,u=[];if("image"===s)try{for(l={type:a.getAttribute("type"),levels:[]},u=a.getElementsByTagName("level"),o=0;o<u.length;o++)i=u[o],l.levels.push({url:i.getAttribute("url"),width:parseInt(i.getAttribute("width"),10),height:parseInt(i.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: "+r)}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 r=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(r=this.levels[e].url),r}})}(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,r=this;this.crossOriginPolicy&&(n.crossOrigin=this.crossOriginPolicy),this.ajaxWithCredentials&&(n.useCredentials=this.ajaxWithCredentials),e.addEvent(n,"load",(function(){r.width=n.naturalWidth,r.height=n.naturalHeight,r.aspectRatio=r.width/r.height,r.dimensions=new e.Point(r.width,r.height),r._tileWidth=r.width,r._tileHeight=r.height,r.tileOverlap=0,r.minLevel=0,r.levels=r._buildLevels(),r.maxLevel=r.levels.length-1,r.ready=!0,r.raiseEvent("ready",{tileSource:r})})),e.addEvent(n,"error",(function(){r.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 r=null;return e>=this.minLevel&&e<=this.maxLevel&&(r=this.levels[e].url),r},getContext2D:function(e,t,n){var r=null;return e>=this.minLevel&&e<=this.maxLevel&&(r=this.levels[e].context2D),r},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,r=this._image.naturalHeight,i=document.createElement("canvas"),o=i.getContext("2d");if(i.width=n,i.height=r,o.drawImage(this._image,0,0,n,r),t[0].context2D=o,delete this._image,e.isCanvasTainted(i))return t;for(;n>=2&&r>=2;){n=Math.floor(n/2),r=Math.floor(r/2);var a=document.createElement("canvas"),s=a.getContext("2d");a.width=n,a.height=r,s.drawImage(i,0,0,n,r),t.splice(0,0,{context2D:s,width:n,height:r}),i=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,r,i){e.console.error("TileSourceCollection is deprecated; use World instead")}}(s),function(e){function t(n){e.requestAnimationFrame((function(){!function(n){var r;n.shouldFade&&(r=1-(e.now()-n.fadeBeginTime)/n.fadeLength,r=Math.min(1,r),r=Math.max(0,r),n.imgGroup&&e.setElementOpacity(n.imgGroup,r,!0),r>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 r(n,r){n.element.disabled||(r<=e.ButtonState.HOVER&&n.currentState===e.ButtonState.DOWN&&(n.imgDown&&(n.imgDown.style.visibility="hidden"),n.currentState=e.ButtonState.HOVER),r<=e.ButtonState.GROUP&&n.currentState===e.ButtonState.HOVER&&(n.imgHover&&(n.imgHover.style.visibility="hidden"),n.currentState=e.ButtonState.GROUP),r<=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 i=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(i,e.ButtonState.DOWN),i.raiseEvent("enter",{originalEvent:t.originalEvent})):t.buttonDownAny||n(i,e.ButtonState.HOVER)},focusHandler:function(e){i.tracker.enterHandler(e),i.raiseEvent("focus",{originalEvent:e.originalEvent})},leaveHandler:function(t){r(i,e.ButtonState.GROUP),t.insideElementPressed&&i.raiseEvent("exit",{originalEvent:t.originalEvent})},blurHandler:function(e){i.tracker.leaveHandler(e),i.raiseEvent("blur",{originalEvent:e.originalEvent})},pressHandler:function(t){n(i,e.ButtonState.DOWN),i.raiseEvent("press",{originalEvent:t.originalEvent})},releaseHandler:function(t){t.insideElementPressed&&t.insideElementReleased?(r(i,e.ButtonState.HOVER),i.raiseEvent("release",{originalEvent:t.originalEvent})):t.insideElementPressed?r(i,e.ButtonState.GROUP):n(i,e.ButtonState.HOVER)},clickHandler:function(e){e.quick&&i.raiseEvent("click",{originalEvent:e.originalEvent})},keyHandler:function(e){13===e.keyCode?(i.raiseEvent("click",{originalEvent:e.originalEvent}),i.raiseEvent("release",{originalEvent:e.originalEvent}),e.preventDefault=!0):e.preventDefault=!1}}),r(this,e.ButtonState.REST)},e.extend(e.Button.prototype,e.EventSource.prototype,{notifyGroupEnter:function(){n(this,e.ButtonState.GROUP)},notifyGroupExit:function(){r(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,r=this.buttons.concat([]),i=this;if(this.element=t.element||e.makeNeutralElement("div"),!t.group)for(this.element.style.display="inline-block",n=0;n<r.length;n++)this.element.appendChild(r[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<i.buttons.length;t++)i.buttons[t].notifyGroupEnter()},leaveHandler:function(e){var t;if(!e.insideElementPressed)for(t=0;t<i.buttons.length;t++)i.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,r,i,o){var a,s;this.x="number"==typeof t?t:0,this.y="number"==typeof n?n:0,this.width="number"==typeof r?r:0,this.height="number"==typeof i?i: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,r){var i=t.distanceTo(n),o=t.distanceTo(r),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,i,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(),r=t.getBoundingBox(),i=Math.min(n.x,r.x),o=Math.min(n.y,r.y),a=Math.max(n.x+n.width,r.x+r.width),s=Math.max(n.y+n.height,r.y+r.height);return new e.Rect(i,o,a-i,s-o)},intersection:function(t){var n=1e-10,r=[],i=this.getTopLeft();t.containsPoint(i,n)&&r.push(i);var o=this.getTopRight();t.containsPoint(o,n)&&r.push(o);var a=this.getBottomLeft();t.containsPoint(a,n)&&r.push(a);var s=this.getBottomRight();t.containsPoint(s,n)&&r.push(s);var l=t.getTopLeft();this.containsPoint(l,n)&&r.push(l);var u=t.getTopRight();this.containsPoint(u,n)&&r.push(u);var c=t.getBottomLeft();this.containsPoint(c,n)&&r.push(c);var f=t.getBottomRight();this.containsPoint(f,n)&&r.push(f);for(var h=this._getSegments(),p=t._getSegments(),d=0;d<h.length;d++)for(var v=h[d],m=0;m<p.length;m++){var g=p[m],y=b(v[0],v[1],g[0],g[1]);y&&r.push(y)}function b(t,r,i,o){var a=r.minus(t),s=o.minus(i),l=-s.x*a.y+a.x*s.y;if(0===l)return null;var u=(a.x*(t.y-i.y)-a.y*(t.x-i.x))/l,c=(s.x*(t.y-i.y)-s.y*(t.x-i.x))/l;return-1e-10<=u&&u<=1-n&&-1e-10<=c&&c<=1-n?new e.Point(t.x+c*a.x,t.y+c*a.y):null}if(0===r.length)return null;for(var w=r[0].x,x=r[0].x,E=r[0].y,S=r[0].y,T=1;T<r.length;T++){var P=r[T];P.x<w&&(w=P.x),P.x>x&&(x=P.x),P.y<E&&(E=P.y),P.y>S&&(S=P.y)}return new e.Rect(w,E,x-w,S-E)},_getSegments:function(){var e=this.getTopLeft(),t=this.getTopRight(),n=this.getBottomLeft(),r=this.getBottomRight();return[[e,t],[t,r],[r,n],[n,e]]},rotate:function(t,n){if(0===(t=e.positiveModulo(t,360)))return this.clone();n=n||this.getCenter();var r=this.getTopLeft().rotate(t,n),i=this.getTopRight().rotate(t,n).minus(r);i=i.apply((function(e){return Math.abs(e)<1e-15?0:e}));var o=Math.atan(i.y/i.x);return i.x<0?o+=Math.PI:i.y<0&&(o+=2*Math.PI),new e.Rect(r.x,r.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(),r=this.getBottomLeft(),i=this.getBottomRight(),o=Math.min(t.x,n.x,r.x,i.x),a=Math.max(t.x,n.x,r.x,i.x),s=Math.min(t.y,n.y,r.y,i.y),l=Math.max(t.y,n.y,r.y,i.y);return new e.Rect(o,s,a-o,l-s)},getIntegerBoundingBox:function(){var t=this.getBoundingBox(),n=Math.floor(t.x),r=Math.floor(t.y),i=Math.ceil(t.width+t.x-n),o=Math.ceil(t.height+t.y-r);return new e.Rect(n,r,i,o)},containsPoint:function(e,t){t=t||0;var n=this.getTopLeft(),r=this.getTopRight(),i=this.getBottomLeft(),o=r.minus(n),a=i.minus(n);return(e.x-n.x)*o.x+(e.y-n.y)*o.y>=-t&&(e.x-r.x)*o.x+(e.y-r.y)*o.y<=t&&(e.x-n.x)*a.x+(e.y-n.y)*a.y>=-t&&(e.x-i.x)*a.x+(e.y-i.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 r(t){if(this.dragging=!0,this.element){var n=Number(this.element.style.marginLeft.replace("px","")),r=Number(this.element.style.marginTop.replace("px","")),i=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>-(i-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?r>-(a-s.y)&&(this.element.style.marginTop=r+2*t.delta.y+"px",o(this,s.y,r+2*t.delta.y)):-t.delta.y<0&&r<0&&(this.element.style.marginTop=r+2*t.delta.y+"px",o(this,s.y,r+2*t.delta.y))}}function i(t){if(this.element){var n=Number(this.element.style.marginLeft.replace("px","")),r=Number(this.element.style.marginTop.replace("px","")),i=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>-(i-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?r>s.y-a&&(this.element.style.marginTop=r+60*t.scroll+"px",o(this,s.y,r+60*t.scroll)):t.scroll>0&&r<0&&(this.element.style.marginTop=r+60*t.scroll+"px",o(this,s.y,r+60*t.scroll)),t.preventDefault=!0}}function o(t,n,r){var i,o,a,s,l,u;for(i="horizontal"===t.scroll?t.panelWidth:t.panelHeight,o=Math.ceil(n/i)+5,l=o=(o=(a=Math.ceil((Math.abs(r)+n)/i)+1)-o)<0?0:o;l<a&&l<t.panels.length;l++)if(!(u=t.panels[l]).activePanel){var c,f=t.viewer.tileSources[l];c=f.referenceStripThumbnailUrl?{type:"image",url:f.referenceStripThumbnailUrl}:f,s=new e.Viewer({id:u.id,tileSources:[c],element:u,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[u.id]=s,u.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:i.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),e.preventDefault=!0;break;case 40:case 37:i.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),e.preventDefault=!0;break;default:e.preventDefault=!1}}function u(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:i.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),e.preventDefault=!0;break;case 45:case 115:case 83:case 97:i.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),e.preventDefault=!0;break;default:e.preventDefault=!1}}e.ReferenceStrip=function(c){var f,h,p,d=c.viewer,v=e.getElementSize(d.element);for(c.id||(c.id="referencestrip-"+e.now(),this.element=e.makeNeutralElement("div"),this.element.id=c.id,this.element.className="referencestrip"),c=e.extend(!0,{sizeRatio:e.DEFAULT_SETTINGS.referenceStripSizeRatio,position:e.DEFAULT_SETTINGS.referenceStripPosition,scroll:e.DEFAULT_SETTINGS.referenceStripScroll,clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold},c,{element:this.element}),e.extend(this,c),t[this.id]={animating:!1},this.minPixelRatio=this.viewer.minPixelRatio,this.element.tabIndex=0,(h=this.element.style).marginTop="0px",h.marginRight="0px",h.marginBottom="0px",h.marginLeft="0px",h.left="0px",h.bottom="0px",h.border="0px",h.background="#000",h.position="relative",e.setElementTouchActionNone(this.element),e.setElementOpacity(this.element,.8),this.viewer=d,this.tracker=new e.MouseTracker({userData:"ReferenceStrip.tracker",element:this.element,clickHandler:e.delegate(this,n),dragHandler:e.delegate(this,r),scrollHandler:e.delegate(this,i),enterHandler:e.delegate(this,a),leaveHandler:e.delegate(this,s),keyDownHandler:e.delegate(this,l),keyHandler:e.delegate(this,u),preProcessEventHandler:function(e){"wheel"===e.eventType&&(e.preventDefault=!0)}}),c.width&&c.height?(this.element.style.width=c.width+"px",this.element.style.height=c.height+"px",d.addControl(this.element,{anchor:e.ControlAnchor.BOTTOM_LEFT})):"horizontal"===c.scroll?(this.element.style.width=v.x*c.sizeRatio*d.tileSources.length+12*d.tileSources.length+"px",this.element.style.height=v.y*c.sizeRatio+"px",d.addControl(this.element,{anchor:e.ControlAnchor.BOTTOM_LEFT})):(this.element.style.height=v.y*c.sizeRatio*d.tileSources.length+12*d.tileSources.length+"px",this.element.style.width=v.x*c.sizeRatio+"px",d.addControl(this.element,{anchor:e.ControlAnchor.TOP_LEFT})),this.panelWidth=v.x*this.sizeRatio+8,this.panelHeight=v.y*this.sizeRatio+8,this.panels=[],this.miniViewers={},p=0;p<d.tileSources.length;p++)(f=e.makeNeutralElement("div")).id=this.element.id+"-"+p,f.style.width=this.panelWidth+"px",f.style.height=this.panelHeight+"px",f.style.display="inline",f.style.float="left",f.style.cssFloat="left",f.style.styleFloat="left",f.style.padding="2px",e.setElementTouchActionNone(f),e.setElementPointerEventsNone(f),this.element.appendChild(f),f.activePanel=!1,this.panels.push(f);o(this,"vertical"===this.scroll?v.y:v.x,0),this.setFocus(0)},e.ReferenceStrip.prototype={setFocus:function(t){var n,r=this.element.querySelector("#"+this.element.id+"-"+t),i=e.getElementSize(this.viewer.canvas),s=Number(this.element.style.width.replace("px","")),l=Number(this.element.style.height.replace("px","")),u=-Number(this.element.style.marginLeft.replace("px","")),c=-Number(this.element.style.marginTop.replace("px",""));this.currentSelected!==r&&(this.currentSelected&&(this.currentSelected.style.background="#000"),this.currentSelected=r,this.currentSelected.style.background="#999","horizontal"===this.scroll?(n=Number(t)*(this.panelWidth+3))>u+i.x-this.panelWidth?(n=Math.min(n,s-i.x),this.element.style.marginLeft=-n+"px",o(this,i.x,-n)):n<u&&(n=Math.max(0,n-i.x/2),this.element.style.marginLeft=-n+"px",o(this,i.x,-n)):(n=Number(t)*(this.panelHeight+3))>c+i.y-this.panelHeight?(n=Math.min(n,l-i.y),this.element.style.marginTop=-n+"px",o(this,i.y,-n)):n<c&&(n=Math.max(0,n-i.y/2),this.element.style.marginTop=-n+"px",o(this,i.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,r,i,o,a){e.Rect.apply(this,[t,n,r,i]),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 r,i,o=this.current.time>=this.target.time?n:t+(n-t)*(r=this.springStiffness,i=(this.current.time-this.start.time)/(this.target.time-this.start.time),(1-Math.exp(r*-i))/(1-Math.exp(-r))),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 r=this,i={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)}(r,e,t.callback)},abort:t.abort,timeout:this.timeout},o=new e.ImageJob(i);!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,r,i,o,a,s,l,u,c,f,h){this.level=t,this.x=n,this.y=r,this.bounds=i,this.sourceBounds=c,this.exists=o,this._url=a,this.postData=f,this.context2D=s,this.loadWithAjax=l,this.ajaxHeaders=u,void 0===h&&(e.console.warn("Tile constructor needs 'cacheKey' variable: creation tile cache in Tile class is deprecated. TileSource.prototype.getTileHashKey will be used."),h=e.TileSource.prototype.getTileHashKey(t,n,r,a,u,f)),this.cacheKey=h,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,r,i,o,a){var s,l,u,c=this.position.times(e.pixelDensityRatio),f=this.size.times(e.pixelDensityRatio);this.context2D||this.cacheImageRecord?(s=this.getCanvasContext(),this.loaded&&s?(t.save(),t.globalAlpha=this.opacity,"number"==typeof r&&1!==r&&(c=c.times(r),f=f.times(r)),i instanceof e.Point&&(c=c.plus(i)),1===t.globalAlpha&&this.hasTransparency&&(o&&(c.x=Math.round(c.x),c.y=Math.round(c.y),f.x=Math.round(f.x),f.y=Math.round(f.y)),t.clearRect(c.x,c.y,f.x,f.y)),n({context:t,tile:this,rendered:s}),this.sourceBounds?(l=Math.min(this.sourceBounds.width,s.canvas.width),u=Math.min(this.sourceBounds.height,s.canvas.height)):(l=s.canvas.width,u=s.canvas.height),t.translate(c.x+f.x/2,0),this.flipped&&t.scale(-1,1),t.drawImage(s.canvas,0,0,l,u,-f.x/2,c.y,f.x,f.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,r){var i=Math.max(1,Math.ceil((r.x-n.x)/2)),o=Math.max(1,Math.ceil((r.y-n.y)/2));return new e.Point(i,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,r){var i;i=e.isPlainObject(t)?t:{element:t,location:n,placement:r},this.element=i.element,this.style=i.element.style,this._init(i)},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 r=e.Placement.properties[this.placement];r&&(r.isHorizontallyCentered?t.x-=n.x/2:r.isRight&&(t.x-=n.x),r.isVerticallyCentered?t.y-=n.y/2:r.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 r=e.getCssPropertyWithVendorPrefix("transformOrigin"),i=e.getCssPropertyWithVendorPrefix("transform");r&&i&&(n[r]="",n[i]="")},drawHTML:function(t,n){var r=this.element;r.parentNode!==t&&(r.prevElementParent=r.parentNode,r.prevNextSibling=r.nextSibling,t.appendChild(r),this.style.position="absolute",this.size=e.getElementSize(r));var i=this._getOverlayPositionAndSize(n),o=i.position,a=this.size=i.size,s=i.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 u=e.getCssPropertyWithVendorPrefix("transformOrigin"),c=e.getCssPropertyWithVendorPrefix("transform");u&&c&&(s?(l[u]=this._getTransformOrigin(),l[c]="rotate("+s+"deg)"):(l[u]="",l[c]="")),l.display="block"}},_getOverlayPositionAndSize:function(t){var n=t.pixelFromPoint(this.location,!0),r=this._getSizeInPixels(t);this.adjust(n,r);var i=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,r.x,r.y),a=this._getBoundingBox(o,t.getRotation(!0));n=a.getTopLeft(),r=a.getSize()}else i=t.getRotation(!0);return{position:n,size:r,rotate:i}},_getSizeInPixels:function(t){var n=this.size.x,r=this.size.y;if(null!==this.width||null!==this.height){var i=t.deltaPixelsFromPointsNoRotate(new e.Point(this.width||0,this.height||0),!0);null!==this.width&&(n=i.x),null!==this.height&&(r=i.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&&(r=o.y)}return new e.Point(n,r)},_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),r=e.Placement.properties[this.placement];return r&&(r.isHorizontallyCentered?n.x+=t.width/2:r.isRight&&(n.x+=t.width),r.isVerticallyCentered?n.y+=t.height/2:r.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 r=e.isPlainObject(t)?t:{location:t,placement:n};this._init({location:r.location||this.location,placement:void 0!==r.placement?r.placement:this.placement,onDraw:r.onDraw||this.onDraw,checkResize:r.checkResize||this.checkResize,width:void 0!==r.width?r.width:this.width,height:void 0!==r.height?r.height:this.height,rotationMode:r.rotationMode||this.rotationMode})},getBounds:function(t){e.console.assert(t,"A viewport must now be passed to Overlay.getBounds.");var n=this.width,r=this.height;if(null===n||null===r){var i=t.deltaPointsFromPixelsNoRotate(this.size,!0);null===n&&(n=i.x),null===r&&(r=i.y)}var o=this.location.clone();return this.adjust(o,new e.Point(n,r)),this._adjustBoundsForRotation(t,new e.Rect(o.x,o.y,n,r))},_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 r=this._getOverlayPositionAndSize(t);return t.viewerElementToViewportRectangle(new e.Rect(r.position.x,r.position.y,r.size.x,r.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 r=this._calculateCanvasSize();this.canvas.width=r.x,this.canvas.height=r.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,r,i){return e.console.error("drawer.addOverlay is deprecated. Use viewer.addOverlay instead."),this.viewer.addOverlay(t,n,r,i),this},updateOverlay:function(t,n,r){return e.console.error("drawer.updateOverlay is deprecated. Use viewer.updateOverlay instead."),this.viewer.updateOverlay(t,n,r),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,r=0;r<n.getItemCount();r++)n.getItemAt(r).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,r=0;r<t.getItemCount();r++){var i=t.getItemAt(r).getOpacity();i>n&&(n=i)}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 r=n.canvas;n.clearRect(0,0,r.width,r.height)}}},viewportToDrawerRectangle:function(t){var n=this.viewport.pixelFromPointNoRotate(t.getTopLeft(),!0),r=this.viewport.deltaPixelsFromPointsNoRotate(t.getSize(),!0);return new e.Rect(n.x*e.pixelDensityRatio,n.y*e.pixelDensityRatio,r.x*e.pixelDensityRatio,r.y*e.pixelDensityRatio)},drawTile:function(t,n,r,i,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(r);i=i||1,t.drawCanvas(l,n,i,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 r=this;this.viewer.addHandler("rotate",(function e(){if(0!==r.viewport.getRotation()){r.viewer.removeHandler("rotate",e);var t=r._calculateSketchCanvasSize();r.sketchCanvas.width=t.x,r.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 r=this._getContext(n);r.save(),r.fillStyle=t,r.fillRect(e.x,e.y,e.width,e.height),r.restore()}},blendSketch:function(t,n,r,i){var o=t;if(e.isPlainObject(o)||(o={opacity:t,scale:n,translate:r,compositeOperation:i}),this.useCanvas&&this.sketchCanvas){t=o.opacity,i=o.compositeOperation;var a=o.bounds;if(this.context.save(),this.context.globalAlpha=t,i&&(this.context.globalCompositeOperation=i),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=(r=o.translate)instanceof e.Point?r:new e.Point(0,0),l=0,u=0;if(r){var c=this.sketchCanvas.width-this.canvas.width,f=this.sketchCanvas.height-this.canvas.height;l=Math.round(c/2),u=Math.round(f/2)}this.context.drawImage(this.sketchCanvas,s.x-l*n,s.y-u*n,(this.canvas.width+2*l)*n,(this.canvas.height+2*u)*n,-l,-u,this.canvas.width+2*l,this.canvas.height+2*u)}this.context.restore()}},drawDebugInfo:function(t,n,r,i){if(this.useCanvas){var o=this.viewer.world.getIndexOfItem(i)%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)}),i.getRotation(!0)%360!=0&&this._offsetForRotation({degrees:i.getRotation(!0),point:i.viewport.pixelFromPointNoRotate(i._getRotationPoint(!0),!0)}),i.viewport.getRotation(!0)%360==0&&i.getRotation(!0)%360==0&&i._drawer.viewer.viewport.getFlip()&&i._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: "+r+" 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(),i.getRotation(!0)%360!=0&&this._restoreRotationChanges(),i.viewport.getRotation(!0)%360==0&&i.getRotation(!0)%360==0&&i._drawer.viewer.viewport.getFlip()&&i._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(),r=this._getContext(t.useSketch);r.save(),r.translate(n.x,n.y),this.viewer.viewport.flipped?(r.rotate(Math.PI/180*-t.degrees),r.scale(-1,1)):r.rotate(Math.PI/180*t.degrees),r.translate(-n.x,-n.y)},_flip:function(t){var n=(t=t||{}).point?t.point.times(e.pixelDensityRatio):this.getCanvasCenter(),r=this._getContext(t.useSketch);r.translate(n.x,0),r.scale(-1,1),r.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(),r=n/this.getAspectRatio();return new e.Rect(t.x-n/2,t.y-r/2,n,r)},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),r=1/this.getZoom(t),i=r/this.getAspectRatio();return new e.Rect(n.x-r/2,n.y-i/2,r,i)},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,r,i,o,a,s,l=new e.Point(this.centerSpringX.current.value,this.centerSpringY.current.value),u=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return t?l:this.zoomPoint?(n=this.pixelFromPoint(this.zoomPoint,!0),o=(i=1/(r=this.getZoom()))/this.getAspectRatio(),a=new e.Rect(l.x-i/2,l.y-o/2,i,o),s=this._pixelFromPoint(this.zoomPoint,a).minus(n).rotate(-this.getRotation(!0)).divide(this._containerInnerSize.x*r),u.plus(s)):u},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(),r=!1,i=!1;if(this.wrapHorizontal);else{var o,a,s,l=t.x+t.width,u=n.x+n.width;o=t.width>n.width?this.visibilityRatio*n.width:this.visibilityRatio*t.width,a=n.x-l+o,s=u-t.x-o,o>n.width?(t.x+=(a+s)/2,r=!0):s<0?(t.x+=s,r=!0):a>0&&(t.x+=a,r=!0)}if(this.wrapVertical);else{var c,f,h,p=t.y+t.height,d=n.y+n.height;c=t.height>n.height?this.visibilityRatio*n.height:this.visibilityRatio*t.height,f=n.y-p+c,h=d-t.y-c,c>n.height?(t.y+=(f+h)/2,i=!0):h<0?(t.y+=h,i=!0):f>0&&(t.y+=f,i=!0)}var v=r||i,m=v?this.viewerElementToViewportRectangle(t):e.clone();return m.xConstrained=r,m.yConstrained=i,m.constraintApplied=v,m},_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 r=this.getConstrainedBounds(!1);return r.constraintApplied&&(this.fitBounds(r,e),this._raiseConstraintsEvent(e)),this},ensureVisible:function(e){return this.applyConstraints(e)},_fitBounds:function(t,n){var r=(n=n||{}).immediately||!1,i=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(r)return this.panTo(a,!0),this.zoomTo(l,null,!0),i&&this.applyConstraints(!0),this;var u=this.getCenter(!0),c=this.getZoom(!0);this.panTo(u,!0),this.zoomTo(c,null,!0);var f=this.getBounds(),h=this.getZoom();if(0===h||Math.abs(l/h-1)<1e-8)return this.zoomTo(l,null,!0),this.panTo(a,r),i&&this.applyConstraints(!1),this;if(i){this.panTo(a,!1),this.zoomTo(l,null,!1);var p=this.getConstrainedBounds();this.panTo(u,!0),this.zoomTo(c,null,!0),this.fitBounds(p)}else{var d=s.rotate(-this.getRotation()).getTopLeft().times(l).minus(f.getTopLeft().times(h)).divide(l-h);this.zoomTo(l,d,r)}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 r=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return this.panTo(r.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,r){var i=this;return this.zoomPoint=n instanceof e.Point&&!isNaN(n.x)&&!isNaN(n.y)?n:null,r?this._adjustCenterSpringsForZoomPoint((function(){i.zoomSpring.resetTo(t)})):this.zoomSpring.springTo(t),this.viewer&&this.viewer.raiseEvent("zoom",{zoom:t,refPoint:n,immediately:r}),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,r){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,r)if(this.rotationPivot){if(!(t-this._oldDegrees))return this.rotationPivot=null,this;this._rotateAboutPivot(t)}else this.degreesSpring.resetTo(t);else{var i=e.positiveModulo(this.degreesSpring.current.value,360),o=e.positiveModulo(t,360),a=o-i;a>180?o-=360:a<-180&&(o+=360);var s=i-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:!!r,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,r=this.getBoundsNoRotate(),i=r;return this.containerSize.x=e.x,this.containerSize.y=e.y,this._updateContainerInnerSize(),t&&(n=e.x/this.containerSize.x,i.width=r.width*n,i.height=i.width/this.getAspectRatio()),this.viewer&&this.viewer.raiseEvent("resize",{newContainerSize:e,maintain:t}),this.fitBounds(i,!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 r=this.degreesSpring.current.value-this._oldDegrees,i=n.rotate(-1*r).times(-1);this.centerSpringX.shiftBy(i.x),this.centerSpringY.shiftBy(i.y)},_adjustCenterSpringsForZoomPoint:function(e){if(this.zoomPoint){var t=this.pixelFromPoint(this.zoomPoint,!0);e();var n=this.pixelFromPoint(this.zoomPoint,!0).minus(t),r=this.deltaPointsFromPixels(n,!0);this.centerSpringX.shiftBy(r.x),this.centerSpringY.shiftBy(r.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 r=this.getBoundsNoRotate(n);return t.minus(new e.Point(this._margins.left,this._margins.top)).divide(this._containerInnerSize.x/r.width).plus(r.getTopLeft())},pointFromPixel:function(e,t){return this.pointFromPixelNoRotate(e,t).rotate(-this.getRotation(t),this.getCenter(t))},_viewportToImageDelta:function(t,n){var r=this._contentBoundsNoRotate.width;return new e.Point(t*this._contentSizeNoRotate.x/r,n*this._contentSizeNoRotate.x/r)},viewportToImageCoordinates:function(t,n){if(t instanceof e.Point)return this.viewportToImageCoordinates(t.x,t.y);if(this.viewer){var r=this.viewer.world.getItemCount();if(r>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.viewportToImageCoordinates] is not accurate with multi-image; use TiledImage.viewportToImageCoordinates instead.");else if(1===r){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 r=this._contentBoundsNoRotate.width;return new e.Point(t/this._contentSizeNoRotate.x*r,n/this._contentSizeNoRotate.x*r)},imageToViewportCoordinates:function(t,n){if(t instanceof e.Point)return this.imageToViewportCoordinates(t.x,t.y);if(this.viewer){var r=this.viewer.world.getItemCount();if(r>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.imageToViewportCoordinates] is not accurate with multi-image; use TiledImage.imageToViewportCoordinates instead.");else if(1===r){return this.viewer.world.getItemAt(0).imageToViewportCoordinates(t,n,!0)}}var i=this._imageToViewportDelta(t,n);return i.x+=this._contentBoundsNoRotate.x,i.y+=this._contentBoundsNoRotate.y,i},imageToViewportRectangle:function(t,n,r,i){var o=t;if(o instanceof e.Rect||(o=new e.Rect(t,n,r,i)),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,r,i,!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,r,i){var o=t;if(o instanceof e.Rect||(o=new e.Rect(t,n,r,i)),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,r,i,!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 r=this._contentSizeNoRotate.x;return t*(this._containerInnerSize.x/r*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 r=t.x||0;delete t.x;var i=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 u=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:r,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._ySpring=new e.Spring({initial:i,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:u,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(),r=this._degreesSpring.update();return!!(e||t||n||r)&&(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 r=(t?this._worldWidthCurrent:this._worldWidthTarget)/this.source.dimensions.x,i=this._clip.times(r);n=new e.Rect(n.x+i.x,n.y+i.y,i.width,i.height)}return n.rotate(this.getRotation(t),this._getRotationPoint(t))},getTileBounds:function(e,t,n){var r=this.source.getNumTiles(e),i=(r.x+t%r.x)%r.x,o=(r.y+n%r.y)%r.y,a=this.source.getTileBounds(e,i,o);return this.getFlip()&&(a.x=1-a.x-a.width),a.x+=(t-i)/r.x,a.y+=this._worldHeightCurrent/this._worldWidthCurrent*((n-o)/r.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,r){var i=r?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t*(this.source.dimensions.x/i),n*(this.source.dimensions.y*this.contentAspectX/i))},viewportToImageCoordinates:function(t,n,r){var i;return t instanceof e.Point?(r=n,i=t):i=new e.Point(t,n),i=i.rotate(-this.getRotation(r),this._getRotationPoint(r)),r?this._viewportToImageDelta(i.x-this._xSpring.current.value,i.y-this._ySpring.current.value):this._viewportToImageDelta(i.x-this._xSpring.target.value,i.y-this._ySpring.target.value)},_imageToViewportDelta:function(t,n,r){var i=r?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t/this.source.dimensions.x*i,n/this.source.dimensions.y/this.contentAspectX*i)},imageToViewportCoordinates:function(t,n,r){t instanceof e.Point&&(r=n,n=t.y,t=t.x);var i=this._imageToViewportDelta(t,n);return r?(i.x+=this._xSpring.current.value,i.y+=this._ySpring.current.value):(i.x+=this._xSpring.target.value,i.y+=this._ySpring.target.value),i.rotate(this.getRotation(r),this._getRotationPoint(r))},imageToViewportRectangle:function(t,n,r,i,o){var a=t;a instanceof e.Rect?o=n:a=new e.Rect(t,n,r,i);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,r,i,o){var a=t;t instanceof e.Rect?o=n:a=new e.Rect(t,n,r,i);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,r){n=n||e.Placement.CENTER;var i=e.Placement.properties[n],o=this.contentAspectX,a=0,s=0,l=1,u=1;if(this._clip&&(o=this._clip.getAspectRatio(),l=this._clip.width/this.source.dimensions.x,u=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 c=t.height/u,f=0;i.isHorizontallyCentered?f=(t.width-t.height*o)/2:i.isRight&&(f=t.width-t.height*o),this.setPosition(new e.Point(t.x-a+f,t.y-s),r),this.setHeight(c,r)}else{var h=t.width/l,p=0;i.isVerticallyCentered?p=(t.height-t.width/o)/2:i.isBottom&&(p=t.height-t.width/o),this.setPosition(new e.Point(t.x-a,t.y-s+p),r),this.setWidth(h,r)}},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 r=this._viewportToTiledImageRectangle(this.getClippedBounds(!0));if(null===(n=n.intersection(r)))return}for(var i=this._getLevelsInterval(),o=i.lowestLevel,a=i.highestLevel,s=null,l=!1,u=e.now(),c=a;c>=o;c--){var f=!1,h=t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(c),!0).x*this._scaleSpring.current.value;if(c===o||!l&&h>=this.minPixelRatio)f=!0,l=!0;else if(!l)continue;var p=t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(c),!1).x*this._scaleSpring.current.value,d=t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(Math.max(this.source.getClosestLevel(),0)),!1).x*this._scaleSpring.current.value,v=this.immediateRender?1:d,m=Math.min(1,(h-.5)/.5),g=v/Math.abs(v-p);if(s=this._updateLevel(l,f,c,m,g,n,u,s),this._providesCoverage(this.coverage,c))break}this._drawTiles(this.lastDrawn),s&&!s.context2D?(this._loadTile(s,u),this._needsDraw=!0,this._setFullyLoaded(!1)):this._setFullyLoaded(0===this._tilesLoading)},_getCornerTiles:function(t,n,r){var i,o,a,s;this.wrapHorizontal?(i=e.positiveModulo(n.x,1),o=e.positiveModulo(r.x,1)):(i=Math.max(0,n.x),o=Math.min(1,r.x));var l=1/this.source.aspectRatio;this.wrapVertical?(a=e.positiveModulo(n.y,l),s=e.positiveModulo(r.y,l)):(a=Math.max(0,n.y),s=Math.min(l,r.y));var u=this.source.getTileAtPoint(t,new e.Point(i,a)),c=this.source.getTileAtPoint(t,new e.Point(o,s)),f=this.source.getNumTiles(t);return this.wrapHorizontal&&(u.x+=f.x*Math.floor(n.x),c.x+=f.x*Math.floor(r.x)),this.wrapVertical&&(u.y+=f.y*Math.floor(n.y/l),c.y+=f.y*Math.floor(r.y/l)),{topLeft:u,bottomRight:c}},_updateLevel:function(e,t,n,r,i,o,a,s){var l=o.getBoundingBox().getTopLeft(),u=o.getBoundingBox().getBottomRight();this.viewer&&this.viewer.raiseEvent("update-level",{tiledImage:this,havedrawn:e,level:n,opacity:r,visibility:i,drawArea:o,topleft:l,bottomright:u,currenttime:a,best:s}),this._resetCoverage(this.coverage,n),this._resetCoverage(this.loadingCoverage,n);var c=this._getCornerTiles(n,l,u),f=c.topLeft,h=c.bottomRight,p=this.source.getNumTiles(n),d=this.viewport.pixelFromPoint(this.viewport.getCenter());this.getFlip()&&(h.x+=1,this.wrapHorizontal||(h.x=Math.min(h.x,p.x-1)));for(var v=f.x;v<=h.x;v++)for(var m=f.y;m<=h.y;m++){var g;if(this.getFlip()){var y=(p.x+v%p.x)%p.x;g=v+p.x-y-y-1}else g=v;null!==o.intersection(this.getTileBounds(n,g,m))&&(s=this._updateTile(t,e,g,m,n,r,i,d,p,a,s))}return s},_updateTile:function(e,t,n,r,i,o,a,s,l,u,c){var f=this._getTile(n,r,i,u,l,this._worldWidthCurrent,this._worldHeightCurrent),h=t;this.viewer&&this.viewer.raiseEvent("update-tile",{tiledImage:this,tile:f}),this._setCoverage(this.coverage,i,n,r,!1);var p=f.loaded||f.loading||this._isCovered(this.loadingCoverage,i,n,r);if(this._setCoverage(this.loadingCoverage,i,n,r,p),!f.exists)return c;if(e&&!h&&(this._isCovered(this.coverage,i,n,r)?this._setCoverage(this.coverage,i,n,r,!0):h=!0),!h)return c;if(this._positionTile(f,this.source.tileOverlap,this.viewport,s,a),!f.loaded)if(f.context2D)this._setTileLoaded(f);else{var d=this._tileCache.getImageRecord(f.cacheKey);d&&this._setTileLoaded(f,d.getData())}f.loaded?this._blendTile(f,n,r,i,o,u)&&(this._needsDraw=!0):f.loading?this._tilesLoading++:p||(c=this._compareTiles(c,f));return c},_getTile:function(t,n,r,i,o,a,s){var l,u,c,f,h,p,d,v,m,g,y=this.tilesMatrix,b=this.source;return y[r]||(y[r]={}),y[r][t]||(y[r][t]={}),y[r][t][n]&&!y[r][t][n].flipped==!this.flipped||(l=(o.x+t%o.x)%o.x,u=(o.y+n%o.y)%o.y,c=this.getTileBounds(r,t,n),f=b.getTileBounds(r,l,u,!0),h=b.tileExists(r,l,u),p=b.getTileUrl(r,l,u),d=b.getTilePostData(r,l,u),this.loadTilesWithAjax?(v=b.getTileAjaxHeaders(r,l,u),e.isPlainObject(this.ajaxHeaders)&&(v=e.extend({},this.ajaxHeaders,v))):v=null,m=b.getContext2D?b.getContext2D(r,l,u):void 0,g=new e.Tile(r,t,n,c,h,p,m,this.loadTilesWithAjax,v,f,d,b.getTileHashKey(r,l,u,p,v,d)),this.getFlip()?0===l&&(g.isRightMost=!0):l===o.x-1&&(g.isRightMost=!0),u===o.y-1&&(g.isBottomMost=!0),g.flipped=this.flipped,y[r][t][n]=g),(g=y[r][t][n]).lastTouchTime=i,g},_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(r,i,o){n._onTileLoad(e,t,r,i,o)},abort:function(){e.loading=!1}})},_onTileLoad:function(t,n,r,i,o){if(!r)return e.console.error("Tile %s failed to load: %s - error: %s",t,t.getUrl(),i),this.viewer.raiseEvent("tile-load-failed",{tile:t,tiledImage:this,time:n,message:i,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,r,e,o)};this._midDraw?window.setTimeout(s,1):s()},_setTileLoaded:function(t,n,r,i){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:r,tiledImage:a}),a._needsDraw=!0)}this.viewer.raiseEvent("tile-loaded",{tile:t,tiledImage:this,tileRequest:i,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,r,i,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=r.pixelFromPointNoRotate(a,!0),u=r.pixelFromPointNoRotate(a,!1),c=r.deltaPixelsFromPointsNoRotate(s,!0),f=r.deltaPixelsFromPointsNoRotate(s,!1),h=u.plus(f.divide(2)),p=i.squaredDistanceTo(h);n||(c=c.plus(new e.Point(1,1))),t.isRightMost&&this.wrapHorizontal&&(c.x+=.75),t.isBottomMost&&this.wrapVertical&&(c.y+=.75),t.position=l,t.size=c,t.squaredDistance=p,t.visibility=o},_blendTile:function(e,t,n,r,i,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*=i),e.opacity=s,this.lastDrawn.push(e),1===s)this._setCoverage(this.coverage,r,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(i){if(0!==this.opacity&&(0!==i.length||this.placeholderFillStyle)){var o,a,s,l=i[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 u,c=this.viewport.getZoom(!0),f=this.viewportToImageZoom(c);i.length>1&&f>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||(u=this.viewport.viewportToViewerElementRectangle(this.getClippedBounds(!0)).getIntegerBoundingBox(),this._drawer.viewer.viewport.getFlip()&&(this.viewport.getRotation(!0)%360==0&&this.getRotation(!0)%360==0||(u.x=this._drawer.viewer.container.clientWidth-(u.x+u.width))),u=u.times(e.pixelDensityRatio)),this._drawer._clear(!0,u)),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 h=!1;if(this._clip){this._drawer.saveContext(o);var p=this.imageToViewportRectangle(this._clip,!0);p=p.rotate(-this.getRotation(!0),this._getRotationPoint(!0));var d=this._drawer.viewportToDrawerRectangle(p);a&&(d=d.times(a)),s&&(d=d.translate(s)),this._drawer.setClip(d,o),h=!0}if(this._croppingPolygons){var v=this;this._drawer.saveContext(o);try{var m=this._croppingPolygons.map((function(e){return e.map((function(e){var t=v.imageToViewportCoordinates(e.x,e.y,!0).rotate(-v.getRotation(!0),v._getRotationPoint(!0)),n=v._drawer.viewportCoordToDrawerCoord(t);return a&&(n=n.times(a)),n}))}));this._drawer.clipWithPolygons(m,o)}catch(t){e.console.error(t)}h=!0}if(this.placeholderFillStyle&&!1===this._hasOpaqueTile){var g=this._drawer.viewportToDrawerRectangle(this.getBounds(!0));a&&(g=g.times(a)),s&&(g=g.translate(s));var y=null;y="function"==typeof this.placeholderFillStyle?this.placeholderFillStyle(this,this._drawer.context):this.placeholderFillStyle,this._drawer.drawRectangle(g,y,o)}var b=function(i){if("number"==typeof i)return r(i);if(!i||!e.Browser)return t;var o=i[e.Browser.vendor];n(o)&&(o=i["*"]);return r(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=i.length-1;x>=0;x--)l=i[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});h&&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:u}),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(i)}},_drawDebugInfo:function(t){if(this.debugMode)for(var n=t.length-1;n>=0;n--){var r=t[n];try{this._drawer.drawDebugInfo(r,t.length,n,this)}catch(t){e.console.error(t)}}},_providesCoverage:function(e,t,n,r){var i,o,a,s;if(!e[t])return!1;if(void 0===n||void 0===r){for(a in i=e[t])if(Object.prototype.hasOwnProperty.call(i,a))for(s in o=i[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][r]||!0===e[t][n][r]},_isCovered:function(e,t,n,r){return void 0===n||void 0===r?this._providesCoverage(e,t+1):this._providesCoverage(e,t+1,2*n,2*r)&&this._providesCoverage(e,t+1,2*n,2*r+1)&&this._providesCoverage(e,t+1,2*n+1,2*r)&&this._providesCoverage(e,t+1,2*n+1,2*r+1)},_setCoverage:function(t,n,r,i,o){t[n]?(t[n][r]||(t[n][r]={}),t[n][r][i]=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 r(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(r){e.console.assert(r,"[TileCache.cacheTile] options is required"),e.console.assert(r.tile,"[TileCache.cacheTile] options.tile is required"),e.console.assert(r.tile.cacheKey,"[TileCache.cacheTile] options.tile.cacheKey is required"),e.console.assert(r.tiledImage,"[TileCache.cacheTile] options.tiledImage is required");var i=r.cutoff||0,o=this._tilesLoaded.length,a=this._imagesLoaded[r.tile.cacheKey];if(a||(r.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."),r.data=r.image),e.console.assert(r.data,"[TileCache.cacheTile] options.data is required to create an ImageRecord"),a=this._imagesLoaded[r.tile.cacheKey]=new n({data:r.data,ownerTile:r.tile,create:r.tiledImage.source.createTileCache,destroy:r.tiledImage.source.destroyTileCache,getImage:r.tiledImage.source.getTileCacheDataAsImage,getData:r.tiledImage.source.getTileCacheData,getRenderedContext:r.tiledImage.source.getTileCacheDataAsContext2D}),this._imagesLoadedCount++),a.addTile(r.tile),r.tile.cacheImageRecord=a,this._imagesLoadedCount>this._maxImageCacheCount){for(var s,l,u,c,f,h,p=null,d=-1,v=null,m=this._tilesLoaded.length-1;m>=0;m--)(s=(h=this._tilesLoaded[m]).tile).level<=i||s.beingDrawn||(p?(c=s.lastTouchTime,l=p.lastTouchTime,f=s.level,u=p.level,(c<l||c===l&&f>u)&&(p=s,d=m,v=h)):(p=s,d=m,v=h));p&&d>=0&&(this._unloadTile(v),o=d)}this._tilesLoaded[o]=new t({tile:r.tile,tiledImage:r.tiledImage})},clearTilesFor:function(t){var n;e.console.assert(t,"[TileCache.clearTilesFor] tiledImage is required");for(var r=0;r<this._tilesLoaded.length;++r)(n=this._tilesLoaded[r]).tiledImage===t&&(this._unloadTile(n),this._tilesLoaded.splice(r,1),r--)},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,r=t.tiledImage;n.unload(),n.cacheImageRecord=null;var i=this._imagesLoaded[n.cacheKey];i.removeTile(n),i.getTileCount()||(i.destroy(),delete this._imagesLoaded[n.cacheKey],this._imagesLoadedCount--),r.viewer.raiseEvent("tile-unloaded",{tile:n,tiledImage:r})}}}(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 r=Math.max(0,Math.min(this._items.length,n.index));this._items.splice(r,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 r=this.getIndexOfItem(t);if(n>=this._items.length)throw new Error("Index bigger than number of layers.");n!==r&&-1!==r&&(this._items.splice(r,1),this._items.splice(n,0,t),this._needsDraw=!0,this.raiseEvent("item-index-change",{item:t,previousIndex:r,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,r=(t=t||{}).immediately||!1,i=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 u,c,f,h,p,d=0,v=0;this.setAutoRefigureSizes(!1);for(var m=0;m<this._items.length;m++)m&&m%n==0&&("horizontal"===i?(v+=l,d=0):(d+=l,v=0)),h=(f=(c=(u=this._items[m]).getBounds()).width>c.height?s:s*(c.width/c.height))*(c.height/c.width),p=new e.Point(d+(s-f)/2,v+(s-h)/2),u.setPosition(p,r),u.setWidth(f,r),"horizontal"===i?d+=l:v+=l;this.setAutoRefigureSizes(!0)},_figureSizes:function(){var t=this._homeBounds?this._homeBounds.clone():null,n=this._contentSize?this._contentSize.clone():null,r=this._contentFactor||0;if(this._items.length){var i=this._items[0],o=i.getBounds();this._contentFactor=i.getContentSize().x/o.width;for(var a=i.getClippedBounds().getBoundingBox(),s=a.x,l=a.y,u=a.x+a.width,c=a.y+a.height,f=1;f<this._items.length;f++)o=(i=this._items[f]).getBounds(),this._contentFactor=Math.max(this._contentFactor,i.getContentSize().x/o.width),a=i.getClippedBounds().getBoundingBox(),s=Math.min(s,a.x),l=Math.min(l,a.y),u=Math.max(u,a.x+a.width),c=Math.max(c,a.y+a.height);this._homeBounds=new e.Rect(s,l,u-s,c-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===r&&this._homeBounds.equals(t)&&this._contentSize.equals(n)||this.raiseEvent("metrics-change",{})},_raiseRemoveItem:function(e){this.raiseEvent("remove-item",{item:e})}})}(s)},49486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(84639),o=s(i),a=s(n(78952));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),r(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),r=void 0;if(this.props.useWindow){var i=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:i.scrollTop;r=this.props.isReverse?o:this.calculateOffset(e,o)}else r=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;r<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,r=t.element,i=t.hasMore,a=(t.initialLoad,t.isReverse),s=t.loader,l=(t.loadMore,t.pageStart,t.ref),u=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));u.ref=function(t){e.scrollComponent=t,l&&l(t)};var c=[n];return i&&(s?a?c.unshift(s):c.push(s):this.defaultLoader&&(a?c.unshift(this.defaultLoader):c.push(this.defaultLoader))),o.default.createElement(r,u,c)}}]),t}(i.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},46800:(e,t,n)=>{e.exports=n(49486)},20658:(e,t,n)=>{"use strict";var r=n(48226);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){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:i};return n.PropTypes=n,n}},78952:(e,t,n)=>{e.exports=n(20658)()},48226:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1967:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,u=60112,c=60113,f=60120,h=60115,p=60116,d=60121,v=60122,m=60117,g=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),u=b("react.forward_ref"),c=b("react.suspense"),f=b("react.suspense_list"),h=b("react.memo"),p=b("react.lazy"),d=b("react.block"),v=b("react.server.block"),m=b("react.fundamental"),g=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 i:case a:case o:case c:case f:return e;default:switch(e&&e.$$typeof){case l:case u:case p:case h:case s:return e;default:return t}}case r:return t}}}},58740:(e,t,n)=>{"use strict";n(1967)},74762:(e,t,n)=>{"use strict";function r(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 r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(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 i(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var o=2,a=3,s=4;function l(e,t,n,r,i,l,u){this.acceptsBooleans=t===o||t===a||t===s,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=u}var u={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){u[e]=new l(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=r(e,2),n=t[0],i=t[1];u[n]=new l(n,1,!1,i,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){u[e]=new l(e,o,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){u[e]=new l(e,o,!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){u[e]=new l(e,a,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){u[e]=new l(e,a,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){u[e]=new l(e,s,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){u[e]=new l(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){u[e]=new l(e,5,!1,e.toLowerCase(),null,!1,!1)}));var c=/[\-\:]([a-z])/g,f=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(c,f);u[t]=new l(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(c,f);u[t]=new l(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(c,f);u[t]=new l(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){u[e]=new l(e,1,!1,e.toLowerCase(),null,!1,!1)}));u.xlinkHref=new l("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){u[e]=new l(e,1,!1,e.toLowerCase(),null,!0,!0)}));var h=n(73932),p=h.CAMELCASE,d=h.SAME,v=h.possibleStandardNames,m=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]*$")),g=Object.keys(v).reduce((function(e,t){var n=v[t];return n===d?e[t]=t:n===p?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=a,t.BOOLEANISH_STRING=o,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=s,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return u.hasOwnProperty(e)?u[e]:null},t.isCustomAttribute=m,t.possibleStandardNames=g},73932:(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}},78870:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=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"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case h:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case f:case v:case d:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return g(e)===u}},12553:(e,t,n)=>{"use strict";e.exports=n(78870)},68020:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(84639)),o=a(n(65414));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),r(t,[{key:"render",value:function(){return i.default.createElement("input",this.props,this.props.children)}}]),t}(i.default.Component);t.default=(0,o.default)(s)},33922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=l(n(84639)),a=l(n(90106)),s=l(n(13934));function l(e){return e&&e.__esModule?e:{default:e}}var u=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(){var e=this,t=r({},this.props);return t.parentBindings&&delete t.parentBindings,o.default.createElement("div",r({},t,{ref:function(t){e.props.parentBindings.domNode=t}}),this.props.children)}}]),t}(o.default.Component);u.propTypes={name:s.default.string,id:s.default.string},t.default=(0,a.default)(u)},98770:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(84639)),i=o(n(65414));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,i;!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=i=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.render=function(){return r.default.createElement("a",i.props,i.props.children)},a(i,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}(r.default.Component);t.default=(0,i.default)(s)},30399:(e,t,n)=>{"use strict";t.rU=void 0;var r=p(n(98770)),i=p(n(68020)),o=p(n(33922)),a=p(n(29217)),s=p(n(1765)),l=p(n(3685)),u=p(n(21274)),c=p(n(65414)),f=p(n(90106)),h=p(n(79958));function p(e){return e&&e.__esModule?e:{default:e}}t.rU=r.default,i.default,o.default,a.default,s.default,l.default,u.default,c.default,f.default,h.default,r.default,i.default,o.default,a.default,s.default,l.default,u.default,c.default,f.default,h.default},79958:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),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(84639),u=(n(31346),n(91749),n(3685)),c=n(29217),f=n(13934),h=n(13591),p={to:f.string.isRequired,containerId:f.string,container:f.object,activeClass:f.string,spy:f.bool,smooth:f.oneOfType([f.bool,f.string]),offset:f.number,delay:f.number,isDynamic:f.bool,onClick:f.func,duration:f.oneOfType([f.number,f.func]),absolute:f.bool,onSetActive:f.func,onSetInactive:f.func,ignoreCancelEvents:f.bool,hashSpy:f.bool,spyThrottle:f.number},d={Scroll:function(e,t){console.warn("Helpers.Scroll is deprecated since v1.7.0");var n=t||c,f=function(t){function c(e){o(this,c);var t=a(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e));return d.call(t),t.state={active:!1},t}return s(c,t),i(c,[{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();u.isMounted(e)||u.mount(e,this.props.spyThrottle),this.props.hashSpy&&(h.isMounted()||h.mount(n),h.mapContainer(this.props.to,e)),this.props.spy&&u.addStateHandler(this.stateHandler),u.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){u.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=r({},this.props);for(var i in p)n.hasOwnProperty(i)&&delete n[i];return n.className=t,n.onClick=this.handleClick,l.createElement(e,n)}}]),c}(l.Component),d=function(){var e=this;this.scrollTo=function(t,i){n.scrollTo(t,r({},e.state,i))},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 r=e.getScrollSpyContainer();if(!h.isMounted()||h.isInitialized()){var i=e.props.to,o=null,a=0,s=0,l=0;if(r.getBoundingClientRect)l=r.getBoundingClientRect().top;if(!o||e.props.isDynamic){if(!(o=n.get(i)))return;var c=o.getBoundingClientRect();s=(a=c.top-l+t)+c.height}var f=t-e.props.offset,p=f>=Math.floor(a)&&f<Math.floor(s),d=f<Math.floor(a)||f>=Math.floor(s),v=n.getActiveLink();return d?(i===v&&n.setActiveLink(void 0),e.props.hashSpy&&h.getHash()===i&&h.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive()),u.updateStates()):p&&v!==i?(n.setActiveLink(i),e.props.hashSpy&&h.changeHash(i),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(i)),u.updateStates()):void 0}}};return f.propTypes=p,f.defaultProps={offset:0},f},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),i(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;c.unregister(this.props.name)}},{key:"registerElems",value:function(e){c.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return l.createElement(e,r({},this.props,{parentBindings:this.childBindings}))}}]),n}(l.Component);return t.propTypes={name:f.string,id:f.string},t}};e.exports=d},21274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=(s(n(91749)),s(n(69994))),o=s(n(84320)),a=s(n(1765));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return i.default[e.smooth]||i.default.defaultEasing},u=function(){if("undefined"!=typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(e,t,n){window.setTimeout(e,n||1e3/60,(new Date).getTime())},c=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollLeft;var n=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return n?window.pageXOffset:r?document.documentElement.scrollLeft:document.body.scrollLeft},f=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollTop;var n=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return n?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop},h=function e(t,n,r){var i=n.data;if(n.ignoreCancelEvents||!i.cancel)if(i.delta=Math.round(i.targetPosition-i.startPosition),null===i.start&&(i.start=r),i.progress=r-i.start,i.percent=i.progress>=i.duration?1:t(i.progress/i.duration),i.currentPosition=i.startPosition+Math.ceil(i.delta*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?n.horizontal?i.containerElement.scrollLeft=i.currentPosition:i.containerElement.scrollTop=i.currentPosition:n.horizontal?window.scrollTo(i.currentPosition,0):window.scrollTo(0,i.currentPosition),i.percent<1){var o=e.bind(null,t,n);u.call(window,o)}else a.default.registered.end&&a.default.registered.end(i.to,i.target,i.currentPosition);else a.default.registered.end&&a.default.registered.end(i.to,i.target,i.currentPositionY)},p=function(e){e.data.containerElement=e?e.containerId?document.getElementById(e.containerId):e.container&&e.container.nodeType?e.container:document:null},d=function(e,t,n,r){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})),p(t),t.data.start=null,t.data.cancel=!1,t.data.startPosition=t.horizontal?c(t):f(t),t.data.targetPosition=t.absolute?e:e+t.data.startPosition,t.data.startPosition!==t.data.targetPosition){var i;t.data.delta=Math.round(t.data.targetPosition-t.data.startPosition),t.data.duration=("function"==typeof(i=t.duration)?i:function(){return i})(t.data.delta),t.data.duration=isNaN(parseFloat(t.data.duration))?1e3:parseFloat(t.data.duration),t.data.to=n,t.data.target=r;var s=l(t),d=h.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),u.call(window,d)}),t.delay):(a.default.registered.begin&&a.default.registered.begin(t.data.to,t.data.target),u.call(window,d))}else a.default.registered.end&&a.default.registered.end(t.data.to,t.data.target,t.data.currentPosition)},v=function(e){return(e=r({},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:d,getAnimationType:l,scrollToTop:function(e){d(0,v(e))},scrollToBottom:function(e){e=v(e),p(e),d(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,r=document.documentElement;return Math.max(n.scrollWidth,n.offsetWidth,r.clientWidth,r.scrollWidth,r.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,r=document.documentElement;return Math.max(n.scrollHeight,n.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}(e),e)},scrollTo:function(e,t){d(e,v(t))},scrollMore:function(e,t){t=v(t),p(t);var n=t.horizontal?c(t):f(t);d(e+n,t)}}},84320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(66267),i=["mousedown","mousewheel","touchmove","keydown"];t.default={subscribe:function(e){return"undefined"!=typeof document&&i.forEach((function(t){return(0,r.addPassiveEventListener)(document,t,e)}))}}},66267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.addPassiveEventListener=function(e,t,n){var r=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,!!r&&{passive:!0})},t.removePassiveEventListener=function(e,t,n){e.removeEventListener(t,n)}},90106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=l(n(84639)),a=(l(n(31346)),l(n(29217))),s=l(n(13934));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),i(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,r({},this.props,{parentBindings:this.childBindings}))}}]),n}(o.default.Component);return t.propTypes={name:s.default.string,id:s.default.string},t}},1765:(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},13591:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(66267);var r,i=n(91749),o=(r=i)&&r.__esModule?r:{default:r};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 r=this.containers[e]||document;n.scrollTo(e,{container:r})}},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},65414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=c(n(84639)),a=c(n(3685)),s=c(n(29217)),l=c(n(13934)),u=c(n(13591));function c(e){return e&&e.__esModule?e:{default:e}}var f={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 c.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),i(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&&(u.default.isMounted()||u.default.mount(n),u.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?r({},this.props.style,this.props.activeStyle):r({},this.props.style);var i=r({},this.props);for(var a in f)i.hasOwnProperty(a)&&delete i[a];return i.className=t,i.style=n,i.onClick=this.handleClick,o.default.createElement(e,i)}}]),s}(o.default.PureComponent),c=function(){var e=this;this.scrollTo=function(t,i){n.scrollTo(t,r({},e.state,i))},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,r){var i=e.getScrollSpyContainer();if(!u.default.isMounted()||u.default.isInitialized()){var o=e.props.horizontal,a=e.props.to,s=null,l=void 0,c=void 0;if(o){var f=0,h=0,p=0;if(i.getBoundingClientRect)p=i.getBoundingClientRect().left;if(!s||e.props.isDynamic){if(!(s=n.get(a)))return;var d=s.getBoundingClientRect();h=(f=d.left-p+t)+d.width}var v=t-e.props.offset;l=v>=Math.floor(f)&&v<Math.floor(h),c=v<Math.floor(f)||v>=Math.floor(h)}else{var m=0,g=0,y=0;if(i.getBoundingClientRect)y=i.getBoundingClientRect().top;if(!s||e.props.isDynamic){if(!(s=n.get(a)))return;var b=s.getBoundingClientRect();g=(m=b.top-y+r)+b.height}var w=r-e.props.offset;l=w>=Math.floor(m)&&w<Math.floor(g),c=w<Math.floor(m)||w>=Math.floor(g)}var x=n.getActiveLink();if(c){if(a===x&&n.setActiveLink(void 0),e.props.hashSpy&&u.default.getHash()===a){var E=e.props.saveHashHistory,S=void 0!==E&&E;u.default.changeHash("",S)}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 T=e.props.saveHashHistory,P=void 0!==T&&T;e.props.hashSpy&&u.default.changeHash(a,P),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(a,s))}}}};return l.propTypes=f,l.defaultProps={offset:0},l}},3685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(58821),o=(r=i)&&r.__esModule?r:{default:r},a=n(66267);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},29217:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=s(n(91749)),o=s(n(21274)),a=s(n(1765));function s(e){return e&&e.__esModule?e:{default:e}}var l={},u=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 u=e},getActiveLink:function(){return u},scrollTo:function(e,t){var n=this.get(e);if(n){var s=(t=r({},t,{absolute:!1})).containerId,l=t.container,u=void 0;u=s?document.getElementById(s):l&&l.nodeType?l:document,t.absolute=!0;var c=t.horizontal,f=i.default.scrollOffset(u,n,c)+(t.offset||0);if(!t.smooth)return a.default.registered.begin&&a.default.registered.begin(e,n),u===document?t.horizontal?window.scrollTo(f,0):window.scrollTo(0,f):u.scrollTop=f,void(a.default.registered.end&&a.default.registered.end(e,n));o.default.animateTopScroll(f,t,e,n)}else console.warn("target Element not found")}}},69994:(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}}},91749:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){for(var n=e.offsetTop,r=e.offsetParent;r&&!t(r);)n+=r.offsetTop,r=r.offsetParent;return{offsetTop:n,offsetParent:r}};t.default={updateHash:function(e,t){var n=0===e.indexOf("#")?e.substring(1):e,r=n?"#"+n:"",i=window&&window.location,o=r?i.pathname+i.search+r:i.pathname+i.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,r){if(r)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 i=n(t,(function(t){return t===e||t===document})),o=i.offsetTop;if(i.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}}},33459:(e,t,n)=>{"use strict";var r=n(35303);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){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:i};return n.PropTypes=n,n}},13934:(e,t,n)=>{e.exports=n(33459)()},35303:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},36764:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=r(n(57487)),o=n(38769);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,i.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}},38769:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,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||i.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(o,l)).replace(r,s))}},57487:(e,t,n)=>{var r=n(8751);function i(e,t){var n,i=null;if(!e||"string"!=typeof e)return i;for(var o,a,s=r(e),l="function"==typeof t,u=0,c=s.length;u<c;u++)o=(n=s[u]).property,a=n.value,l?t(o,a,n):a&&(i||(i={}),i[o]=a);return i}e.exports=i,e.exports.default=i},56352:()=>{self.fetch||(self.fetch=function(e,t){return t=t||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},l=function e(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:e,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)}))})},70791:function(e,t,n){!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},i=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set&&"function"==typeof t.prototype.entries}catch(e){return!1}})()||function(){var i=function e(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var n=typeof t;if("undefined"===n);else if("string"===n)""!==t&&this._fromString(t);else if(t instanceof e){var r=this;t.forEach((function(e,t){r.append(t,e)}))}else{if(null===t||"object"!==n)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var i=0;i<t.length;i++){var o=t[i];if("[object Array]"!==Object.prototype.toString.call(o)&&2===o.length)throw new TypeError("Expected [string, any] as entry at index "+i+" of URLSearchParams's input");this.append(o[0],o[1])}else for(var a in t)t.hasOwnProperty(a)&&this.append(a,t[a])}},o=i.prototype;o.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},o.delete=function(e){delete this._entries[e]},o.get=function(e){return e in this._entries?this._entries[e][0]:null},o.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},o.has=function(e){return e in this._entries},o.set=function(e,t){this._entries[e]=[String(t)]},o.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var i=0;i<n.length;i++)e.call(t,n[i],r,this)}},o.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),n(e)},o.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),n(e)},o.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),n(e)},t&&(o[Symbol.iterator]=o.entries),o.toString=function(){var e=[];return this.forEach((function(t,n){e.push(r(n)+"="+r(t))})),e.join("&")},e.URLSearchParams=i}();var o=e.URLSearchParams.prototype;"function"!=typeof o.sort&&(o.sort=function(){var e=this,t=[];this.forEach((function(n,r){t.push([r,n]),e._entries||e.delete(r)})),t.sort((function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof o._fromString&&Object.defineProperty(o,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++)this.delete(t[n])}var r,o=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<o.length;n++)r=o[n].split("="),this.append(i(r[0]),r.length>1?i(r[1]):"")}})}(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t)),n&&"string"!=typeof n&&(n=String(n));var r,i=document;if(n&&(void 0===e.location||n!==e.location.href)){n=n.toLowerCase(),(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=n,i.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var o=i.createElement("a");o.href=t,r&&(i.body.appendChild(o),o.href=o.href);var a=i.createElement("input");if(a.type="url",a.value=t,":"===o.protocol||!/:/.test(o.href)||!a.checkValidity()&&!n)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var s=new e.URLSearchParams(this.search),l=!0,u=!0,c=this;["append","delete","set"].forEach((function(e){var t=s[e];s[e]=function(){t.apply(s,arguments),l&&(u=!1,c.search=s.toString(),u=!0)}})),Object.defineProperty(this,"searchParams",{value:s,enumerable:!0});var f=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==f&&(f=this.search,u&&(l=!1,this.searchParams._fromString(this.search),l=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)},1589:(e,t,n)=>{"use strict";var r=n(84639);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s((function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,n,t]),a((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},73847:(e,t,n)=>{"use strict";var r=n(84639),i=n(48216);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=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var f=s(null);if(null===f.current){var h={hasValue:!1,value:null};f.current=h}else h=f.current;f=u((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,i]);var p=a(e,f[0],f[1]);return l((function(){h.hasValue=!0,h.value=p}),[p]),c(p),p}},48216:(e,t,n)=>{"use strict";e.exports=n(1589)},81550:(e,t,n)=>{"use strict";e.exports=n(73847)},84639:t=>{"use strict";t.exports=e},31346:e=>{"use strict";e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e].call(o.exports,o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};return(()=>{"use strict";i(58026),i(41337),i(23001),i(82984),i(40522),i(26329),i(21972),i(82021),i(61747),i(11577),i(16574),i(87620),i(45503),i(47793),i(57617),i(55793),i(40585),i(73172),i(77549),i(94843),i(69779),i(71942),i(46664),i(31814),i(25163),i(6539),i(95968),i(11110),i(46295),i(1945),i(71631),i(71765),i(30010),i(77012),i(16408),i(77653),i(52180),i(96194),i(98166),i(60079),i(64431),i(33549),i(50090),i(52050),i(70158),i(18394),i(87655),i(89239),i(95899),i(77556),i(60388),i(51966),i(44343),i(21437),i(21282),i(50889),i(75982),i(71648),i(4823),i(71804),i(1104),i(70397),i(34496),i(78615),i(40284),i(99817),i(24465),i(46469),i(25357),i(28081),i(93204),i(501),i(37731),i(77810),i(97930),i(29976),i(29176),i(73300),i(51234),i(77846),i(6797),i(53606),i(68663),i(62989),i(52276),i(19830),i(94568),i(38786),i(39160),i(88455),i(85972),i(47042),i(66082),i(14298),i(55686),i(54925),i(58436),i(8607),i(33375),i(16252),i(59097),i(88819),i(87874),i(37038),i(62639),i(46023),i(64311),i(68907),i(92088),i(23658),i(16084),i(28757),i(33873),i(91214),i(67921),i(69369),i(145),i(12745),i(37175),i(98611),i(48448),i(94133),i(28611),i(68156),i(56449),i(73949),i(98017),i(37307),i(71449),i(49582),i(79841),i(78864),i(80202),i(5851),i(14773),i(68244),i(84184),i(5088),i(7296),i(59919),i(8542),i(28491),i(13290),i(42379),i(75422),i(67250),i(59770),i(76139),i(98963),i(77233),i(42546),i(79660),i(69705),i(57803),i(81511),i(88182),i(70117),i(61036),i(85455),i(30186),i(36401),i(97532),i(73908),i(2584),i(21295),i(72428),i(9759),i(99089),i(20518),i(44176),i(58484),i(56506),i(1699),i(14160),i(29681),i(5194),i(18673),i(60140),i(53469),i(49987),i(54429),i(50106),i(72360),i(89583),i(16885),i(98214),i(28614),i(61776),i(25705),i(55221),i(73792),i(10701),i(17877),i(55823),i(29845),i(37943),i(94869),i(16048),i(99571),i(45757),i(35887),i(78322),i(34372),i(24547),i(20362),i(50909),i(65268),i(14533),i(70791),i(56352)})(),(()=>{"use strict";i.d(o,{default:()=>Ky});var e=i(84639),t=i.n(e);function n(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function r(e,t){if(null==e)return{};var r,i,o=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}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 u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?a({},e):e;return l(e)&&l(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(l(t[i])&&i in e?r[i]=u(e[i],t[i],n):r[i]=t[i])})),r}var c=["xs","sm","md","lg","xl"];function f(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==s(r))return r;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 h(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t,n){var r;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,h({},e.up("sm"),a({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},h(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),h(r,e.up("sm"),{minHeight:64}),r)},n)}function d(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 v={black:"#000",white:"#fff"};const m={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 g={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 S(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 T(e){if(e.type)return e;if("#"===e.charAt(0))return T(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(d(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function P(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 O(e){var t="hsl"===(e=T(e)).type?T(function(e){var t=(e=T(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-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])),P({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 C(e,t){if(e=T(e),t=S(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 P(e)}function R(e,t){if(e=T(e),t=S(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 P(e)}var k={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:v.white,default:m[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}},_={text:{primary:v.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:m[800],default:"#303030"},action:{active:v.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 j(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=R(e.main,i):"dark"===t&&(e.dark=C(e.main,o)))}function I(e){var t=e.primary,n=void 0===t?{light:g[300],main:g[500],dark:g[700]}:t,i=e.secondary,o=void 0===i?{light:y.A200,main:y.A400,dark:y.A700}:i,s=e.error,l=void 0===s?{light:b[300],main:b[500],dark:b[700]}:s,c=e.warning,f=void 0===c?{light:w[300],main:w[500],dark:w[700]}:c,h=e.info,p=void 0===h?{light:x[300],main:x[500],dark:x[700]}:h,S=e.success,T=void 0===S?{light:E[300],main:E[500],dark:E[700]}:S,P=e.type,C=void 0===P?"light":P,R=e.contrastThreshold,I=void 0===R?3:R,A=e.tonalOffset,D=void 0===A?.2:A,M=r(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){var t=function(e,t){var n=O(e),r=O(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,_.text.primary)>=I?_.text.primary:k.text.primary;return t}var N=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,r=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(d(4,t));if("string"!=typeof e.main)throw new Error(d(5,JSON.stringify(e.main)));return j(e,"light",n,D),j(e,"dark",r,D),e.contrastText||(e.contrastText=L(e.main)),e},B={dark:_,light:k};return u(a({common:v,type:C,primary:N(n),secondary:N(o,"A400","A200","A700"),error:N(l),warning:N(f),info:N(p),success:N(T),grey:m,contrastThreshold:I,getContrastText:L,augmentColor:N,tonalOffset:D},B[C]),M)}function A(e){return Math.round(1e5*e)/1e5}function D(e){return A(e)}var M={textTransform:"uppercase"},L='"Roboto", "Helvetica", "Arial", sans-serif';function N(e,t){var n="function"==typeof t?t(e):t,i=n.fontFamily,o=void 0===i?L:i,s=n.fontSize,l=void 0===s?14:s,c=n.fontWeightLight,f=void 0===c?300:c,h=n.fontWeightRegular,p=void 0===h?400:h,d=n.fontWeightMedium,v=void 0===d?500:d,m=n.fontWeightBold,g=void 0===m?700:m,y=n.htmlFontSize,b=void 0===y?16:y,w=n.allVariants,x=n.pxToRem,E=r(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var S=l/14,T=x||function(e){return"".concat(e/b*S,"rem")},P=function(e,t,n,r,i){return a({fontFamily:o,fontWeight:e,fontSize:T(t),lineHeight:n},o===L?{letterSpacing:"".concat(A(r/t),"em")}:{},i,w)},O={h1:P(f,96,1.167,-1.5),h2:P(f,60,1.2,-.5),h3:P(p,48,1.167,0),h4:P(p,34,1.235,.25),h5:P(p,24,1.334,0),h6:P(v,20,1.6,.15),subtitle1:P(p,16,1.75,.15),subtitle2:P(v,14,1.57,.1),body1:P(p,16,1.5,.15),body2:P(p,14,1.43,.15),button:P(v,14,1.75,.4,M),caption:P(p,12,1.66,.4),overline:P(p,12,2.66,1,M)};return u(a({htmlFontSize:b,pxToRem:T,round:D,fontFamily:o,fontSize:l,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:g},O),E,{clone:!1})}function B(){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 F=["none",B(0,2,1,-1,0,1,1,0,0,1,3,0),B(0,3,1,-2,0,2,2,0,0,1,5,0),B(0,3,3,-2,0,3,4,0,0,1,8,0),B(0,2,4,-1,0,4,5,0,0,1,10,0),B(0,3,5,-1,0,5,8,0,0,1,14,0),B(0,3,5,-1,0,6,10,0,0,1,18,0),B(0,4,5,-2,0,7,10,1,0,2,16,1),B(0,5,5,-3,0,8,10,1,0,3,14,2),B(0,5,6,-3,0,9,12,1,0,3,16,2),B(0,6,6,-3,0,10,14,1,0,4,18,3),B(0,6,7,-4,0,11,15,1,0,4,20,3),B(0,7,8,-4,0,12,17,2,0,5,22,4),B(0,7,8,-4,0,13,19,2,0,5,24,4),B(0,7,9,-4,0,14,21,2,0,5,26,4),B(0,8,9,-5,0,15,22,2,0,6,28,5),B(0,8,10,-5,0,16,24,2,0,6,30,5),B(0,8,11,-5,0,17,26,2,0,6,32,5),B(0,9,11,-5,0,18,28,2,0,7,34,6),B(0,9,12,-6,0,19,29,2,0,7,36,6),B(0,10,13,-6,0,20,31,3,0,8,38,7),B(0,10,13,-6,0,21,33,3,0,8,40,7),B(0,10,14,-6,0,22,35,3,0,8,42,7),B(0,11,14,-7,0,23,36,3,0,9,44,8),B(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,r=new Array(t);n<t;n++)r[n]=e[n];return r}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 r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}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?u(e,t,{clone:!1}):e};var X={m:"margin",p:"padding"},Z={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Y=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(!$[e])return[e];e=$[e]}var t=V(e.split(""),2),n=t[0],r=t[1],i=X[n],o=Z[r]||"";return Array.isArray(o)?o.map((function(e){return i+e})):[i+o]})),K=["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 Q(e,t){return function(n){return e.reduce((function(e,r){return e[r]=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===K.indexOf(n))return null;var r=Q(Y(n),t),i=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||G;return t.reduce((function(e,i,o){return e[r.up(r.keys[o])]=n(t[o]),e}),{})}if("object"===s(t)){var i=e.theme.breakpoints||G;return Object.keys(t).reduce((function(e,r){return e[i.up(r)]=n(t[r]),e}),{})}return n(t)}(e,i,r)})).reduce(q,{})}ee.propTypes={},ee.filterProps=K;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 re(e){return"".concat(Math.round(e),"ms")}const ie={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,i=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;r(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof i?i:re(i)," ").concat(a," ").concat("string"==typeof l?l:re(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,i=e.mixins,o=void 0===i?{}:i,s=e.palette,l=void 0===s?{}:s,f=e.spacing,h=e.typography,d=void 0===h?{}:h,v=r(e,["breakpoints","mixins","palette","spacing","typography"]),m=I(l),g=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,o=void 0===i?"px":i,s=e.step,l=void 0===s?5:s,u=r(e,["values","unit","step"]);function f(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function h(e,t){var r=c.indexOf(t);return r===c.length-1?f(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[c[r+1]]?n[c[r+1]]:t)-l/100).concat(o,")")}return a({keys:c,values:n,up:f,down:function(e){var t=c.indexOf(e)+1,r=n[c[t]];return t===c.length?f("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-l/100).concat(o,")")},between:h,only:function(e){return h(e,e)},width:function(e){return n[e]}},u)}(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),r=0;r<e;r++)n[r]=arguments[r];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}(f),b=u({breakpoints:g,direction:"ltr",mixins:p(g,y,o),overrides:{},palette:m,props:{},shadows:F,typography:N(m,d),spacing:y,shape:z,transitions:ie,zIndex:oe},v),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 u(e,t)}),b)}const se=ae;const le=t().createContext(null);function ue(){return t().useContext(le)}const ce="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";const fe=function(e){var n=e.children,r=e.theme,i=ue(),o=t().useMemo((function(){var e=null===i?r:function(e,t){return"function"==typeof t?t(e):a({},e,t)}(i,r);return null!=e&&(e[ce]=null!==i),e}),[r,i]);return t().createElement(le.Provider,{value:o},n)};function he(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var pe=i(89483),de=i.n(pe);const ve=se();function me(){return ue()||ve}var ge=function(e,t){return!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?c.indexOf(e)<=c.indexOf(t):c.indexOf(e)<c.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 i=t.withTheme,o=void 0!==i&&i,s=t.noSSR,l=void 0!==s&&s,u=t.initialWidth;function c(t){var i=me(),s=t.theme||i,c=he({theme:s,name:"MuiWithWidth",props:a({},t)}),f=c.initialWidth,h=c.width,p=r(c,["initialWidth","width"]),d=e.useState(!1),v=d[0],m=d[1];ye((function(){m(!0)}),[]);var g=s.breakpoints.keys.slice().reverse().reduce((function(t,n){var r=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=ue(),i=he({theme:r,name:"MuiUseMediaQuery",props:{}}),o="function"==typeof t?t(r):t;o=o.replace(/^@media( ?)/m,"");var s="undefined"!=typeof window&&void 0!==window.matchMedia,l=a({},i,n),u=l.defaultMatches,c=void 0!==u&&u,f=l.matchMedia,h=void 0===f?s?window.matchMedia:null:f,p=l.noSsr,d=void 0!==p&&p,v=l.ssrMatchMedia,m=void 0===v?null:v,g=e.useState((function(){return d&&s?h(o).matches:m?m(o).matches:c})),y=g[0],b=g[1];return e.useEffect((function(){var e=!0;if(s){var t=h(o),n=function(){e&&b(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[o,h,s]),y}(s.breakpoints.up(n));return!t&&r?n:t}),null),y=a({width:h||(v||l?g:void 0)||f||u},o?{theme:s}:{},p);return void 0===y.width?null:e.createElement(n,y)}return de()(c,n),c}};var we;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(we||(we={}));var xe=function(e){return e};var Ee="beforeunload",Se="popstate";function Te(e){e.preventDefault(),e.returnValue=""}function Pe(){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 Oe(){return Math.random().toString(36).substr(2,8)}function Ce(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,o=e.hash,a=void 0===o?"":o;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function Re(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var ke=i(48216),_e=i(81550),je=i(31346),Ie=i.n(je);var Ae=function(e){e()},De=function(){return Ae},Me=(0,e.createContext)(null);var Le=function(){throw new Error("uSES not initialized!")};var Ne=i(12553),Be=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Fe(e,t,n,r,i){var o,a,s,l,u,c=i.areStatesEqual,f=i.areOwnPropsEqual,h=i.areStatePropsEqual,p=!1;function d(i,p){var d,v,m=!f(p,a),g=!c(i,o,p,a);return o=i,a=p,m&&g?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):m?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):g?(d=e(o,a),v=!h(d,s),s=d,v&&(u=n(s,l,a)),u):u}return function(i,c){return p?d(i,c):(s=e(o=i,a=c),l=t(r,a),u=n(s,l,a),p=!0,u)}}function ze(e){return function(t){var n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function He(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Ue(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=He(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=He(i),i=r(t,n)),i},r}}function Ve(e,t){return function(n,r){throw new Error("Invalid value of type ".concat(typeof e," for ").concat(t," argument when connecting component ").concat(r.wrappedComponentName,"."))}}function We(e,t,n){return a({},n,e,t)}var Ge={notify:function(){},get:function(){return[]}};function qe(e,t){var n,r=Ge;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=De(),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 r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=Ge)},getListeners:function(){return r}};return a}var Xe=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?e.useLayoutEffect:e.useEffect;function Ze(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function $e(e,t){if(Ze(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Ze(e[n[i]],t[n[i]]))return!1;return!0}function Ye(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 r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}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 Ke(e){return function(e){if(Array.isArray(e))return Qe(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 Qe(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)?Qe(e,t):void 0}}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var et=["reactReduxForwardedRef"],tt=Le,nt=[null,null];function rt(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function it(e,t){return e===t}const ot=function(r,i,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=(s.pure,s.areStatesEqual),u=void 0===l?it:l,c=s.areOwnPropsEqual,f=void 0===c?$e:c,h=s.areStatePropsEqual,p=void 0===h?$e:h,d=s.areMergedPropsEqual,v=void 0===d?$e:d,m=s.forwardRef,g=void 0!==m&&m,y=s.context,b=void 0===y?Me:y,w=function(e){return e?"function"==typeof e?Ue(e):Ve(e,"mapStateToProps"):ze((function(){return{}}))}(r),x=function(e){return e&&"object"==typeof e?ze((function(t){return function(e,t){var n={},r=function(){var r=e[i];"function"==typeof r&&(n[i]=function(){return t(r.apply(void 0,arguments))})};for(var i in e)r();return n}(e,t)})):e?"function"==typeof e?Ue(e):Ve(e,"mapDispatchToProps"):ze((function(e){return{dispatch:e}}))}(i),E=function(e){return e?"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.areMergedPropsEqual,o=!1;return function(t,n,a){var s=e(t,n,a);return o?i(s,r)||(r=s):(o=!0,r=s),r}}}(e):Ve(e,"mergeProps"):function(){return We}}(o),S=Boolean(r);return function(r){var i=r.displayName||r.name||"Component",o="Connect(".concat(i,")"),s={shouldHandleStateChanges:S,displayName:o,wrappedComponentName:i,WrappedComponent:r,initMapStateToProps:w,initMapDispatchToProps:x,initMergeProps:E,areStatesEqual:u,areStatePropsEqual:p,areOwnPropsEqual:f,areMergedPropsEqual:v};function l(i){var o=(0,e.useMemo)((function(){var e=i.reactReduxForwardedRef,t=n(i,et);return[i.context,e,t]}),[i]),l=Ye(o,3),u=l[0],c=l[1],f=l[2],h=(0,e.useMemo)((function(){return u&&u.Consumer&&(0,Ne.isContextConsumer)(t().createElement(u.Consumer,null))?u:b}),[u,b]),p=(0,e.useContext)(h),d=Boolean(i.store)&&Boolean(i.store.getState)&&Boolean(i.store.dispatch),v=Boolean(p)&&Boolean(p.store);var m=d?i.store:p.store,g=v?p.getServerState:m.getState,y=(0,e.useMemo)((function(){return function(e,t){var r=t.initMapStateToProps,i=t.initMapDispatchToProps,o=t.initMergeProps,a=n(t,Be);return Fe(r(e,a),i(e,a),o(e,a),e,a)}(m.dispatch,s)}),[m]),w=(0,e.useMemo)((function(){if(!S)return nt;var e=qe(m,d?void 0:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,d,p]),x=Ye(w,2),E=x[0],T=x[1],P=(0,e.useMemo)((function(){return d?p:a({},p,{subscription:E})}),[d,p,E]),O=(0,e.useRef)(),C=(0,e.useRef)(f),R=(0,e.useRef)(),k=(0,e.useRef)(!1),_=((0,e.useRef)(!1),(0,e.useRef)(!1)),j=(0,e.useRef)();Xe((function(){return _.current=!0,function(){_.current=!1}}),[]);var I,A,D,M,L=(0,e.useMemo)((function(){return function(){return R.current&&f===C.current?R.current:y(m.getState(),f)}}),[m,f]),N=(0,e.useMemo)((function(){return function(e){return E?function(e,t,n,r,i,o,a,s,l,u,c){if(!e)return function(){};var f=!1,h=null,p=function(){if(!f&&s.current){var e,n,p=t.getState();try{e=r(p,i.current)}catch(e){n=e,h=e}n||(h=null),e===o.current?a.current||u():(o.current=e,l.current=e,a.current=!0,c())}};return n.onStateChange=p,n.trySubscribe(),p(),function(){if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,h)throw h}}(S,m,E,y,C,O,k,_,R,T,e):function(){}}}),[E]);I=rt,A=[C,O,k,f,R,T],Xe((function(){return I.apply(void 0,Ke(A))}),D);try{M=tt(N,L,g?function(){return y(g(),f)}:L)}catch(e){throw j.current&&(e.message+="\nThe error may be correlated with this previous error:\n".concat(j.current.stack,"\n\n")),e}Xe((function(){j.current=void 0,R.current=void 0,O.current=M}));var B=(0,e.useMemo)((function(){return t().createElement(r,a({},M,{ref:c}))}),[c,r,M]);return(0,e.useMemo)((function(){return S?t().createElement(h.Provider,{value:P},B):B}),[h,B,P])}var c=t().memo(l);if(c.WrappedComponent=r,c.displayName=l.displayName=o,g){var h=t().forwardRef((function(e,n){return t().createElement(c,a({},e,{reactReduxForwardedRef:n}))}));return h.displayName=o,h.WrappedComponent=r,de()(h,r)}return de()(c,r)}};const at=function(n){var r=n.store,i=n.context,o=n.children,a=n.serverState,s=(0,e.useMemo)((function(){var e=qe(r);return{store:r,subscription:e,getServerState:a?function(){return a}:void 0}}),[r,a]),l=(0,e.useMemo)((function(){return r.getState()}),[r]);Xe((function(){var e=s.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==r.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=void 0}}),[s,l]);var u=i||Me;return t().createElement(u.Provider,{value:s},o)};var st,lt,ut;function ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ht(r.key),r)}}function ft(e,t,n){return t&&ct(e.prototype,t),n&&ct(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ht(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dt(e){var t=gt();return function(){var n,r=bt(e);if(t){var i=bt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 vt(e){var t="function"==typeof Map?new Map:void 0;return vt=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 mt(e,arguments,bt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),yt(n,e)},vt(e)}function mt(e,t,n){return mt=gt()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&yt(i,n.prototype),i},mt.apply(null,arguments)}function gt(){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 r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||Pt(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 St(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Pt(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 Tt(e){return function(e){if(Array.isArray(e))return Ct(e)}(e)||Ot(e)||Pt(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 Pt(e,t){if(e){if("string"==typeof e)return Ct(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)?Ct(e,t):void 0}}function Ot(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rt(){return Rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rt.apply(this,arguments)}st=_e.useSyncExternalStoreWithSelector,function(e){tt=e}(ke.useSyncExternalStore),lt=je.unstable_batchedUpdates,Ae=lt,function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(ut||(ut={}));var kt,_t="popstate";function jt(e,t){if(!1===e||null==e)throw new Error(t)}function It(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function At(e,t){return{usr:e.state,key:e.key,idx:t}}function Dt(e,t,n,r){return void 0===n&&(n=null),Rt({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?Lt(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function Mt(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,o=e.hash,a=void 0===o?"":o;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),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 r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Nt(e,t,n,r){void 0===r&&(r={});var i=r,o=i.window,a=void 0===o?document.defaultView:o,s=i.v5Compat,l=void 0!==s&&s,u=a.history,c=ut.Pop,f=null,h=p();function p(){return(u.state||{idx:null}).idx}function d(){c=ut.Pop;var e=p(),t=null==e?null:e-h;h=e,f&&f({action:c,location:m.location,delta:t})}function v(e){var t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeof e?e:Mt(e);return jt(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==h&&(h=0,u.replaceState(Rt({},u.state,{idx:h}),""));var m={get action(){return c},get location(){return e(a,u)},listen:function(e){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(_t,d),f=e,function(){a.removeEventListener(_t,d),f=null}},createHref:function(e){return t(a,e)},createURL:v,encodeLocation:function(e){var t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=ut.Push;var r=Dt(m.location,e,t);n&&n(r,e);var i=At(r,h=p()+1),o=m.createHref(r);try{u.pushState(i,"",o)}catch(e){a.location.assign(o)}l&&f&&f({action:c,location:m.location,delta:1})},replace:function(e,t){c=ut.Replace;var r=Dt(m.location,e,t);n&&n(r,e);var i=At(r,h=p()),o=m.createHref(r);u.replaceState(i,"",o),l&&f&&f({action:c,location:m.location,delta:0})},go:function(e){return u.go(e)}};return m}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(kt||(kt={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function Bt(e,t,n){void 0===n&&(n="/");var r=Jt(("string"==typeof t?Lt(t):t).pathname||"/",n);if(null==r)return null;var i=Ft(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})))}))}(i);for(var o=null,a=0;null==o&&a<i.length;++a)o=$t(i[a],Kt(r));return o}function Ft(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");var i=function(e,i,o){var a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(jt(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));var s=nn([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(jt(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),Ft(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:Zt(s,e.index),routesMeta:l})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var r,o=St(zt(e.path));try{for(o.s();!(r=o.n()).done;){var a=r.value;i(e,t,a)}}catch(e){o.e(e)}finally{o.f()}}else i(e,t)})),t}function zt(e){var t=e.split("/");if(0===t.length)return[];var n,r=Et(n=t)||Ot(n)||Pt(n)||xt(),i=r[0],o=r.slice(1),a=i.endsWith("?"),s=i.replace(/\?$/,"");if(0===o.length)return a?[s,""]:[s];var l=zt(o.join("/")),u=[];return u.push.apply(u,Tt(l.map((function(e){return""===e?s:[s,e].join("/")})))),a&&u.push.apply(u,Tt(l)),u.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var Ht=/^:\w+$/,Ut=3,Vt=2,Wt=1,Gt=10,qt=-2,Xt=function(e){return"*"===e};function Zt(e,t){var n=e.split("/"),r=n.length;return n.some(Xt)&&(r+=qt),t&&(r+=Vt),n.filter((function(e){return!Xt(e)})).reduce((function(e,t){return e+(Ht.test(t)?Ut:""===t?Wt:Gt)}),r)}function $t(e,t){for(var n=e.routesMeta,r={},i="/",o=[],a=0;a<n.length;++a){var s=n[a],l=a===n.length-1,u="/"===i?t:t.slice(i.length)||"/",c=Yt({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!c)return null;Object.assign(r,c.params);var f=s.route;o.push({params:r,pathname:nn([i,c.pathname]),pathnameBase:rn(nn([i,c.pathnameBase])),route:f}),"/"!==c.pathnameBase&&(i=nn([i,c.pathnameBase]))}return o}function Yt(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);It("*"===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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(function(e,t){return r.push(t),"/([^\\/]+)"}));e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");var o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),r=wt(n,2),i=r[0],o=r[1],a=t.match(i);if(!a)return null;var s=a[0],l=s.replace(/(.)\/+$/,"$1"),u=a.slice(1),c=o.reduce((function(e,t,n){if("*"===t){var r=u[n]||"";l=s.slice(0,s.length-r.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return It(!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}}(u[n]||"",t),e}),{});return{params:c,pathname:s,pathnameBase:l,pattern:e}}function Kt(e){try{return decodeURI(e)}catch(t){return It(!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,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function Qt(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. 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,r){var i;void 0===r&&(r=!1),"string"==typeof e?i=Lt(e):(jt(!(i=Rt({},e)).pathname||!i.pathname.includes("?"),Qt("?","pathname","search",i)),jt(!i.pathname||!i.pathname.includes("#"),Qt("#","pathname","hash",i)),jt(!i.search||!i.search.includes("#"),Qt("#","search","hash",i)));var o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(r||null==s)o=n;else{var l=t.length-1;if(s.startsWith("..")){for(var u=s.split("/");".."===u[0];)u.shift(),l-=1;i.pathname=u.join("/")}o=l>=0?t[l]:"/"}var c=function(e,t){void 0===t&&(t="/");var n="string"==typeof e?Lt(e):e,r=n.pathname,i=n.search,o=void 0===i?"":i,a=n.hash,s=void 0===a?"":a,l=r?r.startsWith("/")?r: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("/"):"/"}(r,t):t;return{pathname:l,search:on(o),hash:an(s)}}(i,o),f=s&&"/"!==s&&s.endsWith("/"),h=(a||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!h||(c.pathname+="/"),c}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=dt(n);function n(){return pt(this,n),t.apply(this,arguments)}return ft(n)}(vt(Error));function ln(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var un=["post","put","patch","delete"],cn=(new Set(un),["get"].concat(un));new Set(cn),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;Symbol("deferred");function fn(e){return function(e){if(Array.isArray(e))return pn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hn(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 hn(e,t){if(e){if("string"==typeof e)return pn(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)?pn(e,t):void 0}}function pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gn(r.key),r)}}function mn(e,t,n){return t&&vn(e.prototype,t),n&&vn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gn(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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,r=xn(e);if(t){var i=xn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},En.apply(this,arguments)}var Sn=e.createContext(null);var Tn=e.createContext(null);var Pn=e.createContext(null);var On=e.createContext(null);var Cn=e.createContext(null);var Rn=e.createContext({outlet:null,matches:[]});var kn=e.createContext(null);function _n(){return null!=e.useContext(Cn)}function jn(){return _n()||jt(!1),e.useContext(Cn).location}function In(t){e.useContext(On).static||e.useLayoutEffect(t)}function An(){var t,n,r;return null!=e.useContext(Sn)?(t=Un(Ln.UseNavigateStable).router,n=Wn(Nn.UseNavigateStable),r=e.useRef(!1),In((function(){r.current=!0})),e.useCallback((function(e,i){void 0===i&&(i={}),r.current&&("number"==typeof e?t.navigate(e):t.navigate(e,En({fromRouteId:n},i)))}),[t,n])):function(){_n()||jt(!1);var t=e.useContext(On),n=t.basename,r=t.navigator,i=e.useContext(Rn).matches,o=jn().pathname,a=JSON.stringify(en(i).map((function(e){return e.pathnameBase}))),s=e.useRef(!1);In((function(){s.current=!0}));var l=e.useCallback((function(e,t){if(void 0===t&&(t={}),s.current)if("number"!=typeof e){var i=tn(e,JSON.parse(a),o,"path"===t.relative);"/"!==n&&(i.pathname="/"===i.pathname?n:nn([n,i.pathname])),(t.replace?r.replace:r.push)(i,t.state,t)}else r.go(e)}),[n,r,a,o]);return l}()}function Dn(t,n,r){_n()||jt(!1);var i,o=e.useContext(On).navigator,a=e.useContext(Rn).matches,s=a[a.length-1],l=s?s.params:{},u=(s&&s.pathname,s?s.pathnameBase:"/"),c=(s&&s.route,jn());if(n){var f,h="string"==typeof n?Lt(n):n;"/"===u||(null==(f=h.pathname)?void 0:f.startsWith(u))||jt(!1),i=h}else i=c;var p=i.pathname||"/",d=Bt(t,{pathname:"/"===u?p:p.slice(u.length)||"/"});var v=Hn(d&&d.map((function(e){return Object.assign({},e,{params:Object.assign({},l,e.params),pathname:nn([u,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:nn([u,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),a,r);return n&&v?e.createElement(Cn.Provider,{value:{location:En({pathname:"/",search:"",hash:"",state:null,key:"default"},i),navigationType:ut.Pop}},v):v}function Mn(){var t=function(){var t,n=e.useContext(kn),r=Vn(Nn.UseRouteError),i=Wn(Nn.UseRouteError);if(n)return n;return null==(t=r.errors)?void 0:t[i]}(),n=ln(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},n),r?e.createElement("pre",{style:o},r):null,null)}var Ln,Nn,Bn=e.createElement(Mn,null),Fn=function(t){yn(r,t);var n=wn(r);function r(e){var t;return dn(this,r),(t=n.call(this,e)).state={location:e.location,revalidation:e.revalidation,error:e.error},t}return mn(r,[{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(Rn.Provider,{value:this.props.routeContext},e.createElement(kn.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}}}]),r}(e.Component);function zn(t){var n=t.routeContext,r=t.match,i=t.children,o=e.useContext(Sn);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),e.createElement(Rn.Provider,{value:n},i)}function Hn(t,n,r){var i;if(void 0===n&&(n=[]),void 0===r&&(r=null),null==t){var o;if(null==(o=r)||!o.errors)return null;t=r.matches}var a=t,s=null==(i=r)?void 0:i.errors;if(null!=s){var l=a.findIndex((function(e){return e.route.id&&(null==s?void 0:s[e.route.id])}));l>=0||jt(!1),a=a.slice(0,Math.min(a.length,l+1))}return a.reduceRight((function(t,i,o){var l=i.route.id?null==s?void 0:s[i.route.id]:null,u=null;r&&(u=i.route.errorElement||Bn);var c=n.concat(a.slice(0,o+1)),f=function(){var n;return n=l?u:i.route.element?i.route.element:t,e.createElement(zn,{match:i,routeContext:{outlet:t,matches:c},children:n})};return r&&(i.route.ErrorBoundary||i.route.errorElement||0===o)?e.createElement(Fn,{location:r.location,revalidation:r.revalidation,component:u,error:l,children:f(),routeContext:{outlet:null,matches:c}}):f()}),null)}function Un(t){var n=e.useContext(Sn);return n||jt(!1),n}function Vn(t){var n=e.useContext(Tn);return n||jt(!1),n}function Wn(t){var n=function(t){var n=e.useContext(Rn);return n||jt(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||jt(!1),r.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"}(Nn||(Nn={}));var Gn;function qn(t){var n=t.to,r=t.replace,i=t.state,o=t.relative;_n()||jt(!1);var a=e.useContext(Tn),s=An();return e.useEffect((function(){a&&"idle"!==a.navigation.state||s(n,{replace:r,state:i,relative:o})})),null}function Xn(e){jt(!1)}function Zn(t){var n=t.basename,r=void 0===n?"/":n,i=t.children,o=void 0===i?null:i,a=t.location,s=t.navigationType,l=void 0===s?ut.Pop:s,u=t.navigator,c=t.static,f=void 0!==c&&c;_n()&&jt(!1);var h=r.replace(/^\/*/,"/"),p=e.useMemo((function(){return{basename:h,navigator:u,static:f}}),[h,u,f]);"string"==typeof a&&(a=Lt(a));var d=a,v=d.pathname,m=void 0===v?"/":v,g=d.search,y=void 0===g?"":g,b=d.hash,w=void 0===b?"":b,x=d.state,E=void 0===x?null:x,S=d.key,T=void 0===S?"default":S,P=e.useMemo((function(){var e=Jt(m,h);return null==e?null:{location:{pathname:e,search:y,hash:w,state:E,key:T},navigationType:l}}),[h,m,y,w,E,T,l]);return null==P?null:e.createElement(On.Provider,{value:p},e.createElement(Cn.Provider,{children:o,value:P}))}function $n(e){var t=e.children,n=e.location;return Dn(Kn(t),n)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(Gn||(Gn={}));var Yn=new Promise((function(){}));e.Component;function Kn(t,n){void 0===n&&(n=[]);var r=[];return e.Children.forEach(t,(function(t,i){if(e.isValidElement(t)){var o=[].concat(fn(n),[i]);if(t.type!==e.Fragment){t.type!==Xn&&jt(!1),t.props.index&&t.props.children&&jt(!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=Kn(t.props.children,o)),r.push(a)}else r.push.apply(r,Kn(t.props.children,o))}})),r}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 r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||Qn(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 Qn(e,t){if(e){if("string"==typeof e)return er(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)?er(e,t):void 0}}function er(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tr(t){var n,r=t.basename,i=t.children,o=t.window,a=e.useRef();null==a.current&&(a.current=(void 0===(n={window:o,v5Compat:!0})&&(n={}),Nt((function(e,t){var n=Lt(e.location.hash.substr(1)),r=n.pathname,i=void 0===r?"/":r,o=n.search,a=void 0===o?"":o,s=n.hash;return Dt("",{pathname:i,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"),r="";if(n&&n.getAttribute("href")){var i=e.location.href,o=i.indexOf("#");r=-1===o?i:i.slice(0,o)}return r+"#"+("string"==typeof t?t:Mt(t))}),(function(e,t){It("/"===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),u=l[0],c=l[1];return e.useLayoutEffect((function(){return s.listen(c)}),[s]),e.createElement(Zn,{basename:r,children:i,location:u.location,navigationType:u.action,navigator:s})}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;var nr,rr;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(nr||(nr={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(rr||(rr={}));function ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ir(Object(n),!0).forEach((function(t){ar(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ar(e,t,n){return(t=lr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lr(r.key),r)}}function lr(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 ur(e,t){return ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ur(e,t)}function cr(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,r=hr(e);if(t){var i=hr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 fr(e)}(this,n)}}function fr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hr(e){return hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hr(e)}var pr=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&&ur(e,t)}(a,e);var n,r,i,o=cr(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,r=e.clientX-t.dividerWidth/2,i=n-r;r>t.leftPaneMinWidth&&i>t.rightPaneMinWidth&&(t.splitFraction=0===n?0:r/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,r=n/2/n,i=1-r;return t.state={style:{gridTemplateColumns:"".concat(r,"fr ").concat(t.dividerWidth,"px ").concat(i,"fr")}},t.dragging=!1,t.onDrag=t.onDrag.bind(fr(t)),t.onResize=t.onResize.bind(fr(t)),t.onEndDrag=t.onEndDrag.bind(fr(t)),t.updatePaneSize=t.updatePaneSize.bind(fr(t)),t.updatePaneSize=t.updatePaneSize.bind(fr(t)),t}return n=a,(r=[{key:"updateUI",value:function(){var e=this.splitFraction,t=1-e;this.setState(or(or({},this.state),{},{style:or(or({},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:or({},this.state.style)},this.props.leftPane,this.renderDivider(),this.props.rightPane)}}])&&sr(n.prototype,r),i&&sr(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const dr=ot((function(e){return{document:e.document}}))(pr);function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gr(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 yr="function"==typeof Symbol&&Symbol.observable||"@@observable",br=function(){return Math.random().toString(36).substring(7).split("").join(".")},wr={INIT:"@@redux/INIT"+br(),REPLACE:"@@redux/REPLACE"+br(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+br()}};function xr(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 Er(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(gr(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(gr(1));return n(Er)(e,t)}if("function"!=typeof e)throw new Error(gr(2));var i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(gr(3));return o}function f(e){if("function"!=typeof e)throw new Error(gr(4));if(l)throw new Error(gr(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(gr(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function h(e){if(!xr(e))throw new Error(gr(7));if(void 0===e.type)throw new Error(gr(8));if(l)throw new Error(gr(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return h({type:wr.INIT}),(r={dispatch:h,subscribe:f,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(gr(10));i=e,h({type:wr.REPLACE})}})[yr]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(gr(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[yr]=function(){return this},e},r}function Sr(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}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:wr.INIT}))throw new Error(gr(12));if(void 0===n(void 0,{type:wr.PROBE_UNKNOWN_ACTION()}))throw new Error(gr(13))}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var l=a[s],u=n[l],c=e[l],f=u(c,t);if(void 0===f){t&&t.type;throw new Error(gr(14))}i[l]=f,r=r||f!==c}return(r=r||a.length!==Object.keys(e).length)?i:e}}function Tr(){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))}}))}function Pr(){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),r=function(){throw new Error(gr(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return r=Tr.apply(void 0,o)(n.dispatch),mr(mr({},n),{},{dispatch:r})}}}var Or=function(e){return"@@redux-saga/"+e},Cr=Or("CANCEL_PROMISE"),Rr=Or("CHANNEL_END"),kr=Or("IO"),_r=Or("MATCH"),jr=Or("MULTICAST"),Ir=Or("SAGA_ACTION"),Ar=Or("SELF_CANCELLATION"),Dr=Or("TASK"),Mr=Or("TASK_CANCEL"),Lr=Or("TERMINATE"),Nr=Or("LOCATION"),Br=function(e){return null==e},Fr=function(e){return null!=e},zr=function(e){return"function"==typeof e},Hr=function(e){return"string"==typeof e},Ur=Array.isArray,Vr=function(e){return e&&zr(e.then)},Wr=function(e){return e&&zr(e.next)&&zr(e.throw)},Gr=function e(t){return t&&(Hr(t)||Zr(t)||zr(t)||Ur(t)&&t.every(e))},qr=function(e){return e&&zr(e.take)&&zr(e.close)},Xr=function(e){return zr(e)&&e.hasOwnProperty("toString")},Zr=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},$r=function(e){return qr(e)&&e[jr]};var Yr=function(e){return function(){return e}}(!0),Kr=function(){};var Jr=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var Qr=function(e,t){a(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function ei(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var ti=function(e){throw e},ni=function(e){return{value:e,done:!0}};function ri(e,t,n){void 0===t&&(t=ti),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:ni,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function ii(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var oi=function(e){return Array.apply(null,new Array(e))},ai=function(e){return function(t){return e(Object.defineProperty(t,Ir,{value:!0}))}},si=function(e){return e===Lr},li=function(e){return e===Mr},ui=function(e){return si(e)||li(e)};function ci(e,t){var n=Object.keys(e),r=n.length;var i,o=0,a=Ur(e)?oi(r):{},s={};return n.forEach((function(e){var n=function(n,s){i||(s||ui(n)?(t.cancel(),t(n,s)):(a[e]=n,++o===r&&(i=!0,t(a))))};n.cancel=Kr,s[e]=n})),t.cancel=function(){i||(i=!0,n.forEach((function(e){return s[e].cancel()})))},s}function fi(e){return{name:e.name||"anonymous",location:hi(e)}}function hi(e){return e[Nr]}var pi=1,di=3,vi=4;function mi(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,i=0,o=0,a=function(t){n[i]=t,i=(i+1)%e,r++},s=function(){if(0!=r){var t=n[o];return n[o]=null,r--,o=(o+1)%e,t}},l=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var u;if(r<e)a(s);else switch(t){case pi:throw new Error("Channel's Buffer overflow!");case di:n[i]=s,o=i=(i+1)%e;break;case vi:u=2*e,n=l(),r=n.length,i=n.length,o=0,n.length=u,e=u,a(s)}},take:s,flush:l}}var gi=function(e){return mi(e,vi)},yi="TAKE",bi="PUT",wi="ALL",xi="RACE",Ei="CALL",Si="CPS",Ti="FORK",Pi="JOIN",Oi="CANCEL",Ci="SELECT",Ri="ACTION_CHANNEL",ki="CANCELLED",_i="FLUSH",ji="GET_CONTEXT",Ii="SET_CONTEXT",Ai=function(e,t){var n;return(n={})[kr]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Di(e,t){return void 0===e&&(e="*"),Gr(e)?(Fr(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Ai(yi,{pattern:e})):$r(e)&&Fr(t)&&Gr(t)?Ai(yi,{channel:e,pattern:t}):qr(e)?(Fr(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Ai(yi,{channel:e})):void 0}function Mi(e,t){return Br(t)&&(t=e,e=void 0),Ai(bi,{channel:e,action:t})}function Li(e,t){var n,r=null;return zr(e)?n=e:(Ur(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&Hr(n)&&zr(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Ni(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ai(Ti,Li(e,n))}function Bi(e){void 0===e&&(e=Jr);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ai(Ci,{selector:e,args:n})}"function"==typeof Symbol&&Symbol.observable;var Fi=function(){return Math.random().toString(36).substring(7).split("").join(".")};Fi(),Fi();function zi(){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))}}))}function Hi(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}const Ui=Hi;var Vi=[],Wi=0;function Gi(e){try{Zi(),e()}finally{$i()}}function qi(e){Vi.push(e),Wi||(Zi(),Yi())}function Xi(e){try{return Zi(),e()}finally{Yi()}}function Zi(){Wi++}function $i(){Wi--}function Yi(){var e;for($i();!Wi&&void 0!==(e=Vi.shift());)Gi(e)}var Ki=function(e){return function(t){return e.some((function(e){return no(e)(t)}))}},Ji=function(e){return function(t){return e(t)}},Qi=function(e){return function(t){return t.type===String(e)}},eo=function(e){return function(t){return t.type===e}},to=function(){return Yr};function no(e){var t="*"===e?to:Hr(e)?Qi:Ur(e)?Ki:Xr(e)?Qi:zr(e)?Ji:Zr(e)?eo:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var ro={type:Rr},io=function(e){return e&&e.type===Rr};function oo(e){void 0===e&&(e=gi());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(ro):e.isEmpty()?(n.push(r),r.cancel=function(){ei(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(ro):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,i=e.length;r<i;r++){(0,e[r])(ro)}}}}}function ao(){var e=function(){var e,t=!1,n=[],r=n,i=function(){r===n&&(r=n.slice())},o=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(ro)}))};return(e={})[jr]=!0,e.put=function(e){if(!t)if(io(e))o();else for(var i=n=r,a=0,s=i.length;a<s;a++){var l=i[a];l[_r](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=to),t?e(ro):(e[_r]=n,i(),r.push(e),e.cancel=function(e){var t=!1;return function(){t||(t=!0,e())}}((function(){i(),ei(r,e)})))},e.close=o,e}(),t=e.put;return e.put=function(e){e[Ir]?t(e):qi((function(){t(e)}))},e}var so=0,lo=1,uo=2,co=3;function fo(e,t){var n=e[Cr];zr(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var ho,po=0,vo=function(){return++po};function mo(e){e.isRunning()&&e.cancel()}var go=((ho={})[yi]=function(e,t,n){var r=t.channel,i=void 0===r?e.channel:r,o=t.pattern,a=t.maybe,s=function(e){e instanceof Error?n(e,!0):!io(e)||a?n(e):n(Lr)};try{i.take(s,Fr(o)?no(o):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},ho[bi]=function(e,t,n){var r=t.channel,i=t.action,o=t.resolve;qi((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(e){return void n(e,!0)}o&&Vr(t)?fo(t,n):n(t)}))},ho[wi]=function(e,t,n,r){var i=r.digestEffect,o=po,a=Object.keys(t);if(0!==a.length){var s=ci(t,n);a.forEach((function(e){i(t[e],o,s[e],e)}))}else n(Ur(t)?[]:{})},ho[xi]=function(e,t,n,r){var i=r.digestEffect,o=po,a=Object.keys(t),s=Ur(t)?oi(a.length):{},l={},u=!1;a.forEach((function(e){var t=function(t,r){u||(r||ui(t)?(n.cancel(),n(t,r)):(n.cancel(),u=!0,s[e]=t,n(s)))};t.cancel=Kr,l[e]=t})),n.cancel=function(){u||(u=!0,a.forEach((function(e){return l[e].cancel()})))},a.forEach((function(e){u||i(t[e],o,l[e],e)}))},ho[Ei]=function(e,t,n,r){var i=t.context,o=t.fn,a=t.args,s=r.task;try{var l=o.apply(i,a);if(Vr(l))return void fo(l,n);if(Wr(l))return void Ro(e,l,s.context,po,fi(o),!1,n);n(l)}catch(e){n(e,!0)}},ho[Si]=function(e,t,n){var r=t.context,i=t.fn,o=t.args;try{var a=function(e,t){Br(e)?n(t):n(e,!0)};i.apply(r,o.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},ho[Ti]=function(e,t,n,r){var i=t.context,o=t.fn,a=t.args,s=t.detached,l=r.task,u=function(e){var t=e.context,n=e.fn,r=e.args;try{var i=n.apply(t,r);if(Wr(i))return i;var o=!1;return ri((function(e){return o?{value:e,done:!0}:(o=!0,{value:i,done:!Vr(i)})}))}catch(e){return ri((function(){throw e}))}}({context:i,fn:o,args:a}),c=function(e,t){return e.isSagaIterator?{name:e.meta.name}:fi(t)}(u,o);Xi((function(){var t=Ro(e,u,l.context,po,c,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},ho[Pi]=function(e,t,n,r){var i=r.task,o=function(e,t){if(e.isRunning()){var n={task:i,cb:t};t.cancel=function(){e.isRunning()&&ei(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(Ur(t)){if(0===t.length)return void n([]);var a=ci(t,n);t.forEach((function(e,t){o(e,a[t])}))}else o(t,n)},ho[Oi]=function(e,t,n,r){var i=r.task;t===Ar?mo(i):Ur(t)?t.forEach(mo):mo(t),n()},ho[Ci]=function(e,t,n){var r=t.selector,i=t.args;try{n(r.apply(void 0,[e.getState()].concat(i)))}catch(e){n(e,!0)}},ho[Ri]=function(e,t,n){var r=t.pattern,i=oo(t.buffer),o=no(r),a=function t(n){io(n)||e.channel.take(t,o),i.put(n)},s=i.close;i.close=function(){a.cancel(),s()},e.channel.take(a,o),n(i)},ho[ki]=function(e,t,n,r){n(r.task.isCancelled())},ho[_i]=function(e,t,n){t.flush(n)},ho[ji]=function(e,t,n,r){n(r.task.context[t])},ho[Ii]=function(e,t,n,r){var i=r.task;Qr(i.context,t),n()},ho);function yo(e,t){return e+"?"+t}function bo(e){var t=e.name,n=e.location;return n?t+" "+yo(n.fileName,n.lineNumber):t}function wo(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 xo=null,Eo=[],So=function(e){e.crashedEffect=xo,Eo.push(e)},To=function(){xo=null,Eo.length=0},Po=function(e){xo=e},Oo=function(){var e=Eo[0],t=Eo.slice(1),n=e.crashedEffect?function(e){var t=hi(e);return t?t.code+" "+yo(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+bo(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+bo(e.meta)})),[wo(Eo)]).join("\n")};function Co(e,t,n,r,i,o,a){var s;void 0===a&&(a=Kr);var l,u,c=so,f=null,h=[],p=Object.create(n),d=function(e,t,n){var r,i=[],o=!1;function a(e){t(),l(),n(e,!0)}function s(t){i.push(t),t.cont=function(s,l){o||(ei(i,t),t.cont=Kr,l?a(s):(t===e&&(r=s),i.length||(o=!0,n(r))))}}function l(){o||(o=!0,i.forEach((function(e){e.cont=Kr,e.cancel()})),i=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return i}}}(t,(function(){h.push.apply(h,d.getTasks().map((function(e){return e.meta.name})))}),v);function v(t,n){if(n){if(c=uo,So({meta:i,cancelledTasks:h}),m.isRoot){var r=Oo();To(),e.onError(t,{sagaStack:r})}u=t,f&&f.reject(t)}else t===Mr?c=lo:c!==lo&&(c=co),l=t,f&&f.resolve(t);m.cont(t,n),m.joiners.forEach((function(e){e.cb(t,n)})),m.joiners=null}var m=((s={})[Dr]=!0,s.id=r,s.meta=i,s.isRoot=o,s.context=p,s.joiners=[],s.queue=d,s.cancel=function(){c===so&&(c=lo,d.cancelAll(),v(Mr,!1))},s.cont=a,s.end=v,s.setContext=function(e){Qr(p,e)},s.toPromise=function(){return f||(f=Ui(),c===uo?f.reject(u):c!==so&&f.resolve(l)),f.promise},s.isRunning=function(){return c===so},s.isCancelled=function(){return c===lo||c===so&&t.status===lo},s.isAborted=function(){return c===uo},s.result=function(){return l},s.error=function(){return u},s);return m}function Ro(e,t,n,r,i,o,a){var s=e.finalizeRunEffect((function(t,n,r){if(Vr(t))fo(t,r);else if(Wr(t))Ro(e,t,u.context,n,i,!1,r);else if(t&&t[kr]){(0,go[t.type])(e,t.payload,r,c)}else r(t)}));f.cancel=Kr;var l={meta:i,cancel:function(){l.status===so&&(l.status=lo,f(Mr))},status:so},u=Co(e,l,n,r,i,o,a),c={task:u,digestEffect:h};return a&&(a.cancel=u.cancel),f(),u;function f(e,n){try{var i;n?(i=t.throw(e),To()):li(e)?(l.status=lo,f.cancel(),i=zr(t.return)?t.return(Mr):{done:!0,value:Mr}):i=si(e)?zr(t.return)?t.return():{done:!0}:t.next(e),i.done?(l.status!==lo&&(l.status=co),l.cont(i.value)):h(i.value,r,f)}catch(e){if(l.status===lo)throw e;l.status=uo,l.cont(e,!0)}}function h(t,n,r,i){void 0===i&&(i="");var o,a=vo();function l(n,i){o||(o=!0,r.cancel=Kr,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),i&&Po(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:i,effect:t}),l.cancel=Kr,r.cancel=function(){o||(o=!0,l.cancel(),l.cancel=Kr,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function ko(e,t){var n=e.channel,r=void 0===n?ao():n,i=e.dispatch,o=e.getState,a=e.context,s=void 0===a?{}:a,l=e.sagaMonitor,u=e.effectMiddlewares,c=e.onError,f=void 0===c?ii:c;for(var h=arguments.length,p=new Array(h>2?h-2:0),d=2;d<h;d++)p[d-2]=arguments[d];var v=t.apply(void 0,p);var m,g=vo();if(l&&(l.rootSagaStarted=l.rootSagaStarted||Kr,l.effectTriggered=l.effectTriggered||Kr,l.effectResolved=l.effectResolved||Kr,l.effectRejected=l.effectRejected||Kr,l.effectCancelled=l.effectCancelled||Kr,l.actionDispatched=l.actionDispatched||Kr,l.rootSagaStarted({effectId:g,saga:t,args:p})),u){var y=zi.apply(void 0,u);m=function(e){return function(t,n,r){return y((function(t){return e(t,n,r)}))(t)}}}else m=Jr;var b={channel:r,dispatch:ai(i),getState:o,sagaMonitor:l,onError:f,finalizeRunEffect:m};return Xi((function(){var e=Ro(b,v,s,g,fi(t),!0,void 0);return l&&l.effectResolved(g,e),e}))}const _o=function(e){var t,r=void 0===e?{}:e,i=r.context,o=void 0===i?{}:i,s=r.channel,l=void 0===s?ao():s,u=r.sagaMonitor,c=n(r,["context","channel","sagaMonitor"]);function f(e){var n=e.getState,r=e.dispatch;return t=ko.bind(null,a({},c,{context:o,channel:l,dispatch:r,getState:n,sagaMonitor:u})),function(e){return function(t){u&&u.actionDispatched&&u.actionDispatched(t);var n=e(t);return l.put(t),n}}}return f.run=function(){return t.apply(void 0,arguments)},f.setContext=function(e){Qr(o,e)},f},jo=_o;var Io=function(e){return{done:!0,value:e}},Ao={};function Do(e){return qr(e)?"channel":Xr(e)?String(e):zr(e)?e.name:String(e)}function Mo(e,t,n){var r,i,o,a=t;function s(t,n){if(a===Ao)return Io(t);if(n&&!i)throw a=Ao,n;r&&r(t);var s=n?e[i](n):e[a]();return a=s.nextState,o=s.effect,r=s.stateUpdater,i=s.errorState,a===Ao?Io(t):o}return ri(s,(function(e){return s(null,e)}),n)}function Lo(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o,a={done:!1,value:Di(e)},s=function(e){return o=e};return Mo({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=o,{done:!1,value:Ni.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+Do(e)+", "+t.name+")")}function No(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return Ni.apply(void 0,[Lo,e,t].concat(r))}function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){zo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zo(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 r=n.call(e,t||"default");if("object"!=typeof r)return r;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 Ho={loadGlossary:function(e,t){return Fo(Fo({},e),{},{loaded:!0,glossary:t})}};const Uo=Ho;function Vo(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 Wo(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 Wo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 Wo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Go(Object(n),!0).forEach((function(t){Xo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Go(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xo(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 r=n.call(e,t||"default");if("object"!=typeof r)return r;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 Zo={},$o="https://github.com/cu-mkp/editioncrafter-project/text-partial-resource.md";function Yo(e){throw new Error("IIIF manifest parser error: ".concat(e))}function Ko(e){var t,n=Vo(e.items);try{for(n.s();!(t=n.n()).done;){var r=t.value;"AnnotationPage"!==r.type&&Yo("Expected AnnotationPage in items property of ".concat(e.id)),r.items||Yo("Expected items property in AnnotationPage ".concat(r.id));var i,o=Vo(r.items);try{for(o.s();!(i=o.n()).done;){var a=i.value;if("Annotation"!==a.type&&Yo("Expected Annotation in items property of ".concat(r.id)),"painting"===a.motivation){a.body||Yo("Expected body property in Annotation ".concat(a.id)),a.body.thumbnail||Yo("Expected body.thumbnail property in Annotation ".concat(a.id));var s=a.body.thumbnail[0].id;return s||Yo("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 Yo("Unable to find painting Annotation for canvas: ".concat(e.id)),null}function Jo(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 Qo(e,t){var n={};if(e.annotations){var r,i=Vo(e.annotations);try{for(i.s();!(r=i.n()).done;){var o=r.value;"AnnotationPage"!==o.type&&Yo("Expected AnnotationPage in annotations property of ".concat(e.id)),o.items||Yo("Expected items property in AnnotationPage ".concat(o.id));var a,s=Vo(o.items);try{for(s.s();!(a=s.n()).done;){var l=a.value;if("Annotation"!==l.type&&Yo("Expected Annotation in items property of ".concat(o.id)),"supplementing"===l.motivation){l.body||Yo("Expected body property in Annotation ".concat(l.id));var u=l.body;if(u.profile===$o&&"TextPartial"===u.type){u.id||Yo("Expected id property in TextPartial in ".concat(l.id)),u.format||Yo("Expected format property in TextPartial in ".concat(l.id));var c=u.id,f=u.format,h=c.split("/");h.length<5&&Yo("TextPartial id property is in the wrong format: ".concat(c));var p=h[h.length-2];t[p]&&(n[p]||(n[p]={}),"text/html"===f&&(n[p].htmlURL=c),"text/xml"===f&&(n[p].xmlURL=c))}}}}catch(e){s.e(e)}finally{s.f()}}}catch(e){i.e(e)}finally{i.f()}}return n}Zo.loadDocument=function(e,t){var n=function(e,t){var n=[];e["@context"]&&e["@context"].includes("http://iiif.io/api/presentation/3/context.json")||Yo("Expected root object to have a @context containing: http://iiif.io/api/presentation/3/context.json");"Manifest"!==e.type&&Yo("Expected root object of type 'Manifest'.");e.items||Yo("Expected manifest to have an items property.");for(var r=e.items,i=0;i<r.length;i++){var o=r[i];"Canvas"!==o.type&&Yo("Expected items[".concat(i,"] to be of type 'Canvas'.")),o.id||Yo("Expected items[".concat(i,"] to have an id property."));var a=o.id.substr(o.id.lastIndexOf("/")+1),s=Jo(o),l=Ko(o),u={id:a,name:s,pageNumber:i,image_zoom_url:l.imageURL,image_thumbnail_url:l.thumbnailURL,annotationURLs:Qo(o,t)};n.push(u)}return n}(t,e.transcriptionTypes),r=function(e){for(var t={},n={},r=0;r<e.length;r++){var i=e[r];t[i.id]=i,n[i.name]=i}return{folioIndex:t,folioByName:n}}(n),i=r.folioIndex,o=r.folioByName;return qo(qo({},e),{},{loaded:!0,folios:n,folioIndex:i,folioByName:o})},Zo.loadFolio=function(e,t){var n=e.folioIndex[t.id],r=e.folios.indexOf(n);return e.folios[r]=t,e.folioIndex[t.id]=t,e.folioByName[t.name]=t,qo({},e)};const ea=Zo;function ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ta(Object(n),!0).forEach((function(t){ra(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ra(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 r=n.call(e,t||"default");if("object"!=typeof r)return r;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 ia={setFixedFrameMode:function(e,t){return na(na({},e),{},{fixedFrameMode:t})}};const oa=ia,aa={fixedFrameMode:!1};function sa(e){return{glossaryURL:e,glossary:{},loaded:!1}}function la(e,t,n){return{documentName:t,manifestURL:e,transcriptionTypes:n,folios:[],loaded:!1,folioIndex:{},folioByName:{}}}function ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ca(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ua(Object(n),!0).forEach((function(t){fa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fa(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 r=n.call(e,t||"default");if("object"!=typeof r)return r;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 ha={loadComments:function(e,t){return ca(ca({},e),{},{loaded:!0,comments:t})}};const pa=ha;function da(e){return{commentsURL:e,comments:{},loaded:!1}}function va(e,t){return function(){return e.apply(t,arguments)}}var ma=Object.prototype.toString,ga=Object.getPrototypeOf,ya=function(e){return function(t){var n=ma.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null)),ba=function(e){return e=e.toLowerCase(),function(t){return ya(t)===e}},wa=function(e){return function(t){return typeof t===e}},xa=Array.isArray,Ea=wa("undefined");var Sa=ba("ArrayBuffer");var Ta=wa("string"),Pa=wa("function"),Oa=wa("number"),Ca=function(e){return null!==e&&"object"==typeof e},Ra=function(e){if("object"!==ya(e))return!1;var t=ga(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},ka=ba("Date"),_a=ba("File"),ja=ba("Blob"),Ia=ba("FileList"),Aa=ba("URLSearchParams");function Da(e,t){var n,r,i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,o=void 0!==i&&i;if(null!=e)if("object"!=typeof e&&(e=[e]),xa(e))for(n=0,r=e.length;n<r;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 Ma(e,t){t=t.toLowerCase();for(var n,r=Object.keys(e),i=r.length;i-- >0;)if(t===(n=r[i]).toLowerCase())return n;return null}var La="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Na=function(e){return!Ea(e)&&e!==La};var Ba,Fa,za=(Ba="undefined"!=typeof Uint8Array&&ga(Uint8Array),function(e){return Ba&&e instanceof Ba}),Ha=ba("HTMLFormElement"),Ua=(Fa=Object.prototype.hasOwnProperty,function(e,t){return Fa.call(e,t)}),Va=ba("RegExp"),Wa=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};Da(n,(function(n,i){!1!==t(n,i,e)&&(r[i]=n)})),Object.defineProperties(e,r)},Ga="abcdefghijklmnopqrstuvwxyz",qa="0123456789",Xa={DIGIT:qa,ALPHA:Ga,ALPHA_DIGIT:Ga+Ga.toUpperCase()+qa};var Za=ba("AsyncFunction");const $a={isArray:xa,isArrayBuffer:Sa,isBuffer:function(e){return null!==e&&!Ea(e)&&null!==e.constructor&&!Ea(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=ya(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&&Sa(e.buffer)},isString:Ta,isNumber:Oa,isBoolean:function(e){return!0===e||!1===e},isObject:Ca,isPlainObject:Ra,isUndefined:Ea,isDate:ka,isFile:_a,isBlob:ja,isRegExp:Va,isFunction:Pa,isStream:function(e){return Ca(e)&&Pa(e.pipe)},isURLSearchParams:Aa,isTypedArray:za,isFileList:Ia,forEach:Da,merge:function e(){for(var t=(Na(this)&&this||{}).caseless,n={},r=function(r,i){var o=t&&Ma(n,i)||i;Ra(n[o])&&Ra(r)?n[o]=e(n[o],r):Ra(r)?n[o]=e({},r):xa(r)?n[o]=r.slice():n[o]=r},i=0,o=arguments.length;i<o;i++)arguments[i]&&Da(arguments[i],r);return n},extend:function(e,t,n){return Da(t,(function(t,r){n&&Pa(t)?e[r]=va(t,n):e[r]=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,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&ga(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:ya,kindOfTest:ba,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(xa(e))return e;var t=e.length;if(!Oa(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var i=n.value;t.call(e,i[0],i[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Ha,hasOwnProperty:Ua,hasOwnProp:Ua,reduceDescriptors:Wa,freezeMethods:function(e){Wa(e,(function(t,n){if(Pa(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var r=e[n];Pa(r)&&(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={},r=function(e){e.forEach((function(e){n[e]=!0}))};return xa(e)?r(e):r(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:Ma,global:La,isContextDefined:Na,ALPHABET:Xa,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]:Xa.ALPHA_DIGIT,n="",r=t.length;e--;)n+=t[Math.random()*r|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,r){if(Ca(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;var i=xa(n)?[]:{};return Da(n,(function(t,n){var o=e(t,r+1);!Ea(o)&&(i[n]=o)})),t[r]=void 0,i}}return n}(e,0)},isAsyncFn:Za,isThenable:function(e){return e&&(Ca(e)||Pa(e))&&Pa(e.then)&&Pa(e.catch)}};function Ya(e,t,n,r,i){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),r&&(this.request=r),i&&(this.response=i)}$a.inherits(Ya,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:$a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Ka=Ya.prototype,Ja={};["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){Ja[e]={value:e}})),Object.defineProperties(Ya,Ja),Object.defineProperty(Ka,"isAxiosError",{value:!0}),Ya.from=function(e,t,n,r,i,o){var a=Object.create(Ka);return $a.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),Ya.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Qa=Ya,es=null;function ts(e){return $a.isPlainObject(e)||$a.isArray(e)}function ns(e){return $a.endsWith(e,"[]")?e.slice(0,-2):e}function rs(e,t,n){return e?e.concat(t).map((function(e,t){return e=ns(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var is=$a.toFlatObject($a,{},null,(function(e){return/^is[A-Z]/.test(e)}));const os=function(e,t,n){if(!$a.isObject(e))throw new TypeError("target must be an object");t=t||new(es||FormData);var r=(n=$a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!$a.isUndefined(t[e])}))).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&$a.isSpecCompliantForm(t);if(!$a.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if($a.isDate(e))return e.toISOString();if(!s&&$a.isBlob(e))throw new Qa("Blob is not supported. Use a Buffer instead.");return $a.isArrayBuffer(e)||$a.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,i){var s=e;if(e&&!i&&"object"==typeof e)if($a.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if($a.isArray(e)&&function(e){return $a.isArray(e)&&!e.some(ts)}(e)||($a.isFileList(e)||$a.endsWith(n,"[]"))&&(s=$a.toArray(e)))return n=ns(n),s.forEach((function(e,r){!$a.isUndefined(e)&&null!==e&&t.append(!0===a?rs([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!ts(e)||(t.append(rs(i,n,o),l(e)),!1)}var c=[],f=Object.assign(is,{defaultVisitor:u,convertValue:l,isVisitable:ts});if(!$a.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!$a.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),$a.forEach(n,(function(n,o){!0===(!($a.isUndefined(n)||null===n)&&i.call(t,n,$a.isString(o)?o.trim():o,r,f))&&e(n,r?r.concat(o):[o])})),c.pop()}}(e),t};function as(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ss(e,t){this._pairs=[],e&&os(e,this,t)}var ls=ss.prototype;ls.append=function(e,t){this._pairs.push([e,t])},ls.toString=function(e){var t=e?function(t){return e.call(this,t,as)}:as;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const us=ss;function cs(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fs(e,t,n){if(!t)return e;var r,i=n&&n.encode||cs,o=n&&n.serialize;if(r=o?o(t,n):$a.isURLSearchParams(t)?t.toString():new us(t,n).toString(i)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}function hs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ps(r.key),r)}}function ps(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 ds=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,r;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){$a.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}],n&&hs(t.prototype,n),r&&hs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();const vs=ds,ms={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var gs;const ys={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:us,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:("undefined"==typeof navigator||"ReactNative"!==(gs=navigator.product)&&"NativeScript"!==gs&&"NS"!==gs)&&"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 bs=function(e){function t(e,n,r,i){var o=e[i++],a=Number.isFinite(+o),s=i>=e.length;return o=!o&&$a.isArray(r)?r.length:o,s?($a.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&$a.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&$a.isArray(r[o])&&(r[o]=function(e){var t,n,r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o])),!a)}if($a.isFormData(e)&&$a.isFunction(e.entries)){var n={};return $a.forEachEntry(e,(function(e,r){t(function(e){return $a.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),r,n,0)})),n}return null};var ws={"Content-Type":void 0};var xs={transitional:ms,adapter:["xhr","http"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=$a.isObject(e);if(o&&$a.isHTMLForm(e)&&(e=new FormData(e)),$a.isFormData(e))return i&&i?JSON.stringify(bs(e)):e;if($a.isArrayBuffer(e)||$a.isBuffer(e)||$a.isStream(e)||$a.isFile(e)||$a.isBlob(e))return e;if($a.isArrayBufferView(e))return e.buffer;if($a.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return os(e,new ys.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ys.isNode&&$a.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=$a.isFileList(e))||r.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return os(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if($a.isString(e))try{return(t||JSON.parse)(e),$a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||xs.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&$a.isString(e)&&(n&&!this.responseType||r)){var i=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw Qa.from(e,Qa.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:ys.classes.FormData,Blob:ys.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};$a.forEach(["delete","get","head"],(function(e){xs.headers[e]={}})),$a.forEach(["post","put","patch"],(function(e){xs.headers[e]=$a.merge(ws)}));const Es=xs;var Ss=$a.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 Ts(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 r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ps(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 Ps(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 Ps(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cs(r.key),r)}}function Cs(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 Rs=Symbol("internals");function ks(e){return e&&String(e).trim().toLowerCase()}function _s(e){return!1===e||null==e?e:$a.isArray(e)?e.map(_s):String(e)}function js(e,t,n,r,i){return $a.isFunction(r)?r.call(this,t,n):(i&&(t=n),$a.isString(t)?$a.isString(r)?-1!==t.indexOf(r):$a.isRegExp(r)?r.test(t):void 0:void 0)}var Is=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 r,i,o;return r=n,i=[{key:"set",value:function(e,t,n){var r=this;function i(e,t,n){var i=ks(t);if(!i)throw new Error("header name must be a non-empty string");var o=$a.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=_s(e))}var o=function(e,t){return $a.forEach(e,(function(e,n){return i(e,n,t)}))};return $a.isPlainObject(e)||e instanceof this.constructor?o(e,t):$a.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o(function(e){var t,n,r,i={};return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&Ss[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)})),i}(e),t):null!=e&&i(t,e,n),this}},{key:"get",value:function(e,t){if(e=ks(e)){var n=$a.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if($a.isFunction(t))return t.call(this,r,n);if($a.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=ks(e)){var n=$a.findKey(this,e);return!(!n||void 0===this[n]||t&&!js(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function i(e){if(e=ks(e)){var i=$a.findKey(n,e);!i||t&&!js(0,n[i],i,t)||(delete n[i],r=!0)}}return $a.isArray(e)?e.forEach(i):i(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var i=t[n];e&&!js(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return $a.forEach(this,(function(r,i){var o=$a.findKey(n,i);if(o)return t[o]=_s(r),void delete t[i];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(i):String(i).trim();a!==i&&delete t[i],t[a]=_s(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return $a.forEach(this,(function(n,r){null!=n&&!1!==n&&(t[r]=e&&$a.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=Ts(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,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[Rs]=this[Rs]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=ks(e);t[r]||(function(e,t){var n=$a.toCamelCase(" "+t);["get","set","has"].forEach((function(r){Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return $a.isArray(e)?e.forEach(r):r(e),this}}],i&&Os(r.prototype,i),o&&Os(r,o),Object.defineProperty(r,"prototype",{writable:!1}),n}(Symbol.iterator,Symbol.toStringTag);Is.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$a.freezeMethods(Is.prototype),$a.freezeMethods(Is);const As=Is;function Ds(e,t){var n=this||Es,r=t||n,i=As.from(r.headers),o=r.data;return $a.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Ms(e){return!(!e||!e.__CANCEL__)}function Ls(e,t,n){Qa.call(this,null==e?"canceled":e,Qa.ERR_CANCELED,t,n),this.name="CanceledError"}$a.inherits(Ls,Qa,{__CANCEL__:!0});const Ns=Ls;const Bs=ys.isStandardBrowserEnv?{write:function(e,t,n,r,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),$a.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),$a.isString(r)&&a.push("path="+r),$a.isString(i)&&a.push("domain="+i),!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 Fs(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 zs=ys.isStandardBrowserEnv?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{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=r(window.location.href),function(t){var n=$a.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};const Hs=function(e,t){e=e||10;var n,r=new Array(e),i=new Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){var l=Date.now(),u=i[a];n||(n=l),r[o]=s,i[o]=l;for(var c=a,f=0;c!==o;)f+=r[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),!(l-n<t)){var h=u&&l-u;return h?Math.round(1e3*f/h):void 0}}};function Us(e,t){var n=0,r=Hs(50,250);return function(i){var o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s);n=o;var u={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:i};u[t?"download":"upload"]=!0,e(u)}}const Vs="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var r,i=e.data,o=As.from(e.headers).normalize(),a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}$a.isFormData(i)&&(ys.isStandardBrowserEnv||ys.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));var l=new XMLHttpRequest;if(e.auth){var u=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(u+":"+c))}var f=Fs(e.baseURL,e.url);function h(){if(l){var r=As.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Qa("Request failed with status code "+n.status,[Qa.ERR_BAD_REQUEST,Qa.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:r,config:e,request:l}),l=null}}if(l.open(e.method.toUpperCase(),fs(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(h)},l.onabort=function(){l&&(n(new Qa("Request aborted",Qa.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new Qa("Network Error",Qa.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||ms;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Qa(t,r.clarifyTimeoutError?Qa.ETIMEDOUT:Qa.ECONNABORTED,e,l)),l=null},ys.isStandardBrowserEnv){var p=(e.withCredentials||zs(f))&&e.xsrfCookieName&&Bs.read(e.xsrfCookieName);p&&o.set(e.xsrfHeaderName,p)}void 0===i&&o.setContentType(null),"setRequestHeader"in l&&$a.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),$a.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",Us(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Us(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=function(t){l&&(n(!t||t.type?new Ns(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));var d,v=(d=/^([-+\w]{1,25})(:?\/\/|:)/.exec(f))&&d[1]||"";v&&-1===ys.protocols.indexOf(v)?n(new Qa("Unsupported protocol "+v+":",Qa.ERR_BAD_REQUEST,e)):l.send(i||null)}))};var Ws={http:es,xhr:Vs};$a.forEach(Ws,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Gs=function(e){for(var t,n,r=(e=$a.isArray(e)?e:[e]).length,i=0;i<r&&(t=e[i],!(n=$a.isString(t)?Ws[t.toLowerCase()]:t));i++);if(!n){if(!1===n)throw new Qa("Adapter ".concat(t," is not supported by the environment"),"ERR_NOT_SUPPORT");throw new Error($a.hasOwnProp(Ws,t)?"Adapter '".concat(t,"' is not available in the build"):"Unknown adapter '".concat(t,"'"))}if(!$a.isFunction(n))throw new TypeError("adapter is not a function");return n};function qs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ns(null,e)}function Xs(e){return qs(e),e.headers=As.from(e.headers),e.data=Ds.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gs(e.adapter||Es.adapter)(e).then((function(t){return qs(e),t.data=Ds.call(e,e.transformResponse,t),t.headers=As.from(t.headers),t}),(function(t){return Ms(t)||(qs(e),t&&t.response&&(t.response.data=Ds.call(e,e.transformResponse,t.response),t.response.headers=As.from(t.response.headers))),Promise.reject(t)}))}var Zs=function(e){return e instanceof As?e.toJSON():e};function $s(e,t){t=t||{};var n={};function r(e,t,n){return $a.isPlainObject(e)&&$a.isPlainObject(t)?$a.merge.call({caseless:n},e,t):$a.isPlainObject(t)?$a.merge({},t):$a.isArray(t)?t.slice():t}function i(e,t,n){return $a.isUndefined(t)?$a.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!$a.isUndefined(t))return r(void 0,t)}function a(e,t){return $a.isUndefined(t)?$a.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(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 i(Zs(e),Zs(t),!0)}};return $a.forEach(Object.keys(Object.assign({},e,t)),(function(r){var o=l[r]||i,a=o(e[r],t[r],r);$a.isUndefined(a)&&o!==s||(n[r]=a)})),n}var Ys="1.4.0",Ks={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Ks[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Js={};Ks.transitional=function(e,t,n){function r(e,t){return"[Axios v1.4.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new Qa(r(i," has been removed"+(t?" in "+t:"")),Qa.ERR_DEPRECATED);return t&&!Js[i]&&(Js[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};const Qs={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Qa("options must be an object",Qa.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new Qa("option "+o+" must be "+l,Qa.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Qa("Unknown option "+o,Qa.ERR_BAD_OPTION)}},validators:Ks};function el(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tl(r.key),r)}}function tl(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 nl=Qs.validators,rl=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 vs,response:new vs}}var t,n,r;return t=e,n=[{key:"request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n,r=t=$s(this.defaults,t),i=r.transitional,o=r.paramsSerializer,a=r.headers;void 0!==i&&Qs.assertOptions(i,{silentJSONParsing:nl.transitional(nl.boolean),forcedJSONParsing:nl.transitional(nl.boolean),clarifyTimeoutError:nl.transitional(nl.boolean)},!1),null!=o&&($a.isFunction(o)?t.paramsSerializer={serialize:o}:Qs.assertOptions(o,{encode:nl.function,serialize:nl.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),(n=a&&$a.merge(a.common,a[t.method]))&&$a.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 u,c=[];this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));var f,h=0;if(!l){var p=[Xs.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),f=p.length,u=Promise.resolve(t);h<f;)u=u.then(p[h++],p[h++]);return u}f=s.length;var d=t;for(h=0;h<f;){var v=s[h++],m=s[h++];try{d=v(d)}catch(e){m.call(this,e);break}}try{u=Xs.call(this,d)}catch(e){return Promise.reject(e)}for(h=0,f=c.length;h<f;)u=u.then(c[h++],c[h++]);return u}},{key:"getUri",value:function(e){return fs(Fs((e=$s(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}],n&&el(t.prototype,n),r&&el(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();$a.forEach(["delete","get","head","options"],(function(e){rl.prototype[e]=function(t,n){return this.request($s(n||{},{method:e,url:t,data:(n||{}).data}))}})),$a.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request($s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}rl.prototype[e]=t(),rl.prototype[e+"Form"]=t(!0)}));const il=rl;function ol(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,al(r.key),r)}}function al(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 sl=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 r=this;this.promise.then((function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(e,t,i){r.reason||(r.reason=new Ns(e,t,i),n(r.reason))}))}var t,n,r;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)}}}],r=[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}],n&&ol(t.prototype,n),r&&ol(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();const ll=sl;function ul(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 r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return cl(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 cl(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 cl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var fl={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(fl).forEach((function(e){var t=ul(e,2),n=t[0],r=t[1];fl[r]=n}));const hl=fl;var pl=function e(t){var n=new il(t),r=va(il.prototype.request,n);return $a.extend(r,il.prototype,n,{allOwnKeys:!0}),$a.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e($s(t,n))},r}(Es);pl.Axios=il,pl.CanceledError=Ns,pl.CancelToken=ll,pl.isCancel=Ms,pl.VERSION=Ys,pl.toFormData=os,pl.AxiosError=Qa,pl.Cancel=pl.CanceledError,pl.all=function(e){return Promise.all(e)},pl.spread=function(e){return function(t){return e.apply(null,t)}},pl.isAxiosError=function(e){return $a.isObject(e)&&!0===e.isAxiosError},pl.mergeConfig=$s,pl.AxiosHeaders=As,pl.formToJSON=function(e){return bs($a.isHTMLForm(e)?new FormData(e):e)},pl.HttpStatusCode=hl,pl.default=pl;const dl=pl;var vl=i(61054),ml=i.n(vl);const gl=function(e){return JSON.parse(JSON.stringify(e))};function yl(e){return function(e){if(Array.isArray(e))return xl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wl(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 bl(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=wl(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 wl(e,t){if(e){if("string"==typeof e)return xl(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)?xl(e,t):void 0}}function xl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var El={middle:!1,top:!1,"left-middle":!1,"right-middle":!1,bottom:!1,"left-top":!1,"right-top":!1,"left-bottom":!1,"right-bottom":!1},Sl=["tall","extra-tall","wide","full"];function Tl(e,t,n,r){switch(e){case"top":t[0][1]=r.id,"wide"===n&&(t[0][2]=r.id),"full"===n&&(t[0][0]=r.id,t[0][2]=r.id);break;case"left-middle":t[1][0]=r.id,"tall"===n?t[2][0]=r.id:"wide"===n&&(t[1][1]=r.id,t[1][2]=r.id);break;case"right-middle":t[1][2]=r.id,"tall"===n&&(t[2][2]=r.id);break;case"bottom":t[2][1]=r.id,"wide"===n&&(t[2][2]=r.id),"full"===n&&(t[2][0]=r.id,t[2][2]=r.id);break;case"left-top":t[0][0]=r.id,"tall"===n?t[1][0]=r.id:"wide"===n&&(t[0][1]=r.id,t[0][2]=r.id);break;case"right-top":t[0][2]=r.id,"tall"===n&&(t[1][2]=r.id);break;case"left-bottom":t[2][0]=r.id,"wide"===n&&(t[2][1]=r.id,t[2][2]=r.id);break;case"right-bottom":t[2][2]=r.id;break;default:t[1][1]=r.id,t[1][2]=r.id,"full"===n&&(t[1][0]=r.id)}}function Pl(e,t,n){var r=document.createElement("div");r.innerHTML=e;var i=r.getElementsByTagName("tei-body")[0].children,o=function(e){var t=e.getAttribute("rend");return Object.keys(El).includes(t)?t:"middle"};function a(e){var t=e.getAttribute("style");return Sl.includes(t)?t:null}var s=[],l="",u=0,c=0;try{var f,h=bl(i);try{for(h.s();!(f=h.n()).done;){var p,d=f.value,v=gl(t),m=gl(El),g=d.id,y=bl(d.children);try{for(y.s();!(p=y.n()).done;){var b=p.value,w=o(b),x=a(b);b.setAttribute("data-entry-id",g),m[w]?(b.id=m[w][0].id,m[w].push(b)):(u++,b.id="z".concat(u),m[w]=[b]),n(w,v,x,b)}}catch(e){y.e(e)}finally{y.f()}for(var E=0,S=Object.values(m);E<S.length;E++){var T=S[E];T&&(l=l.concat(Cl(T)))}s[c]=Rl(v[0],s[c]),s[c+1]=Rl(v[1],s[c+1]),s[c+2]=Rl(v[2],s[c+2]),c+=1}}catch(e){h.e(e)}finally{h.f()}}catch(e){console.log(e)}return{html:l,layout:Ol(s)}}function Ol(e){var t=yl(e);e[0]&&"."===e[0][0]&&"."===e[0][1]&&t.shift();var n,r="",i=bl(t);try{for(i.s();!(n=i.n()).done;){var o=n.value.join(" ");r+=" '".concat(o,"'")}}catch(e){i.e(e)}finally{i.f()}return r}function Cl(e){for(var t=e[0],n=t.id,r=t.attributes["data-entry-id"].value,i="",o=0;o<t.classList.length;o++)i="".concat(i," ").concat(t.classList.item(o));var a,s='<div id="'.concat(n,'" className="').concat(i,'" data-entry-id="').concat(r,'">'),l=bl(e);try{for(l.s();!(a=l.n()).done;){var u=a.value;u.setAttribute("className","block"),s="div"===u.name?s.concat("".concat(u.innerHTML," <br/>")):s.concat("".concat(u.outerHTML))}}catch(e){l.e(e)}finally{l.f()}return s.concat("</div>")}function Rl(e,t){if(t){for(var n=[],r=0;r<4;r++)"."!==e[r]?n[r]=e[r]:n[r]=t[r];return n}return e}function kl(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 _l(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 _l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 _l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Il(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jl(Object(n),!0).forEach((function(t){Al(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jl(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 r=n.call(e,t||"default");if("object"!=typeof r)return r;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 Dl(e){if(e.loading)return new Promise((function(t){t(e)}));e.loading=!0;var t=Il({},e);return new Promise((function(n,r){var i=Object.keys(t.annotationURLs);i.length>0?dl.get(t.image_zoom_url).then((function(o){t.tileSource=new(ml().IIIFTileSource)(o.data);var a,s=kl(i);try{var l=function(){var i=a.value,o=t.annotationURLs[i],s=o.htmlURL,l=o.xmlURL;t.transcription||(t.transcription={}),t.transcription[i]={},dl.all([dl.get(s),dl.get(l)]).then(dl.spread((function(e,o){var a,l,u=(a=e.data,l=o.data,Il(Il({},function(e){return Pl(e,[[".",".","."],[".",".","."],[".",".","."]],Tl)}(a)),{},{xml:l}));u?(t.transcription[i]=u,t.loading=!1,n(t)):r(new Error("Unable to load transcription: ".concat(s)))}))).catch((function(t){e.loading=!1,r(t)}))};for(s.s();!(a=s.n()).done;)l()}catch(e){s.e(e)}finally{s.f()}})).catch((function(t){e.loading=!1,r(t)})):dl.get(t.image_zoom_url).then((function(e){t.tileSource=new(ml().IIIFTileSource)(e.data),t.loading=!1,n(t)})).catch((function(t){e.loading=!1,r(t)}))}))}function Ml(){Ml=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.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 u(e,t,n,i){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),s=new P(i||[]);return r(a,"_invoke",{value:x(e,n,s)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function h(){}function p(){}function d(){}var v={};l(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&n.call(g,o)&&(v=g);var y=d.prototype=h.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,o,a,s){var l=c(e[r],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return C()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)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")),f;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.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,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function O(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 r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=d,r(y,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,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,r,i,o){void 0===o&&(o=Promise);var a=new w(u(t,n,r,i),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 r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,P.prototype={constructor:P,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(T),!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 r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("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 r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;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,f):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),f},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),T(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Ll=Ml().mark(Gl),Nl=Ml().mark(ql),Bl=Ml().mark(Xl),Fl=Ml().mark(Zl),zl=Ml().mark($l),Hl=Ml().mark(Yl),Ul=function(e){return e.document},Vl=function(e){return e.glossary},Wl=function(e){return e.comments};function Gl(e){var t,n;return Ml().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=15;break}r.t0=n[1],r.next="ec"===r.t0?6:15;break;case 6:return r.next=8,$l();case 8:return r.next=10,ql();case 10:return r.next=12,Zl();case 12:return r.next=14,Xl(n);case 14:return r.abrupt("break",15);case 15:case"end":return r.stop()}}),Ll)}function ql(){var e,t;return Ml().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Bi(Ul);case 2:if((e=n.sent).loaded){n.next=9;break}return n.next=6,dl.get(e.manifestURL);case 6:return t=n.sent,n.next=9,lu("DocumentActions.loadDocument",t.data);case 9:case"end":return n.stop()}}),Nl)}function Xl(e){var t,n,r,i,o,a,s,l,u;return Ml().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Bi(Ul);case 2:if(!(t=c.sent).loaded){c.next=21;break}e.length>2&&(n=e[2],e.length>4&&(r=e[4])),(i=[]).push(n),r&&r!==n&&i.push(r),o=0,a=i;case 9:if(!(o<a.length)){c.next=21;break}if(s=a[o],!(l=t.folioIndex[s])||l.loading){c.next=18;break}return c.next=15,Dl(l);case 15:return u=c.sent,c.next=18,lu("DocumentActions.loadFolio",u);case 18:o++,c.next=9;break;case 21:case"end":return c.stop()}}),Bl)}function Zl(){var e,t;return Ml().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Bi(Vl);case 2:if((e=n.sent).loaded){n.next=9;break}return n.next=6,dl.get(e.glossaryURL);case 6:return t=n.sent,n.next=9,lu("GlossaryActions.loadGlossary",t.data);case 9:case"end":return n.stop()}}),Fl)}function $l(){var e,t;return Ml().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Bi(Wl);case 2:if((e=n.sent).loaded){n.next=9;break}return n.next=6,dl.get(e.commentsURL);case 6:return t=n.sent,n.next=9,lu("CommentActions.loadComments",t.data);case 9:case"end":return n.stop()}}),zl)}function Yl(){return Ml().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,No("RouteListenerSaga.userNavigatation",Gl);case 2:case"end":return e.stop()}}),Hl)}function Kl(){Kl=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.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 u(e,t,n,i){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),s=new P(i||[]);return r(a,"_invoke",{value:x(e,n,s)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function h(){}function p(){}function d(){}var v={};l(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&n.call(g,o)&&(v=g);var y=d.prototype=h.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,o,a,s){var l=c(e[r],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return C()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)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")),f;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.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,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function O(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 r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=d,r(y,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,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,r,i,o){void 0===o&&(o=Promise);var a=new w(u(t,n,r,i),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 r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,P.prototype={constructor:P,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(T),!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 r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("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 r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;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,f):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),f},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),T(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Jl=Kl().mark(Ql);function Ql(){return Kl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t=[Yl()],n=void 0,(n=Ai(wi,t)).combinator=!0,n;case 2:case"end":return e.stop()}var t,n}),Jl)}function eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tu(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 r=n.call(e,t||"default");if("object"!=typeof r)return r;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 nu(e){return function(e){if(Array.isArray(e))return ru(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 ru(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 ru(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 ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iu(){iu=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.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 u(e,t,n,i){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),s=new P(i||[]);return r(a,"_invoke",{value:x(e,n,s)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function h(){}function p(){}function d(){}var v={};l(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&n.call(g,o)&&(v=g);var y=d.prototype=h.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,o,a,s){var l=c(e[r],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return C()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)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")),f;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.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,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function O(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 r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=d,r(y,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,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,r,i,o){void 0===o&&(o=Promise);var a=new w(u(t,n,r,i),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 r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,P.prototype={constructor:P,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(T),!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 r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("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 r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;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,f):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),f},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),T(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var ou=iu().mark(lu);function au(e){var t=jo(),n=Er(function(e){var t=e.iiifManifest,n=e.documentName,r=e.commentsURL,i=e.glossaryURL,o=e.transcriptionTypes;return Sr({diplomatic:uu("DiplomaticActions",oa,aa),document:uu("DocumentActions",ea,la(t,n,o)),glossary:uu("GlossaryActions",Uo,sa(i)),comments:uu("CommentActions",pa,da(r))})}(e),window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__(),Pr(t));return t.run(Ql),n}function su(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];e.dispatch({type:t,payload:{params:r,dispatcher:{dispatch:e.dispatch}}})}function lu(e){var t,n,r,i=arguments;return iu().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:for(t=i.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=i[r];return o.next=3,Mi({type:e,payload:{params:n}});case 3:return o.abrupt("return",o.sent);case 4:case"end":return o.stop()}}),ou)}function uu(e,t,n){for(var r=[],i=0,o=Object.keys(t);i<o.length;i++){var a=o[i];r.push("".concat(e,".").concat(a))}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,i=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]:r).includes(i.type)?function(e,t,n){var r=n.payload&&n.payload.params?n.payload.params:[];return t.apply(void 0,[e].concat(nu(r),[n.payload.dispatcher]))}(e,function(e,t){return t[e.split(".")[1]]}(i.type,o),i):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(n),!0).forEach((function(t){tu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)}}var cu={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},fu=t().createContext&&t().createContext(cu),hu=function(){return hu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},hu.apply(this,arguments)},pu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function du(e){return e&&e.map((function(e,n){return t().createElement(e.tag,hu({key:n},e.attr),du(e.child))}))}function vu(e){return function(n){return t().createElement(mu,hu({attr:hu({},e.attr)},n),du(e.child))}}function mu(e){var n=function(n){var r,i=e.attr,o=e.size,a=e.title,s=pu(e,["attr","size","title"]),l=o||n.size||"1em";return n.className&&(r=n.className),e.className&&(r=(r?r+" ":"")+e.className),t().createElement("svg",hu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,s,{className:r,style:hu(hu({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!==fu?t().createElement(fu.Consumer,null,(function(e){return n(e)})):n(cu)}function gu(e){return vu({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 yu(e){return vu({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 bu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var r=a({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}i(58740);function wu(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=wu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const xu=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=wu(e))&&(r&&(r+=" "),r+=t);return r};function Eu(e){return e&&e.ownerDocument||document}function Su(e){if("string"!=typeof e)throw new Error(d(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Tu="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 Pu="object"===("undefined"==typeof window?"undefined":Tu(window))&&"object"===("undefined"==typeof document?"undefined":Tu(document))&&9===document.nodeType;function Ou(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function Cu(e,t,n){return t&&Ou(e.prototype,t),n&&Ou(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ru(e,t){return Ru=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ru(e,t)}function ku(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ru(e,t)}function _u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ju={}.constructor;function Iu(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Iu);if(e.constructor!==ju)return e;var t={};for(var n in e)t[n]=Iu(e[n]);return t}function Au(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=Iu(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var Du=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Mu=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+=Du(e[n]," ");else t=Du(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Lu(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Nu(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Bu(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=Lu(n),l=s.linebreak,u=s.space;if(e&&o++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var f=a[c];for(var h in f){var p=f[h];null!=p&&(r&&(r+=l),r+=Nu(h+":"+u+Mu(p)+";",o))}}else for(var d in a){var v=a[d];null!=v&&(r&&(r+=l),r+=Nu(d+":"+u+Mu(v)+";",o))}for(var m in t){var g=t[m];null!=g&&"fallbacks"!==m&&(r&&(r+=l),r+=Nu(m+":"+u+Mu(g)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Nu(""+e+u+"{"+r,--o)+Nu("}",o)):r}var Fu=/([[\].#*$><+~=|^:(),"'`\s])/g,zu="undefined"!=typeof CSS&&CSS.escape,Hu=function(e){return zu?zu(e):e.replace(Fu,"\\$1")},Uu=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Vu=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(_u(_u(i)),s),i.selectorText="."+Hu(i.id)),i}ku(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}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]=Mu(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?a({},e,{allowEmpty:!0}):e;return Bu(this.selectorText,this.style,n)},Cu(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}(Uu),Wu={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Vu(e,t,n)}},Gu={indent:1,children:!0},qu=/@([\w-]+)/,Xu=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(qu);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new gc(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.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Gu);var t=Lu(e).linebreak;if(null==e.indent&&(e.indent=Gu.indent),null==e.children&&(e.children=Gu.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Zu=/@container|@media|@supports\s+/,$u={onCreateRule:function(e,t,n){return Zu.test(e)?new Xu(e,t,n):null}},Yu={indent:1,children:!0},Ku=/@keyframes\s+([\w-]+)/,Ju=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Ku);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,s=n.generateId;for(var l in this.id=!1===i?this.name:Hu(s(this,o)),this.rules=new gc(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=Yu);var t=Lu(e).linebreak;if(null==e.indent&&(e.indent=Yu.indent),null==e.children&&(e.children=Yu.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}(),Qu=/@keyframes\s+/,ec=/\$([\w-]+)/g,tc=function(e,t){return"string"==typeof e?e.replace(ec,(function(e,n){return n in t?t[n]:e})):e},nc=function(e,t,n){var r=e[t],i=tc(r,n);i!==r&&(e[t]=i)},rc={onCreateRule:function(e,t,n){return"string"==typeof e&&Qu.test(e)?new Ju(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&nc(e,"animation-name",n.keyframes),"animation"in e&&nc(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return tc(e,r.keyframes);default:return e}}},ic=function(e){function t(){return e.apply(this,arguments)||this}return ku(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?a({},e,{allowEmpty:!0}):e;return Bu(this.key,this.style,n)},t}(Uu),oc={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new ic(e,t,n):null}},ac=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=Lu(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Bu(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Bu(this.at,this.style,e)},e}(),sc=/@font-face/,lc={onCreateRule:function(e,t,n){return sc.test(e)?new ac(e,t,n):null}},uc=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 Bu(this.key,this.style,e)},e}(),cc={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new uc(e,t,n):null}},fc=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}(),hc={"@charset":!0,"@import":!0,"@namespace":!0},pc={onCreateRule:function(e,t,n){return e in hc?new fc(e,t,n):null}},dc=[Wu,$u,rc,oc,lc,cc,pc],vc={process:!0},mc={force:!0,process:!0},gc=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 r=this.options,i=r.parent,o=r.sheet,s=r.jss,l=r.Renderer,u=r.generateId,c=r.scoped,f=a({classes:this.classes,parent:i,sheet:o,jss:s,Renderer:l,generateId:u,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),h=e;e in this.raw&&(h=e+"-d"+this.counter++),this.raw[h]=t,h in this.classes&&(f.selector="."+Hu(this.classes[h]));var p=Au(h,t,f);if(!p)return null;this.register(p);var d=void 0===f.index?this.index.length:f.index;return this.index.splice(d,0,p),p},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=a({},n,{index:i})),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 Vu?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Ju&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Vu?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Ju&&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 r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=vc);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,mc)}for(var c in s){var f=t.style[c],h=s[c];null==f&&f!==h&&t.prop(c,null,mc)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=Lu(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),yc=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 gc(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 r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}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}(),bc=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}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 r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](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,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},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}(),wc=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 r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,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,r=t.attached,i=n(t,["attached"]),o=Lu(i).linebreak,a="",s=0;s<this.registry.length;s++){var l=this.registry[s];null!=r&&l.attached!==r||(a&&(a+=o),a+=l.toString(i))}return a},Cu(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),xc=new wc,Ec="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Sc="2f1acc6c3a606b082e5eef5e54414ffb";null==Ec[Sc]&&(Ec[Sc]=0);var Tc=Ec[Sc]++,Pc=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+Tc+i+t:o+n.key+"-"+Tc+(i?"-"+i:"")+"-"+t}},Oc=function(e){var t;return function(){return t||(t=e()),t}},Cc=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Rc=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Mu(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},kc=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},_c=function(e,t){return e.selectorText=t,e.selectorText===t},jc=Oc((function(){return document.querySelector("head")}));function Ic(e){var t=xc.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}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 r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=jc(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var Ac=Oc((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Dc=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]},Mc=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Lc=function(){function e(e){this.getPropertyValue=Cc,this.setProperty=Rc,this.removeProperty=kc,this.setSelector=_c,this.hasInsertedRules=!1,this.cssRules=[],e&&xc.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=Ac();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,r=Ic(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else jc().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 r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=Mc(n,t);if(!1===(i=Dc(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=Mc(n,t),l=Dc(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 yc&&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}(),Nc=0,Bc=function(){function e(e){this.id=Nc++,this.version="10.10.0",this.plugins=new bc,this.options={id:{minify:!1},createGenerateId:Pc,Renderer:Pu?Lc:null,plugins:[]},this.generateId=Pc({minify:!1});for(var t=0;t<dc.length;t++)this.plugins.use(dc[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===xc.index?0:xc.index+1);var r=new yc(e,a({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),xc.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 r=a({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=Au(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Fc=function(e){return new Bc(e)},zc="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Hc(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=Hc(r);o&&(t||(t={}),t[n]=o)}}return t}Fc();var Uc={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}};const Vc=Uc;var Wc=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Gc=Date.now(),qc="fnValues"+Gc,Xc="fnStyle"+ ++Gc;const Zc=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Au(e,{},n);return r[Xc]=t,r},onProcessStyle:function(e,t){if(qc in t||Xc in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[qc]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Xc];o&&(i.style=o(e)||{});var a=i[qc];if(a)for(var s in a)i.prop(s,a[s](e),r)}}};var $c="@global",Yc="@global ",Kc=function(){function e(e,t,n){for(var r in this.type="global",this.at=$c,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new gc(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.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Jc=function(){function e(e,t,n){this.type="global",this.at=$c,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,a({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Qc=/\s*,\s*/g;function ef(e,t){for(var n=e.split(Qc),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}const tf=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===$c)return new Kc(e,t,n);if("@"===e[0]&&e.substr(0,8)===Yc)return new Jc(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.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,r=e.style,i=r?r[$c]:null;if(i){for(var o in i)t.addRule(o,i[o],a({},n,{selector:ef(o,e.selector)}));delete r[$c]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,$c.length)===$c){var o=ef(i.substr($c.length),e.selector);t.addRule(o,r[i],a({},n,{selector:o})),delete r[i]}}(e,t))}}};var nf=/\s*,\s*/g,rf=/&/g,of=/\$([\w-]+)/g;const af=function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(nf),r=e.split(nf),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(rf,a):a+" "+l}return i}function n(e,t,n){if(n)return a({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=a({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var s,l,u=i,c=u.options.parent;for(var f in r){var h=-1!==f.indexOf("&"),p="@"===f[0];if(h||p){if(s=n(u,c,s),h){var d=t(f,u.selector);l||(l=e(c,o)),d=d.replace(of,l);var v=u.key+"-"+f;"replaceRule"in c?c.replaceRule(v,r[f],a({},s,{selector:d})):c.addRule(v,r[f],a({},s,{selector:d}))}else p&&c.addRule(f,{},s).addRule(u.key,r[f],{selector:u.selector});delete r[f]}}return r}}};var sf=/[A-Z]/g,lf=/^ms-/,uf={};function cf(e){return"-"+e.toLowerCase()}const ff=function(e){if(uf.hasOwnProperty(e))return uf[e];var t=e.replace(sf,cf);return uf[e]=lf.test(t)?"-"+t:t};function hf(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:ff(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(hf):t.fallbacks=hf(e.fallbacks)),t}const pf=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=hf(e[t]);return e}return hf(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=ff(t);return t===r?e:(n.prop(r,e),null)}}};var df=zc&&CSS?CSS.px:"px",vf=zc&&CSS?CSS.ms:"ms",mf=zc&&CSS?CSS.percent:"%";function gf(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var yf=gf({"animation-delay":vf,"animation-duration":vf,"background-position":df,"background-position-x":df,"background-position-y":df,"background-size":df,border:df,"border-bottom":df,"border-bottom-left-radius":df,"border-bottom-right-radius":df,"border-bottom-width":df,"border-left":df,"border-left-width":df,"border-radius":df,"border-right":df,"border-right-width":df,"border-top":df,"border-top-left-radius":df,"border-top-right-radius":df,"border-top-width":df,"border-width":df,"border-block":df,"border-block-end":df,"border-block-end-width":df,"border-block-start":df,"border-block-start-width":df,"border-block-width":df,"border-inline":df,"border-inline-end":df,"border-inline-end-width":df,"border-inline-start":df,"border-inline-start-width":df,"border-inline-width":df,"border-start-start-radius":df,"border-start-end-radius":df,"border-end-start-radius":df,"border-end-end-radius":df,margin:df,"margin-bottom":df,"margin-left":df,"margin-right":df,"margin-top":df,"margin-block":df,"margin-block-end":df,"margin-block-start":df,"margin-inline":df,"margin-inline-end":df,"margin-inline-start":df,padding:df,"padding-bottom":df,"padding-left":df,"padding-right":df,"padding-top":df,"padding-block":df,"padding-block-end":df,"padding-block-start":df,"padding-inline":df,"padding-inline-end":df,"padding-inline-start":df,"mask-position-x":df,"mask-position-y":df,"mask-size":df,height:df,width:df,"min-height":df,"max-height":df,"min-width":df,"max-width":df,bottom:df,left:df,top:df,right:df,inset:df,"inset-block":df,"inset-block-end":df,"inset-block-start":df,"inset-inline":df,"inset-inline-end":df,"inset-inline-start":df,"box-shadow":df,"text-shadow":df,"column-gap":df,"column-rule":df,"column-rule-width":df,"column-width":df,"font-size":df,"font-size-delta":df,"letter-spacing":df,"text-decoration-thickness":df,"text-indent":df,"text-stroke":df,"text-stroke-width":df,"word-spacing":df,motion:df,"motion-offset":df,outline:df,"outline-offset":df,"outline-width":df,perspective:df,"perspective-origin-x":mf,"perspective-origin-y":mf,"transform-origin":mf,"transform-origin-x":mf,"transform-origin-y":mf,"transform-origin-z":mf,"transition-delay":vf,"transition-duration":vf,"vertical-align":df,"flex-basis":df,"shape-margin":df,size:df,gap:df,grid:df,"grid-gap":df,"row-gap":df,"grid-row-gap":df,"grid-column-gap":df,"grid-template-rows":df,"grid-template-columns":df,"grid-auto-rows":df,"grid-auto-columns":df,"box-shadow-x":df,"box-shadow-y":df,"box-shadow-blur":df,"box-shadow-spread":df,"font-line-height":df,"text-shadow-x":df,"text-shadow-y":df,"text-shadow-blur":df});function bf(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=bf(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=bf(i,t[i],n);else for(var o in t)t[o]=bf(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||yf[e];return!a||0===t&&a===df?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}const wf=function(e){void 0===e&&(e={});var t=gf(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=bf(r,e[r],t);return e},onChangeValue:function(e,n){return bf(n,e,t)}}};function xf(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 Ef="",Sf="",Tf="",Pf="",Of=Pu&&"ontouchstart"in document.documentElement;if(Pu){var Cf={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Rf=document.createElement("p").style;for(var kf in Cf)if(kf+"Transform"in Rf){Ef=kf,Sf=Cf[kf];break}"Webkit"===Ef&&"msHyphens"in Rf&&(Ef="ms",Sf=Cf.ms,Pf="edge"),"Webkit"===Ef&&"-apple-trailing-word"in Rf&&(Tf="apple")}var _f={js:Ef,css:Sf,vendor:Tf,browser:Pf,isTouch:Of};var jf={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===_f.js?"-webkit-"+e:_f.css+e)}},If={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===_f.js?_f.css+"print-"+e:e)}},Af=/[-\s]+(.)?/g;function Df(e,t){return t?t.toUpperCase():""}function Mf(e){return e.replace(Af,Df)}function Lf(e){return Mf("-"+e)}var Nf,Bf={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===_f.js){var n="mask-image";if(Mf(n)in t)return e;if(_f.js+Lf(n)in t)return _f.css+e}return e}},Ff={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==_f.vendor||_f.isTouch?e:_f.css+e)}},zf={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:_f.css+e)}},Hf={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:_f.css+e)}},Uf={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===_f.js||"ms"===_f.js&&"edge"!==_f.browser?_f.css+e:e)}},Vf={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===_f.js||"ms"===_f.js||"apple"===_f.vendor?_f.css+e:e)}},Wf={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===_f.js?"WebkitColumn"+Lf(e)in t&&_f.css+"column-"+e:"Moz"===_f.js&&("page"+Lf(e)in t&&"page-"+e))}},Gf={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===_f.js)return e;var n=e.replace("-inline","");return _f.js+Lf(n)in t&&_f.css+n}},qf={supportedProperty:function(e,t){return Mf(e)in t&&e}},Xf={supportedProperty:function(e,t){var n=Lf(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:_f.js+n in t?_f.css+e:"Webkit"!==_f.js&&"Webkit"+n in t&&"-webkit-"+e}},Zf={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===_f.js?""+_f.css+e:e)}},$f={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===_f.js?_f.css+"scroll-chaining":e)}},Yf={"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"},Kf={supportedProperty:function(e,t){var n=Yf[e];return!!n&&(_f.js+Lf(n)in t&&_f.css+n)}},Jf={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"},Qf=Object.keys(Jf),eh=function(e){return _f.css+e},th={supportedProperty:function(e,t,n){var r=n.multiple;if(Qf.indexOf(e)>-1){var i=Jf[e];if(!Array.isArray(i))return _f.js+Lf(i)in t&&_f.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(_f.js+Lf(i[0])in t))return!1;return i.map(eh)}return!1}},nh=[jf,If,Bf,Ff,zf,Hf,Uf,Vf,Wf,Gf,qf,Xf,Zf,$f,Kf,th],rh=nh.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),ih=nh.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,xf(t.noPrefill)),e}),[]),oh={};if(Pu){Nf=document.createElement("p");var ah=window.getComputedStyle(document.documentElement,"");for(var sh in ah)isNaN(sh)||(oh[ah[sh]]=ah[sh]);ih.forEach((function(e){return delete oh[e]}))}function lh(e,t){if(void 0===t&&(t={}),!Nf)return e;if(null!=oh[e])return oh[e];"transition"!==e&&"transform"!==e||(t[e]=e in Nf.style);for(var n=0;n<rh.length&&(oh[e]=rh[n](e,Nf.style,t),!oh[e]);n++);try{Nf.style[e]=""}catch(e){return!1}return oh[e]}var uh,ch={},fh={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},hh=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function ph(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?lh(t):", "+lh(n);return r||(t||n)}function dh(e,t){var n=t;if(!uh||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=ch[r])return ch[r];try{uh.style[e]=n}catch(e){return ch[r]=!1,!1}if(fh[e])n=n.replace(hh,ph);else if(""===uh.style[e]&&("-ms-flex"===(n=_f.css+n)&&(uh.style[e]="-ms-flexbox"),uh.style[e]=n,""===uh.style[e]))return ch[r]=!1,!1;return uh.style[e]="",ch[r]=n,ch[r]}Pu&&(uh=document.createElement("p"));const vh=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=lh(n);o&&o!==n&&(i=!0);var a=!1,s=dh(o,Mu(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===_f.js?e:"@"+_f.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return dh(t,Mu(e))||e}}};const mh=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 r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}};var gh=Fc({plugins:[Zc(),tf(),af(),pf(),wf(),"undefined"==typeof window?null:vh(),mh()]}),yh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Wc.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[ce]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}(),bh={disableGeneration:!1,generateClassName:yh,jss:gh,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},wh=t().createContext(bh);var xh=-1e9;const Eh={};function Sh(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,s=e.name;if(!i.disableGeneration){var l=Vc.get(i.sheetsManager,o,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Vc.set(i.sheetsManager,o,r,l));var u=a({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});u.generateId=u.serverGenerateClassName||u.generateClassName;var c=i.sheetsRegistry;if(0===l.refs){var f;i.sheetsCache&&(f=Vc.get(i.sheetsCache,o,r));var h=o.create(r,s);f||((f=i.jss.createStyleSheet(h,a({link:!1},u))).attach(),i.sheetsCache&&Vc.set(i.sheetsCache,o,r,f)),c&&c.add(f),l.staticSheet=f,l.dynamicStyles=Hc(h)}if(l.dynamicStyles){var p=i.jss.createStyleSheet(l.dynamicStyles,a({link:!0},u));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=bu({baseClasses:l.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=l.staticSheet.classes;l.refs+=1}}function Th(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.name,o=n.classNamePrefix,s=n.Component,l=n.defaultTheme,c=void 0===l?Eh:l,f=r(n,["name","classNamePrefix","Component","defaultTheme"]),h=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var o=n.overrides[r],s=a({},i);return Object.keys(o).forEach((function(e){s[e]=u(s[e],o[e])})),s},options:{}}}(e),p=i||o||"makeStyles";h.options={index:xh+=1,name:i,meta:p,classNamePrefix:p};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=ue()||c,r=a({},t().useContext(wh),f),o=t().useRef(),l=t().useRef();!function(e,n){var r,i=t().useRef([]),o=t().useMemo((function(){return{}}),n);i.current!==o&&(i.current=o,r=e()),t().useEffect((function(){return function(){r&&r()}}),[o])}((function(){var t={name:i,state:{},stylesCreator:h,stylesOptions:r,theme:n};return Sh(t,e),l.current=!1,o.current=t,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=Vc.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(Vc.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(t)}}),[n,h]),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 u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=bu({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,e.classes,s);return u}}const Ph=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(i){var o=n.defaultTheme,s=n.withTheme,l=void 0!==s&&s,u=n.name,c=r(n,["defaultTheme","withTheme","name"]);var f=u,h=Th(e,a({defaultTheme:o,Component:i,name:u||i.displayName,classNamePrefix:f},c)),p=t().forwardRef((function(e,n){e.classes;var s,c=e.innerRef,f=r(e,["classes","innerRef"]),p=h(a({},i.defaultProps,e)),d=f;return("string"==typeof u||l)&&(s=ue()||o,u&&(d=he({theme:s,name:u,props:f})),l&&!d.theme&&(d.theme=s)),t().createElement(i,a({ref:c||n,classes:p},d))}));return de()(p,i),p}};const Oh=function(e,t){return Ph(e,a({defaultTheme:ve},t))};function Ch(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}function Rh(e){return Eu(e).defaultView||window}function kh(){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,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function _h(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function jh(t,n){return e.useMemo((function(){return null==t&&null==n?null:function(e){_h(t,e),_h(n,e)}}),[t,n])}var Ih="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;const Ah=e.forwardRef((function(t,n){var r=t.children,i=t.container,o=t.disablePortal,a=void 0!==o&&o,s=t.onRendered,l=e.useState(null),u=l[0],c=l[1],f=jh(e.isValidElement(r)?r.ref:null,n);return Ih((function(){a||c(function(e){return e="function"==typeof e?e():e,je.findDOMNode(e)}(i)||document.body)}),[i,a]),Ih((function(){if(u&&!a)return _h(n,u),function(){_h(n,null)}}),[n,u,a]),Ih((function(){s&&(u||a)&&s()}),[s,u,a]),a?e.isValidElement(r)?e.cloneElement(r,{ref:f}):r:u?je.createPortal(r,u):u}));var Dh="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function Mh(t){var n=e.useRef(t);return Dh((function(){n.current=t})),e.useCallback((function(){return n.current.apply(void 0,arguments)}),[])}function Lh(){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 Nh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Bh(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Fh(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(xf(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&Nh(e,r)}))}function zh(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Hh(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=Eu(e);return t.body===e?Rh(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=Lh();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(Bh(o)+a,"px"),n=Eu(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(Bh(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Uh=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 Cu(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&&Nh(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Fh(t,e.mountNode,e.modalRef,r,!0);var i=zh(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=zh(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Hh(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=zh(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&Nh(e.modalRef,!0),Fh(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&Nh(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const Vh=function(t){var n=t.children,r=t.disableAutoFocus,i=void 0!==r&&r,o=t.disableEnforceFocus,a=void 0!==o&&o,s=t.disableRestoreFocus,l=void 0!==s&&s,u=t.getDoc,c=t.isEnabled,f=t.open,h=e.useRef(),p=e.useRef(null),d=e.useRef(null),v=e.useRef(),m=e.useRef(null),g=e.useCallback((function(e){m.current=je.findDOMNode(e)}),[]),y=jh(n.ref,g),b=e.useRef();return e.useEffect((function(){b.current=f}),[f]),!b.current&&f&&"undefined"!=typeof window&&(v.current=u().activeElement),e.useEffect((function(){if(f){var e=Eu(m.current);i||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!a&&c()&&!h.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():h.current=!1)},n=function(t){!a&&c()&&9===t.keyCode&&e.activeElement===m.current&&(h.current=!0,t.shiftKey?d.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(v.current&&v.current.focus&&v.current.focus(),v.current=null)}}}),[i,a,l,c,f]),e.createElement(e.Fragment,null,e.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),e.cloneElement(n,{ref:y}),e.createElement("div",{tabIndex:0,ref:d,"data-test":"sentinelEnd"}))};var Wh={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 Gh=e.forwardRef((function(t,n){var i=t.invisible,o=void 0!==i&&i,s=t.open,l=r(t,["invisible","open"]);return s?e.createElement("div",a({"aria-hidden":!0,ref:n},l,{style:a({},Wh.root,o?Wh.invisible:{},l.style)})):null}));var qh=new Uh;const Xh=e.forwardRef((function(t,n){var i=ue(),o=he({name:"MuiModal",props:a({},t),theme:i}),s=o.BackdropComponent,l=void 0===s?Gh:s,u=o.BackdropProps,c=o.children,f=o.closeAfterTransition,h=void 0!==f&&f,p=o.container,d=o.disableAutoFocus,v=void 0!==d&&d,m=o.disableBackdropClick,g=void 0!==m&&m,y=o.disableEnforceFocus,b=void 0!==y&&y,w=o.disableEscapeKeyDown,x=void 0!==w&&w,E=o.disablePortal,S=void 0!==E&&E,T=o.disableRestoreFocus,P=void 0!==T&&T,O=o.disableScrollLock,C=void 0!==O&&O,R=o.hideBackdrop,k=void 0!==R&&R,_=o.keepMounted,j=void 0!==_&&_,I=o.manager,A=void 0===I?qh:I,D=o.onBackdropClick,M=o.onClose,L=o.onEscapeKeyDown,N=o.onRendered,B=o.open,F=r(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=jh(G,n),X=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(o),Z=function(){return Eu(W.current)},$=function(){return V.current.modalRef=G.current,V.current.mountNode=W.current,V.current},Y=function(){A.mount($(),{disableScrollLock:C}),G.current.scrollTop=0},K=Mh((function(){var e=function(e){return e="function"==typeof e?e():e,je.findDOMNode(e)}(p)||Z().body;A.add($(),e),G.current&&Y()})),J=e.useCallback((function(){return A.isTopModal($())}),[A]),Q=Mh((function(e){W.current=e,e&&(N&&N(),B&&J()?Y():Nh(G.current,!0))})),ee=e.useCallback((function(){A.remove($())}),[A]);if(e.useEffect((function(){return function(){ee()}}),[ee]),e.useEffect((function(){B?K():X&&h||ee()}),[B,ee,X,h,K]),!j&&!B&&(!X||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"}}}(i||{zIndex:oe}),ne={};return void 0===c.props.tabIndex&&(ne.tabIndex=c.props.tabIndex||"-1"),X&&(ne.onEnter=kh((function(){U(!1)}),c.props.onEnter),ne.onExited=kh((function(){U(!0),h&&ee()}),c.props.onExited)),e.createElement(Ah,{ref:Q,container:p,disablePortal:S},e.createElement("div",a({ref:q,onKeyDown:function(e){"Escape"===e.key&&J()&&(L&&L(e),x||(e.stopPropagation(),M&&M(e,"escapeKeyDown")))},role:"presentation"},F,{style:a({},te.root,!B&&H?te.hidden:{},F.style)}),k?null:e.createElement(l,a({open:B,onClick:function(e){e.target===e.currentTarget&&(D&&D(e),!g&&M&&M(e,"backdropClick"))}},u)),e.createElement(Vh,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:P,getDoc:Z,isEnabled:J,open:B},e.cloneElement(c,ne))))})),Zh=!1,$h=t().createContext(null);var Yh="unmounted",Kh="exited",Jh="entering",Qh="entered",ep="exiting",tp=function(e){function r(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Kh,r.appearStatus=Jh):i=Qh:i=t.unmountOnExit||t.mountOnEnter?Yh:Kh,r.state={status:i},r.nextCallback=null,r}ku(r,e),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Yh?{status:Kh}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Jh&&n!==Qh&&(t=Jh):n!==Jh&&n!==Qh||(t=ep)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Jh){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ie().findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Kh&&this.setState({status:Yh})},i.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Ie().findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Zh?this.safeSetState({status:Qh},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Jh},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Qh},(function(){t.props.onEntered(o,a)}))}))})))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ie().findDOMNode(this);t&&!Zh?(this.props.onExit(r),this.safeSetState({status:ep},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Kh},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Kh},(function(){e.props.onExited(r)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ie().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===Yh)return null;var r=this.props,i=r.children,o=(r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef,n(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t().createElement($h.Provider,{value:null},"function"==typeof i?i(e,o):t().cloneElement(t().Children.only(i),o))},r}(t().Component);function np(){}tp.contextType=$h,tp.propTypes={},tp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:np,onEntering:np,onEntered:np,onExit:np,onExiting:np,onExited:np},tp.UNMOUNTED=Yh,tp.EXITED=Kh,tp.ENTERING=Jh,tp.ENTERED=Qh,tp.EXITING=ep;const rp=tp;var ip=function(e){return e.scrollTop};function op(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}function ap(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var sp={entering:{opacity:1,transform:ap(1)},entered:{opacity:1,transform:"none"}},lp=e.forwardRef((function(t,n){var i=t.children,o=t.disableStrictModeCompat,s=void 0!==o&&o,l=t.in,u=t.onEnter,c=t.onEntered,f=t.onEntering,h=t.onExit,p=t.onExited,d=t.onExiting,v=t.style,m=t.timeout,g=void 0===m?"auto":m,y=t.TransitionComponent,b=void 0===y?rp:y,w=r(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),x=e.useRef(),E=e.useRef(),S=me(),T=S.unstable_strictMode&&!s,P=e.useRef(null),O=jh(i.ref,n),C=jh(T?P:void 0,O),R=function(e){return function(t,n){if(e){var r=V(T?[P.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},k=R(f),_=R((function(e,t){ip(e);var n,r=op({style:v,timeout:g},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===g?(n=S.transitions.getAutoHeightDuration(e.clientHeight),E.current=n):n=i,e.style.transition=[S.transitions.create("opacity",{duration:n,delay:o}),S.transitions.create("transform",{duration:.666*n,delay:o})].join(","),u&&u(e,t)})),j=R(c),I=R(d),A=R((function(e){var t,n=op({style:v,timeout:g},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===g?(t=S.transitions.getAutoHeightDuration(e.clientHeight),E.current=t):t=r,e.style.transition=[S.transitions.create("opacity",{duration:t,delay:i}),S.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=ap(.75),h&&h(e)})),D=R(p);return e.useEffect((function(){return function(){clearTimeout(x.current)}}),[]),e.createElement(b,a({appear:!0,in:l,nodeRef:T?P:void 0,onEnter:_,onEntered:j,onEntering:k,onExit:A,onExited:D,onExiting:I,addEndListener:function(e,t){var n=T?e:t;"auto"===g&&(x.current=setTimeout(n,E.current||0))},timeout:"auto"===g?null:g},w),(function(t,n){return e.cloneElement(i,a({style:a({opacity:0,transform:ap(.75),visibility:"exited"!==t||l?void 0:"hidden"},sp[t],v,i.props.style),ref:C},n))}))}));lp.muiSupportAuto=!0;const up=lp;var cp=e.forwardRef((function(t,n){var i=t.classes,o=t.className,s=t.component,l=void 0===s?"div":s,u=t.square,c=void 0!==u&&u,f=t.elevation,h=void 0===f?1:f,p=t.variant,d=void 0===p?"elevation":p,v=r(t,["classes","className","component","square","elevation","variant"]);return e.createElement(l,a({className:xu(i.root,o,"outlined"===d?i.outlined:i["elevation".concat(h)],!c&&i.rounded),ref:n},v))}));const fp=Oh((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"})(cp);function hp(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function pp(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function dp(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function vp(e){return"function"==typeof e?e():e}var mp=e.forwardRef((function(t,n){var i=t.action,o=t.anchorEl,s=t.anchorOrigin,l=void 0===s?{vertical:"top",horizontal:"left"}:s,u=t.anchorPosition,c=t.anchorReference,f=void 0===c?"anchorEl":c,h=t.children,p=t.classes,d=t.className,v=t.container,m=t.elevation,g=void 0===m?8:m,y=t.getContentAnchorEl,b=t.marginThreshold,w=void 0===b?16:b,x=t.onEnter,E=t.onEntered,S=t.onEntering,T=t.onExit,P=t.onExited,O=t.onExiting,C=t.open,R=t.PaperProps,k=void 0===R?{}:R,_=t.transformOrigin,j=void 0===_?{vertical:"top",horizontal:"left"}:_,I=t.TransitionComponent,A=void 0===I?up:I,D=t.transitionDuration,M=void 0===D?"auto":D,L=t.TransitionProps,N=void 0===L?{}:L,B=r(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"]),F=e.useRef(),z=e.useCallback((function(e){if("anchorPosition"===f)return u;var t=vp(o),n=(t&&1===t.nodeType?t:Eu(F.current).body).getBoundingClientRect(),r=0===e?l.vertical:"center";return{top:n.top+hp(n,r),left:n.left+pp(n,l.horizontal)}}),[o,l.horizontal,l.vertical,u,f]),H=e.useCallback((function(e){var t=0;if(y&&"anchorEl"===f){var n=y(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[l.vertical,f,y]),U=e.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:hp(e,j.vertical)+t,horizontal:pp(e,j.horizontal)}}),[j.horizontal,j.vertical]),V=e.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},r=U(n,t);if("none"===f)return{top:null,left:null,transformOrigin:dp(r)};var i=z(t),a=i.top-r.vertical,s=i.left-r.horizontal,l=a+n.height,u=s+n.width,c=Rh(vp(o)),h=c.innerHeight-w,p=c.innerWidth-w;if(a<w){var d=a-w;a-=d,r.vertical+=d}else if(l>h){var v=l-h;a-=v,r.vertical+=v}if(s<w){var m=s-w;s-=m,r.horizontal+=m}else if(u>p){var g=u-p;s-=g,r.horizontal+=g}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:dp(r)}}),[o,f,z,H,U,w]),W=e.useCallback((function(){var e=F.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){F.current=je.findDOMNode(e)}),[]);e.useEffect((function(){C&&W()})),e.useImperativeHandle(i,(function(){return C?{updatePosition:function(){W()}}:null}),[C,W]),e.useEffect((function(){if(C){var e=Ch((function(){W()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,W]);var q=M;"auto"!==M||A.muiSupportAuto||(q=void 0);var X=v||(o?Eu(vp(o)).body:void 0);return e.createElement(Xh,a({container:X,open:C,ref:n,BackdropProps:{invisible:!0},className:xu(p.root,d)},B),e.createElement(A,a({appear:!0,in:C,onEnter:x,onEntered:E,onExit:T,onExited:P,onExiting:O,timeout:q},N,{onEntering:kh((function(e,t){S&&S(e,t),W()}),N.onEntering)}),e.createElement(fp,a({elevation:g,ref:G},k,{className:xu(p.paper,k.className)}),h)))}));const gp=Oh({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(mp);const yp=e.createContext({});var bp=e.forwardRef((function(t,n){var i=t.children,o=t.classes,s=t.className,l=t.component,u=void 0===l?"ul":l,c=t.dense,f=void 0!==c&&c,h=t.disablePadding,p=void 0!==h&&h,d=t.subheader,v=r(t,["children","classes","className","component","dense","disablePadding","subheader"]),m=e.useMemo((function(){return{dense:f}}),[f]);return e.createElement(yp.Provider,{value:m},e.createElement(u,a({className:xu(o.root,s,f&&o.dense,!p&&o.padding,d&&o.subheader),ref:n},v),d,i))}));const wp=Oh({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(bp);function xp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ep(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Sp(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 Tp(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Sp(s,o)&&!l)return void s.focus();s=i(e,s,n)}}var Pp="undefined"==typeof window?e.useEffect:e.useLayoutEffect,Op=e.forwardRef((function(t,n){var i=t.actions,o=t.autoFocus,s=void 0!==o&&o,l=t.autoFocusItem,u=void 0!==l&&l,c=t.children,f=t.className,h=t.disabledItemsFocusable,p=void 0!==h&&h,d=t.disableListWrap,v=void 0!==d&&d,m=t.onKeyDown,g=t.variant,y=void 0===g?"selectedMenu":g,b=r(t,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),w=e.useRef(null),x=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pp((function(){s&&w.current.focus()}),[s]),e.useImperativeHandle(i,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!w.current.style.width;if(e.clientHeight<w.current.clientHeight&&n){var r="".concat(Lh(),"px");w.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,w.current.style.width="calc(100% + ".concat(r,")")}return w.current}}}),[]);var E=jh(e.useCallback((function(e){w.current=je.findDOMNode(e)}),[]),n),S=-1;e.Children.forEach(c,(function(t,n){e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===y&&t.props.selected||-1===S)&&(S=n))}));var T=e.Children.map(c,(function(t,n){if(n===S){var r={};return u&&(r.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===y&&(r.tabIndex=0),e.cloneElement(t,r)}return t}));return e.createElement(wp,a({role:"menu",ref:E,className:f,onKeyDown:function(e){var t=w.current,n=e.key,r=Eu(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Tp(t,r,v,p,xp);else if("ArrowUp"===n)e.preventDefault(),Tp(t,r,v,p,Ep);else if("Home"===n)e.preventDefault(),Tp(t,null,v,p,xp);else if("End"===n)e.preventDefault(),Tp(t,null,v,p,Ep);else if(1===n.length){var i=x.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var s=r&&!i.repeating&&Sp(r,i);i.previousKeyMatched&&(s||Tp(t,r,!1,p,xp,i))?e.preventDefault():i.previousKeyMatched=!1}m&&m(e)},tabIndex:s?0:-1},b),T)}));const Cp=Op;var Rp={vertical:"top",horizontal:"right"},kp={vertical:"top",horizontal:"left"},_p=e.forwardRef((function(t,n){var i=t.autoFocus,o=void 0===i||i,s=t.children,l=t.classes,u=t.disableAutoFocusItem,c=void 0!==u&&u,f=t.MenuListProps,h=void 0===f?{}:f,p=t.onClose,d=t.onEntering,v=t.open,m=t.PaperProps,g=void 0===m?{}:m,y=t.PopoverClasses,b=t.transitionDuration,w=void 0===b?"auto":b,x=t.TransitionProps,E=(x=void 0===x?{}:x).onEntering,S=r(x,["onEntering"]),T=t.variant,P=void 0===T?"selectedMenu":T,O=r(t,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),C=me(),R=o&&!c&&v,k=e.useRef(null),_=e.useRef(null),j=-1;e.Children.map(s,(function(t,n){e.isValidElement(t)&&(t.props.disabled||("menu"!==P&&t.props.selected||-1===j)&&(j=n))}));var I=e.Children.map(s,(function(t,n){return n===j?e.cloneElement(t,{ref:function(e){_.current=je.findDOMNode(e),_h(t.ref,e)}}):t}));return e.createElement(gp,a({getContentAnchorEl:function(){return _.current},classes:y,onClose:p,TransitionProps:a({onEntering:function(e,t){k.current&&k.current.adjustStyleForScrollbar(e,C),d&&d(e,t),E&&E(e,t)}},S),anchorOrigin:"rtl"===C.direction?Rp:kp,transformOrigin:"rtl"===C.direction?Rp:kp,PaperProps:a({},g,{classes:a({},g.classes,{root:l.paper})}),open:v,ref:n,transitionDuration:w},O),e.createElement(Cp,a({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:k,autoFocus:o&&(-1===j||c),autoFocusItem:R,variant:P},h,{className:xu(l.list,h.className)}),I))}));const jp=Oh({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(_p);function Ip(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ap(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Ip(e.value)&&""!==e.value||t&&Ip(e.defaultValue)&&""!==e.defaultValue)}function Dp(e,t){return"object"===s(t)&&null!==t?e===t:String(e)===String(t)}var Mp=e.forwardRef((function(t,n){var i=t["aria-label"],o=t.autoFocus,s=t.autoWidth,l=t.children,u=t.classes,c=t.className,f=t.defaultValue,h=t.disabled,p=t.displayEmpty,v=t.IconComponent,m=t.inputRef,g=t.labelId,y=t.MenuProps,b=void 0===y?{}:y,w=t.multiple,x=t.name,E=t.onBlur,S=t.onChange,T=t.onClose,P=t.onFocus,O=t.onOpen,C=t.open,R=t.readOnly,k=t.renderValue,_=t.SelectDisplayProps,j=void 0===_?{}:_,I=t.tabIndex,A=(t.type,t.value),D=t.variant,M=void 0===D?"standard":D,L=r(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"]),N=function(t){var n=t.controlled,r=t.default,i=(t.name,t.state,e.useRef(void 0!==n).current),o=e.useState(r),a=o[0],s=o[1];return[i?n:a,e.useCallback((function(e){i||s(e)}),[])]}({controlled:A,default:f,name:"Select"}),B=V(N,2),F=B[0],z=B[1],H=e.useRef(null),U=e.useState(null),W=U[0],G=U[1],q=e.useRef(null!=C).current,X=e.useState(),Z=X[0],$=X[1],Y=e.useState(!1),K=Y[0],J=Y[1],Q=jh(n,m);e.useImperativeHandle(Q,(function(){return{focus:function(){W.focus()},node:H.current,value:F}}),[W,F]),e.useEffect((function(){o&&W&&W.focus()}),[o,W]),e.useEffect((function(){if(W){var e=Eu(W).getElementById(g);if(e){var t=function(){getSelection().isCollapsed&&W.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[g,W]);var ee,te,ne=function(e,t){e?O&&O(t):T&&T(t),q||($(s?null:W.clientWidth),J(e))},re=e.Children.toArray(l),ie=function(e){return function(t){var n;if(w||ne(!1,t),w){n=Array.isArray(F)?F.slice():[];var r=F.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),F!==n&&(z(n),S&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:x}}),S(t,e)))}},oe=null!==W&&(q?C:K);delete L["aria-invalid"];var ae=[],se=!1;(Ap({value:F})||p)&&(k?ee=k(F):se=!0);var le=re.map((function(t){if(!e.isValidElement(t))return null;var n;if(w){if(!Array.isArray(F))throw new Error(d(2));(n=F.some((function(e){return Dp(e,t.props.value)})))&&se&&ae.push(t.props.children)}else(n=Dp(F,t.props.value))&&se&&(te=t.props.children);return n&&!0,e.cloneElement(t,{"aria-selected":n?"true":void 0,onClick:ie(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 ue,ce=Z;!s&&q&&W&&(ce=W.clientWidth),ue=void 0!==I?I:h?null:0;var fe=j.id||(x?"mui-component-select-".concat(x):void 0);return e.createElement(e.Fragment,null,e.createElement("div",a({className:xu(u.root,u.select,u.selectMenu,u[M],c,h&&u.disabled),ref:G,tabIndex:ue,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":oe?"true":void 0,"aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[g,fe].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!R){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ne(!0,e))}},onMouseDown:h||R?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:F,name:x}}),E(e))},onFocus:P},j,{id:fe}),function(e){return null==e||"string"==typeof e&&!e.trim()}(ee)?e.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):ee),e.createElement("input",a({value:Array.isArray(F)?F.join(","):F,name:x,ref:H,"aria-hidden":!0,onChange:function(e){var t=re.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=re[t];z(n.props.value),S&&S(e,n)}},tabIndex:-1,className:u.nativeInput,autoFocus:o},L)),e.createElement(v,{className:xu(u.icon,u["icon".concat(Su(M))],oe&&u.iconOpen,h&&u.disabled)}),e.createElement(jp,a({id:"menu-".concat(x||""),anchorEl:W,open:oe,onClose:function(e){ne(!1,e)}},b,{MenuListProps:a({"aria-labelledby":g,role:"listbox",disableListWrap:!0},b.MenuListProps),PaperProps:a({},b.PaperProps,{style:a({minWidth:ce},null!=b.PaperProps?b.PaperProps.style:null)})}),le))}));const Lp=Mp;function Np(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}var Bp=e.createContext();const Fp=Bp;function zp(){return e.useContext(Fp)}var Hp=e.forwardRef((function(t,n){var i=t.children,o=t.classes,s=t.className,l=t.color,u=void 0===l?"inherit":l,c=t.component,f=void 0===c?"svg":c,h=t.fontSize,p=void 0===h?"medium":h,d=t.htmlColor,v=t.titleAccess,m=t.viewBox,g=void 0===m?"0 0 24 24":m,y=r(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return e.createElement(f,a({className:xu(o.root,s,"inherit"!==u&&o["color".concat(Su(u))],"default"!==p&&"medium"!==p&&o["fontSize".concat(Su(p))]),focusable:"false",viewBox:g,color:d,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:n},y),i,v?e.createElement("title",null,v):null)}));Hp.muiName="SvgIcon";const Up=Oh((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"})(Hp);const Vp=(Wp=e.createElement("path",{d:"M7 10l5 5 5-5z"}),(Gp=function(e,n){return t().createElement(Up,a({ref:n},e),Wp)}).muiName=Up.muiName,t().memo(t().forwardRef(Gp)));var Wp,Gp;function qp(e,t){return parseInt(e[t],10)||0}var Xp="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Zp={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},$p=e.forwardRef((function(t,n){var i=t.onChange,o=t.rows,s=t.rowsMax,l=t.rowsMin,u=t.maxRows,c=t.minRows,f=void 0===c?1:c,h=t.style,p=t.value,d=r(t,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),v=u||s,m=o||l||f,g=e.useRef(null!=p).current,y=e.useRef(null),b=jh(n,y),w=e.useRef(null),x=e.useRef(0),E=e.useState({}),S=E[0],T=E[1],P=e.useCallback((function(){var e=y.current,n=window.getComputedStyle(e),r=w.current;r.style.width=n.width,r.value=e.value||t.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],o=qp(n,"padding-bottom")+qp(n,"padding-top"),a=qp(n,"border-bottom-width")+qp(n,"border-top-width"),s=r.scrollHeight-o;r.value="x";var l=r.scrollHeight-o,u=s;m&&(u=Math.max(Number(m)*l,u)),v&&(u=Math.min(Number(v)*l,u));var c=(u=Math.max(u,l))+("border-box"===i?o+a:0),f=Math.abs(u-s)<=1;T((function(e){return x.current<20&&(c>0&&Math.abs((e.outerHeightStyle||0)-c)>1||e.overflow!==f)?(x.current+=1,{overflow:f,outerHeightStyle:c}):e}))}),[v,m,t.placeholder]);e.useEffect((function(){var e=Ch((function(){x.current=0,P()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[P]),Xp((function(){P()})),e.useEffect((function(){x.current=0}),[p]);return e.createElement(e.Fragment,null,e.createElement("textarea",a({value:p,onChange:function(e){x.current=0,g||P(),i&&i(e)},ref:b,rows:m,style:a({height:S.outerHeightStyle,overflow:S.overflow?"hidden":null},h)},d)),e.createElement("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:a({},Zp,h)}))}));const Yp=$p;var Kp="undefined"==typeof window?e.useEffect:e.useLayoutEffect,Jp=e.forwardRef((function(t,n){var i=t["aria-describedby"],o=t.autoComplete,s=t.autoFocus,l=t.classes,u=t.className,c=(t.color,t.defaultValue),f=t.disabled,h=t.endAdornment,p=(t.error,t.fullWidth),v=void 0!==p&&p,m=t.id,g=t.inputComponent,y=void 0===g?"input":g,b=t.inputProps,w=void 0===b?{}:b,x=t.inputRef,E=(t.margin,t.multiline),S=void 0!==E&&E,T=t.name,P=t.onBlur,O=t.onChange,C=t.onClick,R=t.onFocus,k=t.onKeyDown,_=t.onKeyUp,j=t.placeholder,I=t.readOnly,A=t.renderSuffix,D=t.rows,M=t.rowsMax,L=t.rowsMin,N=t.maxRows,B=t.minRows,F=t.startAdornment,z=t.type,H=void 0===z?"text":z,U=t.value,V=r(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(),X=e.useCallback((function(e){0}),[]),Z=jh(w.ref,X),$=jh(x,Z),Y=jh(q,$),K=e.useState(!1),J=K[0],Q=K[1],ee=e.useContext(Bp);var te=Np({props:t,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});te.focused=ee?ee.focused:J,e.useEffect((function(){!ee&&f&&J&&(Q(!1),P&&P())}),[ee,f,J,P]);var ne=ee&&ee.onFilled,re=ee&&ee.onEmpty,ie=e.useCallback((function(e){Ap(e)?ne&&ne():re&&re()}),[ne,re]);Kp((function(){G&&ie({value:W})}),[W,ie,G]);e.useEffect((function(){ie(q.current)}),[]);var oe=y,ae=a({},w,{ref:Y});"string"!=typeof oe?ae=a({inputRef:Y,type:H},ae,{ref:null}):S?!D||N||B||M||L?(ae=a({minRows:D||B,rowsMax:M,maxRows:N},ae),oe=Yp):oe="textarea":ae=a({type:H},ae);return e.useEffect((function(){ee&&ee.setAdornedStart(Boolean(F))}),[ee,F]),e.createElement("div",a({className:xu(l.root,l["color".concat(Su(te.color||"primary"))],u,te.disabled&&l.disabled,te.error&&l.error,v&&l.fullWidth,te.focused&&l.focused,ee&&l.formControl,S&&l.multiline,F&&l.adornedStart,h&&l.adornedEnd,"dense"===te.margin&&l.marginDense),onClick:function(e){q.current&&e.currentTarget===e.target&&q.current.focus(),C&&C(e)},ref:n},V),F,e.createElement(Fp.Provider,{value:null},e.createElement(oe,a({"aria-invalid":te.error,"aria-describedby":i,autoComplete:o,autoFocus:s,defaultValue:c,disabled:te.disabled,id:m,onAnimationStart:function(e){ie("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:T,placeholder:j,readOnly:I,required:te.required,rows:D,value:W,onKeyDown:k,onKeyUp:_},ae,{className:xu(l.input,w.className,te.disabled&&l.disabled,S&&l.inputMultiline,te.hiddenLabel&&l.inputHiddenLabel,F&&l.inputAdornedStart,h&&l.inputAdornedEnd,"search"===H&&l.inputTypeSearch,"dense"===te.margin&&l.inputMarginDense),onBlur:function(e){P&&P(e),w.onBlur&&w.onBlur(e),ee&&ee.onBlur?ee.onBlur(e):Q(!1)},onChange:function(e){if(!G){var t=e.target||q.current;if(null==t)throw new Error(d(1));ie({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];w.onChange&&w.onChange.apply(w,[e].concat(r)),O&&O.apply(void 0,[e].concat(r))},onFocus:function(e){te.disabled?e.stopPropagation():(R&&R(e),w.onFocus&&w.onFocus(e),ee&&ee.onFocus?ee.onFocus(e):Q(!0))}}))),h,A?A(a({},te,{startAdornment:F})):null)}));const Qp=Oh((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})},r={opacity:"0 !important"},i={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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},"&$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"})(Jp);var ed=e.forwardRef((function(t,n){var i=t.disableUnderline,o=t.classes,s=t.fullWidth,l=void 0!==s&&s,u=t.inputComponent,c=void 0===u?"input":u,f=t.multiline,h=void 0!==f&&f,p=t.type,d=void 0===p?"text":p,v=r(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return e.createElement(Qp,a({classes:a({},o,{root:xu(o.root,!i&&o.underline),underline:null}),fullWidth:l,inputComponent:c,multiline:h,ref:n,type:d},v))}));ed.muiName="Input";const td=Oh((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"})(ed);const nd=e.forwardRef((function(t,n){var i=t.classes,o=t.className,s=t.disabled,l=t.IconComponent,u=t.inputRef,c=t.variant,f=void 0===c?"standard":c,h=r(t,["classes","className","disabled","IconComponent","inputRef","variant"]);return e.createElement(e.Fragment,null,e.createElement("select",a({className:xu(i.root,i.select,i[f],o,s&&i.disabled),disabled:s,ref:u||n},h)),t.multiple?null:e.createElement(l,{className:xu(i.icon,i["icon".concat(Su(f))],s&&i.disabled)}))}));var rd=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%"}}},id=e.createElement(td,null),od=e.forwardRef((function(t,n){var i=t.children,o=t.classes,s=t.IconComponent,l=void 0===s?Vp:s,u=t.input,c=void 0===u?id:u,f=t.inputProps,h=(t.variant,r(t,["children","classes","IconComponent","input","inputProps","variant"])),p=Np({props:t,muiFormControl:zp(),states:["variant"]});return e.cloneElement(c,a({inputComponent:nd,inputProps:a({children:i,classes:o,IconComponent:l,variant:p.variant,type:void 0},f,c?c.props.inputProps:{}),ref:n},h))}));od.muiName="Select";Oh(rd,{name:"MuiNativeSelect"})(od);var ad=e.forwardRef((function(t,n){var i=t.disableUnderline,o=t.classes,s=t.fullWidth,l=void 0!==s&&s,u=t.inputComponent,c=void 0===u?"input":u,f=t.multiline,h=void 0!==f&&f,p=t.type,d=void 0===p?"text":p,v=r(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return e.createElement(Qp,a({classes:a({},o,{root:xu(o.root,!i&&o.underline),underline:null}),fullWidth:l,inputComponent:c,multiline:h,ref:n,type:d},v))}));ad.muiName="Input";const sd=Oh((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,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:r}},"&$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"})(ad);var ld=e.forwardRef((function(t,n){t.children;var i=t.classes,o=t.className,s=t.label,l=t.labelWidth,u=t.notched,c=t.style,f=r(t,["children","classes","className","label","labelWidth","notched","style"]),p="rtl"===me().direction?"right":"left";if(void 0!==s)return e.createElement("fieldset",a({"aria-hidden":!0,className:xu(i.root,o),ref:n,style:c},f),e.createElement("legend",{className:xu(i.legendLabelled,u&&i.legendNotched)},s?e.createElement("span",null,s):e.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var d=l>0?.75*l+8:.01;return e.createElement("fieldset",a({"aria-hidden":!0,style:a(h({},"padding".concat(Su(p)),8),c),className:xu(i.root,o),ref:n},f),e.createElement("legend",{className:i.legend,style:{width:u?d:.01}},e.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))}));const ud=Oh((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"})(ld);var cd=e.forwardRef((function(t,n){var i=t.classes,o=t.fullWidth,s=void 0!==o&&o,l=t.inputComponent,u=void 0===l?"input":l,c=t.label,f=t.labelWidth,h=void 0===f?0:f,p=t.multiline,d=void 0!==p&&p,v=t.notched,m=t.type,g=void 0===m?"text":m,y=r(t,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return e.createElement(Qp,a({renderSuffix:function(t){return e.createElement(ud,{className:i.notchedOutline,label:c,labelWidth:h,notched:void 0!==v?v:Boolean(t.startAdornment||t.filled||t.focused)})},classes:a({},i,{root:xu(i.root,i.underline),notchedOutline:null}),fullWidth:s,inputComponent:u,multiline:d,ref:n,type:g},y))}));cd.muiName="Input";const fd=Oh((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"})(cd);var hd=rd,pd=e.createElement(td,null),dd=e.createElement(sd,null),vd=e.forwardRef((function t(n,i){var o=n.autoWidth,s=void 0!==o&&o,l=n.children,u=n.classes,c=n.displayEmpty,f=void 0!==c&&c,h=n.IconComponent,p=void 0===h?Vp:h,d=n.id,v=n.input,m=n.inputProps,g=n.label,y=n.labelId,b=n.labelWidth,w=void 0===b?0:b,x=n.MenuProps,E=n.multiple,S=void 0!==E&&E,T=n.native,P=void 0!==T&&T,O=n.onClose,C=n.onOpen,R=n.open,k=n.renderValue,_=n.SelectDisplayProps,j=n.variant,I=void 0===j?"standard":j,A=r(n,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),D=P?nd:Lp,M=Np({props:n,muiFormControl:zp(),states:["variant"]}).variant||I,L=v||{standard:pd,outlined:e.createElement(fd,{label:g,labelWidth:w}),filled:dd}[M];return e.cloneElement(L,a({inputComponent:D,inputProps:a({children:l,IconComponent:p,variant:M,type:void 0,multiple:S},P?{id:d}:{autoWidth:s,displayEmpty:f,labelId:y,MenuProps:x,onClose:O,onOpen:C,open:R,renderValue:k,SelectDisplayProps:a({id:d},_)},m,{classes:m?bu({baseClasses:u,newClasses:m.classes,Component:t}):u},v?v.props.inputProps:{}),ref:i},A))}));vd.muiName="Select";const md=Oh(hd,{name:"MuiSelect"})(vd);var gd=!0,yd=!1,bd=null,wd={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 xd(e){e.metaKey||e.altKey||e.ctrlKey||(gd=!0)}function Ed(){gd=!1}function Sd(){"hidden"===this.visibilityState&&yd&&(gd=!0)}function Td(e){var t,n,r,i=e.target;try{return i.matches(":focus-visible")}catch(e){}return gd||(n=(t=i).type,!("INPUT"!==(r=t.tagName)||!wd[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function Pd(){yd=!0,window.clearTimeout(bd),bd=window.setTimeout((function(){yd=!1}),100)}function Od(){return{isFocusVisible:Td,onBlurVisible:Pd,ref:e.useCallback((function(e){var t,n=je.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",xd,!0),t.addEventListener("mousedown",Ed,!0),t.addEventListener("pointerdown",Ed,!0),t.addEventListener("touchstart",Ed,!0),t.addEventListener("visibilitychange",Sd,!0))}),[])}}function Cd(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function Rd(e,t,n){return null!=n[t]?n[t]:e.props[t]}function kd(t,n,r){var i=Cd(t.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(n,i);return Object.keys(o).forEach((function(a){var s=o[a];if((0,e.isValidElement)(s)){var l=a in n,u=a in i,c=n[a],f=(0,e.isValidElement)(c)&&!c.props.in;!u||l&&!f?u||!l||f?u&&l&&(0,e.isValidElement)(c)&&(o[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:c.props.in,exit:Rd(s,"exit",t),enter:Rd(s,"enter",t)})):o[a]=(0,e.cloneElement)(s,{in:!1}):o[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:Rd(s,"exit",t),enter:Rd(s,"enter",t)})}})),o}var _d=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},jd=function(r){function i(e,t){var n,i=(n=r.call(this,e,t)||this).handleExited.bind(_u(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}ku(i,r);var o=i.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},i.getDerivedStateFromProps=function(t,n){var r,i,o=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,i=a,Cd(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:i.bind(null,t),in:!0,appear:Rd(t,"appear",r),enter:Rd(t,"enter",r),exit:Rd(t,"exit",r)})}))):kd(t,o,a),firstRender:!1}},o.handleExited=function(e,t){var n=Cd(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,r=e.component,i=e.childFactory,o=n(e,["component","childFactory"]),a=this.state.contextValue,s=_d(this.state.children).map(i);return delete o.appear,delete o.enter,delete o.exit,null===r?t().createElement($h.Provider,{value:a},s):t().createElement($h.Provider,{value:a},t().createElement(r,o,s))},i}(t().Component);jd.propTypes={},jd.defaultProps={component:"div",childFactory:function(e){return e}};const Id=jd;var Ad="undefined"==typeof window?e.useEffect:e.useLayoutEffect;const Dd=function(t){var n=t.classes,r=t.pulsate,i=void 0!==r&&r,o=t.rippleX,a=t.rippleY,s=t.rippleSize,l=t.in,u=t.onExited,c=void 0===u?function(){}:u,f=t.timeout,h=e.useState(!1),p=h[0],d=h[1],v=xu(n.ripple,n.rippleVisible,i&&n.ripplePulsate),m={width:s,height:s,top:-s/2+a,left:-s/2+o},g=xu(n.child,p&&n.childLeaving,i&&n.childPulsate),y=Mh(c);return Ad((function(){if(!l){d(!0);var e=setTimeout(y,f);return function(){clearTimeout(e)}}}),[y,l,f]),e.createElement("span",{className:v,style:m},e.createElement("span",{className:g}))};var Md=e.forwardRef((function(t,n){var i=t.center,o=void 0!==i&&i,s=t.classes,l=t.className,u=r(t,["center","classes","className"]),c=e.useState([]),f=c[0],h=c[1],p=e.useRef(0),d=e.useRef(null);e.useEffect((function(){d.current&&(d.current(),d.current=null)}),[f]);var v=e.useRef(!1),m=e.useRef(null),g=e.useRef(null),y=e.useRef(null);e.useEffect((function(){return function(){clearTimeout(m.current)}}),[]);var b=e.useCallback((function(t){var n=t.pulsate,r=t.rippleX,i=t.rippleY,o=t.rippleSize,a=t.cb;h((function(t){return[].concat(xf(t),[e.createElement(Dd,{key:p.current,classes:s,timeout:550,pulsate:n,rippleX:r,rippleY:i,rippleSize:o})])})),p.current+=1,d.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,r=t.pulsate,i=void 0!==r&&r,a=t.center,s=void 0===a?o||t.pulsate:a,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&v.current)v.current=!1;else{"touchstart"===e.type&&(v.current=!0);var c,f,h,p=u?null:y.current,d=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(d.width/2),f=Math.round(d.height/2);else{var w=e.touches?e.touches[0]:e,x=w.clientX,E=w.clientY;c=Math.round(x-d.left),f=Math.round(E-d.top)}if(s)(h=Math.sqrt((2*Math.pow(d.width,2)+Math.pow(d.height,2))/3))%2==0&&(h+=1);else{var S=2*Math.max(Math.abs((p?p.clientWidth:0)-c),c)+2,T=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;h=Math.sqrt(Math.pow(S,2)+Math.pow(T,2))}e.touches?null===g.current&&(g.current=function(){b({pulsate:i,rippleX:c,rippleY:f,rippleSize:h,cb:n})},m.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):b({pulsate:i,rippleX:c,rippleY:f,rippleSize:h,cb:n})}}),[o,b]),x=e.useCallback((function(){w({},{pulsate:!0})}),[w]),E=e.useCallback((function(e,t){if(clearTimeout(m.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(m.current=setTimeout((function(){E(e,t)})));g.current=null,h((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return e.useImperativeHandle(n,(function(){return{pulsate:x,start:w,stop:E}}),[x,w,E]),e.createElement("span",a({className:xu(s.root,l),ref:y},u),e.createElement(Id,{component:null,exit:!0},f))}));const Ld=Oh((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(Md));var Nd=e.forwardRef((function(t,n){var i=t.action,o=t.buttonRef,s=t.centerRipple,l=void 0!==s&&s,u=t.children,c=t.classes,f=t.className,h=t.component,p=void 0===h?"button":h,d=t.disabled,v=void 0!==d&&d,m=t.disableRipple,g=void 0!==m&&m,y=t.disableTouchRipple,b=void 0!==y&&y,w=t.focusRipple,x=void 0!==w&&w,E=t.focusVisibleClassName,S=t.onBlur,T=t.onClick,P=t.onFocus,O=t.onFocusVisible,C=t.onKeyDown,R=t.onKeyUp,k=t.onMouseDown,_=t.onMouseLeave,j=t.onMouseUp,I=t.onTouchEnd,A=t.onTouchMove,D=t.onTouchStart,M=t.onDragLeave,L=t.tabIndex,N=void 0===L?0:L,B=t.TouchRippleProps,F=t.type,z=void 0===F?"button":F,H=r(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];v&&G&&q(!1);var X=Od(),Z=X.isFocusVisible,$=X.onBlurVisible,Y=X.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;return Mh((function(r){return t&&t(r),!n&&V.current&&V.current[e](r),!0}))}e.useImperativeHandle(i,(function(){return{focusVisible:function(){q(!0),U.current.focus()}}}),[]),e.useEffect((function(){G&&x&&!g&&V.current.pulsate()}),[g,x,G]);var J=K("start",k),Q=K("stop",M),ee=K("stop",j),te=K("stop",(function(e){G&&e.preventDefault(),_&&_(e)})),ne=K("start",D),re=K("stop",I),ie=K("stop",A),oe=K("stop",(function(e){G&&($(e),q(!1)),S&&S(e)}),!1),ae=Mh((function(e){U.current||(U.current=e.currentTarget),Z(e)&&(q(!0),O&&O(e)),P&&P(e)})),se=function(){var e=je.findDOMNode(U.current);return p&&"button"!==p&&!("A"===e.tagName&&e.href)},le=e.useRef(!1),ue=Mh((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(),C&&C(e),e.target===e.currentTarget&&se()&&"Enter"===e.key&&!v&&(e.preventDefault(),T&&T(e))})),ce=Mh((function(e){x&&" "===e.key&&V.current&&G&&!e.defaultPrevented&&(le.current=!1,e.persist(),V.current.stop(e,(function(){V.current.pulsate(e)}))),R&&R(e),T&&e.target===e.currentTarget&&se()&&" "===e.key&&!e.defaultPrevented&&T(e)})),fe=p;"button"===fe&&H.href&&(fe="a");var he={};"button"===fe?(he.type=z,he.disabled=v):("a"===fe&&H.href||(he.role="button"),he["aria-disabled"]=v);var pe=jh(o,n),de=jh(Y,U),ve=jh(pe,de),me=e.useState(!1),ge=me[0],ye=me[1];e.useEffect((function(){ye(!0)}),[]);var be=ge&&!g&&!v;return e.createElement(fe,a({className:xu(c.root,f,G&&[c.focusVisible,E],v&&c.disabled),onBlur:oe,onClick:T,onFocus:ae,onKeyDown:ue,onKeyUp:ce,onMouseDown:J,onMouseLeave:te,onMouseUp:ee,onDragLeave:Q,onTouchEnd:re,onTouchMove:ie,onTouchStart:ne,ref:ve,tabIndex:v?-1:N},he,H),u,be?e.createElement(Ld,a({ref:V,center:l},B)):null)}));const Bd=Oh({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"})(Nd);var Fd="undefined"==typeof window?e.useEffect:e.useLayoutEffect,zd=e.forwardRef((function(t,n){var i=t.alignItems,o=void 0===i?"center":i,s=t.autoFocus,l=void 0!==s&&s,u=t.button,c=void 0!==u&&u,f=t.children,h=t.classes,p=t.className,d=t.component,v=t.ContainerComponent,m=void 0===v?"li":v,g=t.ContainerProps,y=(g=void 0===g?{}:g).className,b=r(g,["className"]),w=t.dense,x=void 0!==w&&w,E=t.disabled,S=void 0!==E&&E,T=t.disableGutters,P=void 0!==T&&T,O=t.divider,C=void 0!==O&&O,R=t.focusVisibleClassName,k=t.selected,_=void 0!==k&&k,j=r(t,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),I=e.useContext(yp),A={dense:x||I.dense||!1,alignItems:o},D=e.useRef(null);Fd((function(){l&&D.current&&D.current.focus()}),[l]);var M,L,N=e.Children.toArray(f),B=N.length&&(M=N[N.length-1],L=["ListItemSecondaryAction"],e.isValidElement(M)&&-1!==L.indexOf(M.type.muiName)),F=jh(e.useCallback((function(e){D.current=je.findDOMNode(e)}),[]),n),z=a({className:xu(h.root,p,A.dense&&h.dense,!P&&h.gutters,C&&h.divider,S&&h.disabled,c&&h.button,"center"!==o&&h.alignItemsFlexStart,B&&h.secondaryAction,_&&h.selected),disabled:S},j),H=d||"li";return c&&(z.component=d||"div",z.focusVisibleClassName=xu(h.focusVisible,R),H=Bd),B?(H=z.component||d?H:"div","li"===m&&("li"===H?H="div":"li"===z.component&&(z.component="div")),e.createElement(yp.Provider,{value:A},e.createElement(m,a({className:xu(h.container,y),ref:F},b),e.createElement(H,z,N),N.pop()))):e.createElement(yp.Provider,{value:A},e.createElement(H,a({ref:F},z),N))}));const Hd=Oh((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"})(zd);var Ud=e.forwardRef((function(t,n){var i,o=t.classes,s=t.className,l=t.component,u=void 0===l?"li":l,c=t.disableGutters,f=void 0!==c&&c,h=t.ListItemClasses,p=t.role,d=void 0===p?"menuitem":p,v=t.selected,m=t.tabIndex,g=r(t,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return t.disabled||(i=void 0!==m?m:-1),e.createElement(Hd,a({button:!0,role:d,tabIndex:i,component:u,selected:v,disableGutters:f,classes:a({dense:o.dense},h),className:xu(o.root,s,v&&o.selected,!f&&o.gutters),ref:n},g))}));const Vd=Oh((function(e){return{root:a({},e.typography.body1,h({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"})(Ud);function Wd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gd(r.key),r)}}function Gd(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 qd(e,t){return qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qd(e,t)}function Xd(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,r=$d(e);if(t){var i=$d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 Zd(e)}(this,n)}}function Zd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $d(e){return $d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$d(e)}const Yd=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&&qd(e,t)}(a,e);var n,r,i,o=Xd(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(Zd(t)),t.state={textInput:""},t}return n=a,(r=[{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:"componentWillReceiveProps",value:function(e){if(e.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})))}}])&&Wd(n.prototype,r),i&&Wd(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);var Kd={transcriptionTypeLabels:{tc:"Diplomatic (FR)",tcn:"Normalized (FR)",tl:"Translation (EN)",f:"Facsimile",anno:"Research Esssay",glossary:"Glossary"}};const Jd=Kd;var Qd="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,ev=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Qd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var tv=Qd&&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()}),ev))}};function nv(e){return e&&"[object Function]"==={}.toString.call(e)}function rv(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function iv(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function ov(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=rv(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:ov(iv(e))}function av(e){return e&&e.referenceNode?e.referenceNode:e}var sv=Qd&&!(!window.MSInputMethodContext||!document.documentMode),lv=Qd&&/MSIE 10/.test(navigator.userAgent);function uv(e){return 11===e?sv:10===e?lv:sv||lv}function cv(e){if(!e)return document.documentElement;for(var t=uv(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===rv(n,"position")?cv(n):n:e?e.ownerDocument.documentElement:document.documentElement}function fv(e){return null!==e.parentNode?fv(e.parentNode):e}function hv(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||r.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&cv(a.firstElementChild)!==a?cv(l):l;var u=fv(e);return u.host?hv(u.host,t):hv(e,fv(t).host)}function pv(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 r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function dv(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function vv(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],uv(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function mv(e){var t=e.body,n=e.documentElement,r=uv(10)&&getComputedStyle(n);return{height:vv("Height",t,n,r),width:vv("Width",t,n,r)}}var gv=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),yv=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},bv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function wv(e){return bv({},e,{right:e.left+e.width,bottom:e.top+e.height})}function xv(e){var t={};try{if(uv(10)){t=e.getBoundingClientRect();var n=pv(e,"top"),r=pv(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?mv(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,u=e.offsetHeight-s;if(l||u){var c=rv(e);l-=dv(c,"x"),u-=dv(c,"y"),i.width-=l,i.height-=u}return wv(i)}function Ev(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=uv(10),i="HTML"===t.nodeName,o=xv(e),a=xv(t),s=ov(e),l=rv(t),u=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=wv({top:o.top-a.top-u,left:o.left-a.left-c,width:o.width,height:o.height});if(f.marginTop=0,f.marginLeft=0,!r&&i){var h=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);f.top-=u-h,f.bottom-=u-h,f.left-=c-p,f.right-=c-p,f.marginTop=h,f.marginLeft=p}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=pv(t,"top"),i=pv(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}(f,t)),f}function Sv(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===rv(e,"position"))return!0;var n=iv(e);return!!n&&Sv(n)}function Tv(e){if(!e||!e.parentElement||uv())return document.documentElement;for(var t=e.parentElement;t&&"none"===rv(t,"transform");)t=t.parentElement;return t||document.documentElement}function Pv(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?Tv(e):hv(e,av(t));if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Ev(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:pv(n),s=t?0:pv(n,"left");return wv({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=ov(iv(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Ev(s,a,i);if("HTML"!==s.nodeName||Sv(a))o=l;else{var u=mv(e.ownerDocument),c=u.height,f=u.width;o.top+=l.top-l.marginTop,o.bottom=c+l.top,o.left+=l.left-l.marginLeft,o.right=f+l.left}}var h="number"==typeof(n=n||0);return o.left+=h?n:n.left||0,o.top+=h?n:n.top||0,o.right-=h?n:n.right||0,o.bottom-=h?n:n.bottom||0,o}function Ov(e){return e.width*e.height}function Cv(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=Pv(n,r,o,i),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 bv({key:e},s[e],{area:Ov(s[e])})})).sort((function(e,t){return t.area-e.area})),u=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function Rv(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Ev(n,r?Tv(t):hv(t,av(n)),r)}function kv(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function _v(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 jv(e,t,n){n=n.split("-")[0];var r=kv(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[u]:t[_v(s)],i}function Iv(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Av(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 r=Iv(e,(function(e){return e[t]===n}));return e.indexOf(r)}(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&&nv(n)&&(t.offsets.popper=wv(t.offsets.popper),t.offsets.reference=wv(t.offsets.reference),t=n(t,e))})),t}function Dv(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Rv(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Cv(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=jv(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Av(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Mv(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Lv(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function Nv(){return this.state.isDestroyed=!0,Mv(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[Lv("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Bv(e){var t=e.ownerDocument;return t?t.defaultView:window}function Fv(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||Fv(ov(o.parentNode),t,n,r),r.push(o)}function zv(e,t,n,r){n.updateBound=r,Bv(e).addEventListener("resize",n.updateBound,{passive:!0});var i=ov(e);return Fv(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Hv(){this.state.eventsEnabled||(this.state=zv(this.reference,this.options,this.state,this.scheduleUpdate))}function Uv(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,Bv(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 Vv(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Wv(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Vv(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Gv=Qd&&/Firefox/i.test(navigator.userAgent);function qv(e,t,n){var r=Iv(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){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 i}var Xv=["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"],Zv=Xv.slice(3);function $v(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Zv.indexOf(e),r=Zv.slice(n+1).concat(Zv.slice(0,n));return t?r.reverse():r}var Yv="flip",Kv="clockwise",Jv="counterclockwise";function Qv(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(Iv(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+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return u=u.map((function(e,r){var i=(1===r?!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,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){return wv("%p"===a?n:r)[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,i,t,n)}))})),u.forEach((function(e,t){e.forEach((function(n,r){Vv(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var em={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:yv({},l,o[l]),end:yv({},l,o[l]+o[u]-a[u])};e.offsets.popper=bv({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=Vv(+n)?[+n,0]:Qv(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||cv(e.instance.popper);e.instance.reference===n&&(n=cv(n));var r=Lv("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=Pv(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(c[e],l[e])),yv({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(c[n],l[e]-("right"===e?c.width:c.height))),yv({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=bv({},c,f[t](e))})),e.offsets.popper=c,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,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[u]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!qv(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",c=l?"Top":"Left",f=c.toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",d=kv(r)[u];s[p]-d<a[f]&&(e.offsets.popper[f]-=a[f]-(s[p]-d)),s[f]+d>a[p]&&(e.offsets.popper[f]+=s[f]+d-a[p]),e.offsets.popper=wv(e.offsets.popper);var v=s[f]+s[u]/2-d/2,m=rv(e.instance.popper),g=parseFloat(m["margin"+c]),y=parseFloat(m["border"+c+"Width"]),b=v-e.offsets.popper[f]-g-y;return b=Math.max(Math.min(a[u]-d,b),0),e.arrowElement=r,e.offsets.arrow=(yv(n={},f,Math.round(b)),yv(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Mv(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Pv(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=_v(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Yv:a=[r,i];break;case Kv:a=$v(r);break;case Jv:a=$v(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=_v(r);var u=e.offsets.popper,c=e.offsets.reference,f=Math.floor,h="left"===r&&f(u.right)>f(c.left)||"right"===r&&f(u.left)<f(c.right)||"top"===r&&f(u.bottom)>f(c.top)||"bottom"===r&&f(u.top)<f(c.bottom),p=f(u.left)<f(n.left),d=f(u.right)>f(n.right),v=f(u.top)<f(n.top),m=f(u.bottom)>f(n.bottom),g="left"===r&&p||"right"===r&&d||"top"===r&&v||"bottom"===r&&m,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&p||y&&"end"===o&&d||!y&&"start"===o&&v||!y&&"end"===o&&m),w=!!t.flipVariationsByContent&&(y&&"start"===o&&d||y&&"end"===o&&p||!y&&"start"===o&&m||!y&&"end"===o&&v),x=b||w;(h||g||x)&&(e.flipped=!0,(h||g)&&(r=a[l+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=bv({},e.offsets.popper,jv(e.instance.popper,e.offsets.reference,e.placement)),e=Av(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],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=_v(t),e.offsets.popper=wv(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!qv(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Iv(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,r=t.y,i=e.offsets.popper,o=Iv(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=cv(e.instance.popper),l=xv(s),u={position:i.position},c=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},l=o(i.width),u=o(r.width),c=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),h=t?c||f||l%2==u%2?o:a:s,p=t?o:s;return{left:h(l%2==1&&u%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:h(r.right)}}(e,window.devicePixelRatio<2||!Gv),f="bottom"===n?"top":"bottom",h="right"===r?"left":"right",p=Lv("transform"),d=void 0,v=void 0;if(v="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-l.height+c.bottom:c.top,d="right"===h?"HTML"===s.nodeName?-s.clientWidth+c.right:-l.width+c.right:c.left,a&&p)u[p]="translate3d("+d+"px, "+v+"px, 0)",u[f]=0,u[h]=0,u.willChange="transform";else{var m="bottom"===f?-1:1,g="right"===h?-1:1;u[f]=v*m,u[h]=d*g,u.willChange=f+", "+h}var y={"x-placement":e.placement};return e.attributes=bv({},y,e.attributes),e.styles=bv({},u,e.styles),e.arrowStyles=bv({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Wv(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&&Wv(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=Rv(i,t,e,n.positionFixed),a=Cv(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Wv(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},tm={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:em},nm=function(){function e(t,n){var r=this,i=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(r.update)},this.update=tv(this.update.bind(this)),this.options=bv({},e.Defaults,i),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(bv({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=bv({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return bv({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&nv(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return gv(e,[{key:"update",value:function(){return Dv.call(this)}},{key:"destroy",value:function(){return Nv.call(this)}},{key:"enableEventListeners",value:function(){return Hv.call(this)}},{key:"disableEventListeners",value:function(){return Uv.call(this)}}]),e}();nm.Utils=("undefined"!=typeof window?window:i.g).PopperUtils,nm.placements=Xv,nm.Defaults=tm;const rm=nm;function im(e){return"function"==typeof e?e():e}var om="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,am={},sm=e.forwardRef((function(t,n){var i=t.anchorEl,o=t.children,s=t.container,l=t.disablePortal,u=void 0!==l&&l,c=t.keepMounted,f=void 0!==c&&c,h=t.modifiers,p=t.open,d=t.placement,v=void 0===d?"bottom":d,m=t.popperOptions,g=void 0===m?am:m,y=t.popperRef,b=t.style,w=t.transition,x=void 0!==w&&w,E=r(t,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),S=e.useRef(null),T=jh(S,n),P=e.useRef(null),O=jh(P,y),C=e.useRef(O);om((function(){C.current=O}),[O]),e.useImperativeHandle(y,(function(){return P.current}),[]);var R=e.useState(!0),k=R[0],_=R[1],j=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}}(v,ue()),I=e.useState(j),A=I[0],D=I[1];e.useEffect((function(){P.current&&P.current.update()}));var M=e.useCallback((function(){if(S.current&&i&&p){P.current&&(P.current.destroy(),C.current(null));var e=function(e){D(e.placement)},t=(im(i),new rm(im(i),S.current,a({placement:j},g,{modifiers:a({},u?{}:{preventOverflow:{boundariesElement:"window"}},h,g.modifiers),onCreate:kh(e,g.onCreate),onUpdate:kh(e,g.onUpdate)})));C.current(t)}}),[i,u,h,p,j,g]),L=e.useCallback((function(e){_h(T,e),M()}),[T,M]),N=function(){P.current&&(P.current.destroy(),C.current(null))};if(e.useEffect((function(){return function(){N()}}),[]),e.useEffect((function(){p||x||N()}),[p,x]),!f&&!p&&(!x||k))return null;var B={placement:A};return x&&(B.TransitionProps={in:p,onEnter:function(){_(!1)},onExited:function(){_(!0),N()}}),e.createElement(Ah,{disablePortal:u,container:s},e.createElement("div",a({ref:L,role:"tooltip"},E,{style:a({position:"fixed",top:0,left:0,display:p||!f||x?null:"none"},b)}),"function"==typeof o?o(B):o))}));const lm=sm;var um={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},cm=e.forwardRef((function(t,n){var i=t.align,o=void 0===i?"inherit":i,s=t.classes,l=t.className,u=t.color,c=void 0===u?"initial":u,f=t.component,h=t.display,p=void 0===h?"initial":h,d=t.gutterBottom,v=void 0!==d&&d,m=t.noWrap,g=void 0!==m&&m,y=t.paragraph,b=void 0!==y&&y,w=t.variant,x=void 0===w?"body1":w,E=t.variantMapping,S=void 0===E?um:E,T=r(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),P=f||(b?"p":S[x]||um[x])||"span";return e.createElement(P,a({className:xu(s.root,l,"inherit"!==x&&s[x],"initial"!==c&&s["color".concat(Su(c))],g&&s.noWrap,v&&s.gutterBottom,b&&s.paragraph,"inherit"!==o&&s["align".concat(Su(o))],"initial"!==p&&s["display".concat(Su(p))]),ref:n},T))}));const fm=Oh((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"})(cm);var hm={entering:{opacity:1},entered:{opacity:1}},pm={enter:ne.enteringScreen,exit:ne.leavingScreen},dm=e.forwardRef((function(t,n){var i=t.children,o=t.disableStrictModeCompat,s=void 0!==o&&o,l=t.in,u=t.onEnter,c=t.onEntered,f=t.onEntering,h=t.onExit,p=t.onExited,d=t.onExiting,v=t.style,m=t.TransitionComponent,g=void 0===m?rp:m,y=t.timeout,b=void 0===y?pm:y,w=r(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),x=me(),E=x.unstable_strictMode&&!s,S=e.useRef(null),T=jh(i.ref,n),P=jh(E?S:void 0,T),O=function(e){return function(t,n){if(e){var r=V(E?[S.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},C=O(f),R=O((function(e,t){ip(e);var n=op({style:v,timeout:b},{mode:"enter"});e.style.webkitTransition=x.transitions.create("opacity",n),e.style.transition=x.transitions.create("opacity",n),u&&u(e,t)})),k=O(c),_=O(d),j=O((function(e){var t=op({style:v,timeout:b},{mode:"exit"});e.style.webkitTransition=x.transitions.create("opacity",t),e.style.transition=x.transitions.create("opacity",t),h&&h(e)})),I=O(p);return e.createElement(g,a({appear:!0,in:l,nodeRef:E?S:void 0,onEnter:R,onEntered:k,onEntering:C,onExit:j,onExited:I,onExiting:_,timeout:b},w),(function(t,n){return e.cloneElement(i,a({style:a({opacity:0,visibility:"exited"!==t||l?void 0:"hidden"},hm[t],v,i.props.style),ref:P},n))}))}));const vm=dm;var mm=e.forwardRef((function(t,n){var i=t.children,o=t.classes,s=t.className,l=t.disableTypography,u=void 0!==l&&l,c=t.inset,f=void 0!==c&&c,h=t.primary,p=t.primaryTypographyProps,d=t.secondary,v=t.secondaryTypographyProps,m=r(t,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),g=e.useContext(yp).dense,y=null!=h?h:i;null==y||y.type===fm||u||(y=e.createElement(fm,a({variant:g?"body2":"body1",className:o.primary,component:"span",display:"block"},p),y));var b=d;return null==b||b.type===fm||u||(b=e.createElement(fm,a({variant:"body2",className:o.secondary,color:"textSecondary",display:"block"},v),b)),e.createElement("div",a({className:xu(o.root,s,g&&o.dense,f&&o.inset,y&&b&&o.multiline),ref:n},m),y,b)}));const gm=Oh({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(mm);const ym=function(e){return t().createElement(lm,{anchorEl:e.anchorEl,open:e.open,style:e.marginStyle},t().createElement(vm,{in:e.open},t().createElement(fp,{className:"helpContainer"},t().createElement("div",{onClick:e.onClose,className:"closeX"},t().createElement("span",{className:"fa fa-window-close"})),t().createElement("div",null,t().createElement(fm,{variant:"h6",component:"h2"},"Toolbar Buttons"),t().createElement(wp,null,t().createElement(Hd,null,t().createElement("span",{className:"fa fa-lock active"}),t().createElement(gm,{primary:"Toggle Sync Views"})),t().createElement(Hd,null,t().createElement("span",{className:"fa fa-book active"}),t().createElement(gm,{primary:"Toggle Book Mode"})),t().createElement(Hd,null,t().createElement("span",{className:"fa fa-code active"}),t().createElement(gm,{primary:"Toggle XML Mode"})),t().createElement(Hd,null,t().createElement("span",null,t().createElement(gu,null),t().createElement(yu,null)),t().createElement(gm,{primary:"Go Forward / Back"})),t().createElement(Hd,null,t().createElement("span",{className:"fa fa-hand-point-right active"}),t().createElement(gm,{primary:"Jump to folio"})),t().createElement("div",{className:"readingGuide"},t().createElement(fm,{variant:"h6",component:"h2"},"Reading Guide"),t().createElement("table",null,t().createElement("thead",null,t().createElement("tr",null,t().createElement("th",null,t().createElement(fm,{variant:"overline",component:"span"},"Syntax")),t().createElement("th",null,t().createElement(fm,{variant:"overline",component:"span"},"Meaning")))),t().createElement("tbody",null,t().createElement("tr",null,t().createElement("td",null,t().createElement("img",{src:"/img/howtouse-ups.png",alt:"howtouse-ups"})),t().createElement("td",null,t().createElement(fm,null,"Text is under the paper strip"))),t().createElement("tr",null,t().createElement("td",null,t().createElement("img",{src:"/img/howtouse-curly.png",alt:"howtouse-curly"})),t().createElement("td",null,t().createElement(fm,null,"Expanded version implied by abbreviation marks"))),t().createElement("tr",null,t().createElement("td",null,t().createElement("img",{src:"/img/howtouse-square.png",alt:"howtouse-square"})),t().createElement("td",null,t().createElement(fm,null,"Editorial interventions and corrections"))),t().createElement("tr",null,t().createElement("td",null,t().createElement("img",{src:"/img/howtouse-beaker.png",alt:"howtouse-beaker"})),t().createElement("td",null,t().createElement(fm,null,"Associated research essay"))),t().createElement("tr",null,t().createElement("td",null,t().createElement("img",{src:"/img/howtouse-asterisk.png",alt:"howtouse-asterisk"})),t().createElement("td",null,t().createElement(fm,null,"Editorial Comments"))))))),t().createElement(fm,null,"See",t().createElement("a",{href:"#/content/how-to-use"},"How to Use")," ","for more information.")))))};var bm=i(30399);function wm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xm(r.key),r)}}function xm(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 Em(e,t){return Em=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Em(e,t)}function Sm(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,r=Tm(e);if(t){var i=Tm(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 Tm(e){return Tm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tm(e)}var Pm=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","Z"],Om=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&&Em(e,t)}(a,e);var n,r,i,o=Sm(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,(r=[{key:"renderAlphaLinks",value:function(){for(var e=[],n=0;n<Pm.length;n++){var r=Pm[n],i="alpha-".concat(n);e.push(t().createElement("span",{key:"link-".concat(i)},t().createElement(bm.rU,{to:i,offset:-120,containerId:"glossaryViewInner",smooth:"true"},r)," "))}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())}}])&&wm(n.prototype,r),i&&wm(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);function Cm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cm(Object(n),!0).forEach((function(t){km(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function km(e,t,n){return(t=jm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jm(r.key),r)}}function jm(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 Im(e,t){return Im=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Im(e,t)}function Am(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,r=Mm(e);if(t){var i=Mm(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 Dm(e)}(this,n)}}function Dm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mm(e){return Mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mm(e)}var Lm=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&&Im(e,t)}(a,e);var n,r,i,o=Am(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){!0==!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,r=t.documentViewActions,i=t.documentView,o=t.side;if(void 0!==e.currentTarget.dataset.id&&0!==e.currentTarget.dataset.id.length){var a=e.currentTarget.dataset.id;r.changeCurrentFolio(a,o,i[o].transcriptionType)}},n.revealJumpBox=function(e){this.setState({popoverVisible:!0,popoverX:e.clientX,popoverY:e.clientY})},n.changeType=n.changeType.bind(Dm(n)),n.revealJumpBox=n.revealJumpBox.bind(Dm(n)),n.onJumpBoxBlur=n.onJumpBoxBlur.bind(Dm(n)),n.toggleLockmode=n.toggleLockmode.bind(Dm(n)),n.toggleBookmode=n.toggleBookmode.bind(Dm(n)),n.toggleXMLMode=n.toggleXMLMode.bind(Dm(n)),n.changeCurrentFolio=n.changeCurrentFolio.bind(Dm(n)),n.helpRef=null,n.state={popoverVisible:!1,popoverX:-1,popoverY:-1,openHelp:!1},n}return n=a,(r=[{key:"render",value:function(){var e,n=this,r=this.props,i=r.side,o=r.document,a=r.documentView,s=r.documentViewActions,l=r.onFilterChange;if(!a)return t().createElement("div",null,"Unknown Transcription Type");var u=a[i].width-8,c={width:u,maxWidth:u},f=ge("md",this.props.width)?a[i].width<500?{display:"none"}:{display:"flex"}:{},h="f"===a[i].transcriptionType?{color:"white"}:{color:"black"},p="f"===a[i].transcriptionType?"dark":"light",d="glossary"===a[i].transcriptionType?{visibility:"hidden"}:{visibility:"visible"},v=a.linkedMode?"fa fa-lock":"fa fa-lock-open";a.bookMode||(v+=" active");var m="f"===a[i].transcriptionType,g=a.bookMode?"fa fa-book active":"fa fa-book",y=a[i].isXMLMode?"fa fa-code active":"fa fa-code",b=null===(e=o.folioIndex[a[i].iiifShortID])||void 0===e?void 0:e.name,w=m?{color:"white"}:{color:"black"},x="left"===i?{marginRight:"55px"}:{marginRight:"15px"};return t().createElement("div",{className:"navigationComponent",style:c},t().createElement("div",{id:"navigation-row",className:"navigationRow"},"glossary"!==a[i].transcriptionType?t().createElement("div",{id:"tool-bar-buttons",className:"breadcrumbs",style:d},t().createElement("span",{title:"Toggle coordination of views",onClick:this.toggleLockmode,className:v})," ",t().createElement("span",{title:"Toggle book mode",onClick:this.toggleBookmode,className:g})," ",t().createElement("span",{title:"Toggle XML mode",onClick:this.toggleXMLMode,className:m?"invisible":y})," "," ",t().createElement("span",{title:"Go back",onClick:this.changeCurrentFolio,"data-id":a[i].previousFolioShortID,className:a[i].hasPrevious?"arrow":"arrow disabled"}," ",t().createElement(gu,null)," "),t().createElement("span",{title:"Go forward",onClick:this.changeCurrentFolio,"data-id":a[i].nextFolioShortID,className:a[i].hasNext?"arrow":"arrow disabled"}," ",t().createElement(yu,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(Yd,{side:i,isVisible:this.state.popoverVisible,positionX:this.state.popoverX,positionY:this.state.popoverY,submitHandler:s.jumpToFolio,blurHandler:this.onJumpBoxBlur})):t().createElement(Om,{onFilterChange:l,value:this.props.value}),t().createElement("div",{id:"doc-type-help",style:f,ref:function(e){n.helpRef=e}},t().createElement(md,{className:p,style:Rm(Rm({},h),{},{marginRight:15}),value:a[i].transcriptionType,id:"doc-type",onClick:this.changeType},t().createElement(Vd,{value:"tl"},Jd.transcriptionTypeLabels.tl),t().createElement(Vd,{value:"tc"},Jd.transcriptionTypeLabels.tc),t().createElement(Vd,{value:"tcn"},Jd.transcriptionTypeLabels.tcn),t().createElement(Vd,{value:"f"},Jd.transcriptionTypeLabels.f),t().createElement(Vd,{value:"glossary"},Jd.transcriptionTypeLabels.glossary)),t().createElement("span",{title:"Toggle folio help",onClick:this.toggleHelp,className:"helpIcon"},t().createElement("i",{className:"fas fa-question-circle"})),t().createElement(ym,{marginStyle:x,anchorEl:this.helpRef,open:this.state.openHelp,onClose:this.toggleHelp}))))}}])&&_m(n.prototype,r),i&&_m(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);const Nm=be()(ot((function(e){return{document:e.document}}))(Lm));function Bm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fm(r.key),r)}}function Fm(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 zm(e,t){return zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zm(e,t)}function Hm(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,r=Um(e);if(t){var i=Um(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 Um(e){return Um=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Um(e)}var Vm=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&&zm(e,t)}(a,e);var n,r,i,o=Hm(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,(r=[{key:"render",value:function(){var e="os-zoom-in ".concat(this.props.side),n="os-zoom-out ".concat(this.props.side),r=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:r,className:"zoom-grid fas fa-th fa-2x"})))}}])&&Bm(n.prototype,r),i&&Bm(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);function Wm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gm(r.key),r)}}function Gm(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 qm(e,t){return qm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qm(e,t)}function Xm(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,r=Zm(e);if(t){var i=Zm(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 Zm(e){return Zm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zm(e)}var $m=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&&qm(e,t)}(a,e);var n,r,i,o=Xm(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,r=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var e=this.props,n=e.side,r=e.initViewer,i=e.tileSource;return t().createElement("div",{id:"image-view-seadragon-".concat(n),ref:function(e){r(e,i)}})}}],r&&Wm(n.prototype,r),i&&Wm(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);function Ym(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Km(r.key),r)}}function Km(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 Jm(e,t){return Jm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jm(e,t)}function Qm(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,r=eg(e);if(t){var i=eg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 eg(e){return eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eg(e)}var tg=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&&Jm(e,t)}(a,e);var n,r,i,o=Qm(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),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).initViewer=function(t,n){if(t){var r="os-zoom-in ".concat(e.props.side),i="os-zoom-out ".concat(e.props.side);e.viewer=ml()({element:t,zoomInButton:r,zoomOutButton:i,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,(r=[{key:"componentDidUpdate",value:function(e){if(e.folioID!==this.props.folioID){var t=this.props,n=t.document,r=t.folioID,i=n.folioIndex[r];i.tileSource&&this.viewer&&this.viewer.open(i.tileSource)}}},{key:"render",value:function(){var e=this.props,n=e.document,r=e.folioID,i=e.side,o=n.folioIndex[r];return t().createElement("div",null,o.tileSource&&t().createElement("div",{className:"image-view imageViewComponent ".concat(this.props.side)},t().createElement(Nm,{side:this.props.side,documentView:this.props.documentView,documentViewActions:this.props.documentViewActions}),t().createElement(Vm,{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($m,{side:i,tileSource:o.tileSource,initViewer:this.initViewer})))}}])&&Ym(n.prototype,r),i&&Ym(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const ng=ot((function(e){return{document:e.document}}))(tg);var rg=i(46800),ig=i.n(rg);function og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ag(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?og(Object(n),!0).forEach((function(t){sg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):og(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sg(e,t,n){return(t=ug(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ug(r.key),r)}}function ug(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 fg(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,r=pg(e);if(t){var i=pg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 hg(e)}(this,n)}}function hg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pg(e){return pg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pg(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&&cg(e,t)}(a,e);var n,r,i,o=fg(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(ag(ag({},n.state),{},{jumpToBuffer:t}))},n.onJumpTo=function(e){var t=n.state.jumpToBuffer,r=n.props,i=r.side,o=r.document,a=r.documentViewActions;if(e.preventDefault(),o.folioByName[t]){var s=o.folioByName[t];s&&a.changeCurrentFolio(s.id,i)}n.setState(ag(ag({},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,r=t.length+n.loadIncrement;t=e.length>=r?e.slice(0,r):e,n.setState({visibleThumbs:t})},n.generateThumbs=n.generateThumbs.bind(hg(n)),n.loadIncrement=10,n.state={jumpToBuffer:"",thumbs:"",visibleThumbs:[]},n}return n=a,r=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props.documentView[this.props.side].iiifShortID,n=e.documentView[this.props.side].iiifShortID;if(t!==n){var r=this.generateThumbs(n,e.document.folios),i=r.length>this.loadIncrement?this.loadIncrement:r.length,o=r.slice(0,i);this.setState({thumbs:r,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,r=t.slice(0,n);this.setState({thumbs:t,visibleThumbs:r})}},{key:"generateThumbs",value:function(e,n){var r=this,i=n.map((function(n,i){return t().createElement("li",{key:"thumb-".concat(i),className:"thumbnail"},t().createElement("figure",{className:n.id===e?"current":""},t().createElement("a",{id:n.id,onClick:r.onClickThumb.bind(r,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 i}},{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(ig(),{element:"ul",loadMore:this.moreThumbs,hasMore:this.hasMore(),useWindow:!1},n))}}],r&&lg(n.prototype,r),i&&lg(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);const vg=ot((function(e){return{document:e.document}}))(dg);var mg=i(57626);mg.domToReact,mg.htmlToDOM,mg.attributesToProps,mg.Comment,mg.Element,mg.ProcessingInstruction,mg.Text;const gg=mg;function yg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bg(r.key),r)}}function bg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 wg(e,t){return wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wg(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,r=Sg(e);if(t){var i=Sg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 Eg(e)}(this,n)}}function Eg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sg(e){return Sg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sg(e)}var Tg=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&&wg(e,t)}(a,e);var n,r,i,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)).changeCurrentFolio=function(e){var t=n.props,r=t.side,i=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,r,i[r].transcriptionType)}},n.changeCurrentFolio=n.changeCurrentFolio.bind(Eg(n)),n}return n=a,(r=[{key:"render",value:function(){var e=this.props,n=e.side,r=e.document,i=e.documentView;if("-1"===i[n].iiifShortID)return null;var o=r.folioIndex[i[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":i[n].previousFolioShortID,className:i[n].hasPrevious?"arrow":"arrow disabled"},t().createElement(gu,null)),t().createElement("span",{className:"folioName"},o),t().createElement("span",{title:"Go forward",onClick:this.changeCurrentFolio,"data-id":i[n].nextFolioShortID,className:i[n].hasNext?"arrow":"arrow disabled"}," ",t().createElement(yu,null))))}}])&&yg(n.prototype,r),i&&yg(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t().Component);const Pg=ot((function(e){return{document:e.document}}))(Tg);function Og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Og(Object(n),!0).forEach((function(t){Rg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Og(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rg(e,t,n){return(t=_g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_g(r.key),r)}}function _g(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 Ig(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,r=Ag(e);if(t){var i=Ag(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 Ag(e){return Ag=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ag(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&&jg(e,t)}(a,e);var n,r,i,o=Ig(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(Cg(Cg({},t.state),{},{open:!1}))},t.state={anchorRef:null,open:!1},t}return n=a,(r=[{key:"renderPopper",value:function(){var e,n=this.state,r=n.anchorRef,i=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=gg(s));var l=e||s||"ERROR: Could not find comment for id: ".concat(this.props.commentID,".");return t().createElement(lm,{id:o,open:i,anchorEl:r},t().createElement(vm,{in:i},t().createElement(fp,{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(fm,{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())}}])&&kg(n.prototype,r),i&&kg(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const Mg=ot((function(e){return{comments:e.comments}}))(Dg);function Lg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ng(r.key),r)}}function Ng(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 Bg(e,t){return Bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bg(e,t)}function Fg(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,r=zg(e);if(t){var i=zg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 Hg=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&&Bg(e,t)}(a,e);var n,r,i,o=Fg(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,i=[{key:"getDerivedStateFromError",value:function(e){return{error:!0}}}],(r=[{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}}])&&Lg(n.prototype,r),i&&Lg(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);function Ug(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vg(r.key),r)}}function Vg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 Wg(e,t){return Wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wg(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,r=qg(e);if(t){var i=qg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 qg(e){return qg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qg(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&&Wg(e,t)}(a,e);var n,r,i,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,(r=[{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,r=e.folioID,i=e.transcriptionType,o=e.document,a=e.documentView,s=e.documentViewActions;if("-1"===r)return Zg(a,s,n);var l=o.folioIndex[r];if(!l.transcription)return Zg(a,s,n);var u=l.transcription[i],c={replace:function(e){if("comment"===e.name){var n=e.attribs.rid;return t().createElement(Mg,{commentID:n})}return e}},f=u.html,h={gridTemplateAreas:u.layout};return t().createElement("div",null,t().createElement(Nm,{side:n,documentView:a,documentViewActions:s}),t().createElement(Pg,{side:n,documentView:a,documentViewActions:s}),t().createElement("div",{className:"transcriptionViewComponent"},t().createElement("div",{className:"transcriptContent"},t().createElement(Hg,null,t().createElement("div",{className:"surface grid-mode",style:h},gg(f,c))))),t().createElement(Pg,{side:n,documentView:a,documentViewActions:s}))}}])&&Ug(n.prototype,r),i&&Ug(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);function Zg(e,n,r){return t().createElement("div",null,t().createElement(Nm,{side:r,documentView:e,documentViewActions:n}),t().createElement("div",{className:"transcriptContent"},t().createElement(Pg,{side:r,className:"pagination_upper",documentView:e,documentViewActions:n}),t().createElement("div",{className:"watermark"},t().createElement("div",{className:"watermark_contents"}))))}const $g=ot((function(e){return{annotations:e.annotations,document:e.document}}))(Xg);function Yg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kg(r.key),r)}}function Kg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 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,r=ey(e);if(t){var i=ey(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ey(e)}var ty=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,r,i,o=Qg(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={folio:[],isLoaded:!1,currentlyLoaded:""},t.contentChange=!0,t}return n=a,r=[{key:"loadFolio",value:function(e){var t=this,n=this.props,r=n.side,i=n.documentView;void 0!==e&&e.load().then((function(e){var n=i[r].iiifShortID;t.setState({folio:e,isLoaded:!0,currentlyLoaded:n})}),(function(e){console.log("Unable to load transcription: ".concat(e))}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.contentChange=!1;var t=e.documentView[this.props.side].iiifShortID;this.state.currentlyLoaded!==t&&(this.contentChange=!0,this.loadFolio(this.props.document.folioIndex[t]))}},{key:"componentDidUpdate",value:function(){if(this.contentChange){var e="xmlViewComponent_".concat(this.props.side),t=document.getElementById(e);null!==t&&(t.scrollTop=0)}}},{key:"render",value:function(){var e=this.props,n=e.side,r=e.document,i=e.documentView,o=e.documentViewActions,a="xmlViewComponent ".concat(n),s="xmlViewComponent_".concat(n),l=i[n].iiifShortID;if("-1"===l)return t().createElement("div",{className:"watermark"},t().createElement("div",{className:"watermark_contents"}));if(!this.state.isLoaded)return this.loadFolio(r.folioIndex[l]),t().createElement("div",{className:"watermark"},t().createElement("div",{className:"watermark_contents"}));var u=i[n].transcriptionType,c=this.state.folio.transcription["".concat(u,"_xml")];return t().createElement("div",{id:s,className:a},t().createElement(Nm,{side:n,documentView:i,documentViewActions:o}),t().createElement("div",{className:"xmlContent"},t().createElement(Pg,{side:n,className:"pagination_upper",documentView:i,documentViewActions:o}),t().createElement("div",{className:"xmlContentInner"},t().createElement("pre",null,c))))}}],r&&Yg(n.prototype,r),i&&Yg(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const ny=ot((function(e){return{document:e.document}}))(ty);function ry(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 iy(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 iy(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 iy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ay(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oy(Object(n),!0).forEach((function(t){sy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sy(e,t,n){return(t=uy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ly(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uy(r.key),r)}}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 r=n.call(e,t||"default");if("object"!=typeof r)return r;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 cy(e,t){return cy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cy(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,r=hy(e);if(t){var i=hy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 py=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&&cy(e,t)}(a,e);var n,r,i,o=fy(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(ay(ay({},e.state),{},{filterTerm:n}))},e.state={filterTerm:""},e}return n=a,(r=[{key:"renderGlossary",value:function(){for(var e=this.props.glossary.glossary,n=this.state.filterTerm.toLowerCase(),r=function(e,t,n){var r,i=ry(e.split(n));try{for(i.s();!(r=i.n()).done;)if(r.value.startsWith(t))return!0}catch(e){i.e(e)}finally{i.f()}return!1},i=[],o=0,a=0,s=Object.values(e);a<s.length;a++){var l=s[a];if(0===n.length&&l.headWord[0]===Pm[o]){var u="alpha-".concat(o);i.push(t().createElement(fm,{variant:"h4",key:"gloss-heading-".concat(Pm[o]),id:u},"—",Pm[o]," ","—")),o++}var c=l.headWord.toLowerCase(),f=l.alternateSpellings.toLowerCase(),h=l.modernSpelling.toLowerCase();if(0===n.length||0!==n.length&&r(c,n," ")||0!==n.length&&r(h,n," ")||0!==n.length&&r(f,n,", ")){var p=dy(l),d=p[p.length-1].endsWith("."),v=l.alternateSpellings?", ".concat(l.alternateSpellings):"",m=l.meanings[0].partOfSpeech,g=m?"".concat(m,":"):"",y=m?",":":",b=l.modernSpelling?" (mod. ".concat(l.modernSpelling,")"):"",w=d?"":",",x=l.seeAlso?"".concat(w," see also <span>→</span>").concat(l.seeAlso," "):"",E=l.synonym?", syn. <span>→</span>".concat(l.synonym):"",S=l.antonym?", ant. <span>→</span>".concat(l.antonym):"";i.push(t().createElement(fm,{gutterBottom:!0,key:"gloss-".concat(l.headWord)},t().createElement("u",null,l.headWord),v,b,y," ",g," ",p.map((function(e){return gg(e)})),gg(x),gg(E),gg(S)))}}return i}},{key:"render",value:function(){return this.props.glossary.loaded?t().createElement("div",{id:"glossaryView"},t().createElement(Nm,{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(fm,{variant:"h2",className:"title"},"Glossary"),t().createElement(fm,{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(fm,{className:"cite-header"},"How to Cite"),t().createElement(fm,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}}])&&ly(n.prototype,r),i&&ly(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);function dy(e){for(var t=[],n=0;n<e.meanings.length;n++){var r=e.meanings[n],i=r.references?" [".concat(r.references,"]"):"",o=e.meanings.length>1?"".concat(n+1,". "):"",a=n<e.meanings.length-1?" ":"";t.push("".concat(o).concat(r.meaning).concat(i).concat(a))}return t}const vy=ot((function(e){return{glossary:e.glossary}}))(py);function my(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gy(r.key),r)}}function gy(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 yy(e,t){return yy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yy(e,t)}function by(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,r=wy(e);if(t){var i=wy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 wy(e){return wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wy(e)}var xy=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&&yy(e,t)}(a,e);var n,r,i,o=by(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,(r=[{key:"render",value:function(){return t().createElement("div",{className:"single-pane-view"},this.props.singlePane)}}])&&my(n.prototype,r),i&&my(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const Ey=ot((function(e){return{document:e.document}}))(xy);const Sy=function(n){return function(r){var i,o,a=jn(),s=An(),l=(i=e.useContext(Rn).matches,(o=i[i.length-1])?o.params:{});return t().createElement(n,Object.assign({},r,{router:{location:a,navigate:s,params:l}}))}};function Ty(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 r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Py(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 Py(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 Py(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Oy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oy(Object(n),!0).forEach((function(t){Ry(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ry(e,t,n){return(t=_y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ky(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_y(r.key),r)}}function _y(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 jy(e,t){return jy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jy(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,r=Dy(e);if(t){var i=Dy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 Dy(e){return Dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dy(e)}var My=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&&jy(e,t)}(a,e);var n,r,i,o=Iy(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 r=Cy({},t);return r.left.width=e,r.right.width=n,r}))},t.getViewports=function(){var e,n,r,i,o=t.props.router.params,a=o.folioID,s=o.transcriptionType,l=o.folioID2,u=o.transcriptionType2;a?(l?(n=s,r=l,i=u||"tl"):(n="f",r=a,i=s||"tl"),e={left:{folioID:a,transcriptionType:n},right:{folioID:r,transcriptionType:i}}):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(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,r=[{key:"componentDidMount",value:function(){su(this.props,"DiplomaticActions.setFixedFrameMode",!0)}},{key:"setXMLMode",value:function(e,t){this.setState((function(n){var r=Cy({},n);return r[e].isXMLMode=t,r}))}},{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=Ty(this.findBookFolios(e),2),r=n[0],i=n[1];this.navigateFolios(r,"f",i,"f")}}},{key:"jumpToFolio",value:function(e,t){var n=this.props.document;if(n.folioByName[e]){var r,i=null===(r=n.folioByName[e])||void 0===r?void 0:r.id;this.changeCurrentFolio(i,t,this.getViewports()[t].transcriptionType)}}},{key:"findBookFolios",value:function(e){var t=this.props.document,n=t.folioNameByIDIndex[e],r=t.folioIndex.indexOf(e);if(!n.endsWith("v")){if(!n.endsWith("r"))return[null,null];r-=1}var i=r+1;return[t.folioIndex[r],t.folioIndex[i]]}},{key:"changeTranscriptionType",value:function(e,t){var n=this.getViewports();if("left"===e){var r=n.left.folioID,i=n.right;this.navigateFolios(r,t,i.folioID,i.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,r){e?t?n?r?this.props.router.navigate("/ec/".concat(e,"/").concat(t,"/").concat(n,"/").concat(r)):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 r=this.getViewports();if(this.state.bookMode){var i=Ty(this.findBookFolios(e),2),o=i[0],a=i[1];o&&this.navigateFolios(o,"f",a,"f")}else if(this.state.linkedMode)if("left"===t){var s=r.right;this.navigateFolios(e,n,e,s.transcriptionType)}else{var l=r.left;this.navigateFolios(e,l.transcriptionType,e,n)}else if("left"===t){var u=r.right;this.navigateFolios(e,n,u.folioID,u.transcriptionType)}else{var c=r.left;this.navigateFolios(c.folioID,c.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 r=n.folioID,i=t.folios.length,o="",a="",s=!1,l=!1;if(this.state.bookMode){var u=Ty(this.findBookFolios(r),1)[0],c=t.folioIndex[u].pageNumber;c>-1&&(o=(l=c<i-2)?t.folios[c+2].id:"",a=(s=c>1&&i>1)?t.folios[c-2].id:"")}else{var f=t.folioIndex[r].pageNumber;f>-1&&(o=(l=f<i-1)?t.folios[f+1].id:"",a=(s=f>0&&i>1)?t.folios[f-1].id:"")}return Cy(Cy({},this.state[e]),{},{iiifShortID:r,transcriptionType:n.transcriptionType,hasPrevious:s,hasNext:l,previousFolioShortID:a,nextFolioShortID:o})}},{key:"renderPane",value:function(e,n){var r=this.determineViewType(e),i=this.viewPaneKey(e);if("ImageView"===r){var o=n[e].iiifShortID;return t().createElement(ng,{key:i,folioID:o,documentView:n,documentViewActions:this.documentViewActions,side:e})}if("TranscriptionView"===r){var a=n[e].iiifShortID,s=n[e].transcriptionType;return t().createElement($g,{key:i,documentView:n,documentViewActions:this.documentViewActions,side:e,folioID:a,transcriptionType:s})}return"XMLView"===r?t().createElement(ny,{key:i,documentView:n,documentViewActions:this.documentViewActions,side:e}):"ImageGridView"===r?t().createElement(vg,{key:i,documentView:n,documentViewActions:this.documentViewActions,side:e}):"GlossaryView"===r?t().createElement(vy,{key:i,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 ge("md",this.props.width)?t().createElement("div",null,t().createElement(dr,{leftPane:this.renderPane("left",e),rightPane:this.renderPane("right",e),onWidth:this.onWidth})):t().createElement("div",null,t().createElement(Ey,{singlePane:this.renderPane("right",n)}))}}],r&&ky(n.prototype,r),i&&ky(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);const Ly=be()(ot((function(e){return{document:e.document}}))(Sy(My)));function Ny(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,By(r.key),r)}}function By(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 Fy(e,t){return Fy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fy(e,t)}function zy(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,r=Hy(e);if(t){var i=Hy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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&&Fy(e,t)}(o,e);var t,n,r,i=zy(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=i.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(){su(this.props,"RouteListenerSaga.userNavigatation",this.props.router.location)}},{key:"render",value:function(){return null}}])&&Ny(t.prototype,n),r&&Ny(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(t().Component);const Vy=ot((function(e){return{}}))(Sy(Uy));function Wy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gy(r.key),r)}}function Gy(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;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 qy(e,t){return qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qy(e,t)}function Xy(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,r=Zy(e);if(t){var i=Zy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.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 Zy(e){return Zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zy(e)}var $y=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&&qy(e,t)}(s,e);var n,r,i,o=Xy(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,r=[{key:"componentDidMount",value:function(){var e=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function i(){var e=n.location,t=e.pathname,i=e.search,o=e.hash,a=r.state||{};return[a.idx,xe({pathname:t,search:i,hash:o,state:a.usr||null,key:a.key||"default"})]}var o=null;n.addEventListener(Se,(function(){if(o)h.call(o),o=null;else{var e=we.Pop,t=i(),n=t[0],r=t[1];if(h.length){if(null!=n){var a=u-n;a&&(o={action:e,location:r,retry:function(){y(-1*a)}},y(a))}}else g(e)}}));var s=we.Pop,l=i(),u=l[0],c=l[1],f=Pe(),h=Pe();function p(e){return"string"==typeof e?e:Ce(e)}function d(e,t){return void 0===t&&(t=null),xe(a({pathname:c.pathname,hash:"",search:""},"string"==typeof e?Re(e):e,{state:t,key:Oe()}))}function v(e,t){return[{usr:e.state,key:e.key,idx:t},p(e)]}function m(e,t,n){return!h.length||(h.call({action:e,location:t,retry:n}),!1)}function g(e){s=e;var t=i();u=t[0],c=t[1],f.call({action:s,location:c})}function y(e){r.go(e)}null==u&&(u=0,r.replaceState(a({},r.state,{idx:u}),""));var b={get action(){return s},get location(){return c},createHref:p,push:function e(t,i){var o=we.Push,a=d(t,i);if(m(o,a,(function(){e(t,i)}))){var s=v(a,u+1),l=s[0],c=s[1];try{r.pushState(l,"",c)}catch(e){n.location.assign(c)}g(o)}},replace:function e(t,n){var i=we.Replace,o=d(t,n);if(m(i,o,(function(){e(t,n)}))){var a=v(o,u),s=a[0],l=a[1];r.replaceState(s,"",l),g(i)}},go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return f.push(e)},block:function(e){var t=h.push(e);return 1===h.length&&n.addEventListener(Ee,Te),function(){t(),h.length||n.removeEventListener(Ee,Te)}}};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(tr,null,t().createElement("div",{id:"diplomatic",className:e},t().createElement(Vy,null),t().createElement("div",{id:"content"},t().createElement($n,null,t().createElement(Xn,{path:"/ec/:folioID/:transcriptionType/:folioID2/:transcriptionType2",element:t().createElement(Ly,this.props),exact:!0}),t().createElement(Xn,{path:"/ec/:folioID/:transcriptionType",element:t().createElement(Ly,this.props),exact:!0}),t().createElement(Xn,{path:"/ec/:folioID",element:t().createElement(Ly,this.props),exact:!0}),t().createElement(Xn,{path:"/ec",element:t().createElement(Ly,this.props),exact:!0}),t().createElement(Xn,{path:"/",element:t().createElement(qn,{to:"/ec"}),exact:!0}))))))}}],r&&Wy(n.prototype,r),i&&Wy(n,i),Object.defineProperty(n,"prototype",{writable:!1}),s}(e.Component);const Yy=be()(ot((function(e){return{diplomatic:e.diplomatic,documentView:e.documentView}}))($y));const Ky=function(e){var n=se({palette:{primary:{main:"#792421"},secondary:{main:"#EBE3DD"}}});return t().createElement(fe,{theme:n},t().createElement(Yy,{config:e.config,store:au(e.config)}))}})(),o=o.default})()));
|
|
3
|
-
//# sourceMappingURL=editioncrafter.min.js.map
|
|
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,iVBORw0KGgoAAAANSUhEUgAAAKkAAAC3CAYAAABpCX7EAAAumHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarZxpthy3kYX/YxVeAuZhOQgM5/QOevn9XdQjTVKULbUtSnxUsSoTCUTcIRAod/73f677xz/+EXwb1eXSeh21ev7JI484+UP3n3/m+z34/H7/vDS+/i78/Lqz9vUXkZcSP9Pnf3v9ev+318P3C3x+TP5UfrhQX19/YT//xchf1++/XOjrRkkjivxhf11ofF0oxc9fhK8LzM9j+Tp6+/ER7Hx+fn3+Mw385/TbXfE9ebHP3/36/7kxe7twnxTjSSF5fo8pfgaQ9F9wafKHzO8hVd4YeFGvpPdK/xoJE/K7efI/jMr9uipn/X5Vvv/pl0VJ9fO644WfJ7N+//nb10P5/eS7N8U/3Dmt73f+6fUzY//1cb79d+/u7t7zebqZK1Navx7q26O8P/FGpj2n97HKr8Z/hT+392vwqzuid7Hk2y9v/FphhMiy3JDDDjPccN7PFRZDzPHExs8YFwul13pqccSVvGNtsn6FG1saaafOui2WN/Fq/D6W8O473u1W6Nx4B94ZAxfTSken3/4bv/70QvcqDkLw/TNPhAXjigpChqGV0++8iwUJ91sclTfB3379+o/WNbGC5U1z5wGnt88lrISv2FIcpbfQiTcWfn5yLbT9dQGmiHsXBhMSK+BrSCVUMCjGFgLz2FmfyYV6TDkaSxBKiZtRxpzIlhZ71L35TAvvvbHEz8tgFgtRUk2NpRlpslYZYCN+Wu7E0Cyp5FJKLa30MsqsqeZaaq2tCvxmSy230mprrbfRZk8999Jrb727PvoccSTAsYw62uhjjDm56eTKk09P3jCnRUuWrVi1Zt2GzUX4rLzKqqut7tZYc8edNjix626777HnCYdQOvmUU087/YwzL6F208233Hrb7Xfc+X3VgntpF/7w66+vWvi2avGtlN7Yvq8aH23t2yWC4KRozVixmAMr3rQCBHTUmvkeco5OS6c18yOSFSUyyqLF2UErxgrmE2K54fva/XPlflo3l/N/tG7x28o5Ld1/Y+Wclu5PVu6P6/abVdtiG/LQvRVSGmpSfSL9eBNo+ADxb/x0f+2NuTFpO4y9e5yTR2DKBZ1lhjFYRjNnnskNI2YxZbRlbWW7IZ19Tstme+tpejw1GHN/ylyL1WdWzh22mb3V76pAbSqHB2Yu00pzpzLuyOfWPrflvWdiBWerBRbMtelTc9dzZoIid2h5Mv/cghFZZ+nrnelCUaBxTTYY9k09rLZPKMdbhS4razhWaqAIK5FHyq0eMzijhO2bC3eM06Y/1ax0y93WDaPBEPleS23sFiZrts72Ihrfd1oWMwmWBFaH4D+9HWe8tG2lG2JbYoIbmKS21ixMbOdpmE0uwJPkAeqnfWx2xRHzdpBUZ8/aDwFZLlEYeSxi6ebIfJOK68LFlhjoOKPtlhBYRnxNwtwfu2YsW7AWxuJKq5/kxtzz9hqmMRksQtgJVq3MVK7cMu4y096njk0O+E0YknTrMvn9MiNey6IgcX8v7L6iCqacX6G0BknU53H1RK/sGbHZhGWFC7XsvQ78e1tiCkep+8BP/m5eJ4pIkUl0LCi2t8rFAQSXSa7S1m1wa2EZr3GZm8NIKRjrMiqAsHKdOZzZswCnMW87Bd59+r1gza0LGDmZZIaYrxFdhPdgBsyPcBiCj0zm11TA94GY6Vq4vMUxRGcaxBlpEM3djg4YJxbLxVI/+x4Gb7vmvhnbqTmiKMYLT2JgTwVVOIn4IuiIjFmOQs+hq/uCySxUIO2w4iw9qYDAhSNHLuTXuCfmnc65xBvzs/JtcCbRRwafGzU+R6KANLNYP8xCtPoUH0JSupFlWmmXu8qe8XQwdYUPMLbIjG0UkC/j6VKy/xDQ+xKwfZrdbnVX0HDr5TMs7LXJiAn6AwadpEeDBxNU6s6aWkMqN1e1XH3eWq/vh2QkDMHUNrwSx69z8uJiE5BfIwyQpoN+rHPqQtFV7mFC73Flkc/AY7FR14AUFuMm+ybhr+BfQD0inWXumdVZyrJK3FVCj4RNbTUz5tSFdTxMEMhgKwyeAESSwRi7Csw1pSgRE6Awa8U3TcFhRAwFCgFjmEfG4C4PPgGktq9BV+Rlz1URudGCN06ydpNZzIndZGeRwCHbyfw+WuVZLPTG9R1isCVQj5TmnhtC7EKICxnDPqMnkqcmeArovHqWa/tAX2QZiAO9gWEH/nQKDQMK02QcxF4cB64kyfEcvE6W89AaWW4nNKG+kXd9CMQJTJIFKp023WAc5AgZQ3wfG0FDJMT26azlJGogO7Lz8LEyPNhS4srwF3RC8JElpGZb0RHHN89W8j0EPahErvN4y6CL2frTASAeYDUmYmSeHXIJuftIroBl6wmtGt1ug+k9qGeyMCiQWH1ApzHVfhoDB0LK9Uf4NyxPgNMGgcVtWLrIVDCbuzlGfwQ6PM4tmqpzFp/NqcE6tx4cJ8GZO4BCyoEEejvQUyGrAFUlQL2Zz6xaMaIf0YBwiXUJR/l/prgaBqAwB/16FqIAugAe49lgC+sGJSzwHpJiIRDsk4Th30N0trnFUQRmmOVFzOKx9CzWicaxaxL7KSMQ7jdAiVxrKtXAo9pZT78T8gQlsSAXEoOw0VrCWRPIW6JLnooHR4KkFfhEHTAzcx9ZoM4zugZnwKxh1aZZsL3wNiR4Ismk2dcmZTPiCWcEnjUheOFaMtH3z9XICWBPU0SAnFY05b5O0H5t0QLSK55bntddnlyEjhkVwxpu3LArkQmgg75cYmaeJJbFR7kW//HHCj8m62TzRbcO1AzDiRXRAiWCfSshtAA9ZBcsfZtFngrYiZKpoR0wtywUIRAPUL+QvwA7+BHmbpdlgDCUa4zDyRGCd3klFOfOiKKFNtZNt5XbBRahKmNQRsS0DaZugkXEIEQuEkAm2jEHehTAoNuM/F1ddgLEHPRMxA7R403CmbAHhuA9cBdJirQCJ4F9sun6jaBzDcZlOpbVhTw9/JNO7QsVCvekCSvXtD+wjBDx+wIfICX4T3KWeUF0JrEAtQaPg+OCKCN7bOebC7GalwRuz1gFBE9AzfGYXTC9LkhDAjNjS9gRdkPVRi5CAkw47YLKkxkAiC5wyPXBwBlUE2G98GvcKg34s3GVu29C/cDGQLFh18+yVcEfGQi0IEHaGloBlpuHyK9MsKBAqmFFmHeyuE3DQF2hATckiqIsXAjROsGjvWEYYwYYPMu1yeEEBWIDbm3EvXKmwRNDvKQJGwvIhIOQDhBBcQG+ODsivQAJDETqXPI2SQkPLh1oC5DREkCrE/3buA5qrpE0+xSC12MmRnGopnQusjIDa7AEk9oQzkAfEXuIUIzDioQe+iLgghYkCXj1DXv655g82qIfJ1XUrzjWiIK7xF4VwQWVDAIiVEB+TYzYJFcYDfjMXMAghG3PoOEqCO7dnXQX7+2sDkrhvsIKkYOOhf32HRvrN2YuY54KtSAxp4T4TdLCBjrCC+Bac8wZ2Yx+ZyWBWGiQvCzE6pUFfMtLyBusJfzXmJOEcirMEtOE0mnDMJcuzw6tCu0RPlvFNKa2QMXPSx7SaBYgS/xCFuXM0KHqmtHrchIok7swF941wry8qlF/PON9+fyEmMFdqElripPcOV7SrJZXLqpZy9uJFJgOxr04yFkHrNLhECtM88dItcPwIQYgocPEqIhyIiRzNoIBStjIEXJk4ZYPZNy8A443OuBmAp6/WxH+zxV/UicWyAMXhMpVCRHdRcbpz0w15oTFk2ND0gNC5pIY6oiTD8p6TOiRgCMiZtfvSBUeaAP3kMGEwxc4AY7tEYHiDSNfBcvwDruRkQN8fMBlHioeiNkg/cRnDXMNqhGQg+F62UXgG/CaKn8NRaJW0GfUSBBQFAmqFuRmM7oRxrjAWSxPQyo1K/J6RCZcVTOe5JBZaMSo1O2o9AIesegTBcZ0q3xFhgcitOhOiG8u6JkOAjt28gdZCOIzmyIZ+EYCB23lU3NWZQSbBWgVAkOJGYTBbeeVkAA1prx8AWhYqVVl2uKMvBVIxZioeILehvuBRlTwjDwFDJsycgQNTLIATlVkSFaiMLNIXkFWpHaGtNmEHFqQBbm3o0YQhH62hXRczCbBg2g/4gfpONZ0HUhJkgZXPFtE/6L/9riquvLEEel1Z1VpDO9U9RRMlZeUIlwPD5JQO4AYeWZd8TtlNJFsd5CwmSk7TZamogkQSm6wAAC14dYZirRVgDmnCtEgEIFOGjemt4vojkH/HmdQY4gYy8LnAPcsc4ylQNxfQOdqJLIgrODZSToS8EQWZeafJeKBucHF2pAAE3gI/E9TjsM2xR1ROBEB6l2VdLwhIDB8cCU3nXhxlpMn9gmiAeoljdCsMxKXPMrA9YUItDvGExaAwvsRCS1mchfEgO6CAmOgRAgsIhb/xXIiwj1uuaP59su7niGN0mRqmABYAC0hDuvgbSFGmNQ9TlNsmywAPs4PPtI0RxiQjENBIjNKktHPehxxP5jwSrSi64rWn6QMSDPGg7dixLWgVaCVrZXw0iqEEKrv+c1MImvTwKFdNzp6sfyZlEI59+czWESCS6isxKvC/fGYaQPuoBzgqRBBI5tmxVzhKdesWXItbZgZvyPRJrLHjaHu+SgT0ZIqtfeMbLEWBgY1qghzcDoNCwdmoy1xY8QRwQpXssYZnY4oR5CQ96RdQ6AvQuiQlSqo8GmmmgQXJyw5jpsdOV/JFswLKqMmPU0gFlgm8CEk88ZDcWcAFjaJaF+SfT4RzE1JHsgk7D0RowuliwJBe2ftqWwbCyuhhcKmk3mLAGvots1awJs82Va9inUNCHm0uxefAP67nYIDO4oMVH0TnVcrntQG0xq0oYeCpwzyyUiQkOrUJgYZjGo/8GCY5maqqhRM3CeKehBImYgWrmFKmqlksiFdZJcotqcGSNZd0JsLpTYBA78JmeyOakAbkJmY+jNUWERqFSYIBj1SngAFsl/zznRtHjcM0QcMijCwTXhDkt11gJ3MxA+xCqmr9E56dlIahQoho0Yq70OlJbIFhYStaT0QmyACSMPz8bg4SMZoWsgFBgOKCDm0DB5VtQzghPDFP3BLLyrIAQdxkHh4MARBKklUjK4FRgaCS9uHpJoNvGskedLqXra/YytYEbJJWzdyF6UDRbwBl4IMOCsPVTA3pOH0onAVuiCOcDssG8IUjsaV4tcwqeQAa71Aw+wRkvCZND1CWRwFmqPQUWwXMu4msEwAi+pOV7nF22IFm1o+Dea+SHAGJZo+c/6uXMYcAcHtrptUdzyQxZGpB+wIkcZSAILgI8hPqqI1VNbOU2oXqVjG99ofy49ClQwFY7E6GKTgz8DBqbCdiUwAEuMJfDNxFhcrJkV8VTfEDzRgpMkauDwQA0vsavkOrUucBCbw4bX+JZPm2hUTfMG7sqysr0r1wDNUvIaPmO3jIuGKRGVdCeQu84jqZ861XpYz8XdMpRRTQqLe4IP6all4H0wtVhnBc9FHrARGQyZG9gmVRPQxx4AnPFFr6QQbAZZRGIjxgbpql1ewOlwUnd86ehG/jIVAvTIGuT+0XmfxROUNLcKq4jcHN0B9S8qFJXAkTgHjdvpF5yJxVgq1MtkV4DoqIbPCkOKVrUfobj2c5ry1CcknjD4moQl6UTQsjYo++3JxkijbdV50sjdAmbCW0OEtBBruCZTPmUA8ESBjCpEAaM/9CohkG+GPvhMhDX0ACxEWkBMXphHf41WnT+A2U1eR8YHLiq+2bAeXwUMAbagJJBTzTJgV3T4x2eswccgIViAW0qen8Moy5A+YG1FYUxWwicBlHUI+vSdYincUXieOgVb+vjqVlVU8yeuayPJgr54cY+BrHzyLSotwsXSAkBUDwLrFwWi76paaGVgDwV4Fa/mScbdGAsBwxgjUqxlvFfuzAjK3Id7xRSiwA+3LkXutF3p/MGu5YEUxg7gqgCzz2sIt7A5AILBqkg9mKCqNPoTCvJp8wRvIRMRX1fkBsZOhbAkliU78ZVGdLuenqCQNVfnqgEuHaZhglgD3yWQmiBIdcruUGcvJ4sFrCGg5orazHFIYH0c0Se1GWCMXJks/0CHoMcUC47kVodhJ2YMq9bB/rO5hRjRj6rAU0orz4lQWw2GSI1R34KuBGFqEEVa/GQmPi0f0NCUP64JggfuxdKAZjzqykg41+8rtwk2VDW9WLd6rsonkxNKocM9VWBK8YZRhQKK04AYZ9t1edZgKzTPkkF4FmHFP+YGDzZkoxv4GsIWKHbm/SSfUE/fITiVO+F3uGRk+YQCWGN8SIaig5O0MIeDN8EwIQuafYMKDIM1sA+bXM3c4UNQIBu+aNuoFUNqKbEvVvM0aNdWo99Oh2vqHeprqxr1P6VTy/aUjd/OwSNSGpOS5OPfxiEoVjJzngfEK/KUQxWOTJVwB2wcsyQ9oL1Nl9ddE4oAWtYlklZtNFTj+HiVIaCM2RgeXANkElqhKPfEqM57BH1pvCFZGiT3hNkBtRLKiUknsIPOFZoXyoGm4TePHXJIHl4llqohYJeSIsbWByAW5oE1WuzeX0XkQIuoEdCRBninHBiG90fHE/ya1xlT9gVsiyPCuoOVqizDB8WixiKviSJiEsowYPRKuRfN5Y7k+AhEfAkTHpySYAiwdanLKjsDipXGV128RwSUHSNzBOjLRGW2HXp8qXz3LXn7zUz5Lar7hBfg9IfITRh6oxQ8xVuQMBPG2RmZRKCfdHkJSG07LGcgP96LsglIV1f08GwyDzEGpjurkq3u7yAq4/8lfphjxEps0iaHUmT7sZiYLMcPoDhX9OqsIEs6CFzWSe3f3duQzI+LtZNqs0pvXE0mRuURuB2kuMNd4ahJdl/9EHb6RjGOlAbmo7dUMkBZ7GwGQcNS+7ExwI8G3OxptoYk72jIcT8aPi+fRhhj4CreDNhPQwK5jTnj8xhoHlpxVXRAUrNIYJtBeTg8fvaqdU5QDNhfHQHqHJ+GRlswhD86IwIrtXzhsoiuxvIinTgAA8aQ5aq6jeSAz6B5i96Xf+Mm5Ur+JJJIWU4o0LhMCN1wucpbkiuDTnCp7Bh9UoHhuleA2xRb5hitT5cHL7C+Ed6+upK5fOFTeHwExIJmY7bp6Rcxo/jduMfeBuEkSKAlXr0o0yCCRRaqCJA5pxgSSlEYUaOcAAjnMMMszB0oZHYDV4DGDaue6WwJniiE2C9Ykd3iDdw9XYsZ7bx75KPjayOhvbNqSzUx3StIWBSH6g0c/Vw6UZBBFwOHkVJP43K5Xhg6wqERNpqC/MqLKq3lCpAibMgxtx6t+STzjX1CbpqeA6AcmBS6Aa5ykU1XZHD7s95UQgnjKVMSxqyr1VeVWI9DlPKacdWHhiT2rmFcPtB/vyk6wuJRG1X5WUQ/h3Wp+OESuPg44F2lOaeowM8RCNqmfqmtjcKqG5RPuaATwnBXocscqByTthLFsjDdjVFjRI6OGYTHolVc6ijAKy4Pqths1NV72Y7+XYH4y+R6CH+Z7UCpG2GULkZvZDq/kcMHYhZZltlhUuYKpC+9xHW6maLs1IPkIPxyKwsKkFANAy1OW/C4YITGWETUd80IhAIg8gwc+o3Sp0zaX6gk+qqUJS4iQUx+B9AdOSQagnKkdJi1PKBcNPhm4tnPB3rT7Z3/WaWu1yaTDZtpZwcwGKLIQ5ABFW31AqvqIV7fUAjNAIMaCXVARFceBUwB9tWoRftz3dVDC5ihY2Iec0k4DCgIWLigAoTQ4VVXPZ+EZOZqiSrkh+yvSD9+Eg4MsK2SnXsJPTbA/ogxyaZ3kxVLcGC9y7U7EDGNlrkytRU3WNKzuPpvwTdsiQkYQlcHAfZa0MwkSwHdgqxh/FsCkAUTyCrt0YZLX3pE0ufuj85LhIorUmXDNh4qyADUG/gasVU6o+UOdfqg2VeSJvB3N7SiPysfUphDkJirUVoCqzE+GVcj+4sezOwfYFAS+gq3iUp6MHKrb3JBiZOBMaobG68I+ph0YMMKSpdkF1dGluc9WOUoKDHkS2rPYnekjL0F0V/xdyBhMb20tToi5KMNJfBnDQt6RbaoQo/nCRjOMebQlTfCiwmRy0UO4UNePWjZevZFg1ZgDfAD2MJ0YMxQjPmaoJ+NENAXgmtVxp7alvriMbJS2BxzCj4ABjLiVZFEF2QmaAw/ijIBOaYQVRX/AxIheBREsMgqVwEWqhK4hwrQhq94ii9xxGyAprlBm5jWJJjWwKOnS2ypPpH96sBf729zBIx+vDVnvTPsAFYsFKWqrY5fJeg856EG+Cj5W0UrCeOiYox0oGTWVIjBcr0oykQFOAMQ0aEefCF/MNpx88SD77ddYgi13hEuHUE97JVgsJBi6D87dYByO8ZblVOTsyH5ZR4wKL2UVEwyxKlM9NRxtxJcbK/aoAOq3FOJgJTBlPJjS1gLuCFomFvlzi7hUlUWxnxKqWsws5Ch8eGtHFJSFYA8rwkJoK5F7BnVPxAhBBm399YBcktrG8DFl65IR3Au9lC4+lexDmcggIv0huCDvnADEzoy9Zlzt+OnDGB6y7LX6EfOqABP7gburzKd2o4W2QmxGTVRndUEBEC8NBVyCUxyeeJsqSUiqGBdEq9KY2jwxMcgp0AdnBIiop0+dbP3m169W5SG1X4mewI07JMcrymchZNXED3B6Nqaj1zSqTKrhINSUEdDhwIlKrrlu8bBKiiQk8+S08Qt2981vrxYNRJK6GRV9LzL6vJLUlBHCaYnCsXYzlJ83mrx21wFp9Ee+0EtvJJPvLe+h7lVTJQpTNHlxq1+FS2qrGEJGsGvbkEDZWv69XdBmkdo29MEU1RULeQ38h/qNDCh/HURqrAR8ZL6T9hxRjqtwrZlgr8AcOg9HzJOINfV6MPiiDXIAFsRranzEEPe3CQxJnqpYFd7gDyFHpglm0z6AOlmG9gaZuzO0AautPW0tH0JSnQcZoIyp4ttyAjWW2h6qehWgRbUfLFWKR1FpDJaAUTFFkqqIqgIcav8MUVbK64dAbJVFciFlPoUlnodAQ9ymvDWuMsx5g2rM1sRW4VdHnlPdiDp4IKmTWVzoXYY4vJjt2ry6HlPAs3dr8ppISu8YVax9+FeBa4fUbExzEbmZvMz6dFjF/uNP0BwcQRy1Mq5aZ9JyZPPU7jerhC1Sw0LwsxTtnWHOBTvIxk9zhjIf83ASDkvlT5zhOgOiHigtp8xpH722XjF3em1DK/zIih1QQqL4Ul5qajNC3XmIHmIMAy+z23ie7dROqTTDAC21f5EKAVX9CsZquQALcJ5q9IB+8lynArjFa/ud6G2R5xGdXnfy20S90CTgJfJRs0H3TDwiHeokoVjRAW+TqRK2Y2FruRN+H6ep4hVzOR0jr1uNQQwpqqcKFFFRWs0/uAVcbtS/grzdWKUl3wakx924uTr4eD6u5Fr7cTkGnybaclWLYAQ/pgQ+iK3eQ8trk9Eo+kHIP1Gt7T/gu89EihDFS9uprDkrv/lLjY1XJTkgXfDQDo73tBzxFQAJLBdMsT1UX9C6lu2gV9KGh5N/X9CCCtaYGgQBUgtd9wqdp6khus7+YVHUMyDJVZDLR91mFhzehvy5r+yIvVbsQ08kJVIhola7TBJJ5dVEzmz7iBxqExkqOLkqhOc7tL+mOkNHckxS4W3PRYOvsCnILGIHfQof4okB2aSiu/oL1KUqmUK+DcQhSXGcOqFguqh22/NpZPXq8iGWYDTklYethiy6ms8KZJOX0EpihRlNxKj4BahFQxL9PC2Kv6v3sGmrwBrUqx0mUczm785W4646ilVqb3Or+KdWu6TOhHFcA2Gv7AQPOgLu5exO+Jo8FM4qmFrQdl3iddUKA/qGZ8fVLzlb30eWBWnOIOnxcUV4XGF5/EFPqpuX560aBqo2bhwCw07aXScpC2yAABJ+OukxG1tHSZj/N99FTciEDyEDEHPBOcFXbW8ii8Hlpq6Agwo8Qf6a8MFKOzR9V3EGAUPueu1kta2CzFVH4jTVBlWrS8rdZiw5Fm53SEWVmayWEFb9JBeksbkPWvRnovr2s40qecL8s1ZpqnsKj8nfIIdVsOKxwPLhntLNTc5FdSRuWNRwW2GQlgn7Ac6x/v6V3Syh57VpW0Bdda7APxmQQIe4ScxX6Xs4B5RGam7lO5o8VDB1c+OqKV6GBtAhCZ/UBRsymSdkVtoKeh0INGVgIjCd9biszsRTvQKBugfUOj6CtsOKtpTGZ0NVTVuIBtGvWqZPdsj18MpH6tnDoD9nv15z+hzP/CVV0BMSrfJOqIkBBO1/cJmrCj56FEpx5MtQQ1tHduMLiwpxr3tOvQJMNF67qVR3VYCbAoKhRqOq3eo2tCFNOPga3FiEyIUR9dj4FPxJUAfeUTYsnJvqFdh/QjpfbSYTOF37ilDuRqYklWJVh2wmqlDZQ+W/qh0r7B9JrO6W9pxr8vKoW2033/tl1G45thp1Ufdh2XRt8Nx5ZT5UQYT+iv9q2FZReZB/M+Mp93jI4dcau6iF+UyP+XhdpcwL8OWg5/B6ETw5gjDZaIKlc0BqmyTNYLuiPYnK42Sv3TNpVAW+dufRl6mqC0hCCz5EE2lDlxEjordaWdHuKMhb1Ur4CioetGXtUZhT3RyTYNM+ea0nRoQSmB20kbLwE6+2odIgyI/jP2q+yfKyakxi8om/A7pkdTYTLdAQGhG+e82L0e3XAshTw2+gT6zRZ2wCBK5tbbUuJPU1ztQO7s2uAEsH2q4FFR741YsMoZvpcxCQ+RUtP5kKfGvPeTPptnVXFBhc2SordrOOLXgmT1Ag3MOjoR4dyMUr6kidas+D7qIm4YLMasNVrSsKFBcyK2R9BADqU4UuhL0q1lwV8elMVHC1v9Xfpg+RjVisf/scgfv+QlLPPiONEfkKSl71s/I05GBmypokdIf4G3+F7dDWpLaastWkLljiCL/U/OMzvCs+n2Uq6llM2iZs6j47HT2ofZ+EkIE6Vj45YyqWjEHvfREMbrW+XgmE/BJMbDXOyFmrPFYNDjY7MjosgrQ4sK9edZQ1NgrZk96JtQWLbG2eI+c8Zh8NGrTbjaWB6AFkpCBqsemwKnqI9axqDkvqzVGrFpJU9Raedji1OcZJMBP8LUU88sIdS4arVImjVGSi21TKApw9YBxRzRssRjBqk2WqJAz4JzWK48bVwyo8HuoCJ7XvA6gNeiw9SW/+PB+1RhzqPQsqzmEI1dsIQzqP5FZ38ARquVWt8i2mTm2QpWr7i7cR4QcswzWogijjRDaqbDuqDlZ4fLFDdKrPsmqDc0IJRB5yXvJxbewZLhm/2ZjAyLW8dsXuayFTsScRgK8N0mfmSAXOBkjB55OpSU0beEl9Y4S0BAtXKajZo0a9ow7xBamQlEw3Vj6qPUltjEBHU9WqzXw7oiNq53nin6SigTflOvEBpE2o2wgksmmo0Yao7M+td2kGpz0Klivj04D5o412lmEMqN7U76wpAP1ZD9yIsBtB0DLBn9ThiIpCLHuUnGMUPQSEMQ4PEGC46mNjhAYAehXZ9EhS5f2Ve4nYiqj3OaoHu6kUj95MwWlf8BVWh+ofm1xQ4mVtfh6EIjwUTV1Cl3kwuMfULTtwxKjNetQNNYngbQAbAhHgXSOrQBDUvbYq0xJfMxtPNmHOOMkI1a7UOwexcHU1qZA1KpAtyExlaJ0lUT8EMl8ntCp8BMfACoAk4lX2e6vspm4g6bOOHYURpjoq1XB8WNLrFouWtUXK/XGEklDPGelUARzs0UJSPtJDOggxOux5dHhXhVOir6jJAWnqojqVyFiBe0A+k3qZbCDoIAe0Fi62gC2q43ulB7AFnyAwT9AeuVqsMWXQkbZ2F9SvTUKQRYefgSq1I6pqmdVWO//jM34RXm8SfYSmOmkIHNBlyE91tTF7dWOE59ixECpABbXUqhE3RvXHwYr48Fnx1lEtCxWsRS8wT5/Wwqd/5erw5O9QEnrBsXhzQDuzT+aYVM0gtxowuadaYzQ53PwOqBN0BonxVGQBFsdU30aF1dd+Nn16W5+kNtqQq2yv7XYUJ5KhNFUxgIMqr3p4Bh72nWrQQasiT4N9APWZo4rZWnXiIPCL2iGyjoEn/AM5YXIQOtTS1EN7WGw1w0sPABeESlZxDyG31cmCywK1CQFc31G7gBr5DhZ260STdnoZ2pAS90Sqdq9VWVDpAuJWixE0AIM41GrkT9p9UulDfeAVxUtEIG/Rz4xsvSOHTSb1tXwoiphX0zxrMxuPPQjIjBhEiEOuOmeoTZJF9jMJ6Zk0bbBAFAc+0OeJAWxtZj74K7Qm0ld7tg3KxpdAHHOrNng+KZJfw+JU+w3KU42RuNio2v1RxWeq44Wwuap5vPPxuPsfDgtCuMCaV78+aqpql5D4PkwC4AUOwN4s2etdCWrlEUdbDWihne5xysTewLKp1lu17hvUJK2uQ3RqU3naU32t9zU3nViBhU0ewbgTh9uRQDyaf80a2vBUsc1j6TFPTGDRBnX1n719nXzpGH4JdoOW/bNdOm62vxkg91tH9E9ndK7qApEFmKjZhNwSF7em7wdgZipLi7xGceqbKyAalVE8nt2e0+XD6rtnWsvVOStTu6dXMxRgRKCDPyyRqOG+cy+AZnE9q6kDfhbcznHVQrTKWDG9mQGT+vsQcVBR6ZK1kk/ArLqrVRazjqlXbUTtJiobCZ21JsypqdX4AoSoStL1yWM0rHpUuNB5oJj33Wr9QG5lS9UBjhG9eqT9IqlfiNApRU2cQed8LkF4IzIvTV+eADx0IFF0hJVSAVCqFzFKJnd08tk6JKtu3aiD1HwAu5SQOTpioJMLKnppczNAHXUUlbmziGikdxogOewkaajD3xvDBXdpe0OnTRVzajSD8JPcF/yyFTUVz02w5KRDjGrdJzdAGHe13VKaehTIBBWluJ/OcLC+LK5p5aNKkO/LKGJ6nWDSzdlbVGsXCilDz05uFZYuBLI2Arua8xU8ViRH862vP9JDHEiCo1I0CKb+u3iRCXIkGLOIPiIBddRxqE8D05zVHblbfMfNS2gpvJ3Wrca0RTz1zymoAvgB4O8Et0rYazm0sAUt927tqhCN+olbTe5v0473l29ti4dJl8FZ+/UXqjENGY3VNFJceGRPGS40GSCRXiuImmpVPwXyJJl0AFjdOuHo2MB+wRqBFARruv0deXfz4HcCJpdFw7JJzHpBMVFoDLqojRqtnYTSecH7VfyNb5w8z0RH2VDGw2uRh4dq7GrvOQuhtbtaURFQms6qg7mmjdnEfC0VPb/scFODnUVyVSrYoduqV6uNzicnnGcepvkbQ1sRCnJTjXurxvu2Q18zE8Ly6XIijPlGbusbUHSqWPRhkpr47/BOuJPSqnIh96WYgDvt3ujslbrIbtZBsqJyLONiwKsjtBLKCjI+p0ShTBGLfvbErP11q+V+eiHhPs/rRSXtxtv/K1v11Yw6qpVJYYGF1jmqc5Bkj8QKMxe3KzrvQGhoOzAFsqDreAHCHslcr04bw1pbHVmZNT1IyiiNSYY1dFsfKrsQAciaKe01RmvqpZ2vh2tABA+vWRUdXFKUNpJCthfw3arZw+DwKP/X4AuUotO3QWRV/bmtGs5YuKbzBUWVqXcKYRk5Ap+kqRNRplPi8e0kvJM2J6lnr6mvFjwg25KKVLzVq5hT9V0ACqCqpns108KIqWbVX7EB850h9cImVhtSWre7hKtqhSnF9c+qfSdPUHXCHb4jc6ULmDfVv5FkalsY77g6BkzndXbFRQ1EmWtSKSzO0MkfyV2CsDWRA1pPRzK0L5/V9pqSNPmqEcE11MqaKvjY1ehKLDoP8L56ZlG72nnt8jjODI8Gr816D6Kdt6GKEboCxqMWqqItUlGWiAGD5dQoobMHhErWYam2tr5RA/MLNAZ9k4HaZ8EF9R2ki58DedUYX3W2Rm0skxluEysq1bS0Uzd1kCR+PJCkKSZ+vc415Du+KUIM5527GaeTMEizr9PyCTh1qs+Aqx3GKdouUUuuV08e6tPrKBbyL73vf1LPKoRR9JUMz+Fldf2pRVIH4l3nZuD30Wl9bAxMBg0J14rX20fScZJj/Z2L015n9flc9f/rTIpCcb9UgrLNdNwQ22z21I99nQ8sr5/G8xnCgKWPOuANhL8d+M8BYuyE7Hgg4V3wOk7ce/LIHRzOUWm5qkqkcwhL3R862V+Zi6zDkKx/2fpSARC3B3tuKZIOZL+wixy6/p2ySljVkvtrzWKmvBoV1YggJD/tagO0l1uyvhCDRybPpr4taDgIvxrqXZ7m0YTswpvUI9LG1w+VV+W50H+vfUmHNztEh02r73xmazmi/NEE+FRgnDDVIWzVs/cTWVU1q6j0hpnUxq6+nnqtS9wTs8YkkD7E2/DusyX26caGNBBzxrgLluLq+GkA0fLcEQGHtMXXqoUGNQayo96jvg2kmGcoTgcdOwIJvpvZvw1CtKl49+07EJPjaSIw7Z2maqvqbMx9X/uAGblyROCi+/OGxX/zs+GGV3mHWsjQ6XiSIoeFhffSHu80S5EsCTqbkRR7KCR4e2lvWYXQYhLw99Z3QiYCzS2iRqQmES0yBayeShYop6MjsOSRTlkrMROolkXRSfvc9X1VWq6SM2oHVBOCI7PVpHdUCdQ3KCBmvE5X9xuB23Qj+Lrf2RHyR99i8QJKvWj6hrW81eowTd+AgtuEALUjptOcxdLruSOMdJ4I/FAtI+tuNpD24O7nfFcZKpnqGyReP8Vx6ueVQsKoDe0I6Qt7gPNx8zVTS8nQdhY3w18tHWVQMn5vIMUfqEsxI0Yld15xSoemojqicF36ZgDQtr6tQ6Bgw5HqCWR1pn67UcWjrW+B4UlVnjxyR8AwyTd0hJjn2O87i+APDFkK2jMAl17GhZfGb7PycWYg/1vvGtK82vJBrB6dAtSXTOhgO9F6M2oSO6PTer2+ryNRyyn5bNq51DeukDUEK5DY1J8N1PKUX7xf9Z03akVTH5tspLK7VxkgNC2kn5o6hPUApnNRslHgjg6z1upGzpeBq+cf0O8hqwU7yOnpaxMKtCC/RqpP7ehlfBqmp75dBlgm6ssplnpHHBj8y9b53/0Jo4MPPNrSVnEiBlXd7RKu27/TAvyPjpB8za69wwj6Qo6AfDs6pFtQFh6mQ2sPp+MvNyYD/l5Fe+tEOJO0tjYXk9yPvr6nRFOLvDoapgr7WkAp1Ci81LegOFXbdFAWVQst6os8dEoR4kdjq+Ez7P62fMWLCXsDB8FeahNV4Q9njihQV6wLr+dBp10jfl77C/JYhdEhg5M2gdsrU+HaVk64zNcbKNoWKPlY9Ecg1eHmWE1CPXQtZknwXyGSn/EnIzpEiSEmNHm+QNSigYn/PepRvzi5ou/E+OzUAHnRw5ex6QA4EnW9IgpzOYlsHXpX79x4u07qruNlfR3HVpczCCW/2a4z1kubmaHq9ExAUcz33YmAdg1jfjbM6teG2ddGHAJA3xgSdDgrfGXw/x9qf/n5mwtJCEPhAG+Gh7TZEuV09Y1LR1jXBXYYKd5jDy2hrxFcIctfDbgoj5JOMPMgsx6GvNUYcXTaA/iryzfVILN6RHWovC5YDz1VmACPOU7yk6zCLMr4uDeKiIRH3S1tOCFcrSvXtK+mGa7aDtNmUFOD7jsSroY9J8Gqr4DQ2afPIUA1J5A8SRqLvC7cP2qTsNZXyIdDgr5EACzRd4CKM3nvBSH1IaWWzuugr7SVCC0fHcwpkvYqOqubvgnBFliVNCB9kRDgzu0GBuwMdWmggDtDbhVOmFGNMvoOkKsWG2SQTnV5gvSavhoFfaNCtY0RukRmjugdbn/01QV8qr0v1NBuTlL3tKn+QeRq17jc56hxeG+nOFydYdPu91Zj6ytI6fCoq0aSlFxRSdjqOYHdrKaQiwJNkB4uRgX0oXyCpb5Oef+xTPSv60f/+ieD28P9H0do4lAMW7qzAAABhWlDQ1BJQ0MgcHJvZmlsZQAAeJx9kT1Iw0AcxV/TSkVaFOwg4pChfgwWREUctQpFqFBqhVYdTC79EJo0JCkujoJrwcGPxaqDi7OuDq6CIPgB4ubmpOgiJf4vKbSI8eC4H+/uPe7eAUK9zFQzMAaommWkE3Exm1sRg68IoAdhjGBYYqY+m0ol4Tm+7uHj612MZ3mf+3OElbzJAJ9IPMN0wyJeJ57atHTO+8QRVpIU4nPiUYMuSPzIddnlN85FhwWeGTEy6TniCLFYbGO5jVnJUIkniaOKqlG+kHVZ4bzFWS1XWfOe/IWhvLa8xHWaA0hgAYtIQYSMKjZQhoUYrRopJtK0H/fw9zv+FLlkcm2AkWMeFaiQHD/4H/zu1ixMjLtJoTjQ8WLbH4NAcBdo1Gz7+9i2GyeA/xm40lr+Sh2Y/iS91tKiR0D3NnBx3dLkPeByB+h70iVDciQ/TaFQAN7P6JtyQO8t0LXq9tbcx+kDkKGukjfAwSEwVKTsNY93d7b39u+ZZn8/hFpyrhF9UuIAAA+gaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA0LjQuMC1FeGl2MiI+CiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICB4bWxuczppcHRjRXh0PSJodHRwOi8vaXB0Yy5vcmcvc3RkL0lwdGM0eG1wRXh0LzIwMDgtMDItMjkvIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6cGx1cz0iaHR0cDovL25zLnVzZXBsdXMub3JnL2xkZi94bXAvMS4wLyIKICAgIHhtbG5zOkdJTVA9Imh0dHA6Ly93d3cuZ2ltcC5vcmcveG1wLyIKICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICB4bXBNTTpEb2N1bWVudElEPSJnaW1wOmRvY2lkOmdpbXA6OGM5NjljZjQtNGNlMS00MDc1LWFkZWQtNTk5Y2E2M2QyNzQ2IgogICB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjJlODk1OTIzLTA4MzgtNGJjNS1hZDAxLWE4MDg0ZTI1Zjk1YSIKICAgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmFlOTEzNTU1LWMzOGItNDY4Zi1hODcwLWRjMzIwOWFhNDk4ZSIKICAgR0lNUDpBUEk9IjIuMCIKICAgR0lNUDpQbGF0Zm9ybT0iTWFjIE9TIgogICBHSU1QOlRpbWVTdGFtcD0iMTYxODU4OTAwNDUxMzAxMyIKICAgR0lNUDpWZXJzaW9uPSIyLjEwLjIyIgogICBkYzpGb3JtYXQ9ImltYWdlL3BuZyIKICAgdGlmZjpPcmllbnRhdGlvbj0iMSIKICAgeG1wOkNyZWF0b3JUb29sPSJHSU1QIDIuMTAiPgogICA8aXB0Y0V4dDpMb2NhdGlvbkNyZWF0ZWQ+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:"​"}}):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:"​"}})));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:"​"}})))}));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,iVBORw0KGgoAAAANSUhEUgAAAH4AAAAUCAYAAAE8S7kiAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFYcAABXWARG5gq8AAAjbSURBVFhH7VkLUFXXFX0FBayaUhirzSTqxPysE2zScUJNzIgitRotAbGQGDRpsBGjVT4CSlAkShQBLaig0vhJTBs1piJRRENBPvKRB7wPj+c0yKeIn1gbK4rCW9373Ps+IBDQR6zRNbPfvfudc++5++6zz91rHwXuEh1u0ExyUzplGCrlEwmXSJT0U117GPqCZFSq1R1v0DOoVCqT3L0Je3xsgVZ69OaLpLaQfCML4wqJjkQjjDtvAMq+boROXwy1RgsD6eYnuHZePukIlXyUoNfrTY/PuGsTegLLQS2FIR5AvAYGvwqG0ZqWWnFown/FEbggHwmN6fIJw2hle68zrpMU6ppQmuItBq3O3wRNVUH7B7hX+F4Gt3zlltJucAf/z8VRMehRzHAaicWDR2Kh0zPwHbMckSHP4JUnJ4n28NB3MM73LxjzrJfQBwz7HUbPXYAJb8TDbfQyRD7nh+eGKjCWZOEwbzh6hGN+fCYmr9yPV94/hH42gfCwce98cKc/fom0cEcMX3ocX8WHmwb3fylWtPPgAZlN8AyaKfSgkL/DxzUUEbHZmLMyWfz39OtrsPjxVTiycKgYfG9uibA2+mAxJn9w5HbLjeDBewMevDtYvmpLuacTzproKqy7EobJeFPIG0Ghb5wG1gJPl75C3xpP69+QTWpxmrXRG9euVuKp7TVCV32ShDpaDzk2GBwfvC4aY8QIs/FnMVKhgMLVX9YZSsSuLRJniR5v4bJBI2IIOIcnua8s2bQMczwxOKZ4LeW44vWUYys9+jFTX4ViLrSFfxZxpq3eh34W92mlb5XJ+J2vmRsU9gPpHwOC6TyDP3cMMt7OK1S07/qn9NeF0u1CX1XQJvSsBF8ohryAhB2LuLVL42eNojFeDkCYxxzxNZWgwuLfeIv77dBcpeFLZeMJZQni/7FBnwi1O+NVWh18h/xE9P+8sEx8WNh49nZe4nTxv9vaLHH9Dybm7wQPjf8hoLKy8rZFrTthPDS+rbUOscVCN+FiVjRo2bEeag7jtZQKWbE++tT4wnUvYcmJm6g/Fo20r4nllGxFUF4b/pWTiPBTQPlHMci7RQRJvx9un11AQaI/Ei1tZeO367DmzTegJ7VkxWyEF/1baiPsmeOK6BMN0G6egS3qm9jo/jTymqihaT8iP6MrWvOxOq0MKIrB7I05QMH7UMxJJS55HJuO1aMsxQe7sk9juaMDTpVrkeQ5AIVKLWba26BEqYJuXxDSSsuhyd6A2EzpwXpsfP722dLJt3V4dEk2UsKcJZ346jyX3VB3MD53wwqUSF9ACRaeTw/zEp+caAvjt3iuwWU+MSgRtvofSHCbiwZSM7wmiL5CZseT0RH4m4ZoZ0sWPi1spB63EPOFCkoy/uN8LZwHyX1JNp9UYrrdZChVGoQMsDffJ3AXj9QL45O9cIOONy+qMHLbWRyOn4VWbrjRgMd++XGPjPdOO4Ol68KEeiU3DCE5ZuNTvAJAE4oGzkDg1irET5SMP7XWFYXnuEGCga7ryvjdJysxeMoKqDRqaXqrtbLxaiRMt0VZRRfT3vRWSBwTKnD9UgYcnANEJ0bBVk9E/FYB5+HPyv+0YB71HTzqV5J6vUFcOykkGW5/bejC85WoOxol+kXt3QqvZflyI7DNbynGT3gCiinBQl8vG8+YMtZJXKMmm7szfld2Mc4UpcKO+ip+HUEvocpkvJrO7frZiPtUVPZytTd6vq9g8vwd4oH+1N0JHmjjH2Q8dPz/Gbgs0dvlqzdiRDvH8wevHau3EPuBj2AjV2UNzSID4DKHVZNfa4I+qlw56Mtkuq9wpqYep7f6iMoEf7hNGYuVxIjbHM+1rI6pngltN3D5SJg8GX6Mn/5sMzRykwnXziN/x+twXH0IGX+SJg1nRcbSj4QWUQLiDInbOUsyloIovxMkgethnC4yOGXkuhinjUAjcr/YiwXzFmGpF10/wh3+xzrslnR0/LfliHt3ovzcLK7wjyqCObm0hBJbZsUjNTgOfv4vSv0p6xKlJcaNAqyPOYANoePx8lPUNnUVDpw1UIr/JWaMH2Ua4/cbMlHPNSaCITsUoz9Mx0frn8cLj0vtb+/UovHEKriMGCRd84edqLrSirO1DR0cX4XqmnREDXPCQPneijeTkFNCJEWjRXVuAqa/moB1ixzgYMv32YbicjURmRDY97c1PU/gLqUps2P0MOLtMPCRRJRzp9bviHh2PGWCXHc3ZoPMBXgDgPkAb/4wJ+DNAMELGMQNeGOA+QFvCjFH6NrxEmfg2mC71NkS3xHxzCl4s8GSV5ihEpkm7wOYsk3iGrwhwXyDN6OYc3Bt0Zh658W8iNUpe6GzeCGGnAj8YmUajnAnImJccxQpOaPlKywZ4YP1B8/I9ctbogbJKTrXITlNZ8czTynd4oVBC5KRWaiERk3Rr66CvnATXrUPRGpumSjOcvrONUpO4XkTLH6aLd7bSTo5WkS6WoOcOA/86L3daG2jSUroXcQzeuJ4Yr7GCrcAMWCudDML5mo3M2FjxVvCJVH5ZlbM1W+rOT5VS8o5HI30wc9pAj/vF4aSZg7a7hxPEU/Mmivogl0ziGFzJZ1ZNlfTmWmbHX8O+yePwbLln0Ivb3B2BPOw9o7PEkVn5mTSotC545mdp69whkNAHDmeIpwdb7l0E2HlwrTZ8RpRnQ/qb4PAtGKUGx1vIUZY3/HNF1GwbjxsHYeDiDvhKuoyE+E9dAGOCStbRP2H9x65BsQb+lwH4n3I8EKpvfZoLN4d6oKoUta/gTJ1Pp5wcsG0w71zPFcO0JSB4KD58E2TJ2LNIYROdYbCxa9dGcUMHfb4jYPDuHcop5G2pJVJ0/BW+Cpk1rN2WhBty4hH00G4j/HE28lF9KGSkBflAt8PdqLiP6Tkh9+R47kmVV17GJFOAzAxeC9OnlZRROtRnDQTDlNW4sCpCugK2kc8TwbdvmD0t5mE1RllqBBEPhdxU23gHnscbYZOIt4q6GSpv7/QyVL/PeKeZPVWwUPH3xXuX8c/xH0A4H+sQgIhfdYH4gAAAABJRU5ErkJggg==",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,iVBORw0KGgoAAAANSUhEUgAAAIYAAAASCAYAAAHpiZZSAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFa8AABWvAQS7x0sAAAmkSURBVFhH7Zl5VFT3Fccfi2DkgFI1RpOcY416rKaWWmuNaeyC5DTEDZQcjaiNUGtEmugIYhVZVKIYDYoS3FCjBxeqYpEEK3HDKqKEzShEIEAwLEHWAQYG59vfve8NDDAKuFT/4HPOzPstb/m9++6725PwBOCTbDSXIL0dygMxd8qhOnKH26GObpCkwVi33gUeqt+KtoT6gnOArkrMalGTvhvanAPySR6XJ3OSg7lNYpMGW0v5fPlHJqCYGulbePleUz5C8KZ1WDNFQvqeQNy9Esn72fT7G+43qrn9/7kdEnQ7bmxioRvjPwErlFYLvPrK75WecXghQQFrkdPQBCshFmvLqehvLaGyked5ISQaJ88vMP7nEu7RoBAXLSTh45lwD7rBYiMtINGFLfESOxRB6vsrfCNESBqhKbkO1OfTkYwkWQBNGrwwJ5I1hMf4/xnz8EVkhSuN1gTEFyFXabfluk5pGBCnAQaG3lJ67RGLSORGw32gpxA9UAfPqDwe0y+CHonf6NnctlMt40Xk3T7G44Vo4HFDaHyc42lc0gIj9xbwIpz7LeK5j/kawHHxbM2CknH4R2URdBAhOYo3mbZKnxeRfxh+X5/lriS93rwIkoS8XwXP6SkRv1HK8fIi8iH1G4X+i+N47DN7CTHiEDrWbP11/SKePc/FIp4XFGGQavhxy8R5D1B2EqvPVIpeDUwnbwUyQxBVUC3UJBSHsgzsmFCbmDuVuOw9BBcL66FLXI0l+9OBK6uxM0nY4cRAbE/W4NdClcjEkDqRmSkUhy5UqfgUjstcxH81RttMFNs6/E6ywXei5aZ6i6bZ/JCqfbtfhShxyqLEMPheATL2eeDNqLsoPL8Zy/+rY9tI7wCq8ppVkKkrhdWCGEBTAct50VALJ0bvBVl/eje0OfvgcrSUd20WRuAl2Vi+ZzodSA5GZq3c7zljJ29l6uEcmqC0BSyMauwZPhdl1G+8iLURGTj6xhDcqeM9GHqvDIVRce8i5q67pswSFWx/CbLBBNlhgrwysdl3Hm/1kF2md5BsMxmDZmEIz603Cq3RYo2ZFTQ32wrjAL+nRDthPG/E+X2KH5R2Z2goScHLYdlKr2t02wwDuoVhwGMJY/C8MKXVMQ5uFBBmQOUjjFmnycP8P21S2g+jDv6DlnDrbLgchDwKLIwN5ia4IILP5E/Mkd2gw/s9RBohwvSYBb2QWqNDH4vVHHz077UKhpZFFoYOvT2ExxGMHvBHkK+xcw3g/vj5vig9PRl7swyFEYvbu2bguHity79eDJ+EGiSteg/uUblI3eSGNxccgubGRsyO/Uk4s1T8ZuopcZwa3q878Dn9544R//cwwnq42GrhYTtMbDUtwgiZ0Sr2uv75dNSKbdqu6cI33sd0c1lY8Wvo1nWYJplyn2BhrDdxFrsRyfCPlxOOrbbWHBWlVzXiK4+XuC2arRg8t0UzfvmyyNckOzRoryEgXETeCsXH/9JKGF5rzuPvkwbx+eg3TXUaid7TcV5EYWWXfRGWKnYrT4LjthuoTQnFtOgSqLMim/eXpCEoFa541siVfP4t3gPFf2OzMPLjtiDOwJPVFJ4Qx1jgNEUKuoZ2wnAymcl9goURZCKhiQLo0mOI+E4LC5f9NIya6DlIrSR/JfPlwj64K8uKkYWRje1H5SDbZ8QsIf1SrAg4yX2irTBUq+Kx0N4LlLrqubT84cIQwQQmfGLoiks6LQw9tcWnsDkDnRCGqQnMzMwgTY3gwdTNNvwU8hKDEXKjArfD5Ce55FjrXESvGeNH0vw47Bg7DCnCh989+Q7v/6HQkLITbYTBNqMMY/kpTwQ9sAcJo+U1AZLCFvE57TeL8XbCAHa5SliRoGv3mtSXJ/Nx1n3duV95xgeSeU8kHCYhPEwznjty4Tn5hNLuHHt9eiutrsPC6EamWxjdGOUZKkYuDtkNxQCyo+N9EZtDlvTRIIdFuSDZacoHyVZTTkj2mvJCstkPqkI9LjW39sH7zxIsRzthe5oy+MjUcb7pP8gTZ0WoU52xFwuEfGyHLcc5Iw7yaWKgGIki9JqBSLEwlx7mMKUHJhwtFUWbuReN+dYvoAfN8W8SQlOqoFH8UF3cIrxka6nMTUTw5VLUGvFR2gte+MUrVsp+Ej7YncylssTAMXitt/7cEuy8onCTq60y5LCpACvPOyPweA470dIuKEZmpDscXlHOMcQZK2L0M6W4sHwdtrr6Yr2XK4bT/KvvwDM2Cem7lmISX3Mg/uC6D9/q70k4fqq2kPOniouMGtlRAXDi/cXvtQl4N/quMleEbyI+x18Hi/VtmCDP9x6KsYFXxZwOpdfC8YFy3ItD7XCICp61eRwsUIWmfU1TRltTiJP/UK4nWaFP/x3izgUixKRPEBRZUdGCoMIFRVhUvKBrar8/CKeZX+CgPx1rCpO1tJY2ikHBBhU1mgMOEY5SpSciUwOtkQdM4SlVflKrxWRmCCcwVA6jJKZDssI5YjNa/icaL3I4S5UiCmmpWkRhrWHFSE+HFkOEvBVF5+G2MhhLT9BOeooR77EKG9yPiCC6gXMCqjBR9EdUXfHDnGWT4HZGkaqIBKnixNEgYaAYXCgrOIdPtyyG/ZGWLwBCnZG4IwTubxxBocgh6GMLRYtUlSKoMkVRI1WnKIyWLcYSuUpFVHWgGHWlnHxRKY8SsFZ0RjFyDnDUqa9u6WljMZxBX5TkhI1I5o9l/vF1YiwVITa9YC600iH8NlsC9SlXWTEMchciM/xVDLAhDXwLGy8VG7UabRUjP3IcRvYVx4xZiZPZdIsJWEmKsf8W6kTiR98GKPnjr1tt6EgxKDHMS4vArA+XQhX9oApYBacEhopBqQGVIDk9IBTFmBKehcrMMHy21gGbkpQ5gVqYfpVqNByi6NrGKOFSZZcUg9Hgp4zj8Ld1x+l2T78FTWUqtjmQ3Huhd7/tbDXqnoRibDAzgeS0H/laJZcPEnnbmnio6SbSgmFp4oevhBKwc8nYhr5WppAmbUO62ojFUMfCrY8Ttp3/ETTdjmbFqBadAuwb8SJ8tl7CDyyQAkRNHIGfSSPxUeRNLo9QsZ1KJFxwJ4qOwX6UN/75rxLkxE3FmIe6klguxmfvdcEY13lYm6Sky+Xn4PmuF2asuIp64d+vdFIxjFkM2ZWocfvAcrgN/j2CUnhArPMqdga8Dzt/+jhWiZSnbTGa1Cj+ty/Mem1hxWgs/xKrJQvMPkX33ARN5m44Smaw2NgFxWjnSrrpgFyu21NO3ZXafZfoSDGeEt2K8Zg82azEEA3K0p6LrKSbbvQA/wNGF2xMO2U8SgAAAABJRU5ErkJggg==",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,iVBORw0KGgoAAAANSUhEUgAAAIcAAAAQCAYAAAFLg1xnAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFYcAABURAZUCwyYAAAk6SURBVFhH7ZkLUBXnFceXhwg1UkWrrVWrdpqk1alNxmgntrY0RpumEbVANYCIQUTLqFGBiqAEQQHRgWhMMdRHCQkQRYxRY0Q0xQdgfBFFBSI+UBRFEJCLl8v995yz914v8ijqdcZO+c3c3e/b3bv77dmz5/ufswosgJzEI+OOdID7QFUxtkRNwfnkINny7qoQWVd8/hdUpDtL23XNHhy5eQ/1OqBUq1dP8qTQSfSohgb56yehuiBJ3VpbBFzJosZdBPimYMwCH6ApH1OX/xOvhH0hh4RllMM2PJv+TSfR6w+jy9tpUBR1UKZ1j36oOJ1B/b7SB11o2Itu6m3KBYCoaYG0LARKtsI1ZBc2J01DfuY0Ocf1NGe5aMSo51FSrZqA+dC7D6oagF6ODmikEbA5rK2UliaZGv2NofXk8ECMGAfSFhZ5NpaArKhAW7wR9s95QXN7F370wVnEOavji1k7D5ekBbjTcb9dmYftN4Fx8cdlWyX9Qudlmx6nk9IfQWPGouQesLO8Xrap+xql3fDFTNOxijIed7b+FW5TPoWeHpHysbs1wmhn0aZJsJ+2XQ7S0C/cyQ8bLgKDFmbLNmZExJFmAwl6811alkjbSOLpOoSuzjEN5NVhP6YlvRtEw56ZtDyH+O5dpC8DsZ4s7eaPRk9e9FRQLdIeMpCy5ImwsbWTDRbjRh5GRh41dCwHv41s7aHdFKQVsnM8IGTYQIyMUN/ojsBPpFSrPi0jYhB2E3PYXWqghW231YYtwKXPQnFeWnWY3Ntf4ha7EEdRczfavTIYZdwQg+RJ2GG34tBjdC3mbm4UZu2rQmHqbBzRNmLljGTZfuNLX+y4CjX+ERyN2e04FrLrcWRmg6iRoQzBsfvkOJXGZlGCXZKjN7tlWMY17JjugBoK/Iz10r0Gg+jFTTmmMmYG0cHKNpourKUXy5bCMrDB1Z53Y9uSrkDNcfRZdx73ynMw4B8luHW6dYNUnNqC0CPAyY/84Rx/AhWHE/DnHbdwYeMCTEj61nCUyqrZo/HGnDRpv/ObqTRJAFl+r+O49lEN0gS32Axa69oxCD2mswlYd6oGKFiNxML6tg3SFhzdFMfeht6zhSVemdZo1yD/byjQN8n8E2O5SV9YH+5haFmWFxYtxZn416AMX2DYYqAhB3Z0H1drDf0OYOO62dBSUZbTCRQrG9yit+dNbis22H6bd+mwiPvdnOTA+tvHxGg/SyLRhwZE9XCX/gsjPpH9Rq58tZq294VXsD/1dAj65R9le+Ti6bIWavIx1lcNgim+0XRtYO6fBtD/BonQuLrLB7PHjce0hAIs2TwLL9F1JoSrMYaNcSLyZZyooI42F460b8SSz2Vf1vz+KOWgZ6B39Bb8wEGRGCacWStjTjyragExxvVUpETYQAk/RAK16RpW5Mk+lUYNunhuQ+XuZTCFvcYaOPR6X5rX9idgHwW6xT1/Iv3MVW4GaUFoLmHwyBRpqp7RhjEIjwVjZR0dNg9HA8NY5grBMfNRnzUdcd9QwCNeWRgg6xWjvcD3b26M5JcH4oqZTHnYGD3d1so6oWdXenz1mPRRgfRPxdijlgYtxihPQ3KpegcmY+gaDkKxo1lEr4GdZwYKkybB5HGa23CcqUr9ysLt+LItY9w6jWFhOdJM2/AeLds2Rm6EBw4e3YuA7Cok+/wNFwzbmdt7vDtkDOFKujzti2SE9oxxn2aWpTt5vgeqt05p3xgNByPAYaM2KwTdfTKhrT0Lzx210NVdh1NCIWInfk/+EOniSMum1o1BRHgMo2Ulfmo9RPoek4fTsgG/6zJU+iZqTtFN9EIxt79LgVsIC7Y7CPSMQO1XHTOG0TMOBA5BUVX7xqijObS73QRSUoCDrYuMuYUxZNkG1RdUUfSscTj8Vw88w4yHjfGotGMMNYD67Sbh84xxLM7ZIrPJw3TqjE7aRJyD4yinKs1m2WcVygd55n4aSfLThsMdp1ethbyWNEoY5LTrSULhk9CKczRBW7IJE627INaQgzdqipHoYgV770zJbXny5fyWJ2BGU3USH7p2g88uyherj8lkzPkuwzkvT8qc9/K5K7/diOmKIwYv/pp6NKF/txPBLn0xdLOx1GWOBpf3rIR/3+FYKklDpeTGPHk7x5+kvk6KBqxopHDAXMkSZWNeQHhADfKivBA41hdZxuruuU/gt3IJ5ufQdHHpU/gEBMA/1aB97uzHrHGL4BGRC86Eqw764g8DR8Iv/oxJiVXs88Dofv0wNfoQbvCGgliMGTwDwR9f4MIxbqY5iyjgvJuFwQPnKBOBwDm4Kh8vY9Mvfoi/v38I16Xw0L5zNGTNQx/S2HPSLqKGE/Dz6+Dk8BbW5N0hOUNQvs6CgnN2FhWct7Ow4Nyd5QTn7ywwOIdHeTrcbaww8V9X0WRM5ol2IocejfXZCKV5i6WeYmuP7jMypVLNMpULiC2mM5KsXMVm2cqFRZX7Il+5yMgSlitFrNykOMJUFYuC4yKJuYoTSNpyTd4ob4XaIpG5XKB8dOcgavIQ4RmI1/2/JiOWIt0vGkvm5qAO17Bj/lsYYLxfs98Q92XIogfK+QIXXozKkOECDCtEKcIwTfmiFKUYw/vT23IOsnBuJH79/PfV63h+gKPl5rXQ/+Ice2aKulQLOMw5UZn8VYBlNxdeWXrztwojLMH5iwHL8ObOkSZFHlahZr7RmnPoSMssh/WUVClNC5TIcYmQkzn2Q07ouFTYvJZFUHLHZUNO8NS4wZDZKdHjEiIne4/kHJQEcnmRE0EpMTKmaYUH+xjOQdw9Ggnv0Nfg7OeKxKi52C//rcK/F7pg0eRAHOIyXCtw/mRJ53gY3YEFGDQlBplFPAD9YzrHNUlQufTJSaqx/Mlwsspl0CdwDurrGnAg1PDm2HRFN69UXD4QDiu7t5EpHqOTKqGUP/hn54g+c3ZL6GW4FMLfRmRfj36GkgijlZJqh51D0EjJhL+rKMqLGDUiFEFrfTHapDluInfdLPxc9g/H5AlxWJYchzfW5Bv2t8ZdnFzhjZeeexXvfGYcm0pVbhg8RxnGTr/fz14FrqYyFneOsm0YM7y/6VqK13rk3TBGj8eNHGWoMxryzFr5tKeef7yUdfgzH9Nh53hsGu+hfO97cPDebnKMTtrmf1KQdtJJS4D/ACf1pRCRRDX9AAAAAElFTkSuQmCC",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,iVBORw0KGgoAAAANSUhEUgAAADUAAAAbCAYAAAGrR/egAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFxEAABYlAXDOav8AAAW+SURBVEhL3ZcJTJRHFIDX1tZ6NI02adPEVu2pYlsvWqFVY0mlVQubNrZqxC5WkVMBVxQUrSKiGGMFigIaDFFA8cSjWkWEpkKVAOsBTZQiKsgh4LHicn6d/f8FdqELiNKoX7I78978M2/e/DPvf6OgDcw0aqHG0Bjs7cGHmzLZt3itkKr1KonODCvTfuMKSyu2navE871xKK3flxr0dH5YE+aKERXi8eGrJbG5Y+EpGkQR+prRWAXHkZT/QdNTP9jFw/0iSnR12M+YTcjxEhSfqLAZPYVJfb8wPNVMx6dqRMc7vdADXnxeqna80/SpYGsnVZs6KUbqFQ0UP5Bl/TqkyFUhmK5KU6cK/V9NCfcTv5TkfOql0sHWFq/jN6R6I3Kn+jNS0fOV16HkD+ZOnkHdzb8knYurI7lSrZmO+2REpzq1zz3o9pKh3kzXGIueK9bDHdwOGBQyrYw1vhczu/aRaGUsO8SRsBMaxh0tFRZr6W+1TjKsVDuSuP8QM5aphNSAt72ChF2XSA0aS/j2WDY5jSfisk4awxytjDnNnyiVRZlxFGmPcLi0hkOzXyHrlqRm/syvhK0CekzTH9oKLOzDJH2mlzWHC6WqWUyMmV86o5YWB8CUthe/azaIGf43Y11jKDUIdpcZBJnHa+j672JEMWTvXtCrj1y/ekdqevwe1QhP+nQXI/cUcc+gEzx+Q39Gi6WrEuE4FU40R90Whtrepo9CK49C/cfiuf6CQdLguiNPlK3Pk/cgF6nsKC0MVeFnY0viuhmyeHEzJ69rKUyYh3doJOFrVCzNquKWZi+W6hjKuM3sZYHs3Z+Ire/Pch8zmBoqOsrXHkcpSd/JnnJIdFFQXguv2unTJEF9Dt9ZxXErPZroAll11k2F7RR7ek32lBVmMDFUcMARtyT9B7iSiaPicFN4iUXTMjM0UWqvzQ5jsF82aVFu3BVyqro/ycVSE4tdl8sVM5gYCv7Gi8uGek7EByhcDkv1kDkuzFrgzrf26yV518J++JwqpPScM46qeQQGTcfZW56MOYwMGV54m8Gz87TYDF3Hs2fokam/DUmroHtvWJfR5it+sp2qFsdgdzCoxC89R5wGEUqfE/H6mDhfmoOw5HvYKPLgCnFHMuLJdqpeTLZcxIXz2bAnVCRoItnWf+mGOEJCAqRdgmsina01fWtP/varyofNwonu/cBGhKi7JeA3UtyCXoaVp8RdVkTlFjwdZ6pa3MJLb0o3cZk6cUMVss4obzCifaeq8jgW5sGYKSoiW16qxHcwZc3nLNqXS/F9g6od6nQV5MaOIkrsqLquCeftO1WcvJYAtTU2fhFEuASQ1TQRsVoVB3BVjGZDShmVQpS0GX6op1swZPBQhip9CDxhSC11ZeT/tpoh7w6ij+ItBo+JJqNaHiznVyX244fz8QgLhlqsIPLQTf3oJsnLw9COUwWc8HHFZbQPSeXlaGJXYPnpQcSuFrOvJm+rBQqvQ+RrhXVtKg4WSpQbTiLilEzxPgJcp/HOrCT0L1JXepZEzx74psnNQsPVlJ2kiaSlib/9Ubo7o4q/YlA8PG069SB9JbPVdkyIEYdVUF+WRUqYkhF7RUSqzSR0wEcEpFSgT3PO+PZl7JoYTt+Q97m0yHUXiVcHMGFMPNfEVs2LW8WAbv6clp4QR+VCNM4/LhQ7IZiN638hJHwjnpPeYLjKmzCNaZh+GNpwSktG4AJWTfdhjziTjWgLM4i1HsbqLct52yKcrAdy9LkSZsWwz4LYkd04GQ3bPaZiabuIbZVCLE4jLnAYfaOLpNaGhjsc+UnBwMiLwpJM+Rl/HN4ciMOCnZyvNig7gXmn7uVyMOYYUQf+EWm0EfU6dFeSWbTED//UG9Qan/byZLZu8MPZeQ5znbawK0naqDIiQBSkRKH28UWd1HgHuYtm5VKWuLvjNMeJ+GwN6duTOXc8B0PW2inaDRRPI8+gU/AvCRLk8OxchHwAAAAASUVORK5CYII=",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>→</span>").concat(l.seeAlso," "):"",C=l.synonym?", syn. <span>→</span>".concat(l.synonym):"",E=l.antonym?", ant. <span>→</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})()));
|