@cu-mkp/editioncrafter 0.0.4
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/cjs/src/action/CommentActions.js +20 -0
- package/dist/cjs/src/action/DiplomaticActions.js +19 -0
- package/dist/cjs/src/action/DocumentActions.js +188 -0
- package/dist/cjs/src/action/GlossaryActions.js +20 -0
- package/dist/cjs/src/action/initialState/commentInitialState.js +13 -0
- package/dist/cjs/src/action/initialState/diplomaticInitialState.js +10 -0
- package/dist/cjs/src/action/initialState/documentInitialState.js +17 -0
- package/dist/cjs/src/action/initialState/glossaryInitialState.js +13 -0
- package/dist/cjs/src/action/rootReducer.js +30 -0
- package/dist/cjs/src/component/AlphabetLinks.js +76 -0
- package/dist/cjs/src/component/CustomizedTooltops.js +173 -0
- package/dist/cjs/src/component/DiploMatic.js +90 -0
- package/dist/cjs/src/component/DocumentView.js +427 -0
- package/dist/cjs/src/component/EditorComment.js +124 -0
- package/dist/cjs/src/component/ErrorBoundary.js +71 -0
- package/dist/cjs/src/component/FigureImage.js +82 -0
- package/dist/cjs/src/component/GlossaryView.js +166 -0
- package/dist/cjs/src/component/HelpPopper.js +83 -0
- package/dist/cjs/src/component/ImageGridView.js +193 -0
- package/dist/cjs/src/component/ImageView.js +125 -0
- package/dist/cjs/src/component/ImageZoomControl.js +67 -0
- package/dist/cjs/src/component/JumpToFolio.js +103 -0
- package/dist/cjs/src/component/Navigation.js +266 -0
- package/dist/cjs/src/component/Pagination.js +81 -0
- package/dist/cjs/src/component/RouteListener.js +66 -0
- package/dist/cjs/src/component/SeaDragonComponent.js +51 -0
- package/dist/cjs/src/component/SinglePaneView.js +46 -0
- package/dist/cjs/src/component/SplitPaneView.js +164 -0
- package/dist/cjs/src/component/TranscriptionView.js +147 -0
- package/dist/cjs/src/component/XMLView.js +154 -0
- package/dist/cjs/src/globals.d.ts +1 -0
- package/dist/cjs/src/hocs/withRouter.js +29 -0
- package/dist/cjs/src/icons/ByIcon.js +27 -0
- package/dist/cjs/src/icons/CcIcon.js +27 -0
- package/dist/cjs/src/icons/NcIcon.js +27 -0
- package/dist/cjs/src/icons/SaIcon.js +27 -0
- package/dist/cjs/src/icons/SideMenuIconLeft.js +49 -0
- package/dist/cjs/src/icons/SideMenuIconRight.js +49 -0
- package/dist/cjs/src/index.js +34 -0
- package/dist/cjs/src/lib/copyObject.js +11 -0
- package/dist/cjs/src/lib/registerServiceWorker.js +95 -0
- package/dist/cjs/src/model/DocumentHelper.js +17 -0
- package/dist/cjs/src/model/Folio.js +92 -0
- package/dist/cjs/src/model/ReduxStore.js +110 -0
- package/dist/cjs/src/model/folioLayout.js +416 -0
- package/dist/cjs/src/polyfills.js +212 -0
- package/dist/cjs/src/saga/RouteListenerSaga.js +198 -0
- package/dist/cjs/src/saga/rootSaga.js +23 -0
- package/dist/cjs/src/scss/_CETEIcean.scss +914 -0
- package/dist/cjs/src/scss/_base.scss +187 -0
- package/dist/cjs/src/scss/_diplomatic.scss +332 -0
- package/dist/cjs/src/scss/_globalNavigation.scss +34 -0
- package/dist/cjs/src/scss/_glossary.scss +105 -0
- package/dist/cjs/src/scss/_imageGridView.scss +60 -0
- package/dist/cjs/src/scss/_imageView.scss +16 -0
- package/dist/cjs/src/scss/_imageZoomControl.scss +51 -0
- package/dist/cjs/src/scss/_jumpbox.scss +42 -0
- package/dist/cjs/src/scss/_navigation.scss +135 -0
- package/dist/cjs/src/scss/_pagination.scss +36 -0
- package/dist/cjs/src/scss/_spinner.scss +60 -0
- package/dist/cjs/src/scss/_splitPaneView.scss +35 -0
- package/dist/cjs/src/scss/_thumbnails.scss +17 -0
- package/dist/cjs/src/scss/_transcriptView.scss +178 -0
- package/dist/cjs/src/scss/_watermark.scss +19 -0
- package/dist/cjs/src/scss/_xmlView.scss +25 -0
- package/dist/cjs/src/scss/editioncrafter.scss +109 -0
- package/dist/editioncrafter.css +2462 -0
- package/dist/editioncrafter.css.map +1 -0
- package/dist/editioncrafter.min.js +3 -0
- package/dist/editioncrafter.min.js.LICENSE.txt +125 -0
- package/dist/editioncrafter.min.js.map +1 -0
- package/dist/es/src/action/CommentActions.js +13 -0
- package/dist/es/src/action/DiplomaticActions.js +12 -0
- package/dist/es/src/action/DocumentActions.js +181 -0
- package/dist/es/src/action/GlossaryActions.js +13 -0
- package/dist/es/src/action/initialState/commentInitialState.js +7 -0
- package/dist/es/src/action/initialState/diplomaticInitialState.js +3 -0
- package/dist/es/src/action/initialState/documentInitialState.js +11 -0
- package/dist/es/src/action/initialState/glossaryInitialState.js +7 -0
- package/dist/es/src/action/rootReducer.js +23 -0
- package/dist/es/src/component/AlphabetLinks.js +67 -0
- package/dist/es/src/component/CustomizedTooltops.js +165 -0
- package/dist/es/src/component/DiploMatic.js +80 -0
- package/dist/es/src/component/DocumentView.js +417 -0
- package/dist/es/src/component/EditorComment.js +114 -0
- package/dist/es/src/component/ErrorBoundary.js +63 -0
- package/dist/es/src/component/FigureImage.js +74 -0
- package/dist/es/src/component/GlossaryView.js +156 -0
- package/dist/es/src/component/HelpPopper.js +75 -0
- package/dist/es/src/component/ImageGridView.js +185 -0
- package/dist/es/src/component/ImageView.js +115 -0
- package/dist/es/src/component/ImageZoomControl.js +60 -0
- package/dist/es/src/component/JumpToFolio.js +95 -0
- package/dist/es/src/component/Navigation.js +256 -0
- package/dist/es/src/component/Pagination.js +73 -0
- package/dist/es/src/component/RouteListener.js +58 -0
- package/dist/es/src/component/SeaDragonComponent.js +42 -0
- package/dist/es/src/component/SinglePaneView.js +37 -0
- package/dist/es/src/component/SplitPaneView.js +155 -0
- package/dist/es/src/component/TranscriptionView.js +137 -0
- package/dist/es/src/component/XMLView.js +144 -0
- package/dist/es/src/globals.d.ts +1 -0
- package/dist/es/src/hocs/withRouter.js +22 -0
- package/dist/es/src/icons/ByIcon.js +18 -0
- package/dist/es/src/icons/CcIcon.js +18 -0
- package/dist/es/src/icons/NcIcon.js +18 -0
- package/dist/es/src/icons/SaIcon.js +18 -0
- package/dist/es/src/icons/SideMenuIconLeft.js +40 -0
- package/dist/es/src/icons/SideMenuIconRight.js +40 -0
- package/dist/es/src/index.js +27 -0
- package/dist/es/src/lib/copyObject.js +4 -0
- package/dist/es/src/lib/registerServiceWorker.js +88 -0
- package/dist/es/src/model/DocumentHelper.js +10 -0
- package/dist/es/src/model/Folio.js +85 -0
- package/dist/es/src/model/ReduxStore.js +101 -0
- package/dist/es/src/model/folioLayout.js +407 -0
- package/dist/es/src/polyfills.js +216 -0
- package/dist/es/src/saga/RouteListenerSaga.js +191 -0
- package/dist/es/src/saga/rootSaga.js +16 -0
- package/dist/es/src/scss/_CETEIcean.scss +914 -0
- package/dist/es/src/scss/_base.scss +187 -0
- package/dist/es/src/scss/_diplomatic.scss +332 -0
- package/dist/es/src/scss/_globalNavigation.scss +34 -0
- package/dist/es/src/scss/_glossary.scss +105 -0
- package/dist/es/src/scss/_imageGridView.scss +60 -0
- package/dist/es/src/scss/_imageView.scss +16 -0
- package/dist/es/src/scss/_imageZoomControl.scss +51 -0
- package/dist/es/src/scss/_jumpbox.scss +42 -0
- package/dist/es/src/scss/_navigation.scss +135 -0
- package/dist/es/src/scss/_pagination.scss +36 -0
- package/dist/es/src/scss/_spinner.scss +60 -0
- package/dist/es/src/scss/_splitPaneView.scss +35 -0
- package/dist/es/src/scss/_thumbnails.scss +17 -0
- package/dist/es/src/scss/_transcriptView.scss +178 -0
- package/dist/es/src/scss/_watermark.scss +19 -0
- package/dist/es/src/scss/_xmlView.scss +25 -0
- package/dist/es/src/scss/editioncrafter.scss +109 -0
- package/package.json +119 -0
|
@@ -0,0 +1,3 @@
|
|
|
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
|