!function(e){function t(t){for(var o,a,c=t[0],i=t[1],d=t[2],u=0,p=[];u{const e=window.chobitsu;e&&(window.addEventListener("message",t=>{const n=t.data,o=n.type,s=n.data;"FROM_DEVTOOL"===o&&e.sendRawMessage(s)}),e.setOnMessage(e=>{e.includes('"id":"tmp')||window.parent.postMessage({type:"TO_DEVTOOL",data:e},"*")}),e.sendRawMessage('{"id":5,"method":"Runtime.enable","params":{}}'))},(document.head||document.documentElement).prepend(e)}())})?o.apply(t,s):o)||(e.exports=r)},"../sandbox-hooks/screenshot.js":function(e,t,n){var o,s,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,s=[t,n("../codesandbox-api/dist/codesandbox.es5.js")],void 0===(r="function"==typeof(o=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){let e;(0,t.listen)(o=>{"take-screenshot"===o.type?Promise.all([n.e(5),n.e(4)]).then(n.t.bind(null,"../sandbox-hooks/html2canvas-lib/index.js",7)).then(e=>{(0,e.default)(document.documentElement,{useCORS:e=>!(o.data.isPrivateSandbox||!e),proxy:"https://h2c-proxy.csb.dev/",logging:!1,allowTaint:!1}).then(e=>{const n=document.createElement("canvas"),o=document.documentElement.scrollLeft,s=document.documentElement.scrollTop;n.width=e.width-o,n.height=e.height-s,n.getContext("2d").drawImage(e,o,s,n.width,n.height,0,0,n.width,n.height),(0,t.dispatch)({type:"screenshot-generated",screenshot:n.toDataURL()})})}):"show-screenshot-cursor"===o.type?(e=document.documentElement.style.cursor,document.documentElement.style.cursor='url(\'data:image/svg+xml;utf8,\'), auto'):"hide-screenshot-cursor"===o.type&&(document.documentElement.style.cursor=e)}),window.addEventListener("keydown",e=>{"s"===e.key&&e.shiftKey&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),(0,t.dispatch)({type:"screenshot-requested-from-preview"}))})}})?o.apply(t,s):o)||(e.exports=r)},"../sandbox-hooks/url-listeners.js":function(e,t,n){var o,s,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,s=[t,n("../codesandbox-api/dist/codesandbox.es5.js")],void 0===(r="function"==typeof(o=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return Object.assign(window.history,{go(e){const t=s+e;if(t>=0&&t<=o.length-1){s=t;const e=o[s],c=e.url,i=e.state,d=document.location.href;n.replaceState.call(window.history,i,"",c);const l=document.location.href;a(l),window.dispatchEvent(new PopStateEvent("popstate",{state:i})),-1!==l.indexOf("#")&&(r=!0,window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:d,newURL:l})))}},back(){window.history.go(-1)},forward(){window.history.go(1)},pushState(e,t,o){n.replaceState.call(window.history,e,t,o),c(o,e),a(document.location.href)},replaceState(e,t,r){n.replaceState.call(window.history,e,t,r),o[s]={state:e,url:r},a(document.location.href)}}),Object.defineProperties(window.history,{length:{get:()=>o.length,configurable:!0},state:{get:()=>o[s].state,configurable:!0}}),window.addEventListener("hashchange",()=>{r?r=!1:(c(i(document.location),null),a(document.location.href))}),c(i(document.location),null),setTimeout(()=>{a(document.location.href)}),(0,t.listen)((function(e,t){t&&("urlback"===e.type?history.back():"urlforward"===e.type?history.forward():"refresh"===e.type&&document.location.reload())}))};const n=window.history.__proto__,o=[];let s=-1,r=!1;function a(e){(0,t.dispatch)({type:"urlchange",url:e,back:s>0,forward:s