"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[9531],{65286:function(t,e,n){var i=n(1413),a=n(29439),r=n(72791),u=n(68286),l=n(80184);function d(t){var e=r.useState(null),n=(0,a.Z)(e,2),d=n[0],s=n[1],o=r.useState(t.style?void 0:null),f=(0,a.Z)(o,2),c=f[0],v=f[1],h=r.useRef(document.createElement("div"));return r.useEffect((function(){var e=window.requestAnimationFrame((function(){s(JSON.parse(t.data.data.data))}));return function(){return window.cancelAnimationFrame(e)}}),[t.data.data.data]),r.useEffect((function(){if(d&&h.current&&t.style){var e=h.current.firstChild,n=h.current.parentElement;if(e&&n){var i=h.current.offsetWidth+20,a=h.current.offsetHeight+20,r=n.offsetWidth/i,u=(n.offsetHeight-30)/a;v(r<1||u<1?Math.min(r,u):null)}}}),[d,t.style]),(0,l.jsx)("div",{style:{display:"inline-block",visibility:void 0!==c&&d?"visible":"hidden",transform:void 0===c||null===c?"":"scale(".concat(c,")")},ref:h,children:(0,l.jsx)(u.Z,{data:(null===d||void 0===d?void 0:d.data)||[],layout:(0,i.Z)({},null===d||void 0===d?void 0:d.layout),frames:null===d||void 0===d?void 0:d.frames,useResizeHandler:!0})})}e.Z=r.memo(d)},34777:function(t,e,n){n.r(e),n.d(e,{default:function(){return u}});n(72791);var i=n(65286),a=n(80184);var r=function(t){return(0,a.jsx)("div",{style:{height:"100%",overflow:"auto"},children:t.data.map((function(t,e){return(0,a.jsx)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",margin:5},children:(0,a.jsx)(i.Z,{data:{data:t},style:{display:"flex",flex:1,width:"100%",height:"100%"}})},e)}))})};var u=function(t){return(0,a.jsx)(r,{data:t.data},Date.now())}}}]);
//# sourceMappingURL=Figures.d1a84122.chunk.js.map