@r2u/javascript-ar-sdk 6.13.6 → 6.13.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/init.bundle.js +1 -1
- package/dist/sku.bundle.js +1 -1
- package/dist/{vendors.e0dbc8186a1e1d1b7ed5.bundle.js → vendors.da06437a35a276f25b43.bundle.js} +1 -1
- package/dist/{vendors.48549497964306a44232.bundle.js → vendors.fde4abedd2649dc86494.bundle.js} +6 -6
- package/dist/{vendors.48549497964306a44232.bundle.js.LICENSE.txt → vendors.fde4abedd2649dc86494.bundle.js.LICENSE.txt} +0 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var e,n,t,r,o={},u={};function i(e){var n=u[e];if(void 0!==n)return n.exports;var t=u[e]={exports:{}};return o[e].call(t.exports,t,t.exports,i),t.exports}i.m=o,i.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(n,{a:n}),n},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var o=Object.create(null);i.r(o);var u={};e=e||[null,n({}),n([]),n(n)];for(var a=2&r&&t;"object"==typeof a&&!~e.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((function(e){u[e]=function(){return t[e]}}));return u.default=function(){return t},i.d(o,u),o},i.d=function(e,n){for(var t in n)i.o(n,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce((function(n,t){return i.f[t](e,n),n}),[]))},i.u=function(e){return 691===e?"vendors.72e0cdbf51fef996d405.bundle.js":665===e?"vendors.6c46067ffeb7a1054cd1.bundle.js":215===e?"vendors.2864f1aaf3fa743e1983.bundle.js":410===e?"init.bundle.js":497===e?"config.bundle.js":30===e?"vendors.d0043338c48c5993c6a9.bundle.js":10===e?"vendors.
|
|
1
|
+
!function(){"use strict";var e,n,t,r,o={},u={};function i(e){var n=u[e];if(void 0!==n)return n.exports;var t=u[e]={exports:{}};return o[e].call(t.exports,t,t.exports,i),t.exports}i.m=o,i.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(n,{a:n}),n},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var o=Object.create(null);i.r(o);var u={};e=e||[null,n({}),n([]),n(n)];for(var a=2&r&&t;"object"==typeof a&&!~e.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((function(e){u[e]=function(){return t[e]}}));return u.default=function(){return t},i.d(o,u),o},i.d=function(e,n){for(var t in n)i.o(n,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce((function(n,t){return i.f[t](e,n),n}),[]))},i.u=function(e){return 691===e?"vendors.72e0cdbf51fef996d405.bundle.js":665===e?"vendors.6c46067ffeb7a1054cd1.bundle.js":215===e?"vendors.2864f1aaf3fa743e1983.bundle.js":410===e?"init.bundle.js":497===e?"config.bundle.js":30===e?"vendors.d0043338c48c5993c6a9.bundle.js":10===e?"vendors.fde4abedd2649dc86494.bundle.js":603===e?"vendors.5861a640ff3844504854.bundle.js":593===e?"vendors.da06437a35a276f25b43.bundle.js":850===e?"ar.bundle.js":465===e?"sku.bundle.js":361===e?"vendors.6e3f8af05556e404968a.bundle.js":428===e?"viewer.bundle.js":142===e?"analytics.bundle.js":869===e?"qrCode.bundle.js":void 0},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t={},r="R2U:",i.l=function(e,n,o,u){if(t[e])t[e].push(n);else{var a,d;if(void 0!==o)for(var c=document.getElementsByTagName("script"),f=0;f<c.length;f++){var l=c[f];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==r+o){a=l;break}}a||(d=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.setAttribute("data-webpack",r+o),a.src=e),t[e]=[n];var s=function(n,r){a.onerror=a.onload=null,clearTimeout(b);var o=t[e];if(delete t[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((function(e){return e(r)})),n)return n(r)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),d&&document.head.appendChild(a)}},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.p="https://unpkg.com/@r2u/javascript-ar-sdk@6.13.7/dist/",function(){var e={179:0};i.f.j=function(n,t){var r=i.o(e,n)?e[n]:void 0;if(0!==r)if(r)t.push(r[2]);else{var o=new Promise((function(t,o){r=e[n]=[t,o]}));t.push(r[2]=o);var u=i.p+i.u(n),a=new Error;i.l(u,(function(t){if(i.o(e,n)&&(0!==(r=e[n])&&(e[n]=void 0),r)){var o=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;a.message="Loading chunk "+n+" failed.\n("+o+": "+u+")",a.name="ChunkLoadError",a.type=o,a.request=u,r[1](a)}}),"chunk-"+n,n)}};var n=function(n,t){var r,o,u=t[0],a=t[1],d=t[2],c=0;if(u.some((function(n){return 0!==e[n]}))){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);if(d)d(i)}for(n&&n(t);c<u.length;c++)o=u[c],i.o(e,o)&&e[o]&&e[o][0](),e[u[c]]=0},t=self.webpackChunkR2U=self.webpackChunkR2U||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))}();var a={};i.r(a),i.d(a,{init:function(){return d},sku:function(){return l},ar:function(){return f},viewer:function(){return s},analytics:function(){return b},qrCode:function(){return h},config:function(){return c}});const d=e=>Promise.all([i.e(691),i.e(665),i.e(215),i.e(410)]).then(i.bind(i,6526)).then((n=>n.default(e))),c={changeLanguage:e=>Promise.all([i.e(665),i.e(497)]).then(i.bind(i,7328)).then((n=>n.default.changeLanguage(e)))},f={open:e=>Promise.all([i.e(691),i.e(30),i.e(665),i.e(10),i.e(215),i.e(603),i.e(593),i.e(850)]).then(i.bind(i,4804)).then((n=>n.default.open(e))),attach:e=>Promise.all([i.e(691),i.e(30),i.e(665),i.e(10),i.e(215),i.e(603),i.e(593),i.e(850)]).then(i.bind(i,4804)).then((n=>n.default.attach(e))),getLink:e=>Promise.all([i.e(691),i.e(30),i.e(665),i.e(10),i.e(215),i.e(603),i.e(593),i.e(850)]).then(i.bind(i,4804)).then((n=>n.default.getLink(e)))},l={isActive:e=>Promise.all([i.e(691),i.e(465)]).then(i.bind(i,6025)).then((n=>n.default.isActive(e))),getData:e=>Promise.all([i.e(691),i.e(465)]).then(i.bind(i,6025)).then((n=>n.default.getData(e)))},s={create:e=>Promise.all([i.e(691),i.e(30),i.e(10),i.e(361),i.e(593),i.e(428)]).then(i.bind(i,8305)).then((n=>n.default.create(e)))},b={send:e=>i.e(142).then(i.bind(i,9448)).then((n=>n.default.send(e)))},h={create:e=>Promise.all([i.e(30),i.e(361),i.e(869)]).then(i.bind(i,5004)).then((n=>n.default.create(e)))};document.dispatchEvent(new CustomEvent("r2u-sdk-loaded")),window.R2U=a}();
|
package/dist/init.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[410],{6504:function(e,n,t){t.d(n,{f2:function(){return u}});var i=t(8665),a=t(1580),r=t(5538),s=t(660),o=t(2297),c=t(2367),l=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};const u=i.Z.createInstance();n.ZP={init:({language:e})=>l(void 0,void 0,void 0,(function*(){const n=c.Z.customer.language,t=c.Z.customer.slug,i=e||n||"en",l=(0,o.Bv)(),d=yield(0,o.ki)(`${l}/locales/${i}/${t}.json`),p=d?t:"translation",f=["translation",...d?[t]:[]];return new Promise(((e,n)=>{u.use(a.Z).init({debug:!1,react:{useSuspense:!1},lng:i,fallbackLng:!1,supportedLngs:["pt","en","es"],ns:f,defaultNS:p,fallbackNS:"translation",load:"currentOnly",preload:[i],interpolation:{escapeValue:!1},backend:{backends:[s.Z,r.Z],backendOptions:[{prefix:"i18next_res_r2u_sdk_",enabled:!0,expirationTime:6048e5},{loadPath:`${l}/locales/{{lng}}/{{ns}}.json`,allowMultiloading:!0}]}},(t=>{t&&n(new Error("R2U - Translation init failed")),e()}))}))}))}},6526:function(e,n,t){t.r(n),t.d(n,{default:function(){return l}});var i=t(2367),a=t(7374),r=t(2297),s=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};var o=t(6504),c=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};function l({customerId:e,language:n,analyticsParams:t={dataLayerIntegration:!0,sessionDuration:30},refreshCache:l=!1}){return c(this,void 0,void 0,(function*(){if(!/^(?=[a-f\d]{24}$)(\d+[a-f]|[a-f]+\d)/i.test(e)&&!/^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i.test(e))throw new Error(`Invalid customer '${e}'`);i.Z.init=!0,i.Z.refreshCache=l;const c=yield function(e){return s(this,void 0,void 0,(function*(){return yield(0,r.U2)(`/customers/${e}`)}))}(e),u=yield(0,a.ZP)({client:e,dataLayerIntegration:t.dataLayerIntegration,sessionDurationMinutes:t.sessionDuration});i.Z.analytics=u,i.Z.customer=c,yield Promise.all([o.ZP.init({language:n})])}))}},7374:function(e,n,t){t.d(n,{J1:function(){return u},E9:function(){return d},XH:function(){return p},ar:function(){return f},KN:function(){return b},fQ:function(){return g},hN:function(){return v},lY:function(){return y},G0:function(){return w},fm:function(){return m}});var i=t(2085),a=t(5877),r=t(2367),s=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};const o="ar_link",c="ar_model_viewer",l="cta",u={componentDidMount:()=>r.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:o},scope:"page"}),onClick:()=>r.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:o}}),onFallback:()=>r.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o}}),onLike:()=>r.Z.analytics.send({event:i.U3.like,data:{[i.MB.placement]:o}}),onDislike:()=>r.Z.analytics.send({event:i.U3.dislike,data:{[i.MB.placement]:o}}),onSessionTimeCollect:e=>r.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:o}})},d={componentDidMount:()=>r.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:c},scope:"page"}),onClick:()=>r.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:c}}),onSessionTimeCollect:e=>r.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:c}})},p={onSessionStart:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.session_start}),onSessionEnd:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.session_end}),setSession:()=>{r.Z.analytics.webxrSet(i.D1.session_id,(0,a.v4)())},setCompatible:e=>{r.Z.analytics.webxrSet(i.D1.compatible,`${e}`)},onSceneViewerFallback:()=>Promise.all([r.Z.analytics.webxrSend({webxrEvent:i.Ui.scene_viewer_fallback}),r.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o},context:"webxr"})]),onFallback:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.fallback}),setPlaneMapped:()=>{r.Z.analytics.webxrSet(i.D1.plane_mapped,(new Date).toISOString())},setObjectPlaced:()=>{r.Z.analytics.webxrSet(i.D1.object_placed,(new Date).toISOString())},setTranslateInstructions:()=>{r.Z.analytics.webxrSet(i.D1.translate_instructions,(new Date).toISOString())},setRotateInstructions:()=>{r.Z.analytics.webxrSet(i.D1.rotate_instructions,(new Date).toISOString())},setFirstTranslation:()=>{r.Z.analytics.webxrSet(i.D1.first_translation,(new Date).toISOString())},setFirstRotation:()=>{r.Z.analytics.webxrSet(i.D1.first_rotation,(new Date).toISOString())},setReset:()=>{r.Z.analytics.webxrSet(i.D1.reset,(new Date).toISOString())},onShare:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.share}),onExit:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.exit}),onLike:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.like}),onDislike:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.dislike}),onCallToAction:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.call_to_action}),onTranslation:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.translation}),onRotation:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.rotation})},f={onClick:()=>r.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:l},context:"cart"})},v=e=>{r.Z.analytics.set(i.MB.sku,e)},y=e=>{r.Z.analytics.set(i.MB.manufacturer_id,e)},w=e=>{r.Z.analytics.set(i.MB.is_active_3d,`${e}`),r.Z.analytics.send({event:i.U3.product_page_view})},b=e=>{r.Z.analytics.set(i.MB.experiment_id,e)},g=e=>{r.Z.analytics.set(i.MB.variation_id,e)},m=()=>s(void 0,void 0,void 0,(function*(){const e=yield(0,i.cE)();return r.Z.analytics.set(i.MB.fingerprint,e),e}));n.ZP=({client:e,dataLayerIntegration:n,sessionDurationMinutes:t,info:a={}})=>s(void 0,void 0,void 0,(function*(){const r={version:"6.13.6",gcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportEvent",webxrGcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportWebXREvent",debug:!!new URLSearchParams(window.location.search).get("realidade-aumentada-debug"),sessionDurationMinutes:t,dataLayerIntegration:n},s=new i.ZP(r,Object.assign(Object.assign({},a),{[i.MB.client]:e}));return yield s.init(),s}))},2297:function(e,n,t){t.d(n,{U2:function(){return s},v_:function(){return o},ki:function(){return c},Bv:function(){return l}});var i=t(2367),a=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};const r="https://api.r2u.io";function s(e){return a(this,void 0,void 0,(function*(){const n={};i.Z.refreshCache&&(n["Cache-Control"]="max-age=0");return(yield fetch(`${r}${e}`,{method:"get",headers:n})).json()}))}function o(e,n){return a(this,void 0,void 0,(function*(){return(yield fetch(`${r}${e}`,{method:"POST",body:JSON.stringify(n)})).json()}))}function c(e){return a(this,void 0,void 0,(function*(){try{const{status:n}=yield fetch(e,{method:"HEAD"});return 200===n}catch(e){return console.error(e),!1}}))}const l=()=>"https://sdk.r2u.io"},2367:function(e,n){const t={init:!1,customer:{_id:"",slug:"",language:"en",hdri:null,exposure:null,bloom:null,experiments:{overrides:{}},viewerOptions:{}},analytics:{set:(e,n)=>{},send:({event:e,data:n,scope:t})=>Promise.resolve()},products:{},hasAutoOpenedAR:!1,growthbook:{},refreshCache:!1};n.Z=t},4147:function(e){e.exports=JSON.parse('{"name":"@r2u/javascript-ar-sdk","version":"6.13.6","main":"dist/index.js","unpkg":"dist/index.js","types":"dist/index.d.ts","repository":"https://github.com/r2u-io/javascript-ar-sdk","files":["dist"],"scripts":{"dev":"yarn build:dev && webpack serve --mode=development","build:dev":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=development","build":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=production","clean":"rm -rf dist/ public/dist/","test":"jest --config ./jest.config.js","stage":"yarn build:dev && gsutil -m cp -R ./public gs://r2u-integrations-bucket/_staging/sdk/","prettier":"prettier --write src","lint":"eslint \'./src/**/*.{js,ts,tsx}\'","eject":"rescripts eject"},"peerDependencies":{"react":"^16.13.1","react-dom":"^16.13.1"},"dependencies":{"@r2u/analytics":"^4.3.3","@r2u/react-ar-components":"^5.4.15","@r2u/viewer":"^1.5.6","@types/react-slick":"^0.23.10","i18next":"^20.2.1","i18next-chained-backend":"^2.1.0","i18next-http-backend":"^1.2.1","i18next-localstorage-backend":"^3.1.2","qrcode.react":"^1.0.1","querystring":"^0.2.0","react":"^17.0.2","react-dom":"^17.0.2","react-i18next":"^11.8.13","react-shadow":"^19.0.2","react-slick":"^0.29.0","styled-components":"^5.2.3"},"devDependencies":{"@fingerprintjs/fingerprintjs":"^3.3.0","@growthbook/growthbook":"^0.12.0","@types/jest":"^26.0.15","@types/node":"^13.11.1","@types/qrcode.react":"^1.0.1","@types/react":"^16.9.33","@types/react-dom":"^16.9.6","@types/styled-components":"^5.1.9","@typescript-eslint/eslint-plugin":"^2.3.1","@typescript-eslint/parser":"^2.3.1","eslint":"^7.22.0","eslint-config-prettier":"^6.12.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-jest":"^22.17.0","eslint-plugin-node":"^8.0.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.1.1","eslint-plugin-react":"^7.14.3","eslint-plugin-standard":"^4.0.0","file-loader":"^6.2.0","jest":"^24.9.0","prettier":"^2.1.2","process":"^0.11.10","three":"^0.131.2","ts-jest":"^26.4.4","ts-loader":"^8.0.17","tsconfig-paths-webpack-plugin":"^3.5.1","typescript":"^3.8.3","util":"^0.12.3","webpack":"^5.24.3","webpack-bundle-analyzer":"^4.4.0","webpack-cli":"^4.5.0","webpack-dev-server":"3.10.3"},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]}}')}}]);
|
|
1
|
+
"use strict";(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[410],{6504:function(e,n,t){t.d(n,{f2:function(){return u}});var i=t(8665),a=t(1580),r=t(5538),s=t(660),o=t(2297),c=t(2367),l=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};const u=i.Z.createInstance();n.ZP={init:({language:e})=>l(void 0,void 0,void 0,(function*(){const n=c.Z.customer.language,t=c.Z.customer.slug,i=e||n||"en",l=(0,o.Bv)(),d=yield(0,o.ki)(`${l}/locales/${i}/${t}.json`),p=d?t:"translation",f=["translation",...d?[t]:[]];return new Promise(((e,n)=>{u.use(a.Z).init({debug:!1,react:{useSuspense:!1},lng:i,fallbackLng:!1,supportedLngs:["pt","en","es"],ns:f,defaultNS:p,fallbackNS:"translation",load:"currentOnly",preload:[i],interpolation:{escapeValue:!1},backend:{backends:[s.Z,r.Z],backendOptions:[{prefix:"i18next_res_r2u_sdk_",enabled:!0,expirationTime:6048e5},{loadPath:`${l}/locales/{{lng}}/{{ns}}.json`,allowMultiloading:!0}]}},(t=>{t&&n(new Error("R2U - Translation init failed")),e()}))}))}))}},6526:function(e,n,t){t.r(n),t.d(n,{default:function(){return l}});var i=t(2367),a=t(7374),r=t(2297),s=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};var o=t(6504),c=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};function l({customerId:e,language:n,analyticsParams:t={dataLayerIntegration:!0,sessionDuration:30},refreshCache:l=!1}){return c(this,void 0,void 0,(function*(){if(!/^(?=[a-f\d]{24}$)(\d+[a-f]|[a-f]+\d)/i.test(e)&&!/^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i.test(e))throw new Error(`Invalid customer '${e}'`);i.Z.init=!0,i.Z.refreshCache=l;const c=yield function(e){return s(this,void 0,void 0,(function*(){return yield(0,r.U2)(`/customers/${e}`)}))}(e),u=yield(0,a.ZP)({client:e,dataLayerIntegration:t.dataLayerIntegration,sessionDurationMinutes:t.sessionDuration});i.Z.analytics=u,i.Z.customer=c,yield Promise.all([o.ZP.init({language:n})])}))}},7374:function(e,n,t){t.d(n,{J1:function(){return u},E9:function(){return d},XH:function(){return p},ar:function(){return f},KN:function(){return b},fQ:function(){return g},hN:function(){return v},lY:function(){return y},G0:function(){return w},fm:function(){return m}});var i=t(2085),a=t(5877),r=t(2367),s=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};const o="ar_link",c="ar_model_viewer",l="cta",u={componentDidMount:()=>r.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:o},scope:"page"}),onClick:()=>r.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:o}}),onFallback:()=>r.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o}}),onLike:()=>r.Z.analytics.send({event:i.U3.like,data:{[i.MB.placement]:o}}),onDislike:()=>r.Z.analytics.send({event:i.U3.dislike,data:{[i.MB.placement]:o}}),onSessionTimeCollect:e=>r.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:o}})},d={componentDidMount:()=>r.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:c},scope:"page"}),onClick:()=>r.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:c}}),onSessionTimeCollect:e=>r.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:c}})},p={onSessionStart:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.session_start}),onSessionEnd:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.session_end}),setSession:()=>{r.Z.analytics.webxrSet(i.D1.session_id,(0,a.v4)())},setCompatible:e=>{r.Z.analytics.webxrSet(i.D1.compatible,`${e}`)},onSceneViewerFallback:()=>Promise.all([r.Z.analytics.webxrSend({webxrEvent:i.Ui.scene_viewer_fallback}),r.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o},context:"webxr"})]),onFallback:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.fallback}),setPlaneMapped:()=>{r.Z.analytics.webxrSet(i.D1.plane_mapped,(new Date).toISOString())},setObjectPlaced:()=>{r.Z.analytics.webxrSet(i.D1.object_placed,(new Date).toISOString())},setTranslateInstructions:()=>{r.Z.analytics.webxrSet(i.D1.translate_instructions,(new Date).toISOString())},setRotateInstructions:()=>{r.Z.analytics.webxrSet(i.D1.rotate_instructions,(new Date).toISOString())},setFirstTranslation:()=>{r.Z.analytics.webxrSet(i.D1.first_translation,(new Date).toISOString())},setFirstRotation:()=>{r.Z.analytics.webxrSet(i.D1.first_rotation,(new Date).toISOString())},setReset:()=>{r.Z.analytics.webxrSet(i.D1.reset,(new Date).toISOString())},onShare:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.share}),onExit:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.exit}),onLike:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.like}),onDislike:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.dislike}),onCallToAction:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.call_to_action}),onTranslation:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.translation}),onRotation:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.rotation})},f={onClick:()=>r.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:l},context:"cart"})},v=e=>{r.Z.analytics.set(i.MB.sku,e)},y=e=>{r.Z.analytics.set(i.MB.manufacturer_id,e)},w=e=>{r.Z.analytics.set(i.MB.is_active_3d,`${e}`),r.Z.analytics.send({event:i.U3.product_page_view})},b=e=>{r.Z.analytics.set(i.MB.experiment_id,e)},g=e=>{r.Z.analytics.set(i.MB.variation_id,e)},m=()=>s(void 0,void 0,void 0,(function*(){const e=yield(0,i.cE)();return r.Z.analytics.set(i.MB.fingerprint,e),e}));n.ZP=({client:e,dataLayerIntegration:n,sessionDurationMinutes:t,info:a={}})=>s(void 0,void 0,void 0,(function*(){const r={version:"6.13.7",gcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportEvent",webxrGcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportWebXREvent",debug:!!new URLSearchParams(window.location.search).get("realidade-aumentada-debug"),sessionDurationMinutes:t,dataLayerIntegration:n},s=new i.ZP(r,Object.assign(Object.assign({},a),{[i.MB.client]:e}));return yield s.init(),s}))},2297:function(e,n,t){t.d(n,{U2:function(){return s},v_:function(){return o},ki:function(){return c},Bv:function(){return l}});var i=t(2367),a=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};const r="https://api.r2u.io";function s(e){return a(this,void 0,void 0,(function*(){const n={};i.Z.refreshCache&&(n["Cache-Control"]="max-age=0");return(yield fetch(`${r}${e}`,{method:"get",headers:n})).json()}))}function o(e,n){return a(this,void 0,void 0,(function*(){return(yield fetch(`${r}${e}`,{method:"POST",body:JSON.stringify(n)})).json()}))}function c(e){return a(this,void 0,void 0,(function*(){try{const{status:n}=yield fetch(e,{method:"HEAD"});return 200===n}catch(e){return console.error(e),!1}}))}const l=()=>"https://sdk.r2u.io"},2367:function(e,n){const t={init:!1,customer:{_id:"",slug:"",language:"en",hdri:null,exposure:null,bloom:null,experiments:{overrides:{}},viewerOptions:{}},analytics:{set:(e,n)=>{},send:({event:e,data:n,scope:t})=>Promise.resolve()},products:{},hasAutoOpenedAR:!1,growthbook:{},refreshCache:!1};n.Z=t},4147:function(e){e.exports=JSON.parse('{"name":"@r2u/javascript-ar-sdk","version":"6.13.7","main":"dist/index.js","unpkg":"dist/index.js","types":"dist/index.d.ts","repository":"https://github.com/r2u-io/javascript-ar-sdk","files":["dist"],"scripts":{"dev":"yarn build:dev && webpack serve --mode=development","build:dev":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=development","build":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=production","clean":"rm -rf dist/ public/dist/","test":"jest --config ./jest.config.js","stage":"yarn build:dev && gsutil -m cp -R ./public gs://r2u-integrations-bucket/_staging/sdk/","prettier":"prettier --write src","lint":"eslint \'./src/**/*.{js,ts,tsx}\'","eject":"rescripts eject"},"peerDependencies":{"react":"^16.13.1","react-dom":"^16.13.1"},"dependencies":{"@r2u/analytics":"^4.3.3","@r2u/react-ar-components":"^5.4.15","@r2u/viewer":"^1.5.8","@types/react-slick":"^0.23.10","i18next":"^20.2.1","i18next-chained-backend":"^2.1.0","i18next-http-backend":"^1.2.1","i18next-localstorage-backend":"^3.1.2","qrcode.react":"^1.0.1","querystring":"^0.2.0","react":"^17.0.2","react-dom":"^17.0.2","react-i18next":"^11.8.13","react-shadow":"^19.0.2","react-slick":"^0.29.0","styled-components":"^5.2.3"},"devDependencies":{"@fingerprintjs/fingerprintjs":"^3.3.0","@growthbook/growthbook":"^0.12.0","@types/jest":"^26.0.15","@types/node":"^13.11.1","@types/qrcode.react":"^1.0.1","@types/react":"^16.9.33","@types/react-dom":"^16.9.6","@types/styled-components":"^5.1.9","@typescript-eslint/eslint-plugin":"^2.3.1","@typescript-eslint/parser":"^2.3.1","eslint":"^7.22.0","eslint-config-prettier":"^6.12.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-jest":"^22.17.0","eslint-plugin-node":"^8.0.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.1.1","eslint-plugin-react":"^7.14.3","eslint-plugin-standard":"^4.0.0","file-loader":"^6.2.0","jest":"^24.9.0","prettier":"^2.1.2","process":"^0.11.10","three":"^0.131.2","ts-jest":"^26.4.4","ts-loader":"^8.0.17","tsconfig-paths-webpack-plugin":"^3.5.1","typescript":"^3.8.3","util":"^0.12.3","webpack":"^5.24.3","webpack-bundle-analyzer":"^4.4.0","webpack-cli":"^4.5.0","webpack-dev-server":"3.10.3"},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]}}')}}]);
|
package/dist/sku.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[465],{2587:function(e){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,r){n=n||"&",i=i||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(n);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var l=0;l<c;++l){var u,d,p,f,v=e[l].replace(a,"%20"),y=v.indexOf(i);y>=0?(u=v.substr(0,y),d=v.substr(y+1)):(u=v,d=""),p=decodeURIComponent(u),f=decodeURIComponent(d),t(o,p)?Array.isArray(o[p])?o[p].push(f):o[p]=[o[p],f]:o[p]=f}return o}},2361:function(e){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,i,r){return n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(t(r))+i;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[r]))})).filter(Boolean).join(n):r?encodeURIComponent(t(r))+i+encodeURIComponent(t(e)):""}},7673:function(e,t,n){t.decode=t.parse=n(2587),t.encode=t.stringify=n(2361)},6025:function(e,t,n){n.r(t);var i=n(2367),r=n(7523),o=n(7374),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};t.default={isActive:function(e){return a(this,void 0,void 0,(function*(){if(!i.Z.init)return Promise.reject(new Error("R2U - Not initialized"));if(!e)return Promise.reject(new Error("R2U - Missing SKU"));o.hN(e);try{const{isActive:t,manufacturerId:n}=yield(0,r.Z)(e);return n&&o.lY(n),o.G0(t),t}catch(e){return!1}}))},getData:function(e){return a(this,void 0,void 0,(function*(){if(!i.Z.init)return Promise.reject(new Error("R2U - Not initialized"));if(!e)return Promise.reject(new Error("R2U - Missing SKU"));return yield(0,r.Z)(e)}))}}},7374:function(e,t,n){n.d(t,{J1:function(){return u},E9:function(){return d},XH:function(){return p},ar:function(){return f},KN:function(){return w},fQ:function(){return b},hN:function(){return v},lY:function(){return y},G0:function(){return m},fm:function(){return h}});var i=n(2085),r=n(5877),o=n(2367),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const s="ar_link",c="ar_model_viewer",l="cta",u={componentDidMount:()=>o.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:s},scope:"page"}),onClick:()=>o.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:s}}),onFallback:()=>o.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:s}}),onLike:()=>o.Z.analytics.send({event:i.U3.like,data:{[i.MB.placement]:s}}),onDislike:()=>o.Z.analytics.send({event:i.U3.dislike,data:{[i.MB.placement]:s}}),onSessionTimeCollect:e=>o.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:s}})},d={componentDidMount:()=>o.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:c},scope:"page"}),onClick:()=>o.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:c}}),onSessionTimeCollect:e=>o.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:c}})},p={onSessionStart:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.session_start}),onSessionEnd:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.session_end}),setSession:()=>{o.Z.analytics.webxrSet(i.D1.session_id,(0,r.v4)())},setCompatible:e=>{o.Z.analytics.webxrSet(i.D1.compatible,`${e}`)},onSceneViewerFallback:()=>Promise.all([o.Z.analytics.webxrSend({webxrEvent:i.Ui.scene_viewer_fallback}),o.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:s},context:"webxr"})]),onFallback:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.fallback}),setPlaneMapped:()=>{o.Z.analytics.webxrSet(i.D1.plane_mapped,(new Date).toISOString())},setObjectPlaced:()=>{o.Z.analytics.webxrSet(i.D1.object_placed,(new Date).toISOString())},setTranslateInstructions:()=>{o.Z.analytics.webxrSet(i.D1.translate_instructions,(new Date).toISOString())},setRotateInstructions:()=>{o.Z.analytics.webxrSet(i.D1.rotate_instructions,(new Date).toISOString())},setFirstTranslation:()=>{o.Z.analytics.webxrSet(i.D1.first_translation,(new Date).toISOString())},setFirstRotation:()=>{o.Z.analytics.webxrSet(i.D1.first_rotation,(new Date).toISOString())},setReset:()=>{o.Z.analytics.webxrSet(i.D1.reset,(new Date).toISOString())},onShare:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.share}),onExit:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.exit}),onLike:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.like}),onDislike:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.dislike}),onCallToAction:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.call_to_action}),onTranslation:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.translation}),onRotation:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.rotation})},f={onClick:()=>o.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:l},context:"cart"})},v=e=>{o.Z.analytics.set(i.MB.sku,e)},y=e=>{o.Z.analytics.set(i.MB.manufacturer_id,e)},m=e=>{o.Z.analytics.set(i.MB.is_active_3d,`${e}`),o.Z.analytics.send({event:i.U3.product_page_view})},w=e=>{o.Z.analytics.set(i.MB.experiment_id,e)},b=e=>{o.Z.analytics.set(i.MB.variation_id,e)},h=()=>a(void 0,void 0,void 0,(function*(){const e=yield(0,i.cE)();return o.Z.analytics.set(i.MB.fingerprint,e),e}));t.ZP=({client:e,dataLayerIntegration:t,sessionDurationMinutes:n,info:r={}})=>a(void 0,void 0,void 0,(function*(){const o={version:"6.13.6",gcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportEvent",webxrGcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportWebXREvent",debug:!!new URLSearchParams(window.location.search).get("realidade-aumentada-debug"),sessionDurationMinutes:n,dataLayerIntegration:t},a=new i.ZP(o,Object.assign(Object.assign({},r),{[i.MB.client]:e}));return yield a.init(),a}))},7523:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(2297),r=n(2367),o=n(7673),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function s(e){return a(this,void 0,void 0,(function*(){if(r.Z.products[e])return Promise.resolve(r.Z.products[e]);const t=o.encode({"product.sku":e,"asset.types":["GLB","USDZ"].join(","),"product_review.status":"RUNNING"}),[n]=yield(0,i.U2)(`/customers/${r.Z.customer._id}/products/assets?${t}`);if(!n)throw new Error("R2U - SKU not found");const a=n.assets||[],s=n.product_reviews||[],c=a.find((e=>"GLB"===e.type)),l=a.find((e=>"USDZ"===e.type)),u={glb:c?c.url:"",usdz:l?l.url:"",isActive:s.length>0,name:n.name,placement:n.placement||"floor",resize:n.resize||!1,sound:n.soundUrl,modelId:n.modelId,manufacturerId:n.manufacturerId,pdpUrl:n.pdpUrl,hdri:n.hdri,exposure:n.exposure,bloom:n.bloom,viewerOptions:n.viewerOptions||{}};return r.Z.products[e]=u,u}))}},2297:function(e,t,n){n.d(t,{U2:function(){return a},v_:function(){return s},ki:function(){return c},Bv:function(){return l}});var i=n(2367),r=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const o="https://api.r2u.io";function a(e){return r(this,void 0,void 0,(function*(){const t={};i.Z.refreshCache&&(t["Cache-Control"]="max-age=0");return(yield fetch(`${o}${e}`,{method:"get",headers:t})).json()}))}function s(e,t){return r(this,void 0,void 0,(function*(){return(yield fetch(`${o}${e}`,{method:"POST",body:JSON.stringify(t)})).json()}))}function c(e){return r(this,void 0,void 0,(function*(){try{const{status:t}=yield fetch(e,{method:"HEAD"});return 200===t}catch(e){return console.error(e),!1}}))}const l=()=>"https://sdk.r2u.io"},2367:function(e,t){const n={init:!1,customer:{_id:"",slug:"",language:"en",hdri:null,exposure:null,bloom:null,experiments:{overrides:{}},viewerOptions:{}},analytics:{set:(e,t)=>{},send:({event:e,data:t,scope:n})=>Promise.resolve()},products:{},hasAutoOpenedAR:!1,growthbook:{},refreshCache:!1};t.Z=n},4147:function(e){e.exports=JSON.parse('{"name":"@r2u/javascript-ar-sdk","version":"6.13.6","main":"dist/index.js","unpkg":"dist/index.js","types":"dist/index.d.ts","repository":"https://github.com/r2u-io/javascript-ar-sdk","files":["dist"],"scripts":{"dev":"yarn build:dev && webpack serve --mode=development","build:dev":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=development","build":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=production","clean":"rm -rf dist/ public/dist/","test":"jest --config ./jest.config.js","stage":"yarn build:dev && gsutil -m cp -R ./public gs://r2u-integrations-bucket/_staging/sdk/","prettier":"prettier --write src","lint":"eslint \'./src/**/*.{js,ts,tsx}\'","eject":"rescripts eject"},"peerDependencies":{"react":"^16.13.1","react-dom":"^16.13.1"},"dependencies":{"@r2u/analytics":"^4.3.3","@r2u/react-ar-components":"^5.4.15","@r2u/viewer":"^1.5.6","@types/react-slick":"^0.23.10","i18next":"^20.2.1","i18next-chained-backend":"^2.1.0","i18next-http-backend":"^1.2.1","i18next-localstorage-backend":"^3.1.2","qrcode.react":"^1.0.1","querystring":"^0.2.0","react":"^17.0.2","react-dom":"^17.0.2","react-i18next":"^11.8.13","react-shadow":"^19.0.2","react-slick":"^0.29.0","styled-components":"^5.2.3"},"devDependencies":{"@fingerprintjs/fingerprintjs":"^3.3.0","@growthbook/growthbook":"^0.12.0","@types/jest":"^26.0.15","@types/node":"^13.11.1","@types/qrcode.react":"^1.0.1","@types/react":"^16.9.33","@types/react-dom":"^16.9.6","@types/styled-components":"^5.1.9","@typescript-eslint/eslint-plugin":"^2.3.1","@typescript-eslint/parser":"^2.3.1","eslint":"^7.22.0","eslint-config-prettier":"^6.12.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-jest":"^22.17.0","eslint-plugin-node":"^8.0.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.1.1","eslint-plugin-react":"^7.14.3","eslint-plugin-standard":"^4.0.0","file-loader":"^6.2.0","jest":"^24.9.0","prettier":"^2.1.2","process":"^0.11.10","three":"^0.131.2","ts-jest":"^26.4.4","ts-loader":"^8.0.17","tsconfig-paths-webpack-plugin":"^3.5.1","typescript":"^3.8.3","util":"^0.12.3","webpack":"^5.24.3","webpack-bundle-analyzer":"^4.4.0","webpack-cli":"^4.5.0","webpack-dev-server":"3.10.3"},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]}}')}}]);
|
|
1
|
+
"use strict";(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[465],{2587:function(e){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,r){n=n||"&",i=i||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(n);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var l=0;l<c;++l){var u,d,p,f,v=e[l].replace(a,"%20"),y=v.indexOf(i);y>=0?(u=v.substr(0,y),d=v.substr(y+1)):(u=v,d=""),p=decodeURIComponent(u),f=decodeURIComponent(d),t(o,p)?Array.isArray(o[p])?o[p].push(f):o[p]=[o[p],f]:o[p]=f}return o}},2361:function(e){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,i,r){return n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(t(r))+i;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[r]))})).filter(Boolean).join(n):r?encodeURIComponent(t(r))+i+encodeURIComponent(t(e)):""}},7673:function(e,t,n){t.decode=t.parse=n(2587),t.encode=t.stringify=n(2361)},6025:function(e,t,n){n.r(t);var i=n(2367),r=n(7523),o=n(7374),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};t.default={isActive:function(e){return a(this,void 0,void 0,(function*(){if(!i.Z.init)return Promise.reject(new Error("R2U - Not initialized"));if(!e)return Promise.reject(new Error("R2U - Missing SKU"));o.hN(e);try{const{isActive:t,manufacturerId:n}=yield(0,r.Z)(e);return n&&o.lY(n),o.G0(t),t}catch(e){return!1}}))},getData:function(e){return a(this,void 0,void 0,(function*(){if(!i.Z.init)return Promise.reject(new Error("R2U - Not initialized"));if(!e)return Promise.reject(new Error("R2U - Missing SKU"));return yield(0,r.Z)(e)}))}}},7374:function(e,t,n){n.d(t,{J1:function(){return u},E9:function(){return d},XH:function(){return p},ar:function(){return f},KN:function(){return w},fQ:function(){return b},hN:function(){return v},lY:function(){return y},G0:function(){return m},fm:function(){return h}});var i=n(2085),r=n(5877),o=n(2367),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const s="ar_link",c="ar_model_viewer",l="cta",u={componentDidMount:()=>o.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:s},scope:"page"}),onClick:()=>o.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:s}}),onFallback:()=>o.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:s}}),onLike:()=>o.Z.analytics.send({event:i.U3.like,data:{[i.MB.placement]:s}}),onDislike:()=>o.Z.analytics.send({event:i.U3.dislike,data:{[i.MB.placement]:s}}),onSessionTimeCollect:e=>o.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:s}})},d={componentDidMount:()=>o.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:c},scope:"page"}),onClick:()=>o.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:c}}),onSessionTimeCollect:e=>o.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:c}})},p={onSessionStart:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.session_start}),onSessionEnd:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.session_end}),setSession:()=>{o.Z.analytics.webxrSet(i.D1.session_id,(0,r.v4)())},setCompatible:e=>{o.Z.analytics.webxrSet(i.D1.compatible,`${e}`)},onSceneViewerFallback:()=>Promise.all([o.Z.analytics.webxrSend({webxrEvent:i.Ui.scene_viewer_fallback}),o.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:s},context:"webxr"})]),onFallback:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.fallback}),setPlaneMapped:()=>{o.Z.analytics.webxrSet(i.D1.plane_mapped,(new Date).toISOString())},setObjectPlaced:()=>{o.Z.analytics.webxrSet(i.D1.object_placed,(new Date).toISOString())},setTranslateInstructions:()=>{o.Z.analytics.webxrSet(i.D1.translate_instructions,(new Date).toISOString())},setRotateInstructions:()=>{o.Z.analytics.webxrSet(i.D1.rotate_instructions,(new Date).toISOString())},setFirstTranslation:()=>{o.Z.analytics.webxrSet(i.D1.first_translation,(new Date).toISOString())},setFirstRotation:()=>{o.Z.analytics.webxrSet(i.D1.first_rotation,(new Date).toISOString())},setReset:()=>{o.Z.analytics.webxrSet(i.D1.reset,(new Date).toISOString())},onShare:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.share}),onExit:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.exit}),onLike:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.like}),onDislike:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.dislike}),onCallToAction:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.call_to_action}),onTranslation:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.translation}),onRotation:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.rotation})},f={onClick:()=>o.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:l},context:"cart"})},v=e=>{o.Z.analytics.set(i.MB.sku,e)},y=e=>{o.Z.analytics.set(i.MB.manufacturer_id,e)},m=e=>{o.Z.analytics.set(i.MB.is_active_3d,`${e}`),o.Z.analytics.send({event:i.U3.product_page_view})},w=e=>{o.Z.analytics.set(i.MB.experiment_id,e)},b=e=>{o.Z.analytics.set(i.MB.variation_id,e)},h=()=>a(void 0,void 0,void 0,(function*(){const e=yield(0,i.cE)();return o.Z.analytics.set(i.MB.fingerprint,e),e}));t.ZP=({client:e,dataLayerIntegration:t,sessionDurationMinutes:n,info:r={}})=>a(void 0,void 0,void 0,(function*(){const o={version:"6.13.7",gcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportEvent",webxrGcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportWebXREvent",debug:!!new URLSearchParams(window.location.search).get("realidade-aumentada-debug"),sessionDurationMinutes:n,dataLayerIntegration:t},a=new i.ZP(o,Object.assign(Object.assign({},r),{[i.MB.client]:e}));return yield a.init(),a}))},7523:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(2297),r=n(2367),o=n(7673),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function s(e){return a(this,void 0,void 0,(function*(){if(r.Z.products[e])return Promise.resolve(r.Z.products[e]);const t=o.encode({"product.sku":e,"asset.types":["GLB","USDZ"].join(","),"product_review.status":"RUNNING"}),[n]=yield(0,i.U2)(`/customers/${r.Z.customer._id}/products/assets?${t}`);if(!n)throw new Error("R2U - SKU not found");const a=n.assets||[],s=n.product_reviews||[],c=a.find((e=>"GLB"===e.type)),l=a.find((e=>"USDZ"===e.type)),u={glb:c?c.url:"",usdz:l?l.url:"",isActive:s.length>0,name:n.name,placement:n.placement||"floor",resize:n.resize||!1,sound:n.soundUrl,modelId:n.modelId,manufacturerId:n.manufacturerId,pdpUrl:n.pdpUrl,hdri:n.hdri,exposure:n.exposure,bloom:n.bloom,viewerOptions:n.viewerOptions||{}};return r.Z.products[e]=u,u}))}},2297:function(e,t,n){n.d(t,{U2:function(){return a},v_:function(){return s},ki:function(){return c},Bv:function(){return l}});var i=n(2367),r=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const o="https://api.r2u.io";function a(e){return r(this,void 0,void 0,(function*(){const t={};i.Z.refreshCache&&(t["Cache-Control"]="max-age=0");return(yield fetch(`${o}${e}`,{method:"get",headers:t})).json()}))}function s(e,t){return r(this,void 0,void 0,(function*(){return(yield fetch(`${o}${e}`,{method:"POST",body:JSON.stringify(t)})).json()}))}function c(e){return r(this,void 0,void 0,(function*(){try{const{status:t}=yield fetch(e,{method:"HEAD"});return 200===t}catch(e){return console.error(e),!1}}))}const l=()=>"https://sdk.r2u.io"},2367:function(e,t){const n={init:!1,customer:{_id:"",slug:"",language:"en",hdri:null,exposure:null,bloom:null,experiments:{overrides:{}},viewerOptions:{}},analytics:{set:(e,t)=>{},send:({event:e,data:t,scope:n})=>Promise.resolve()},products:{},hasAutoOpenedAR:!1,growthbook:{},refreshCache:!1};t.Z=n},4147:function(e){e.exports=JSON.parse('{"name":"@r2u/javascript-ar-sdk","version":"6.13.7","main":"dist/index.js","unpkg":"dist/index.js","types":"dist/index.d.ts","repository":"https://github.com/r2u-io/javascript-ar-sdk","files":["dist"],"scripts":{"dev":"yarn build:dev && webpack serve --mode=development","build:dev":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=development","build":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=production","clean":"rm -rf dist/ public/dist/","test":"jest --config ./jest.config.js","stage":"yarn build:dev && gsutil -m cp -R ./public gs://r2u-integrations-bucket/_staging/sdk/","prettier":"prettier --write src","lint":"eslint \'./src/**/*.{js,ts,tsx}\'","eject":"rescripts eject"},"peerDependencies":{"react":"^16.13.1","react-dom":"^16.13.1"},"dependencies":{"@r2u/analytics":"^4.3.3","@r2u/react-ar-components":"^5.4.15","@r2u/viewer":"^1.5.8","@types/react-slick":"^0.23.10","i18next":"^20.2.1","i18next-chained-backend":"^2.1.0","i18next-http-backend":"^1.2.1","i18next-localstorage-backend":"^3.1.2","qrcode.react":"^1.0.1","querystring":"^0.2.0","react":"^17.0.2","react-dom":"^17.0.2","react-i18next":"^11.8.13","react-shadow":"^19.0.2","react-slick":"^0.29.0","styled-components":"^5.2.3"},"devDependencies":{"@fingerprintjs/fingerprintjs":"^3.3.0","@growthbook/growthbook":"^0.12.0","@types/jest":"^26.0.15","@types/node":"^13.11.1","@types/qrcode.react":"^1.0.1","@types/react":"^16.9.33","@types/react-dom":"^16.9.6","@types/styled-components":"^5.1.9","@typescript-eslint/eslint-plugin":"^2.3.1","@typescript-eslint/parser":"^2.3.1","eslint":"^7.22.0","eslint-config-prettier":"^6.12.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-jest":"^22.17.0","eslint-plugin-node":"^8.0.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.1.1","eslint-plugin-react":"^7.14.3","eslint-plugin-standard":"^4.0.0","file-loader":"^6.2.0","jest":"^24.9.0","prettier":"^2.1.2","process":"^0.11.10","three":"^0.131.2","ts-jest":"^26.4.4","ts-loader":"^8.0.17","tsconfig-paths-webpack-plugin":"^3.5.1","typescript":"^3.8.3","util":"^0.12.3","webpack":"^5.24.3","webpack-bundle-analyzer":"^4.4.0","webpack-cli":"^4.5.0","webpack-dev-server":"3.10.3"},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]}}')}}]);
|
package/dist/{vendors.e0dbc8186a1e1d1b7ed5.bundle.js → vendors.da06437a35a276f25b43.bundle.js}
RENAMED
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
a:hover {
|
|
18
18
|
content: url('https://sdk.r2u.io/assets/r2u-icon.svg');
|
|
19
19
|
}
|
|
20
|
-
`;var a=({position:e})=>i.createElement(s,{position:e},i.createElement("a",{href:"https://r2u.io",target:"_blank",rel:"noopener noreferrer"},i.createElement("img",{alt:""})))},7374:function(e,t,n){n.d(t,{J1:function(){return u},E9:function(){return d},XH:function(){return p},ar:function(){return C},KN:function(){return m},fQ:function(){return h},hN:function(){return f},lY:function(){return v},G0:function(){return w},fm:function(){return g}});var i=n(2085),r=n(5877),s=n(2367),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};const o="ar_link",c="ar_model_viewer",l="cta",u={componentDidMount:()=>s.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:o},scope:"page"}),onClick:()=>s.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:o}}),onFallback:()=>s.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o}}),onLike:()=>s.Z.analytics.send({event:i.U3.like,data:{[i.MB.placement]:o}}),onDislike:()=>s.Z.analytics.send({event:i.U3.dislike,data:{[i.MB.placement]:o}}),onSessionTimeCollect:e=>s.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:o}})},d={componentDidMount:()=>s.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:c},scope:"page"}),onClick:()=>s.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:c}}),onSessionTimeCollect:e=>s.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:c}})},p={onSessionStart:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.session_start}),onSessionEnd:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.session_end}),setSession:()=>{s.Z.analytics.webxrSet(i.D1.session_id,(0,r.v4)())},setCompatible:e=>{s.Z.analytics.webxrSet(i.D1.compatible,`${e}`)},onSceneViewerFallback:()=>Promise.all([s.Z.analytics.webxrSend({webxrEvent:i.Ui.scene_viewer_fallback}),s.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o},context:"webxr"})]),onFallback:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.fallback}),setPlaneMapped:()=>{s.Z.analytics.webxrSet(i.D1.plane_mapped,(new Date).toISOString())},setObjectPlaced:()=>{s.Z.analytics.webxrSet(i.D1.object_placed,(new Date).toISOString())},setTranslateInstructions:()=>{s.Z.analytics.webxrSet(i.D1.translate_instructions,(new Date).toISOString())},setRotateInstructions:()=>{s.Z.analytics.webxrSet(i.D1.rotate_instructions,(new Date).toISOString())},setFirstTranslation:()=>{s.Z.analytics.webxrSet(i.D1.first_translation,(new Date).toISOString())},setFirstRotation:()=>{s.Z.analytics.webxrSet(i.D1.first_rotation,(new Date).toISOString())},setReset:()=>{s.Z.analytics.webxrSet(i.D1.reset,(new Date).toISOString())},onShare:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.share}),onExit:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.exit}),onLike:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.like}),onDislike:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.dislike}),onCallToAction:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.call_to_action}),onTranslation:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.translation}),onRotation:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.rotation})},C={onClick:()=>s.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:l},context:"cart"})},f=e=>{s.Z.analytics.set(i.MB.sku,e)},v=e=>{s.Z.analytics.set(i.MB.manufacturer_id,e)},w=e=>{s.Z.analytics.set(i.MB.is_active_3d,`${e}`),s.Z.analytics.send({event:i.U3.product_page_view})},m=e=>{s.Z.analytics.set(i.MB.experiment_id,e)},h=e=>{s.Z.analytics.set(i.MB.variation_id,e)},g=()=>a(void 0,void 0,void 0,(function*(){const e=yield(0,i.cE)();return s.Z.analytics.set(i.MB.fingerprint,e),e}));t.ZP=({client:e,dataLayerIntegration:t,sessionDurationMinutes:n,info:r={}})=>a(void 0,void 0,void 0,(function*(){const s={version:"6.13.
|
|
20
|
+
`;var a=({position:e})=>i.createElement(s,{position:e},i.createElement("a",{href:"https://r2u.io",target:"_blank",rel:"noopener noreferrer"},i.createElement("img",{alt:""})))},7374:function(e,t,n){n.d(t,{J1:function(){return u},E9:function(){return d},XH:function(){return p},ar:function(){return C},KN:function(){return m},fQ:function(){return h},hN:function(){return f},lY:function(){return v},G0:function(){return w},fm:function(){return g}});var i=n(2085),r=n(5877),s=n(2367),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};const o="ar_link",c="ar_model_viewer",l="cta",u={componentDidMount:()=>s.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:o},scope:"page"}),onClick:()=>s.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:o}}),onFallback:()=>s.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o}}),onLike:()=>s.Z.analytics.send({event:i.U3.like,data:{[i.MB.placement]:o}}),onDislike:()=>s.Z.analytics.send({event:i.U3.dislike,data:{[i.MB.placement]:o}}),onSessionTimeCollect:e=>s.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:o}})},d={componentDidMount:()=>s.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:c},scope:"page"}),onClick:()=>s.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:c}}),onSessionTimeCollect:e=>s.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:c}})},p={onSessionStart:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.session_start}),onSessionEnd:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.session_end}),setSession:()=>{s.Z.analytics.webxrSet(i.D1.session_id,(0,r.v4)())},setCompatible:e=>{s.Z.analytics.webxrSet(i.D1.compatible,`${e}`)},onSceneViewerFallback:()=>Promise.all([s.Z.analytics.webxrSend({webxrEvent:i.Ui.scene_viewer_fallback}),s.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o},context:"webxr"})]),onFallback:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.fallback}),setPlaneMapped:()=>{s.Z.analytics.webxrSet(i.D1.plane_mapped,(new Date).toISOString())},setObjectPlaced:()=>{s.Z.analytics.webxrSet(i.D1.object_placed,(new Date).toISOString())},setTranslateInstructions:()=>{s.Z.analytics.webxrSet(i.D1.translate_instructions,(new Date).toISOString())},setRotateInstructions:()=>{s.Z.analytics.webxrSet(i.D1.rotate_instructions,(new Date).toISOString())},setFirstTranslation:()=>{s.Z.analytics.webxrSet(i.D1.first_translation,(new Date).toISOString())},setFirstRotation:()=>{s.Z.analytics.webxrSet(i.D1.first_rotation,(new Date).toISOString())},setReset:()=>{s.Z.analytics.webxrSet(i.D1.reset,(new Date).toISOString())},onShare:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.share}),onExit:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.exit}),onLike:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.like}),onDislike:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.dislike}),onCallToAction:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.call_to_action}),onTranslation:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.translation}),onRotation:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.rotation})},C={onClick:()=>s.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:l},context:"cart"})},f=e=>{s.Z.analytics.set(i.MB.sku,e)},v=e=>{s.Z.analytics.set(i.MB.manufacturer_id,e)},w=e=>{s.Z.analytics.set(i.MB.is_active_3d,`${e}`),s.Z.analytics.send({event:i.U3.product_page_view})},m=e=>{s.Z.analytics.set(i.MB.experiment_id,e)},h=e=>{s.Z.analytics.set(i.MB.variation_id,e)},g=()=>a(void 0,void 0,void 0,(function*(){const e=yield(0,i.cE)();return s.Z.analytics.set(i.MB.fingerprint,e),e}));t.ZP=({client:e,dataLayerIntegration:t,sessionDurationMinutes:n,info:r={}})=>a(void 0,void 0,void 0,(function*(){const s={version:"6.13.7",gcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportEvent",webxrGcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportWebXREvent",debug:!!new URLSearchParams(window.location.search).get("realidade-aumentada-debug"),sessionDurationMinutes:n,dataLayerIntegration:t},a=new i.ZP(s,Object.assign(Object.assign({},r),{[i.MB.client]:e}));return yield a.init(),a}))},7523:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(2297),r=n(2367),s=n(7673),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};function o(e){return a(this,void 0,void 0,(function*(){if(r.Z.products[e])return Promise.resolve(r.Z.products[e]);const t=s.encode({"product.sku":e,"asset.types":["GLB","USDZ"].join(","),"product_review.status":"RUNNING"}),[n]=yield(0,i.U2)(`/customers/${r.Z.customer._id}/products/assets?${t}`);if(!n)throw new Error("R2U - SKU not found");const a=n.assets||[],o=n.product_reviews||[],c=a.find((e=>"GLB"===e.type)),l=a.find((e=>"USDZ"===e.type)),u={glb:c?c.url:"",usdz:l?l.url:"",isActive:o.length>0,name:n.name,placement:n.placement||"floor",resize:n.resize||!1,sound:n.soundUrl,modelId:n.modelId,manufacturerId:n.manufacturerId,pdpUrl:n.pdpUrl,hdri:n.hdri,exposure:n.exposure,bloom:n.bloom,viewerOptions:n.viewerOptions||{}};return r.Z.products[e]=u,u}))}},2297:function(e,t,n){n.d(t,{U2:function(){return a},v_:function(){return o},ki:function(){return c},Bv:function(){return l}});var i=n(2367),r=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};const s="https://api.r2u.io";function a(e){return r(this,void 0,void 0,(function*(){const t={};i.Z.refreshCache&&(t["Cache-Control"]="max-age=0");return(yield fetch(`${s}${e}`,{method:"get",headers:t})).json()}))}function o(e,t){return r(this,void 0,void 0,(function*(){return(yield fetch(`${s}${e}`,{method:"POST",body:JSON.stringify(t)})).json()}))}function c(e){return r(this,void 0,void 0,(function*(){try{const{status:t}=yield fetch(e,{method:"HEAD"});return 200===t}catch(e){return console.error(e),!1}}))}const l=()=>"https://sdk.r2u.io"},2367:function(e,t){const n={init:!1,customer:{_id:"",slug:"",language:"en",hdri:null,exposure:null,bloom:null,experiments:{overrides:{}},viewerOptions:{}},analytics:{set:(e,t)=>{},send:({event:e,data:t,scope:n})=>Promise.resolve()},products:{},hasAutoOpenedAR:!1,growthbook:{},refreshCache:!1};t.Z=n},4147:function(e){e.exports=JSON.parse('{"name":"@r2u/javascript-ar-sdk","version":"6.13.7","main":"dist/index.js","unpkg":"dist/index.js","types":"dist/index.d.ts","repository":"https://github.com/r2u-io/javascript-ar-sdk","files":["dist"],"scripts":{"dev":"yarn build:dev && webpack serve --mode=development","build:dev":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=development","build":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=production","clean":"rm -rf dist/ public/dist/","test":"jest --config ./jest.config.js","stage":"yarn build:dev && gsutil -m cp -R ./public gs://r2u-integrations-bucket/_staging/sdk/","prettier":"prettier --write src","lint":"eslint \'./src/**/*.{js,ts,tsx}\'","eject":"rescripts eject"},"peerDependencies":{"react":"^16.13.1","react-dom":"^16.13.1"},"dependencies":{"@r2u/analytics":"^4.3.3","@r2u/react-ar-components":"^5.4.15","@r2u/viewer":"^1.5.8","@types/react-slick":"^0.23.10","i18next":"^20.2.1","i18next-chained-backend":"^2.1.0","i18next-http-backend":"^1.2.1","i18next-localstorage-backend":"^3.1.2","qrcode.react":"^1.0.1","querystring":"^0.2.0","react":"^17.0.2","react-dom":"^17.0.2","react-i18next":"^11.8.13","react-shadow":"^19.0.2","react-slick":"^0.29.0","styled-components":"^5.2.3"},"devDependencies":{"@fingerprintjs/fingerprintjs":"^3.3.0","@growthbook/growthbook":"^0.12.0","@types/jest":"^26.0.15","@types/node":"^13.11.1","@types/qrcode.react":"^1.0.1","@types/react":"^16.9.33","@types/react-dom":"^16.9.6","@types/styled-components":"^5.1.9","@typescript-eslint/eslint-plugin":"^2.3.1","@typescript-eslint/parser":"^2.3.1","eslint":"^7.22.0","eslint-config-prettier":"^6.12.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-jest":"^22.17.0","eslint-plugin-node":"^8.0.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.1.1","eslint-plugin-react":"^7.14.3","eslint-plugin-standard":"^4.0.0","file-loader":"^6.2.0","jest":"^24.9.0","prettier":"^2.1.2","process":"^0.11.10","three":"^0.131.2","ts-jest":"^26.4.4","ts-loader":"^8.0.17","tsconfig-paths-webpack-plugin":"^3.5.1","typescript":"^3.8.3","util":"^0.12.3","webpack":"^5.24.3","webpack-bundle-analyzer":"^4.4.0","webpack-cli":"^4.5.0","webpack-dev-server":"3.10.3"},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]}}')}}]);
|
package/dist/{vendors.48549497964306a44232.bundle.js → vendors.fde4abedd2649dc86494.bundle.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! For license information please see vendors.
|
|
2
|
-
(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[10],{5865:function(e,t,r){var n,o,i,a;self,e.exports=(n=r(7294),o=r(3935),i=r(1752),a=r(9864),function(){"use strict";var e,t,r,s,c={8156:function(e){e.exports=n},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 r=l[e]={id:e,loaded:!1,exports:{}};return c[e].call(r.exports,r,r.exports,u),r.loaded=!0,r.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(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);u.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){i[e]=function(){return r[e]}}));return i.default=function(){return r},u.d(o,i),o},u.d=function(e,t){for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.f={},u.e=function(e){return Promise.all(Object.keys(u.f).reduce((function(t,r){return u.f[r](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)},r={},s="@r2u/react-ar-components:",u.l=function(e,t,n,o){if(r[e])r[e].push(t);else{var i,a;if(void 0!==n)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+n){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+n),i.src=e),r[e]=[t];var f=function(t,n){i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((function(e){return e(n)})),t)return t(n)},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,r){var n=u.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((function(r,o){n=e[t]=[r,o]}));r.push(n[2]=o);var i=u.p+u.u(t),a=new Error;u.l(i,(function(r){if(u.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}}),"chunk-"+t,t)}};var t=function(t,r){var n,o,i=r[0],a=r[1],s=r[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(n in a)u.o(a,n)&&(u.m[n]=a[n]);s&&s(u)}for(t&&t(r);c<i.length;c++)o=i[c],u.o(e,o)&&e[o]&&e[o][0](),e[i[c]]=0},r=self.webpackChunk_r2u_react_ar_components=self.webpackChunk_r2u_react_ar_components||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var d={};return function(){u.r(d),u.d(d,{ModelViewer:function(){return M},WebXREvents:function(){return z},activateAR:function(){return C},activateWebXR:function(){return E},canActivateAR:function(){return D}});var e=u(8156),t=u.n(e);let r=!1,n=[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:r,phi:i,radius:a}=t,s=r-e.turntableRotation;l=.75*a/e.getBoundingClientRect().height,n=[-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,r)=>{const i=(e-s)*l,a=(t-c)*l;s=e,c=t;const u=r.getCameraTarget();u.x+=i*n[0]+a*o[0],u.y+=i*n[1]+a*o[1],u.z+=i*n[2]+a*o[2],r.cameraTarget=`${u.x}m ${u.y}m ${u.z}m`,r.dispatchEvent(new CustomEvent("camera-change",{detail:{source:"user-interaction"}}))},h=(e,t)=>{if(r=!1,Math.abs(e.clientX-i)>2||Math.abs(e.clientY-a)>2)return;const n=t.getBoundingClientRect(),o=e.clientX-n.left,s=e.clientY-n.top,c=t.positionAndNormalFromPoint(o,s);t.cameraTarget=null===c?"auto auto auto":c.position.toString()},m=e=>{const t=e,n=t.clientX?t:t.changedTouches[0];Math.abs(n.clientX-i)<2&&Math.abs(n.clientY-a)<2&&h(n,e.target),r=!1},g=e=>{i=e.clientX,a=e.clientY;const t=2===e.button||e.ctrlKey||e.metaKey||e.shiftKey;r=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(r=t,!t)return;const{touches:n}=e;s=.5*(n[0].clientX+n[1].clientX),c=.5*(n[0].clientY+n[1].clientY),f(e.target)},y=e=>{r&&(p(e.clientX,e.clientY,e.target),e.stopPropagation())},b=e=>{if(!r||2!==e.touches.length)return;const{touches:t}=e,n=.5*(t[0].clientX+t[1].clientX),o=.5*(t[0].clientY+t[1].clientY);p(n,o,e.target)},w=e=>{h(e,e.target)},S=e=>{0===e.touches.length&&h(e.changedTouches[0],e.target)},x=e=>e.preventDefault();var M=t().forwardRef(((r,n)=>{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:k=1,shadowSoftness:j=0,autoPlay:A=!0,className:O,style:C,children:I,pan:N=!0,zoom:D=!0,componentDidMount:E=(()=>{}),onClick:z=(()=>{}),onSessionTimeCollect:T=(e=>{}),touchAction:P}=r,R=n,[L,Y]=(0,e.useState)(!1),{addPan:_,removePan:B}={addPan:e=>{e.addEventListener("pointerup",m,!0),e.addEventListener("mousedown",g,!0),e.addEventListener("mousemove",y,!0),e.addEventListener("mouseup",w,!0),e.addEventListener("touchstart",v,!0),e.addEventListener("touchmove",b,!0),e.addEventListener("touchend",S,!0),e.addEventListener("contextmenu",x,!0)},removePan:e=>{e.removeEventListener("pointerup",m,!0),e.removeEventListener("mousedown",g,!0),e.removeEventListener("mousemove",y,!0),e.removeEventListener("mouseup",w,!0),e.removeEventListener("touchstart",v,!0),e.removeEventListener("touchmove",b,!0),e.removeEventListener("touchend",S,!0),e.removeEventListener("contextmenu",x,!0)}},[Z,U]=(0,e.useState)();return(0,e.useEffect)((()=>{var e,t;L&&(null===(t=null===(e=R.current)||void 0===e?void 0:e.availableAnimations)||void 0===t?void 0:t.length)&&(R.current.interactionPrompt="none")}),[L]),(0,e.useEffect)((()=>{E(),R&&R.current&&(R.current.src=o,R.current.addEventListener("load",(()=>Y(!0))))}),[]),(0,e.useEffect)((()=>{R&&R.current&&(N?_(R.current):B(R.current))}),[R,N]),t().createElement("model-viewer",Object.assign({ref:R,class:O,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":k,"shadow-softness":j},A?{autoplay:""}:{},{"data-js-focus-visible":!0,onClick:z,onPointerEnter:()=>{U(new Date)},onPointerLeave:()=>{if(Z){const e=(new Date).getTime()-Z.getTime();T(e)}},"touch-action":P}),I)}));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 k=/android/i.test(navigator.userAgent),j=/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),j&&/CriOS\//.test(navigator.userAgent);var A=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const O="#no-ar-fallback",C=e=>A(void 0,void 0,void 0,(function*(){const{hashFallback:t=O}=e,r=j?(({title:e,price:t,usdz:r,scale:n="fixed",callToAction:o,pdpUrl:i})=>{const a=new URL(r);"fixed"===n&&a.searchParams.set("allowsContentScaling","0"),i&&a.searchParams.set("canonicalWebPageURL",i);let s=a.toString().replace("?","#");if(o){const{text:r}=o;s+=`&custom=https://sdk.r2u.io/ar-components/call-to-action/banner.html?params=${encodeURIComponent(encodeURIComponent(JSON.stringify({title:e,price:t,text:r})))}`}return s})(e):k?(({glb:e="",title:t,sound:r,link:n,shareText:o,mode:i="ar_only",placement:a="floor",disableOcclusion:s=!0,scale:c="fixed",hashFallback:l=O})=>{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"),r&&f.set("sound",r),n&&f.set("link",n),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(!r)return void(window.location.hash=t);if(j){const e=document.createElement("a");if(e.relList&&e.relList.supports&&!e.relList.supports("ar")&&!(()=>{const{userAgent:e}=window.navigator,t=e.indexOf("OS "),r=(e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1)&&t>-1?window.Number(e.slice(t+3,t+7).replace("_",".")):0;return!!e.match("CriOS")&&r>16})())return void(window.location.hash=t)}const n=document.createElement("a");document.body.appendChild(n);const o=document.createElement("img");n.setAttribute("rel","ar"),n.appendChild(o),n.setAttribute("href",r),n.addEventListener("click",(e=>e.stopPropagation())),n.addEventListener("message",(t=>{"_apple_ar_quicklook_button_tapped"===t.data&&e.callToAction&&e.callToAction.onClick()}),!1),n.click(),n.removeChild(o)}));var I=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const N=e=>{document.dispatchEvent(new CustomEvent("r2u-webxr-close"))},D=()=>I(void 0,void 0,void 0,(function*(){return!!(navigator&&navigator.xr&&navigator.xr.isSessionSupported&&(yield navigator.xr.isSessionSupported("immersive-ar")))})),E=({model:e,beforeClose:t=N,language:r="en",callToAction:n})=>I(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:r});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,n);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 z;!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"}(z||(z={}))}(),d}())},1841:function(e,t,r){var n,o=r(4155);self,n=e=>(()=>{var t,r,n={58:(e,t,r)=>{"use strict";var n=r(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 n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.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,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=c(t),m=c(r),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||n&&n[v]||m&&m[v]||s&&s[v])){var y=f(r,v);try{l(t,v,y)}catch(e){}}}}return t}},516:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).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]))r.call(a,u)&&(c[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)n.call(a,s[d])&&(c[s[d]]=a[s[d]])}}return c}},697:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n: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 x(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,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 x(e)||S(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(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===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=S},594:(e,t,r)=>{"use strict";e.exports=r(697)},94:(e,t,r)=>{"use strict";r(516);var n=r(156),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__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,r){var n,i={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,n)&&!c.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:a.current}}t.jsx=l,t.jsxs=l},512:(e,t,r)=>{"use strict";e.exports=r(94)},7:e=>{e.exports=function(e,t,r,n){var o=r?r.call(n,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=r?r.call(n,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 r=i[e]={exports:{}};return n[e](r,r.exports,a),r.exports}a.m=n,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>167===e?"vendors.f67ae33fc1a23991db96.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={},r="@r2u/viewer:",a.l=(e,n,o,i)=>{if(t[e])t[e].push(n);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")==r+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",r+o),s.src=e),t[e]=[n];var f=(r,n)=>{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(n))),r)return r(n)},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.5.6/dist/",(()=>{var e={179:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,s,c]=r,l=0;if(i.some((t=>0!==e[t]))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);c&&c(a)}for(t&&t(r);l<i.length;l++)o=i[l],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunk_r2u_viewer=self.webpackChunk_r2u_viewer||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var s={};return(()=>{"use strict";a.r(s),a.d(s,{default:()=>at});var e=a(512),t=a(156),r=a.n(t);const n="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,n,c,l,f){for(var p,h,m,g,w,x=0,M=0,k=0,j=0,A=0,E=0,T=m=p=0,R=0,L=0,Y=0,_=0,B=c.length,Z=B-1,U="",$="",F="",H="";R<B;){if(h=c.charCodeAt(R),R===Z&&0!==M+j+k+x&&(0!==M&&(h=47===M?10:47),j=k=x=0,B++,Z++),0===M+j+k+x){if(R===Z&&(0<L&&(U=U.replace(d,"")),0<U.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(R)}h=59}switch(h){case 123:for(p=(U=U.trim()).charCodeAt(0),m=1,_=++R;R<B;){switch(h=c.charCodeAt(R)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(R+1)){case 42:case 47:e:{for(T=R+1;T<Z;++T)switch(c.charCodeAt(T)){case 47:if(42===h&&42===c.charCodeAt(T-1)&&R+2!==T){R=T+1;break e}break;case 10:if(47===h){R=T+1;break e}}R=T}}break;case 91:h++;case 40:h++;case 34:case 39:for(;R++<Z&&c.charCodeAt(R)!==h;);}if(0===m)break;R++}if(m=c.substring(_,R),0===p&&(p=(U=U.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(U=U.replace(d,"")),h=U.charCodeAt(1)){case 100:case 109:case 115:case 45:L=n;break;default:L=D}if(_=(m=t(n,L,m,h,f+1)).length,0<z&&(w=s(3,m,L=r(D,U,Y),n,C,O,_,h,f,l),U=L.join(""),void 0!==w&&0===(_=(m=w.trim()).length)&&(h=0,m="")),0<_)switch(h){case 115:U=U.replace(S,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(v,"$1 $2"))+"{"+m+"}",m=1===N||2===N&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===l&&($+=m,m="")}else m=""}else m=t(n,r(n,U,Y),m,l,f+1);F+=m,m=Y=L=T=p=0,U="",h=c.charCodeAt(++R);break;case 125:case 59:if(1<(_=(U=(0<L?U.replace(d,""):U).trim()).length))switch(0===T&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(_=(U=U.replace(" ",":")).length),0<z&&void 0!==(w=s(1,U,n,e,C,O,$.length,l,f,l))&&0===(_=(U=w.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),h=U.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=U+c.charAt(R);break}default:58!==U.charCodeAt(_-1)&&($+=o(U,p,h,U.charCodeAt(2)))}Y=L=T=p=0,U="",h=c.charCodeAt(++R)}}switch(h){case 13:case 10:47===M?M=0:0===1+p&&107!==l&&0<U.length&&(L=1,U+="\0"),0<z*P&&s(0,U,n,e,C,O,$.length,l,f,l),O=1,C++;break;case 59:case 125:if(0===M+j+k+x){O++;break}default:switch(O++,g=c.charAt(R),h){case 9:case 32:if(0===j+x+M)switch(A){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===j+M+x&&(L=Y=1,g="\f"+g);break;case 108:if(0===j+M+x+I&&0<T)switch(R-T){case 2:112===A&&58===c.charCodeAt(R-3)&&(I=A);case 8:111===E&&(I=E)}break;case 58:0===j+M+x&&(T=R);break;case 44:0===M+k+j+x&&(L=1,g+="\r");break;case 34:case 39:0===M&&(j=j===h?0:0===j?h:j);break;case 91:0===j+M+k&&x++;break;case 93:0===j+M+k&&x--;break;case 41:0===j+M+x&&k--;break;case 40:0===j+M+x&&(0===p&&(2*A+3*E==533||(p=1)),k++);break;case 64:0===M+k+j+x+T+m&&(m=1);break;case 42:case 47:if(!(0<j+x+k))switch(M){case 0:switch(2*h+3*c.charCodeAt(R+1)){case 235:M=47;break;case 220:_=R,M=42}break;case 42:47===h&&42===A&&_+2!==R&&(33===c.charCodeAt(_+2)&&($+=c.substring(_,R+1)),g="",M=0)}}0===M&&(U+=g)}E=A,A=h,R++}if(0<(_=$.length)){if(L=n,0<z&&void 0!==(w=s(2,$,L,e,C,O,_,l,f,l))&&0===($=w).length)return H+$+F;if($=L.join(",")+"{"+$+"}",0!=N*I){switch(2!==N||i($,2)||(I=0),I){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(y,"::-webkit-input-$1")+$.replace(y,"::-moz-$1")+$.replace(y,":-ms-input-$1")+$}I=0}}return H+$+F}function r(e,t,r){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]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[c++]=n(e[l]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;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(A,"$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===j.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).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===r+n&&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 r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),T(2!==t?n:n.replace(k,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,u){for(var d,f=0,p=t;f<z;++f)switch(d=E[f].call(l,e,p,r,n,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,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<z){var o=s(-1,r,n,n,C,O,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(D,n,r,0,0);return 0<z&&void 0!==(o=s(-2,i,n,n,C,O,i.length,0,0,0))&&(i=o),I=0,O=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*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,M=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,j=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,O=1,C=1,I=0,N=1,D=[],E=[],z=0,T=null,P=0;return l.use=function e(t){switch(t){case void 0:case null:z=E.length=0;break;default:if("function"==typeof t)E[z++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var y=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},b=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([]),S=Object.freeze({});function x(e){return"function"==typeof e}function M(e){return e.displayName||e.name||"Component"}function k(e){return e&&"string"==typeof e.styledComponentId}var j=void 0!==o&&(o.env.REACT_APP_SC_ATTR||o.env.SC_ATTR)||"data-styled",A="undefined"!=typeof window&&"HTMLElement"in window,O=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,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var I=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,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;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],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),N=new Map,D=new Map,E=1,z=function(e){if(N.has(e))return N.get(e);for(;D.has(E);)E++;var t=E++;return N.set(e,t),D.set(t,e),t},T=function(e){return D.get(e)},P=function(e,t){t>=E&&(E=t+1),N.set(e,t),D.set(t,e)},R="style["+j+'][data-styled-version="5.3.3"]',L=new RegExp("^"+j+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Y=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},_=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(L);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,n)),n.length=0}else n.push(a)}}},B=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Z=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(j))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(j,"active"),n.setAttribute("data-styled-version","5.3.3");var a=B();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},U=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,r=0,n=t.length;r<n;r++){var o=t[r];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}(),$=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 r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||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}(),F=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=A,W={isServer:!A,useCSSOMInjection:!O},G=function(){function e(e,t,r){void 0===e&&(e=S),void 0===t&&(t={}),this.options=v({},W,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&A&&H&&(H=!1,function(e){for(var t=document.querySelectorAll(R),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(j)&&(_(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,r){return void 0===r&&(r=!0),new e(v({},this.options,{},t),this.gs,r&&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=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new F(o):n?new U(o):new $(o),new I(e)));var e,t,r,n,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 r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(z(e),r)},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(),r=t.length,n="",o=0;o<r;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=j+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),n+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return n}(this)},e}(),Q=/(a)(d)/gi,X=function(e){return String.fromCharCode(e+(e>25?39:97))};function V(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=X(t%52)+r;return(X(t%52)+r).replace(Q,"$1-$2")}var q=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},J=function(e){return q(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(x(r)&&!k(r))return!1}return!0}var ee=J("5.3.3"),te=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&K(e),this.componentId=t,this.baseHash=q(ee,t),this.baseStyle=r,G.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=ye(this.rules,e,t,r).join(""),a=V(q(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=q(this.baseHash,r.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,r),h=Array.isArray(p)?p.join(""):p;l=q(l,h+d),u+=h}}if(u){var m=V(l>>>0);if(!t.hasNameForId(n,m)){var g=r(u,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),re=/^\s*\/\/.*$/gm,ne=[":","[",".","#"];function oe(e){var t,r,n,o,i=void 0===e?S:e,a=i.options,s=void 0===a?S: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(r,n,o,i,a,s,c,l,u,d){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===l)return n+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,n,i){return 0===n&&-1!==ne.indexOf(i[r.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var c=e.replace(re,""),l=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),d(a||!i?"":i,l)}return d.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,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),q(e,t.name)}),5381).toString():"",m}var ie=r().createContext(),ae=(ie.Consumer,r().createContext()),se=(ae.Consumer,new G),ce=oe();function le(){return(0,t.useContext)(ie)||se}function ue(e){var n=(0,t.useState)(e.stylisPlugins),o=n[0],i=n[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]),r().createElement(ie.Provider,{value:s},r().createElement(ae.Provider,{value:c},e.children))}var de=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ce);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return C(12,String(r.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 ye(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=ye(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ve(e)?"":k(e)?"."+e.styledComponentId:x(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:ye(e(t),t,r,n):e instanceof de?r?(e.inject(r,n),e.getName(n)):e:b(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ve(t[a])&&(Array.isArray(t[a])&&t[a].isCss||x(t[a])?i.push(ge(a)+":",t[a],";"):b(t[a])?i.push.apply(i,e(t[a],a)):i.push(ge(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in d?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var c}var be=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function we(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return x(e)||b(e)?be(ye(y(w,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:be(ye(y(e,r)))}new Set;var Se=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xe=/(^-|-$)/g;function Me(e){return e.replace(Se,"-").replace(xe,"")}function ke(e){return"string"==typeof e&&!0}var je=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ae=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Oe(e,t,r){var n=e[r];je(t)&&je(n)?Ce(n,t):e[r]=t}function Ce(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(je(a))for(var s in a)Ae(s)&&Oe(e,a[s],s)}return e}var Ie=r().createContext();Ie.Consumer;var Ne={};function De(e,n,o){var i=k(e),a=!ke(e),s=n.attrs,c=void 0===s?w:s,l=n.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":Me(e);Ne[r]=(Ne[r]||0)+1;var n=r+"-"+function(e){return V(J(e)>>>0)}("5.3.3"+r+Ne[r]);return t?t+"-"+n:n}(n.displayName,n.parentComponentId):l,d=n.displayName,f=void 0===d?function(e){return ke(e)?"styled."+e:"Styled("+M(e)+")"}(e):d,h=n.displayName&&n.componentId?Me(n.displayName)+"-"+n.componentId:n.componentId||u,m=i&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,y=n.shouldForwardProp;i&&e.shouldForwardProp&&(y=n.shouldForwardProp?function(t,r,o){return e.shouldForwardProp(t,r,o)&&n.shouldForwardProp(t,r,o)}:e.shouldForwardProp);var b,j=new te(o,h,i?e.componentStyle:void 0),A=j.isStatic&&0===c.length,O=function(e,r){return function(e,r,n,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,r){void 0===e&&(e=S);var n=v({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in x(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(function(e,t,r){return void 0===r&&(r=S),e.theme!==r.theme&&e.theme||t||r.theme}(r,(0,t.useContext)(Ie),s)||S,r,i),h=f[0],m=f[1],g=function(e,r,n,o){var i=le(),a=(0,t.useContext)(ae)||ce;return r?e.generateAndInjectStyles(S,i,a):e.generateAndInjectStyles(n,i,a)}(a,o,h),y=n,b=m.$as||r.$as||m.as||r.as||d,w=ke(b),M=m!==r?v({},r,{},m):r,k={};for(var j in M)"$"!==j[0]&&"as"!==j&&("forwardedAs"===j?k.as=M[j]:(l?l(j,p,b):!w||p(j))&&(k[j]=M[j]));return r.style&&m.style!==r.style&&(k.style=v({},r.style,{},m.style)),k.className=Array.prototype.concat(c,u,g!==u?g:null,r.className,m.className).filter(Boolean).join(" "),k.ref=y,(0,t.createElement)(b,k)}(b,e,r,A)};return O.displayName=f,(b=r().forwardRef(O)).attrs=m,b.componentStyle=j,b.displayName=f,b.shouldForwardProp=y,b.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):w,b.styledComponentId=h,b.target=i?e.target:e,b.withComponent=function(e){var t=n.componentId,r=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(n,["componentId"]),i=t&&t+"-"+(ke(e)?e:Me(M(e)));return De(e,v({},r,{attrs:m,componentId:i}),o)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?Ce({},e.defaultProps,t):t}}),b.toString=function(){return"."+b.styledComponentId},a&&g()(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Ee,ze=function(e){return function e(t,r,n){if(void 0===n&&(n=S),!(0,i.isValidElementType)(r))return C(1,String(r));var o=function(){return t(r,n,we.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,v({},n,{},o))},o.attrs=function(o){return e(t,r,v({},n,{attrs:Array.prototype.concat(n.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){ze[e]=ze(e)})),Ee=function(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),G.registerId(this.componentId+1)}.prototype,Ee.createStyles=function(e,t,r,n){var o=n(ye(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},Ee.removeStyles=function(e,t){t.clearRules(this.componentId+e)},Ee.renderStyles=function(e,t,r,n){e>2&&G.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=B();return"<style "+[r&&'nonce="'+r+'"',j+'="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 n=((t={})[j]="",t["data-styled-version"]="5.3.3",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=B();return o&&(n.nonce=o),[r().createElement("style",v({},n,{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):r().createElement(ue,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return C(3)}}();const Te=ze,Pe=Te.div`
|
|
1
|
+
/*! For license information please see vendors.fde4abedd2649dc86494.bundle.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[10],{5865:function(e,t,r){var n,o,i,a;self,e.exports=(n=r(7294),o=r(3935),i=r(1752),a=r(9864),function(){"use strict";var e,t,r,s,c={8156:function(e){e.exports=n},7111:function(e){e.exports=o},3238:function(e){e.exports=i},2622:function(e){e.exports=a}},u={};function l(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={id:e,loaded:!1,exports:{}};return c[e].call(r.exports,r,r.exports,l),r.loaded=!0,r.exports}l.m=c,l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},l.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);l.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){i[e]=function(){return r[e]}}));return i.default=function(){return r},l.d(o,i),o},l.d=function(e,t){for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.f={},l.e=function(e){return Promise.all(Object.keys(l.f).reduce((function(t,r){return l.f[r](e,t),t}),[]))},l.u=function(e){return{216:"vendors",954:"webXRSession"}[e]+".bundle.js"},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},s="@r2u/react-ar-components:",l.l=function(e,t,n,o){if(r[e])r[e].push(t);else{var i,a;if(void 0!==n)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==s+n){i=d;break}}i||(a=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,l.nc&&i.setAttribute("nonce",l.nc),i.setAttribute("data-webpack",s+n),i.src=e),r[e]=[t];var f=function(t,n){i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((function(e){return e(n)})),t)return t(n)},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)}},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},l.p="https://unpkg.com/@r2u/react-ar-components@5.4.15/dist/",function(){var e={179:0};l.f.j=function(t,r){var n=l.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((function(r,o){n=e[t]=[r,o]}));r.push(n[2]=o);var i=l.p+l.u(t),a=new Error;l.l(i,(function(r){if(l.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}}),"chunk-"+t,t)}};var t=function(t,r){var n,o,i=r[0],a=r[1],s=r[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(n in a)l.o(a,n)&&(l.m[n]=a[n]);s&&s(l)}for(t&&t(r);c<i.length;c++)o=i[c],l.o(e,o)&&e[o]&&e[o][0](),e[i[c]]=0},r=self.webpackChunk_r2u_react_ar_components=self.webpackChunk_r2u_react_ar_components||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var d={};return function(){l.r(d),l.d(d,{ModelViewer:function(){return M},WebXREvents:function(){return z},activateAR:function(){return I},activateWebXR:function(){return E},canActivateAR:function(){return D}});var e=l(8156),t=l.n(e);let r=!1,n=[0,0,0],o=[0,0,0],i=0,a=0,s=0,c=0,u=0;const f=e=>{const t=e.getCameraOrbit(),{theta:r,phi:i,radius:a}=t,s=r-e.turntableRotation;u=.75*a/e.getBoundingClientRect().height,n=[-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,r)=>{const i=(e-s)*u,a=(t-c)*u;s=e,c=t;const l=r.getCameraTarget();l.x+=i*n[0]+a*o[0],l.y+=i*n[1]+a*o[1],l.z+=i*n[2]+a*o[2],r.cameraTarget=`${l.x}m ${l.y}m ${l.z}m`,r.dispatchEvent(new CustomEvent("camera-change",{detail:{source:"user-interaction"}}))},h=(e,t)=>{if(r=!1,Math.abs(e.clientX-i)>2||Math.abs(e.clientY-a)>2)return;const n=t.getBoundingClientRect(),o=e.clientX-n.left,s=e.clientY-n.top,c=t.positionAndNormalFromPoint(o,s);t.cameraTarget=null===c?"auto auto auto":c.position.toString()},m=e=>{const t=e,n=t.clientX?t:t.changedTouches[0];Math.abs(n.clientX-i)<2&&Math.abs(n.clientY-a)<2&&h(n,e.target),r=!1},g=e=>{i=e.clientX,a=e.clientY;const t=2===e.button||e.ctrlKey||e.metaKey||e.shiftKey;r=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(r=t,!t)return;const{touches:n}=e;s=.5*(n[0].clientX+n[1].clientX),c=.5*(n[0].clientY+n[1].clientY),f(e.target)},y=e=>{r&&(p(e.clientX,e.clientY,e.target),e.stopPropagation())},b=e=>{if(!r||2!==e.touches.length)return;const{touches:t}=e,n=.5*(t[0].clientX+t[1].clientX),o=.5*(t[0].clientY+t[1].clientY);p(n,o,e.target)},w=e=>{h(e,e.target)},S=e=>{0===e.touches.length&&h(e.changedTouches[0],e.target)},x=e=>e.preventDefault();var M=t().forwardRef(((r,n)=>{const{src:o="",alt:i="",poster:a="",reveal:s="auto",ar:c=!1,arScale:u,cameraControls:l=!0,autoRotate:d=!0,interactionPromptThreshold:f=500,environmentImage:p="",exposure:h=.5,bloom:M=!1,shadowIntensity:j=1,shadowSoftness:k=0,autoPlay:A=!0,className:O,style:I,children:C,pan:N=!0,zoom:D=!0,componentDidMount:E=(()=>{}),onClick:z=(()=>{}),onSessionTimeCollect:T=(e=>{}),touchAction:P}=r,R=n,[L,Y]=(0,e.useState)(!1),{addPan:_,removePan:B}={addPan:e=>{e.addEventListener("pointerup",m,!0),e.addEventListener("mousedown",g,!0),e.addEventListener("mousemove",y,!0),e.addEventListener("mouseup",w,!0),e.addEventListener("touchstart",v,!0),e.addEventListener("touchmove",b,!0),e.addEventListener("touchend",S,!0),e.addEventListener("contextmenu",x,!0)},removePan:e=>{e.removeEventListener("pointerup",m,!0),e.removeEventListener("mousedown",g,!0),e.removeEventListener("mousemove",y,!0),e.removeEventListener("mouseup",w,!0),e.removeEventListener("touchstart",v,!0),e.removeEventListener("touchmove",b,!0),e.removeEventListener("touchend",S,!0),e.removeEventListener("contextmenu",x,!0)}},[F,Z]=(0,e.useState)();return(0,e.useEffect)((()=>{var e,t;L&&(null===(t=null===(e=R.current)||void 0===e?void 0:e.availableAnimations)||void 0===t?void 0:t.length)&&(R.current.interactionPrompt="none")}),[L]),(0,e.useEffect)((()=>{E(),R&&R.current&&(R.current.src=o,R.current.addEventListener("load",(()=>Y(!0))))}),[]),(0,e.useEffect)((()=>{R&&R.current&&(N?_(R.current):B(R.current))}),[R,N]),t().createElement("model-viewer",Object.assign({ref:R,class:O,style:I,alt:i,poster:a,reveal:s},c?{ar:""}:{},{"ar-scale":u},l?{"camera-controls":""}:{},D?{}:{"disable-zoom":""},d?{"auto-rotate":""}:{},{"interaction-prompt-threshold":f,"environment-image":p,exposure:h,bloom:M,"shadow-intensity":j,"shadow-softness":k},A?{autoplay:""}:{},{"data-js-focus-visible":!0,onClick:z,onPointerEnter:()=>{Z(new Date)},onPointerLeave:()=>{if(F){const e=(new Date).getTime()-F.getTime();T(e)}},"touch-action":P}),C)}));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 j=/android/i.test(navigator.userAgent),k=/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),k&&/CriOS\//.test(navigator.userAgent);var A=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const O="#no-ar-fallback",I=e=>A(void 0,void 0,void 0,(function*(){const{hashFallback:t=O}=e,r=k?(({title:e,price:t,usdz:r,scale:n="fixed",callToAction:o,pdpUrl:i})=>{const a=new URL(r);"fixed"===n&&a.searchParams.set("allowsContentScaling","0"),i&&a.searchParams.set("canonicalWebPageURL",i);let s=a.toString().replace("?","#");if(o){const{text:r}=o;s+=`&custom=https://sdk.r2u.io/ar-components/call-to-action/banner.html?params=${encodeURIComponent(encodeURIComponent(JSON.stringify({title:e,price:t,text:r})))}`}return s})(e):j?(({glb:e="",title:t,sound:r,link:n,shareText:o,mode:i="ar_only",placement:a="floor",disableOcclusion:s=!0,scale:c="fixed",hashFallback:u=O})=>{const l=window.location.toString(),d=new URL(l),f=new URLSearchParams("");return d.hash=u,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"),r&&f.set("sound",r),n&&f.set("link",n),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(!r)return void(window.location.hash=t);if(k){const e=document.createElement("a");if(e.relList&&e.relList.supports&&!e.relList.supports("ar")&&!(()=>{const{userAgent:e}=window.navigator,t=e.indexOf("OS "),r=(e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1)&&t>-1?window.Number(e.slice(t+3,t+7).replace("_",".")):0;return!!e.match("CriOS")&&r>16})())return void(window.location.hash=t)}const n=document.createElement("a");document.body.appendChild(n);const o=document.createElement("img");n.setAttribute("rel","ar"),n.appendChild(o),n.setAttribute("href",r),n.addEventListener("click",(e=>e.stopPropagation())),n.addEventListener("message",(t=>{"_apple_ar_quicklook_button_tapped"===t.data&&e.callToAction&&e.callToAction.onClick()}),!1),n.click(),n.removeChild(o)}));var C=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const N=e=>{document.dispatchEvent(new CustomEvent("r2u-webxr-close"))},D=()=>C(void 0,void 0,void 0,(function*(){return!!(navigator&&navigator.xr&&navigator.xr.isSessionSupported&&(yield navigator.xr.isSessionSupported("immersive-ar")))})),E=({model:e,beforeClose:t=N,language:r="en",callToAction:n})=>C(void 0,void 0,void 0,(function*(){const{init:o}=yield Promise.all([l.e(216),l.e(954)]).then(l.bind(l,6504));yield o({language:r});const i=document.createElement("div");document.body.appendChild(i);const{ARSession:a}=yield Promise.all([l.e(216),l.e(954)]).then(l.bind(l,3370)),s=new a(i,e,t,n);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),I({glb:e.glb,scale:e.resizable?"resizable":"fixed",placement:e.placement,link:e.url,title:e.name})}}));var z;!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"}(z||(z={}))}(),d}())},1841:function(e,t,r){var n,o=r(4155);self,n=e=>(()=>{var t,r,n={58:(e,t,r)=>{"use strict";var n=r(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 n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=l(r);d&&(a=a.concat(d(r)));for(var s=c(t),m=c(r),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||n&&n[v]||m&&m[v]||s&&s[v])){var y=f(r,v);try{u(t,v,y)}catch(e){}}}}return t}},516:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,c=o(e),u=1;u<arguments.length;u++){for(var l in a=Object(arguments[u]))r.call(a,l)&&(c[l]=a[l]);if(t){s=t(a);for(var d=0;d<s.length;d++)n.call(a,s[d])&&(c[s[d]]=a[s[d]])}}return c}},697:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case c:return e;default:return t}}case o:return t}}}function x(e){return S(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,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 x(e)||S(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(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===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=S},594:(e,t,r)=>{"use strict";e.exports=r(697)},94:(e,t,r)=>{"use strict";r(516);var n=r(156),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__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 u(e,t,r){var n,i={},u=null,l=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,n)&&!c.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},512:(e,t,r)=>{"use strict";e.exports=r(94)},7:e=>{e.exports=function(e,t,r,n){var o=r?r.call(n,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 u=i[c];if(!s(u))return!1;var l=e[u],d=t[u];if(!1===(o=r?r.call(n,l,d,u):void 0)||void 0===o&&l!==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 r=i[e]={exports:{}};return n[e](r,r.exports,a),r.exports}a.m=n,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>167===e?"vendors.f67ae33fc1a23991db96.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={},r="@r2u/viewer:",a.l=(e,n,o,i)=>{if(t[e])t[e].push(n);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+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",r+o),s.src=e),t[e]=[n];var f=(r,n)=>{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(n))),r)return r(n)},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.5.8/dist/",(()=>{var e={179:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,s,c]=r,u=0;if(i.some((t=>0!==e[t]))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);c&&c(a)}for(t&&t(r);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunk_r2u_viewer=self.webpackChunk_r2u_viewer||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var s={};return(()=>{"use strict";a.r(s),a.d(s,{default:()=>at});var e=a(512),t=a(156),r=a.n(t);const n="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iNjkiIHZpZXdCb3g9IjAgMCA3MCA2OSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE4Ml85NDcpIj4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xODJfOTQ3KSI+CjxwYXRoIGQ9Ik01NC4wNDU5IDQwLjgzNjNMNDEuMTQyNSAzNC42MzJDNDAuNjU5NCAzNC40Mzk4IDQwLjE0NzggMzQuMzMgMzkuNjA3OCAzNC4zM0MzOC40MTQ4IDM0LjMzIDM3LjQ0NzcgMzMuMzYyOSAzNy40NDc3IDMyLjE3VjE3Ljg1ODNDMzcuNDQ3NyAxNS41Nzk3IDM1LjU0MzUgMTMuNzQwNCAzMy4xODQ1IDEzLjc0MDRDMzAuODI1NSAxMy43NDA0IDI4LjkyMTMgMTUuNTc5NyAyOC45MjEzIDE3Ljg1ODNWMzcuNTU3OEMyOC45MjEzIDQyLjYxNDggMjQuMjg3OCA0Ni40MDMxIDE5LjMzMTYgNDUuMzk4MkwxOS4xNzI3IDQ1LjM2NkMxOC45NDUzIDQ1LjMzODYgMTguNzQ2NCA0NS4yODM3IDE4LjQ5MDYgNDUuMjgzN0MxNy42MDk1IDQ1LjI4MzcgMTYuODEzNyA0NS42NDA2IDE2LjI0NTMgNDYuMTg5NkMxNS4wMTU3IDQ3LjM5MjMgMTUuMDIxOSA0OS4zNzI5IDE2LjI1OTEgNTAuNTY3OUwyOC4wNDAyIDYxLjk0NzVDMjguODA3NiA2Mi42ODg4IDI5Ljg4NzYgNjMuMTU1NSAzMS4wNTI5IDYzLjE1NTVINTAuMzUxMUM1Mi40ODI3IDYzLjE1NTUgNTQuMTMxMiA2MS42NDU2IDU0LjQ0MzggNTkuNjQxNUw1Ni41NzU0IDQ1LjE3MzlDNTYuNjAzOCA0NC45ODE3IDU2LjYzMjMgNDQuNzg5NSA1Ni42MzIzIDQ0LjYyNDhDNTYuNjMyMyA0Mi45MjI3IDU1LjU1MjIgNDEuNDQwMyA1NC4wNDU5IDQwLjgzNjNaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjAuNzYxOCAxOS44MjYzQzIxLjM5MTUgMjQuMTk1NCAyNi4xMDUyIDIyLjQxMjYgMjYuMTA1MiAxNy45OTgyQzI2LjEwNTIgMTQuMTY2OCAyOS4xNzA1IDExLjA1NzMgMzIuOTQ3NSAxMS4wNTczQzM2LjcyNDQgMTEuMDU3MyAzOS43ODk3IDE0LjE2NjggMzkuNzg5NyAxNy45OTgyQzM5Ljc4OTcgMjIuNDEyNiA0NC41MDM0IDI0LjE5NTQgNDUuMTMzMSAxOS44MjYzQzQ1LjIxOTEgMTkuMjI5OCA0NS4yNjM2IDE4LjYxOTQgNDUuMjYzNiAxNy45OTgyQzQ1LjI2MzYgMTEuMDg1IDM5Ljc2MjQgNS41MDQ1MiAzMi45NDc1IDUuNTA0NTJDMjYuMTMyNSA1LjUwNDUyIDIwLjYzMTMgMTEuMDg1IDIwLjYzMTMgMTcuOTk4MkMyMC42MzEzIDE4LjYxOTQgMjAuNjc1OCAxOS4yMjk4IDIwLjc2MTggMTkuODI2M1oiIGZpbGw9IiNEREREREQiLz4KPC9nPgo8L2c+CjxkZWZzPgo8ZmlsdGVyIGlkPSJmaWx0ZXIwX2RfMTgyXzk0NyIgeD0iMTIuMzI3MSIgeT0iMi41MDQ1MiIgd2lkdGg9IjUxLjMwNTIiIGhlaWdodD0iNjcuNjUxIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHg9IjIiIGR5PSIyIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIuNSIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzE4Ml85NDciLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMTgyXzk0NyIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xODJfOTQ3Ij4KPHJlY3Qgd2lkdGg9IjcwIiBoZWlnaHQ9IjY4LjgwNjgiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";var i=a(594),c=a(7),u=a.n(c);const l=function(e){function t(e,n,c,u,f){for(var p,h,m,g,w,x=0,M=0,j=0,k=0,A=0,E=0,T=m=p=0,R=0,L=0,Y=0,_=0,B=c.length,F=B-1,Z="",U="",$="",H="";R<B;){if(h=c.charCodeAt(R),R===F&&0!==M+k+j+x&&(0!==M&&(h=47===M?10:47),k=j=x=0,B++,F++),0===M+k+j+x){if(R===F&&(0<L&&(Z=Z.replace(d,"")),0<Z.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:Z+=c.charAt(R)}h=59}switch(h){case 123:for(p=(Z=Z.trim()).charCodeAt(0),m=1,_=++R;R<B;){switch(h=c.charCodeAt(R)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(R+1)){case 42:case 47:e:{for(T=R+1;T<F;++T)switch(c.charCodeAt(T)){case 47:if(42===h&&42===c.charCodeAt(T-1)&&R+2!==T){R=T+1;break e}break;case 10:if(47===h){R=T+1;break e}}R=T}}break;case 91:h++;case 40:h++;case 34:case 39:for(;R++<F&&c.charCodeAt(R)!==h;);}if(0===m)break;R++}if(m=c.substring(_,R),0===p&&(p=(Z=Z.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(Z=Z.replace(d,"")),h=Z.charCodeAt(1)){case 100:case 109:case 115:case 45:L=n;break;default:L=D}if(_=(m=t(n,L,m,h,f+1)).length,0<z&&(w=s(3,m,L=r(D,Z,Y),n,I,O,_,h,f,u),Z=L.join(""),void 0!==w&&0===(_=(m=w.trim()).length)&&(h=0,m="")),0<_)switch(h){case 115:Z=Z.replace(S,a);case 100:case 109:case 45:m=Z+"{"+m+"}";break;case 107:m=(Z=Z.replace(v,"$1 $2"))+"{"+m+"}",m=1===N||2===N&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=Z+m,112===u&&(U+=m,m="")}else m=""}else m=t(n,r(n,Z,Y),m,u,f+1);$+=m,m=Y=L=T=p=0,Z="",h=c.charCodeAt(++R);break;case 125:case 59:if(1<(_=(Z=(0<L?Z.replace(d,""):Z).trim()).length))switch(0===T&&(p=Z.charCodeAt(0),45===p||96<p&&123>p)&&(_=(Z=Z.replace(" ",":")).length),0<z&&void 0!==(w=s(1,Z,n,e,I,O,U.length,u,f,u))&&0===(_=(Z=w.trim()).length)&&(Z="\0\0"),p=Z.charCodeAt(0),h=Z.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=Z+c.charAt(R);break}default:58!==Z.charCodeAt(_-1)&&(U+=o(Z,p,h,Z.charCodeAt(2)))}Y=L=T=p=0,Z="",h=c.charCodeAt(++R)}}switch(h){case 13:case 10:47===M?M=0:0===1+p&&107!==u&&0<Z.length&&(L=1,Z+="\0"),0<z*P&&s(0,Z,n,e,I,O,U.length,u,f,u),O=1,I++;break;case 59:case 125:if(0===M+k+j+x){O++;break}default:switch(O++,g=c.charAt(R),h){case 9:case 32:if(0===k+x+M)switch(A){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===k+M+x&&(L=Y=1,g="\f"+g);break;case 108:if(0===k+M+x+C&&0<T)switch(R-T){case 2:112===A&&58===c.charCodeAt(R-3)&&(C=A);case 8:111===E&&(C=E)}break;case 58:0===k+M+x&&(T=R);break;case 44:0===M+j+k+x&&(L=1,g+="\r");break;case 34:case 39:0===M&&(k=k===h?0:0===k?h:k);break;case 91:0===k+M+j&&x++;break;case 93:0===k+M+j&&x--;break;case 41:0===k+M+x&&j--;break;case 40:0===k+M+x&&(0===p&&(2*A+3*E==533||(p=1)),j++);break;case 64:0===M+j+k+x+T+m&&(m=1);break;case 42:case 47:if(!(0<k+x+j))switch(M){case 0:switch(2*h+3*c.charCodeAt(R+1)){case 235:M=47;break;case 220:_=R,M=42}break;case 42:47===h&&42===A&&_+2!==R&&(33===c.charCodeAt(_+2)&&(U+=c.substring(_,R+1)),g="",M=0)}}0===M&&(Z+=g)}E=A,A=h,R++}if(0<(_=U.length)){if(L=n,0<z&&void 0!==(w=s(2,U,L,e,I,O,_,u,f,u))&&0===(U=w).length)return H+U+$;if(U=L.join(",")+"{"+U+"}",0!=N*C){switch(2!==N||i(U,2)||(C=0),C){case 111:U=U.replace(b,":-moz-$1")+U;break;case 112:U=U.replace(y,"::-webkit-input-$1")+U.replace(y,"::-moz-$1")+U.replace(y,":-ms-input-$1")+U}C=0}}return H+U+$}function r(e,t,r){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]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;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(A,"$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===k.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).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===r+n&&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 r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),T(2!==t?n:n.replace(j,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,l){for(var d,f=0,p=t;f<z;++f)switch(d=E[f].call(u,e,p,r,n,o,i,a,s,c,l)){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 u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<z){var o=s(-1,r,n,n,I,O,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(D,n,r,0,0);return 0<z&&void 0!==(o=s(-2,i,n,n,I,O,i.length,0,0,0))&&(i=o),C=0,O=I=1,i}var l=/^\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*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,M=/-self|flex-/g,j=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,O=1,I=1,C=0,N=1,D=[],E=[],z=0,T=null,P=0;return u.use=function e(t){switch(t){case void 0:case null:z=E.length=0;break;default:if("function"==typeof t)E[z++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else P=0|!!t}return e},u.set=c,void 0!==e&&c(e),u},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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var y=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},b=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([]),S=Object.freeze({});function x(e){return"function"==typeof e}function M(e){return e.displayName||e.name||"Component"}function j(e){return e&&"string"==typeof e.styledComponentId}var k=void 0!==o&&(o.env.REACT_APP_SC_ATTR||o.env.SC_ATTR)||"data-styled",A="undefined"!=typeof window&&"HTMLElement"in window,O=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 I(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.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,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&I(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;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],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),N=new Map,D=new Map,E=1,z=function(e){if(N.has(e))return N.get(e);for(;D.has(E);)E++;var t=E++;return N.set(e,t),D.set(t,e),t},T=function(e){return D.get(e)},P=function(e,t){t>=E&&(E=t+1),N.set(e,t),D.set(t,e)},R="style["+k+'][data-styled-version="5.3.3"]',L=new RegExp("^"+k+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Y=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},_=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(L);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(P(u,c),Y(e,u,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},B=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},F=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(k))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(k,"active"),n.setAttribute("data-styled-version","5.3.3");var a=B();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Z=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];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}(),U=function(){function e(e){var t=this.element=F(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 r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||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=A,W={isServer:!A,useCSSOMInjection:!O},G=function(){function e(e,t,r){void 0===e&&(e=S),void 0===t&&(t={}),this.options=v({},W,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&A&&H&&(H=!1,function(e){for(var t=document.querySelectorAll(R),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(k)&&(_(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,r){return void 0===r&&(r=!0),new e(v({},this.options,{},t),this.gs,r&&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=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new $(o):n?new Z(o):new U(o),new C(e)));var e,t,r,n,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 r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(z(e),r)},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(),r=t.length,n="",o=0;o<r;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=k+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),Q=/(a)(d)/gi,X=function(e){return String.fromCharCode(e+(e>25?39:97))};function V(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=X(t%52)+r;return(X(t%52)+r).replace(Q,"$1-$2")}var q=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},J=function(e){return q(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(x(r)&&!j(r))return!1}return!0}var ee=J("5.3.3"),te=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&K(e),this.componentId=t,this.baseHash=q(ee,t),this.baseStyle=r,G.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=ye(this.rules,e,t,r).join(""),a=V(q(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=q(this.baseHash,r.hash),l="",d=0;d<c;d++){var f=this.rules[d];if("string"==typeof f)l+=f;else if(f){var p=ye(f,e,t,r),h=Array.isArray(p)?p.join(""):p;u=q(u,h+d),l+=h}}if(l){var m=V(u>>>0);if(!t.hasNameForId(n,m)){var g=r(l,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),re=/^\s*\/\/.*$/gm,ne=[":","[",".","#"];function oe(e){var t,r,n,o,i=void 0===e?S:e,a=i.options,s=void 0===a?S:a,c=i.plugins,u=void 0===c?w:c,d=new l(s),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,u,l,d){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,n,i){return 0===n&&-1!==ne.indexOf(i[r.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var c=e.replace(re,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),d(a||!i?"":i,u)}return d.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,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),q(e,t.name)}),5381).toString():"",m}var ie=r().createContext(),ae=(ie.Consumer,r().createContext()),se=(ae.Consumer,new G),ce=oe();function ue(){return(0,t.useContext)(ie)||se}function le(e){var n=(0,t.useState)(e.stylisPlugins),o=n[0],i=n[1],a=ue(),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(){u()(o,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]),r().createElement(ie.Provider,{value:s},r().createElement(ae.Provider,{value:c},e.children))}var de=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ce);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return I(12,String(r.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 ye(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=ye(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ve(e)?"":j(e)?"."+e.styledComponentId:x(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:ye(e(t),t,r,n):e instanceof de?r?(e.inject(r,n),e.getName(n)):e:b(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ve(t[a])&&(Array.isArray(t[a])&&t[a].isCss||x(t[a])?i.push(ge(a)+":",t[a],";"):b(t[a])?i.push.apply(i,e(t[a],a)):i.push(ge(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in d?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var c}var be=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function we(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return x(e)||b(e)?be(ye(y(w,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:be(ye(y(e,r)))}new Set;var Se=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xe=/(^-|-$)/g;function Me(e){return e.replace(Se,"-").replace(xe,"")}function je(e){return"string"==typeof e&&!0}var ke=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ae=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Oe(e,t,r){var n=e[r];ke(t)&&ke(n)?Ie(n,t):e[r]=t}function Ie(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(ke(a))for(var s in a)Ae(s)&&Oe(e,a[s],s)}return e}var Ce=r().createContext();Ce.Consumer;var Ne={};function De(e,n,o){var i=j(e),a=!je(e),s=n.attrs,c=void 0===s?w:s,u=n.componentId,l=void 0===u?function(e,t){var r="string"!=typeof e?"sc":Me(e);Ne[r]=(Ne[r]||0)+1;var n=r+"-"+function(e){return V(J(e)>>>0)}("5.3.3"+r+Ne[r]);return t?t+"-"+n:n}(n.displayName,n.parentComponentId):u,d=n.displayName,f=void 0===d?function(e){return je(e)?"styled."+e:"Styled("+M(e)+")"}(e):d,h=n.displayName&&n.componentId?Me(n.displayName)+"-"+n.componentId:n.componentId||l,m=i&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,y=n.shouldForwardProp;i&&e.shouldForwardProp&&(y=n.shouldForwardProp?function(t,r,o){return e.shouldForwardProp(t,r,o)&&n.shouldForwardProp(t,r,o)}:e.shouldForwardProp);var b,k=new te(o,h,i?e.componentStyle:void 0),A=k.isStatic&&0===c.length,O=function(e,r){return function(e,r,n,o){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,l=e.styledComponentId,d=e.target,f=function(e,t,r){void 0===e&&(e=S);var n=v({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in x(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(function(e,t,r){return void 0===r&&(r=S),e.theme!==r.theme&&e.theme||t||r.theme}(r,(0,t.useContext)(Ce),s)||S,r,i),h=f[0],m=f[1],g=function(e,r,n,o){var i=ue(),a=(0,t.useContext)(ae)||ce;return r?e.generateAndInjectStyles(S,i,a):e.generateAndInjectStyles(n,i,a)}(a,o,h),y=n,b=m.$as||r.$as||m.as||r.as||d,w=je(b),M=m!==r?v({},r,{},m):r,j={};for(var k in M)"$"!==k[0]&&"as"!==k&&("forwardedAs"===k?j.as=M[k]:(u?u(k,p,b):!w||p(k))&&(j[k]=M[k]));return r.style&&m.style!==r.style&&(j.style=v({},r.style,{},m.style)),j.className=Array.prototype.concat(c,l,g!==l?g:null,r.className,m.className).filter(Boolean).join(" "),j.ref=y,(0,t.createElement)(b,j)}(b,e,r,A)};return O.displayName=f,(b=r().forwardRef(O)).attrs=m,b.componentStyle=k,b.displayName=f,b.shouldForwardProp=y,b.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):w,b.styledComponentId=h,b.target=i?e.target:e,b.withComponent=function(e){var t=n.componentId,r=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(n,["componentId"]),i=t&&t+"-"+(je(e)?e:Me(M(e)));return De(e,v({},r,{attrs:m,componentId:i}),o)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?Ie({},e.defaultProps,t):t}}),b.toString=function(){return"."+b.styledComponentId},a&&g()(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Ee,ze=function(e){return function e(t,r,n){if(void 0===n&&(n=S),!(0,i.isValidElementType)(r))return I(1,String(r));var o=function(){return t(r,n,we.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,v({},n,{},o))},o.attrs=function(o){return e(t,r,v({},n,{attrs:Array.prototype.concat(n.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){ze[e]=ze(e)})),Ee=function(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),G.registerId(this.componentId+1)}.prototype,Ee.createStyles=function(e,t,r,n){var o=n(ye(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},Ee.removeStyles=function(e,t){t.clearRules(this.componentId+e)},Ee.renderStyles=function(e,t,r,n){e>2&&G.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=B();return"<style "+[r&&'nonce="'+r+'"',k+'="true"','data-styled-version="5.3.3"'].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={})[k]="",t["data-styled-version"]="5.3.3",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=B();return o&&(n.nonce=o),[r().createElement("style",v({},n,{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?I(2):r().createElement(le,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return I(3)}}();const Te=ze,Pe=Te.div`
|
|
3
3
|
position: absolute;
|
|
4
4
|
top: 50%;
|
|
5
5
|
left: 50%;
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
|
|
111
111
|
box-shadow: 0.375rem 0.375rem 1.25rem rgba(0, 0, 0, 0.25);
|
|
112
112
|
border-radius: 0.5rem;
|
|
113
|
-
`,
|
|
113
|
+
`,Fe=(t,r,n)=>(0,e.jsx)(Ye,Object.assign({type:"button",className:n?"focus":""},t,{children:r}),void 0),Ze=(t,r)=>(0,e.jsx)(_e,Object.assign({},t,{children:r}),void 0),Ue=(t,r)=>(0,e.jsx)(Be,Object.assign({},t,{children:r}),void 0),$e=r=>{var{id:n,focus:o,label:i,content:a,tooltipContent:s,labelElement:c,contentElement:u,tooltipElement:l,cullingBehavior:d={opacity:.3,hide:!0,closeContent:!0,effect:"fade"},tooltipBehavior:f={hideOnFocus:!0},onOutsideClickBehavior:p={focusOut:!0},hide:h=!1,onClick:m,onFocus:g,onFocusOut:v,onMouseEnter:y,onMouseLeave:b,changeFocus:w}=r,S=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(r,["id","focus","label","content","tooltipContent","labelElement","contentElement","tooltipElement","cullingBehavior","tooltipBehavior","onOutsideClickBehavior","hide","onClick","onFocus","onFocusOut","onMouseEnter","onMouseLeave","changeFocus"]);const x=(0,t.useRef)(null),[M,j]=(0,t.useState)(!1),{alreadyFocus:k}=(({focus:e})=>{const[r,n]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{e&&n(!0)}),[e]),{alreadyFocus:r}})({focus:o}),{visible:A}=(({ref:e,hide:r})=>{const[n,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 r||t.observe(e.current,{attributes:!0}),()=>t.disconnect()}),[e,r]),{visible:n}})({ref:x,hide:h}),O=document.querySelector(".hotspots-container"),I=null!=c?c:Fe,C=null!=u?u:Ze,N=null!=l?l:Ue,D=(0,t.useCallback)((()=>{w(!o),m&&m(n)}),[o,m,w]),E=(0,t.useCallback)((e=>{e?y&&y(n):b&&b(n),j(e)}),[y,b,M]),z=e=>{O&&x.current&&(!O.contains(e.target)&&p.focusOut||O.contains(e.target)&&!x.current.contains(e.target))&&w(!1)};return(0,t.useEffect)((()=>(window.addEventListener("mousedown",z),()=>{window.removeEventListener("mousedown",z)})),[x]),(0,t.useEffect)((()=>{o&&g&&g(n),!o&&v&&k&&v(n)}),[o]),h?null:(0,e.jsxs)(Pe,Object.assign({id:n,ref:x},S,{className:!1===d.hide?"always-visible":"",onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),effectTransition:d.effect,hide:d.hide,opacity:d.opacity},{children:[M&&s&&(!(null==f?void 0:f.hideOnFocus)||!o)&&N({},s,o),I({onClick:void 0,onMouseDown:D},i,o),a&&o&&(!d.closeContent||A)?C({},a,o):null]}),void 0)};var He=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},We=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const Ge=(0,t.createContext)({}),Qe=r().forwardRef((({glbSrc:r,exposure:n,hdri:o,noZoom:i,minZoom:a,maxZoom:s,initialZoom:c,backgroundColor:u,backgroundImage:l,sceneBackground:d,activeShadow:f,activeBakedShadow:p,shadowOffsetX:h,shadowOffsetY:m,shadowOffsetZ:g,shadowOpacity:v,shadowRadius:y,cameraOrbitSensitivity:b,minAzimuthalAngleRotation:w,maxAzimuthalAngleRotation:S,minPolarAngleRotation:x,maxPolarAngleRotation:M,maxDragX:j,minDragX:k,maxDragY:A,minDragY:O,maxDragZ:I,minDragZ:C,activeFog:N,fogColor:D,fogNear:E,fogFar:z,cameraNear:T,cameraFar:P,bloom:R,initialBloom:L,enableBloomButton:Y,bloomIntensity:_,bloomRadius:B,bloomThreshold:F,initialAnimation:Z,children:U},$)=>{const[H,W]=(0,t.useState)(),[G,Q]=(0,t.useState)(R?L?"bloomOn":"bloomOff":"noBloom"),{hotspots:X,renderHotspots:V,insertHotspot:q,updateHotspot:J,removeHotspot:K,showHotspot:ee,hideHotspot:te,focusHotspot:re,getActiveHotspotId:ne}=(()=>{const[r,n]=(0,t.useState)([]),[o,i]=(0,t.useState)(null),a=e=>{var{id:t}=e,r=He(e,["id"]);n((e=>{const n=e.find((e=>e.id===t));return e.filter((e=>e.id!==t)).concat(Object.assign(Object.assign({id:t},n),r))}))};return{hotspots:r,renderHotspots:()=>(0,e.jsx)("div",Object.assign({className:"hotspots-container"},{children:r.map((t=>{var{id:r}=t,n=He(t,["id"]);return(0,e.jsx)($e,Object.assign({id:r,focus:o===r,changeFocus:e=>{i((t=>e&&t!==r?r:e||t!==r?t:null))}},n),r)}))}),void 0),insertHotspot:e=>{var t=He(e,[]);const{id:r,initialFocus:o}=Object.assign({},t);n((e=>{const n=e.concat(Object.assign({},t));return o&&i(r),n}))},updateHotspot:a,removeHotspot:e=>{n((t=>t.filter((t=>t.id!==e))))},showHotspot:e=>{a({id:e,hide:!1})},hideHotspot:e=>{a({id:e,hide:!0})},focusHotspot:(e,t=!0,n=!1,o=!1)=>{const a=(e=>r.findIndex((({id:t})=>t===e)))(e);if(-1!==a)if(t){const t=r[a].onFocus;n||(r[a].onFocus=void 0),i(e),r[a].onFocus=t}else i((t=>t===e?null:t)),o&&(e=>{const t=r.find((t=>t.id===e));t&&t.onFocusOut&&t.onFocusOut(e)})(e)},getActiveHotspotId:()=>o}})();return(0,t.useImperativeHandle)($,(()=>({insertModelNode:e=>{H&&H.insertModelNode(e)},insertSlotModelNode:e=>We(void 0,void 0,void 0,(function*(){return H?H.insertSlotModelNode(e):null})),deleteModelNode:e=>{H&&H.deleteModelNode(e)},updateBloom:e=>{Q(e?"bloomOn":"bloomOff")},getAllSlotsMaterials:()=>H?H.getAllSlotsMaterials():null,setMaterial:(...e)=>{H&&H.setMaterial(...e)},getAllSlotsModels:()=>H?H.getAllSlotsModels():null,setModel:(...e)=>{H&&H.setModel(...e)},getCamera:()=>H?H.camera.controls.getCamera():null,setCamera:e=>{H&&H.camera.controls.setCamera(e)},updateShadow:e=>{var t;H&&(null===(t=H.world.environment)||void 0===t||t.updateShadow(e))},updateFog:e=>{var t;H&&(null===(t=H.world.environment)||void 0===t||t.updateFog(e))},updateBloomProps:e=>{var t;H&&(null===(t=H.world.environment)||void 0===t||t.updateBloom(e))},updateEnvironment:e=>{H&&H.updateEnvironment(e)},getCustomizedModel:(...e)=>We(void 0,void 0,void 0,(function*(){return H?H.getCustomizedModel(...e):null})),getCurrentCustomization:()=>H?H.getCurrentCustomization():null,insertHotspot:e=>{var t,r,n,o,i,a,s,c;return H?X.find((t=>t.id===e.id))?null:(q(Object.assign(Object.assign({},e),{onFocus:t=>{e.onFocus&&e.onFocus(t),e.onFocusBehavior&&(e.onFocusBehavior.centerCameraAtHotspot&&H.centerCameraAtHotspot(e.id),e.onFocusBehavior.lookToHotspot&&H.lookToHotspot(e.id),e.onFocusBehavior.cameraSettings&&H.camera.controls.setCamera(Object.assign({},e.onFocusBehavior.cameraSettings)))}})),H.insertHotspot(e.id,e.position,null===(r=null===(t=e.onFocusBehavior)||void 0===t?void 0:t.cameraSettings)||void 0===r?void 0:r.cameraTarget,null===(o=null===(n=e.onFocusBehavior)||void 0===n?void 0:n.cameraSettings)||void 0===o?void 0:o.polarAngle,null===(a=null===(i=e.onFocusBehavior)||void 0===i?void 0:i.cameraSettings)||void 0===a?void 0:a.azimuthalAngle,null===(c=null===(s=e.onFocusBehavior)||void 0===s?void 0:s.cameraSettings)||void 0===c?void 0:c.radius)):null},lookToHotspot:(...e)=>H?H.lookToHotspot(...e):null,updateHotspot:e=>{var t,r,n,o,i,a,s,c;return H?(J(Object.assign(Object.assign({},e),{onFocus:t=>{e.onFocus&&e.onFocus(t),e.onFocusBehavior&&(e.onFocusBehavior.centerCameraAtHotspot&&H.centerCameraAtHotspot(e.id),e.onFocusBehavior.lookToHotspot&&H.lookToHotspot(e.id),e.onFocusBehavior.cameraSettings&&H.camera.controls.setCamera(Object.assign({},e.onFocusBehavior.cameraSettings)))}})),H.updateHotspot(e.id,e.position,null===(r=null===(t=e.onFocusBehavior)||void 0===t?void 0:t.cameraSettings)||void 0===r?void 0:r.cameraTarget,null===(o=null===(n=e.onFocusBehavior)||void 0===n?void 0:n.cameraSettings)||void 0===o?void 0:o.polarAngle,null===(a=null===(i=e.onFocusBehavior)||void 0===i?void 0:i.cameraSettings)||void 0===a?void 0:a.azimuthalAngle,null===(c=null===(s=e.onFocusBehavior)||void 0===s?void 0:s.cameraSettings)||void 0===c?void 0:c.radius)):null},deleteHotspot:e=>H?(K(e),H.deleteHotspot(e)):null,showHotspot:e=>{ee(e)},hideHotspot:e=>{te(e)},focusHotspot:(...e)=>{re(...e)},getActiveHotspotId:()=>ne(),downloadGlb:(e="model.glb",t=!0)=>{H&&H.getCustomizedModel(t).then((t=>{if(!t)return void console.error("Error: could not export the glb!");const r=document.createElement("a");r.href=URL.createObjectURL(t),r.download=e,r.click()}))},getAnimationIds:e=>(null==H?void 0:H.world.getAnimationIds(e))||[],playAnimation:(e,t,r)=>{var n;return void 0===r&&(r=null===(n=null==H?void 0:H.world.model)||void 0===n?void 0:n.id),(null==H?void 0:H.world.playAnimation(e,t,r))||Promise.reject()},stopAnimation:(e,t)=>{null==H||H.world.stopAnimation(e,t)}}))),(0,e.jsxs)(Ge.Provider,Object.assign({value:{glbSrc:r,exposure:n,hdri:"neutral"===o?"https://sdk.r2u.io/hdri/neutral.hdr":o,noZoom:i,minZoom:a,maxZoom:s,initialZoom:c,backgroundColor:u,backgroundImage:l,sceneBackground:d,activeShadow:f,activeBakedShadow:p,shadowOffsetX:h,shadowOffsetY:m,shadowOffsetZ:g,shadowOpacity:v,shadowRadius:y,cameraOrbitSensitivity:b,minAzimuthalAngleRotation:w,maxAzimuthalAngleRotation:S,minPolarAngleRotation:x,maxPolarAngleRotation:M,maxDragX:j,minDragX:k,maxDragY:A,minDragY:O,maxDragZ:I,minDragZ:C,activeFog:N,fogColor:D,fogNear:E,fogFar:z,cameraNear:T,cameraFar:P,experience:H,setExperience:W,bloom:R,initialBloom:L,enableBloomButton:Y,bloomIntensity:_,bloomRadius:B,bloomThreshold:F,initialAnimation:Z,hasBloom:G,setHasBloom:Q}},{children:[U,V()]}),void 0)})),Xe=()=>(0,t.useContext)(Ge),Ve=Te.div`
|
|
114
114
|
opacity: 0;
|
|
115
115
|
|
|
116
116
|
.bloomButtonR2U {
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
transition: opacity 0.25s;
|
|
170
170
|
|
|
171
171
|
:hover {
|
|
172
|
-
cursor:
|
|
172
|
+
cursor: grab;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
&.active {
|
|
@@ -206,10 +206,10 @@
|
|
|
206
206
|
opacity: 0;
|
|
207
207
|
transition: opacity 0.3s;
|
|
208
208
|
}
|
|
209
|
-
`,ot=()=>{const r=(0,t.useRef)(null),o=(0,t.useRef)(null),i=(0,t.useRef)(null),s=(0,t.useRef)(null),{glbSrc:c,exposure:
|
|
209
|
+
`,ot=()=>{const r=(0,t.useRef)(null),o=(0,t.useRef)(null),i=(0,t.useRef)(null),s=(0,t.useRef)(null),{glbSrc:c,exposure:u,hdri:l,noZoom:d,minZoom:f,maxZoom:p,initialZoom:h,backgroundColor:m,backgroundImage:g,sceneBackground:v,activeShadow:y,activeBakedShadow:b,shadowOffsetX:w,shadowOffsetY:S,shadowOffsetZ:x,shadowOpacity:M,shadowRadius:j,cameraOrbitSensitivity:k,minAzimuthalAngleRotation:A,maxAzimuthalAngleRotation:O,minPolarAngleRotation:I,maxPolarAngleRotation:C,maxDragX:N,minDragX:D,maxDragY:E,minDragY:z,maxDragZ:T,minDragZ:P,activeFog:R,fogColor:L,fogNear:Y,fogFar:_,cameraNear:B,cameraFar:F,experience:Z,setExperience:U,hasBloom:$,bloomIntensity:H,bloomRadius:W,bloomThreshold:G,initialAnimation:Q}=Xe();return(0,t.useEffect)((()=>{r.current&&!Z&&o.current&&i.current&&s.current&&Promise.all([a.e(167),a.e(628)]).then(a.bind(a,999)).then((({default:e})=>{const t=new e({canvas:r.current,glbSrc:c,exposure:u,hdri:l,noZoom:d,minZoom:f,maxZoom:p,initialZoom:h,sceneBackground:v,activeShadow:y,activeBakedShadow:b,shadowOffsetX:w,shadowOffsetY:S,shadowOffsetZ:x,shadowOpacity:M,shadowRadius:j,cameraOrbitSensitivity:k,minAzimuthalAngleRotation:A,maxAzimuthalAngleRotation:O,minPolarAngleRotation:I,maxPolarAngleRotation:C,maxDragX:N,minDragX:D,maxDragY:E,minDragY:z,maxDragZ:T,minDragZ:P,activeFog:R,fogColor:L,fogNear:Y,fogFar:_,cameraNear:B,cameraFar:F,bloomIntensity:H,bloomRadius:W,bloomThreshold:G,initialAnimation:Q,loadingDiv:o.current,instructionsImg:i.current,bloomButton:s.current,defaultAnimationOptions:{}});U(t)}))}),[r,Z,o,i,s]),null==Z||Z.updateBloom($),(0,t.useEffect)((()=>{Z&&Z.updateGlb(c)}),[c]),(0,t.useEffect)((()=>{Z&&Z.updateBloom($)}),[$]),(0,e.jsxs)(nt,Object.assign({background:m,backgroundImage:g},{children:[(0,e.jsxs)(rt,{children:[(0,e.jsx)(et,{ref:o},void 0),(0,e.jsx)(qe,{ref:s},void 0)]},void 0),(0,e.jsx)("canvas",{ref:r},void 0),(0,e.jsx)("img",{ref:i,className:"instructions",src:n,alt:n,style:{height:"30px",width:"30px"}},void 0)]}),void 0)},it=Te.div`
|
|
210
210
|
position: relative;
|
|
211
211
|
width: 100% !important;
|
|
212
212
|
height: 100% !important;
|
|
213
213
|
|
|
214
214
|
overflow: hidden;
|
|
215
|
-
`,at=r().forwardRef(((r,n)=>{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:y=0,shadowOpacity:b=.1,shadowRadius:w=1,cameraOrbitSensitivity:S=2,minAzimuthalAngleRotation:x=-60,maxAzimuthalAngleRotation:M=60,minPolarAngleRotation:k=null,maxPolarAngleRotation:j=null,maxDragX:A=null,minDragX:O=null,maxDragY:C=null,minDragY:I=null,maxDragZ:N=null,minDragZ:D=null,activeFog:E=!1,fogColor:z="",fogNear:T=null,fogFar:P=null,cameraNear:R=null,cameraFar:L=null,bloom:Y=!1,initialBloom:_=!1,enableBloomButton:B=!0,bloomIntensity:Z=3,bloomRadius:U=0,bloomThreshold:$=.21,initialAnimation:F=!0,children:H,componentDidMount:W=(()=>{}),onClick:G=(()=>{}),onSessionTimeCollect:Q=(()=>{})}=r,[X,V]=(0,t.useState)();return(0,t.useEffect)((()=>{W()}),[]),(0,e.jsx)(it,Object.assign({onClick:G,onMouseEnter:()=>{V(new Date)},onMouseLeave:()=>{if(X){const e=(new Date).getTime()-X.getTime();Q(e)}}},{children:(0,e.jsxs)(Qe,Object.assign({ref:n,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:y,shadowOpacity:b,shadowRadius:w,cameraOrbitSensitivity:S,minAzimuthalAngleRotation:x,maxAzimuthalAngleRotation:M,minPolarAngleRotation:k,maxPolarAngleRotation:j,maxDragX:A,minDragX:O,maxDragY:C,minDragY:I,maxDragZ:N,minDragZ:D,activeFog:E,fogColor:z,fogNear:T,fogFar:P,cameraNear:R,cameraFar:L,bloom:Y,initialBloom:_,enableBloomButton:B,bloomIntensity:Z,bloomRadius:U,bloomThreshold:$,initialAnimation:F},{children:[H,(0,e.jsx)(ot,{},void 0)]}),void 0)}),void 0)}))})(),s})(),e.exports=n(r(7294))},8679:function(e,t,r){"use strict";var n=r(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 n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.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,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=c(t),m=c(r),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||n&&n[v]||m&&m[v]||s&&s[v])){var y=f(r,v);try{l(t,v,y)}catch(e){}}}}return t}},2587:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(r);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(n);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,r,n,o){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(o){var i=encodeURIComponent(t(o))+n;return Array.isArray(e[o])?e[o].map((function(e){return i+encodeURIComponent(t(e))})).join(r):i+encodeURIComponent(t(e[o]))})).filter(Boolean).join(r):o?encodeURIComponent(t(o))+n+encodeURIComponent(t(e)):""}},7673:function(e,t,r){"use strict";t.decode=t.parse=r(2587),t.encode=t.stringify=r(2361)},6339:function(e,t,r){"use strict";r.d(t,{a:function(){return i}});var n=r(7294),o=r(8718);function i(e){var t=e.i18n,r=e.defaultNS,i=e.children,a=(0,n.useMemo)((function(){return{i18n:t,defaultNS:r}}),[t,r]);return(0,n.createElement)(o.OO.Provider,{value:a},i)}},8718:function(e,t,r){"use strict";r.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 y},kK:function(){return b}});var n=r(5671),o=r(3144),i=r(4942),a=r(7294);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,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,n.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 y(e){return function(t){return new Promise((function(r){var n=b();e.getInitialProps?e.getInitialProps(t).then((function(e){r(c(c({},e),n))})):r(n)}))}}function b(){var e=g(),t=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],r={},n={};return e.languages.forEach((function(r){n[r]={},t.forEach((function(t){n[r][t]=e.getResourceBundle(r,t)||{}}))})),r.initialI18nStore=n,r.initialLanguage=e.language,r}},1752:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.r(t),r.d(t,{I18nContext:function(){return v.OO},I18nextProvider:function(){return L.a},Trans:function(){return C},Translation:function(){return R},composeInitialProps:function(){return v.qi},date:function(){return U},getDefaults:function(){return v.JP},getI18n:function(){return v.nI},getInitialProps:function(){return v.kK},initReactI18next:function(){return v.Db},number:function(){return F},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 $},useSSR:function(){return Y},useTranslation:function(){return I.$},withSSR:function(){return Z},withTranslation:function(){return T}});var o=r(1002),i=r(4942),a=r(7294),s=r(1739),c=r.n(s),l=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function u(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(c()[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("--\x3e");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}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 r in e)t.push(r+'="'+e[r]+'"');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 r,n=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");n.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(d,(function(s,c){if(a){if(s!=="</"+r.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?(n.push(g),n):((l=o[i]).children.push(g),n)}if(d&&(i++,"tag"===(r=u(s)).type&&t.components[r.name]&&(r.type="component",a=!0),r.voidElement||a||!m||"<"===m||r.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===i&&n.push(r),(l=o[i-1])&&l.children.push(r),o[i]=r),(!d||r.voidElement)&&(i>-1&&(r.voidElement||r.name===s.slice(2,-1))&&(i--,r=-1===i?n:o[i]),!a&&"<"!==m&&m)){l=-1===i?n:o[i].children;var v=e.indexOf("<",h),y=e.slice(h,-1===v?void 0:v);f.test(y)&&(y=" "),(v>-1&&i+l.length>=0||" "!==y)&&l.push({type:"text",content:y})}})),n},stringify:function(e){return e.reduce((function(e,t){return e+h("",t)}),"")}},g=m,v=r(8718),y=r(8236),b=["format"],w=["children","count","parent","i18nKey","tOptions","values","defaults","components","ns","i18n","t"];function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t){if(!e)return!1;var r=e.props?e.props.children:e.children;return t?r.length>0:!!r}function k(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function j(e){return Array.isArray(e)?e:[e]}function A(e,t){if(!e)return"";var r="",i=j(e),s=t.transKeepBasicHtmlNodesFor||[];return i.forEach((function(e,i){if("string"==typeof e)r+="".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)r+="<".concat(e.type,"/>");else if(u||l&&0===c)if(e.props.i18nIsDynamicList)r+="<".concat(i,"></").concat(i,">");else if(l&&1===c&&"string"==typeof u)r+="<".concat(e.type,">").concat(u,"</").concat(e.type,">");else{var d=A(u,t);r+="<".concat(i,">").concat(d,"</").concat(i,">")}else r+="<".concat(i,"></").concat(i,">")}else if(null===e)(0,y.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=n(e,b),h=Object.keys(p);if(1===h.length){var m=f?"".concat(h[0],", ").concat(f):h[0];r+="{{".concat(m,"}}")}else(0,y.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,y.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)})),r}function O(e,t,r,n,i){if(""===t)return[];var s=n.transKeepBasicHtmlNodesFor||[],c=t&&new RegExp(s.join("|")).test(t);if(!e&&!c)return[t];var l={};!function e(t){j(t).forEach((function(t){"string"!=typeof t&&(M(t)?e(k(t)):"object"!==(0,o.Z)(t)||a.isValidElement(t)||Object.assign(l,t))}))}(e);var u=g.parse("<0>".concat(t,"</0>")),d=x(x({},l),i);function f(e,t,r){var n=k(e),o=h(n,t.children,r);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return a.isValidElement(e)}))}(n)&&0===o.length?n:o}function p(e,t,r,n,o){e.dummy&&(e.children=t),r.push(a.cloneElement(e,x(x({},e.props),{},{key:n}),o?void 0:t))}function h(t,i,l){var u=j(t);return j(i).reduce((function(t,i,m){var g,v,y,b=i.children&&i.children[0]&&i.children[0].content&&r.services.interpolator.interpolate(i.children[0].content,d,r.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 S=0!==Object.keys(i.attrs).length?(g={props:i.attrs},(y=x({},v=w)).props=Object.assign(g.props,v.props),y):w,k=a.isValidElement(S),j=k&&M(i,!0)&&!i.voidElement,A=c&&"object"===(0,o.Z)(S)&&S.dummy&&!k,O="object"===(0,o.Z)(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof S){var C=r.services.interpolator.interpolate(S,d,r.language);t.push(C)}else if(M(S)||j){p(S,f(S,i,l),t,m)}else if(A){var I=h(u,i.children,l);t.push(a.cloneElement(S,x(x({},S.props),{},{key:m}),I))}else if(Number.isNaN(parseFloat(i.name))){if(O)p(S,f(S,i,l),t,m,i.voidElement);else if(n.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)(S)||k)1===i.children.length&&b?t.push(a.cloneElement(S,x(x({},S.props),{},{key:m}),b)):t.push(a.cloneElement(S,x(x({},S.props),{},{key:m})));else{var E=i.children[0]?b:null;E&&t.push(E)}}else if("text"===i.type){var z=n.transWrapTextNodes,T=r.services.interpolator.interpolate(i.content,d,r.language);z?t.push(a.createElement(z,{key:"".concat(i.name,"-").concat(m)},T)):t.push(T)}return t}),[])}return k(h([{dummy:!0,children:e||[]}],u,j(e||[]))[0])}function C(e){var t=e.children,r=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=n(e,w),g=(0,a.useContext)(v.OO)||{},b=g.i18n,S=g.defaultNS,M=p||b||(0,v.nI)();if(!M)return(0,y.O4)("You will need to pass in an i18next instance by using i18nextReactModule"),t;var k=h||M.t.bind(M)||function(e){return e},j=x(x({},(0,v.JP)()),M.options&&M.options.react),C=f||k.ns||S||M.options&&M.options.defaultNS;C="string"==typeof C?[C]:C||["translation"];var I=u||A(t,j)||j.transEmptyNodeValue||i,N=j.hashTransKey,D=i||(N?N(I):I),E=l?c.interpolation:{interpolation:x(x({},c.interpolation),{},{prefix:"#$?",suffix:"?$#"})},z=x(x(x(x({},c),{},{count:r},l),E),{},{defaultValue:I,ns:C}),T=O(d||t,D?k(D,z):I,M,j,z),P=void 0!==o?o:j.defaultTransParent;return P?a.createElement(P,m,T):T}var I=r(6793),N=r(8152),D=["forwardedRef"];function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){function o(o){var i=o.forwardedRef,s=n(o,D),c=(0,I.$)(e,s),l=(0,N.Z)(c,3),u=l[0],d=l[1],f=l[2],p=z(z({},s),{},{t:u,i18n:d,tReady:f});return t.withRef&&i?p.ref=i:!t.withRef&&i&&(p.forwardedRef=i),a.createElement(r,p)}o.displayName="withI18nextTranslation(".concat((0,y.Gf)(r),")"),o.WrappedComponent=r;return t.withRef?a.forwardRef((function(e,t){return a.createElement(o,Object.assign({},e,{forwardedRef:t}))})):o}}var P=["ns","children"];function R(e){var t=e.ns,r=e.children,o=n(e,P),i=(0,I.$)(t,o),a=(0,N.Z)(i,3),s=a[0],c=a[1],l=a[2];return r(s,{i18n:c,lng:c.language},l)}var L=r(6339);function Y(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.i18n,o=(0,a.useContext)(v.OO)||{},i=o.i18n,s=n||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 _=["initialI18nStore","initialLanguage"];function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(){return function(e){function t(t){var r=t.initialI18nStore,o=t.initialLanguage,s=n(t,_);return Y(r,o),a.createElement(e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},s))}return t.getInitialProps=(0,v.qi)(e),t.displayName="withI18nextSSR(".concat((0,y.Gf)(e),")"),t.WrappedComponent=e,t}}var U=function(){return""},$=function(){return""},F=function(){return""},H=function(){return""},W=function(){return""},G=function(){return""}},6793:function(e,t,r){"use strict";r.d(t,{$:function(){return u}});var n=r(8152),o=r(4942),i=r(7294),a=r(8718),s=r(8236);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.i18n,o=(0,i.useContext)(a.OO)||{},c=o.i18n,u=o.defaultNS,d=r||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 y=(d.isInitialized||d.initializedStoreOnce)&&v.every((function(e){return(0,s.F0)(e,d,h)}));function b(){return d.getFixedT(null,"fallback"===h.nsMode?v:v[0],g)}var w=(0,i.useState)(b),S=(0,n.Z)(w,2),x=S[0],M=S[1],k=(0,i.useRef)(!0);(0,i.useEffect)((function(){var e=h.bindI18n,t=h.bindI18nStore;function r(){k.current&&M(b)}return k.current=!0,y||m||(0,s.DC)(d,v,(function(){k.current&&M(b)})),e&&d&&d.on(e,r),t&&d&&d.store.on(t,r),function(){k.current=!1,e&&d&&e.split(" ").forEach((function(e){return d.off(e,r)})),t&&d&&t.split(" ").forEach((function(e){return d.store.off(e,r)}))}}),[d,v.join()]);var j=(0,i.useRef)(!0);(0,i.useEffect)((function(){k.current&&!j.current&&M(b),j.current=!1}),[d]);var A=[x,d,y];if(A.t=x,A.i18n=d,A.ready=y,y)return A;if(!y&&!m)return A;throw new Promise((function(e){(0,s.DC)(d,v,(function(){e()}))}))}},8236:function(e,t,r){"use strict";function n(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}r.d(t,{ZK:function(){return n},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),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&o[t[0]]||("string"==typeof t[0]&&(o[t[0]]=new Date),n.apply(void 0,t))}function a(e,t,r){e.loadNamespaces(t,(function(){if(e.isInitialized)r();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),r()}))}}))}function s(e,t){var r=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 n=t.languages[0],o=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var s=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(n,e)||(!t.services.backendConnector.backend||!(!s(n,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 r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n: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 x(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,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 x(e)||S(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(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===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=S},9864:function(e,t,r){"use strict";e.exports=r(9921)},6774:function(e){e.exports=function(e,t,r,n){var o=r?r.call(n,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=r?r.call(n,u,d,l):void 0)||void 0===o&&u!==d)return!1}return!0}},9163:function(e,t,r){"use strict";r.r(t),r.d(t,{ServerStyleSheet:function(){return Ze},StyleSheetConsumer:function(){return ie},StyleSheetContext:function(){return oe},StyleSheetManager:function(){return de},ThemeConsumer:function(){return ze},ThemeContext:function(){return Ee},ThemeProvider:function(){return Te},__PRIVATE__:function(){return Fe},createGlobalStyle:function(){return _e},css:function(){return Se},default:function(){return He},isStyledComponent:function(){return S},keyframes:function(){return Be},useTheme:function(){return $e},version:function(){return M},withTheme:function(){return Ue}});var n=r(9864),o=r(7294),i=r(6774),a=r.n(i);var s=function(e){function t(e,n,c,l,f){for(var p,h,m,g,w,x=0,M=0,k=0,j=0,A=0,E=0,T=m=p=0,R=0,L=0,Y=0,_=0,B=c.length,Z=B-1,U="",$="",F="",H="";R<B;){if(h=c.charCodeAt(R),R===Z&&0!==M+j+k+x&&(0!==M&&(h=47===M?10:47),j=k=x=0,B++,Z++),0===M+j+k+x){if(R===Z&&(0<L&&(U=U.replace(d,"")),0<U.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(R)}h=59}switch(h){case 123:for(p=(U=U.trim()).charCodeAt(0),m=1,_=++R;R<B;){switch(h=c.charCodeAt(R)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(R+1)){case 42:case 47:e:{for(T=R+1;T<Z;++T)switch(c.charCodeAt(T)){case 47:if(42===h&&42===c.charCodeAt(T-1)&&R+2!==T){R=T+1;break e}break;case 10:if(47===h){R=T+1;break e}}R=T}}break;case 91:h++;case 40:h++;case 34:case 39:for(;R++<Z&&c.charCodeAt(R)!==h;);}if(0===m)break;R++}if(m=c.substring(_,R),0===p&&(p=(U=U.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(U=U.replace(d,"")),h=U.charCodeAt(1)){case 100:case 109:case 115:case 45:L=n;break;default:L=D}if(_=(m=t(n,L,m,h,f+1)).length,0<z&&(w=s(3,m,L=r(D,U,Y),n,C,O,_,h,f,l),U=L.join(""),void 0!==w&&0===(_=(m=w.trim()).length)&&(h=0,m="")),0<_)switch(h){case 115:U=U.replace(S,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(v,"$1 $2"))+"{"+m+"}",m=1===N||2===N&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===l&&($+=m,m="")}else m=""}else m=t(n,r(n,U,Y),m,l,f+1);F+=m,m=Y=L=T=p=0,U="",h=c.charCodeAt(++R);break;case 125:case 59:if(1<(_=(U=(0<L?U.replace(d,""):U).trim()).length))switch(0===T&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(_=(U=U.replace(" ",":")).length),0<z&&void 0!==(w=s(1,U,n,e,C,O,$.length,l,f,l))&&0===(_=(U=w.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),h=U.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=U+c.charAt(R);break}default:58!==U.charCodeAt(_-1)&&($+=o(U,p,h,U.charCodeAt(2)))}Y=L=T=p=0,U="",h=c.charCodeAt(++R)}}switch(h){case 13:case 10:47===M?M=0:0===1+p&&107!==l&&0<U.length&&(L=1,U+="\0"),0<z*P&&s(0,U,n,e,C,O,$.length,l,f,l),O=1,C++;break;case 59:case 125:if(0===M+j+k+x){O++;break}default:switch(O++,g=c.charAt(R),h){case 9:case 32:if(0===j+x+M)switch(A){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===j+M+x&&(L=Y=1,g="\f"+g);break;case 108:if(0===j+M+x+I&&0<T)switch(R-T){case 2:112===A&&58===c.charCodeAt(R-3)&&(I=A);case 8:111===E&&(I=E)}break;case 58:0===j+M+x&&(T=R);break;case 44:0===M+k+j+x&&(L=1,g+="\r");break;case 34:case 39:0===M&&(j=j===h?0:0===j?h:j);break;case 91:0===j+M+k&&x++;break;case 93:0===j+M+k&&x--;break;case 41:0===j+M+x&&k--;break;case 40:if(0===j+M+x){if(0===p)if(2*A+3*E==533);else p=1;k++}break;case 64:0===M+k+j+x+T+m&&(m=1);break;case 42:case 47:if(!(0<j+x+k))switch(M){case 0:switch(2*h+3*c.charCodeAt(R+1)){case 235:M=47;break;case 220:_=R,M=42}break;case 42:47===h&&42===A&&_+2!==R&&(33===c.charCodeAt(_+2)&&($+=c.substring(_,R+1)),g="",M=0)}}0===M&&(U+=g)}E=A,A=h,R++}if(0<(_=$.length)){if(L=n,0<z&&(void 0!==(w=s(2,$,L,e,C,O,_,l,f,l))&&0===($=w).length))return H+$+F;if($=L.join(",")+"{"+$+"}",0!=N*I){switch(2!==N||i($,2)||(I=0),I){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(y,"::-webkit-input-$1")+$.replace(y,"::-moz-$1")+$.replace(y,":-ms-input-$1")+$}I=0}}return H+$+F}function r(e,t,r){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]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[c++]=n(e[l]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;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(A,"$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===j.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).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===r+n&&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 r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),T(2!==t?n:n.replace(k,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,u){for(var d,f=0,p=t;f<z;++f)switch(d=E[f].call(l,e,p,r,n,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,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<z){var o=s(-1,r,n,n,C,O,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(D,n,r,0,0);return 0<z&&(void 0!==(o=s(-2,i,n,n,C,O,i.length,0,0,0))&&(i=o)),"",I=0,O=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*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,M=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,j=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,O=1,C=1,I=0,N=1,D=[],E=[],z=0,T=null,P=0;return l.use=function e(t){switch(t){case void 0:case null:z=E.length=0;break;default:if("function"==typeof t)E[z++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);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(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return l.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),d=r(8679),f=r.n(d),p=r(4155);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var m=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},g=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},v=Object.freeze([]),y=Object.freeze({});function b(e){return"function"==typeof e}function w(e){return e.displayName||e.name||"Component"}function S(e){return e&&"string"==typeof e.styledComponentId}var x=void 0!==p&&(p.env.REACT_APP_SC_ATTR||p.env.SC_ATTR)||"data-styled",M="5.3.1",k="undefined"!=typeof window&&"HTMLElement"in window,j=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)),A={};function O(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.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,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&O(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;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],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),I=new Map,N=new Map,D=1,E=function(e){if(I.has(e))return I.get(e);for(;N.has(D);)D++;var t=D++;return I.set(e,t),N.set(t,e),t},z=function(e){return N.get(e)},T=function(e,t){t>=D&&(D=t+1),I.set(e,t),N.set(t,e)},P="style["+x+'][data-styled-version="5.3.1"]',R=new RegExp("^"+x+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Y=function(e,t){for(var r=(t.innerHTML||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(R);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(T(l,c),L(e,l,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},_=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},B=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(x))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(x,"active"),n.setAttribute("data-styled-version","5.3.1");var a=_();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},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,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}O(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=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 r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||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}(),F=k,H={isServer:!k,useCSSOMInjection:!j},W=function(){function e(e,t,r){void 0===e&&(e=y),void 0===t&&(t={}),this.options=h({},H,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&k&&F&&(F=!1,function(e){for(var t=document.querySelectorAll(P),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(x)&&(Y(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,r){return void 0===r&&(r=!0),new e(h({},this.options,{},t),this.gs,r&&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=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new $(o):n?new Z(o):new U(o),new C(e)));var e,t,r,n,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 r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(E(e),r)},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(),r=t.length,n="",o=0;o<r;o++){var i=z(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=x+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),n+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return n}(this)},e}(),G=/(a)(d)/gi,Q=function(e){return String.fromCharCode(e+(e>25?39:97))};function X(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Q(t%52)+r;return(Q(t%52)+r).replace(G,"$1-$2")}var V=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},q=function(e){return V(5381,e)};function J(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(b(r)&&!S(r))return!1}return!0}var K=q("5.3.1"),ee=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&J(e),this.componentId=t,this.baseHash=V(K,t),this.baseStyle=r,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=be(this.rules,e,t,r).join(""),a=X(V(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=V(this.baseHash,r.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,r),h=Array.isArray(p)?p.join(""):p;l=V(l,h+d),u+=h}}if(u){var m=X(l>>>0);if(!t.hasNameForId(n,m)){var g=r(u,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),te=/^\s*\/\/.*$/gm,re=[":","[",".","#"];function ne(e){var t,r,n,o,i=void 0===e?y:e,a=i.options,c=void 0===a?y: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(r,n,o,i,a,s,c,l,u,d){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===l)return n+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,n,i){return 0===n&&-1!==re.indexOf(i[r.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,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),d(a||!i?"":i,l)}return d.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,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||O(15),V(e,t.name)}),5381).toString():"",m}var oe=o.createContext(),ie=oe.Consumer,ae=o.createContext(),se=(ae.Consumer,new W),ce=ne();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),r=t[0],n=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 ne({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,o.useEffect)((function(){a()(r,e.stylisPlugins)||n(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 r=this;this.inject=function(e,t){void 0===t&&(t=ce);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return O(12,String(r.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 ye=function(e){return null==e||!1===e||""===e};function be(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=be(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ye(e)?"":S(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:be(e(t),t,r,n):e instanceof fe?r?(e.inject(r,n),e.getName(n)):e:g(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ye(t[a])&&(Array.isArray(t[a])&&t[a].isCss||b(t[a])?i.push(ve(a)+":",t[a],";"):g(t[a])?i.push.apply(i,e(t[a],a)):i.push(ve(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in c?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var l}var we=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Se(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return b(e)||g(e)?we(be(m(v,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:we(be(m(e,r)))}new Set;var xe=function(e,t,r){return void 0===r&&(r=y),e.theme!==r.theme&&e.theme||t||r.theme},Me=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function je(e){return e.replace(Me,"-").replace(ke,"")}var Ae=function(e){return X(q(e)>>>0)};function Oe(e){return"string"==typeof e&&!0}var Ce=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ie=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ne(e,t,r){var n=e[r];Ce(t)&&Ce(n)?De(n,t):e[r]=t}function De(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(Ce(a))for(var s in a)Ie(s)&&Ne(e,a[s],s)}return e}var Ee=o.createContext(),ze=Ee.Consumer;function Te(e){var t=(0,o.useContext)(Ee),r=(0,o.useMemo)((function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?O(8):t?h({},t,{},e):e:O(14)}(e.theme,t)}),[e.theme,t]);return e.children?o.createElement(Ee.Provider,{value:r},e.children):null}var Pe={};function Re(e,t,r){var n=S(e),i=!Oe(e),a=t.attrs,s=void 0===a?v:a,c=t.componentId,l=void 0===c?function(e,t){var r="string"!=typeof e?"sc":je(e);Pe[r]=(Pe[r]||0)+1;var n=r+"-"+Ae("5.3.1"+r+Pe[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):c,d=t.displayName,p=void 0===d?function(e){return Oe(e)?"styled."+e:"Styled("+w(e)+")"}(e):d,m=t.displayName&&t.componentId?je(t.displayName)+"-"+t.componentId:t.componentId||l,g=n&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,x=t.shouldForwardProp;n&&e.shouldForwardProp&&(x=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var M,k=new ee(r,m,n?e.componentStyle:void 0),j=k.isStatic&&0===s.length,A=function(e,t){return function(e,t,r,n){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,r){void 0===e&&(e=y);var n=h({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in b(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(xe(t,(0,o.useContext)(Ee),s)||y,t,i),m=p[0],g=p[1],v=function(e,t,r,n){var o=le(),i=ue();return t?e.generateAndInjectStyles(y,o,i):e.generateAndInjectStyles(r,o,i)}(a,n,m),w=r,S=g.$as||t.$as||g.as||t.as||f,x=Oe(S),M=g!==t?h({},t,{},g):t,k={};for(var j in M)"$"!==j[0]&&"as"!==j&&("forwardedAs"===j?k.as=M[j]:(l?l(j,u,S):!x||u(j))&&(k[j]=M[j]));return t.style&&g.style!==t.style&&(k.style=h({},t.style,{},g.style)),k.className=Array.prototype.concat(c,d,v!==d?v:null,t.className,g.className).filter(Boolean).join(" "),k.ref=w,(0,o.createElement)(S,k)}(M,e,t,j)};return A.displayName=p,(M=o.forwardRef(A)).attrs=g,M.componentStyle=k,M.displayName=p,M.shouldForwardProp=x,M.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):v,M.styledComponentId=m,M.target=n?e.target:e,M.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Oe(e)?e:je(w(e)));return Re(e,h({},o,{attrs:g,componentId:i}),r)},Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?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 Le=function(e){return function e(t,r,o){if(void 0===o&&(o=y),!(0,n.isValidElementType)(r))return O(1,String(r));var i=function(){return t(r,o,Se.apply(void 0,arguments))};return i.withConfig=function(n){return e(t,r,h({},o,{},n))},i.attrs=function(n){return e(t,r,h({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},i}(Re,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){Le[e]=Le(e)}));var Ye=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=J(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(be(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function _e(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Se.apply(void 0,[e].concat(r)),a="sc-global-"+Ae(JSON.stringify(i)),s=new Ye(i,a);function c(e){var t=le(),r=ue(),n=(0,o.useContext)(Ee),i=(0,o.useRef)(t.allocateGSInstance(a)).current;return t.server&&l(i,e,t,n,r),(0,o.useLayoutEffect)((function(){if(!t.server)return l(i,e,t,n,r),function(){return s.removeStyles(i,t)}}),[i,e,t,n,r]),null}function l(e,t,r,n,o){if(s.isStatic)s.renderStyles(e,A,r,o);else{var i=h({},t,{theme:xe(t,n,c.defaultProps)});s.renderStyles(e,i,r,o)}}return o.memo(c)}function Be(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Se.apply(void 0,[e].concat(r)).join(""),i=Ae(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 r=_();return"<style "+[r&&'nonce="'+r+'"',x+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?O(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return O(2);var r=((t={})[x]="",t["data-styled-version"]="5.3.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=_();return n&&(r.nonce=n),[o.createElement("style",h({},r,{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?O(2):o.createElement(de,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return O(3)},e}(),Ue=function(e){var t=o.forwardRef((function(t,r){var n=(0,o.useContext)(Ee),i=e.defaultProps,a=xe(t,n,i);return o.createElement(e,h({},t,{theme:a,ref:r}))}));return f()(t,e),t.displayName="WithTheme("+w(e)+")",t},$e=function(){return(0,o.useContext)(Ee)},Fe={StyleSheet:W,masterSheet:se},He=Le},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,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(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.")}()}r.d(t,{Z:function(){return o}})}}]);
|
|
215
|
+
`,at=r().forwardRef(((r,n)=>{const{glbSrc:o,exposure:i=.55,hdri:a="neutral",noZoom:s=!1,minZoom:c=null,maxZoom:u=null,initialZoom:l=null,backgroundColor:d="",backgroundImage:f="",sceneBackground:p=!1,activeShadow:h=!0,activeBakedShadow:m=!1,shadowOffsetX:g=0,shadowOffsetY:v=10,shadowOffsetZ:y=0,shadowOpacity:b=.1,shadowRadius:w=1,cameraOrbitSensitivity:S=2,minAzimuthalAngleRotation:x=-60,maxAzimuthalAngleRotation:M=60,minPolarAngleRotation:j=null,maxPolarAngleRotation:k=null,maxDragX:A=null,minDragX:O=null,maxDragY:I=null,minDragY:C=null,maxDragZ:N=null,minDragZ:D=null,activeFog:E=!1,fogColor:z="",fogNear:T=null,fogFar:P=null,cameraNear:R=null,cameraFar:L=null,bloom:Y=!1,initialBloom:_=!1,enableBloomButton:B=!0,bloomIntensity:F=3,bloomRadius:Z=0,bloomThreshold:U=.21,initialAnimation:$=!0,children:H,componentDidMount:W=(()=>{}),onClick:G=(()=>{}),onSessionTimeCollect:Q=(()=>{})}=r,[X,V]=(0,t.useState)();return(0,t.useEffect)((()=>{W()}),[]),(0,e.jsx)(it,Object.assign({onClick:G,onMouseEnter:()=>{V(new Date)},onMouseLeave:()=>{if(X){const e=(new Date).getTime()-X.getTime();Q(e)}}},{children:(0,e.jsxs)(Qe,Object.assign({ref:n,glbSrc:o,exposure:i,hdri:a,noZoom:s,minZoom:c,maxZoom:u,initialZoom:l,backgroundColor:d,backgroundImage:f,sceneBackground:p,activeShadow:h,activeBakedShadow:m,shadowOffsetX:g,shadowOffsetY:v,shadowOffsetZ:y,shadowOpacity:b,shadowRadius:w,cameraOrbitSensitivity:S,minAzimuthalAngleRotation:x,maxAzimuthalAngleRotation:M,minPolarAngleRotation:j,maxPolarAngleRotation:k,maxDragX:A,minDragX:O,maxDragY:I,minDragY:C,maxDragZ:N,minDragZ:D,activeFog:E,fogColor:z,fogNear:T,fogFar:P,cameraNear:R,cameraFar:L,bloom:Y,initialBloom:_,enableBloomButton:B,bloomIntensity:F,bloomRadius:Z,bloomThreshold:U,initialAnimation:$},{children:[H,(0,e.jsx)(ot,{},void 0)]}),void 0)}),void 0)}))})(),s})(),e.exports=n(r(7294))},8679:function(e,t,r){"use strict";var n=r(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 n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=l(r);d&&(a=a.concat(d(r)));for(var s=c(t),m=c(r),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||n&&n[v]||m&&m[v]||s&&s[v])){var y=f(r,v);try{u(t,v,y)}catch(e){}}}}return t}},2587:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(r);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var l,d,f,p,h=e[u].replace(a,"%20"),m=h.indexOf(n);m>=0?(l=h.substr(0,m),d=h.substr(m+1)):(l=h,d=""),f=decodeURIComponent(l),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,r,n,o){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(o){var i=encodeURIComponent(t(o))+n;return Array.isArray(e[o])?e[o].map((function(e){return i+encodeURIComponent(t(e))})).join(r):i+encodeURIComponent(t(e[o]))})).filter(Boolean).join(r):o?encodeURIComponent(t(o))+n+encodeURIComponent(t(e)):""}},7673:function(e,t,r){"use strict";t.decode=t.parse=r(2587),t.encode=t.stringify=r(2361)},6339:function(e,t,r){"use strict";r.d(t,{a:function(){return i}});var n=r(7294),o=r(8718);function i(e){var t=e.i18n,r=e.defaultNS,i=e.children,a=(0,n.useMemo)((function(){return{i18n:t,defaultNS:r}}),[t,r]);return(0,n.createElement)(o.OO.Provider,{value:a},i)}},8718:function(e,t,r){"use strict";r.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 y},kK:function(){return b}});var n=r(5671),o=r(3144),i=r(4942),a=r(7294);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u,l={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]:{};l=c(c({},l),e)}function p(){return l}var h=function(){function e(){(0,n.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){u=e}function g(){return u}var v={type:"3rdParty",init:function(e){f(e.options.react),m(e)}};function y(e){return function(t){return new Promise((function(r){var n=b();e.getInitialProps?e.getInitialProps(t).then((function(e){r(c(c({},e),n))})):r(n)}))}}function b(){var e=g(),t=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],r={},n={};return e.languages.forEach((function(r){n[r]={},t.forEach((function(t){n[r][t]=e.getResourceBundle(r,t)||{}}))})),r.initialI18nStore=n,r.initialLanguage=e.language,r}},1752:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.r(t),r.d(t,{I18nContext:function(){return v.OO},I18nextProvider:function(){return L.a},Trans:function(){return I},Translation:function(){return R},composeInitialProps:function(){return v.qi},date:function(){return Z},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 C.$},withSSR:function(){return F},withTranslation:function(){return T}});var o=r(1002),i=r(4942),a=r(7294),s=r(1739),c=r.n(s),u=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function l(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(c()[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("--\x3e");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var o=new RegExp(u),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 r in e)t.push(r+'="'+e[r]+'"');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 r,n=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");n.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(d,(function(s,c){if(a){if(s!=="</"+r.name+">")return;a=!1}var u,d="/"!==s.charAt(1),p=s.startsWith("\x3c!--"),h=c+s.length,m=e.charAt(h);if(p){var g=l(s);return i<0?(n.push(g),n):((u=o[i]).children.push(g),n)}if(d&&(i++,"tag"===(r=l(s)).type&&t.components[r.name]&&(r.type="component",a=!0),r.voidElement||a||!m||"<"===m||r.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===i&&n.push(r),(u=o[i-1])&&u.children.push(r),o[i]=r),(!d||r.voidElement)&&(i>-1&&(r.voidElement||r.name===s.slice(2,-1))&&(i--,r=-1===i?n:o[i]),!a&&"<"!==m&&m)){u=-1===i?n:o[i].children;var v=e.indexOf("<",h),y=e.slice(h,-1===v?void 0:v);f.test(y)&&(y=" "),(v>-1&&i+u.length>=0||" "!==y)&&u.push({type:"text",content:y})}})),n},stringify:function(e){return e.reduce((function(e,t){return e+h("",t)}),"")}},g=m,v=r(8718),y=r(8236),b=["format"],w=["children","count","parent","i18nKey","tOptions","values","defaults","components","ns","i18n","t"];function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t){if(!e)return!1;var r=e.props?e.props.children:e.children;return t?r.length>0:!!r}function j(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function k(e){return Array.isArray(e)?e:[e]}function A(e,t){if(!e)return"";var r="",i=k(e),s=t.transKeepBasicHtmlNodesFor||[];return i.forEach((function(e,i){if("string"==typeof e)r+="".concat(e);else if(a.isValidElement(e)){var c=Object.keys(e.props).length,u=s.indexOf(e.type)>-1,l=e.props.children;if(!l&&u&&0===c)r+="<".concat(e.type,"/>");else if(l||u&&0===c)if(e.props.i18nIsDynamicList)r+="<".concat(i,"></").concat(i,">");else if(u&&1===c&&"string"==typeof l)r+="<".concat(e.type,">").concat(l,"</").concat(e.type,">");else{var d=A(l,t);r+="<".concat(i,">").concat(d,"</").concat(i,">")}else r+="<".concat(i,"></").concat(i,">")}else if(null===e)(0,y.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=n(e,b),h=Object.keys(p);if(1===h.length){var m=f?"".concat(h[0],", ").concat(f):h[0];r+="{{".concat(m,"}}")}else(0,y.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,y.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)})),r}function O(e,t,r,n,i){if(""===t)return[];var s=n.transKeepBasicHtmlNodesFor||[],c=t&&new RegExp(s.join("|")).test(t);if(!e&&!c)return[t];var u={};!function e(t){k(t).forEach((function(t){"string"!=typeof t&&(M(t)?e(j(t)):"object"!==(0,o.Z)(t)||a.isValidElement(t)||Object.assign(u,t))}))}(e);var l=g.parse("<0>".concat(t,"</0>")),d=x(x({},u),i);function f(e,t,r){var n=j(e),o=h(n,t.children,r);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return a.isValidElement(e)}))}(n)&&0===o.length?n:o}function p(e,t,r,n,o){e.dummy&&(e.children=t),r.push(a.cloneElement(e,x(x({},e.props),{},{key:n}),o?void 0:t))}function h(t,i,u){var l=k(t);return k(i).reduce((function(t,i,m){var g,v,y,b=i.children&&i.children[0]&&i.children[0].content&&r.services.interpolator.interpolate(i.children[0].content,d,r.language);if("tag"===i.type){var w=l[parseInt(i.name,10)];!w&&1===u.length&&u[0][i.name]&&(w=u[0][i.name]),w||(w={});var S=0!==Object.keys(i.attrs).length?(g={props:i.attrs},(y=x({},v=w)).props=Object.assign(g.props,v.props),y):w,j=a.isValidElement(S),k=j&&M(i,!0)&&!i.voidElement,A=c&&"object"===(0,o.Z)(S)&&S.dummy&&!j,O="object"===(0,o.Z)(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof S){var I=r.services.interpolator.interpolate(S,d,r.language);t.push(I)}else if(M(S)||k){p(S,f(S,i,u),t,m)}else if(A){var C=h(l,i.children,u);t.push(a.cloneElement(S,x(x({},S.props),{},{key:m}),C))}else if(Number.isNaN(parseFloat(i.name))){if(O)p(S,f(S,i,u),t,m,i.voidElement);else if(n.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(l,i.children,u);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(l,i.children,u);t.push("<".concat(i.name,">").concat(D,"</").concat(i.name,">"))}}else if("object"!==(0,o.Z)(S)||j)1===i.children.length&&b?t.push(a.cloneElement(S,x(x({},S.props),{},{key:m}),b)):t.push(a.cloneElement(S,x(x({},S.props),{},{key:m})));else{var E=i.children[0]?b:null;E&&t.push(E)}}else if("text"===i.type){var z=n.transWrapTextNodes,T=r.services.interpolator.interpolate(i.content,d,r.language);z?t.push(a.createElement(z,{key:"".concat(i.name,"-").concat(m)},T)):t.push(T)}return t}),[])}return j(h([{dummy:!0,children:e||[]}],l,k(e||[]))[0])}function I(e){var t=e.children,r=e.count,o=e.parent,i=e.i18nKey,s=e.tOptions,c=void 0===s?{}:s,u=e.values,l=e.defaults,d=e.components,f=e.ns,p=e.i18n,h=e.t,m=n(e,w),g=(0,a.useContext)(v.OO)||{},b=g.i18n,S=g.defaultNS,M=p||b||(0,v.nI)();if(!M)return(0,y.O4)("You will need to pass in an i18next instance by using i18nextReactModule"),t;var j=h||M.t.bind(M)||function(e){return e},k=x(x({},(0,v.JP)()),M.options&&M.options.react),I=f||j.ns||S||M.options&&M.options.defaultNS;I="string"==typeof I?[I]:I||["translation"];var C=l||A(t,k)||k.transEmptyNodeValue||i,N=k.hashTransKey,D=i||(N?N(C):C),E=u?c.interpolation:{interpolation:x(x({},c.interpolation),{},{prefix:"#$?",suffix:"?$#"})},z=x(x(x(x({},c),{},{count:r},u),E),{},{defaultValue:C,ns:I}),T=O(d||t,D?j(D,z):C,M,k,z),P=void 0!==o?o:k.defaultTransParent;return P?a.createElement(P,m,T):T}var C=r(6793),N=r(8152),D=["forwardedRef"];function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){function o(o){var i=o.forwardedRef,s=n(o,D),c=(0,C.$)(e,s),u=(0,N.Z)(c,3),l=u[0],d=u[1],f=u[2],p=z(z({},s),{},{t:l,i18n:d,tReady:f});return t.withRef&&i?p.ref=i:!t.withRef&&i&&(p.forwardedRef=i),a.createElement(r,p)}o.displayName="withI18nextTranslation(".concat((0,y.Gf)(r),")"),o.WrappedComponent=r;return t.withRef?a.forwardRef((function(e,t){return a.createElement(o,Object.assign({},e,{forwardedRef:t}))})):o}}var P=["ns","children"];function R(e){var t=e.ns,r=e.children,o=n(e,P),i=(0,C.$)(t,o),a=(0,N.Z)(i,3),s=a[0],c=a[1],u=a[2];return r(s,{i18n:c,lng:c.language},u)}var L=r(6339);function Y(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.i18n,o=(0,a.useContext)(v.OO)||{},i=o.i18n,s=n||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 _=["initialI18nStore","initialLanguage"];function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(){return function(e){function t(t){var r=t.initialI18nStore,o=t.initialLanguage,s=n(t,_);return Y(r,o),a.createElement(e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},s))}return t.getInitialProps=(0,v.qi)(e),t.displayName="withI18nextSSR(".concat((0,y.Gf)(e),")"),t.WrappedComponent=e,t}}var Z=function(){return""},U=function(){return""},$=function(){return""},H=function(){return""},W=function(){return""},G=function(){return""}},6793:function(e,t,r){"use strict";r.d(t,{$:function(){return l}});var n=r(8152),o=r(4942),i=r(7294),a=r(8718),s=r(8236);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.i18n,o=(0,i.useContext)(a.OO)||{},c=o.i18n,l=o.defaultNS,d=r||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=u(u(u({},(0,a.JP)()),d.options.react),t),m=h.useSuspense,g=h.keyPrefix,v=e||l||d.options&&d.options.defaultNS;v="string"==typeof v?[v]:v||["translation"],d.reportNamespaces.addUsedNamespaces&&d.reportNamespaces.addUsedNamespaces(v);var y=(d.isInitialized||d.initializedStoreOnce)&&v.every((function(e){return(0,s.F0)(e,d,h)}));function b(){return d.getFixedT(null,"fallback"===h.nsMode?v:v[0],g)}var w=(0,i.useState)(b),S=(0,n.Z)(w,2),x=S[0],M=S[1],j=(0,i.useRef)(!0);(0,i.useEffect)((function(){var e=h.bindI18n,t=h.bindI18nStore;function r(){j.current&&M(b)}return j.current=!0,y||m||(0,s.DC)(d,v,(function(){j.current&&M(b)})),e&&d&&d.on(e,r),t&&d&&d.store.on(t,r),function(){j.current=!1,e&&d&&e.split(" ").forEach((function(e){return d.off(e,r)})),t&&d&&t.split(" ").forEach((function(e){return d.store.off(e,r)}))}}),[d,v.join()]);var k=(0,i.useRef)(!0);(0,i.useEffect)((function(){j.current&&!k.current&&M(b),k.current=!1}),[d]);var A=[x,d,y];if(A.t=x,A.i18n=d,A.ready=y,y)return A;if(!y&&!m)return A;throw new Promise((function(e){(0,s.DC)(d,v,(function(){e()}))}))}},8236:function(e,t,r){"use strict";function n(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}r.d(t,{ZK:function(){return n},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),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&o[t[0]]||("string"==typeof t[0]&&(o[t[0]]=new Date),n.apply(void 0,t))}function a(e,t,r){e.loadNamespaces(t,(function(){if(e.isInitialized)r();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),r()}))}}))}function s(e,t){var r=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 n=t.languages[0],o=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var s=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(n,e)||(!t.services.backendConnector.backend||!(!s(n,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 r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case c:return e;default:return t}}case o:return t}}}function x(e){return S(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,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 x(e)||S(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(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===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=S},9864:function(e,t,r){"use strict";e.exports=r(9921)},6774:function(e){e.exports=function(e,t,r,n){var o=r?r.call(n,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 u=i[c];if(!s(u))return!1;var l=e[u],d=t[u];if(!1===(o=r?r.call(n,l,d,u):void 0)||void 0===o&&l!==d)return!1}return!0}},9163:function(e,t,r){"use strict";r.r(t),r.d(t,{ServerStyleSheet:function(){return Fe},StyleSheetConsumer:function(){return ie},StyleSheetContext:function(){return oe},StyleSheetManager:function(){return de},ThemeConsumer:function(){return ze},ThemeContext:function(){return Ee},ThemeProvider:function(){return Te},__PRIVATE__:function(){return $e},createGlobalStyle:function(){return _e},css:function(){return Se},default:function(){return He},isStyledComponent:function(){return S},keyframes:function(){return Be},useTheme:function(){return Ue},version:function(){return M},withTheme:function(){return Ze}});var n=r(9864),o=r(7294),i=r(6774),a=r.n(i);var s=function(e){function t(e,n,c,u,f){for(var p,h,m,g,w,x=0,M=0,j=0,k=0,A=0,E=0,T=m=p=0,R=0,L=0,Y=0,_=0,B=c.length,F=B-1,Z="",U="",$="",H="";R<B;){if(h=c.charCodeAt(R),R===F&&0!==M+k+j+x&&(0!==M&&(h=47===M?10:47),k=j=x=0,B++,F++),0===M+k+j+x){if(R===F&&(0<L&&(Z=Z.replace(d,"")),0<Z.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:Z+=c.charAt(R)}h=59}switch(h){case 123:for(p=(Z=Z.trim()).charCodeAt(0),m=1,_=++R;R<B;){switch(h=c.charCodeAt(R)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(R+1)){case 42:case 47:e:{for(T=R+1;T<F;++T)switch(c.charCodeAt(T)){case 47:if(42===h&&42===c.charCodeAt(T-1)&&R+2!==T){R=T+1;break e}break;case 10:if(47===h){R=T+1;break e}}R=T}}break;case 91:h++;case 40:h++;case 34:case 39:for(;R++<F&&c.charCodeAt(R)!==h;);}if(0===m)break;R++}if(m=c.substring(_,R),0===p&&(p=(Z=Z.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(Z=Z.replace(d,"")),h=Z.charCodeAt(1)){case 100:case 109:case 115:case 45:L=n;break;default:L=D}if(_=(m=t(n,L,m,h,f+1)).length,0<z&&(w=s(3,m,L=r(D,Z,Y),n,I,O,_,h,f,u),Z=L.join(""),void 0!==w&&0===(_=(m=w.trim()).length)&&(h=0,m="")),0<_)switch(h){case 115:Z=Z.replace(S,a);case 100:case 109:case 45:m=Z+"{"+m+"}";break;case 107:m=(Z=Z.replace(v,"$1 $2"))+"{"+m+"}",m=1===N||2===N&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=Z+m,112===u&&(U+=m,m="")}else m=""}else m=t(n,r(n,Z,Y),m,u,f+1);$+=m,m=Y=L=T=p=0,Z="",h=c.charCodeAt(++R);break;case 125:case 59:if(1<(_=(Z=(0<L?Z.replace(d,""):Z).trim()).length))switch(0===T&&(p=Z.charCodeAt(0),45===p||96<p&&123>p)&&(_=(Z=Z.replace(" ",":")).length),0<z&&void 0!==(w=s(1,Z,n,e,I,O,U.length,u,f,u))&&0===(_=(Z=w.trim()).length)&&(Z="\0\0"),p=Z.charCodeAt(0),h=Z.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=Z+c.charAt(R);break}default:58!==Z.charCodeAt(_-1)&&(U+=o(Z,p,h,Z.charCodeAt(2)))}Y=L=T=p=0,Z="",h=c.charCodeAt(++R)}}switch(h){case 13:case 10:47===M?M=0:0===1+p&&107!==u&&0<Z.length&&(L=1,Z+="\0"),0<z*P&&s(0,Z,n,e,I,O,U.length,u,f,u),O=1,I++;break;case 59:case 125:if(0===M+k+j+x){O++;break}default:switch(O++,g=c.charAt(R),h){case 9:case 32:if(0===k+x+M)switch(A){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===k+M+x&&(L=Y=1,g="\f"+g);break;case 108:if(0===k+M+x+C&&0<T)switch(R-T){case 2:112===A&&58===c.charCodeAt(R-3)&&(C=A);case 8:111===E&&(C=E)}break;case 58:0===k+M+x&&(T=R);break;case 44:0===M+j+k+x&&(L=1,g+="\r");break;case 34:case 39:0===M&&(k=k===h?0:0===k?h:k);break;case 91:0===k+M+j&&x++;break;case 93:0===k+M+j&&x--;break;case 41:0===k+M+x&&j--;break;case 40:if(0===k+M+x){if(0===p)if(2*A+3*E==533);else p=1;j++}break;case 64:0===M+j+k+x+T+m&&(m=1);break;case 42:case 47:if(!(0<k+x+j))switch(M){case 0:switch(2*h+3*c.charCodeAt(R+1)){case 235:M=47;break;case 220:_=R,M=42}break;case 42:47===h&&42===A&&_+2!==R&&(33===c.charCodeAt(_+2)&&(U+=c.substring(_,R+1)),g="",M=0)}}0===M&&(Z+=g)}E=A,A=h,R++}if(0<(_=U.length)){if(L=n,0<z&&(void 0!==(w=s(2,U,L,e,I,O,_,u,f,u))&&0===(U=w).length))return H+U+$;if(U=L.join(",")+"{"+U+"}",0!=N*C){switch(2!==N||i(U,2)||(C=0),C){case 111:U=U.replace(b,":-moz-$1")+U;break;case 112:U=U.replace(y,"::-webkit-input-$1")+U.replace(y,"::-moz-$1")+U.replace(y,":-ms-input-$1")+U}C=0}}return H+U+$}function r(e,t,r){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]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;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(A,"$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===k.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).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===r+n&&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 r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),T(2!==t?n:n.replace(j,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,l){for(var d,f=0,p=t;f<z;++f)switch(d=E[f].call(u,e,p,r,n,o,i,a,s,c,l)){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 u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<z){var o=s(-1,r,n,n,I,O,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(D,n,r,0,0);return 0<z&&(void 0!==(o=s(-2,i,n,n,I,O,i.length,0,0,0))&&(i=o)),"",C=0,O=I=1,i}var l=/^\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*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,M=/-self|flex-/g,j=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,O=1,I=1,C=0,N=1,D=[],E=[],z=0,T=null,P=0;return u.use=function e(t){switch(t){case void 0:case null:z=E.length=0;break;default:if("function"==typeof t)E[z++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else P=0|!!t}return e},u.set=c,void 0!==e&&c(e),u},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 u=/^((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)-.*))$/,l=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),d=r(8679),f=r.n(d),p=r(4155);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var m=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},g=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},v=Object.freeze([]),y=Object.freeze({});function b(e){return"function"==typeof e}function w(e){return e.displayName||e.name||"Component"}function S(e){return e&&"string"==typeof e.styledComponentId}var x=void 0!==p&&(p.env.REACT_APP_SC_ATTR||p.env.SC_ATTR)||"data-styled",M="5.3.1",j="undefined"!=typeof window&&"HTMLElement"in window,k=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)),A={};function O(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var I=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,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&O(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;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],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),C=new Map,N=new Map,D=1,E=function(e){if(C.has(e))return C.get(e);for(;N.has(D);)D++;var t=D++;return C.set(e,t),N.set(t,e),t},z=function(e){return N.get(e)},T=function(e,t){t>=D&&(D=t+1),C.set(e,t),N.set(t,e)},P="style["+x+'][data-styled-version="5.3.1"]',R=new RegExp("^"+x+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Y=function(e,t){for(var r=(t.innerHTML||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(R);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(T(u,c),L(e,u,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},_=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},B=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(x))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(x,"active"),n.setAttribute("data-styled-version","5.3.1");var a=_();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},F=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,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}O(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}(),Z=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 r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||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}(),$=j,H={isServer:!j,useCSSOMInjection:!k},W=function(){function e(e,t,r){void 0===e&&(e=y),void 0===t&&(t={}),this.options=h({},H,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&j&&$&&($=!1,function(e){for(var t=document.querySelectorAll(P),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(x)&&(Y(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,r){return void 0===r&&(r=!0),new e(h({},this.options,{},t),this.gs,r&&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=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new U(o):n?new F(o):new Z(o),new I(e)));var e,t,r,n,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 r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(E(e),r)},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(),r=t.length,n="",o=0;o<r;o++){var i=z(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=x+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),G=/(a)(d)/gi,Q=function(e){return String.fromCharCode(e+(e>25?39:97))};function X(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Q(t%52)+r;return(Q(t%52)+r).replace(G,"$1-$2")}var V=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},q=function(e){return V(5381,e)};function J(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(b(r)&&!S(r))return!1}return!0}var K=q("5.3.1"),ee=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&J(e),this.componentId=t,this.baseHash=V(K,t),this.baseStyle=r,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=be(this.rules,e,t,r).join(""),a=X(V(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=V(this.baseHash,r.hash),l="",d=0;d<c;d++){var f=this.rules[d];if("string"==typeof f)l+=f;else if(f){var p=be(f,e,t,r),h=Array.isArray(p)?p.join(""):p;u=V(u,h+d),l+=h}}if(l){var m=X(u>>>0);if(!t.hasNameForId(n,m)){var g=r(l,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),te=/^\s*\/\/.*$/gm,re=[":","[",".","#"];function ne(e){var t,r,n,o,i=void 0===e?y:e,a=i.options,c=void 0===a?y:a,u=i.plugins,l=void 0===u?v:u,d=new s(c),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,u,l,d){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,n,i){return 0===n&&-1!==re.indexOf(i[r.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var c=e.replace(te,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),d(a||!i?"":i,u)}return d.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,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||O(15),V(e,t.name)}),5381).toString():"",m}var oe=o.createContext(),ie=oe.Consumer,ae=o.createContext(),se=(ae.Consumer,new W),ce=ne();function ue(){return(0,o.useContext)(oe)||se}function le(){return(0,o.useContext)(ae)||ce}function de(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=ue(),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 ne({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,o.useEffect)((function(){a()(r,e.stylisPlugins)||n(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 r=this;this.inject=function(e,t){void 0===t&&(t=ce);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return O(12,String(r.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 ye=function(e){return null==e||!1===e||""===e};function be(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=be(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ye(e)?"":S(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:be(e(t),t,r,n):e instanceof fe?r?(e.inject(r,n),e.getName(n)):e:g(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ye(t[a])&&(Array.isArray(t[a])&&t[a].isCss||b(t[a])?i.push(ve(a)+":",t[a],";"):g(t[a])?i.push.apply(i,e(t[a],a)):i.push(ve(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in c?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var u}var we=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Se(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return b(e)||g(e)?we(be(m(v,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:we(be(m(e,r)))}new Set;var xe=function(e,t,r){return void 0===r&&(r=y),e.theme!==r.theme&&e.theme||t||r.theme},Me=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,je=/(^-|-$)/g;function ke(e){return e.replace(Me,"-").replace(je,"")}var Ae=function(e){return X(q(e)>>>0)};function Oe(e){return"string"==typeof e&&!0}var Ie=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ce=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ne(e,t,r){var n=e[r];Ie(t)&&Ie(n)?De(n,t):e[r]=t}function De(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(Ie(a))for(var s in a)Ce(s)&&Ne(e,a[s],s)}return e}var Ee=o.createContext(),ze=Ee.Consumer;function Te(e){var t=(0,o.useContext)(Ee),r=(0,o.useMemo)((function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?O(8):t?h({},t,{},e):e:O(14)}(e.theme,t)}),[e.theme,t]);return e.children?o.createElement(Ee.Provider,{value:r},e.children):null}var Pe={};function Re(e,t,r){var n=S(e),i=!Oe(e),a=t.attrs,s=void 0===a?v:a,c=t.componentId,u=void 0===c?function(e,t){var r="string"!=typeof e?"sc":ke(e);Pe[r]=(Pe[r]||0)+1;var n=r+"-"+Ae("5.3.1"+r+Pe[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):c,d=t.displayName,p=void 0===d?function(e){return Oe(e)?"styled."+e:"Styled("+w(e)+")"}(e):d,m=t.displayName&&t.componentId?ke(t.displayName)+"-"+t.componentId:t.componentId||u,g=n&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,x=t.shouldForwardProp;n&&e.shouldForwardProp&&(x=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var M,j=new ee(r,m,n?e.componentStyle:void 0),k=j.isStatic&&0===s.length,A=function(e,t){return function(e,t,r,n){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,d=e.styledComponentId,f=e.target,p=function(e,t,r){void 0===e&&(e=y);var n=h({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in b(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(xe(t,(0,o.useContext)(Ee),s)||y,t,i),m=p[0],g=p[1],v=function(e,t,r,n){var o=ue(),i=le();return t?e.generateAndInjectStyles(y,o,i):e.generateAndInjectStyles(r,o,i)}(a,n,m),w=r,S=g.$as||t.$as||g.as||t.as||f,x=Oe(S),M=g!==t?h({},t,{},g):t,j={};for(var k in M)"$"!==k[0]&&"as"!==k&&("forwardedAs"===k?j.as=M[k]:(u?u(k,l,S):!x||l(k))&&(j[k]=M[k]));return t.style&&g.style!==t.style&&(j.style=h({},t.style,{},g.style)),j.className=Array.prototype.concat(c,d,v!==d?v:null,t.className,g.className).filter(Boolean).join(" "),j.ref=w,(0,o.createElement)(S,j)}(M,e,t,k)};return A.displayName=p,(M=o.forwardRef(A)).attrs=g,M.componentStyle=j,M.displayName=p,M.shouldForwardProp=x,M.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):v,M.styledComponentId=m,M.target=n?e.target:e,M.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Oe(e)?e:ke(w(e)));return Re(e,h({},o,{attrs:g,componentId:i}),r)},Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?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 Le=function(e){return function e(t,r,o){if(void 0===o&&(o=y),!(0,n.isValidElementType)(r))return O(1,String(r));var i=function(){return t(r,o,Se.apply(void 0,arguments))};return i.withConfig=function(n){return e(t,r,h({},o,{},n))},i.attrs=function(n){return e(t,r,h({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},i}(Re,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){Le[e]=Le(e)}));var Ye=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=J(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(be(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function _e(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Se.apply(void 0,[e].concat(r)),a="sc-global-"+Ae(JSON.stringify(i)),s=new Ye(i,a);function c(e){var t=ue(),r=le(),n=(0,o.useContext)(Ee),i=(0,o.useRef)(t.allocateGSInstance(a)).current;return t.server&&u(i,e,t,n,r),(0,o.useLayoutEffect)((function(){if(!t.server)return u(i,e,t,n,r),function(){return s.removeStyles(i,t)}}),[i,e,t,n,r]),null}function u(e,t,r,n,o){if(s.isStatic)s.renderStyles(e,A,r,o);else{var i=h({},t,{theme:xe(t,n,c.defaultProps)});s.renderStyles(e,i,r,o)}}return o.memo(c)}function Be(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Se.apply(void 0,[e].concat(r)).join(""),i=Ae(o);return new fe(i,o)}var Fe=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=_();return"<style "+[r&&'nonce="'+r+'"',x+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?O(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return O(2);var r=((t={})[x]="",t["data-styled-version"]="5.3.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=_();return n&&(r.nonce=n),[o.createElement("style",h({},r,{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?O(2):o.createElement(de,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return O(3)},e}(),Ze=function(e){var t=o.forwardRef((function(t,r){var n=(0,o.useContext)(Ee),i=e.defaultProps,a=xe(t,n,i);return o.createElement(e,h({},t,{theme:a,ref:r}))}));return f()(t,e),t.displayName="WithTheme("+w(e)+")",t},Ue=function(){return(0,o.useContext)(Ee)},$e={StyleSheet:W,masterSheet:se},He=Le},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,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(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.")}()}r.d(t,{Z:function(){return o}})}}]);
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@r2u/javascript-ar-sdk",
|
|
3
|
-
"version": "6.13.
|
|
3
|
+
"version": "6.13.7",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"unpkg": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@r2u/analytics": "^4.3.3",
|
|
28
28
|
"@r2u/react-ar-components": "^5.4.15",
|
|
29
|
-
"@r2u/viewer": "^1.5.
|
|
29
|
+
"@r2u/viewer": "^1.5.8",
|
|
30
30
|
"@types/react-slick": "^0.23.10",
|
|
31
31
|
"i18next": "^20.2.1",
|
|
32
32
|
"i18next-chained-backend": "^2.1.0",
|