diff --git a/docs/index.html b/docs/index.html
index ce56348..9a67e9c 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -9,10 +9,10 @@
padding: 0;
}
-
+
-
+
diff --git a/docs/js/index.983JxlAr.js b/docs/js/index.KdKJbizB.js
similarity index 99%
rename from docs/js/index.983JxlAr.js
rename to docs/js/index.KdKJbizB.js
index a6cd06c..77fadfc 100644
--- a/docs/js/index.983JxlAr.js
+++ b/docs/js/index.KdKJbizB.js
@@ -1,4 +1,4 @@
-import{r as Z,c as o2}from"./lib/react.dwzOUFZb.js";import{S as s2}from"./lib/draw.Q3HpuYqJ.js";import"./lib/antd.mAE7kg8m.js";(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))C(n);new MutationObserver(n=>{for(const l of n)if(l.type==="childList")for(const F of l.addedNodes)F.tagName==="LINK"&&F.rel==="modulepreload"&&C(F)}).observe(document,{childList:!0,subtree:!0});function v(n){const l={};return n.integrity&&(l.integrity=n.integrity),n.referrerPolicy&&(l.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?l.credentials="include":n.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function C(n){if(n.ep)return;n.ep=!0;const l=v(n);fetch(n.href,l)}})();var k1={exports:{}},Q={};/**
+import{r as Z,c as o2}from"./lib/react.dwzOUFZb.js";import{S as s2}from"./lib/draw.-FdgEikp.js";import"./lib/antd.mAE7kg8m.js";(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))C(n);new MutationObserver(n=>{for(const l of n)if(l.type==="childList")for(const F of l.addedNodes)F.tagName==="LINK"&&F.rel==="modulepreload"&&C(F)}).observe(document,{childList:!0,subtree:!0});function v(n){const l={};return n.integrity&&(l.integrity=n.integrity),n.referrerPolicy&&(l.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?l.credentials="include":n.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function C(n){if(n.ep)return;n.ep=!0;const l=v(n);fetch(n.href,l)}})();var k1={exports:{}},Q={};/**
* @license React
* react-jsx-dev-runtime.development.js
*
diff --git a/docs/js/lib/draw.-FdgEikp.js b/docs/js/lib/draw.-FdgEikp.js
new file mode 100644
index 0000000..b8cf5ae
--- /dev/null
+++ b/docs/js/lib/draw.-FdgEikp.js
@@ -0,0 +1,52 @@
+import{r as T,R as l,e as va,g as jh}from"./react.dwzOUFZb.js";import{c as be,A as kh,t as cl,S as Kd,a as Ke,I as le,D as _i,B as Je,b as dn,T as Bh,F as J,R as me,C as K,d as it,P as Jd,m as ai,E as ma,e as Fh,f as _r,g as Hh,h as Vh,M as Wh,i as Gh}from"./antd.mAE7kg8m.js";let Ti="idraw-studio";function dl(e){Ti=e}function ul(){return Ti}function qd(e){return(...t)=>[Ti,e,...t].join("-")}function ii(...e){return[Ti,...e].join("-")}const Yh={locale:"en-US",Header:{},ElementDetail:{basicAttributes:"Basic",borderAttribute:"Border",contentAttribute:"Content",shadowAttribute:"Shadow",x:"X",y:"Y",w:"W",h:"H",background:"Background",solid:"Solid",dash:"Dash",inside:"Inside",outside:"Outside",centerLine:"Center",gradient:"Gradient",opacity:"Opacity",mixedBorderWidth:"Mixed",mixedBorderRadius:"Mixed",overflow:"Overflow",hidden:"Hidden",visible:"Visible",deepResizeInGroup:"Deep resize in group"},Menu:{about:"About @idraw/studio",file:"File",importJSONFile:"Import JSON file",exportJSONFile:"Export JSON file",exportImage:"Export image",preferences:"Preferences",rect:"Rect",circle:"Circle",text:"Text",image:"Image",html:"HTML",svg:"SVG",group:"Group",devicePixelRatio:"Device pixel ratio"}},Uh={locale:"zh-CN",Header:{},ElementDetail:{basicAttributes:"基础",borderAttribute:"边框",contentAttribute:"内容",shadowAttribute:"阴影",x:"X",y:"Y",w:"宽",h:"高",background:"背景色",solid:"实线",dash:"虚线",inside:"内线",outside:"外线",centerLine:"中线",gradient:"渐变",opacity:"透明度",mixedBorderWidth:"混合边框",mixedBorderRadius:"混合圆角",overflow:"溢出",hidden:"隐藏",visible:"可视",deepResizeInGroup:"组内尺寸关联调整"},Menu:{about:"关于 @idraw/studio",file:"文件",importJSONFile:"导入JSON文件",exportJSONFile:"导出JSON文件",exportImage:"导出图片",preferences:"预设",rect:"矩形",circle:"圆形",text:"文本",image:"图片",html:"HTML片段",svg:"SVG片段",group:"群组",devicePixelRatio:"设备像素比例"}},fl={"en-US":Yh,"zh-CN":Uh},Po="en-US",Xh=e=>{const{localeCode:t}=T.useContext(ce);return[T.useMemo(()=>{const a=(fl[t||Po]||fl[Po])[e];return Object.assign({},a)},[t,e])]},Zh=e=>{const{themeMode:t}=e,n="theme",r=ii(n),a=ii(n,"dark"),i=be({[r]:!0,[a]:t==="dark"});return{themeMode:t,className:i}},eu=e=>(e!=null&&e.topPrefix&&typeof(e==null?void 0:e.topPrefix)=="string"&&dl(e.topPrefix),Object.assign({topPrefix:ul(),createPrefixName:qd,generateClassName:ii,getClassNameTopPrefix:ul,setClassNameTopPrefix:dl,localeCode:Po},e||{})),ce=T.createContext(eu()),Qh=e=>{const{children:t,topPrefix:n,localeCode:r,container:a,themeMode:i}=e,o=eu({topPrefix:n,localeCode:r}),[s,c]=T.useState(o),{className:d}=Zh({themeMode:i});return T.useEffect(()=>{c(Object.assign(Object.assign({},s),{localeCode:r,container:a}))},[r,a]),l.createElement(ce.Provider,{value:Object.assign({},s)},l.createElement(kh,{theme:{algorithm:i==="dark"?cl.darkAlgorithm:cl.defaultAlgorithm}},l.createElement("div",{className:d},t)))};class hl extends l.PureComponent{render(){const{children:t,className:n,split:r,style:a,size:i,eleRef:o}=this.props,s=["Pane",r,n];let c={flex:1,position:"relative",outline:"none"};return i!==void 0&&(r==="vertical"?c.width=i:(c.height=i,c.display="flex"),c.flex="none"),c=Object.assign({},c,a||{}),l.createElement("div",{ref:o,className:s.join(" "),style:c},t)}}const Kh="base-split-pane",Jh=()=>{const{generateClassName:e}=T.useContext(ce);return{modClassName:e(Kh)}};function qh(e){const{modClassName:t}=Jh(),{className:n,onClick:r,onDoubleClick:a,onMouseDown:i,onTouchEnd:o,onTouchStart:s,resizerClassName:c=t,split:d,style:u}=e,f=[c,d,n];return T.useMemo(()=>l.createElement("span",{role:"presentation",className:f.join(" "),style:u,onMouseDown:h=>i(h),onTouchStart:h=>{h.preventDefault(),s(h)},onTouchEnd:h=>{h.preventDefault(),o(h)},onClick:h=>{r&&(h.preventDefault(),r(h))},onDoubleClick:h=>{a&&(h.preventDefault(),a(h))}}),[])}const e0="xxxxx";function pl(e,t){if(e.selection)e.selection.empty();else try{t.getSelection().removeAllRanges()}catch{}}function gl(e,t,n,r){if(typeof r=="number"){const a=typeof t=="number"?t:0,i=typeof n=="number"&&n>=0?n:1/0;return Math.max(a,Math.min(i,r))}return e!==void 0?e:t}function t0(e){return l.Children.toArray(e).filter(t=>t)}class oi extends l.Component{constructor(t){super(t),this.onMouseDown=this.onMouseDown.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onMouseUp=this.onMouseUp.bind(this);const{size:n,defaultSize:r,minSize:a,maxSize:i,primary:o}=t,s=n!==void 0?n:gl(r,a,i,null);this.state={active:!1,resized:!1,pane1Size:o==="first"?s:void 0,pane2Size:o==="second"?s:void 0,instanceProps:{size:n}}}componentDidMount(){document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("touchmove",this.onTouchMove),this.setState(oi.getSizeUpdate(this.props,this.state))}static getDerivedStateFromProps(t,n){return oi.getSizeUpdate(t,n)}componentWillUnmount(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove)}onMouseDown(t){const n=Object.assign({},t,{touches:[{clientX:t.clientX,clientY:t.clientY}]});this.onTouchStart(n)}onTouchStart(t){const{allowResize:n,onDragStarted:r,split:a}=this.props;if(n){pl(document,window);const i=a==="vertical"?t.touches[0].clientX:t.touches[0].clientY;typeof r=="function"&&r(),this.setState({active:!0,position:i})}}onMouseMove(t){const n=Object.assign({},t,{touches:[{clientX:t.clientX,clientY:t.clientY}]});this.onTouchMove(n)}onTouchMove(t){const{allowResize:n,maxSize:r,minSize:a,onChange:i,split:o,step:s}=this.props,{active:c,position:d}=this.state;if(n&&c){pl(document,window);const u=this.props.primary==="first",f=u?this.pane1:this.pane2,h=u?this.pane2:this.pane1;if(f){const p=f,v=h;if(p.getBoundingClientRect){const g=p.getBoundingClientRect().width,m=p.getBoundingClientRect().height,y=o==="vertical"?t.touches[0].clientX:t.touches[0].clientY,b=o==="vertical"?g:m;let E=d-y;if(s){if(Math.abs(E)S&&(w=-w);let $=r;if(r!==void 0&&r<=0){const H=this.splitPane;o==="vertical"?$=H.getBoundingClientRect().width+r:$=H.getBoundingClientRect().height+r}let D=b-w;const B=d-E;D$?D=$:this.setState({position:B,resized:!0}),i&&i(D),this.setState({draggedSize:D,[u?"pane1Size":"pane2Size"]:D})}}}}onMouseUp(){const{allowResize:t,onDragFinished:n}=this.props,{active:r,draggedSize:a}=this.state;t&&r&&(typeof n=="function"&&n(a),this.setState({active:!1}))}static getSizeUpdate(t,n){const r={},{instanceProps:a}=n;if(a.size===t.size&&t.size!==void 0)return{};const i=t.size!==void 0?t.size:gl(t.defaultSize,t.minSize,t.maxSize,n.draggedSize);t.size!==void 0&&(r.draggedSize=i);const o=t.primary==="first";return r[o?"pane1Size":"pane2Size"]=i,r[o?"pane2Size":"pane1Size"]=void 0,r.instanceProps={size:t.size},r}render(){const{allowResize:t,children:n,className:r,onResizerClick:a,onResizerDoubleClick:i,paneClassName:o,pane1ClassName:s,pane2ClassName:c,paneStyle:d,pane1Style:u,pane2Style:f,resizerClassName:h,resizerStyle:p,split:v,style:g}=this.props,{pane1Size:m,pane2Size:y}=this.state,b=t?"":"disabled",E=h&&`${h} ${e0}`,w=t0(n),C=Object.assign({display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},g);v==="vertical"?Object.assign(C,{flexDirection:"row",left:0,right:0}):Object.assign(C,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});const S=["SplitPane",r,v,b],$=Object.assign(Object.assign({},d),u),D=Object.assign(Object.assign({},d),f),B=["Pane1",o,s].join(" "),H=["Pane2",o,c].join(" ");return l.createElement("div",{className:S.join(" "),ref:G=>{this.splitPane=G},style:C},l.createElement(hl,{className:B,key:"pane1",eleRef:G=>{this.pane1=G},size:m,split:v,style:$},w[0]),l.createElement(qh,{className:b,onClick:a,onDoubleClick:i,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:"resizer",resizerClassName:E,split:v,style:p||{}}),l.createElement(hl,{className:H,key:"pane2",eleRef:G=>{this.pane2=G},size:y,split:v,style:D},w[1]))}}var n0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a({iconClassName:ii(r0)}),ae=e=>{const{className:t,style:n,children:r}=e,a=n0(e,["className","style","children"]),{iconClassName:i}=a0();return T.useMemo(()=>l.createElement("span",Object.assign({className:be([i,t]),style:n},a),r),[i,n,t])},i0=e=>l.createElement(ae,Object.assign({},e),l.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},l.createElement("path",{d:"M516.266667 938.666667h-38.4c-234.666667-21.333333-405.333333-230.4-384-465.066667 17.066667-204.8 179.2-366.933333 384-384 17.066667 0 34.133333 8.533333 42.666666 21.333333 8.533333 12.8 8.533333 34.133333-4.266666 46.933334-85.333333 115.2-59.733333 273.066667 55.466666 358.4 89.6 68.266667 213.333333 68.266667 302.933334 0 12.8-8.533333 29.866667-12.8 46.933333-4.266667 12.8 8.533333 21.333333 25.6 21.333333 42.666667-8.533333 115.2-64 217.6-153.6 290.133333-81.066667 59.733333-174.933333 93.866667-273.066666 93.866667zM396.8 187.733333c-123.733333 42.666667-213.333333 153.6-221.866667 290.133334-17.066667 187.733333 119.466667 354.133333 307.2 371.2 89.6 8.533333 179.2-17.066667 247.466667-76.8 46.933333-38.4 81.066667-89.6 102.4-145.066667-106.666667 38.4-226.133333 21.333333-320-46.933333-119.466667-93.866667-166.4-251.733333-115.2-392.533334z"}))),o0=e=>l.createElement(ae,Object.assign({},e),l.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},l.createElement("path",{d:"M512 768c-141.376 0-256-114.624-256-256s114.624-256 256-256 256 114.624 256 256-114.624 256-256 256z m0-85.333333a170.666667 170.666667 0 1 0 0-341.333334 170.666667 170.666667 0 0 0 0 341.333334zM469.333333 85.333333a42.666667 42.666667 0 1 1 85.333334 0v85.333334a42.666667 42.666667 0 1 1-85.333334 0V85.333333z m0 768a42.666667 42.666667 0 1 1 85.333334 0v85.333334a42.666667 42.666667 0 1 1-85.333334 0v-85.333334zM85.333333 554.666667a42.666667 42.666667 0 1 1 0-85.333334h85.333334a42.666667 42.666667 0 1 1 0 85.333334H85.333333z m768 0a42.666667 42.666667 0 1 1 0-85.333334h85.333334a42.666667 42.666667 0 1 1 0 85.333334h-85.333334zM161.834667 222.165333a42.666667 42.666667 0 0 1 60.330666-60.330666l64 64a42.666667 42.666667 0 0 1-60.330666 60.330666l-64-64z m576 576a42.666667 42.666667 0 0 1 60.330666-60.330666l64 64a42.666667 42.666667 0 0 1-60.330666 60.330666l-64-64z m-515.669334 64a42.666667 42.666667 0 0 1-60.330666-60.330666l64-64a42.666667 42.666667 0 0 1 60.330666 60.330666l-64 64z m576-576a42.666667 42.666667 0 0 1-60.330666-60.330666l64-64a42.666667 42.666667 0 0 1 60.330666 60.330666l-64 64z"}))),s0="base-theme-switch",l0=qd(s0),vl=e=>{if(!(typeof e>"u"))return e==="light"};function c0(e){return e===!0?"light":"dark"}const d0=e=>{const{className:t,style:n,onChange:r,theme:a,defaultTheme:i}=e;return l.createElement(Kd,{className:be([l0(),t]),style:n,checkedChildren:l.createElement(o0,{style:{height:"100%"}}),unCheckedChildren:l.createElement(i0,{style:{height:"100%"}}),checked:vl(i),defaultChecked:vl(a),onChange:o=>{const s=c0(o);r==null||r({theme:s})}})},ml=Ke.Option,u0="base-locale-selector",f0=e=>{const{className:t,style:n,defaultValue:r,value:a,onChange:i}=e,{createPrefixName:o}=T.useContext(ce),s=o(u0);return T.useMemo(()=>l.createElement(Ke,{style:n,className:be(s(),t),size:"small",defaultValue:r,value:a,onChange:i},l.createElement(ml,{value:"en-US"},"English"),l.createElement(ml,{value:"zh-CN"},"中文")),[t,n,r,a,i])};function ds(e){const{accept:t,success:n,error:r}=e;let a=document.createElement("input");a.type="file",t&&(a.accept=t),a.addEventListener("change",function(){var i;const o=(i=a.files)===null||i===void 0?void 0:i[0];n({file:o}),a=null}),a.addEventListener("error",function(i){typeof r=="function"&&r(i),a=null}),a.click()}function h0(e){return new Promise(function(t,n){let r=new FileReader;r.addEventListener("load",function(){t(r.result),r=null}),r.addEventListener("error",function(a){n(a),r=null}),r.addEventListener("abort",function(){n(new Error("abort")),r=null}),r.readAsDataURL(e)})}function p0(e){return new Promise(function(t,n){let r=new FileReader;r.addEventListener("load",function(){t(r.result),r=null}),r.addEventListener("error",function(a){n(a),r=null}),r.addEventListener("abort",function(){n(new Error("abort")),r=null}),r.readAsText(e)})}function g0(e){const t=new TextEncoder().encode(e),n=new Blob([t],{type:"text/plain;charset=utf-8"});return window.URL.createObjectURL(n)}function v0(e,t){const{fileName:n}=t,r=g0(e);let a=document.createElement("a");a.href=r,a.download=n,a.click(),a=null}function si(e){return typeof e=="string"&&(/^\#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(e)||/^[a-z]{1,}$/i.test(e))}function m0(e){let t="transparent";if(typeof e=="string")t=e;else if((e==null?void 0:e.type)==="linear-gradient"){const n=[];typeof e.angle=="number"?n.push(`${e.angle}deg`):n.push("180deg"),Array.isArray(e.stops)&&e.stops.forEach(r=>{n.push(`${r.color} ${r.offset*100}%`)}),t=`linear-gradient(${n.join(", ")})`}else if((e==null?void 0:e.type)==="radial-gradient"){const n=[];Array.isArray(e.stops)&&e.stops.forEach(r=>{n.push(`${r.color} ${r.offset*100}%`)}),t=`radial-gradient(circle, ${n.join(", ")})`}return t}function li(e){let t="transparent";if(typeof e=="string")t=e;else if((e==null?void 0:e.type)==="radial-gradient"||(e==null?void 0:e.type)==="linear-gradient"){const n=[];Array.isArray(e.stops)&&e.stops.length>0&&(e.stops.forEach((r,a)=>{n.push(`${r.color} ${r.offset*100}%`),a===e.stops.length-1&&r.offset<1&&n.push(`${r.color} ${r.offset*100}%`)}),t=`linear-gradient(90deg, ${n.join(", ")})`)}return t}function bl(e,t){if(t===1)return e;let n=1;const r=/^\#[0-9a-f]{6,6}$/i,a=/^\#[0-9a-f]{8,8}$/i;let i=e;if(r.test(e)?n=parseInt(e.substring(5,7).replace(/^\#/,"0x")):a.test(e)&&(n=parseInt(e.substring(7,9).replace(/^\#/,"0x")),i=e.substring(0,7)),n=n*t,r.test(i)&&n>0&&n<1){const o=Math.max(0,Math.min(255,Math.ceil(n*256)));i=`${i.toUpperCase()}${o.toString(16).toUpperCase()}`}return i}function ln(){function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function Ht(e){let t=0;for(let n=0;n=0)return n;if(r==="Array"){const a=[];return n.forEach(i=>{a.push(t(i))}),a}else if(r==="Object"){const a={};return Object.keys(n).forEach(s=>{a[s]=t(n[s])}),Object.getOwnPropertySymbols(n).forEach(s=>{a[s]=t(n[s])}),a}}return t(e)}function eo(e){const t=un(e),n=r=>{r.uuid=ln(),r.type==="group"&&r.detail.children&&r.detail.children.forEach(a=>{n(a)})};return n(t),t}function b0(e){return Object.prototype.toString.call(e).replace(/[\]|\[]{1,1}/gi,"").split(" ")[1]}function y0(e,t){const n=e.assets||{},r=un(e),a=(t==null?void 0:t.loadItemMap)||{},i=o=>{o.forEach(s=>{var c,d,u;if(s.type==="image"&&s.detail.src){const f=s.detail.src;if(cn(f)&&!n[f]&&a[f]&&typeof((c=a[f])===null||c===void 0?void 0:c.source)=="string")n[f]={type:"image",value:a[f].source};else if(!n[f]){const h=hr(f);n[h]||(n[h]={type:"image",value:f}),s.detail.src=h}}else if(s.type==="svg"){const f=s.detail.svg;if(cn(f)&&!n[f]&&a[f]&&typeof((d=a[f])===null||d===void 0?void 0:d.source)=="string")n[f]={type:"svg",value:a[f].source};else if(!n[f]){const h=hr(f);n[h]||(n[h]={type:"svg",value:f}),s.detail.svg=h}}else if(s.type==="html"){const f=s.detail.html;if(cn(f)&&!n[f]&&a[f]&&typeof((u=a[f])===null||u===void 0?void 0:u.source)=="string")n[f]={type:"html",value:a[f].source};else if(!n[f]){const h=hr(f);n[h]||(n[h]={type:"html",value:f}),s.detail.html=h}}else if(s.type==="group"&&Array.isArray(s.detail.children)){const f=s.detail.assets||{};Object.keys(f).forEach(h=>{n[h]||(n[h]=f[h])}),delete s.detail.assets,i(s.detail.children)}})};return i(r.elements),r.assets=n,r}function dt(e){return(Object.prototype.toString.call(e)||"").replace(/(\[object|\])/gi,"").trim()}const jr={type(e,t){const n=dt(e);return t===!0?n.toLocaleLowerCase():n},array(e){return dt(e)==="Array"},json(e){return dt(e)==="Object"},function(e){return dt(e)==="Function"},asyncFunction(e){return dt(e)==="AsyncFunction"},boolean(e){return dt(e)==="Boolean"},string(e){return dt(e)==="String"},number(e){return dt(e)==="Number"},undefined(e){return dt(e)==="Undefined"},null(e){return dt(e)==="Null"},promise(e){return dt(e)==="Promise"}};function w0(e,t){const{width:n,height:r}=t;return new Promise((a,i)=>{const o=`
+
+ `,s=new Blob([o],{type:"image/svg+xml;charset=utf-8"}),c=new FileReader;c.readAsDataURL(s),c.onload=function(d){var u;const f=(u=d==null?void 0:d.target)===null||u===void 0?void 0:u.result;a(f)},c.onerror=function(d){i(d)}})}function x0(e){return new Promise((t,n)=>{const r=e,a=new Blob([r],{type:"image/svg+xml;charset=utf-8"}),i=new FileReader;i.readAsDataURL(a),i.onload=function(o){var s;const c=(s=o==null?void 0:o.target)===null||s===void 0?void 0:s.result;t(c)},i.onerror=function(o){n(o)}})}var tu=function(e,t,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(u){try{d(r.next(u))}catch(f){o(f)}}function c(u){try{d(r.throw(u))}catch(f){o(f)}}function d(u){u.done?i(u.value):a(u.value).then(s,c)}d((r=r.apply(e,t||[])).next())})};const{Image:S0}=window;function Oi(e){return new Promise((t,n)=>{const r=new S0;r.crossOrigin="anonymous",r.onload=function(){t(r)},r.onabort=n,r.onerror=n,r.src=e})}function E0(e){return tu(this,void 0,void 0,function*(){const t=yield x0(e);return yield Oi(t)})}function C0(e){return e.replace(/\&/gi,"&")}function M0(e,t){return tu(this,void 0,void 0,function*(){e=C0(e);const n=yield w0(e,t);return yield Oi(n)})}function vn(e){return typeof e=="number"&&(e>0||e<=0)}function A0(e){return vn(e)}function _0(e){return vn(e)}function nu(e){return typeof e=="number"&&e>=0}function T0(e){return typeof e=="number"&&e>=0}function O0(e){return typeof e=="number"&&e>=-360&&e<=360}function I0(e){return nu(e)}function $0(e){return vn(e)&&e>=0}function P0(e){return si(e)}function ru(e){return typeof e=="string"&&/^(http:\/\/|https:\/\/|\.\/|\/)/.test(`${e}`)}function au(e){return typeof e=="string"&&/^(data:image\/)/.test(`${e}`)}function R0(e){return au(e)||ru(e)}function z0(e){return typeof e=="string"&&/^(