@keadex/mina-react
Version:
React library to render C4 Model diagrams created with Keadex Mina.
1 lines • 148 kB
JavaScript
(()=>{"use strict";var e,t,n,r,a,o,i={15:e=>{e.exports=require("react")},53:e=>{e.exports=require("@fortawesome/react-fontawesome")},61:e=>{e.exports=require("react-i18next")},177:e=>{e.exports=require("@fortawesome/free-solid-svg-icons")},196:(e,t,n)=>{var r=n(457);e.exports=n.v(t,e.id,"51e7b953d4f2ab75ffbe",{"./mina_react_bg.js":{__wbg_debug_3cb59063b29f58c1:r.F$t,__wbg_error_524f506f44df1645:r.pWA,__wbg_info_3daf2e093e091b66:r.ZrD,__wbg_log_c222819a41e063d3:r.pR9,__wbg_warn_4ca3906c248c47c4:r.jwJ,__wbindgen_string_new:r.ycJ,__wbindgen_string_get:r.qNE,__wbindgen_bigint_get_as_i64:r.DMD,__wbindgen_debug_string:r.rl,__wbindgen_throw:r.Qnr,__wbindgen_memory:r.Py0,__wbg_get_b9b93047fe3cf45b:r.RKz,__wbg_length_e2d2a49132c1b256:r.Ry,__wbg_new_78feb108b6472713:r.M2,__wbindgen_number_new:r.QRK,__wbindgen_is_function:r.PRY,__wbg_newnoargs_105ed471475aaf50:r.VrZ,__wbg_new_5e0be73521bc8c17:r.aIY,__wbindgen_is_object:r.qvD,__wbg_next_25feadfc0913fea9:r.yqB,__wbg_next_6574e1a8a62d1055:r.Dn4,__wbg_done_769e5ede4b31c67b:r.Xb8,__wbg_value_cd1ffa7b1ab794f1:r.LMq,__wbg_iterator_9a24c88df860dc65:r.eW0,__wbg_get_67b2ba62fc30de12:r.dzD,__wbg_call_672a4d21634d4a24:r.wHY,__wbg_new_405e22f390576ce2:r.va5,__wbindgen_is_string:r.GuA,__wbindgen_number_get:r.sWe,__wbg_stringify_f7ed6987935b4a24:r.Y6F,__wbindgen_is_undefined:r.vUM,__wbg_set_37837023f3d740e8:r.p8e,__wbg_isArray_a1eab7e0d067391b:r.uod,__wbg_push_737cfc8c1432c2c6:r.tZf,__wbg_instanceof_ArrayBuffer_e14585432e3737fc:r.gGA,__wbg_instanceof_Error_4d54113b22d20306:r.fcg,__wbg_new_c68d7209be747379:r.wd3,__wbg_message_97a2af9b89d693a3:r.oGe,__wbg_call_7cccdd69e0791ae2:r.w9h,__wbg_set_8fc6bf8a5b1071d1:r.iAh,__wbg_next_c3ab0d59847b3b5c:r.tER,__wbg_isSafeInteger_343e2beeeece1bb0:r.Yb6,__wbg_entries_3265d4158b33e5dc:r.gHg,__wbg_new_23a2665fac83c611:r.c6u,__wbg_resolve_4851785c9c5f573d:r.wJz,__wbg_then_44b73946d2fb3e7d:r.GQG,__wbg_then_48b406749878a531:r.xV_,__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0:r.w6e,__wbg_static_accessor_SELF_37c5d418e4bf5819:r.fb$,__wbg_static_accessor_WINDOW_5de37043a91a9c40:r.x0C,__wbg_static_accessor_GLOBAL_88a902d13a557d07:r.ii7,__wbg_buffer_609cc3eee51ed158:r.FHK,__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a:r.hI8,__wbg_new_a12002a7f91c75be:r.vVD,__wbg_set_65595bdd868b3009:r.HBq,__wbg_length_a446193dc22c12f8:r.eIr,__wbg_instanceof_Uint8Array_17156bcf118086a9:r.SJf,__wbg_newwithlength_a381634e90c276d4:r.HtP,__wbg_buffer_09165b52af8c5237:r._Ue,__wbg_subarray_aa9065fa9dc5df96:r.TOc,__wbg_byteLength_e674b853d9c77e1d:r.x6W,__wbg_byteOffset_fd862df290ef848d:r.cyg,__wbg_setkeepexistingdata_ee7c8cb466e9477f:r.aKt,__wbg_signal_aaf9ad74119f20a4:r.CF8,__wbg_new_e25e5aab09ff45db:r.RG9,__wbg_abort_775ef1d17fc65868:r.gMQ,__wbg_setcreate_4ca762e23d9f78da:r.N9Q,__wbg_setbody_5923b78a95eedf29:r.Nhd,__wbg_setcredentials_c3a22f1cd105a2c6:r.uw1,__wbg_setheaders_834c0bdb6a8949ad:r.rk2,__wbg_setmethod_3c5280fe5d890842:r._hX,__wbg_setmode_5dc300b865044b65:r.BFX,__wbg_setsignal_75b21ef3a81de905:r.l0x,__wbg_settype_39ed370d3edd403c:r.a4S,__wbg_setrecursive_536113a081d6177a:r.ugc,__wbg_instanceof_FileSystemFileHandle_d3d037cf85ee546c:r.KA3,__wbg_createWritable_b4ed240dc879905e:r.kPb,__wbg_getFile_2607bc0123c724e0:r.ycy,__wbg_byobRequest_77d9adf63337edfb:r.JpR,__wbg_close_5ce03e29be453811:r.sQY,__wbg_view_fd8a56e8983f448d:r.NgT,__wbg_respond_1f279fa9f8edcb1c:r.dSQ,__wbg_close_24caca68e93b9c03:r.jeC,__wbg_setcreate_139bad94b2874fb5:r.kF0,__wbg_close_304cc1fef3466669:r.oaw,__wbg_enqueue_bb16ba72f537dc9e:r.QHd,__wbg_instanceof_FileSystemDirectoryHandle_0906fc139d75557b:r.Cjr,__wbg_entries_19efe296f7d36df9:r.RCF,__wbg_getDirectoryHandle_c48a138373d79b3d:r.kTu,__wbg_getFileHandle_5fb877d1ecc74d52:r.Wkh,__wbg_removeEntry_9f6bc325e3383e59:r.m_N,__wbg_removeEntry_a424e90dff229b19:r.lkn,__wbg_name_e4a115def9e2bbaa:r.Yeo,__wbg_new_018dcc2d6c8c2f6a:r.RR8,__wbg_append_8c7dd8d641a5f01b:r.Tbm,__wbg_newwithstrandinit_06c535e0a867c635:r.heb,__wbg_seek_3f0f8d7591f648d7:r.Zk3,__wbg_write_3e4e8c264c8bf357:r.aR4,__wbg_new_9fd39a253424609a:r.z09,__wbg_append_b44785ebeb668479:r.d_N,__wbg_append_b2d1fc16de2a0e81:r.WqA,__wbg_append_299d5d48292c0495:r.cVx,__wbg_has_a5ea9117f258a0ec:r.HSm,__wbg_fetch_509096533071c657:r.gRe,__wbg_fetch_4465c2b10f21a927:r.o0R,__wbg_size_3808d41635a9c259:r.$CF,__wbg_newwithu8arraysequenceandoptions_068570c487f69127:r.qe7,__wbg_arrayBuffer_f18c144cd0125f07:r.RGi,__wbg_text_1f39a8afe3c70a99:r.CFe,__wbindgen_cb_drop:r.LCp,__wbg_queueMicrotask_97d92b4fcc8a61c5:r._mt,__wbg_queueMicrotask_d3219def82552485:r.k2R,__wbindgen_jsval_loose_eq:r.U8c,__wbindgen_boolean_get:r.NhE,__wbindgen_as_number:r.qmw,__wbg_String_1b2069caba3b9783:r.JF5,__wbindgen_error_new:r.RjG,__wbindgen_bigint_from_u64:r.Qg3,__wbg_getwithrefkey_2d7fdfea9645a25b:r.A2U,__wbg_set_2873a5cee2324875:r.v1k,__wbg_new_8a6f238a6ece86ea:r.$Pc,__wbg_stack_0ed75d68575b0f3c:r.x$X,__wbg_error_7534b8e9a36f1ab4:r.WYM,__wbg_crypto_ed58b8e10a292839:r.ilI,__wbg_process_5c1d670bc53614b8:r.Evb,__wbg_versions_c71aa1626a93e0a1:r.ooJ,__wbg_node_02999533c4ea02e3:r.OtZ,__wbg_require_79b1e9274cde3c87:r.Ltb,__wbg_msCrypto_0a36e2ec3a343d26:r.HOd,__wbg_randomFillSync_ab2cfe79ebbf2740:r.NNx,__wbg_getRandomValues_bcb4912f16000dc4:r.FGp,__wbg_softwaresystem_unwrap:r.qre,__wbg_point_new:r.nA9,__wbg_boundary_new:r.HCo,__wbg_person_new:r.c1W,__wbg_diagram_new:r.YLb,__wbg_component_new:r.WJm,__wbg_minaerror_new:r.EkI,__wbg_relationship_new:r.NpJ,__wbg_deploymentnode_new:r.ezj,__wbg_shape_new:r._cl,__wbg_container_new:r.e57,__wbg_diagramelementspec_new:r.Dr_,__wbg_softwaresystem_new:r.dM0,__wbg_diagramelementspec_unwrap:r.W3f,__wbg_point_unwrap:r._QJ,__wbg_container_unwrap:r.xB8,__wbg_relationship_unwrap:r.KM7,__wbg_component_unwrap:r.dT0,__wbg_deploymentnode_unwrap:r._Zx,__wbg_person_unwrap:r.Xv$,__wbg_shape_unwrap:r.D7n,__wbg_boundary_unwrap:r.Wq,__wbg_instanceof_File_a4e2256bf71955a9:r.gjJ,__wbg_lastModified_7a9e61b3961224b8:r.gvw,__wbg_instanceof_Response_f2cc20d9f7dfd644:r.Hzn,__wbg_url_ae10c34ca209681d:r.Tp3,__wbg_status_f6360336ca686bf0:r.kK3,__wbg_headers_9cb51cfd2ac780a4:r.Moj,__wbg_arrayBuffer_d1b44c4390db422f:r._iy,__wbindgen_is_bigint:r.YkQ,__wbindgen_jsval_eq:r.BGI,__wbindgen_in:r.zEy,__wbindgen_closure_wrapper1864:r.kIB,__wbindgen_init_externref_table:r.bLn}})},221:e=>{e.exports=require("tw-elements")},334:(e,t,n)=>{n.a(e,(async(e,r)=>{try{n.r(t),n.d(t,{MinaReact:()=>d,default:()=>g});var a=n(571),o=n(636),i=n(385),_=n(15),l=n(507),s=n(519),c=n(732),u=e([l,s]);[l,s]=u.then?(await u)():u,(0,i.aC)();const d=e=>{var t;const{projectRootUrl:r,diagramUrl:i,ghToken:u}=e;(0,o.T_)({initTE:async function(){const{initTE:e,Dropdown:t}=await Promise.resolve().then(n.t.bind(n,221,23));await e({Dropdown:t})}});const d=(0,_.useRef)(null),[g,p]=(0,_.useState)(),[b,f]=(0,_.useState)(),[m,w]=(0,_.useState)(),h={onOpenDiagramClick:e=>{let t;try{t=(0,s.qjW)(r,e)}catch(e){console.error(e),y("Invalid URL: the provided URL is an invalid Mina project or diagram.")}t&&v(t)},onOpenExternalLinkClick:e=>{window.open(e,"_blank")}};function y(e){p(null),w(e)}async function v(e){var t,n,a,o;let i;null==(t=d.current)||t.resetCanvas();try{i=await(0,l.wS)(r,e,u)}catch(e){const t=e;if(!(t.message&&t.message.replace(/ /g,"").length>0))throw new Error;y(t.message)}if(null!=(n=i)&&n.projectSettingsJson&&null!=(a=i)&&a.plantuml&&null!=(o=i)&&o.spec)try{f(JSON.parse(i.projectSettingsJson));const t=await(0,s.Oxg)(r,e,i.plantuml,i.spec);p(t)}catch(e){y("Invalid diagram or project settings.")}}(0,_.useEffect)((()=>{y(null),v(i)}),[i,r,u]);return(0,c.jsxs)("div",{className:"h-full w-full border-t flex items-center",children:[(0,c.jsx)(o.rI,{menuItemsProps:[{id:"dropdown-init",label:"",isHeaderMenuItem:!0,subMenuItems:[{id:"dropdown-init-1",label:""}]}],className:"hidden"}),(0,c.jsx)(o.tz,{}),null===m&&g&&(0,c.jsx)(a.D,{diagramListener:h,diagram:g,ref:d,diagramsThemeSettings:null==b||null==(t=b.themes_settings)?void 0:t.diagrams_theme_settings,target:"web",readOnly:!0}),m&&(0,c.jsx)("div",{className:"w-full text-center text-black",children:m})]})},g=d;r()}catch(e){r(e)}}))},385:(e,t,n)=>{n.d(t,{mg:()=>s,Cp:()=>r,qI:()=>g,aC:()=>b,l:()=>u,$r:()=>l,cr:()=>p,wF:()=>d,x4:()=>c});const r=(e={})=>Object.keys(e).reduce(((t,n)=>(n.startsWith("data-")&&(t[n]=e[n]),t)),{}),a=require("fast-deep-equal/es6/react");var o=n.n(a);const i=require("lodash.clonedeep");var _=n.n(i);const l=(e,t)=>o()(e,t),s=e=>_()(e);function c(e){return e?e.replace(/\\n/g,"\n").replace(/\\t/g," ").replace(/\\r/g,"\n"):void 0}function u(e){return e.sort(((e,t)=>t.length-e.length))[0]}function d(e,t=96){return Number.parseFloat((e/t).toFixed(2))}function g(e,t=96){return Number.parseFloat((e*t).toFixed(2))}function p(e,t=96){return Number.parseFloat((e*(t/72)).toFixed(2))}function b(){console.log=()=>{},console.debug=()=>{}}},416:(e,t,n)=>{function r(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}n.d(t,{A:()=>r})},452:e=>{e.exports=require("pluralize")},457:(e,t,n)=>{let r;function a(e){r=e}n.d(t,{$CF:()=>Rn,$Pc:()=>kt,A2U:()=>at,BFX:()=>yn,BGI:()=>lr,CF8:()=>Tn,CFe:()=>Pn,Cjr:()=>ct,D7n:()=>xn,DMD:()=>qn,Dn4:()=>Wt,Dr_:()=>We,EkI:()=>St,Evb:()=>qt,F$t:()=>Pe,FGp:()=>tt,FHK:()=>Se,GQG:()=>zn,GuA:()=>ir,HBq:()=>un,HCo:()=>ye,HOd:()=>Et,HSm:()=>ot,HtP:()=>Pt,Hzn:()=>gt,JD7:()=>C,JF5:()=>de,JpR:()=>Ee,KA3:()=>ut,KM7:()=>tn,LCp:()=>Jn,LMq:()=>Wn,Llp:()=>R,Ltb:()=>an,M2:()=>Dt,Moj:()=>it,N9Q:()=>bn,NNx:()=>Kt,NgT:()=>Xn,NhE:()=>Qn,Nhd:()=>gn,NpJ:()=>en,OtZ:()=>Xt,Oxg:()=>E,PRY:()=>ar,Py0:()=>cr,QHd:()=>Ze,QRK:()=>dr,Qg3:()=>Un,Qnr:()=>br,RCF:()=>Ge,RG9:()=>jt,RGi:()=>he,RKz:()=>rt,RR8:()=>Tt,RjG:()=>er,Ry:()=>yt,SJf:()=>pt,TOc:()=>Mn,Tbm:()=>be,Tp3:()=>Hn,U8c:()=>sr,VrZ:()=>Ft,W3f:()=>Ye,WJm:()=>Le,WYM:()=>qe,Wkh:()=>Ke,Wq:()=>ve,WqA:()=>fe,Xb8:()=>Xe,Xv$:()=>Gt,Y6F:()=>Fn,YLb:()=>He,Yb6:()=>ft,Yeo:()=>xt,YkQ:()=>rr,Zk3:()=>ln,ZrD:()=>_t,_Cc:()=>S,_QJ:()=>Ut,_Ue:()=>Oe,_Zx:()=>Be,_cl:()=>En,_hX:()=>hn,_iy:()=>we,_mt:()=>Jt,a4S:()=>Sn,aIY:()=>It,aKt:()=>wn,aR4:()=>Gn,bLn:()=>nr,c1W:()=>Zt,c6u:()=>Rt,cVx:()=>pe,cyg:()=>Te,dM0:()=>Cn,dSQ:()=>_n,dT0:()=>Ae,d_N:()=>me,dzD:()=>nt,e57:()=>Ne,eIr:()=>ht,eW0:()=>mt,ezj:()=>ze,fb$:()=>An,fcg:()=>st,gGA:()=>lt,gHg:()=>$e,gMQ:()=>ge,gRe:()=>Je,gjJ:()=>dt,gvw:()=>wt,hI8:()=>Mt,heb:()=>zt,iAh:()=>dn,ii7:()=>kn,ilI:()=>Me,jeC:()=>Ie,jwJ:()=>Zn,k2R:()=>Vt,kF0:()=>pn,kIB:()=>Vn,kK3:()=>jn,kPb:()=>Fe,kTu:()=>Ve,l0x:()=>On,lIU:()=>a,lkn:()=>rn,m_N:()=>nn,nA9:()=>$t,o0R:()=>Qe,oGe:()=>Ot,oaw:()=>De,ooJ:()=>Yn,p8e:()=>cn,pR9:()=>vt,pWA:()=>Ue,qNE:()=>gr,qe7:()=>Bt,qjW:()=>T,qmw:()=>$n,qre:()=>In,qvD:()=>or,rk2:()=>mn,rl:()=>Kn,sQY:()=>ke,sWe:()=>ur,tER:()=>Yt,tZf:()=>Qt,ugc:()=>vn,uod:()=>bt,uw1:()=>fn,v1k:()=>sn,vUM:()=>_r,vVD:()=>At,va5:()=>Ct,w6e:()=>Ln,w9h:()=>Ce,wHY:()=>Re,wJz:()=>on,wd3:()=>Nt,x$X:()=>Dn,x0C:()=>Nn,x6W:()=>xe,xB8:()=>je,xV_:()=>Bn,ycJ:()=>pr,ycy:()=>et,yqB:()=>Ht,z09:()=>Lt,zEy:()=>tr}),e=n.hmd(e);let o=0,i=null;function _(){return null!==i&&0!==i.byteLength||(i=new Uint8Array(r.memory.buffer)),i}let l=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const s="function"==typeof l.encodeInto?function(e,t){return l.encodeInto(e,t)}:function(e,t){const n=l.encode(e);return t.set(n),{read:e.length,written:n.length}};function c(e,t,n){if(void 0===n){const n=l.encode(e),r=t(n.length,1)>>>0;return _().subarray(r,r+n.length).set(n),o=n.length,r}let r=e.length,a=t(r,1)>>>0;const i=_();let c=0;for(;c<r;c++){const t=e.charCodeAt(c);if(t>127)break;i[a+c]=t}if(c!==r){0!==c&&(e=e.slice(c)),a=n(a,r,r=c+3*e.length,1)>>>0;const t=_().subarray(a+c,a+r);c+=s(e,t).written,a=n(a,r,c,1)>>>0}return o=c,a}let u=null;function d(){return(null===u||!0===u.buffer.detached||void 0===u.buffer.detached&&u.buffer!==r.memory.buffer)&&(u=new DataView(r.memory.buffer)),u}let g=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function p(e,t){return e>>>=0,g.decode(_().subarray(e,e+t))}function b(e){const t=r.__externref_table_alloc();return r.__wbindgen_export_4.set(t,e),t}function f(e,t){try{return e.apply(this,t)}catch(e){const t=b(e);r.__wbindgen_exn_store(t)}}function m(e){return null==e}g.decode();const w="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>{r.__wbindgen_export_6.get(e.dtor)(e.a,e.b)}));function h(e){const t=typeof e;if("number"==t||"boolean"==t||null==e)return`${e}`;if("string"==t)return`"${e}"`;if("symbol"==t){const t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==t){const t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){const t=e.length;let n="[";t>0&&(n+=h(e[0]));for(let r=1;r<t;r++)n+=", "+h(e[r]);return n+="]",n}const n=/\[object ([^\]]+)\]/.exec(toString.call(e));let r;if(!(n&&n.length>1))return toString.call(e);if(r=n[1],"Object"==r)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function y(e,t){e>>>=0;const n=d(),a=[];for(let o=e;o<e+4*t;o+=4)a.push(r.__wbindgen_export_4.get(n.getUint32(o,!0)));return r.__externref_drop_slice(e,t),a}function v(e,t){const n=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){const r=b(e[t]);d().setUint32(n+4*t,r,!0)}return o=e.length,n}function O(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}function S(e){let t,n;try{const a=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,_=r.project_settings_url(a,i);return t=_[0],n=_[1],p(_[0],_[1])}finally{r.__wbindgen_free(t,n,1)}}function E(e,t,n,a){const i=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,l=c(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,u=c(n,r.__wbindgen_malloc,r.__wbindgen_realloc),d=o,g=c(a,r.__wbindgen_malloc,r.__wbindgen_realloc),p=o;return r.open_remote_diagram(i,_,l,s,u,d,g,p)}function x(e){const t=r.__wbindgen_export_4.get(e);return r.__externref_table_dealloc(e),t}function T(e,t){let n,a;try{const l=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,u=c(t,r.__wbindgen_malloc,r.__wbindgen_realloc),d=o,g=r.diagram_url_from_link_string(l,s,u,d);var i=g[0],_=g[1];if(g[3])throw i=0,_=0,x(g[2]);return n=i,a=_,p(i,_)}finally{r.__wbindgen_free(n,a,1)}}function R(e,t){let n,a;try{const l=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,u=c(t,r.__wbindgen_malloc,r.__wbindgen_realloc),d=o,g=r.diagram_plantuml_url_from_diagram_url(l,s,u,d);var i=g[0],_=g[1];if(g[3])throw i=0,_=0,x(g[2]);return n=i,a=_,p(i,_)}finally{r.__wbindgen_free(n,a,1)}}function C(e,t){let n,a;try{const l=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,u=c(t,r.__wbindgen_malloc,r.__wbindgen_realloc),d=o,g=r.diagram_spec_url_from_diagram_url(l,s,u,d);var i=g[0],_=g[1];if(g[3])throw i=0,_=0,x(g[2]);return n=i,a=_,p(i,_)}finally{r.__wbindgen_free(n,a,1)}}function I(e,t,n){r.closure263_externref_shim(e,t,n)}const D=["omit","same-origin","include"],k=["same-origin","no-cors","cors","navigate"];"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>r.__wbg_aisettings_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>r.__wbg_addelementtag_free(e>>>0,1)));const L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_baseelement_free(e>>>0,1)));class A{static __wrap(e){e>>>=0;const t=Object.create(A.prototype);return t.__wbg_ptr=e,L.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_baseelement_free(e,0)}get alias(){const e=r.__wbg_get_baseelement_alias(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set alias(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_baseelement_alias(this.__wbg_ptr,t,n)}get label(){const e=r.__wbg_get_baseelement_label(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set label(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_baseelement_label(this.__wbg_ptr,t,n)}get description(){const e=r.__wbg_get_baseelement_description(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set description(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_baseelement_description(this.__wbg_ptr,t,n)}get sprite(){const e=r.__wbg_get_baseelement_sprite(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set sprite(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_baseelement_sprite(this.__wbg_ptr,t,n)}get tags(){const e=r.__wbg_get_baseelement_tags(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set tags(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_baseelement_tags(this.__wbg_ptr,t,n)}get link(){const e=r.__wbg_get_baseelement_link(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set link(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_baseelement_link(this.__wbg_ptr,t,n)}get uuid(){const e=r.__wbg_get_baseelement_uuid(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set uuid(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_baseelement_uuid(this.__wbg_ptr,t,n)}get notes(){const e=r.__wbg_get_baseelement_notes(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set notes(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_baseelement_notes(this.__wbg_ptr,t,n)}}const N="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_boundary_free(e>>>0,1)));class j{static __wrap(e){e>>>=0;const t=Object.create(j.prototype);return t.__wbg_ptr=e,N.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof j?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,N.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_boundary_free(e,0)}get base_data(){const e=r.__wbg_get_boundary_base_data(this.__wbg_ptr);return A.__wrap(e)}set base_data(e){O(e,A);var t=e.__destroy_into_raw();r.__wbg_set_boundary_base_data(this.__wbg_ptr,t)}get boundary_type(){return r.__wbg_get_boundary_boundary_type(this.__wbg_ptr)}set boundary_type(e){r.__wbg_set_boundary_boundary_type(this.__wbg_ptr,m(e)?0:b(e))}get boundary_custom_type(){const e=r.__wbg_get_boundary_boundary_custom_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set boundary_custom_type(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_boundary_boundary_custom_type(this.__wbg_ptr,t,n)}get sub_elements(){const e=r.__wbg_get_boundary_sub_elements(this.__wbg_ptr);var t=y(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}set sub_elements(e){const t=v(e,r.__wbindgen_malloc),n=o;r.__wbg_set_boundary_sub_elements(this.__wbg_ptr,t,n)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>r.__wbg_c4elements_free(e>>>0,1)));const F="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_component_free(e>>>0,1)));class M{static __wrap(e){e>>>=0;const t=Object.create(M.prototype);return t.__wbg_ptr=e,F.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof M?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,F.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_component_free(e,0)}get base_data(){const e=r.__wbg_get_component_base_data(this.__wbg_ptr);return A.__wrap(e)}set base_data(e){O(e,A);var t=e.__destroy_into_raw();r.__wbg_set_component_base_data(this.__wbg_ptr,t)}get technology(){const e=r.__wbg_get_component_technology(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set technology(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_component_technology(this.__wbg_ptr,t,n)}get component_type(){return r.__wbg_get_component_component_type(this.__wbg_ptr)}set component_type(e){r.__wbg_set_component_component_type(this.__wbg_ptr,m(e)?0:b(e))}}const P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_container_free(e>>>0,1)));class z{static __wrap(e){e>>>=0;const t=Object.create(z.prototype);return t.__wbg_ptr=e,P.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof z?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_container_free(e,0)}get base_data(){const e=r.__wbg_get_component_base_data(this.__wbg_ptr);return A.__wrap(e)}set base_data(e){O(e,A);var t=e.__destroy_into_raw();r.__wbg_set_component_base_data(this.__wbg_ptr,t)}get technology(){const e=r.__wbg_get_container_technology(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set technology(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_component_technology(this.__wbg_ptr,t,n)}get container_type(){return r.__wbg_get_container_container_type(this.__wbg_ptr)}set container_type(e){r.__wbg_set_container_container_type(this.__wbg_ptr,m(e)?0:b(e))}}const B="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_deploymentnode_free(e>>>0,1)));class H{static __wrap(e){e>>>=0;const t=Object.create(H.prototype);return t.__wbg_ptr=e,B.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof H?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_deploymentnode_free(e,0)}get base_data(){const e=r.__wbg_get_deploymentnode_base_data(this.__wbg_ptr);return A.__wrap(e)}set base_data(e){O(e,A);var t=e.__destroy_into_raw();r.__wbg_set_deploymentnode_base_data(this.__wbg_ptr,t)}get deploymeny_node_custom_type(){const e=r.__wbg_get_deploymentnode_deploymeny_node_custom_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set deploymeny_node_custom_type(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_addelementtag_legend_sprite(this.__wbg_ptr,t,n)}get deployment_node_type(){return r.__wbg_get_deploymentnode_deployment_node_type(this.__wbg_ptr)}set deployment_node_type(e){r.__wbg_set_deploymentnode_deployment_node_type(this.__wbg_ptr,m(e)?0:b(e))}get sub_elements(){const e=r.__wbg_get_deploymentnode_sub_elements(this.__wbg_ptr);var t=y(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}set sub_elements(e){const t=v(e,r.__wbindgen_malloc),n=o;r.__wbg_set_deploymentnode_sub_elements(this.__wbg_ptr,t,n)}}const W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_diagram_free(e>>>0,1)));class Y{static __wrap(e){e>>>=0;const t=Object.create(Y.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_diagram_free(e,0)}get diagram_name(){const e=r.__wbg_get_diagram_diagram_name(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set diagram_name(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_diagram_diagram_name(this.__wbg_ptr,t,n)}get diagram_type(){return r.__wbg_get_diagram_diagram_type(this.__wbg_ptr)}set diagram_type(e){r.__wbg_set_diagram_diagram_type(this.__wbg_ptr,m(e)?0:b(e))}get diagram_spec(){const e=r.__wbg_get_diagram_diagram_spec(this.__wbg_ptr);return 0===e?void 0:q.__wrap(e)}set diagram_spec(e){let t=0;m(e)||(O(e,q),t=e.__destroy_into_raw()),r.__wbg_set_diagram_diagram_spec(this.__wbg_ptr,t)}get diagram_plantuml(){const e=r.__wbg_get_diagram_diagram_plantuml(this.__wbg_ptr);return 0===e?void 0:$.__wrap(e)}set diagram_plantuml(e){let t=0;m(e)||(O(e,$),t=e.__destroy_into_raw()),r.__wbg_set_diagram_diagram_plantuml(this.__wbg_ptr,t)}get raw_plantuml(){const e=r.__wbg_get_diagram_raw_plantuml(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set raw_plantuml(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_diagram_raw_plantuml(this.__wbg_ptr,t,n)}get last_modified(){const e=r.__wbg_get_diagram_last_modified(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set last_modified(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_diagram_last_modified(this.__wbg_ptr,t,n)}get auto_layout_errors(){const e=r.__wbg_get_diagram_auto_layout_errors(this.__wbg_ptr);let t;return 0!==e[0]&&(t=y(e[0],e[1]).slice(),r.__wbindgen_free(e[0],4*e[1],4)),t}set auto_layout_errors(e){var t=m(e)?0:v(e,r.__wbindgen_malloc),n=o;r.__wbg_set_diagram_auto_layout_errors(this.__wbg_ptr,t,n)}get auto_layout(){return r.diagram_auto_layout(this.__wbg_ptr)}set auto_layout(e){r.diagram_set_auto_layout(this.__wbg_ptr,e)}}const X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_diagramelementspec_free(e>>>0,1)));class Z{static __wrap(e){e>>>=0;const t=Object.create(Z.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof Z?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_diagramelementspec_free(e,0)}get alias(){const e=r.__wbg_get_diagramelementspec_alias(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set alias(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_diagramelementspec_alias(this.__wbg_ptr,t,n)}get from(){const e=r.__wbg_get_diagramelementspec_from(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set from(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_diagramelementspec_from(this.__wbg_ptr,t,n)}get to(){const e=r.__wbg_get_diagramelementspec_to(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set to(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_diagramelementspec_to(this.__wbg_ptr,t,n)}get shapes(){const e=r.__wbg_get_diagramelementspec_shapes(this.__wbg_ptr);let t;return 0!==e[0]&&(t=y(e[0],e[1]).slice(),r.__wbindgen_free(e[0],4*e[1],4)),t}set shapes(e){var t=m(e)?0:v(e,r.__wbindgen_malloc),n=o;r.__wbg_set_diagramelementspec_shapes(this.__wbg_ptr,t,n)}get element_type(){return r.__wbg_get_diagramelementspec_element_type(this.__wbg_ptr)}set element_type(e){r.__wbg_set_diagramelementspec_element_type(this.__wbg_ptr,m(e)?0:b(e))}get position(){const e=r.__wbg_get_diagramelementspec_position(this.__wbg_ptr);return 0===e?void 0:re.__wrap(e)}set position(e){let t=0;m(e)||(O(e,re),t=e.__destroy_into_raw()),r.__wbg_set_diagramelementspec_position(this.__wbg_ptr,t)}get size(){const e=r.__wbg_get_diagramelementspec_size(this.__wbg_ptr);return 0===e?void 0:se.__wrap(e)}set size(e){let t=0;m(e)||(O(e,se),t=e.__destroy_into_raw()),r.__wbg_set_diagramelementspec_size(this.__wbg_ptr,t)}get inner_specs(){const e=r.__wbg_get_diagramelementspec_inner_specs(this.__wbg_ptr);let t;return 0!==e[0]&&(t=y(e[0],e[1]).slice(),r.__wbindgen_free(e[0],4*e[1],4)),t}set inner_specs(e){var t=m(e)?0:v(e,r.__wbindgen_malloc),n=o;r.__wbg_set_diagramelementspec_inner_specs(this.__wbg_ptr,t,n)}}const G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_diagramplantuml_free(e>>>0,1)));class ${static __wrap(e){e>>>=0;const t=Object.create($.prototype);return t.__wbg_ptr=e,G.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_diagramplantuml_free(e,0)}get diagram_id(){const e=r.__wbg_get_diagramplantuml_diagram_id(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set diagram_id(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_diagramplantuml_diagram_id(this.__wbg_ptr,t,n)}get elements(){const e=r.__wbg_get_diagramplantuml_elements(this.__wbg_ptr);var t=y(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}set elements(e){const t=v(e,r.__wbindgen_malloc),n=o;r.__wbg_set_diagramplantuml_elements(this.__wbg_ptr,t,n)}get aliases(){const e=r.__wbg_get_diagramplantuml_aliases(this.__wbg_ptr);var t=y(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}set aliases(e){const t=v(e,r.__wbindgen_malloc),n=o;r.__wbg_set_diagramplantuml_aliases(this.__wbg_ptr,t,n)}get tags(){return r.diagramplantuml_tags(this.__wbg_ptr)}set tags(e){r.diagramplantuml_set_tags(this.__wbg_ptr,e)}}const U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_diagramspec_free(e>>>0,1)));class q{static __wrap(e){e>>>=0;const t=Object.create(q.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_diagramspec_free(e,0)}get uuid(){let e,t;try{const n=r.__wbg_get_diagramspec_uuid(this.__wbg_ptr);return e=n[0],t=n[1],p(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set uuid(e){const t=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_diagramspec_uuid(this.__wbg_ptr,t,n)}get description(){const e=r.__wbg_get_diagramspec_description(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set description(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_diagramspec_description(this.__wbg_ptr,t,n)}get tags(){const e=r.__wbg_get_diagramspec_tags(this.__wbg_ptr);let t;return 0!==e[0]&&(t=y(e[0],e[1]).slice(),r.__wbindgen_free(e[0],4*e[1],4)),t}set tags(e){var t=m(e)?0:v(e,r.__wbindgen_malloc),n=o;r.__wbg_set_diagramspec_tags(this.__wbg_ptr,t,n)}get elements_specs(){const e=r.__wbg_get_diagramspec_elements_specs(this.__wbg_ptr);var t=y(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}set elements_specs(e){const t=v(e,r.__wbindgen_malloc),n=o;r.__wbg_set_diagramspec_elements_specs(this.__wbg_ptr,t,n)}get shapes(){const e=r.__wbg_get_diagramspec_shapes(this.__wbg_ptr);var t=y(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}set shapes(e){const t=v(e,r.__wbindgen_malloc),n=o;r.__wbg_set_diagramspec_shapes(this.__wbg_ptr,t,n)}get auto_layout_enabled(){return 0!==r.__wbg_get_diagramspec_auto_layout_enabled(this.__wbg_ptr)}set auto_layout_enabled(e){r.__wbg_set_diagramspec_auto_layout_enabled(this.__wbg_ptr,e)}get auto_layout_orientation(){return r.__wbg_get_diagramspec_auto_layout_orientation(this.__wbg_ptr)}set auto_layout_orientation(e){r.__wbg_set_diagramspec_auto_layout_orientation(this.__wbg_ptr,e)}get auto_layout_only_straight_arrows(){return 0!==r.__wbg_get_diagramspec_auto_layout_only_straight_arrows(this.__wbg_ptr)}set auto_layout_only_straight_arrows(e){r.__wbg_set_diagramspec_auto_layout_only_straight_arrows(this.__wbg_ptr,e)}get auto_layout_ranksep(){return r.__wbg_get_diagramspec_auto_layout_ranksep(this.__wbg_ptr)}set auto_layout_ranksep(e){r.__wbg_set_diagramspec_auto_layout_ranksep(this.__wbg_ptr,e)}get auto_layout_subgraph_inner_margin(){return r.__wbg_get_diagramspec_auto_layout_subgraph_inner_margin(this.__wbg_ptr)}set auto_layout_subgraph_inner_margin(e){r.__wbg_set_diagramspec_auto_layout_subgraph_inner_margin(this.__wbg_ptr,e)}get auto_layout_subgraph_outer_margin(){return r.__wbg_get_diagramspec_auto_layout_subgraph_outer_margin(this.__wbg_ptr)}set auto_layout_subgraph_outer_margin(e){r.__wbg_set_diagramspec_auto_layout_subgraph_outer_margin(this.__wbg_ptr,e)}get grid_enabled(){return 0!==r.__wbg_get_diagramspec_grid_enabled(this.__wbg_ptr)}set grid_enabled(e){r.__wbg_set_diagramspec_grid_enabled(this.__wbg_ptr,e)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>r.__wbg_diagramsthemesettings_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>r.__wbg_elementdata_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>r.__wbg_hookpayload_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>r.__wbg_intounderlyingbytesource_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>r.__wbg_intounderlyingsink_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>r.__wbg_intounderlyingsource_free(e>>>0,1)));const Q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_minaerror_free(e>>>0,1)));class J{static __wrap(e){e>>>=0;const t=Object.create(J.prototype);return t.__wbg_ptr=e,Q.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_minaerror_free(e,0)}get code(){return r.__wbg_get_minaerror_code(this.__wbg_ptr)}set code(e){r.__wbg_set_minaerror_code(this.__wbg_ptr,e)}get msg(){let e,t;try{const n=r.__wbg_get_minaerror_msg(this.__wbg_ptr);return e=n[0],t=n[1],p(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set msg(e){const t=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_minaerror_msg(this.__wbg_ptr,t,n)}}const V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_person_free(e>>>0,1)));class K{static __wrap(e){e>>>=0;const t=Object.create(K.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof K?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_person_free(e,0)}get base_data(){const e=r.__wbg_get_person_base_data(this.__wbg_ptr);return A.__wrap(e)}set base_data(e){O(e,A);var t=e.__destroy_into_raw();r.__wbg_set_person_base_data(this.__wbg_ptr,t)}get person_type(){return r.__wbg_get_person_person_type(this.__wbg_ptr)}set person_type(e){r.__wbg_set_person_person_type(this.__wbg_ptr,m(e)?0:b(e))}}const ee="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_point_free(e>>>0,1)));class te{static __wrap(e){e>>>=0;const t=Object.create(te.prototype);return t.__wbg_ptr=e,ee.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof te?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ee.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_point_free(e,0)}get x(){return r.__wbg_get_point_x(this.__wbg_ptr)}set x(e){r.__wbg_set_point_x(this.__wbg_ptr,e)}get y(){return r.__wbg_get_point_y(this.__wbg_ptr)}set y(e){r.__wbg_set_point_y(this.__wbg_ptr,e)}}const ne="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_position_free(e>>>0,1)));class re{static __wrap(e){e>>>=0;const t=Object.create(re.prototype);return t.__wbg_ptr=e,ne.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ne.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_position_free(e,0)}get left(){const e=r.__wbg_get_position_left(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set left(e){r.__wbg_set_position_left(this.__wbg_ptr,!m(e),m(e)?0:e)}get top(){const e=r.__wbg_get_position_top(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set top(e){r.__wbg_set_position_top(this.__wbg_ptr,!m(e),m(e)?0:e)}get z_index(){const e=r.__wbg_get_position_z_index(this.__wbg_ptr);return 4294967297===e?void 0:e}set z_index(e){r.__wbg_set_position_z_index(this.__wbg_ptr,m(e)?4294967297:0|e)}get angle(){const e=r.__wbg_get_position_angle(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set angle(e){r.__wbg_set_position_angle(this.__wbg_ptr,!m(e),m(e)?0:e)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>r.__wbg_project_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>r.__wbg_projectlibrary_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>r.__wbg_projectsettings_free(e>>>0,1)));const ae="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_relationship_free(e>>>0,1)));class oe{static __wrap(e){e>>>=0;const t=Object.create(oe.prototype);return t.__wbg_ptr=e,ae.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof oe?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ae.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_relationship_free(e,0)}get base_data(){const e=r.__wbg_get_component_base_data(this.__wbg_ptr);return A.__wrap(e)}set base_data(e){O(e,A);var t=e.__destroy_into_raw();r.__wbg_set_component_base_data(this.__wbg_ptr,t)}get from(){const e=r.__wbg_get_relationship_from(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set from(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_component_technology(this.__wbg_ptr,t,n)}get to(){const e=r.__wbg_get_relationship_to(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set to(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_relationship_to(this.__wbg_ptr,t,n)}get technology(){const e=r.__wbg_get_relationship_technology(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set technology(e){var t=m(e)?0:c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_relationship_technology(this.__wbg_ptr,t,n)}get relationship_type(){return r.__wbg_get_relationship_relationship_type(this.__wbg_ptr)}set relationship_type(e){r.__wbg_set_relationship_relationship_type(this.__wbg_ptr,m(e)?0:b(e))}}const ie="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_shape_free(e>>>0,1)));class _e{static __wrap(e){e>>>=0;const t=Object.create(_e.prototype);return t.__wbg_ptr=e,ie.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof _e?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ie.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_shape_free(e,0)}get shape_type(){return r.__wbg_get_shape_shape_type(this.__wbg_ptr)}set shape_type(e){r.__wbg_set_shape_shape_type(this.__wbg_ptr,m(e)?0:b(e))}get position(){const e=r.__wbg_get_shape_position(this.__wbg_ptr);return 0===e?void 0:re.__wrap(e)}set position(e){let t=0;m(e)||(O(e,re),t=e.__destroy_into_raw()),r.__wbg_set_shape_position(this.__wbg_ptr,t)}get size(){const e=r.__wbg_get_shape_size(this.__wbg_ptr);return 0===e?void 0:se.__wrap(e)}set size(e){let t=0;m(e)||(O(e,se),t=e.__destroy_into_raw()),r.__wbg_set_shape_size(this.__wbg_ptr,t)}}const le="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_size_free(e>>>0,1)));class se{static __wrap(e){e>>>=0;const t=Object.create(se.prototype);return t.__wbg_ptr=e,le.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,le.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_size_free(e,0)}get width(){const e=r.__wbg_get_size_width(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set width(e){r.__wbg_set_size_width(this.__wbg_ptr,!m(e),m(e)?0:e)}get height(){const e=r.__wbg_get_size_height(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set height(e){r.__wbg_set_size_height(this.__wbg_ptr,!m(e),m(e)?0:e)}get scale_x(){const e=r.__wbg_get_size_scale_x(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set scale_x(e){r.__wbg_set_size_scale_x(this.__wbg_ptr,!m(e),m(e)?0:e)}get scale_y(){const e=r.__wbg_get_size_scale_y(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set scale_y(e){r.__wbg_set_size_scale_y(this.__wbg_ptr,!m(e),m(e)?0:e)}}const ce="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_softwaresystem_free(e>>>0,1)));class ue{static __wrap(e){e>>>=0;const t=Object.create(ue.prototype);return t.__wbg_ptr=e,ce.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof ue?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ce.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_softwaresystem_free(e,0)}get base_data(){const e=r.__wbg_get_softwaresystem_base_data(this.__wbg_ptr);return A.__wrap(e)}set base_data(e){O(e,A);var t=e.__destroy_into_raw();r.__wbg_set_softwaresystem_base_data(this.__wbg_ptr,t)}get system_type(){return r.__wbg_get_softwaresystem_system_type(this.__wbg_ptr)}set system_type(e){r.__wbg_set_softwaresystem_system_type(this.__wbg_ptr,m(e)?0:b(e))}}function de(e,t){const n=c(String(t),r.__wbindgen_malloc,r.__wbindgen_realloc),a=o;d().setInt32(e+4,a,!0),d().setInt32(e+0,n,!0)}function ge(e){e.abort()}function pe(){return f((function(e,t,n,r,a){e.append(p(t,n),p(r,a))}),arguments)}function be(){return f((function(e,t,n,r,a){e.append(p(t,n),p(r,a))}),arguments)}function fe(){return f((function(e,t,n,r,a,o){e.append(p(t,n),r,p(a,o))}),arguments)}function me(){return f((function(e,t,n,r){e.append(p(t,n),r)}),arguments)}function we(){return f((function(e){return e.arrayBuffer()}),arguments)}function he(e){return e.arrayBuffer()}function ye(e){return j.__wrap(e)}function ve(e){return j.__unwrap(e)}function Oe(e){return e.buffer}function Se(e){return e.buffer}function Ee(e){const t=e.byobRequest;return m(t)?0:b(t)}function xe(e){return e.byteLength}function Te(e){return e.byteOffset}function Re(){return f((function(e,t){return e.call(t)}),arguments)}function Ce(){return f((function(e,t,n){return e.call(t,n)}),arguments)}function Ie(e){return e.close()}function De(){return f((function(e){e.close()}),arguments)}function ke(){return f((function(e){e.close()}),arguments)}function Le(e){return M.__wrap(e)}function Ae(e){return M.__unwrap(e)}function Ne(e){return z.__wrap(e)}function je(e){return z.__unwrap(e)}function Fe(e,t){return e.createWritable(t)}function Me(e){return e.crypto}function Pe(e){console.debug(e)}function ze(e){return H.__wrap(e)}function Be(e){return H.__unwrap(e)}function He(e){return Y.__wrap(e)}function We(e){return Z.__wrap(e)}function Ye(e){return Z.__unwrap(e)}function Xe(e){return e.done}function Ze(){return f((function(e,t){e.enqueue(t)}),arguments)}function Ge(e){return e.entries()}function $e(e){return Object.entries(e)}function Ue(e){console.error(e)}function qe(e,t){let n,a;try{n=e,a=t,console.error(p(e,t))}finally{r.__wbindgen_free(n,a,1)}}function Qe(e){return fetch(e)}function Je(e,t){return e.fetch(t)}function Ve(e,t,n,r){return e.getDirectoryHandle(p(t,n),r)}function Ke(e,t,n,r){return e.getFileHandle(p(t,n),r)}function et(e){return e.getFile()}function tt(){return f((function(e,t){e.getRandomValues(t)}),arguments)}function nt(){return f((function(e,t){return Reflect.get(e,t)}),arguments)}function rt(e,t){return e[t>>>0]}function at(e,t){return e[t]}function ot(){return f((function(e,t){return Reflect.has(e,t)}),arguments)}function it(e){return e.headers}function _t(e){console.info(e)}function lt(e){let t;try{t=e instanceof ArrayBuffer}catch(e){t=!1}return t}function st(e){let t;try{t=e instanceof Error}catch(e){t=!1}return t}function ct(e){let t;try{t=e instanceof FileSystemDirectoryHandle}catch(e){t=!1}return t}function ut(e){let t;try{t=e instanceof FileSystemFileHandle}catch(e){t=!1}return t}function dt(e){let t;try{t=e instanceof File}catch(e){t=!1}return t}function gt(e){let t;try{t=e instanceof Response}catch(e){t=!1}return t}function pt(e){let t;try{t=e instanceof Uint8Array}catch(e){t=!1}return t}function bt(e){return Array.isArray(e)}function ft(e){return Number.isSafeInteger(e)}function mt(){return Symbol.iterator}function wt(e){return e.lastModified}function ht(e){return e.length}function yt(e){return e.length}function vt(e){console.log(e)}function Ot(e){return e.message}function St(e){return J.__wrap(e)}function Et(e){return e.msCrypto}function xt(e,t){const n=c(t.name,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o;d().setInt32(e+4,a,!0),d().setInt32(e+0,n,!0)}function Tt(){return f((function(){return new Headers}),arguments)}function Rt(e,t){try{var n={a:e,b:t};const a=new Promise(((e,t)=>{const a=n.a;n.a=0;try{return function(e,t,n,a){r.closure73_externref_shim(e,t,n,a)}(a,n.b,e,t)}finally{n.a=a}}));return a}finally{n.a=n.b=0}}function Ct(){return new Object}function It(){return new Map}function Dt(){return new Array}function kt(){return new Error}function Lt(){return f((function(){return new FormData}),arguments)}function At(e){return new Uint8Array(e)}function Nt(e,t){return new Error(p(e,t))}function jt(){return f((function(){return new AbortController}),arguments)}function Ft(e,t){return new Function(p(e,t))}function Mt(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)}function Pt(e){return new Uint8Array(e>>>0)}function zt(){return f((function(e,t,n){return new Request(p(e,t),n)}),arguments)}function Bt(){return f((function(e,t){return new Blob(e,t)}),arguments)}function Ht(e){return e.next}function Wt(){return f((function(e){return e.next()}),arguments)}function Yt(){return f((function(e){return e.next()}),arguments)}function Xt(e){return e.node}function Zt(e){return K.__wrap(e)}function Gt(e){return K.__unwrap(e)}function $t(e){return te.__wrap(e)}function Ut(e){return te.__unwrap(e)}function qt(e){return e.process}function Qt(e,t){return e.push(t)}function Jt(e){queueMicrotask(e)}function Vt(e){return e.queueMicrotask}function Kt(){return f((function(e,t){e.randomFillSync(t)}),arguments)}function en(e){return oe.__wrap(e)}function tn(e){return oe.__unwrap(e)}function nn(e,t,n){return e.removeEntry(p(t,n))}function rn(e,t,n,r){return e.removeEntry(p(t,n),r)}function an(){return f((function(){return e.require}),arguments)}function on(e){return Promise.resolve(e)}function _n(){return f((function(e,t){e.respond(t>>>0)}),arguments)}function ln(){return f((function(e,t){return e.seek(t)}),arguments)}function sn(e,t,n){e[t]=n}function cn(e,t,n){e[t>>>0]=n}function un(e,t,n){e.set(t,n>>>0)}function dn(e,t,n){return e.set(t,n)}function gn(e,t){e.body=t}function pn(e,t){e.create=0!==t}function bn(e,t){e.create=0!==t}function fn(e,t){e.credentials=D[t]}function mn(e,t){e.headers=t}function wn(e,t){e.keepExistingData=0!==t}function hn(e,t,n){e.method=p(t,n)}function yn(e,t){e.mode=k[t]}function vn(e,t){e.recursive=0!==t}function On(e,t){e.signal=t}function Sn(e,t,n){e.type=p(t,n)}function En(e){return _e.__wrap(e)}function xn(e){return _e.__unwrap(e)}function Tn(e){return e.signal}function Rn(e){return e.size}function Cn(e){return ue.__wrap(e)}function In(e){return ue.__unwrap(e)}function Dn(e,t){const n=c(t.stack,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o;d().setInt32(e+4,a,!0),d().setInt32(e+0,n,!0)}function kn(){const e=void 0===n.g?null:n.g;return m(e)?0:b(e)}function Ln(){const e="undefined"==typeof globalThis?null:globalThis;return m(e)?0:b(e)}function An(){const e="undefined"==typeof self?null:self;return m(e)?0:b(e)}function Nn(){const e="undefined"==typeof window?null:window;return m(e)?0:b(e)}function jn(e){return e.status}function Fn(){return f((function(e){return JSON.stringify(e)}),arguments)}function Mn(e,t,n){return e.subarray(t>>>0,n>>>0)}function Pn(e){return e.text()}function zn(e,t){return e.then(t)}function Bn(e,t,n){return e.then(t,n)}function Hn(e,t){const n=c(t.url,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o;d().setInt32(e+4,a,!0),d().setInt32(e+0,n,!0)}function Wn(e){return e.value}function Yn(e){return e.versions}function Xn(e){const t=e.view;return m(t)?0:b(t)}function Zn(e){console.warn(e)}function Gn(){return f((function(e,t,n){var r,a;return e.write((r=t,a=n,r>>>=0,_().subarray(r/1,r/1+a)))}),arguments)}function $n(e){return+e}function Un(e){return BigInt.asUintN(64,e)}function qn(e,t){const n="bigint"==typeof t?t:void 0;d().setBigInt64(e+8,m(n)?BigInt(0):n,!0),d().setInt32(e+0,!m(n),!0)}function Qn(e){return"boolean"==typeof e?e?1:0:2}function Jn(e){const t=e.original;return 1==t.cnt--&&(t.a=0,!0)}function Vn(e,t,n){const a=function(e,t,n,a){const o={a:e,b:t,cnt:1,dtor:264},i=(...e)=>{o.cnt++;const t=o.a;o.a=0;try{return a(t,o.b,...e)}finally{0==--o.cnt?(r.__wbindgen_export_6.get(o.dtor)(t,o.b),w.unregister(o)):o.a=t}};return i.original=o,w.register(i,o,o),i}(e,t,0,I);return a}function Kn(e,t){const n=c(h(t),r.__wbindgen_malloc,r.__wbindgen_realloc),a=o;d().setInt32(e+4,a,!0),d().setInt32(e+0,n,!0)}function er(e,t){return new Error(p(e,t))}function tr(e,t){return e in t}function nr(){const e=r.__wbindgen_export_4,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}function rr(e){return"bigint"==typeof e}function ar(e){return"function"==typeof e}function or(e){return"object"==typeof e&&null!==e}function ir(e){return"string"==typeof e}function _r(e){return void 0===e}function lr(e,t){return e===t}function sr(e,t){return e==t}function cr(){