import{i as e,r}from"./vendor.6729457a.js";function t(r){return new Promise(((t,o)=>{const i=r[0];if(i&&/.json$/i.test(i.name)){const r=new FileReader;r.onloadend=()=>{if("string"!=typeof r.result)return;const i=e.decode(r.result.replace("data:application/json;base64,",""));try{t(JSON.parse(i))}catch(n){o(n)}},r.readAsDataURL(i)}}))}var o,i,n,s,a,l,c;!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const t of e)if("childList"===t.type)for(const e of t.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerpolicy&&(r.referrerPolicy=e.referrerpolicy),"use-credentials"===e.crossorigin?r.credentials="include":"anonymous"===e.crossorigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}(),(o||(o={})).EMIT_CODE="EMIT_CODE",(n=i||(i={})).ABOUT_XSS="about-xss",n.EXPORT_SCRIPTS="export-scripts",(a=s||(s={})).LIGHT="light",a.DARK="dark",(c=l||(l={})).YALLOW="#FF9D00",c.WHITE="#FFFFFF",c.DARK="#35363A",c.BLACK="#2C2C2C",c.RED="#D0021B",c.LIGHT_RED="#F32038",c.LIGHT_GRAY="#DADADA",c.GRAY="#9B9B9B",c.DARK_GRAY="#6A6A6A";const d={light:{type:s.LIGHT,color:{red:l.RED,hoverLine:"rgba(208, 2, 27, 0.5)",bg:"#FBFBFB",scriptItemBoxBg:l.WHITE,maskBg:"rgba(255, 255, 255, 0.8)",line:l.LIGHT_GRAY,yallow:l.YALLOW,selection:r(l.RED,.15)},input:{bg:l.WHITE},button:{red:l.LIGHT_RED,gray:l.GRAY,bg:l.WHITE,fill:l.LIGHT_GRAY},borderRadius:{lg:"8px",sm:"4px"},fontWeight:{normal:"400",bold:"700"},dropMask:{bg:"rgba(255, 255, 255, 0.85)"},shadow:"1px 1px 0 #FFFFFF",boxShadow:"inset 0 1px 3px 0 rgba(0,0,0,0.22)",transitionTime:"0.25s"},dark:{type:s.DARK,color:{red:l.RED,hoverLine:l.YALLOW,bg:l.DARK,scriptItemBoxBg:l.DARK,maskBg:r(l.DARK,.9),line:l.LIGHT_GRAY,yallow:l.YALLOW,selection:r(l.RED,.5)},input:{bg:l.BLACK},button:{red:l.LIGHT_RED,gray:l.GRAY,bg:l.DARK,fill:l.DARK_GRAY},borderRadius:{lg:"8px",sm:"4px"},fontWeight:{normal:"400",bold:"700"},dropMask:{bg:"rgba(0, 0, 0, 0.75)"},shadow:"1px 1px 0 #FFFFFF",boxShadow:"inset 0 1px 3px 0 rgba(0,0,0,0.22)",transitionTime:"0.25s"}};function p(e){if(!Array.isArray(e))return[];let r=[...e];return r=r.filter((e=>Object.prototype.hasOwnProperty.call(e,"title")&&Object.prototype.hasOwnProperty.call(e,"code"))),r=r.map((e=>({autoExecute:!!e.autoExecute,title:e.title,code:e.code}))),r}export{l as C,i as M,s as S,o as U,t as f,p as i,d as t};
