@r2u/javascript-ar-sdk 6.15.0 → 6.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,432 +0,0 @@
1
- /*! For license information please see vendors.c50763e92b296ddf87d8.bundle.js.LICENSE.txt */
2
- (self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[10],{5865:function(e,t,n){var r,o,i,a;self,e.exports=(r=n(7294),o=n(3935),i=n(1752),a=n(9864),function(){"use strict";var e,t,n,s,c={8156:function(e){e.exports=r},7111:function(e){e.exports=o},3238:function(e){e.exports=i},2622:function(e){e.exports=a}},l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}};return c[e].call(n.exports,n,n.exports,u),n.loaded=!0,n.exports}u.m=c,u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},u.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);u.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){i[e]=function(){return n[e]}}));return i.default=function(){return n},u.d(o,i),o},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.f={},u.e=function(e){return Promise.all(Object.keys(u.f).reduce((function(t,n){return u.f[n](e,t),t}),[]))},u.u=function(e){return{216:"vendors",954:"webXRSession"}[e]+".bundle.js"},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},s="@r2u/react-ar-components:",u.l=function(e,t,r,o){if(n[e])n[e].push(t);else{var i,a;if(void 0!==r)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var d=c[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==s+r){i=d;break}}i||(a=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.setAttribute("data-webpack",s+r),i.src=e),n[e]=[t];var f=function(t,r){i.onerror=i.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((function(e){return e(r)})),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),a&&document.head.appendChild(i)}},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},u.p="https://unpkg.com/@r2u/react-ar-components@5.4.15/dist/",function(){var e={179:0};u.f.j=function(t,n){var r=u.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,o){r=e[t]=[n,o]}));n.push(r[2]=o);var i=u.p+u.u(t),a=new Error;u.l(i,(function(n){if(u.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=function(t,n){var r,o,i=n[0],a=n[1],s=n[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(r in a)u.o(a,r)&&(u.m[r]=a[r]);s&&s(u)}for(t&&t(n);c<i.length;c++)o=i[c],u.o(e,o)&&e[o]&&e[o][0](),e[i[c]]=0},n=self.webpackChunk_r2u_react_ar_components=self.webpackChunk_r2u_react_ar_components||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var d={};return function(){u.r(d),u.d(d,{ModelViewer:function(){return M},WebXREvents:function(){return E},activateAR:function(){return C},activateWebXR:function(){return z},canActivateAR:function(){return D}});var e=u(8156),t=u.n(e);let n=!1,r=[0,0,0],o=[0,0,0],i=0,a=0,s=0,c=0,l=0;const f=e=>{const t=e.getCameraOrbit(),{theta:n,phi:i,radius:a}=t,s=n-e.turntableRotation;l=.75*a/e.getBoundingClientRect().height,r=[-Math.cos(s),0,Math.sin(s)],o=[-Math.cos(i)*Math.sin(s),Math.sin(i),-Math.cos(i)*Math.cos(s)],e.interactionPrompt="none"},p=(e,t,n)=>{const i=(e-s)*l,a=(t-c)*l;s=e,c=t;const u=n.getCameraTarget();u.x+=i*r[0]+a*o[0],u.y+=i*r[1]+a*o[1],u.z+=i*r[2]+a*o[2],n.cameraTarget=`${u.x}m ${u.y}m ${u.z}m`,n.dispatchEvent(new CustomEvent("camera-change",{detail:{source:"user-interaction"}}))},h=(e,t)=>{if(n=!1,Math.abs(e.clientX-i)>2||Math.abs(e.clientY-a)>2)return;const r=t.getBoundingClientRect(),o=e.clientX-r.left,s=e.clientY-r.top,c=t.positionAndNormalFromPoint(o,s);t.cameraTarget=null===c?"auto auto auto":c.position.toString()},m=e=>{const t=e,r=t.clientX?t:t.changedTouches[0];Math.abs(r.clientX-i)<2&&Math.abs(r.clientY-a)<2&&h(r,e.target),n=!1},g=e=>{i=e.clientX,a=e.clientY;const t=2===e.button||e.ctrlKey||e.metaKey||e.shiftKey;n=t,t&&(s=e.clientX,c=e.clientY,f(e.target),e.stopPropagation())},v=e=>{i=e.touches[0].clientX,a=e.touches[0].clientY;const t=2===e.touches.length;if(n=t,!t)return;const{touches:r}=e;s=.5*(r[0].clientX+r[1].clientX),c=.5*(r[0].clientY+r[1].clientY),f(e.target)},b=e=>{n&&(p(e.clientX,e.clientY,e.target),e.stopPropagation())},y=e=>{if(!n||2!==e.touches.length)return;const{touches:t}=e,r=.5*(t[0].clientX+t[1].clientX),o=.5*(t[0].clientY+t[1].clientY);p(r,o,e.target)},w=e=>{h(e,e.target)},x=e=>{0===e.touches.length&&h(e.changedTouches[0],e.target)},O=e=>e.preventDefault();var M=t().forwardRef(((n,r)=>{const{src:o="",alt:i="",poster:a="",reveal:s="auto",ar:c=!1,arScale:l,cameraControls:u=!0,autoRotate:d=!0,interactionPromptThreshold:f=500,environmentImage:p="",exposure:h=.5,bloom:M=!1,shadowIntensity:A=1,shadowSoftness:S=0,autoPlay:j=!0,className:I,style:C,children:k,pan:N=!0,zoom:D=!0,componentDidMount:z=(()=>{}),onClick:E=(()=>{}),onSessionTimeCollect:T=(e=>{}),touchAction:P}=n,L=r,[R,Y]=(0,e.useState)(!1),{addPan:F,removePan:B}={addPan:e=>{e.addEventListener("pointerup",m,!0),e.addEventListener("mousedown",g,!0),e.addEventListener("mousemove",b,!0),e.addEventListener("mouseup",w,!0),e.addEventListener("touchstart",v,!0),e.addEventListener("touchmove",y,!0),e.addEventListener("touchend",x,!0),e.addEventListener("contextmenu",O,!0)},removePan:e=>{e.removeEventListener("pointerup",m,!0),e.removeEventListener("mousedown",g,!0),e.removeEventListener("mousemove",b,!0),e.removeEventListener("mouseup",w,!0),e.removeEventListener("touchstart",v,!0),e.removeEventListener("touchmove",y,!0),e.removeEventListener("touchend",x,!0),e.removeEventListener("contextmenu",O,!0)}},[Z,_]=(0,e.useState)();return(0,e.useEffect)((()=>{var e,t;R&&(null===(t=null===(e=L.current)||void 0===e?void 0:e.availableAnimations)||void 0===t?void 0:t.length)&&(L.current.interactionPrompt="none")}),[R]),(0,e.useEffect)((()=>{z(),L&&L.current&&(L.current.src=o,L.current.addEventListener("load",(()=>Y(!0))))}),[]),(0,e.useEffect)((()=>{L&&L.current&&(N?F(L.current):B(L.current))}),[L,N]),t().createElement("model-viewer",Object.assign({ref:L,class:I,style:C,alt:i,poster:a,reveal:s},c?{ar:""}:{},{"ar-scale":l},u?{"camera-controls":""}:{},D?{}:{"disable-zoom":""},d?{"auto-rotate":""}:{},{"interaction-prompt-threshold":f,"environment-image":p,exposure:h,bloom:M,"shadow-intensity":A,"shadow-softness":S},j?{autoplay:""}:{},{"data-js-focus-visible":!0,onClick:E,onPointerEnter:()=>{_(new Date)},onPointerLeave:()=>{if(Z){const e=(new Date).getTime()-Z.getTime();T(e)}},"touch-action":P}),k)}));null!=navigator.xr&&null!=self.XRSession&&null!=navigator.xr.isSessionSupported&&self.XRSession.prototype.requestHitTestSource,self.ResizeObserver,self.IntersectionObserver,(()=>{const e=navigator.userAgent||navigator.vendor||self.opera;let t=!1;(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)})(),/\bCrOS\b/.test(navigator.userAgent);const A=/android/i.test(navigator.userAgent),S=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!self.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;(()=>{const e=document.createElement("a");Boolean(e.relList&&e.relList.supports&&e.relList.supports("ar"))})(),/Safari\//.test(navigator.userAgent),/firefox/i.test(navigator.userAgent),/OculusBrowser/.test(navigator.userAgent),S&&/CriOS\//.test(navigator.userAgent);var j=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const I="#no-ar-fallback",C=e=>j(void 0,void 0,void 0,(function*(){const{hashFallback:t=I}=e,n=S?(({title:e,price:t,usdz:n,scale:r="fixed",callToAction:o,pdpUrl:i})=>{const a=new URL(n);"fixed"===r&&a.searchParams.set("allowsContentScaling","0"),i&&a.searchParams.set("canonicalWebPageURL",i);let s=a.toString().replace("?","#");if(o){const{text:n}=o;s+=`&custom=https://sdk.r2u.io/ar-components/call-to-action/banner.html?params=${encodeURIComponent(encodeURIComponent(JSON.stringify({title:e,price:t,text:n})))}`}return s})(e):A?(({glb:e="",title:t,sound:n,link:r,shareText:o,mode:i="ar_only",placement:a="floor",disableOcclusion:s=!0,scale:c="fixed",hashFallback:l=I})=>{const u=window.location.toString(),d=new URL(u),f=new URLSearchParams("");return d.hash=l,f.set("file",e),i&&f.set("mode",i),s&&f.set("disable_occlusion","true"),"fixed"===c&&f.set("resizable","false"),"wall"===a&&f.set("enable_vertical_placement","true"),n&&f.set("sound",n),r&&f.set("link",r),t&&f.set("title",t),o&&f.set("share_text",o),`intent://arvr.google.com/scene-viewer/1.2?${f.toString()}#Intent;scheme=https;package=com.google.ar.core;action=android.intent.action.VIEW;S.browser_fallback_url=${encodeURIComponent(d.toString())};end;`})(e):"";if(!n)return void(window.location.hash=t);if(S){const e=document.createElement("a");if(e.relList&&e.relList.supports&&!e.relList.supports("ar")&&!(()=>{const{userAgent:e}=window.navigator,t=e.indexOf("OS "),n=(e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1)&&t>-1?window.Number(e.slice(t+3,t+7).replace("_",".")):0;return!!e.match("CriOS")&&n>16})())return void(window.location.hash=t)}const r=document.createElement("a");document.body.appendChild(r);const o=document.createElement("img");r.setAttribute("rel","ar"),r.appendChild(o),r.setAttribute("href",n),r.addEventListener("click",(e=>e.stopPropagation())),r.addEventListener("message",(t=>{"_apple_ar_quicklook_button_tapped"===t.data&&e.callToAction&&e.callToAction.onClick()}),!1),r.click(),r.removeChild(o)}));var k=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const N=e=>{document.dispatchEvent(new CustomEvent("r2u-webxr-close"))},D=()=>k(void 0,void 0,void 0,(function*(){return!!(navigator&&navigator.xr&&navigator.xr.isSessionSupported&&(yield navigator.xr.isSessionSupported("immersive-ar")))})),z=({model:e,beforeClose:t=N,language:n="en",callToAction:r})=>k(void 0,void 0,void 0,(function*(){const{init:o}=yield Promise.all([u.e(216),u.e(954)]).then(u.bind(u,6504));yield o({language:n});const i=document.createElement("div");document.body.appendChild(i);const{ARSession:a}=yield Promise.all([u.e(216),u.e(954)]).then(u.bind(u,3370)),s=new a(i,e,t,r);try{if(!(yield D()))throw document.dispatchEvent(new CustomEvent("r2u-webxr-not-compatible")),new Error("WebXR not supported, falling back to Scene-Viewer");document.dispatchEvent(new CustomEvent("r2u-webxr-compatible")),yield s.enterAR(),document.dispatchEvent(new CustomEvent("r2u-webxr-session-start"))}catch(t){document.dispatchEvent(new CustomEvent("r2u-webxr-fallback-to-sceneviewer")),console.warn("Error while trying to present AR with WebXR"),console.error(t),yield s.endSession(),document.body.removeChild(i),C({glb:e.glb,scale:e.resizable?"resizable":"fixed",placement:e.placement,link:e.url,title:e.name})}}));var E;!function(e){e.r2uWebxrSessionStart="r2u-webxr-session-start",e.r2uWebxrSessionEnd="r2u-webxr-session-end",e.r2uWebxrNotCompatible="r2u-webxr-not-compatible",e.r2uWebxrCompatible="r2u-webxr-compatible",e.r2uWebxrFallbackToSceneviewer="r2u-webxr-fallback-to-sceneviewer",e.r2uWebxrPlaneMapped="r2u-webxr-plane-mapped",e.r2uWebxrObjectPlaced="r2u-webxr-object-placed",e.r2uWebxrShare="r2u-webxr-share",e.r2uWebxrReset="r2u-webxr-reset",e.r2uWebxrExit="r2u-webxr-exit",e.r2uWebxrCallToAction="r2u-webxr-call-to-action",e.r2uWebxrTranslating="r2u-webxr-translating",e.r2uWebxrRotating="r2u-webxr-rotating",e.r2uWebxrScaling="r2u-webxr-scaling",e.r2uWebxrNone="r2u-webxr-none",e.r2uWebxrShowTranslatingInstructions="r2u-webxr-show-translating-instructions",e.r2uWebxrShowRotatingInstructions="r2u-webxr-show-rotating-instructions"}(E||(E={}))}(),d}())},1841:function(e,t,n){var r,o=n(4155);self,r=e=>(()=>{var t,n,r={58:(e,t,n)=>{"use strict";var r=n(594),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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 c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=c(t),m=c(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var b=f(n,v);try{l(t,v,b)}catch(e){}}}}return t}},516:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,c=o(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))n.call(a,u)&&(c[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(c[s[d]]=a[s[d]])}}return c}},697:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=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 u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case g:case m:case c:return e;default:return t}}case o:return t}}}function O(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return O(e)||x(e)===u},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},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===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},594:(e,t,n)=>{"use strict";e.exports=n(697)},94:(e,t,n)=>{"use strict";n(516);var r=n(156),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,i={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:a.current}}t.jsx=l,t.jsxs=l},512:(e,t,n)=>{"use strict";e.exports=n(94)},7:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(o=n?n.call(r,u,d,l):void 0)||void 0===o&&u!==d)return!1}return!0}},156:t=>{"use strict";t.exports=e}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.m=r,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>167===e?"vendors.26f40ed37c2955a0b8e1.bundle.js":628===e?"threeExperience.bundle.js":27===e?"vendors.46242851acce02152166.bundle.js":322===e?"dracoCompress.bundle.js":void 0,a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},n="@r2u/viewer:",a.l=(e,r,o,i)=>{if(t[e])t[e].push(r);else{var s,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+o){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",n+o),s.src=e),t[e]=[r];var f=(n,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),n)return n(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.p="https://unpkg.com/@r2u/viewer@1.6.0/dist/",(()=>{var e={179:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,c]=n,l=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);c&&c(a)}for(t&&t(n);l<i.length;l++)o=i[l],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunk_r2u_viewer=self.webpackChunk_r2u_viewer||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var s={};return(()=>{"use strict";a.r(s),a.d(s,{default:()=>pt});var e=a(512),t=a(156),n=a.n(t);const r="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iNjkiIHZpZXdCb3g9IjAgMCA3MCA2OSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE4Ml85NDcpIj4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xODJfOTQ3KSI+CjxwYXRoIGQ9Ik01NC4wNDU5IDQwLjgzNjNMNDEuMTQyNSAzNC42MzJDNDAuNjU5NCAzNC40Mzk4IDQwLjE0NzggMzQuMzMgMzkuNjA3OCAzNC4zM0MzOC40MTQ4IDM0LjMzIDM3LjQ0NzcgMzMuMzYyOSAzNy40NDc3IDMyLjE3VjE3Ljg1ODNDMzcuNDQ3NyAxNS41Nzk3IDM1LjU0MzUgMTMuNzQwNCAzMy4xODQ1IDEzLjc0MDRDMzAuODI1NSAxMy43NDA0IDI4LjkyMTMgMTUuNTc5NyAyOC45MjEzIDE3Ljg1ODNWMzcuNTU3OEMyOC45MjEzIDQyLjYxNDggMjQuMjg3OCA0Ni40MDMxIDE5LjMzMTYgNDUuMzk4MkwxOS4xNzI3IDQ1LjM2NkMxOC45NDUzIDQ1LjMzODYgMTguNzQ2NCA0NS4yODM3IDE4LjQ5MDYgNDUuMjgzN0MxNy42MDk1IDQ1LjI4MzcgMTYuODEzNyA0NS42NDA2IDE2LjI0NTMgNDYuMTg5NkMxNS4wMTU3IDQ3LjM5MjMgMTUuMDIxOSA0OS4zNzI5IDE2LjI1OTEgNTAuNTY3OUwyOC4wNDAyIDYxLjk0NzVDMjguODA3NiA2Mi42ODg4IDI5Ljg4NzYgNjMuMTU1NSAzMS4wNTI5IDYzLjE1NTVINTAuMzUxMUM1Mi40ODI3IDYzLjE1NTUgNTQuMTMxMiA2MS42NDU2IDU0LjQ0MzggNTkuNjQxNUw1Ni41NzU0IDQ1LjE3MzlDNTYuNjAzOCA0NC45ODE3IDU2LjYzMjMgNDQuNzg5NSA1Ni42MzIzIDQ0LjYyNDhDNTYuNjMyMyA0Mi45MjI3IDU1LjU1MjIgNDEuNDQwMyA1NC4wNDU5IDQwLjgzNjNaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjAuNzYxOCAxOS44MjYzQzIxLjM5MTUgMjQuMTk1NCAyNi4xMDUyIDIyLjQxMjYgMjYuMTA1MiAxNy45OTgyQzI2LjEwNTIgMTQuMTY2OCAyOS4xNzA1IDExLjA1NzMgMzIuOTQ3NSAxMS4wNTczQzM2LjcyNDQgMTEuMDU3MyAzOS43ODk3IDE0LjE2NjggMzkuNzg5NyAxNy45OTgyQzM5Ljc4OTcgMjIuNDEyNiA0NC41MDM0IDI0LjE5NTQgNDUuMTMzMSAxOS44MjYzQzQ1LjIxOTEgMTkuMjI5OCA0NS4yNjM2IDE4LjYxOTQgNDUuMjYzNiAxNy45OTgyQzQ1LjI2MzYgMTEuMDg1IDM5Ljc2MjQgNS41MDQ1MiAzMi45NDc1IDUuNTA0NTJDMjYuMTMyNSA1LjUwNDUyIDIwLjYzMTMgMTEuMDg1IDIwLjYzMTMgMTcuOTk4MkMyMC42MzEzIDE4LjYxOTQgMjAuNjc1OCAxOS4yMjk4IDIwLjc2MTggMTkuODI2M1oiIGZpbGw9IiNEREREREQiLz4KPC9nPgo8L2c+CjxkZWZzPgo8ZmlsdGVyIGlkPSJmaWx0ZXIwX2RfMTgyXzk0NyIgeD0iMTIuMzI3MSIgeT0iMi41MDQ1MiIgd2lkdGg9IjUxLjMwNTIiIGhlaWdodD0iNjcuNjUxIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHg9IjIiIGR5PSIyIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIuNSIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzE4Ml85NDciLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMTgyXzk0NyIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xODJfOTQ3Ij4KPHJlY3Qgd2lkdGg9IjcwIiBoZWlnaHQ9IjY4LjgwNjgiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";var i=a(594),c=a(7),l=a.n(c);const u=function(e){function t(e,r,c,l,f){for(var p,h,m,g,w,O=0,M=0,A=0,S=0,j=0,z=0,T=m=p=0,L=0,R=0,Y=0,F=0,B=c.length,Z=B-1,_="",U="",$="",H="";L<B;){if(h=c.charCodeAt(L),L===Z&&0!==M+S+A+O&&(0!==M&&(h=47===M?10:47),S=A=O=0,B++,Z++),0===M+S+A+O){if(L===Z&&(0<R&&(_=_.replace(d,"")),0<_.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:_+=c.charAt(L)}h=59}switch(h){case 123:for(p=(_=_.trim()).charCodeAt(0),m=1,F=++L;L<B;){switch(h=c.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(L+1)){case 42:case 47:e:{for(T=L+1;T<Z;++T)switch(c.charCodeAt(T)){case 47:if(42===h&&42===c.charCodeAt(T-1)&&L+2!==T){L=T+1;break e}break;case 10:if(47===h){L=T+1;break e}}L=T}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<Z&&c.charCodeAt(L)!==h;);}if(0===m)break;L++}if(m=c.substring(F,L),0===p&&(p=(_=_.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<R&&(_=_.replace(d,"")),h=_.charCodeAt(1)){case 100:case 109:case 115:case 45:R=r;break;default:R=D}if(F=(m=t(r,R,m,h,f+1)).length,0<E&&(w=s(3,m,R=n(D,_,Y),r,C,I,F,h,f,l),_=R.join(""),void 0!==w&&0===(F=(m=w.trim()).length)&&(h=0,m="")),0<F)switch(h){case 115:_=_.replace(x,a);case 100:case 109:case 45:m=_+"{"+m+"}";break;case 107:m=(_=_.replace(v,"$1 $2"))+"{"+m+"}",m=1===N||2===N&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=_+m,112===l&&(U+=m,m="")}else m=""}else m=t(r,n(r,_,Y),m,l,f+1);$+=m,m=Y=R=T=p=0,_="",h=c.charCodeAt(++L);break;case 125:case 59:if(1<(F=(_=(0<R?_.replace(d,""):_).trim()).length))switch(0===T&&(p=_.charCodeAt(0),45===p||96<p&&123>p)&&(F=(_=_.replace(" ",":")).length),0<E&&void 0!==(w=s(1,_,r,e,C,I,U.length,l,f,l))&&0===(F=(_=w.trim()).length)&&(_="\0\0"),p=_.charCodeAt(0),h=_.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=_+c.charAt(L);break}default:58!==_.charCodeAt(F-1)&&(U+=o(_,p,h,_.charCodeAt(2)))}Y=R=T=p=0,_="",h=c.charCodeAt(++L)}}switch(h){case 13:case 10:47===M?M=0:0===1+p&&107!==l&&0<_.length&&(R=1,_+="\0"),0<E*P&&s(0,_,r,e,C,I,U.length,l,f,l),I=1,C++;break;case 59:case 125:if(0===M+S+A+O){I++;break}default:switch(I++,g=c.charAt(L),h){case 9:case 32:if(0===S+O+M)switch(j){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+M+O&&(R=Y=1,g="\f"+g);break;case 108:if(0===S+M+O+k&&0<T)switch(L-T){case 2:112===j&&58===c.charCodeAt(L-3)&&(k=j);case 8:111===z&&(k=z)}break;case 58:0===S+M+O&&(T=L);break;case 44:0===M+A+S+O&&(R=1,g+="\r");break;case 34:case 39:0===M&&(S=S===h?0:0===S?h:S);break;case 91:0===S+M+A&&O++;break;case 93:0===S+M+A&&O--;break;case 41:0===S+M+O&&A--;break;case 40:0===S+M+O&&(0===p&&(2*j+3*z==533||(p=1)),A++);break;case 64:0===M+A+S+O+T+m&&(m=1);break;case 42:case 47:if(!(0<S+O+A))switch(M){case 0:switch(2*h+3*c.charCodeAt(L+1)){case 235:M=47;break;case 220:F=L,M=42}break;case 42:47===h&&42===j&&F+2!==L&&(33===c.charCodeAt(F+2)&&(U+=c.substring(F,L+1)),g="",M=0)}}0===M&&(_+=g)}z=j,j=h,L++}if(0<(F=U.length)){if(R=r,0<E&&void 0!==(w=s(2,U,R,e,C,I,F,l,f,l))&&0===(U=w).length)return H+U+$;if(U=R.join(",")+"{"+U+"}",0!=N*k){switch(2!==N||i(U,2)||(k=0),k){case 111:U=U.replace(y,":-moz-$1")+U;break;case 112:U=U.replace(b,"::-webkit-input-$1")+U.replace(b,"::-moz-$1")+U.replace(b,":-ms-input-$1")+U}k=0}}return H+U+$}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[c++]=r(e[l]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===N||2===N&&i(c,1)?"-webkit-"+c+c:c}if(0===N||2===N&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(j,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(w,"tb");break;case 232:c=a.replace(w,"tb-rl");break;case 220:c=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(M,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(M,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(A,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,c,u){for(var d,f=0,p=t;f<E;++f)switch(d=z[f].call(l,e,p,n,r,o,i,a,s,c,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?N=1:(N=2,T=e):N=0),c}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<E){var o=s(-1,n,r,r,C,I,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(D,r,n,0,0);return 0<E&&void 0!==(o=s(-2,i,r,r,C,I,i.length,0,0,0))&&(i=o),k=0,I=C=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,M=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,j=/([^-])(image-set\()/,I=1,C=1,k=0,N=1,D=[],z=[],E=0,T=null,P=0;return l.use=function e(t){switch(t){case void 0:case null:E=z.length=0;break;default:if("function"==typeof t)z[E++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else P=0|!!t}return e},l.set=c,void 0!==e&&c(e),l},d={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var f=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const p=(h={},function(e){return void 0===h[e]&&(h[e]=(t=e,f.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91)),h[e];var t});var h,m=a(58),g=a.n(m);function v(){return(v=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}).apply(this,arguments)}var b=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},y=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,i.typeOf)(e)},w=Object.freeze([]),x=Object.freeze({});function O(e){return"function"==typeof e}function M(e){return e.displayName||e.name||"Component"}function A(e){return e&&"string"==typeof e.styledComponentId}var S=void 0!==o&&(o.env.REACT_APP_SC_ATTR||o.env.SC_ATTR)||"data-styled",j="undefined"!=typeof window&&"HTMLElement"in window,I=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==o&&void 0!==o.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==o.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==o.env.REACT_APP_SC_DISABLE_SPEEDY&&o.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==o&&void 0!==o.env.SC_DISABLE_SPEEDY&&""!==o.env.SC_DISABLE_SPEEDY&&"false"!==o.env.SC_DISABLE_SPEEDY&&o.env.SC_DISABLE_SPEEDY);function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var k=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),N=new Map,D=new Map,z=1,E=function(e){if(N.has(e))return N.get(e);for(;D.has(z);)z++;var t=z++;return N.set(e,t),D.set(t,e),t},T=function(e){return D.get(e)},P=function(e,t){t>=z&&(z=t+1),N.set(e,t),D.set(t,e)},L="style["+S+'][data-styled-version="5.3.3"]',R=new RegExp("^"+S+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Y=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},F=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(R);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(P(l,c),Y(e,l,s[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(a)}}},B=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Z=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(S))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(S,"active"),r.setAttribute("data-styled-version","5.3.3");var a=B();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},_=function(){function e(e){var t=this.element=Z(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}C(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),U=function(){function e(e){var t=this.element=Z(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),$=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),H=j,W={isServer:!j,useCSSOMInjection:!I},G=function(){function e(e,t,n){void 0===e&&(e=x),void 0===t&&(t={}),this.options=v({},W,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&j&&H&&(H=!1,function(e){for(var t=document.querySelectorAll(L),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(S)&&(F(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return E(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(v({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new $(o):r?new _(o):new U(o),new k(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(E(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(E(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(E(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=T(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=S+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),Q=/(a)(d)/gi,X=function(e){return String.fromCharCode(e+(e>25?39:97))};function V(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=X(t%52)+n;return(X(t%52)+n).replace(Q,"$1-$2")}var J=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},K=function(e){return J(5381,e)};function q(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(O(n)&&!A(n))return!1}return!0}var ee=K("5.3.3"),te=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&q(e),this.componentId=t,this.baseHash=J(ee,t),this.baseStyle=n,G.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=be(this.rules,e,t,n).join(""),a=V(J(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=J(this.baseHash,n.hash),u="",d=0;d<c;d++){var f=this.rules[d];if("string"==typeof f)u+=f;else if(f){var p=be(f,e,t,n),h=Array.isArray(p)?p.join(""):p;l=J(l,h+d),u+=h}}if(u){var m=V(l>>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}o.push(m)}}return o.join(" ")},e}(),ne=/^\s*\/\/.*$/gm,re=[":","[",".","#"];function oe(e){var t,n,r,o,i=void 0===e?x:e,a=i.options,s=void 0===a?x:a,c=i.plugins,l=void 0===c?w:c,d=new u(s),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,c,l,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,r,i){return 0===r&&-1!==re.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var c=e.replace(ne,""),l=i&&a?a+" "+i+" { "+c+" }":c;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d(a||!i?"":i,l)}return d.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=l.length?l.reduce((function(e,t){return t.name||C(15),J(e,t.name)}),5381).toString():"",m}var ie=n().createContext(),ae=(ie.Consumer,n().createContext()),se=(ae.Consumer,new G),ce=oe();function le(){return(0,t.useContext)(ie)||se}function ue(e){var r=(0,t.useState)(e.stylisPlugins),o=r[0],i=r[1],a=le(),s=(0,t.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,t.useMemo)((function(){return oe({options:{prefix:!e.disableVendorPrefixes},plugins:o})}),[e.disableVendorPrefixes,o]);return(0,t.useEffect)((function(){l()(o,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]),n().createElement(ie.Provider,{value:s},n().createElement(ae.Provider,{value:c},e.children))}var de=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ce);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return C(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ce),this.name+e.hash},e}(),fe=/([A-Z])/,pe=/([A-Z])/g,he=/^ms-/,me=function(e){return"-"+e.toLowerCase()};function ge(e){return fe.test(e)?e.replace(pe,me).replace(he,"-ms-"):e}var ve=function(e){return null==e||!1===e||""===e};function be(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=be(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ve(e)?"":A(e)?"."+e.styledComponentId:O(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:be(e(t),t,n,r):e instanceof de?n?(e.inject(n,r),e.getName(r)):e:y(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ve(t[a])&&(Array.isArray(t[a])&&t[a].isCss||O(t[a])?i.push(ge(a)+":",t[a],";"):y(t[a])?i.push.apply(i,e(t[a],a)):i.push(ge(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in d?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var c}var ye=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function we(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 O(e)||y(e)?ye(be(b(w,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ye(be(b(e,n)))}new Set;var xe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Oe=/(^-|-$)/g;function Me(e){return e.replace(xe,"-").replace(Oe,"")}function Ae(e){return"string"==typeof e&&!0}var Se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},je=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ie(e,t,n){var r=e[n];Se(t)&&Se(r)?Ce(r,t):e[n]=t}function Ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Se(a))for(var s in a)je(s)&&Ie(e,a[s],s)}return e}var ke=n().createContext();ke.Consumer;var Ne={};function De(e,r,o){var i=A(e),a=!Ae(e),s=r.attrs,c=void 0===s?w:s,l=r.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Me(e);Ne[n]=(Ne[n]||0)+1;var r=n+"-"+function(e){return V(K(e)>>>0)}("5.3.3"+n+Ne[n]);return t?t+"-"+r:r}(r.displayName,r.parentComponentId):l,d=r.displayName,f=void 0===d?function(e){return Ae(e)?"styled."+e:"Styled("+M(e)+")"}(e):d,h=r.displayName&&r.componentId?Me(r.displayName)+"-"+r.componentId:r.componentId||u,m=i&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,b=r.shouldForwardProp;i&&e.shouldForwardProp&&(b=r.shouldForwardProp?function(t,n,o){return e.shouldForwardProp(t,n,o)&&r.shouldForwardProp(t,n,o)}:e.shouldForwardProp);var y,S=new te(o,h,i?e.componentStyle:void 0),j=S.isStatic&&0===c.length,I=function(e,n){return function(e,n,r,o){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.shouldForwardProp,u=e.styledComponentId,d=e.target,f=function(e,t,n){void 0===e&&(e=x);var r=v({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in O(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(function(e,t,n){return void 0===n&&(n=x),e.theme!==n.theme&&e.theme||t||n.theme}(n,(0,t.useContext)(ke),s)||x,n,i),h=f[0],m=f[1],g=function(e,n,r,o){var i=le(),a=(0,t.useContext)(ae)||ce;return n?e.generateAndInjectStyles(x,i,a):e.generateAndInjectStyles(r,i,a)}(a,o,h),b=r,y=m.$as||n.$as||m.as||n.as||d,w=Ae(y),M=m!==n?v({},n,{},m):n,A={};for(var S in M)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?A.as=M[S]:(l?l(S,p,y):!w||p(S))&&(A[S]=M[S]));return n.style&&m.style!==n.style&&(A.style=v({},n.style,{},m.style)),A.className=Array.prototype.concat(c,u,g!==u?g:null,n.className,m.className).filter(Boolean).join(" "),A.ref=b,(0,t.createElement)(y,A)}(y,e,n,j)};return I.displayName=f,(y=n().forwardRef(I)).attrs=m,y.componentStyle=S,y.displayName=f,y.shouldForwardProp=b,y.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):w,y.styledComponentId=h,y.target=i?e.target:e,y.withComponent=function(e){var t=r.componentId,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["componentId"]),i=t&&t+"-"+(Ae(e)?e:Me(M(e)));return De(e,v({},n,{attrs:m,componentId:i}),o)},Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?Ce({},e.defaultProps,t):t}}),y.toString=function(){return"."+y.styledComponentId},a&&g()(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var ze,Ee=function(e){return function e(t,n,r){if(void 0===r&&(r=x),!(0,i.isValidElementType)(n))return C(1,String(n));var o=function(){return t(n,r,we.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,v({},r,{},o))},o.attrs=function(o){return e(t,n,v({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(De,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ee[e]=Ee(e)})),ze=function(e,t){this.rules=e,this.componentId=t,this.isStatic=q(e),G.registerId(this.componentId+1)}.prototype,ze.createStyles=function(e,t,n,r){var o=r(be(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},ze.removeStyles=function(e,t){t.clearRules(this.componentId+e)},ze.renderStyles=function(e,t,n,r){e>2&&G.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=B();return"<style "+[n&&'nonce="'+n+'"',S+'="true"','data-styled-version="5.3.3"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?C(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return C(2);var r=((t={})[S]="",t["data-styled-version"]="5.3.3",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=B();return o&&(r.nonce=o),[n().createElement("style",v({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new G({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?C(2):n().createElement(ue,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return C(3)}}();const Te=Ee,Pe=Te.div`
3
- position: absolute;
4
- top: 50%;
5
- left: 50%;
6
-
7
- width: 0 !important;
8
- height: 0 !important;
9
-
10
- transform: translate(-50%, -50%);
11
- transition: opacity 250ms, scale 250ms;
12
-
13
- user-select: none;
14
- `,Le=({visible:e,visibleOnOcclusion:t,opacityOnOcclusion:n=.3,effectOnOcclusion:r})=>!e&&t?we`
15
- opacity: ${n};
16
- `:((e,t)=>"scale"===t?(e=>we`
17
- transition: opacity 250ms, scale 250ms;
18
- scale: 0;
19
- pointer-events: none;
20
-
21
- ${e&&"scale: 1; pointer-events: unset;"}
22
- `)(e):(e=>we`
23
- transition: opacity 250ms, scale 250ms;
24
- opacity: 0;
25
- pointer-events: none;
26
-
27
- ${e&&"opacity: 1; pointer-events: unset;"}
28
- `)(e))(e,r),Re=Te.button`
29
- ${({visible:e,visibleOnOcclusion:t,opacityOnOcclusion:n,effectOnOcclusion:r})=>Le({visible:e,visibleOnOcclusion:t,opacityOnOcclusion:n,effectOnOcclusion:r})}
30
-
31
- &.r2u-hotspot {
32
- position: relative;
33
-
34
- min-width: 1.5rem;
35
- min-height: 1.5rem;
36
-
37
- aspect-ratio: 1;
38
-
39
- background: #ffffff;
40
- color: #000;
41
-
42
- border-radius: 50%;
43
- user-select: none;
44
-
45
- cursor: pointer;
46
-
47
- outline: none;
48
- border: none;
49
-
50
- &::before {
51
- content: '';
52
- position: absolute;
53
- outline: none;
54
-
55
- top: 50%;
56
- left: 50%;
57
- transform: translate(calc(-50%), calc(-50%));
58
-
59
- width: calc(100% + 0.5rem);
60
- height: calc(100% + 0.5rem);
61
-
62
- border: 1px solid #ffffff;
63
- border-radius: 50%;
64
-
65
- z-index: -1;
66
- }
67
-
68
- &:hover,
69
- &.r2u-hotspot-active {
70
- &::before {
71
- box-sizing: border-box;
72
- border: 0.3rem solid #003e58;
73
- }
74
- }
75
- }
76
- `,Ye=Te.div`
77
- ${({visible:e,visibleOnOcclusion:t,opacityOnOcclusion:n,effectOnOcclusion:r})=>Le({visible:e,visibleOnOcclusion:t,opacityOnOcclusion:n,effectOnOcclusion:r})}
78
-
79
- &:not(.r2u-hotspot-content-active) {
80
- opacity: 0 !important;
81
- pointer-events: none !important;
82
- }
83
-
84
- &.r2u-hotspot-content {
85
- position: relative;
86
- display: flex;
87
- flex-direction: column;
88
- align-items: center;
89
- padding: 1rem;
90
- gap: 1rem;
91
-
92
- min-width: max-content;
93
- margin-top: 1rem;
94
-
95
- background: #ffffff;
96
-
97
- border: 0.0625rem solid #dddddd;
98
- box-shadow: 0.375rem 0.375rem 1.25rem rgba(0, 0, 0, 0.25);
99
- border-radius: 1rem;
100
- }
101
- `,Fe=Te.div`
102
- ${({visible:e,visibleOnOcclusion:t,opacityOnOcclusion:n,effectOnOcclusion:r})=>Le({visible:e,visibleOnOcclusion:t,opacityOnOcclusion:n,effectOnOcclusion:r})}
103
-
104
- &.r2u-hotspot-tooltip-active {
105
- opacity: 0 !important;
106
- pointer-events: none !important;
107
- }
108
-
109
- &.r2u-hotspot-tooltip {
110
- position: absolute;
111
- display: flex;
112
- flex-direction: column;
113
- align-items: center;
114
- padding: 0.25rem 0.75rem;
115
-
116
- top: -0.75rem;
117
-
118
- transform: translate(calc(0%), calc(-100%));
119
-
120
- color: #f9f9f9;
121
- background: rgba(0, 0, 0, 0.55);
122
-
123
- box-shadow: 0.375rem 0.375rem 1.25rem rgba(0, 0, 0, 0.25);
124
- border-radius: 0.5rem;
125
-
126
- white-space: nowrap;
127
- }
128
- `,Be={value:"",defaultClass:"r2u-hotspot",visibleClass:"r2u-hotspot-visible",activeClass:"r2u-hotspot-active",visibleOnOcclusion:!0,opacityOnOcclusion:.3,effectOnOcclusion:"fade"},Ze={value:"",defaultClass:"r2u-hotspot-content",visibleClass:"r2u-hotspot-content-visible",activeClass:"r2u-hotspot-content-active",visibleOnOcclusion:!1,opacityOnOcclusion:.3,effectOnOcclusion:"fade"},_e={value:"",defaultClass:"r2u-hotspot-tooltip",visibleClass:"r2u-hotspot-tooltip-visible",activeClass:"r2u-hotspot-tooltip-active",visibleOnOcclusion:!1,opacityOnOcclusion:.3,effectOnOcclusion:"fade",hideOnFocus:!0},Ue=({id:n,focus:r,label:o,content:i,tooltip:a,onOutsideClickBehavior:s={focusOut:!0},hide:c=!1,onFocusDispatch:l=!0,onFocusOutDispatch:u=!0,onClick:d,onFocus:f,onFocusOut:p,onMouseEnter:h,onMouseLeave:m,changeFocus:g})=>{const v=(0,t.useRef)(null),[b,y]=(0,t.useState)(!1),{alreadyFocus:w}=(({focus:e})=>{const[n,r]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{e&&r(!0)}),[e]),{alreadyFocus:n}})({focus:r}),{visible:x}=(({ref:e,hide:n})=>{const[r,o]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{const t=new MutationObserver((()=>{var t;(null===(t=e.current)||void 0===t?void 0:t.classList.contains("visible"))?o(!0):o(!1)}));return n||t.observe(e.current,{attributes:!0}),()=>t.disconnect()}),[e,n]),{visible:r}})({ref:v,hide:c}),O=document.querySelector(".hotspots-container"),M=Object.assign(Object.assign({},Be),o),A=Object.assign(Object.assign({},Ze),i),S=Object.assign(Object.assign({},_e),a),j=(0,t.useCallback)((()=>{g(!r),d&&d(n)}),[r,d,g]),I=(0,t.useCallback)((e=>{e?h&&h(n):m&&m(n),y(e)}),[h,m,b]),C=e=>{if(O&&v.current){const t=O.contains(e.target),n=v.current.contains(e.target),o=s.focusOut;(!t&&o&&r||t&&!n&&r)&&g(!1)}};return(0,t.useEffect)((()=>(window.addEventListener("mousedown",C),()=>{window.removeEventListener("mousedown",C)})),[v]),(0,t.useEffect)((()=>{r&&f&&l&&f(n),!r&&p&&w&&u&&p(n)}),[r,l,u]),c?null:(0,e.jsxs)(Pe,Object.assign({id:n,ref:v},{children:[b&&S.value&&(!(null==S?void 0:S.hideOnFocus)||!r)&&(0,e.jsx)(Fe,Object.assign({visible:x,visibleOnOcclusion:S.visibleOnOcclusion,opacityOnOcclusion:S.opacityOnOcclusion,effectOnOcclusion:S.effectOnOcclusion,className:`${S.defaultClass}`.concat(r?` ${S.activeClass}`:"").concat(x?` ${S.visibleClass}`:""),dangerouslySetInnerHTML:"string"==typeof S.value?{__html:S.value}:void 0},{children:"string"!=typeof S.value?S.value:null}),void 0),(0,e.jsx)(Re,Object.assign({visible:x,visibleOnOcclusion:M.visibleOnOcclusion,opacityOnOcclusion:M.opacityOnOcclusion,effectOnOcclusion:M.effectOnOcclusion,className:`${M.defaultClass}`.concat(r?` ${M.activeClass}`:"").concat(x?` ${M.visibleClass}`:""),onClick:void 0,onMouseDown:j,onMouseEnter:()=>I(!0),onMouseLeave:()=>I(!1),dangerouslySetInnerHTML:"string"==typeof M.value?{__html:M.value}:void 0},{children:"string"!=typeof M.value?M.value:null}),void 0),A.value&&(0,e.jsx)(Ye,Object.assign({visible:x,visibleOnOcclusion:A.visibleOnOcclusion,opacityOnOcclusion:A.opacityOnOcclusion,effectOnOcclusion:A.effectOnOcclusion,className:`${A.defaultClass}`.concat(r?` ${A.activeClass}`:"").concat(x?` ${A.visibleClass}`:""),dangerouslySetInnerHTML:"string"==typeof A.value?{__html:A.value}:void 0},{children:"string"!=typeof A.value?A.value:null}),void 0)]}),void 0)};var $e=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},He=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const We=(0,t.createContext)({}),Ge=n().forwardRef((({glbSrc:n,exposure:r,hdri:o,noZoom:i,minZoom:a,maxZoom:s,initialZoom:c,backgroundColor:l,backgroundImage:u,sceneBackground:d,activeShadow:f,activeBakedShadow:p,shadowOffsetX:h,shadowOffsetY:m,shadowOffsetZ:g,shadowOpacity:v,shadowRadius:b,cameraOrbitSensitivity:y,minAzimuthalAngleRotation:w,maxAzimuthalAngleRotation:x,minPolarAngleRotation:O,maxPolarAngleRotation:M,maxDragX:A,minDragX:S,maxDragY:j,minDragY:I,maxDragZ:C,minDragZ:k,activeFog:N,fogColor:D,fogNear:z,fogFar:E,cameraNear:T,cameraFar:P,bloom:L,initialBloom:R,animationSelector:Y,enableBloomButton:F,bloomIntensity:B,bloomRadius:Z,bloomThreshold:_,initialAnimation:U,onLoad:$,children:H},W)=>{const[G,Q]=(0,t.useState)(),[X,V]=(0,t.useState)(L?R?"bloomOn":"bloomOff":"noBloom"),{renderHotspots:J,insertHotspotComponent:K,insertHotspotFull:q,updateHotspotFull:ee,removeHotspotFull:te,showHotspot:ne,hideHotspot:re,focusHotspot:oe,getActiveHotspotId:ie}=(n=>{const[r,o]=(0,t.useState)([]),[i,a]=(0,t.useState)(null),[s,c]=(0,t.useState)(null),[l,u]=(0,t.useState)(null),d=function(e){const n=(0,t.useRef)();return(0,t.useEffect)((()=>()=>{n.current=e}),[e]),n}(i),f=e=>{var t=$e(e,[]);const{id:n,focusOnInit:r}=Object.assign({},t);o((e=>{const o=e.concat(Object.assign({},t));return r&&a(n),o}))},p=e=>{var{id:t}=e,n=$e(e,["id"]);o((e=>{const r=e.find((e=>e.id===t));return e.filter((e=>e.id!==t)).concat(Object.assign(Object.assign({id:t},r),n))}))},h=e=>{o((t=>t.filter((t=>t.id!==e))))};return{hotspots:r,renderHotspots:()=>(0,e.jsx)("div",Object.assign({className:"hotspots-container"},{children:r.map((t=>{var{id:r,onFocus:o,onFocusOut:f,onFocusOutBehavior:p}=t,h=$e(t,["id","onFocus","onFocusOut","onFocusOutBehavior"]);return(0,e.jsx)(Ue,Object.assign({id:r,focus:i===r,onFocusDispatch:null===s,onFocusOutDispatch:s===r,onFocus:()=>{if(n&&null===d.current&&i&&(null==p?void 0:p.restoreCamera)){const e=Object.assign(Object.assign({},n.camera.controls.getCamera()),{near:void 0,far:void 0});e&&u(e)}o&&o(r),c(r)},onFocusOut:()=>{n&&null===i&&l&&(n.camera.controls.setCamera(l),u(null)),f&&f(r),c(null)},changeFocus:e=>{a((t=>e&&t!==r?r:e||t!==r?t:null))}},h),r)}))}),void 0),insertHotspotComponent:f,updateHotspotComponent:p,removeHotspotComponent:h,insertHotspotFull:e=>{var t,o,i,a,s,c,l,u,d=$e(e,[]);const{id:p}=Object.assign({},d);return n?r.find((e=>e.id===p))?null:(f(Object.assign(Object.assign({},d),{onFocus:e=>{d.onFocus&&d.onFocus(e),d.onFocusBehavior&&(d.onFocusBehavior.centerCameraAtHotspot&&n.centerCameraAtHotspot(d.id),d.onFocusBehavior.lookToHotspot&&n.lookToHotspot(d.id),d.onFocusBehavior.cameraSettings&&n.camera.controls.setCamera(Object.assign({},d.onFocusBehavior.cameraSettings)),d.onFocusBehavior.blockCamera&&n.camera.controls.setBlockCamera(!0))},onFocusOut:e=>{d.onFocusOut&&d.onFocusOut(e),d.onFocusBehavior&&d.onFocusBehavior.blockCamera&&n.camera.controls.setBlockCamera(!1)}})),n.insertHotspot(d.id,d.position,null===(o=null===(t=d.onFocusBehavior)||void 0===t?void 0:t.cameraSettings)||void 0===o?void 0:o.cameraTarget,null===(a=null===(i=d.onFocusBehavior)||void 0===i?void 0:i.cameraSettings)||void 0===a?void 0:a.polarAngle,null===(c=null===(s=d.onFocusBehavior)||void 0===s?void 0:s.cameraSettings)||void 0===c?void 0:c.azimuthalAngle,null===(u=null===(l=d.onFocusBehavior)||void 0===l?void 0:l.cameraSettings)||void 0===u?void 0:u.radius)):null},updateHotspotFull:e=>{var t,r,o,i,a,s,c,l,u=$e(e,[]);return n?(p(Object.assign(Object.assign({},u),{onFocus:e=>{u.onFocus&&u.onFocus(e),u.onFocusBehavior&&(u.onFocusBehavior.centerCameraAtHotspot&&n.centerCameraAtHotspot(u.id),u.onFocusBehavior.lookToHotspot&&n.lookToHotspot(u.id),u.onFocusBehavior.cameraSettings&&n.camera.controls.setCamera(Object.assign({},u.onFocusBehavior.cameraSettings)),u.onFocusBehavior.blockCamera&&n.camera.controls.setBlockCamera(!0))},onFocusOut:e=>{u.onFocusOut&&u.onFocusOut(e),u.onFocusBehavior&&u.onFocusBehavior.blockCamera&&n.camera.controls.setBlockCamera(!1)}})),n.updateHotspot(u.id,u.position,null===(r=null===(t=u.onFocusBehavior)||void 0===t?void 0:t.cameraSettings)||void 0===r?void 0:r.cameraTarget,null===(i=null===(o=u.onFocusBehavior)||void 0===o?void 0:o.cameraSettings)||void 0===i?void 0:i.polarAngle,null===(s=null===(a=u.onFocusBehavior)||void 0===a?void 0:a.cameraSettings)||void 0===s?void 0:s.azimuthalAngle,null===(l=null===(c=u.onFocusBehavior)||void 0===c?void 0:c.cameraSettings)||void 0===l?void 0:l.radius)):null},removeHotspotFull:e=>n?(h(e),n.deleteHotspot(e)):null,showHotspot:e=>{p({id:e,hide:!1})},hideHotspot:e=>{p({id:e,hide:!0})},focusHotspot:(e,t=!0,n=!1,o=!1)=>{const i=(e=>r.findIndex((({id:t})=>t===e)))(e);if(-1!==i)if(t){const t=r[i].onFocus;n||(r[i].onFocus=void 0),a(e),r[i].onFocus=t}else a((t=>t===e?null:t)),o&&(e=>{const t=r.find((t=>t.id===e));t&&t.onFocusOut&&t.onFocusOut(e)})(e)},getActiveHotspotId:()=>i}})(G);return(0,t.useImperativeHandle)(W,(()=>({insertModelNode:e=>{G&&G.insertModelNode(e)},insertSlotModelNode:e=>He(void 0,void 0,void 0,(function*(){return G?G.insertSlotModelNode(e):null})),deleteModelNode:e=>{G&&G.deleteModelNode(e)},updateBloom:e=>{V(e?"bloomOn":"bloomOff")},getAllSlotsMaterials:()=>G?G.getAllSlotsMaterials():null,setMaterial:(...e)=>{G&&G.setMaterial(...e)},getAllSlotsModels:()=>G?G.getAllSlotsModels():null,getAllSlots:()=>G?G.getAllSlots():null,setModel:(...e)=>{G&&G.setModel(...e)},getCamera:()=>G?G.camera.controls.getCamera():null,setCamera:e=>{G&&G.camera.controls.setCamera(e)},updateShadow:e=>{var t;G&&(null===(t=G.world.environment)||void 0===t||t.updateShadow(e))},updateFog:e=>{var t;G&&(null===(t=G.world.environment)||void 0===t||t.updateFog(e))},updateBloomProps:e=>{var t;G&&(null===(t=G.world.environment)||void 0===t||t.updateBloom(e))},updateEnvironment:e=>{G&&G.updateEnvironment(e)},getCustomizedModel:(...e)=>He(void 0,void 0,void 0,(function*(){return G?G.getCustomizedModel(...e):null})),getCurrentCustomization:()=>G?G.getCurrentCustomization():null,insertHotspot:e=>G?q(e):null,lookToHotspot:(...e)=>G?G.lookToHotspot(...e):null,updateHotspot:e=>G?ee(e):null,deleteHotspot:e=>G?te(e):null,showHotspot:e=>{ne(e)},hideHotspot:e=>{re(e)},focusHotspot:(...e)=>{oe(...e)},getActiveHotspotId:()=>ie(),downloadGlb:(e="model.glb",t=!0)=>{G&&G.getCustomizedModel(t).then((t=>{if(!t)return void console.error("Error: could not export the glb!");const n=document.createElement("a");n.href=URL.createObjectURL(t),n.download=e,n.click()}))},getAnimationIds:()=>(null==G?void 0:G.world.getAnimationIds())||[],playAnimation:(e,t)=>{G&&G.world.playAnimation(e,t)},stopAnimation:e=>{G&&G.world.stopAnimation(e)},pauseAnimation:()=>{G&&G.world.pauseAnimation()}}))),(0,e.jsxs)(We.Provider,Object.assign({value:{glbSrc:n,exposure:r,hdri:"neutral"===o?"https://sdk.r2u.io/hdri/neutral.hdr":o,noZoom:i,minZoom:a,maxZoom:s,initialZoom:c,backgroundColor:l,backgroundImage:u,sceneBackground:d,activeShadow:f,activeBakedShadow:p,shadowOffsetX:h,shadowOffsetY:m,shadowOffsetZ:g,shadowOpacity:v,shadowRadius:b,cameraOrbitSensitivity:y,minAzimuthalAngleRotation:w,maxAzimuthalAngleRotation:x,minPolarAngleRotation:O,maxPolarAngleRotation:M,maxDragX:A,minDragX:S,maxDragY:j,minDragY:I,maxDragZ:C,minDragZ:k,activeFog:N,fogColor:D,fogNear:z,fogFar:E,cameraNear:T,cameraFar:P,experience:G,setExperience:Q,onLoad:e=>{const{hotspots:t}=e.world;t.forEach((t=>{const n=t.id.replace(/^HOTSPOT_/,"").split("_"),r=n[0].replace(/[A-Z]/g," $&").trim(),o=n[1];K({id:t.id,tooltip:{value:r},onFocusOutBehavior:{restoreCamera:!0},onFocus:()=>{o&&e.world.playAnimation(o),e.centerCameraAtHotspot(t.id),e.lookToHotspot(t.id)},onFocusOut:()=>{o&&e.world.stopAnimation()}})})),$&&$(e)},bloom:L,initialBloom:R,animationSelector:Y,enableBloomButton:F,bloomIntensity:B,bloomRadius:Z,bloomThreshold:_,initialAnimation:U,hasBloom:X,setHasBloom:V}},{children:[H,J()]}),void 0)})),Qe=()=>(0,t.useContext)(We),Xe=Te.div`
129
- position: absolute;
130
- width: 18em;
131
- ${({position:e})=>e}: 1em;
132
- left: 50%;
133
- transform: translateX(-50%);
134
- font-size: 16px;
135
- @media (min-width: 3201px) {
136
- font-size: 165.24%;
137
- }
138
- @media (max-width: 3200px) {
139
- font-size: 165.24%;
140
- }
141
- @media (max-width: 2560px) {
142
- font-size: 133.12%;
143
- }
144
- @media (max-width: 2048px) {
145
- font-size: 102.224%;
146
- }
147
- @media (max-width: 1920px) {
148
- font-size: 100%;
149
- }
150
- @media (max-width: 1536px) {
151
- font-size: 88.96%;
152
- }
153
- @media (max-width: 1440px) {
154
- font-size: 88.96%;
155
- }
156
- @media (max-width: 1280px) {
157
- font-size: 74.6%;
158
- }
159
- @media (max-width: 1024px) {
160
- font-size: 59.52%;
161
- }
162
- @media (max-width: 800px) {
163
- font-size: 53.7%;
164
- }
165
- @media (max-width: 720px) {
166
- font-size: 75.7%;
167
- }
168
- @media (max-width: 600px) {
169
- font-size: 70.65%;
170
- }
171
- @media (max-width: 560px) {
172
- font-size: 63.08%;
173
- }
174
- @media (max-width: 500px) {
175
- font-size: 56.51%;
176
- }
177
- @media (max-width: 480px) {
178
- font-size: 54%;
179
- }
180
- @media (max-width: 400px) {
181
- font-size: 48.62%;
182
- }
183
- @media (max-width: 380px) {
184
- font-size: 46.92%;
185
- }
186
- @media (max-width: 360px) {
187
- font-size: 45.2%;
188
- }
189
- @media (max-width: 340px) {
190
- font-size: 43.37%;
191
- }
192
- @media (max-width: 320px) {
193
- font-size: 40.32%;
194
- }
195
- @media (max-width: 300px) {
196
- font-size: 39.28%;
197
- }
198
- @media (max-width: 253px) {
199
- font-size: 34%;
200
- }
201
- @media (max-width: 220px) {
202
- font-size: 25.23%;
203
- }
204
- `,Ve=Te.div`
205
- background-color: #ffffff;
206
- border-radius: 5px;
207
- width: 100%;
208
- height: 2.5em;
209
- border: none;
210
- box-sizing: border-box;
211
- box-shadow: 0px 0px 5px rgba(86, 86, 86, 0.35);
212
- display: flex;
213
- align-items: center;
214
- z-index: 2;
215
- user-select: none;
216
- overflow: hidden;
217
-
218
- &:hover {
219
- box-shadow: 0px 0px 10px rgba(86, 86, 86, 0.25);
220
- }
221
-
222
- &:active {
223
- box-shadow: 0px 0px 15px rgba(86, 86, 86, 0.25);
224
- }
225
-
226
- &.expanded {
227
- box-shadow: inset 0 0 5px #00000030;
228
- }
229
- `,Je=Te.button`
230
- font-size: 1em;
231
- width: 100%;
232
- height: 100%;
233
- background-color: #ffffff00;
234
- border: none;
235
- border-right: solid 1px #eee;
236
- margin: 0;
237
- padding: 0;
238
- cursor: pointer;
239
- text-align: center;
240
-
241
- overflow: hidden;
242
- text-overflow: ellipsis;
243
-
244
- display: flex;
245
- align-items: center;
246
-
247
- span {
248
- width: 100%;
249
- color: #000;
250
- font-size: 1em;
251
- font-family: sans-serif;
252
- text-overflow: ellipsis;
253
- overflow: hidden;
254
- white-space: nowrap;
255
- text-align: center;
256
- }
257
-
258
- &:active {
259
- background-color: #f8f8f8;
260
- }
261
- `,Ke=Te.div`
262
- display: flex;
263
- align-items: center;
264
-
265
- img {
266
- margin: 0.5em 0.75em;
267
- max-width: 1.5em;
268
- }
269
- `,qe=Te.div`
270
- position: absolute;
271
- height: fit-content;
272
- max-height: 25em;
273
- overflow-y: auto;
274
- width: 100%;
275
- background-color: #fff;
276
-
277
- z-index: 1;
278
-
279
- padding: 0.625em 0;
280
- border-radius: 5px;
281
- box-sizing: border-box;
282
- box-shadow: 0 0 5px 5px #00000010;
283
- transform: translateY(${({position:e})=>"top"===e?"2.5rem":"-2.5rem"});
284
-
285
- ${({position:e})=>e}: 0px;
286
-
287
- cursor: default;
288
- user-select: none;
289
- font-family: sans-serif;
290
-
291
- hr {
292
- border-top: solid 1px #e8e8e8;
293
- border-bottom: none;
294
- border-left: none;
295
- border-right: none;
296
- margin: 0;
297
- }
298
- `,et=Te.div`
299
- color: #333;
300
- height: 2.19em;
301
- text-align: center;
302
- display: flex;
303
- align-items: center;
304
- box-sizing: border-box;
305
- padding: 0 0.9375em;
306
-
307
- cursor: pointer;
308
-
309
- font-size: 1.125em;
310
- text-overflow: ellipsis;
311
- overflow: hidden;
312
- white-space: nowrap;
313
-
314
- &:hover {
315
- background-color: #e8ebf0;
316
- }
317
-
318
- &.none {
319
- color: #733;
320
-
321
- &:hover {
322
- background-color: #f0e4e8;
323
- }
324
- }
325
-
326
- &.active {
327
- font-weight: bold;
328
- }
329
- `;function tt(e){return e[0]+e.substring(1).replace(/([A-Z])/g," $1").toLocaleLowerCase()}const nt=n().forwardRef(((n,r)=>{const[o,i]=(0,t.useState)(!1),[a,s]=(0,t.useState)([]),[c,l]=(0,t.useState)("Animações"),[u,d]=(0,t.useState)(!1),f=(0,t.useRef)(null),{experience:p,animationSelector:h}=Qe(),m=(0,t.useMemo)((()=>a.length?a.length:0),[a]);1===m&&(f.current=["root-model",a[0]]);const g=(0,t.useMemo)((()=>p?new Promise((e=>{const t=setInterval((()=>{p.getAllSlotsMaterials()&&(clearInterval(t),e())}),200)})):Promise.resolve()),[p]);function v(e,t){return function(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(e,[])).next())}))}(this,0,void 0,(function*(){f.current&&(null==p||p.world.stopAnimation()),t?(null==p||p.world.playAnimation(t,{loop:"repeat"}),f.current=[e,t],d(!0),l(t)):(f.current=null,d(!1),l("Nenhuma")),i(!1)}))}return(0,t.useEffect)((()=>{g.then((()=>{s((null==p?void 0:p.world.getAnimationIds())||[])}))}),[p]),h&&"hide"!==h&&m?(0,e.jsxs)(Xe,Object.assign({position:h,className:"dropdown-container",ref:r},{children:[(0,e.jsxs)(Ve,Object.assign({className:o?"expanded":""},{children:[(0,e.jsxs)(Je,Object.assign({onClick:function(){f.current&&(u?null==p||p.world.stopAnimation():v(f.current[0],f.current[1]),d(!u))},title:tt(c)},{children:[(0,e.jsx)(Ke,{children:(0,e.jsx)("img",{src:u?"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6IFNWRyBSZXBvIE1peGVyIFRvb2xzIC0tPgo8c3ZnIGhlaWdodD0iODAwcHgiIHdpZHRoPSI4MDBweCIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiAKCSB2aWV3Qm94PSIwIDAgMTAuMzM0IDEwLjMzNCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggc3R5bGU9ImZpbGw6IzAzMDEwNDsiIGQ9Ik0xMC4zMzMsOS44MTZjMCwwLjI4NS0wLjIzMSwwLjUxOC0wLjUxNywwLjUxOEgwLjUxN0MwLjIzMywxMC4zMzQsMCwxMC4xMDIsMCw5LjgxNlYwLjUxNwoJCUMwLDAuMjMyLDAuMjMxLDAsMC41MTcsMGg5LjI5OWMwLjI4NSwwLDAuNTE3LDAuMjMxLDAuNTE3LDAuNTE3VjkuODE2eiIvPgo8L2c+Cjwvc3ZnPg==":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6IFNWRyBSZXBvIE1peGVyIFRvb2xzIC0tPgo8c3ZnIGZpbGw9IiMwMDAwMDAiIGhlaWdodD0iODAwcHgiIHdpZHRoPSI4MDBweCIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiAKCSB2aWV3Qm94PSIwIDAgMTcuODA0IDE3LjgwNCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPGcgaWQ9ImM5OF9wbGF5Ij4KCQk8cGF0aCBkPSJNMi4wNjcsMC4wNDNDMi4yMS0wLjAyOCwyLjM3Mi0wLjAwOCwyLjQ5MywwLjA4NWwxMy4zMTIsOC41MDNjMC4wOTQsMC4wNzgsMC4xNTQsMC4xOTEsMC4xNTQsMC4zMTMKCQkJYzAsMC4xMi0wLjA2MSwwLjIzNy0wLjE1NCwwLjMxNEwyLjQ5MiwxNy43MTdjLTAuMDcsMC4wNTctMC4xNjIsMC4wODctMC4yNSwwLjA4N2wtMC4xNzYtMC4wNAoJCQljLTAuMTM2LTAuMDY1LTAuMjIyLTAuMjA3LTAuMjIyLTAuMzYxVjAuNDAyQzEuODQ0LDAuMjUsMS45MywwLjEwNywyLjA2NywwLjA0M3oiLz4KCTwvZz4KCTxnIGlkPSJDYXBhXzFfNzhfIj4KCTwvZz4KPC9nPgo8L3N2Zz4=",width:15,alt:"Animation",style:{opacity:f.current?.8:.3141592653589793}},void 0)},void 0),(0,e.jsx)("span",{children:m>1?tt(c):"Animação"},void 0)]}),void 0),m>1&&(0,e.jsx)(Ke,Object.assign({onClick:function(){i(!o)}},{children:(0,e.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA3klEQVR4nO2YwQ7CIBAFX8L6J9Yv9qwXPaj9R0wTTAyxQBHYbfIm4dgyAz1AAUIIIYQQEnMCMGGnPmcAPowLAIEeAuD65bO4ZUt9NB5KERLmjn2SOzH9eEAjQlbkswGItkwjQhLyyyedxQG4rbzgBeDQUd4BuCfmLl5AjQjXSl4jwrWWHxnhesmPiHC95Usi5sqIYfI9IobLt4xQk28RoS7/T4QZ+ZoIc/JbIszKlxy+nmF4Q8f0zTthduVrI0zKl0aYls9F7EL+g4Tbk5WfA9Us99dj/eOEEEIIIQQJ3jCy8eZ0clmhAAAAAElFTkSuQmCC",width:20,alt:"Expand Button",style:{rotate:"top"===h!==o?"":"180deg"}},void 0)}),void 0)]}),void 0),(0,e.jsx)(qe,Object.assign({position:h,style:{visibility:o?"visible":"hidden"}},{children:(0,e.jsxs)("div",{children:[a.map((t=>{let n=!1;f.current&&t===f.current[1]&&(n=!0);const r=tt(t);return(0,e.jsx)(et,Object.assign({className:n?"active":"",onClick:()=>{v("root-model",t)},title:r},{children:r}),t)})),(0,e.jsx)("hr",{},void 0)]},void 0)}),void 0)]}),void 0):null})),rt=Te.div`
330
- opacity: 0;
331
-
332
- .bloomButtonR2U {
333
- ${({bloom:e})=>"noBloom"===e?we`
334
- display: none !important;
335
- `:null}
336
- padding: 8px;
337
- position: absolute;
338
- right: 16px;
339
- top: 16px;
340
- background: #f9f9f9;
341
- ${({bloom:e})=>"bloomOn"===e?we`
342
- box-shadow: inset -2px -2px 4px #ffffff, inset 2px 2px 4px rgba(86, 86, 86, 0.25);
343
- `:we`
344
- box-shadow: -2px -2px 4px #ffffff, 2px 2px 4px rgba(86, 86, 86, 0.25);
345
- `}
346
- border-radius: 20px;
347
- margin: 0px 10px;
348
- outline: none;
349
- border: none;
350
- cursor: pointer;
351
-
352
- :hover {
353
- box-shadow: inset -2px -2px 4px #ffffff, inset 2px 2px 4px rgba(86, 86, 86, 0.25);
354
- }
355
-
356
- .lampR2U {
357
- width: 30px;
358
- height: 30px;
359
- }
360
- }
361
- `,ot=n().forwardRef(((t,n)=>{const{hasBloom:r,setHasBloom:o,enableBloomButton:i}=Qe();return(0,e.jsx)(rt,Object.assign({bloom:r,ref:n,style:i?{}:{display:"none"}},{children:(0,e.jsx)("button",Object.assign({type:"button",onMouseDown:e=>e.stopPropagation(),onClick:()=>o("bloomOff"===r?"bloomOn":"bloomOff"),className:"bloomButtonR2U"},{children:(0,e.jsx)("img",{src:"bloomOn"===r?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1LjM3MTYgMzcuMjZDMTUuMzcxNiAzOC4xMDcgMTYuMDY1OSAzOC44IDE2LjkxNDUgMzguOEgyMy4wODU5QzIzLjkzNDUgMzguOCAyNC42Mjg4IDM4LjEwNyAyNC42Mjg4IDM3LjI2VjM1LjcySDE1LjM3MTZWMzcuMjZaTTIwLjAwMDIgOEMxNC4wNDQ4IDggOS4yMDAyIDEyLjgzNTYgOS4yMDAyIDE4Ljc4QzkuMjAwMiAyMi40NDUyIDExLjAzNjIgMjUuNjYzOCAxMy44Mjg4IDI3LjYxOTZWMzEuMUMxMy44Mjg4IDMxLjk0NyAxNC41MjMxIDMyLjY0IDE1LjM3MTYgMzIuNjRIMjQuNjI4OEMyNS40NzczIDMyLjY0IDI2LjE3MTYgMzEuOTQ3IDI2LjE3MTYgMzEuMVYyNy42MTk2QzI4Ljk2NDIgMjUuNjYzOCAzMC44MDAyIDIyLjQ0NTIgMzAuODAwMiAxOC43OEMzMC44MDAyIDEyLjgzNTYgMjUuOTU1NiA4IDIwLjAwMDIgOFpNMjQuMzk3MyAyNS4wOTRMMjMuMDg1OSAyNi4wMThWMjkuNTZIMTYuOTE0NVYyNi4wMThMMTUuNjAzMSAyNS4wOTRDMTMuNTIwMiAyMy42NDY0IDEyLjI4NTkgMjEuMjkwMiAxMi4yODU5IDE4Ljc4QzEyLjI4NTkgMTQuNTI5NiAxNS43NDE5IDExLjA4IDIwLjAwMDIgMTEuMDhDMjQuMjU4NSAxMS4wOCAyNy43MTQ1IDE0LjUyOTYgMjcuNzE0NSAxOC43OEMyNy43MTQ1IDIxLjI5MDIgMjYuNDgwMiAyMy42NDY0IDI0LjM5NzMgMjUuMDk0WiIgZmlsbD0iIzAwM0U1OCIvPgo8cGF0aCBkPSJNMzQuMDE2NiA2LjUxNjY2TDMxLjY2NjYgNC4xNjY2NkwyOC42ODMzIDcuMTY2NjZMMzEuMDMzMyA5LjUxNjY2TDM0LjAxNjYgNi41MTY2NlpNMjEuNTk5OSA1TDE4LjI2NjYgNUwxOC4yNjY2IC01LjEzNGUtMDZMMjEuNTk5OSAtNC44NDI1OWUtMDZMMjEuNTk5OSA1Wk0zOC4yNjY2IDIwTDMzLjI2NjYgMjBMMzMuMjY2NiAxNi42NjY3TDM4LjI2NjYgMTYuNjY2N0wzOC4yNjY2IDIwWk02LjU5OTkzIDIwTDEuNTk5OTMgMjBMMS41OTk5MyAxNi42NjY3TDYuNTk5OTMgMTYuNjY2N0w2LjU5OTkzIDIwWk0xMS4xOTk5IDcuMTVMOC4yMTY2IDQuMTQ5OTlMNS44NjY2IDYuNDk5OTlMOC44NjY2IDkuNDgzMzNMMTEuMTk5OSA3LjE1WiIgZmlsbD0iIzAwM0U1OCIvPgo8L3N2Zz4K":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1LjAwMDIgMzcuNEMxNS4wMDAyIDM4LjMxNjcgMTUuNzUwMiAzOS4wNjY3IDE2LjY2NjggMzkuMDY2N0gyMy4zMzM1QzI0LjI1MDIgMzkuMDY2NyAyNS4wMDAyIDM4LjMxNjcgMjUuMDAwMiAzNy40VjM1LjczMzRIMTUuMDAwMlYzNy40Wk0yMC4wMDAyIDYuOTMzMzVDMTMuNTY2OCA2LjkzMzM1IDguMzMzNSAxMi4xNjY3IDguMzMzNSAxOC42QzguMzMzNSAyMi41NjY3IDEwLjMxNjggMjYuMDUgMTMuMzMzNSAyOC4xNjY3VjMxLjkzMzRDMTMuMzMzNSAzMi44NSAxNC4wODM1IDMzLjYgMTUuMDAwMiAzMy42SDI1LjAwMDJDMjUuOTE2OCAzMy42IDI2LjY2NjggMzIuODUgMjYuNjY2OCAzMS45MzM0VjI4LjE2NjdDMjkuNjgzNSAyNi4wNSAzMS42NjY4IDIyLjU2NjcgMzEuNjY2OCAxOC42QzMxLjY2NjggMTIuMTY2NyAyNi40MzM1IDYuOTMzMzUgMjAuMDAwMiA2LjkzMzM1Wk0yNC43NTAyIDI1LjQzMzRMMjMuMzMzNSAyNi40MzM0VjMwLjI2NjdIMTYuNjY2OFYyNi40MzM0TDE1LjI1MDIgMjUuNDMzNEMxMy4wMDAyIDIzLjg2NjcgMTEuNjY2OCAyMS4zMTY3IDExLjY2NjggMTguNkMxMS42NjY4IDE0IDE1LjQwMDIgMTAuMjY2NyAyMC4wMDAyIDEwLjI2NjdDMjQuNjAwMiAxMC4yNjY3IDI4LjMzMzUgMTQgMjguMzMzNSAxOC42QzI4LjMzMzUgMjEuMzE2NyAyNy4wMDAyIDIzLjg2NjcgMjQuNzUwMiAyNS40MzM0WiIgZmlsbD0iI0FGQUZBRiIvPgo8L3N2Zz4K",alt:"",className:"lampR2U"},void 0)}),void 0)}),void 0)})),it=Te.div`
362
- width: 100%;
363
- background-color: white;
364
- `,at=Te.div`
365
- z-index: 5;
366
- position: absolute;
367
- width: 100%;
368
- height: 5px;
369
- background-color: #003e58;
370
- transform: scaleX(0);
371
- transform-origin: top left;
372
- transition: transform 0.8s;
373
- `,st=n().forwardRef(((t,n)=>(0,e.jsx)(it,{children:(0,e.jsx)(at,{ref:n},void 0)},void 0))),ct=/^#([0-9a-f]{3}){1,2}$/i,lt=Te.div`
374
- width: 100%;
375
- height: 34px;
376
- position: absolute;
377
- `,ut=Te.div`
378
- width: 100% !important;
379
- height: 100% !important;
380
-
381
- canvas {
382
- width: 100% !important;
383
- height: 100% !important;
384
- opacity: 0;
385
- transition: opacity 0.25s;
386
-
387
- :hover {
388
- cursor: grab;
389
- }
390
-
391
- &.active {
392
- opacity: 1;
393
- ${({background:e})=>""!==e&&ct.test(e)?we`
394
- background: ${e};
395
- `:we`
396
- background: transparent;
397
- `};
398
- ${({backgroundImage:e})=>""!==e?we`
399
- background: url('${e}') no-repeat center center fixed;
400
- -webkit-background-size: cover;
401
- -moz-background-size: cover;
402
- -o-background-size: cover;
403
- background-size: cover;
404
- `:null};
405
- }
406
- }
407
-
408
- .instructions {
409
- position: absolute;
410
- left: 50%;
411
- top: 50%;
412
-
413
- width: 30px;
414
- height: auto;
415
-
416
- pointer-events: none;
417
- user-select: none;
418
- z-index: 1;
419
-
420
- transform: translate(-50%, -50%);
421
-
422
- opacity: 0;
423
- transition: opacity 0.3s;
424
- }
425
- `,dt=()=>{const n=(0,t.useRef)(null),o=(0,t.useRef)(null),i=(0,t.useRef)(null),s=(0,t.useRef)(null),{glbSrc:c,exposure:l,hdri:u,noZoom:d,minZoom:f,maxZoom:p,initialZoom:h,backgroundColor:m,backgroundImage:g,sceneBackground:v,activeShadow:b,activeBakedShadow:y,shadowOffsetX:w,shadowOffsetY:x,shadowOffsetZ:O,shadowOpacity:M,shadowRadius:A,cameraOrbitSensitivity:S,minAzimuthalAngleRotation:j,maxAzimuthalAngleRotation:I,minPolarAngleRotation:C,maxPolarAngleRotation:k,maxDragX:N,minDragX:D,maxDragY:z,minDragY:E,maxDragZ:T,minDragZ:P,activeFog:L,fogColor:R,fogNear:Y,fogFar:F,cameraNear:B,cameraFar:Z,experience:_,setExperience:U,hasBloom:$,bloomIntensity:H,bloomRadius:W,bloomThreshold:G,initialAnimation:Q,onLoad:X}=Qe();return(0,t.useEffect)((()=>{n.current&&!_&&o.current&&i.current&&s.current&&Promise.all([a.e(167),a.e(628)]).then(a.bind(a,322)).then((({default:e})=>{const t=new e({canvas:n.current,glbSrc:c,exposure:l,hdri:u,noZoom:d,minZoom:f,maxZoom:p,initialZoom:h,sceneBackground:v,activeShadow:b,activeBakedShadow:y,shadowOffsetX:w,shadowOffsetY:x,shadowOffsetZ:O,shadowOpacity:M,shadowRadius:A,cameraOrbitSensitivity:S,minAzimuthalAngleRotation:j,maxAzimuthalAngleRotation:I,minPolarAngleRotation:C,maxPolarAngleRotation:k,maxDragX:N,minDragX:D,maxDragY:z,minDragY:E,maxDragZ:T,minDragZ:P,activeFog:L,fogColor:R,fogNear:Y,fogFar:F,cameraNear:B,cameraFar:Z,bloomIntensity:H,bloomRadius:W,bloomThreshold:G,initialAnimation:Q,loadingDiv:o.current,instructionsImg:i.current,bloomButton:s.current,defaultAnimationOptions:{},onLoad:X});U(t)}))}),[n,_,o,i,s]),null==_||_.updateBloom($),(0,t.useEffect)((()=>{_&&_.updateGlb(c)}),[c]),(0,t.useEffect)((()=>{_&&_.updateBloom($)}),[$]),(0,e.jsxs)(ut,Object.assign({background:m,backgroundImage:g},{children:[(0,e.jsxs)(lt,{children:[(0,e.jsx)(st,{ref:o},void 0),(0,e.jsx)(ot,{ref:s},void 0)]},void 0),(0,e.jsx)("canvas",{ref:n},void 0),(0,e.jsx)("img",{ref:i,className:"instructions",src:r,alt:r,style:{height:"30px",width:"30px"}},void 0),(0,e.jsx)(nt,{},void 0)]}),void 0)},ft=Te.div`
426
- position: relative;
427
- width: 100% !important;
428
- height: 100% !important;
429
- font-size: 16px;
430
-
431
- overflow: hidden;
432
- `,pt=n().forwardRef(((n,r)=>{const{glbSrc:o,exposure:i=.55,hdri:a="neutral",noZoom:s=!1,minZoom:c=null,maxZoom:l=null,initialZoom:u=null,backgroundColor:d="",backgroundImage:f="",sceneBackground:p=!1,activeShadow:h=!0,activeBakedShadow:m=!1,shadowOffsetX:g=0,shadowOffsetY:v=10,shadowOffsetZ:b=0,shadowOpacity:y=.1,shadowRadius:w=1,cameraOrbitSensitivity:x=2,minAzimuthalAngleRotation:O=-60,maxAzimuthalAngleRotation:M=60,minPolarAngleRotation:A=null,maxPolarAngleRotation:S=null,maxDragX:j=null,minDragX:I=null,maxDragY:C=null,minDragY:k=null,maxDragZ:N=null,minDragZ:D=null,activeFog:z=!1,fogColor:E="",fogNear:T=null,fogFar:P=null,cameraNear:L=null,cameraFar:R=null,bloom:Y=!1,initialBloom:F=!1,animationSelector:B="bottom",enableBloomButton:Z=!0,bloomIntensity:_=3,bloomRadius:U=0,bloomThreshold:$=.21,initialAnimation:H=!0,children:W,componentDidMount:G=(()=>{}),onLoad:Q,onClick:X=(()=>{}),onSessionTimeCollect:V=(()=>{})}=n,[J,K]=(0,t.useState)();return(0,t.useEffect)((()=>{G()}),[]),(0,e.jsx)(ft,Object.assign({onClick:X,onMouseEnter:()=>{K(new Date)},onMouseLeave:()=>{if(J){const e=(new Date).getTime()-J.getTime();V(e)}}},{children:(0,e.jsxs)(Ge,Object.assign({ref:r,glbSrc:o,exposure:i,hdri:a,noZoom:s,minZoom:c,maxZoom:l,initialZoom:u,backgroundColor:d,backgroundImage:f,sceneBackground:p,activeShadow:h,activeBakedShadow:m,shadowOffsetX:g,shadowOffsetY:v,shadowOffsetZ:b,shadowOpacity:y,shadowRadius:w,cameraOrbitSensitivity:x,minAzimuthalAngleRotation:O,maxAzimuthalAngleRotation:M,minPolarAngleRotation:A,maxPolarAngleRotation:S,maxDragX:j,minDragX:I,maxDragY:C,minDragY:k,maxDragZ:N,minDragZ:D,activeFog:z,fogColor:E,fogNear:T,fogFar:P,cameraNear:L,cameraFar:R,bloom:Y,initialBloom:F,animationSelector:B,enableBloomButton:Z,bloomIntensity:_,bloomRadius:U,bloomThreshold:$,initialAnimation:H,onLoad:Q},{children:[W,(0,e.jsx)(dt,{},void 0)]}),void 0)}),void 0)}))})(),s})(),e.exports=r(n(7294))},8679:function(e,t,n){"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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 c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=c(t),m=c(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var b=f(n,v);try{l(t,v,b)}catch(e){}}}}return t}},2587:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,o){n=n||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(n);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var l=0;l<c;++l){var u,d,f,p,h=e[l].replace(a,"%20"),m=h.indexOf(r);m>=0?(u=h.substr(0,m),d=h.substr(m+1)):(u=h,d=""),f=decodeURIComponent(u),p=decodeURIComponent(d),t(i,f)?Array.isArray(i[f])?i[f].push(p):i[f]=[i[f],p]:i[f]=p}return i}},2361:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,o){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(o){var i=encodeURIComponent(t(o))+r;return Array.isArray(e[o])?e[o].map((function(e){return i+encodeURIComponent(t(e))})).join(n):i+encodeURIComponent(t(e[o]))})).filter(Boolean).join(n):o?encodeURIComponent(t(o))+r+encodeURIComponent(t(e)):""}},7673:function(e,t,n){"use strict";t.decode=t.parse=n(2587),t.encode=t.stringify=n(2361)},6339:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(7294),o=n(8718);function i(e){var t=e.i18n,n=e.defaultNS,i=e.children,a=(0,r.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,r.createElement)(o.OO.Provider,{value:a},i)}},8718:function(e,t,n){"use strict";n.d(t,{OO:function(){return d},j_:function(){return f},JP:function(){return p},zv:function(){return h},I6:function(){return m},nI:function(){return g},Db:function(){return v},qi:function(){return b},kK:function(){return y}});var r=n(5671),o=n(3144),i=n(4942),a=n(7294);function s(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l,u={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},d=a.createContext();function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u=c(c({},u),e)}function p(){return u}var h=function(){function e(){(0,r.Z)(this,e),this.usedNamespaces={}}return(0,o.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function m(e){l=e}function g(){return l}var v={type:"3rdParty",init:function(e){f(e.options.react),m(e)}};function b(e){return function(t){return new Promise((function(n){var r=y();e.getInitialProps?e.getInitialProps(t).then((function(e){n(c(c({},e),r))})):n(r)}))}}function y(){var e=g(),t=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],n={},r={};return e.languages.forEach((function(n){r[n]={},t.forEach((function(t){r[n][t]=e.getResourceBundle(n,t)||{}}))})),n.initialI18nStore=r,n.initialLanguage=e.language,n}},1752:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.r(t),n.d(t,{I18nContext:function(){return v.OO},I18nextProvider:function(){return R.a},Trans:function(){return C},Translation:function(){return L},composeInitialProps:function(){return v.qi},date:function(){return _},getDefaults:function(){return v.JP},getI18n:function(){return v.nI},getInitialProps:function(){return v.kK},initReactI18next:function(){return v.Db},number:function(){return $},plural:function(){return W},select:function(){return H},selectOrdinal:function(){return G},setDefaults:function(){return v.j_},setI18n:function(){return v.I6},time:function(){return U},useSSR:function(){return Y},useTranslation:function(){return k.$},withSSR:function(){return Z},withTranslation:function(){return T}});var o=n(1002),i=n(4942),a=n(7294),s=n(1739),c=n.n(s),l=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function u(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(c()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(l),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var a=i[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],o.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var d=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,f=/^\s*$/,p=Object.create(null);function h(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(h,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var m={parse:function(e,t){t||(t={}),t.components||(t.components=p);var n,r=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");r.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(d,(function(s,c){if(a){if(s!=="</"+n.name+">")return;a=!1}var l,d="/"!==s.charAt(1),p=s.startsWith("\x3c!--"),h=c+s.length,m=e.charAt(h);if(p){var g=u(s);return i<0?(r.push(g),r):((l=o[i]).children.push(g),r)}if(d&&(i++,"tag"===(n=u(s)).type&&t.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!m||"<"===m||n.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===i&&r.push(n),(l=o[i-1])&&l.children.push(n),o[i]=n),(!d||n.voidElement)&&(i>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(i--,n=-1===i?r:o[i]),!a&&"<"!==m&&m)){l=-1===i?r:o[i].children;var v=e.indexOf("<",h),b=e.slice(h,-1===v?void 0:v);f.test(b)&&(b=" "),(v>-1&&i+l.length>=0||" "!==b)&&l.push({type:"text",content:b})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+h("",t)}),"")}},g=m,v=n(8718),b=n(8236),y=["format"],w=["children","count","parent","i18nKey","tOptions","values","defaults","components","ns","i18n","t"];function x(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 O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t){if(!e)return!1;var n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function A(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function S(e){return Array.isArray(e)?e:[e]}function j(e,t){if(!e)return"";var n="",i=S(e),s=t.transKeepBasicHtmlNodesFor||[];return i.forEach((function(e,i){if("string"==typeof e)n+="".concat(e);else if(a.isValidElement(e)){var c=Object.keys(e.props).length,l=s.indexOf(e.type)>-1,u=e.props.children;if(!u&&l&&0===c)n+="<".concat(e.type,"/>");else if(u||l&&0===c)if(e.props.i18nIsDynamicList)n+="<".concat(i,"></").concat(i,">");else if(l&&1===c&&"string"==typeof u)n+="<".concat(e.type,">").concat(u,"</").concat(e.type,">");else{var d=j(u,t);n+="<".concat(i,">").concat(d,"</").concat(i,">")}else n+="<".concat(i,"></").concat(i,">")}else if(null===e)(0,b.ZK)("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===(0,o.Z)(e)){var f=e.format,p=r(e,y),h=Object.keys(p);if(1===h.length){var m=f?"".concat(h[0],", ").concat(f):h[0];n+="{{".concat(m,"}}")}else(0,b.ZK)("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else(0,b.ZK)("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),n}function I(e,t,n,r,i){if(""===t)return[];var s=r.transKeepBasicHtmlNodesFor||[],c=t&&new RegExp(s.join("|")).test(t);if(!e&&!c)return[t];var l={};!function e(t){S(t).forEach((function(t){"string"!=typeof t&&(M(t)?e(A(t)):"object"!==(0,o.Z)(t)||a.isValidElement(t)||Object.assign(l,t))}))}(e);var u=g.parse("<0>".concat(t,"</0>")),d=O(O({},l),i);function f(e,t,n){var r=A(e),o=h(r,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return a.isValidElement(e)}))}(r)&&0===o.length?r:o}function p(e,t,n,r,o){e.dummy&&(e.children=t),n.push(a.cloneElement(e,O(O({},e.props),{},{key:r}),o?void 0:t))}function h(t,i,l){var u=S(t);return S(i).reduce((function(t,i,m){var g,v,b,y=i.children&&i.children[0]&&i.children[0].content&&n.services.interpolator.interpolate(i.children[0].content,d,n.language);if("tag"===i.type){var w=u[parseInt(i.name,10)];!w&&1===l.length&&l[0][i.name]&&(w=l[0][i.name]),w||(w={});var x=0!==Object.keys(i.attrs).length?(g={props:i.attrs},(b=O({},v=w)).props=Object.assign(g.props,v.props),b):w,A=a.isValidElement(x),S=A&&M(i,!0)&&!i.voidElement,j=c&&"object"===(0,o.Z)(x)&&x.dummy&&!A,I="object"===(0,o.Z)(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof x){var C=n.services.interpolator.interpolate(x,d,n.language);t.push(C)}else if(M(x)||S){p(x,f(x,i,l),t,m)}else if(j){var k=h(u,i.children,l);t.push(a.cloneElement(x,O(O({},x.props),{},{key:m}),k))}else if(Number.isNaN(parseFloat(i.name))){if(I)p(x,f(x,i,l),t,m,i.voidElement);else if(r.transSupportBasicHtmlNodes&&s.indexOf(i.name)>-1)if(i.voidElement)t.push(a.createElement(i.name,{key:"".concat(i.name,"-").concat(m)}));else{var N=h(u,i.children,l);t.push(a.createElement(i.name,{key:"".concat(i.name,"-").concat(m)},N))}else if(i.voidElement)t.push("<".concat(i.name," />"));else{var D=h(u,i.children,l);t.push("<".concat(i.name,">").concat(D,"</").concat(i.name,">"))}}else if("object"!==(0,o.Z)(x)||A)1===i.children.length&&y?t.push(a.cloneElement(x,O(O({},x.props),{},{key:m}),y)):t.push(a.cloneElement(x,O(O({},x.props),{},{key:m})));else{var z=i.children[0]?y:null;z&&t.push(z)}}else if("text"===i.type){var E=r.transWrapTextNodes,T=n.services.interpolator.interpolate(i.content,d,n.language);E?t.push(a.createElement(E,{key:"".concat(i.name,"-").concat(m)},T)):t.push(T)}return t}),[])}return A(h([{dummy:!0,children:e||[]}],u,S(e||[]))[0])}function C(e){var t=e.children,n=e.count,o=e.parent,i=e.i18nKey,s=e.tOptions,c=void 0===s?{}:s,l=e.values,u=e.defaults,d=e.components,f=e.ns,p=e.i18n,h=e.t,m=r(e,w),g=(0,a.useContext)(v.OO)||{},y=g.i18n,x=g.defaultNS,M=p||y||(0,v.nI)();if(!M)return(0,b.O4)("You will need to pass in an i18next instance by using i18nextReactModule"),t;var A=h||M.t.bind(M)||function(e){return e},S=O(O({},(0,v.JP)()),M.options&&M.options.react),C=f||A.ns||x||M.options&&M.options.defaultNS;C="string"==typeof C?[C]:C||["translation"];var k=u||j(t,S)||S.transEmptyNodeValue||i,N=S.hashTransKey,D=i||(N?N(k):k),z=l?c.interpolation:{interpolation:O(O({},c.interpolation),{},{prefix:"#$?",suffix:"?$#"})},E=O(O(O(O({},c),{},{count:n},l),z),{},{defaultValue:k,ns:C}),T=I(d||t,D?A(D,E):k,M,S,E),P=void 0!==o?o:S.defaultTransParent;return P?a.createElement(P,m,T):T}var k=n(6793),N=n(8152),D=["forwardedRef"];function z(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 E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function o(o){var i=o.forwardedRef,s=r(o,D),c=(0,k.$)(e,s),l=(0,N.Z)(c,3),u=l[0],d=l[1],f=l[2],p=E(E({},s),{},{t:u,i18n:d,tReady:f});return t.withRef&&i?p.ref=i:!t.withRef&&i&&(p.forwardedRef=i),a.createElement(n,p)}o.displayName="withI18nextTranslation(".concat((0,b.Gf)(n),")"),o.WrappedComponent=n;return t.withRef?a.forwardRef((function(e,t){return a.createElement(o,Object.assign({},e,{forwardedRef:t}))})):o}}var P=["ns","children"];function L(e){var t=e.ns,n=e.children,o=r(e,P),i=(0,k.$)(t,o),a=(0,N.Z)(i,3),s=a[0],c=a[1],l=a[2];return n(s,{i18n:c,lng:c.language},l)}var R=n(6339);function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.i18n,o=(0,a.useContext)(v.OO)||{},i=o.i18n,s=r||i||(0,v.nI)();s.options&&s.options.isClone||(e&&!s.initializedStoreOnce&&(s.services.resourceStore.data=e,s.options.ns=Object.values(e).reduce((function(e,t){return Object.keys(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e}),s.options.ns),s.initializedStoreOnce=!0,s.isInitialized=!0),t&&!s.initializedLanguageOnce&&(s.changeLanguage(t),s.initializedLanguageOnce=!0))}var F=["initialI18nStore","initialLanguage"];function B(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 Z(){return function(e){function t(t){var n=t.initialI18nStore,o=t.initialLanguage,s=r(t,F);return Y(n,o),a.createElement(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s))}return t.getInitialProps=(0,v.qi)(e),t.displayName="withI18nextSSR(".concat((0,b.Gf)(e),")"),t.WrappedComponent=e,t}}var _=function(){return""},U=function(){return""},$=function(){return""},H=function(){return""},W=function(){return""},G=function(){return""}},6793:function(e,t,n){"use strict";n.d(t,{$:function(){return u}});var r=n(8152),o=n(4942),i=n(7294),a=n(8718),s=n(8236);function c(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,o=(0,i.useContext)(a.OO)||{},c=o.i18n,u=o.defaultNS,d=n||c||(0,a.nI)();if(d&&!d.reportNamespaces&&(d.reportNamespaces=new a.zv),!d){(0,s.O4)("You will need to pass in an i18next instance by using initReactI18next");var f=function(e){return Array.isArray(e)?e[e.length-1]:e},p=[f,{},!1];return p.t=f,p.i18n={},p.ready=!1,p}d.options.react&&void 0!==d.options.react.wait&&(0,s.O4)("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var h=l(l(l({},(0,a.JP)()),d.options.react),t),m=h.useSuspense,g=h.keyPrefix,v=e||u||d.options&&d.options.defaultNS;v="string"==typeof v?[v]:v||["translation"],d.reportNamespaces.addUsedNamespaces&&d.reportNamespaces.addUsedNamespaces(v);var b=(d.isInitialized||d.initializedStoreOnce)&&v.every((function(e){return(0,s.F0)(e,d,h)}));function y(){return d.getFixedT(null,"fallback"===h.nsMode?v:v[0],g)}var w=(0,i.useState)(y),x=(0,r.Z)(w,2),O=x[0],M=x[1],A=(0,i.useRef)(!0);(0,i.useEffect)((function(){var e=h.bindI18n,t=h.bindI18nStore;function n(){A.current&&M(y)}return A.current=!0,b||m||(0,s.DC)(d,v,(function(){A.current&&M(y)})),e&&d&&d.on(e,n),t&&d&&d.store.on(t,n),function(){A.current=!1,e&&d&&e.split(" ").forEach((function(e){return d.off(e,n)})),t&&d&&t.split(" ").forEach((function(e){return d.store.off(e,n)}))}}),[d,v.join()]);var S=(0,i.useRef)(!0);(0,i.useEffect)((function(){A.current&&!S.current&&M(y),S.current=!1}),[d]);var j=[O,d,b];if(j.t=O,j.i18n=d,j.ready=b,b)return j;if(!b&&!m)return j;throw new Promise((function(e){(0,s.DC)(d,v,(function(){e()}))}))}},8236:function(e,t,n){"use strict";function r(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}n.d(t,{ZK:function(){return r},O4:function(){return i},DC:function(){return a},F0:function(){return s},Gf:function(){return c}});var o={};function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&o[t[0]]||("string"==typeof t[0]&&(o[t[0]]=new Date),r.apply(void 0,t))}function a(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return i("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],o=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var s=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!t.services.backendConnector.backend||!(!s(r,e)||o&&!s(a,e))))}function c(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}},9921:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=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 u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case g:case m:case c:return e;default:return t}}case o:return t}}}function O(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return O(e)||x(e)===u},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},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===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},9864:function(e,t,n){"use strict";e.exports=n(9921)},6774:function(e){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(o=n?n.call(r,u,d,l):void 0)||void 0===o&&u!==d)return!1}return!0}},9163:function(e,t,n){"use strict";n.r(t),n.d(t,{ServerStyleSheet:function(){return Ze},StyleSheetConsumer:function(){return ie},StyleSheetContext:function(){return oe},StyleSheetManager:function(){return de},ThemeConsumer:function(){return Ee},ThemeContext:function(){return ze},ThemeProvider:function(){return Te},__PRIVATE__:function(){return $e},createGlobalStyle:function(){return Fe},css:function(){return xe},default:function(){return He},isStyledComponent:function(){return x},keyframes:function(){return Be},useTheme:function(){return Ue},version:function(){return M},withTheme:function(){return _e}});var r=n(9864),o=n(7294),i=n(6774),a=n.n(i);var s=function(e){function t(e,r,c,l,f){for(var p,h,m,g,w,O=0,M=0,A=0,S=0,j=0,z=0,T=m=p=0,L=0,R=0,Y=0,F=0,B=c.length,Z=B-1,_="",U="",$="",H="";L<B;){if(h=c.charCodeAt(L),L===Z&&0!==M+S+A+O&&(0!==M&&(h=47===M?10:47),S=A=O=0,B++,Z++),0===M+S+A+O){if(L===Z&&(0<R&&(_=_.replace(d,"")),0<_.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:_+=c.charAt(L)}h=59}switch(h){case 123:for(p=(_=_.trim()).charCodeAt(0),m=1,F=++L;L<B;){switch(h=c.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(L+1)){case 42:case 47:e:{for(T=L+1;T<Z;++T)switch(c.charCodeAt(T)){case 47:if(42===h&&42===c.charCodeAt(T-1)&&L+2!==T){L=T+1;break e}break;case 10:if(47===h){L=T+1;break e}}L=T}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<Z&&c.charCodeAt(L)!==h;);}if(0===m)break;L++}if(m=c.substring(F,L),0===p&&(p=(_=_.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<R&&(_=_.replace(d,"")),h=_.charCodeAt(1)){case 100:case 109:case 115:case 45:R=r;break;default:R=D}if(F=(m=t(r,R,m,h,f+1)).length,0<E&&(w=s(3,m,R=n(D,_,Y),r,C,I,F,h,f,l),_=R.join(""),void 0!==w&&0===(F=(m=w.trim()).length)&&(h=0,m="")),0<F)switch(h){case 115:_=_.replace(x,a);case 100:case 109:case 45:m=_+"{"+m+"}";break;case 107:m=(_=_.replace(v,"$1 $2"))+"{"+m+"}",m=1===N||2===N&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=_+m,112===l&&(U+=m,m="")}else m=""}else m=t(r,n(r,_,Y),m,l,f+1);$+=m,m=Y=R=T=p=0,_="",h=c.charCodeAt(++L);break;case 125:case 59:if(1<(F=(_=(0<R?_.replace(d,""):_).trim()).length))switch(0===T&&(p=_.charCodeAt(0),45===p||96<p&&123>p)&&(F=(_=_.replace(" ",":")).length),0<E&&void 0!==(w=s(1,_,r,e,C,I,U.length,l,f,l))&&0===(F=(_=w.trim()).length)&&(_="\0\0"),p=_.charCodeAt(0),h=_.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=_+c.charAt(L);break}default:58!==_.charCodeAt(F-1)&&(U+=o(_,p,h,_.charCodeAt(2)))}Y=R=T=p=0,_="",h=c.charCodeAt(++L)}}switch(h){case 13:case 10:47===M?M=0:0===1+p&&107!==l&&0<_.length&&(R=1,_+="\0"),0<E*P&&s(0,_,r,e,C,I,U.length,l,f,l),I=1,C++;break;case 59:case 125:if(0===M+S+A+O){I++;break}default:switch(I++,g=c.charAt(L),h){case 9:case 32:if(0===S+O+M)switch(j){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+M+O&&(R=Y=1,g="\f"+g);break;case 108:if(0===S+M+O+k&&0<T)switch(L-T){case 2:112===j&&58===c.charCodeAt(L-3)&&(k=j);case 8:111===z&&(k=z)}break;case 58:0===S+M+O&&(T=L);break;case 44:0===M+A+S+O&&(R=1,g+="\r");break;case 34:case 39:0===M&&(S=S===h?0:0===S?h:S);break;case 91:0===S+M+A&&O++;break;case 93:0===S+M+A&&O--;break;case 41:0===S+M+O&&A--;break;case 40:if(0===S+M+O){if(0===p)if(2*j+3*z==533);else p=1;A++}break;case 64:0===M+A+S+O+T+m&&(m=1);break;case 42:case 47:if(!(0<S+O+A))switch(M){case 0:switch(2*h+3*c.charCodeAt(L+1)){case 235:M=47;break;case 220:F=L,M=42}break;case 42:47===h&&42===j&&F+2!==L&&(33===c.charCodeAt(F+2)&&(U+=c.substring(F,L+1)),g="",M=0)}}0===M&&(_+=g)}z=j,j=h,L++}if(0<(F=U.length)){if(R=r,0<E&&(void 0!==(w=s(2,U,R,e,C,I,F,l,f,l))&&0===(U=w).length))return H+U+$;if(U=R.join(",")+"{"+U+"}",0!=N*k){switch(2!==N||i(U,2)||(k=0),k){case 111:U=U.replace(y,":-moz-$1")+U;break;case 112:U=U.replace(b,"::-webkit-input-$1")+U.replace(b,"::-moz-$1")+U.replace(b,":-ms-input-$1")+U}k=0}}return H+U+$}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[c++]=r(e[l]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===N||2===N&&i(c,1)?"-webkit-"+c+c:c}if(0===N||2===N&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(j,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(w,"tb");break;case 232:c=a.replace(w,"tb-rl");break;case 220:c=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(M,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(M,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(A,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,c,u){for(var d,f=0,p=t;f<E;++f)switch(d=z[f].call(l,e,p,n,r,o,i,a,s,c,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?N=1:(N=2,T=e):N=0),c}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<E){var o=s(-1,n,r,r,C,I,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(D,r,n,0,0);return 0<E&&(void 0!==(o=s(-2,i,r,r,C,I,i.length,0,0,0))&&(i=o)),"",k=0,I=C=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,M=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,j=/([^-])(image-set\()/,I=1,C=1,k=0,N=1,D=[],z=[],E=0,T=null,P=0;return l.use=function e(t){switch(t){case void 0:case null:E=z.length=0;break;default:if("function"==typeof t)z[E++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else P=0|!!t}return e},l.set=c,void 0!==e&&c(e),l},c={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var l=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,u=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return l.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),d=n(8679),f=n.n(d),p=n(4155);function h(){return(h=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}).apply(this,arguments)}var m=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,r.typeOf)(e)},v=Object.freeze([]),b=Object.freeze({});function y(e){return"function"==typeof e}function w(e){return e.displayName||e.name||"Component"}function x(e){return e&&"string"==typeof e.styledComponentId}var O=void 0!==p&&(p.env.REACT_APP_SC_ATTR||p.env.SC_ATTR)||"data-styled",M="5.3.1",A="undefined"!=typeof window&&"HTMLElement"in window,S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==p&&void 0!==p.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==p.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==p.env.REACT_APP_SC_DISABLE_SPEEDY&&p.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==p&&void 0!==p.env.SC_DISABLE_SPEEDY&&""!==p.env.SC_DISABLE_SPEEDY&&("false"!==p.env.SC_DISABLE_SPEEDY&&p.env.SC_DISABLE_SPEEDY)),j={};function I(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var C=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&I(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),k=new Map,N=new Map,D=1,z=function(e){if(k.has(e))return k.get(e);for(;N.has(D);)D++;var t=D++;return k.set(e,t),N.set(t,e),t},E=function(e){return N.get(e)},T=function(e,t){t>=D&&(D=t+1),k.set(e,t),N.set(t,e)},P="style["+O+'][data-styled-version="5.3.1"]',L=new RegExp("^"+O+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),R=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Y=function(e,t){for(var n=(t.innerHTML||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(L);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(T(l,c),R(e,l,s[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(a)}}},F=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},B=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(O))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(O,"active"),r.setAttribute("data-styled-version","5.3.1");var a=F();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Z=function(){function e(e){var t=this.element=B(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}I(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),_=function(){function e(e){var t=this.element=B(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),U=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),$=A,H={isServer:!A,useCSSOMInjection:!S},W=function(){function e(e,t,n){void 0===e&&(e=b),void 0===t&&(t={}),this.options=h({},H,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&A&&$&&($=!1,function(e){for(var t=document.querySelectorAll(P),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(O)&&(Y(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return z(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new U(o):r?new Z(o):new _(o),new C(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(z(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(z(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(z(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=E(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=O+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),G=/(a)(d)/gi,Q=function(e){return String.fromCharCode(e+(e>25?39:97))};function X(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Q(t%52)+n;return(Q(t%52)+n).replace(G,"$1-$2")}var V=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},J=function(e){return V(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(y(n)&&!x(n))return!1}return!0}var q=J("5.3.1"),ee=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&K(e),this.componentId=t,this.baseHash=V(q,t),this.baseStyle=n,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ye(this.rules,e,t,n).join(""),a=X(V(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=V(this.baseHash,n.hash),u="",d=0;d<c;d++){var f=this.rules[d];if("string"==typeof f)u+=f;else if(f){var p=ye(f,e,t,n),h=Array.isArray(p)?p.join(""):p;l=V(l,h+d),u+=h}}if(u){var m=X(l>>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}o.push(m)}}return o.join(" ")},e}(),te=/^\s*\/\/.*$/gm,ne=[":","[",".","#"];function re(e){var t,n,r,o,i=void 0===e?b:e,a=i.options,c=void 0===a?b:a,l=i.plugins,u=void 0===l?v:l,d=new s(c),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,c,l,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,r,i){return 0===r&&-1!==ne.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var c=e.replace(te,""),l=i&&a?a+" "+i+" { "+c+" }":c;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d(a||!i?"":i,l)}return d.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||I(15),V(e,t.name)}),5381).toString():"",m}var oe=o.createContext(),ie=oe.Consumer,ae=o.createContext(),se=(ae.Consumer,new W),ce=re();function le(){return(0,o.useContext)(oe)||se}function ue(){return(0,o.useContext)(ae)||ce}function de(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=le(),s=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,o.useMemo)((function(){return re({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,o.useEffect)((function(){a()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.createElement(oe.Provider,{value:s},o.createElement(ae.Provider,{value:c},e.children))}var fe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ce);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return I(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ce),this.name+e.hash},e}(),pe=/([A-Z])/,he=/([A-Z])/g,me=/^ms-/,ge=function(e){return"-"+e.toLowerCase()};function ve(e){return pe.test(e)?e.replace(he,ge).replace(me,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function ye(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=ye(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return be(e)?"":x(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ye(e(t),t,n,r):e instanceof fe?n?(e.inject(n,r),e.getName(r)):e:g(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!be(t[a])&&(Array.isArray(t[a])&&t[a].isCss||y(t[a])?i.push(ve(a)+":",t[a],";"):g(t[a])?i.push.apply(i,e(t[a],a)):i.push(ve(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in c?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var we=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function xe(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 y(e)||g(e)?we(ye(m(v,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:we(ye(m(e,n)))}new Set;var Oe=function(e,t,n){return void 0===n&&(n=b),e.theme!==n.theme&&e.theme||t||n.theme},Me=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ae=/(^-|-$)/g;function Se(e){return e.replace(Me,"-").replace(Ae,"")}var je=function(e){return X(J(e)>>>0)};function Ie(e){return"string"==typeof e&&!0}var Ce=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ke=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ne(e,t,n){var r=e[n];Ce(t)&&Ce(r)?De(r,t):e[n]=t}function De(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Ce(a))for(var s in a)ke(s)&&Ne(e,a[s],s)}return e}var ze=o.createContext(),Ee=ze.Consumer;function Te(e){var t=(0,o.useContext)(ze),n=(0,o.useMemo)((function(){return function(e,t){return e?y(e)?e(t):Array.isArray(e)||"object"!=typeof e?I(8):t?h({},t,{},e):e:I(14)}(e.theme,t)}),[e.theme,t]);return e.children?o.createElement(ze.Provider,{value:n},e.children):null}var Pe={};function Le(e,t,n){var r=x(e),i=!Ie(e),a=t.attrs,s=void 0===a?v:a,c=t.componentId,l=void 0===c?function(e,t){var n="string"!=typeof e?"sc":Se(e);Pe[n]=(Pe[n]||0)+1;var r=n+"-"+je("5.3.1"+n+Pe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):c,d=t.displayName,p=void 0===d?function(e){return Ie(e)?"styled."+e:"Styled("+w(e)+")"}(e):d,m=t.displayName&&t.componentId?Se(t.displayName)+"-"+t.componentId:t.componentId||l,g=r&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,O=t.shouldForwardProp;r&&e.shouldForwardProp&&(O=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var M,A=new ee(n,m,r?e.componentStyle:void 0),S=A.isStatic&&0===s.length,j=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.shouldForwardProp,d=e.styledComponentId,f=e.target,p=function(e,t,n){void 0===e&&(e=b);var r=h({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in y(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(Oe(t,(0,o.useContext)(ze),s)||b,t,i),m=p[0],g=p[1],v=function(e,t,n,r){var o=le(),i=ue();return t?e.generateAndInjectStyles(b,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,m),w=n,x=g.$as||t.$as||g.as||t.as||f,O=Ie(x),M=g!==t?h({},t,{},g):t,A={};for(var S in M)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?A.as=M[S]:(l?l(S,u,x):!O||u(S))&&(A[S]=M[S]));return t.style&&g.style!==t.style&&(A.style=h({},t.style,{},g.style)),A.className=Array.prototype.concat(c,d,v!==d?v:null,t.className,g.className).filter(Boolean).join(" "),A.ref=w,(0,o.createElement)(x,A)}(M,e,t,S)};return j.displayName=p,(M=o.forwardRef(j)).attrs=g,M.componentStyle=A,M.displayName=p,M.shouldForwardProp=O,M.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):v,M.styledComponentId=m,M.target=r?e.target:e,M.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(Ie(e)?e:Se(w(e)));return Le(e,h({},o,{attrs:g,componentId:i}),n)},Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?De({},e.defaultProps,t):t}}),M.toString=function(){return"."+M.styledComponentId},i&&f()(M,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),M}var Re=function(e){return function e(t,n,o){if(void 0===o&&(o=b),!(0,r.isValidElementType)(n))return I(1,String(n));var i=function(){return t(n,o,xe.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,h({},o,{},r))},i.attrs=function(r){return e(t,n,h({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Le,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Re[e]=Re(e)}));var Ye=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(ye(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Fe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=xe.apply(void 0,[e].concat(n)),a="sc-global-"+je(JSON.stringify(i)),s=new Ye(i,a);function c(e){var t=le(),n=ue(),r=(0,o.useContext)(ze),i=(0,o.useRef)(t.allocateGSInstance(a)).current;return t.server&&l(i,e,t,r,n),(0,o.useLayoutEffect)((function(){if(!t.server)return l(i,e,t,r,n),function(){return s.removeStyles(i,t)}}),[i,e,t,r,n]),null}function l(e,t,n,r,o){if(s.isStatic)s.renderStyles(e,j,n,o);else{var i=h({},t,{theme:Oe(t,r,c.defaultProps)});s.renderStyles(e,i,n,o)}}return o.memo(c)}function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=xe.apply(void 0,[e].concat(n)).join(""),i=je(o);return new fe(i,o)}var Ze=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=F();return"<style "+[n&&'nonce="'+n+'"',O+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?I(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return I(2);var n=((t={})[O]="",t["data-styled-version"]="5.3.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=F();return r&&(n.nonce=r),[o.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?I(2):o.createElement(de,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return I(3)},e}(),_e=function(e){var t=o.forwardRef((function(t,n){var r=(0,o.useContext)(ze),i=e.defaultProps,a=Oe(t,r,i);return o.createElement(e,h({},t,{theme:a,ref:n}))}));return f()(t,e),t.displayName="WithTheme("+w(e)+")",t},Ue=function(){return(0,o.useContext)(ze)},$e={StyleSheet:W,masterSheet:se},He=Re},1739:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},8152:function(e,t,n){"use strict";function r(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 o(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,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}(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.")}()}n.d(t,{Z:function(){return o}})}}]);