@arach/arc-iso 0.8.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- (function(ee,z){typeof exports=="object"&&typeof module<"u"?z(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],z):(ee=typeof globalThis<"u"?globalThis:ee||self,z(ee.ArcIso={},ee.React))})(this,(function(ee,z){"use strict";const fn=30*(Math.PI/180),Fr=Math.cos(fn),Ir=Math.sin(fn);function C(e,n,r=0){return{screenX:(e-n)*Fr,screenY:-(e+n)*Ir-r}}function Rr(e="x"){let n=1,r=0,t=0,i=-1;e==="y"?(n=0,r=1,t=1,i=0):e==="x-"?(n=-1,r=0,t=0,i=1):e==="y-"&&(n=0,r=-1,t=-1,i=0);const l=C(n,r,0),o=C(t,i,0);return`${l.screenX},${l.screenY},${o.screenX},${o.screenY},0,0`}function ue(e,n,r,t=0,i=0,l=0){const o={frontBottom:C(e,0,0),rightBottom:C(e,n,0),backBottom:C(0,n,0),leftBottom:C(0,0,0),frontTop:C(e,0,r),rightTop:C(e,n,r),backTop:C(0,n,r),leftTop:C(0,0,r)},a=S=>({x:S.screenX+t,y:S.screenY+i}),c=Object.fromEntries(Object.entries(o).map(([S,j])=>[S,a(j)])),s=(S,j,I,N)=>{if(N<=0){const re=C(0,0,I),Z=C(S,0,I),T=C(S,j,I),U=C(0,j,I);return`M ${re.screenX+t},${re.screenY+i} L ${Z.screenX+t},${Z.screenY+i} L ${T.screenX+t},${T.screenY+i} L ${U.screenX+t},${U.screenY+i} Z`}const W=Math.min(S,j)/2,D=Math.min(N,W),F=8,P=[],te=(re,Z,T,U)=>{for(let ie=0;ie<=F;ie++){const M=T+(U-T)*(ie/F),w=re+D*Math.cos(M),x=Z+D*Math.sin(M),A=C(w,x,I);P.push(`${A.screenX+t},${A.screenY+i}`)}};return te(D,D,Math.PI,Math.PI*1.5),te(S-D,D,Math.PI*1.5,Math.PI*2),te(S-D,j-D,0,Math.PI*.5),te(D,j-D,Math.PI*.5,Math.PI),`M ${P[0]} L ${P.slice(1).join(" L ")} Z`},p=S=>`M ${S.map(j=>`${j.x},${j.y}`).join(" L ")} Z`,h=(S,j,I,N,W,D)=>{const P=[];for(let T=0;T<6;T++){const U=W+(D-W)*(T/6),ie=W+(D-W)*((T+1)/6),M=(U+ie)/2,w=Math.cos(M),x=Math.sin(M),L=w*-.577+x*-.577+0*.577,he=.3+Math.max(0,L+.4)*.5,xe=C(S+I*Math.cos(U),j+I*Math.sin(U),0),Y=C(S+I*Math.cos(ie),j+I*Math.sin(ie),0),le=C(S+I*Math.cos(U),j+I*Math.sin(U),N),fe=C(S+I*Math.cos(ie),j+I*Math.sin(ie),N),Oe=`M ${xe.screenX+t},${xe.screenY+i} L ${Y.screenX+t},${Y.screenY+i} L ${fe.screenX+t},${fe.screenY+i} L ${le.screenX+t},${le.screenY+i} Z`;P.push({path:Oe,intensity:he})}return P},u=Math.min(l,Math.min(e,n)/2),f=s(e,n,r,u);let m,g,_,k,v,R;if(u>0){const S=[{x:C(0,u,0).screenX+t,y:C(0,u,0).screenY+i},{x:C(0,n-u,0).screenX+t,y:C(0,n-u,0).screenY+i},{x:C(0,n-u,r).screenX+t,y:C(0,n-u,r).screenY+i},{x:C(0,u,r).screenX+t,y:C(0,u,r).screenY+i}];m=p(S);const j=[{x:C(u,0,0).screenX+t,y:C(u,0,0).screenY+i},{x:C(e-u,0,0).screenX+t,y:C(e-u,0,0).screenY+i},{x:C(e-u,0,r).screenX+t,y:C(e-u,0,r).screenY+i},{x:C(u,0,r).screenX+t,y:C(u,0,r).screenY+i}];g=p(j),_=h(u,u,u,r,Math.PI,Math.PI*1.5),k=h(e-u,u,u,r,Math.PI*1.5,Math.PI*2),v=h(u,n-u,u,r,Math.PI*.5,Math.PI),R=h(e-u,n-u,u,r,0,Math.PI*.5)}else{const S=[c.leftBottom,c.backBottom,c.backTop,c.leftTop],j=[c.leftBottom,c.frontBottom,c.frontTop,c.leftTop];m=p(S),g=p(j),_=[],k=[],v=[],R=[]}const O=`M ${c.leftBottom.x},${c.leftBottom.y} L ${c.frontBottom.x},${c.frontBottom.y} L ${c.rightBottom.x},${c.rightBottom.y} L ${c.backBottom.x},${c.backBottom.y} Z`;return{top:f,left:m,right:g,cornerFrontLeft:_,cornerFrontRight:k,cornerBackLeft:v,cornerBackRight:R,outline:O}}function Pr(e,n=60,r=50){return{top:`hsl(${e}, ${n}%, ${Math.min(r+15,95)}%)`,right:`hsl(${e}, ${n}%, ${r}%)`,left:`hsl(${e}, ${n}%, ${Math.max(r-15,15)}%)`}}const un={violet:{hue:270,saturation:60,lightness:55},blue:{hue:220,saturation:70,lightness:50},cyan:{hue:190,saturation:80,lightness:45},emerald:{hue:155,saturation:65,lightness:45},amber:{hue:40,saturation:90,lightness:50},rose:{hue:350,saturation:70,lightness:55},slate:{hue:220,saturation:15,lightness:50},zinc:{hue:240,saturation:5,lightness:50}};function Dr(e){const n=un[e]||un.slate;return Pr(n.hue,n.saturation,n.lightness)}var Fe={exports:{}},Ce={};var pn;function Yr(){if(pn)return Ce;pn=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(t,i,l){var o=null;if(l!==void 0&&(o=""+l),i.key!==void 0&&(o=""+i.key),"key"in i){l={};for(var a in i)a!=="key"&&(l[a]=i[a])}else l=i;return i=l.ref,{$$typeof:e,type:t,key:o,ref:i!==void 0?i:null,props:l}}return Ce.Fragment=n,Ce.jsx=r,Ce.jsxs=r,Ce}var $e={};var dn;function Br(){return dn||(dn=1,process.env.NODE_ENV!=="production"&&(function(){function e(x){if(x==null)return null;if(typeof x=="function")return x.$$typeof===F?null:x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case _:return"Fragment";case v:return"Profiler";case k:return"StrictMode";case j:return"Suspense";case I:return"SuspenseList";case D:return"Activity"}if(typeof x=="object")switch(typeof x.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),x.$$typeof){case g:return"Portal";case O:return x.displayName||"Context";case R:return(x._context.displayName||"Context")+".Consumer";case S:var A=x.render;return x=x.displayName,x||(x=A.displayName||A.name||"",x=x!==""?"ForwardRef("+x+")":"ForwardRef"),x;case N:return A=x.displayName||null,A!==null?A:e(x.type)||"Memo";case W:A=x._payload,x=x._init;try{return e(x(A))}catch{}}return null}function n(x){return""+x}function r(x){try{n(x);var A=!1}catch{A=!0}if(A){A=console;var L=A.error,B=typeof Symbol=="function"&&Symbol.toStringTag&&x[Symbol.toStringTag]||x.constructor.name||"Object";return L.call(A,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),n(x)}}function t(x){if(x===_)return"<>";if(typeof x=="object"&&x!==null&&x.$$typeof===W)return"<...>";try{var A=e(x);return A?"<"+A+">":"<...>"}catch{return"<...>"}}function i(){var x=P.A;return x===null?null:x.getOwner()}function l(){return Error("react-stack-top-frame")}function o(x){if(te.call(x,"key")){var A=Object.getOwnPropertyDescriptor(x,"key").get;if(A&&A.isReactWarning)return!1}return x.key!==void 0}function a(x,A){function L(){T||(T=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",A))}L.isReactWarning=!0,Object.defineProperty(x,"key",{get:L,configurable:!0})}function c(){var x=e(this.type);return U[x]||(U[x]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),x=this.props.ref,x!==void 0?x:null}function s(x,A,L,B,he,xe){var Y=L.ref;return x={$$typeof:m,type:x,key:A,props:L,_owner:B},(Y!==void 0?Y:null)!==null?Object.defineProperty(x,"ref",{enumerable:!1,get:c}):Object.defineProperty(x,"ref",{enumerable:!1,value:null}),x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(x,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(x,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:he}),Object.defineProperty(x,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:xe}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x}function p(x,A,L,B,he,xe){var Y=A.children;if(Y!==void 0)if(B)if(re(Y)){for(B=0;B<Y.length;B++)h(Y[B]);Object.freeze&&Object.freeze(Y)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(Y);if(te.call(A,"key")){Y=e(x);var le=Object.keys(A).filter(function(Oe){return Oe!=="key"});B=0<le.length?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}",w[Y+B]||(le=0<le.length?"{"+le.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(ee,U){typeof exports=="object"&&typeof module<"u"?U(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],U):(ee=typeof globalThis<"u"?globalThis:ee||self,U(ee.ArcIso={},ee.React))})(this,(function(ee,U){"use strict";const fn=30*(Math.PI/180),Rr=Math.cos(fn),Pr=Math.sin(fn);function w(e,n,r=0){return{screenX:(e-n)*Rr,screenY:-(e+n)*Pr-r}}function Dr(e="x"){let n=1,r=0,t=0,i=-1;e==="y"?(n=0,r=1,t=1,i=0):e==="x-"?(n=-1,r=0,t=0,i=1):e==="y-"&&(n=0,r=-1,t=-1,i=0);const l=w(n,r,0),o=w(t,i,0);return`${l.screenX},${l.screenY},${o.screenX},${o.screenY},0,0`}function ue(e,n,r,t=0,i=0,l=0){const o={frontBottom:w(e,0,0),rightBottom:w(e,n,0),backBottom:w(0,n,0),leftBottom:w(0,0,0),frontTop:w(e,0,r),rightTop:w(e,n,r),backTop:w(0,n,r),leftTop:w(0,0,r)},a=$=>({x:$.screenX+t,y:$.screenY+i}),c=Object.fromEntries(Object.entries(o).map(([$,O])=>[$,a(O)])),f=($,O,I,H)=>{if(H<=0){const te=w(0,0,I),Z=w($,0,I),W=w($,O,I),T=w(0,O,I);return`M ${te.screenX+t},${te.screenY+i} L ${Z.screenX+t},${Z.screenY+i} L ${W.screenX+t},${W.screenY+i} L ${T.screenX+t},${T.screenY+i} Z`}const M=Math.min($,O)/2,R=Math.min(H,M),re=8,L=[],D=(te,Z,W,T)=>{for(let X=0;X<=re;X++){const ce=W+(T-W)*(X/re),N=te+R*Math.cos(ce),s=Z+R*Math.sin(ce),b=w(N,s,I);L.push(`${b.screenX+t},${b.screenY+i}`)}};return D(R,R,Math.PI,Math.PI*1.5),D($-R,R,Math.PI*1.5,Math.PI*2),D($-R,O-R,0,Math.PI*.5),D(R,O-R,Math.PI*.5,Math.PI),`M ${L[0]} L ${L.slice(1).join(" L ")} Z`},u=$=>`M ${$.map(O=>`${O.x},${O.y}`).join(" L ")} Z`,h=($,O,I,H,M,R)=>{const L=[];for(let W=0;W<6;W++){const T=M+(R-M)*(W/6),X=M+(R-M)*((W+1)/6),ce=(T+X)/2,N=Math.cos(ce),s=Math.sin(ce),j=N*-.577+s*-.577+0*.577,fe=.3+Math.max(0,j+.4)*.5,he=w($+I*Math.cos(T),O+I*Math.sin(T),0),P=w($+I*Math.cos(X),O+I*Math.sin(X),0),oe=w($+I*Math.cos(T),O+I*Math.sin(T),H),xe=w($+I*Math.cos(X),O+I*Math.sin(X),H),we=`M ${he.screenX+t},${he.screenY+i} L ${P.screenX+t},${P.screenY+i} L ${xe.screenX+t},${xe.screenY+i} L ${oe.screenX+t},${oe.screenY+i} Z`;L.push({path:we,intensity:fe})}return L},p=Math.min(l,Math.min(e,n)/2),x=f(e,n,r,p);let m,y,v,k,_,Y;if(p>0){const $=[{x:w(0,p,0).screenX+t,y:w(0,p,0).screenY+i},{x:w(0,n-p,0).screenX+t,y:w(0,n-p,0).screenY+i},{x:w(0,n-p,r).screenX+t,y:w(0,n-p,r).screenY+i},{x:w(0,p,r).screenX+t,y:w(0,p,r).screenY+i}];m=u($);const O=[{x:w(p,0,0).screenX+t,y:w(p,0,0).screenY+i},{x:w(e-p,0,0).screenX+t,y:w(e-p,0,0).screenY+i},{x:w(e-p,0,r).screenX+t,y:w(e-p,0,r).screenY+i},{x:w(p,0,r).screenX+t,y:w(p,0,r).screenY+i}];y=u(O),v=h(p,p,p,r,Math.PI,Math.PI*1.5),k=h(e-p,p,p,r,Math.PI*1.5,Math.PI*2),_=h(p,n-p,p,r,Math.PI*.5,Math.PI),Y=h(e-p,n-p,p,r,0,Math.PI*.5)}else{const $=[c.leftBottom,c.backBottom,c.backTop,c.leftTop],O=[c.leftBottom,c.frontBottom,c.frontTop,c.leftTop];m=u($),y=u(O),v=[],k=[],_=[],Y=[]}const E=`M ${c.leftBottom.x},${c.leftBottom.y} L ${c.frontBottom.x},${c.frontBottom.y} L ${c.rightBottom.x},${c.rightBottom.y} L ${c.backBottom.x},${c.backBottom.y} Z`;return{top:x,left:m,right:y,cornerFrontLeft:v,cornerFrontRight:k,cornerBackLeft:_,cornerBackRight:Y,outline:E}}function Yr(e,n=60,r=50){return{top:`hsl(${e}, ${n}%, ${Math.min(r+15,95)}%)`,right:`hsl(${e}, ${n}%, ${r}%)`,left:`hsl(${e}, ${n}%, ${Math.max(r-15,15)}%)`}}const un={violet:{hue:270,saturation:60,lightness:55},blue:{hue:220,saturation:70,lightness:50},cyan:{hue:190,saturation:80,lightness:45},emerald:{hue:155,saturation:65,lightness:45},amber:{hue:40,saturation:90,lightness:50},rose:{hue:350,saturation:70,lightness:55},slate:{hue:220,saturation:15,lightness:50},zinc:{hue:240,saturation:5,lightness:50}};function Br(e){const n=un[e]||un.slate;return Yr(n.hue,n.saturation,n.lightness)}var Fe={exports:{}},Ce={};var pn;function Hr(){if(pn)return Ce;pn=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(t,i,l){var o=null;if(l!==void 0&&(o=""+l),i.key!==void 0&&(o=""+i.key),"key"in i){l={};for(var a in i)a!=="key"&&(l[a]=i[a])}else l=i;return i=l.ref,{$$typeof:e,type:t,key:o,ref:i!==void 0?i:null,props:l}}return Ce.Fragment=n,Ce.jsx=r,Ce.jsxs=r,Ce}var Se={};var dn;function Wr(){return dn||(dn=1,process.env.NODE_ENV!=="production"&&(function(){function e(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===re?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case v:return"Fragment";case _:return"Profiler";case k:return"StrictMode";case O:return"Suspense";case I:return"SuspenseList";case R:return"Activity"}if(typeof s=="object")switch(typeof s.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case y:return"Portal";case E:return s.displayName||"Context";case Y:return(s._context.displayName||"Context")+".Consumer";case $:var b=s.render;return s=s.displayName,s||(s=b.displayName||b.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case H:return b=s.displayName||null,b!==null?b:e(s.type)||"Memo";case M:b=s._payload,s=s._init;try{return e(s(b))}catch{}}return null}function n(s){return""+s}function r(s){try{n(s);var b=!1}catch{b=!0}if(b){b=console;var j=b.error,F=typeof Symbol=="function"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||"Object";return j.call(b,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F),n(s)}}function t(s){if(s===v)return"<>";if(typeof s=="object"&&s!==null&&s.$$typeof===M)return"<...>";try{var b=e(s);return b?"<"+b+">":"<...>"}catch{return"<...>"}}function i(){var s=L.A;return s===null?null:s.getOwner()}function l(){return Error("react-stack-top-frame")}function o(s){if(D.call(s,"key")){var b=Object.getOwnPropertyDescriptor(s,"key").get;if(b&&b.isReactWarning)return!1}return s.key!==void 0}function a(s,b){function j(){W||(W=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",b))}j.isReactWarning=!0,Object.defineProperty(s,"key",{get:j,configurable:!0})}function c(){var s=e(this.type);return T[s]||(T[s]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),s=this.props.ref,s!==void 0?s:null}function f(s,b,j,F,fe,he){var P=j.ref;return s={$$typeof:m,type:s,key:b,props:j,_owner:F},(P!==void 0?P:null)!==null?Object.defineProperty(s,"ref",{enumerable:!1,get:c}):Object.defineProperty(s,"ref",{enumerable:!1,value:null}),s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(s,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(s,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:fe}),Object.defineProperty(s,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:he}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}function u(s,b,j,F,fe,he){var P=b.children;if(P!==void 0)if(F)if(te(P)){for(F=0;F<P.length;F++)h(P[F]);Object.freeze&&Object.freeze(P)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(P);if(D.call(b,"key")){P=e(s);var oe=Object.keys(b).filter(function(we){return we!=="key"});F=0<oe.length?"{key: someKey, "+oe.join(": ..., ")+": ...}":"{key: someKey}",N[P+F]||(oe=0<oe.length?"{"+oe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
5
  let props = %s;
6
- <%s key={someKey} {...props} />`,B,Y,le,Y),w[Y+B]=!0)}if(Y=null,L!==void 0&&(r(L),Y=""+L),o(A)&&(r(A.key),Y=""+A.key),"key"in A){L={};for(var fe in A)fe!=="key"&&(L[fe]=A[fe])}else L=A;return Y&&a(L,typeof x=="function"?x.displayName||x.name||"Unknown":x),s(x,Y,L,i(),he,xe)}function h(x){u(x)?x._store&&(x._store.validated=1):typeof x=="object"&&x!==null&&x.$$typeof===W&&(x._payload.status==="fulfilled"?u(x._payload.value)&&x._payload.value._store&&(x._payload.value._store.validated=1):x._store&&(x._store.validated=1))}function u(x){return typeof x=="object"&&x!==null&&x.$$typeof===m}var f=z,m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),O=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),F=Symbol.for("react.client.reference"),P=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=Object.prototype.hasOwnProperty,re=Array.isArray,Z=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(x){return x()}};var T,U={},ie=f.react_stack_bottom_frame.bind(f,l)(),M=Z(t(l)),w={};$e.Fragment=_,$e.jsx=function(x,A,L){var B=1e4>P.recentlyCreatedOwnerStacks++;return p(x,A,L,!1,B?Error("react-stack-top-frame"):ie,B?Z(t(x)):M)},$e.jsxs=function(x,A,L){var B=1e4>P.recentlyCreatedOwnerStacks++;return p(x,A,L,!0,B?Error("react-stack-top-frame"):ie,B?Z(t(x)):M)}})()),$e}var hn;function Hr(){return hn||(hn=1,process.env.NODE_ENV==="production"?Fe.exports=Yr():Fe.exports=Br()),Fe.exports}var d=Hr();const Wr=["solid","blueprint","cyanotype"],Ge='"JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace',Ur=.78,y=e=>Math.round(e*Ur*10)/10,xn={id:"solid",name:"Solid",description:"Shaded isometric boxes",technical:!1,paper:{from:"transparent",to:"transparent",edge:"transparent",grid:"transparent",grain:0},ink:{line:"rgba(0,0,0,0.3)",hidden:"rgba(0,0,0,0.2)",hatch:"transparent",text:"#ffffff",muted:"rgba(255,255,255,0.6)",accent:"#3b82f6"},face:{top:"transparent",right:"transparent",left:"transparent"},hatchOpacity:{top:0,right:0,left:0},font:Ge,strokeWidth:.5},mn={solid:xn,blueprint:{id:"blueprint",name:"Blueprint",description:"Sepia engineering plate on parchment",technical:!0,paper:{from:"#f0e6d0",to:"#ddceac",edge:"#b09a74",grid:"#c6b48f",grain:.055},ink:{line:"#4a3826",hidden:"#96805f",hatch:"#6d563c",text:"#3b2c1d",muted:"#8a7455",accent:"#a8412a"},face:{top:"#f4ebd7",right:"#e6dabb",left:"#d6c6a2"},hatchOpacity:{top:.48,right:.68,left:.92},font:Ge,strokeWidth:1},cyanotype:{id:"cyanotype",name:"Cyanotype",description:"White linework on classic blueprint blue",technical:!0,paper:{from:"#123256",to:"#0b1f3a",edge:"#3f6d9f",grid:"#27507f",grain:.07},ink:{line:"#e6f0fb",hidden:"#78a2cc",hatch:"#a6c6e5",text:"#f2f8ff",muted:"#8fb2d6",accent:"#ffc857"},face:{top:"#1b4675",right:"#153a61",left:"#0f2b49"},hatchOpacity:{top:.46,right:.64,left:.88},font:Ge,strokeWidth:1}};function zr(e){return mn[e]||xn}Wr.filter(e=>mn[e].technical)[0];const Xr={violet:"cross",blue:"lines",sky:"dashes",cyan:"dashes",emerald:"dots",amber:"dense",orange:"dense",rose:"cross",zinc:"plain",slate:"plain"};function yn(e){return Xr[e||"zinc"]||"lines"}const Gr={plain:"PLAIN",lines:"HATCH-A",cross:"HATCH-X",dense:"HATCH-D",dots:"STIPPLE",dashes:"BROKEN"};function gn(e,n,r,t=0,i=0){const l=(k,v,R)=>{const O=C(k,v,R);return{x:O.screenX+t,y:O.screenY+i}},o=l(0,0,0),a=l(e,0,0),c=l(e,n,0),s=l(0,n,0),p=l(0,0,r),h=l(e,0,r),u=l(e,n,r),f=l(0,n,r),m=k=>`M ${k.map(v=>`${v.x},${v.y}`).join(" L ")} Z`,g=(k,v)=>`M ${k.x},${k.y} L ${v.x},${v.y}`,_=[o,a,c,s,p,h,u,f];return{top:m([p,h,u,f]),right:m([o,a,h,p]),left:m([o,s,f,p]),visible:[m([o,a,h,u,f,s]),g(p,h),g(p,f),g(p,o)].join(" "),hidden:[g(c,a),g(c,s),g(c,u)].join(" "),topCenter:{x:(p.x+u.x)/2,y:(p.y+u.y)/2},topApex:{x:u.x,y:u.y},minX:Math.min(..._.map(k=>k.x)),minY:Math.min(..._.map(k=>k.y)),maxX:Math.max(..._.map(k=>k.x)),maxY:Math.max(..._.map(k=>k.y))}}function Ie(e){return String(e).padStart(2,"0")}const qr={top:["n30","p30"],right:["n30","v"],left:["p30","v"]},Kr={n30:-30,p30:30,v:90},Vr=[{key:"line",spacing:6.2,strokeWidth:.55},{key:"dense",spacing:3.1,strokeWidth:.45},{key:"dash",spacing:6.2,strokeWidth:.55,dash:"2.6 2.6"}],Se=22;function kn(e,n,r){const[t,i]=qr[r];switch(n){case"plain":return[];case"lines":return[`${e}-line-${t}`];case"cross":return[`${e}-line-${t}`,`${e}-line-${i}`];case"dense":return[`${e}-dense-${t}`];case"dashes":return[`${e}-dash-${t}`];case"dots":return[`${e}-dot`];default:return[`${e}-line-${t}`]}}const vn=e=>`${e}-paper`,_n=e=>`${e}-grain`,Zr=(e,n="line")=>`${e}-arrow-${n}`,Jr=e=>[`${e}-grid-n30`,`${e}-grid-p30`];function qe({uid:e,style:n,gridTransform:r=""}){return d.jsxs("defs",{children:[Vr.flatMap(t=>Object.entries(Kr).map(([i,l])=>d.jsx("pattern",{id:`${e}-${t.key}-${i}`,width:t.spacing,height:t.spacing,patternUnits:"userSpaceOnUse",patternTransform:`rotate(${l})`,children:d.jsx("line",{x1:-1,y1:t.spacing/2,x2:t.spacing+1,y2:t.spacing/2,stroke:n.ink.hatch,strokeWidth:t.strokeWidth,strokeDasharray:t.dash})},`${t.key}-${i}`))),d.jsx("pattern",{id:`${e}-dot`,width:4.5,height:4.5,patternUnits:"userSpaceOnUse",children:d.jsx("circle",{cx:2.25,cy:2.25,r:.55,fill:n.ink.hatch})}),[{id:`${e}-grid-n30`,angle:-30},{id:`${e}-grid-p30`,angle:30}].map(({id:t,angle:i})=>d.jsx("pattern",{id:t,width:Se,height:Se,patternUnits:"userSpaceOnUse",patternTransform:`${r} rotate(${i})`.trim(),children:d.jsx("line",{x1:-1,y1:Se/2,x2:Se+1,y2:Se/2,stroke:n.paper.grid,strokeWidth:.5})},t)),d.jsxs("linearGradient",{id:vn(e),x1:"0",y1:"0",x2:"0.35",y2:"1",children:[d.jsx("stop",{offset:"0%",stopColor:n.paper.from}),d.jsx("stop",{offset:"100%",stopColor:n.paper.to})]}),d.jsxs("filter",{id:_n(e),x:"0%",y:"0%",width:"100%",height:"100%",children:[d.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.85",numOctaves:3,stitchTiles:"stitch"}),d.jsx("feColorMatrix",{type:"saturate",values:"0"})]}),["line","accent"].map(t=>d.jsx("marker",{id:Zr(e,t),markerWidth:"10",markerHeight:"10",refX:"8",refY:"4",orient:"auto",markerUnits:"userSpaceOnUse",children:d.jsx("path",{d:"M 1 1 L 8 4 L 1 7",fill:"none",stroke:t==="accent"?n.ink.accent:n.ink.line,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"})},t))]})}function Qr({style:e,rect:n,pan:r,zoom:t=1,className:i="absolute inset-0 w-full h-full pointer-events-none"}){const l=z.useId().replace(/:/g,""),o=r?`translate(${r.x} ${r.y}) scale(${t})`:t!==1?`scale(${t})`:"",a=n?{x:n.x,y:n.y,width:n.width,height:n.height}:{x:0,y:0,width:"100%",height:"100%"};return d.jsxs("svg",{className:i,"aria-hidden":"true",children:[d.jsx(qe,{uid:l,style:e,gridTransform:o}),d.jsx("rect",{...a,fill:`url(#${vn(l)})`}),Jr(l).map(c=>d.jsx("rect",{...a,fill:`url(#${c})`,opacity:.6},c)),e.paper.grain>0&&d.jsx("rect",{...a,filter:`url(#${_n(l)})`,opacity:e.paper.grain})]})}const Re=y(10),ei=9,bn=(e,n)=>e.length>n?`${e.slice(0,n-1)}…`:e;function ni({style:e,plate:n,rows:r,title:t,tally:i,className:l="absolute inset-0 w-full h-full pointer-events-none"}){const o=z.useId().replace(/:/g,""),a=r.slice(0,ei),c=r.length-a.length,s={x:n.minX+Re,y:n.minY+Re,width:n.maxX-n.minX-Re*2,height:n.maxY-n.minY-Re*2},p={fontFamily:e.font,letterSpacing:"0.08em"},h=y(236),u=y(13),f=y(16),m=f+Math.max(a.length,1)*u+(c>0?u:0),g=s.x+y(14),_=s.y+y(14),k=y(264),v=y(74),R=y(126),O=s.x+s.width-k-y(14),S=s.y+s.height-v-y(14);return d.jsxs("svg",{className:l,style:{overflow:"visible"},"aria-hidden":"true",children:[d.jsx(qe,{uid:o,style:e}),d.jsx("rect",{x:n.minX,y:n.minY,width:n.maxX-n.minX,height:n.maxY-n.minY,fill:"none",stroke:e.paper.edge,strokeWidth:1.4}),d.jsx("rect",{x:s.x,y:s.y,width:s.width,height:s.height,fill:"none",stroke:e.paper.edge,strokeWidth:.6,opacity:.75}),[[s.x,s.y,1,1],[s.x+s.width,s.y,-1,1],[s.x,s.y+s.height,1,-1],[s.x+s.width,s.y+s.height,-1,-1]].map(([j,I,N,W],D)=>d.jsx("path",{d:`M ${j+N*y(16)} ${I} L ${j} ${I} L ${j} ${I+W*y(16)}`,fill:"none",stroke:e.ink.line,strokeWidth:1.2},D)),a.length>0&&d.jsxs("g",{children:[d.jsx("rect",{x:g,y:_,width:h,height:m,fill:e.paper.from,fillOpacity:.55,stroke:e.ink.line,strokeWidth:.8}),d.jsx("line",{x1:g,y1:_+f,x2:g+h,y2:_+f,stroke:e.ink.line,strokeWidth:.8}),d.jsx("text",{x:g+y(8),y:_+y(11),fill:e.ink.text,fontSize:y(8),fontWeight:600,style:p,children:"COMPONENT INDEX"}),d.jsxs("text",{x:g+h-y(8),y:_+y(11),textAnchor:"end",fill:e.ink.muted,fontSize:y(8),style:p,children:[Ie(r.length)," ITEMS"]}),a.map((j,I)=>{const N=_+f+I*u,W=yn(j.color),D=kn(o,W,"top");return d.jsxs("g",{children:[d.jsx("text",{x:g+y(8),y:N+y(9.5),fill:e.ink.muted,fontSize:y(7.5),style:p,children:Ie(j.n)}),d.jsx("rect",{x:g+y(28),y:N+y(3),width:y(14),height:y(7),fill:e.face.right,stroke:e.ink.line,strokeWidth:.4}),D.map(F=>d.jsx("rect",{x:g+y(28),y:N+y(3),width:y(14),height:y(7),fill:`url(#${F})`,opacity:.85},F)),d.jsx("text",{x:g+y(50),y:N+y(9.5),fill:e.ink.text,fontSize:y(7.5),style:p,children:bn((j.name||"").toUpperCase(),18)}),d.jsx("text",{x:g+h-y(8),y:N+y(9.5),textAnchor:"end",fill:e.ink.muted,fontSize:y(7),style:p,children:Gr[W]})]},j.n)}),c>0&&d.jsx("text",{x:g+y(8),y:_+f+a.length*u+y(9.5),fill:e.ink.muted,fontSize:y(7.5),style:p,children:`+ ${c} NOT LISTED`})]}),d.jsxs("g",{children:[d.jsx("rect",{x:O,y:S,width:k,height:v,fill:e.paper.from,fillOpacity:.55,stroke:e.ink.line,strokeWidth:.8}),d.jsx("line",{x1:O,y1:S+y(30),x2:O+k,y2:S+y(30),stroke:e.ink.line,strokeWidth:.8}),d.jsx("line",{x1:O,y1:S+y(52),x2:O+k,y2:S+y(52),stroke:e.ink.line,strokeWidth:.5}),d.jsx("line",{x1:O+R,y1:S+y(30),x2:O+R,y2:S+v,stroke:e.ink.line,strokeWidth:.5}),d.jsx("text",{x:O+y(9),y:S+y(12),fill:e.ink.muted,fontSize:y(6.5),style:p,children:"DRAWING TITLE"}),d.jsx("text",{x:O+y(9),y:S+y(24),fill:e.ink.text,fontSize:y(10),fontWeight:600,style:p,children:bn((t||"UNTITLED ASSEMBLY").toUpperCase(),26)}),d.jsx("text",{x:O+y(9),y:S+y(43),fill:e.ink.muted,fontSize:y(6.5),style:p,children:"PROJECTION"}),d.jsx("text",{x:O+R-y(9),y:S+y(43),textAnchor:"end",fill:e.ink.text,fontSize:y(7),style:p,children:"ISOMETRIC 30°"}),d.jsx("text",{x:O+y(9),y:S+y(65),fill:e.ink.muted,fontSize:y(6.5),style:p,children:"SCALE"}),d.jsx("text",{x:O+R-y(9),y:S+y(65),textAnchor:"end",fill:e.ink.text,fontSize:y(7),style:p,children:"1:1"}),d.jsx("text",{x:O+R+y(9),y:S+y(43),fill:e.ink.muted,fontSize:y(6.5),style:p,children:"QTY"}),d.jsx("text",{x:O+k-y(9),y:S+y(43),textAnchor:"end",fill:e.ink.text,fontSize:y(7),style:p,children:i||`${Ie(r.length)} CMP`}),d.jsx("text",{x:O+R+y(9),y:S+y(65),fill:e.ink.muted,fontSize:y(6.5),style:p,children:"SHEET"}),d.jsx("text",{x:O+k-y(9),y:S+y(65),textAnchor:"end",fill:e.ink.text,fontSize:y(7),style:p,children:"1 OF 1"})]})]})}const ri=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ii=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,t)=>t?t.toUpperCase():r.toLowerCase()),An=e=>{const n=ii(e);return n.charAt(0).toUpperCase()+n.slice(1)},wn=(...e)=>e.filter((n,r,t)=>!!n&&n.trim()!==""&&t.indexOf(n)===r).join(" ").trim(),ti=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var oi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const li=z.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:t,className:i="",children:l,iconNode:o,...a},c)=>z.createElement("svg",{ref:c,...oi,width:n,height:n,stroke:e,strokeWidth:t?Number(r)*24/Number(n):r,className:wn("lucide",i),...!l&&!ti(a)&&{"aria-hidden":"true"},...a},[...o.map(([s,p])=>z.createElement(s,p)),...Array.isArray(l)?l:[l]]));const $=(e,n)=>{const r=z.forwardRef(({className:t,...i},l)=>z.createElement(li,{ref:l,iconNode:n,className:wn(`lucide-${ri(An(e))}`,`lucide-${e}`,t),...i}));return r.displayName=An(e),r};const ai=$("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);const ci=$("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);const si=$("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const fi=$("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);const Cn=$("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const ui=$("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);const pi=$("chart-no-axes-column-increasing",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V9",key:"uvy0l4"}],["path",{d:"M19 21V3",key:"11j9sm"}]]);const di=$("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);const hi=$("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const xi=$("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);const mi=$("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);const yi=$("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);const gi=$("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);const ki=$("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);const vi=$("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]);const _i=$("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const bi=$("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);const Ai=$("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const wi=$("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);const Ci=$("hard-drive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);const $i=$("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);const Si=$("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);const Ei=$("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);const Ti=$("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);const Ni=$("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);const Mi=$("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);const ji=$("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);const Oi=$("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);const Li=$("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);const Fi=$("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);const Ii=$("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);const Ri=$("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const Pi=$("repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);const Di=$("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const Yi=$("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);const Bi=$("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const Hi=$("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);const Wi=$("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);const Ui=$("speaker",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["circle",{cx:"12",cy:"14",r:"4",key:"1jruaj"}],["path",{d:"M12 14h.01",key:"1etili"}]]);const zi=$("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);const Xi=$("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);const Gi=$("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);const qi=$("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const Ki=$("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);const Vi=$("watch",[["path",{d:"M12 10v2.2l1.6 1",key:"n3r21l"}],["path",{d:"m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05",key:"18k57s"}],["path",{d:"m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05",key:"16ny36"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}]]);const Zi=$("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);const Ji=$("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Qi={Monitor:Oi,Server:Yi,Smartphone:Wi,Watch:Vi,Cloud:xi,Cpu:yi,Database:gi,HardDrive:Ci,Wifi:Zi,Globe:Ai,User:qi,Users:Ki,Lock:Ti,Key:Si,Shield:Hi,Mic:ji,Camera:ui,Speaker:Ui,Headphones:$i,Code:mi,Terminal:Xi,FileCode:vi,Folder:_i,Zap:Ji,Activity:ai,BarChart:pi,PieChart:di,ArrowRight:si,ArrowDown:ci,RefreshCw:Ri,Repeat:Pi,Box:Cn,Package:Li,Layers:Ei,Grid:wi,Settings:Bi,Bell:fi,Mail:Ni,MessageSquare:Mi,Search:Di,Filter:bi,Download:ki,Upload:Gi,Play:Ii,Pause:Fi,Square:zi,Circle:hi};function et(e){return Qi[e]||Cn}function nt({uid:e,style:n,box:r,color:t,tag:i,selected:l=!1,opacity:o,onClick:a,onPointerDown:c}){const s=yn(t),p=l?n.ink.accent:n.ink.line,h=l?n.ink.accent:n.ink.text,u=[{face:"left",path:r.left},{face:"right",path:r.right},{face:"top",path:r.top}];return d.jsxs("g",{className:a||c?"cursor-pointer":void 0,opacity:o,onClick:a,onPointerDown:c,children:[u.map(({face:f,path:m})=>d.jsxs("g",{children:[d.jsx("path",{d:m,fill:n.face[f]}),kn(e,s,f).map(g=>d.jsx("path",{d:m,fill:`url(#${g})`,opacity:n.hatchOpacity[f]},g))]},f)),d.jsx("path",{d:r.hidden,fill:"none",stroke:n.ink.hidden,strokeWidth:n.strokeWidth*.55,strokeDasharray:"3.5 3",opacity:.85}),d.jsx("path",{d:r.visible,fill:"none",stroke:p,strokeWidth:l?n.strokeWidth*1.7:n.strokeWidth,strokeLinejoin:"round",strokeLinecap:"round"}),i!=null&&d.jsx("text",{x:r.topCenter.x,y:r.topCenter.y+y(3),textAnchor:"middle",fill:h,fontSize:y(8),fontWeight:600,fontFamily:n.font,style:{letterSpacing:"0.1em"},pointerEvents:"none",children:Ie(i)})]})}function rt({style:e,box:n,name:r,subtitle:t,icon:i,selected:l=!1,opacity:o}){const a=l?e.ink.accent:e.ink.line,c=l?e.ink.accent:e.ink.text,s=i?et(i):null,p=(r||"").toUpperCase(),h=(t||"").toUpperCase(),u=n.minY-y(11),f=u-y(4),m=h?u-y(15):u-y(4),g=y(9),_=y(3),k=s?g+_:0,v=Math.max(p.length*y(5.6)+k,h.length*y(4.4),y(24)),R=n.topCenter.x+k/2,O=R-p.length*y(5.6)/2-_-g,S=m-g+y(1);return d.jsxs("g",{pointerEvents:"none",opacity:o,children:[d.jsx("line",{x1:n.topCenter.x,y1:n.topCenter.y-y(6),x2:n.topCenter.x,y2:u,stroke:a,strokeWidth:e.strokeWidth*.6}),d.jsx("line",{x1:n.topCenter.x-v/2,y1:u,x2:n.topCenter.x+v/2,y2:u,stroke:a,strokeWidth:e.strokeWidth*.6}),s&&d.jsx("g",{transform:`translate(${O}, ${S})`,color:c,children:d.jsx(s,{width:g,height:g,strokeWidth:1.75})}),d.jsx("text",{x:R,y:m,textAnchor:"middle",fill:c,fontSize:y(9.5),fontWeight:600,fontFamily:e.font,stroke:e.paper.from,strokeWidth:y(3),paintOrder:"stroke",strokeLinejoin:"round",style:{letterSpacing:"0.12em"},children:p}),h&&d.jsx("text",{x:n.topCenter.x,y:f,textAnchor:"middle",fill:e.ink.muted,fontSize:y(7.5),fontFamily:e.font,stroke:e.paper.from,strokeWidth:y(2.5),paintOrder:"stroke",strokeLinejoin:"round",style:{letterSpacing:"0.1em"},children:h})]})}const $n='"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace',it={blue:{top:"#3b82f6",side:"#2563eb",front:"#1d4ed8"},violet:{top:"#8b5cf6",side:"#7c3aed",front:"#6d28d9"},cyan:{top:"#06b6d4",side:"#0891b2",front:"#0e7490"},emerald:{top:"#10b981",side:"#059669",front:"#047857"},amber:{top:"#f59e0b",side:"#d97706",front:"#b45309"},rose:{top:"#f43f5e",side:"#e11d48",front:"#be123c"},slate:{top:"#475569",side:"#334155",front:"#1e293b"}},tt={blue:{top:"#93c5fd",side:"#60a5fa",front:"#3b82f6"},violet:{top:"#c4b5fd",side:"#a78bfa",front:"#8b5cf6"},cyan:{top:"#67e8f9",side:"#22d3ee",front:"#06b6d4"},emerald:{top:"#6ee7b7",side:"#34d399",front:"#10b981"},amber:{top:"#fcd34d",side:"#fbbf24",front:"#f59e0b"},rose:{top:"#fda4af",side:"#fb7185",front:"#f43f5e"},slate:{top:"#e2e8f0",side:"#cbd5e1",front:"#94a3b8"}};function Pe(e,n,r){const t=s=>{const p=s.replace("#","");return{r:parseInt(p.substring(0,2),16),g:parseInt(p.substring(2,4),16),b:parseInt(p.substring(4,6),16)}},i=t(e),l=t(n),o=Math.round(i.r+(l.r-i.r)*r),a=Math.round(i.g+(l.g-i.g)*r),c=Math.round(i.b+(l.b-i.b)*r);return`rgb(${o},${a},${c})`}function ot({x:e,y:n,z:r,children:t,fontSize:i=8,color:l="#1e293b",shadow:o}){const a=C(e,n,r);return d.jsx("g",{transform:`translate(${a.screenX}, ${a.screenY})`,filter:o,children:d.jsx("g",{transform:`matrix(${Rr()})`,children:d.jsx("text",{x:0,y:0,textAnchor:"middle",fill:l,fontSize:i,fontWeight:600,fontFamily:$n,style:{textTransform:"uppercase",letterSpacing:"0.06em"},children:t})})})}function lt({width:e,depth:n,elevation:r,color:t,opacity:i,borderColor:l,theme:o,isGround:a}){const s=ue(e,n,a?8:2,0,0),p=C(0,0,r);return d.jsxs("g",{transform:`translate(${p.screenX}, ${p.screenY})`,children:[a&&d.jsx("g",{transform:"translate(4, 4)",opacity:.2,children:d.jsx("path",{d:s.top,fill:"#000"})}),d.jsx("path",{d:s.top,fill:t,opacity:i}),a&&d.jsxs(d.Fragment,{children:[d.jsx("path",{d:s.left,fill:o==="dark"?"#0f172a":"#cbd5e1",opacity:.8}),d.jsx("path",{d:s.right,fill:o==="dark"?"#1e293b":"#94a3b8",opacity:.8})]}),d.jsx("path",{d:s.top,fill:"none",stroke:l||(o==="dark"?"#475569":"#94a3b8"),strokeWidth:a?1.5:.75,opacity:a?1:.6})]})}function at({config:e,options:n={},className:r,style:t,onNodeClick:i,onLayerClick:l}){const{interactive:o=!0,animate:a=!0,showLabels:c=!0,expandOnHover:s=!0}=n,{theme:p,canvas:h,origin:u,tiers:f,floorSize:m,nodes:g,cornerRadius:_=0}=e,k=zr(e.style),v=k.technical,R=z.useId().replace(/:/g,""),O=p==="dark"?it:tt,S=v?k.paper.to:p==="dark"?"#0f172a":"#fafafa",j=v?k.ink.text:p==="dark"?"#e2e8f0":"#1e293b",I=v?k.ink.muted:p==="dark"?"#64748b":"#94a3b8",N=z.useMemo(()=>{const M=g.map((x,A)=>({node:x,i:A})).sort((x,A)=>x.node.tier-A.node.tier||x.node.y-A.node.y||x.node.x-A.node.x),w=new Map;return M.forEach(({i:x},A)=>w.set(x,A+1)),w},[g]),W={minX:16,minY:16,maxX:h.width-16,maxY:h.height-16},[D,F]=z.useState(new Set);z.useEffect(()=>{a?(F(new Set),f.forEach((M,w)=>{setTimeout(()=>{F(x=>new Set([...x,w]))},w*150+100)})):F(new Set(f.map((M,w)=>w)))},[e.id,a,f.length]);const[P,te]=z.useState(null),[re,Z]=z.useState(null),[T,U]=z.useState(null),ie=[...g].sort((M,w)=>{const x=f[M.tier]?.elevation||0,A=f[w.tier]?.elevation||0;if(x!==A)return x-A;const L=M.x+M.width+(M.y+M.depth);return w.x+w.width+(w.y+w.depth)-L});return d.jsx("div",{className:r,style:{display:"inline-block",...t},children:d.jsxs("svg",{width:h.width,height:h.height,style:{backgroundColor:S},onClick:()=>{o&&(U(null),Z(null))},children:[d.jsxs("defs",{children:[d.jsx("pattern",{id:`grid-${e.id}`,width:"24",height:"24",patternUnits:"userSpaceOnUse",children:d.jsx("circle",{cx:"12",cy:"12",r:"0.5",fill:p==="dark"?"#1e293b":"#e2e8f0"})}),d.jsx("filter",{id:`glow-${e.id}`,x:"-20%",y:"-20%",width:"140%",height:"140%",children:d.jsx("feDropShadow",{dx:"0",dy:"4",stdDeviation:"8",floodColor:p==="dark"?"#60a5fa":"#3b82f6",floodOpacity:"0.3"})}),d.jsxs("radialGradient",{id:`bg-${e.id}`,cx:"48%",cy:"34%",r:"82%",children:[d.jsx("stop",{offset:"0%",stopColor:p==="dark"?"#16203a":"#ffffff"}),d.jsx("stop",{offset:"55%",stopColor:p==="dark"?"#0e1526":"#f2f5f9"}),d.jsx("stop",{offset:"100%",stopColor:p==="dark"?"#080d18":"#e7ecf2"})]}),d.jsx("filter",{id:`contact-${e.id}`,x:"-60%",y:"-60%",width:"220%",height:"220%",children:d.jsx("feGaussianBlur",{stdDeviation:"5"})}),d.jsxs("linearGradient",{id:`sheen-${e.id}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"0%",stopColor:"#ffffff",stopOpacity:"0.18"}),d.jsx("stop",{offset:"55%",stopColor:"#ffffff",stopOpacity:"0.04"}),d.jsx("stop",{offset:"100%",stopColor:"#ffffff",stopOpacity:"0"})]}),d.jsxs("linearGradient",{id:`shade-${e.id}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"0%",stopColor:"#000000",stopOpacity:"0"}),d.jsx("stop",{offset:"100%",stopColor:"#000000",stopOpacity:"0.24"})]}),d.jsx("filter",{id:`label-${e.id}`,x:"-40%",y:"-40%",width:"180%",height:"180%",children:d.jsx("feDropShadow",{dx:"0",dy:"0.5",stdDeviation:"0.7",floodColor:"#000000",floodOpacity:"0.7"})})]}),v?d.jsxs(d.Fragment,{children:[d.jsx(qe,{uid:R,style:k}),d.jsx(Qr,{style:k,rect:{x:0,y:0,width:h.width,height:h.height},className:""})]}):d.jsxs(d.Fragment,{children:[d.jsx("rect",{width:"100%",height:"100%",fill:`url(#bg-${e.id})`}),d.jsx("rect",{width:"100%",height:"100%",fill:`url(#grid-${e.id})`,opacity:"0.5"})]}),d.jsx("g",{transform:`translate(${u.x}, ${u.y})`,children:f.map((M,w)=>{const x=ie.filter(E=>E.tier===w),A=D.has(w),L=o&&(re===w||re===null&&T===null&&P===w),B=o&&(re!==null||P!==null||T!==null),he=T?.tier===w,xe=B&&!L&&!he,Y=A?0:60,le=A?1:0,fe=L&&s?{x:10,y:-34}:{x:0,y:0},Oe=L?1.03:1,Xe=C(m.width/2,m.depth/2,M.elevation),Or=M.offset||{x:0,y:0};return d.jsxs("g",{"data-tier":w,onMouseEnter:()=>o&&te(w),onMouseLeave:()=>o&&te(null),onClick:E=>{o&&(E.stopPropagation(),U(null),Z(q=>q===w?null:w),l?.(w))},style:{transform:`translate(${Or.x+fe.x}px, ${Or.y+fe.y}px) translate(${Xe.screenX}px, ${Xe.screenY+Y}px) scale(${Oe}) translate(${-Xe.screenX}px, ${-Xe.screenY}px)`,transition:"transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out",opacity:le*(xe?.35:1),filter:L?`url(#glow-${e.id})`:"none",cursor:o?"pointer":"default"},children:[v?d.jsx(ct,{width:m.width,depth:m.depth,elevation:w===0?-2:M.elevation,ink:w===0?k.ink.line:k.ink.hidden,isGround:w===0}):d.jsx(lt,{width:m.width,depth:m.depth,elevation:w===0?-2:M.elevation,color:M.floorColor||(p==="dark"?"#0f172a":"#f8fafc"),opacity:M.floorOpacity||(w===0?.95:.5),borderColor:M.borderColor,theme:p,isGround:w===0}),v&&x.map((E,q)=>{const we=M.elevation+5,me=C(E.x,E.y,we),Q=gn(E.width,E.depth,E.height,me.screenX,me.screenY),K=T?.tier===w&&T?.index===q,ge=o&&T!==null&&!K;return d.jsx(nt,{uid:R,style:k,box:Q,color:E.color,tag:N.get(g.indexOf(E)),selected:K,opacity:(E.opacity??1)*(ge?.3:1),onClick:o?()=>{if(Z(null),U(Le=>Le&&Le.tier===w&&Le.index===q?null:{tier:w,index:q}),i?.(E,{tier:w,index:q}),E.link)try{window.open(E.link,"_blank")}catch{}}:void 0},`tech-${q}`)}),v&&c&&x.map((E,q)=>{const we=M.elevation+5,me=C(E.x,E.y,we),Q=gn(E.width,E.depth,E.height,me.screenX,me.screenY),K=T?.tier===w&&T?.index===q,ge=o&&T!==null&&!K;return d.jsx(rt,{style:k,box:Q,name:E.label,selected:K,opacity:ge?.3:1},`tech-label-${q}`)}),!v&&x.map((E,q)=>{const we=M.elevation+5,me=C(E.x,E.y,we),Q=ue(E.width,E.depth,E.height,me.screenX,me.screenY,_),K=O[E.color]||O.slate,ge=T?.tier===w&&T?.index===q,Le=o&&T!==null&&!ge,Lr=C(E.x-3,E.y-3,M.elevation),Dl=ue(E.width+6,E.depth+6,0,Lr.screenX,Lr.screenY,_).top;return d.jsxs("g",{"data-node":`${w}-${q}`,opacity:(E.opacity??1)*(Le?.3:1),onClick:o?oe=>{if(oe.stopPropagation(),Z(null),U(ae=>ae&&ae.tier===w&&ae.index===q?null:{tier:w,index:q}),i?.(E,{tier:w,index:q}),E.link)try{window.open(E.link,"_blank")}catch{}}:void 0,style:{cursor:o?"pointer":"default",transition:"opacity 0.3s ease-out"},children:[d.jsx("path",{d:Dl,fill:"#000000",opacity:.3,filter:`url(#contact-${e.id})`}),Q.cornerBackRight?.map((oe,ae)=>d.jsx("path",{d:oe.path,fill:Pe(K.front,K.side,oe.intensity)},`cbr-${ae}`)),Q.cornerBackLeft?.map((oe,ae)=>d.jsx("path",{d:oe.path,fill:Pe(K.side,K.front,oe.intensity)},`cbl-${ae}`)),d.jsx("path",{d:Q.left,fill:K.side}),d.jsx("path",{d:Q.left,fill:`url(#shade-${e.id})`}),d.jsx("path",{d:Q.right,fill:K.front}),d.jsx("path",{d:Q.right,fill:`url(#shade-${e.id})`}),Q.cornerFrontRight?.map((oe,ae)=>d.jsx("path",{d:oe.path,fill:Pe(K.front,K.side,oe.intensity)},`cfr-${ae}`)),Q.cornerFrontLeft?.map((oe,ae)=>d.jsx("path",{d:oe.path,fill:Pe(K.front,K.side,oe.intensity)},`cfl-${ae}`)),d.jsx("path",{d:Q.top,fill:K.top}),d.jsx("path",{d:Q.top,fill:`url(#sheen-${e.id})`}),d.jsx("path",{d:Q.top,fill:"none",stroke:ge?"#ffffff":"rgba(255,255,255,0.28)",strokeWidth:ge?1.4:.75,strokeLinejoin:"round"}),c&&E.label&&d.jsx(ot,{x:E.x+E.width/2,y:E.y+E.depth/2,z:we+E.height+2,fontSize:E.width>70?9:8,color:j,shadow:`url(#label-${e.id})`,children:E.label})]},q)}),c&&d.jsx("text",{x:C(-25,m.depth/2,M.elevation+15).screenX-35,y:C(-25,m.depth/2,M.elevation+15).screenY,fill:I,fontSize:9,fontWeight:500,fontFamily:$n,opacity:v?.9:.6,style:{letterSpacing:"0.05em",textTransform:v?"uppercase":"none"},children:M.name})]},w)})}),v&&d.jsx(ni,{style:k,plate:W,rows:g.map((M,w)=>({n:N.get(w)||w+1,name:M.label,subtitle:f[M.tier]?.name,color:M.color})).sort((M,w)=>M.n-w.n),title:e.title,tally:`${String(g.length).padStart(2,"0")} CMP / ${String(f.length).padStart(2,"0")} TIER`,className:""})]})})}function ct({width:e,depth:n,elevation:r,ink:t,isGround:i}){const l=C(0,0,r),o=ue(e,n,0,l.screenX,l.screenY).top;return d.jsx("path",{d:o,fill:"none",stroke:t,strokeWidth:i?1:.7,strokeDasharray:i?void 0:"5 4",opacity:i?.9:.7})}const Sn='"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace',st={blue:{top:"#3b82f6",side:"#2563eb",front:"#1d4ed8"},violet:{top:"#8b5cf6",side:"#7c3aed",front:"#6d28d9"},cyan:{top:"#06b6d4",side:"#0891b2",front:"#0e7490"},emerald:{top:"#10b981",side:"#059669",front:"#047857"},amber:{top:"#f59e0b",side:"#d97706",front:"#b45309"},rose:{top:"#f43f5e",side:"#e11d48",front:"#be123c"},slate:{top:"#475569",side:"#334155",front:"#1e293b"}},ft={blue:{top:"#93c5fd",side:"#60a5fa",front:"#3b82f6"},violet:{top:"#c4b5fd",side:"#a78bfa",front:"#8b5cf6"},cyan:{top:"#67e8f9",side:"#22d3ee",front:"#06b6d4"},emerald:{top:"#6ee7b7",side:"#34d399",front:"#10b981"},amber:{top:"#fcd34d",side:"#fbbf24",front:"#f59e0b"},rose:{top:"#fda4af",side:"#fb7185",front:"#f43f5e"},slate:{top:"#e2e8f0",side:"#cbd5e1",front:"#94a3b8"}};function De(e,n,r){const t=s=>{const p=s.replace("#","");return{r:parseInt(p.substring(0,2),16),g:parseInt(p.substring(2,4),16),b:parseInt(p.substring(4,6),16)}},i=t(e),l=t(n),o=Math.round(i.r+(l.r-i.r)*r),a=Math.round(i.g+(l.g-i.g)*r),c=Math.round(i.b+(l.b-i.b)*r);return`rgb(${o},${a},${c})`}function En(e){const{theme:n,canvas:r,origin:t,tiers:i,floorSize:l,nodes:o,cornerRadius:a=0}=e,c=n==="dark"?st:ft,s=n==="dark"?"#0f172a":"#fafafa",p=n==="dark"?"#e2e8f0":"#1e293b",h=n==="dark"?"#64748b":"#94a3b8",u=[...o].sort((m,g)=>{const _=i[m.tier]?.elevation||0,k=i[g.tier]?.elevation||0;return _!==k?_-k:g.x+g.width+(g.y+g.depth)-(m.x+m.width+(m.y+m.depth))});let f=`<svg xmlns="http://www.w3.org/2000/svg" width="${r.width}" height="${r.height}" style="background:${s}">`;f+=`<defs>
6
+ <%s key={someKey} {...props} />`,F,P,oe,P),N[P+F]=!0)}if(P=null,j!==void 0&&(r(j),P=""+j),o(b)&&(r(b.key),P=""+b.key),"key"in b){j={};for(var xe in b)xe!=="key"&&(j[xe]=b[xe])}else j=b;return P&&a(j,typeof s=="function"?s.displayName||s.name||"Unknown":s),f(s,P,j,i(),fe,he)}function h(s){p(s)?s._store&&(s._store.validated=1):typeof s=="object"&&s!==null&&s.$$typeof===M&&(s._payload.status==="fulfilled"?p(s._payload.value)&&s._payload.value._store&&(s._payload.value._store.validated=1):s._store&&(s._store.validated=1))}function p(s){return typeof s=="object"&&s!==null&&s.$$typeof===m}var x=U,m=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),E=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),re=Symbol.for("react.client.reference"),L=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=Object.prototype.hasOwnProperty,te=Array.isArray,Z=console.createTask?console.createTask:function(){return null};x={react_stack_bottom_frame:function(s){return s()}};var W,T={},X=x.react_stack_bottom_frame.bind(x,l)(),ce=Z(t(l)),N={};Se.Fragment=v,Se.jsx=function(s,b,j){var F=1e4>L.recentlyCreatedOwnerStacks++;return u(s,b,j,!1,F?Error("react-stack-top-frame"):X,F?Z(t(s)):ce)},Se.jsxs=function(s,b,j){var F=1e4>L.recentlyCreatedOwnerStacks++;return u(s,b,j,!0,F?Error("react-stack-top-frame"):X,F?Z(t(s)):ce)}})()),Se}var hn;function Ur(){return hn||(hn=1,process.env.NODE_ENV==="production"?Fe.exports=Hr():Fe.exports=Wr()),Fe.exports}var d=Ur();const xn={rose:{top:"#c58a70",side:"#a86c55",front:"#b57860"},slate:{top:"#9aaab6",side:"#718693",front:"#8196a2"},cyan:{top:"#679c99",side:"#467f7d",front:"#568e8a"},emerald:{top:"#a2b08b",side:"#7d9168",front:"#8e9f78"},blue:{top:"#829eae",side:"#5b798b",front:"#6b8999"},violet:{top:"#a698ac",side:"#807187",front:"#918297"},amber:{top:"#c6ac71",side:"#a08950",front:"#b09a61"}},mn=Array.from({length:180},(e,n)=>({x:(n*73.37+11.7)%64,y:(n*n*13.19+5.3)%64,r:n%3===0?.48:.28})),zr=["solid","blueprint","cyanotype"],Ge='"JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace',Xr=.78,g=e=>Math.round(e*Xr*10)/10,yn={id:"solid",name:"Solid",description:"Shaded isometric boxes",technical:!1,paper:{from:"transparent",to:"transparent",edge:"transparent",grid:"transparent",grain:0},ink:{line:"rgba(0,0,0,0.3)",hidden:"rgba(0,0,0,0.2)",hatch:"transparent",text:"#ffffff",muted:"rgba(255,255,255,0.6)",accent:"#3b82f6"},face:{top:"transparent",right:"transparent",left:"transparent"},hatchOpacity:{top:0,right:0,left:0},font:Ge,strokeWidth:.5},gn={solid:yn,blueprint:{id:"blueprint",name:"Blueprint",description:"Sepia engineering plate on parchment",technical:!0,paper:{from:"#f0e6d0",to:"#ddceac",edge:"#b09a74",grid:"#c6b48f",grain:.055},ink:{line:"#4a3826",hidden:"#96805f",hatch:"#6d563c",text:"#3b2c1d",muted:"#8a7455",accent:"#a8412a"},face:{top:"#f4ebd7",right:"#e6dabb",left:"#d6c6a2"},hatchOpacity:{top:.48,right:.68,left:.92},font:Ge,strokeWidth:1},cyanotype:{id:"cyanotype",name:"Cyanotype",description:"White linework on classic blueprint blue",technical:!0,paper:{from:"#123256",to:"#0b1f3a",edge:"#3f6d9f",grid:"#27507f",grain:.07},ink:{line:"#e6f0fb",hidden:"#78a2cc",hatch:"#a6c6e5",text:"#f2f8ff",muted:"#8fb2d6",accent:"#ffc857"},face:{top:"#1b4675",right:"#153a61",left:"#0f2b49"},hatchOpacity:{top:.46,right:.64,left:.88},font:Ge,strokeWidth:1}};function Gr(e){return gn[e]||yn}zr.filter(e=>gn[e].technical)[0];const qr={violet:"cross",blue:"lines",sky:"dashes",cyan:"dashes",emerald:"dots",amber:"dense",orange:"dense",rose:"cross",zinc:"plain",slate:"plain"};function kn(e){return qr[e||"zinc"]||"lines"}const Kr={plain:"PLAIN",lines:"HATCH-A",cross:"HATCH-X",dense:"HATCH-D",dots:"STIPPLE",dashes:"BROKEN"};function vn(e,n,r,t=0,i=0){const l=(k,_,Y)=>{const E=w(k,_,Y);return{x:E.screenX+t,y:E.screenY+i}},o=l(0,0,0),a=l(e,0,0),c=l(e,n,0),f=l(0,n,0),u=l(0,0,r),h=l(e,0,r),p=l(e,n,r),x=l(0,n,r),m=k=>`M ${k.map(_=>`${_.x},${_.y}`).join(" L ")} Z`,y=(k,_)=>`M ${k.x},${k.y} L ${_.x},${_.y}`,v=[o,a,c,f,u,h,p,x];return{top:m([u,h,p,x]),right:m([o,a,h,u]),left:m([o,f,x,u]),visible:[m([o,a,h,p,x,f]),y(u,h),y(u,x),y(u,o)].join(" "),hidden:[y(c,a),y(c,f),y(c,p)].join(" "),topCenter:{x:(u.x+p.x)/2,y:(u.y+p.y)/2},topApex:{x:p.x,y:p.y},minX:Math.min(...v.map(k=>k.x)),minY:Math.min(...v.map(k=>k.y)),maxX:Math.max(...v.map(k=>k.x)),maxY:Math.max(...v.map(k=>k.y))}}function Ie(e){return String(e).padStart(2,"0")}const Vr={top:["n30","p30"],right:["n30","v"],left:["p30","v"]},Zr={n30:-30,p30:30,v:90},Jr=[{key:"line",spacing:6.2,strokeWidth:.55},{key:"dense",spacing:3.1,strokeWidth:.45},{key:"dash",spacing:6.2,strokeWidth:.55,dash:"2.6 2.6"}],Ee=22;function _n(e,n,r){const[t,i]=Vr[r];switch(n){case"plain":return[];case"lines":return[`${e}-line-${t}`];case"cross":return[`${e}-line-${t}`,`${e}-line-${i}`];case"dense":return[`${e}-dense-${t}`];case"dashes":return[`${e}-dash-${t}`];case"dots":return[`${e}-dot`];default:return[`${e}-line-${t}`]}}const bn=e=>`${e}-paper`,An=e=>`${e}-grain`,Qr=(e,n="line")=>`${e}-arrow-${n}`,ei=e=>[`${e}-grid-n30`,`${e}-grid-p30`];function qe({uid:e,style:n,gridTransform:r=""}){return d.jsxs("defs",{children:[Jr.flatMap(t=>Object.entries(Zr).map(([i,l])=>d.jsx("pattern",{id:`${e}-${t.key}-${i}`,width:t.spacing,height:t.spacing,patternUnits:"userSpaceOnUse",patternTransform:`rotate(${l})`,children:d.jsx("line",{x1:-1,y1:t.spacing/2,x2:t.spacing+1,y2:t.spacing/2,stroke:n.ink.hatch,strokeWidth:t.strokeWidth,strokeDasharray:t.dash})},`${t.key}-${i}`))),d.jsx("pattern",{id:`${e}-dot`,width:4.5,height:4.5,patternUnits:"userSpaceOnUse",children:d.jsx("circle",{cx:2.25,cy:2.25,r:.55,fill:n.ink.hatch})}),[{id:`${e}-grid-n30`,angle:-30},{id:`${e}-grid-p30`,angle:30}].map(({id:t,angle:i})=>d.jsx("pattern",{id:t,width:Ee,height:Ee,patternUnits:"userSpaceOnUse",patternTransform:`${r} rotate(${i})`.trim(),children:d.jsx("line",{x1:-1,y1:Ee/2,x2:Ee+1,y2:Ee/2,stroke:n.paper.grid,strokeWidth:.5})},t)),d.jsxs("linearGradient",{id:bn(e),x1:"0",y1:"0",x2:"0.35",y2:"1",children:[d.jsx("stop",{offset:"0%",stopColor:n.paper.from}),d.jsx("stop",{offset:"100%",stopColor:n.paper.to})]}),d.jsxs("filter",{id:An(e),x:"0%",y:"0%",width:"100%",height:"100%",children:[d.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.85",numOctaves:3,stitchTiles:"stitch"}),d.jsx("feColorMatrix",{type:"saturate",values:"0"})]}),["line","accent"].map(t=>d.jsx("marker",{id:Qr(e,t),markerWidth:"10",markerHeight:"10",refX:"8",refY:"4",orient:"auto",markerUnits:"userSpaceOnUse",children:d.jsx("path",{d:"M 1 1 L 8 4 L 1 7",fill:"none",stroke:t==="accent"?n.ink.accent:n.ink.line,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"})},t))]})}function ni({style:e,rect:n,pan:r,zoom:t=1,className:i="absolute inset-0 w-full h-full pointer-events-none"}){const l=U.useId().replace(/:/g,""),o=r?`translate(${r.x} ${r.y}) scale(${t})`:t!==1?`scale(${t})`:"",a=n?{x:n.x,y:n.y,width:n.width,height:n.height}:{x:0,y:0,width:"100%",height:"100%"};return d.jsxs("svg",{className:i,"aria-hidden":"true",children:[d.jsx(qe,{uid:l,style:e,gridTransform:o}),d.jsx("rect",{...a,fill:`url(#${bn(l)})`}),ei(l).map(c=>d.jsx("rect",{...a,fill:`url(#${c})`,opacity:.6},c)),e.paper.grain>0&&d.jsx("rect",{...a,filter:`url(#${An(l)})`,opacity:e.paper.grain})]})}const Re=g(10),ri=9,wn=(e,n)=>e.length>n?`${e.slice(0,n-1)}…`:e;function ii({style:e,plate:n,rows:r,title:t,tally:i,className:l="absolute inset-0 w-full h-full pointer-events-none"}){const o=U.useId().replace(/:/g,""),a=r.slice(0,ri),c=r.length-a.length,f={x:n.minX+Re,y:n.minY+Re,width:n.maxX-n.minX-Re*2,height:n.maxY-n.minY-Re*2},u={fontFamily:e.font,letterSpacing:"0.08em"},h=g(236),p=g(13),x=g(16),m=x+Math.max(a.length,1)*p+(c>0?p:0),y=f.x+g(14),v=f.y+g(14),k=g(264),_=g(74),Y=g(126),E=f.x+f.width-k-g(14),$=f.y+f.height-_-g(14);return d.jsxs("svg",{className:l,style:{overflow:"visible"},"aria-hidden":"true",children:[d.jsx(qe,{uid:o,style:e}),d.jsx("rect",{x:n.minX,y:n.minY,width:n.maxX-n.minX,height:n.maxY-n.minY,fill:"none",stroke:e.paper.edge,strokeWidth:1.4}),d.jsx("rect",{x:f.x,y:f.y,width:f.width,height:f.height,fill:"none",stroke:e.paper.edge,strokeWidth:.6,opacity:.75}),[[f.x,f.y,1,1],[f.x+f.width,f.y,-1,1],[f.x,f.y+f.height,1,-1],[f.x+f.width,f.y+f.height,-1,-1]].map(([O,I,H,M],R)=>d.jsx("path",{d:`M ${O+H*g(16)} ${I} L ${O} ${I} L ${O} ${I+M*g(16)}`,fill:"none",stroke:e.ink.line,strokeWidth:1.2},R)),a.length>0&&d.jsxs("g",{children:[d.jsx("rect",{x:y,y:v,width:h,height:m,fill:e.paper.from,fillOpacity:.55,stroke:e.ink.line,strokeWidth:.8}),d.jsx("line",{x1:y,y1:v+x,x2:y+h,y2:v+x,stroke:e.ink.line,strokeWidth:.8}),d.jsx("text",{x:y+g(8),y:v+g(11),fill:e.ink.text,fontSize:g(8),fontWeight:600,style:u,children:"COMPONENT INDEX"}),d.jsxs("text",{x:y+h-g(8),y:v+g(11),textAnchor:"end",fill:e.ink.muted,fontSize:g(8),style:u,children:[Ie(r.length)," ITEMS"]}),a.map((O,I)=>{const H=v+x+I*p,M=kn(O.color),R=_n(o,M,"top");return d.jsxs("g",{children:[d.jsx("text",{x:y+g(8),y:H+g(9.5),fill:e.ink.muted,fontSize:g(7.5),style:u,children:Ie(O.n)}),d.jsx("rect",{x:y+g(28),y:H+g(3),width:g(14),height:g(7),fill:e.face.right,stroke:e.ink.line,strokeWidth:.4}),R.map(re=>d.jsx("rect",{x:y+g(28),y:H+g(3),width:g(14),height:g(7),fill:`url(#${re})`,opacity:.85},re)),d.jsx("text",{x:y+g(50),y:H+g(9.5),fill:e.ink.text,fontSize:g(7.5),style:u,children:wn((O.name||"").toUpperCase(),18)}),d.jsx("text",{x:y+h-g(8),y:H+g(9.5),textAnchor:"end",fill:e.ink.muted,fontSize:g(7),style:u,children:Kr[M]})]},O.n)}),c>0&&d.jsx("text",{x:y+g(8),y:v+x+a.length*p+g(9.5),fill:e.ink.muted,fontSize:g(7.5),style:u,children:`+ ${c} NOT LISTED`})]}),d.jsxs("g",{children:[d.jsx("rect",{x:E,y:$,width:k,height:_,fill:e.paper.from,fillOpacity:.55,stroke:e.ink.line,strokeWidth:.8}),d.jsx("line",{x1:E,y1:$+g(30),x2:E+k,y2:$+g(30),stroke:e.ink.line,strokeWidth:.8}),d.jsx("line",{x1:E,y1:$+g(52),x2:E+k,y2:$+g(52),stroke:e.ink.line,strokeWidth:.5}),d.jsx("line",{x1:E+Y,y1:$+g(30),x2:E+Y,y2:$+_,stroke:e.ink.line,strokeWidth:.5}),d.jsx("text",{x:E+g(9),y:$+g(12),fill:e.ink.muted,fontSize:g(6.5),style:u,children:"DRAWING TITLE"}),d.jsx("text",{x:E+g(9),y:$+g(24),fill:e.ink.text,fontSize:g(10),fontWeight:600,style:u,children:wn((t||"UNTITLED ASSEMBLY").toUpperCase(),26)}),d.jsx("text",{x:E+g(9),y:$+g(43),fill:e.ink.muted,fontSize:g(6.5),style:u,children:"PROJECTION"}),d.jsx("text",{x:E+Y-g(9),y:$+g(43),textAnchor:"end",fill:e.ink.text,fontSize:g(7),style:u,children:"ISOMETRIC 30°"}),d.jsx("text",{x:E+g(9),y:$+g(65),fill:e.ink.muted,fontSize:g(6.5),style:u,children:"SCALE"}),d.jsx("text",{x:E+Y-g(9),y:$+g(65),textAnchor:"end",fill:e.ink.text,fontSize:g(7),style:u,children:"1:1"}),d.jsx("text",{x:E+Y+g(9),y:$+g(43),fill:e.ink.muted,fontSize:g(6.5),style:u,children:"QTY"}),d.jsx("text",{x:E+k-g(9),y:$+g(43),textAnchor:"end",fill:e.ink.text,fontSize:g(7),style:u,children:i||`${Ie(r.length)} CMP`}),d.jsx("text",{x:E+Y+g(9),y:$+g(65),fill:e.ink.muted,fontSize:g(6.5),style:u,children:"SHEET"}),d.jsx("text",{x:E+k-g(9),y:$+g(65),textAnchor:"end",fill:e.ink.text,fontSize:g(7),style:u,children:"1 OF 1"})]})]})}const ti=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),oi=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,t)=>t?t.toUpperCase():r.toLowerCase()),$n=e=>{const n=oi(e);return n.charAt(0).toUpperCase()+n.slice(1)},Cn=(...e)=>e.filter((n,r,t)=>!!n&&n.trim()!==""&&t.indexOf(n)===r).join(" ").trim(),li=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var ai={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ci=U.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:t,className:i="",children:l,iconNode:o,...a},c)=>U.createElement("svg",{ref:c,...ai,width:n,height:n,stroke:e,strokeWidth:t?Number(r)*24/Number(n):r,className:Cn("lucide",i),...!l&&!li(a)&&{"aria-hidden":"true"},...a},[...o.map(([f,u])=>U.createElement(f,u)),...Array.isArray(l)?l:[l]]));const C=(e,n)=>{const r=U.forwardRef(({className:t,...i},l)=>U.createElement(ci,{ref:l,iconNode:n,className:Cn(`lucide-${ti($n(e))}`,`lucide-${e}`,t),...i}));return r.displayName=$n(e),r};const si=C("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);const fi=C("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);const ui=C("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const pi=C("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);const Sn=C("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const di=C("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);const hi=C("chart-no-axes-column-increasing",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V9",key:"uvy0l4"}],["path",{d:"M19 21V3",key:"11j9sm"}]]);const xi=C("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);const mi=C("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const yi=C("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);const gi=C("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);const ki=C("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);const vi=C("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);const _i=C("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);const bi=C("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]);const Ai=C("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const wi=C("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);const $i=C("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const Ci=C("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);const Si=C("hard-drive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);const Ei=C("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);const Ti=C("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);const Ni=C("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);const Mi=C("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);const ji=C("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);const Oi=C("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);const Li=C("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);const Fi=C("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);const Ii=C("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);const Ri=C("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);const Pi=C("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);const Di=C("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const Yi=C("repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);const Bi=C("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const Hi=C("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);const Wi=C("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const Ui=C("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);const zi=C("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);const Xi=C("speaker",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["circle",{cx:"12",cy:"14",r:"4",key:"1jruaj"}],["path",{d:"M12 14h.01",key:"1etili"}]]);const Gi=C("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);const qi=C("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);const Ki=C("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);const Vi=C("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const Zi=C("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);const Ji=C("watch",[["path",{d:"M12 10v2.2l1.6 1",key:"n3r21l"}],["path",{d:"m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05",key:"18k57s"}],["path",{d:"m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05",key:"16ny36"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}]]);const Qi=C("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);const et=C("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),nt={Monitor:Fi,Server:Hi,Smartphone:zi,Watch:Ji,Cloud:yi,Cpu:ki,Database:vi,HardDrive:Si,Wifi:Qi,Globe:$i,User:Vi,Users:Zi,Lock:Mi,Key:Ti,Shield:Ui,Mic:Li,Camera:di,Speaker:Xi,Headphones:Ei,Code:gi,Terminal:qi,FileCode:bi,Folder:Ai,Zap:et,Activity:si,BarChart:hi,PieChart:xi,ArrowRight:ui,ArrowDown:fi,RefreshCw:Di,Repeat:Yi,Box:Sn,Package:Ii,Layers:Ni,Grid:Ci,Settings:Wi,Bell:pi,Mail:ji,MessageSquare:Oi,Search:Bi,Filter:wi,Download:_i,Upload:Ki,Play:Pi,Pause:Ri,Square:Gi,Circle:mi};function rt(e){return nt[e]||Sn}function it({uid:e,style:n,box:r,color:t,tag:i,selected:l=!1,opacity:o,onClick:a,onPointerDown:c}){const f=kn(t),u=l?n.ink.accent:n.ink.line,h=l?n.ink.accent:n.ink.text,p=[{face:"left",path:r.left},{face:"right",path:r.right},{face:"top",path:r.top}];return d.jsxs("g",{className:a||c?"cursor-pointer":void 0,opacity:o,onClick:a,onPointerDown:c,children:[p.map(({face:x,path:m})=>d.jsxs("g",{children:[d.jsx("path",{d:m,fill:n.face[x]}),_n(e,f,x).map(y=>d.jsx("path",{d:m,fill:`url(#${y})`,opacity:n.hatchOpacity[x]},y))]},x)),d.jsx("path",{d:r.hidden,fill:"none",stroke:n.ink.hidden,strokeWidth:n.strokeWidth*.55,strokeDasharray:"3.5 3",opacity:.85}),d.jsx("path",{d:r.visible,fill:"none",stroke:u,strokeWidth:l?n.strokeWidth*1.7:n.strokeWidth,strokeLinejoin:"round",strokeLinecap:"round"}),i!=null&&d.jsx("text",{x:r.topCenter.x,y:r.topCenter.y+g(3),textAnchor:"middle",fill:h,fontSize:g(8),fontWeight:600,fontFamily:n.font,style:{letterSpacing:"0.1em"},pointerEvents:"none",children:Ie(i)})]})}function tt({style:e,box:n,name:r,subtitle:t,icon:i,selected:l=!1,opacity:o}){const a=l?e.ink.accent:e.ink.line,c=l?e.ink.accent:e.ink.text,f=i?rt(i):null,u=(r||"").toUpperCase(),h=(t||"").toUpperCase(),p=n.minY-g(11),x=p-g(4),m=h?p-g(15):p-g(4),y=g(9),v=g(3),k=f?y+v:0,_=Math.max(u.length*g(5.6)+k,h.length*g(4.4),g(24)),Y=n.topCenter.x+k/2,E=Y-u.length*g(5.6)/2-v-y,$=m-y+g(1);return d.jsxs("g",{pointerEvents:"none",opacity:o,children:[d.jsx("line",{x1:n.topCenter.x,y1:n.topCenter.y-g(6),x2:n.topCenter.x,y2:p,stroke:a,strokeWidth:e.strokeWidth*.6}),d.jsx("line",{x1:n.topCenter.x-_/2,y1:p,x2:n.topCenter.x+_/2,y2:p,stroke:a,strokeWidth:e.strokeWidth*.6}),f&&d.jsx("g",{transform:`translate(${E}, ${$})`,color:c,children:d.jsx(f,{width:y,height:y,strokeWidth:1.75})}),d.jsx("text",{x:Y,y:m,textAnchor:"middle",fill:c,fontSize:g(9.5),fontWeight:600,fontFamily:e.font,stroke:e.paper.from,strokeWidth:g(3),paintOrder:"stroke",strokeLinejoin:"round",style:{letterSpacing:"0.12em"},children:u}),h&&d.jsx("text",{x:n.topCenter.x,y:x,textAnchor:"middle",fill:e.ink.muted,fontSize:g(7.5),fontFamily:e.font,stroke:e.paper.from,strokeWidth:g(2.5),paintOrder:"stroke",strokeLinejoin:"round",style:{letterSpacing:"0.1em"},children:h})]})}const En='"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace',ot={blue:{top:"#3b82f6",side:"#2563eb",front:"#1d4ed8"},violet:{top:"#8b5cf6",side:"#7c3aed",front:"#6d28d9"},cyan:{top:"#06b6d4",side:"#0891b2",front:"#0e7490"},emerald:{top:"#10b981",side:"#059669",front:"#047857"},amber:{top:"#f59e0b",side:"#d97706",front:"#b45309"},rose:{top:"#f43f5e",side:"#e11d48",front:"#be123c"},slate:{top:"#475569",side:"#334155",front:"#1e293b"}},lt={blue:{top:"#93c5fd",side:"#60a5fa",front:"#3b82f6"},violet:{top:"#c4b5fd",side:"#a78bfa",front:"#8b5cf6"},cyan:{top:"#67e8f9",side:"#22d3ee",front:"#06b6d4"},emerald:{top:"#6ee7b7",side:"#34d399",front:"#10b981"},amber:{top:"#fcd34d",side:"#fbbf24",front:"#f59e0b"},rose:{top:"#fda4af",side:"#fb7185",front:"#f43f5e"},slate:{top:"#e2e8f0",side:"#cbd5e1",front:"#94a3b8"}};function Pe(e,n,r){const t=f=>{const u=f.replace("#","");return{r:parseInt(u.substring(0,2),16),g:parseInt(u.substring(2,4),16),b:parseInt(u.substring(4,6),16)}},i=t(e),l=t(n),o=Math.round(i.r+(l.r-i.r)*r),a=Math.round(i.g+(l.g-i.g)*r),c=Math.round(i.b+(l.b-i.b)*r);return`rgb(${o},${a},${c})`}function at({x:e,y:n,z:r,children:t,fontSize:i=8,color:l="#1e293b",shadow:o}){const a=w(e,n,r);return d.jsx("g",{transform:`translate(${a.screenX}, ${a.screenY})`,filter:o,children:d.jsx("g",{transform:`matrix(${Dr()})`,children:d.jsx("text",{x:0,y:0,textAnchor:"middle",fill:l,fontSize:i,fontWeight:600,fontFamily:En,style:{textTransform:"uppercase",letterSpacing:"0.06em"},children:t})})})}function ct({width:e,depth:n,elevation:r,color:t,opacity:i,borderColor:l,theme:o,isGround:a}){const f=ue(e,n,a?8:2,0,0),u=w(0,0,r);return d.jsxs("g",{transform:`translate(${u.screenX}, ${u.screenY})`,children:[a&&d.jsx("g",{transform:"translate(4, 4)",opacity:.2,children:d.jsx("path",{d:f.top,fill:"#000"})}),d.jsx("path",{d:f.top,fill:t,opacity:i}),a&&d.jsxs(d.Fragment,{children:[d.jsx("path",{d:f.left,fill:o==="dark"?"#0f172a":"#cbd5e1",opacity:.8}),d.jsx("path",{d:f.right,fill:o==="dark"?"#1e293b":"#94a3b8",opacity:.8})]}),d.jsx("path",{d:f.top,fill:"none",stroke:l||(o==="dark"?"#475569":"#94a3b8"),strokeWidth:a?1.5:.75,opacity:a?1:.6})]})}function st({config:e,options:n={},className:r,style:t,onNodeClick:i,onLayerClick:l}){const{interactive:o=!0,animate:a=!0,showLabels:c=!0,expandOnHover:f=!0}=n,{theme:u,canvas:h,origin:p,tiers:x,floorSize:m,nodes:y,cornerRadius:v=0}=e,k=Gr(e.style),_=k.technical,Y=U.useId().replace(/:/g,""),E=!_&&e.material==="retro-print",$=E?xn:u==="dark"?ot:lt,O=_?k.paper.to:E?u==="dark"?"#202624":"#f4efe6":u==="dark"?"#0f172a":"#fafafa",I=_?k.ink.text:E?"#202a29":u==="dark"?"#e2e8f0":"#1e293b",H=_?k.ink.muted:E?u==="dark"?"#c5c4b7":"#505b56":u==="dark"?"#64748b":"#94a3b8",M=U.useMemo(()=>{const N=y.map((b,j)=>({node:b,i:j})).sort((b,j)=>b.node.tier-j.node.tier||b.node.y-j.node.y||b.node.x-j.node.x),s=new Map;return N.forEach(({i:b},j)=>s.set(b,j+1)),s},[y]),R={minX:16,minY:16,maxX:h.width-16,maxY:h.height-16},[re,L]=U.useState(new Set);U.useEffect(()=>{a?(L(new Set),x.forEach((N,s)=>{setTimeout(()=>{L(b=>new Set([...b,s]))},s*150+100)})):L(new Set(x.map((N,s)=>s)))},[e.id,a,x.length]);const[D,te]=U.useState(null),[Z,W]=U.useState(null),[T,X]=U.useState(null),ce=[...y].sort((N,s)=>{const b=x[N.tier]?.elevation||0,j=x[s.tier]?.elevation||0;if(b!==j)return b-j;const F=N.x+N.width+(N.y+N.depth);return s.x+s.width+(s.y+s.depth)-F});return d.jsx("div",{className:r,style:{display:"inline-block",...t},children:d.jsxs("svg",{width:h.width,height:h.height,style:{backgroundColor:O},onClick:()=>{o&&(X(null),W(null))},children:[d.jsxs("defs",{children:[E&&d.jsx("pattern",{id:`print-${e.id}`,width:"64",height:"64",patternUnits:"userSpaceOnUse",children:mn.map((N,s)=>d.jsx("circle",{cx:N.x,cy:N.y,r:N.r,fill:"#26362e",opacity:.32},s))}),d.jsx("pattern",{id:`grid-${e.id}`,width:"24",height:"24",patternUnits:"userSpaceOnUse",children:d.jsx("circle",{cx:"12",cy:"12",r:"0.5",fill:u==="dark"?"#1e293b":"#e2e8f0"})}),d.jsx("filter",{id:`glow-${e.id}`,x:"-20%",y:"-20%",width:"140%",height:"140%",children:d.jsx("feDropShadow",{dx:"0",dy:"4",stdDeviation:"8",floodColor:u==="dark"?"#60a5fa":"#3b82f6",floodOpacity:"0.3"})}),d.jsxs("radialGradient",{id:`bg-${e.id}`,cx:"48%",cy:"34%",r:"82%",children:[d.jsx("stop",{offset:"0%",stopColor:u==="dark"?"#16203a":"#ffffff"}),d.jsx("stop",{offset:"55%",stopColor:u==="dark"?"#0e1526":"#f2f5f9"}),d.jsx("stop",{offset:"100%",stopColor:u==="dark"?"#080d18":"#e7ecf2"})]}),d.jsx("filter",{id:`contact-${e.id}`,x:"-60%",y:"-60%",width:"220%",height:"220%",children:d.jsx("feGaussianBlur",{stdDeviation:"5"})}),d.jsxs("linearGradient",{id:`sheen-${e.id}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"0%",stopColor:"#ffffff",stopOpacity:"0.18"}),d.jsx("stop",{offset:"55%",stopColor:"#ffffff",stopOpacity:"0.04"}),d.jsx("stop",{offset:"100%",stopColor:"#ffffff",stopOpacity:"0"})]}),d.jsxs("linearGradient",{id:`shade-${e.id}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"0%",stopColor:"#000000",stopOpacity:"0"}),d.jsx("stop",{offset:"100%",stopColor:"#000000",stopOpacity:"0.24"})]}),d.jsx("filter",{id:`label-${e.id}`,x:"-40%",y:"-40%",width:"180%",height:"180%",children:d.jsx("feDropShadow",{dx:"0",dy:"0.5",stdDeviation:"0.7",floodColor:"#000000",floodOpacity:"0.7"})})]}),_?d.jsxs(d.Fragment,{children:[d.jsx(qe,{uid:Y,style:k}),d.jsx(ni,{style:k,rect:{x:0,y:0,width:h.width,height:h.height},className:""})]}):d.jsxs(d.Fragment,{children:[d.jsx("rect",{width:"100%",height:"100%",fill:E?O:`url(#bg-${e.id})`}),d.jsx("rect",{width:"100%",height:"100%",fill:`url(#grid-${e.id})`,opacity:"0.5"})]}),d.jsx("g",{transform:`translate(${p.x}, ${p.y})`,children:x.map((N,s)=>{const b=ce.filter(S=>S.tier===s),j=re.has(s),F=o&&(Z===s||Z===null&&T===null&&D===s),fe=o&&(Z!==null||D!==null||T!==null),he=T?.tier===s,P=fe&&!F&&!he,oe=j?0:60,xe=j?1:0,we=F&&f?{x:10,y:-34}:{x:0,y:0},Bl=F?1.03:1,Xe=w(m.width/2,m.depth/2,N.elevation),Fr=N.offset||{x:0,y:0};return d.jsxs("g",{"data-tier":s,onMouseEnter:()=>o&&te(s),onMouseLeave:()=>o&&te(null),onClick:S=>{o&&(S.stopPropagation(),X(null),W(q=>q===s?null:s),l?.(s))},style:{transform:`translate(${Fr.x+we.x}px, ${Fr.y+we.y}px) translate(${Xe.screenX}px, ${Xe.screenY+oe}px) scale(${Bl}) translate(${-Xe.screenX}px, ${-Xe.screenY}px)`,transition:"transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out",opacity:xe*(P?.35:1),filter:F?`url(#glow-${e.id})`:"none",cursor:o?"pointer":"default"},children:[_?d.jsx(ft,{width:m.width,depth:m.depth,elevation:s===0?-2:N.elevation,ink:s===0?k.ink.line:k.ink.hidden,isGround:s===0}):d.jsx(ct,{width:m.width,depth:m.depth,elevation:s===0?-2:N.elevation,color:N.floorColor||(u==="dark"?"#0f172a":"#f8fafc"),opacity:N.floorOpacity||(s===0?.95:.5),borderColor:N.borderColor,theme:u,isGround:s===0}),_&&b.map((S,q)=>{const $e=N.elevation+5,me=w(S.x,S.y,$e),Q=vn(S.width,S.depth,S.height,me.screenX,me.screenY),K=T?.tier===s&&T?.index===q,ge=o&&T!==null&&!K;return d.jsx(it,{uid:Y,style:k,box:Q,color:S.color,tag:M.get(y.indexOf(S)),selected:K,opacity:(S.opacity??1)*(ge?.3:1),onClick:o?()=>{if(W(null),X(Le=>Le&&Le.tier===s&&Le.index===q?null:{tier:s,index:q}),i?.(S,{tier:s,index:q}),S.link)try{window.open(S.link,"_blank")}catch{}}:void 0},`tech-${q}`)}),_&&c&&b.map((S,q)=>{const $e=N.elevation+5,me=w(S.x,S.y,$e),Q=vn(S.width,S.depth,S.height,me.screenX,me.screenY),K=T?.tier===s&&T?.index===q,ge=o&&T!==null&&!K;return d.jsx(tt,{style:k,box:Q,name:S.label,selected:K,opacity:ge?.3:1},`tech-label-${q}`)}),!_&&b.map((S,q)=>{const $e=N.elevation+5,me=w(S.x,S.y,$e),Q=ue(S.width,S.depth,S.height,me.screenX,me.screenY,v),K=$[S.color]||$.slate,ge=T?.tier===s&&T?.index===q,Le=o&&T!==null&&!ge,Ir=w(S.x-3,S.y-3,N.elevation),Hl=ue(S.width+6,S.depth+6,0,Ir.screenX,Ir.screenY,v).top;return d.jsxs("g",{"data-node":`${s}-${q}`,opacity:(S.opacity??1)*(Le?.3:1),onClick:o?ie=>{if(ie.stopPropagation(),W(null),X(le=>le&&le.tier===s&&le.index===q?null:{tier:s,index:q}),i?.(S,{tier:s,index:q}),S.link)try{window.open(S.link,"_blank")}catch{}}:void 0,style:{cursor:o?"pointer":"default",transition:"opacity 0.3s ease-out"},children:[d.jsx("path",{d:Hl,fill:"#000000",opacity:.3,filter:`url(#contact-${e.id})`}),Q.cornerBackRight?.map((ie,le)=>d.jsx("path",{d:ie.path,fill:Pe(K.front,K.side,ie.intensity)},`cbr-${le}`)),Q.cornerBackLeft?.map((ie,le)=>d.jsx("path",{d:ie.path,fill:Pe(K.side,K.front,ie.intensity)},`cbl-${le}`)),d.jsx("path",{d:Q.left,fill:K.side}),d.jsx("path",{d:Q.left,fill:`url(#${E?"print":"shade"}-${e.id})`}),d.jsx("path",{d:Q.right,fill:K.front}),d.jsx("path",{d:Q.right,fill:`url(#${E?"print":"shade"}-${e.id})`}),Q.cornerFrontRight?.map((ie,le)=>d.jsx("path",{d:ie.path,fill:Pe(K.front,K.side,ie.intensity)},`cfr-${le}`)),Q.cornerFrontLeft?.map((ie,le)=>d.jsx("path",{d:ie.path,fill:Pe(K.front,K.side,ie.intensity)},`cfl-${le}`)),d.jsx("path",{d:Q.top,fill:K.top}),d.jsx("path",{d:Q.top,fill:`url(#${E?"print":"sheen"}-${e.id})`}),d.jsx("path",{d:Q.top,fill:"none",stroke:ge?"#ffffff":"rgba(255,255,255,0.28)",strokeWidth:ge?1.4:.75,strokeLinejoin:"round"}),c&&S.label&&d.jsx(at,{x:S.x+S.width/2,y:S.y+S.depth/2,z:$e+S.height+2,fontSize:S.width>70?9:8,color:I,shadow:E?void 0:`url(#label-${e.id})`,children:S.label})]},q)}),c&&d.jsx("text",{x:w(-25,m.depth/2,N.elevation+15).screenX-35,y:w(-25,m.depth/2,N.elevation+15).screenY,fill:H,fontSize:9,fontWeight:500,fontFamily:En,opacity:_?.9:.6,style:{letterSpacing:"0.05em",textTransform:_?"uppercase":"none"},children:N.name})]},s)})}),_&&d.jsx(ii,{style:k,plate:R,rows:y.map((N,s)=>({n:M.get(s)||s+1,name:N.label,subtitle:x[N.tier]?.name,color:N.color})).sort((N,s)=>N.n-s.n),title:e.title,tally:`${String(y.length).padStart(2,"0")} CMP / ${String(x.length).padStart(2,"0")} TIER`,className:""})]})})}function ft({width:e,depth:n,elevation:r,ink:t,isGround:i}){const l=w(0,0,r),o=ue(e,n,0,l.screenX,l.screenY).top;return d.jsx("path",{d:o,fill:"none",stroke:t,strokeWidth:i?1:.7,strokeDasharray:i?void 0:"5 4",opacity:i?.9:.7})}const Tn='"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace',ut={blue:{top:"#3b82f6",side:"#2563eb",front:"#1d4ed8"},violet:{top:"#8b5cf6",side:"#7c3aed",front:"#6d28d9"},cyan:{top:"#06b6d4",side:"#0891b2",front:"#0e7490"},emerald:{top:"#10b981",side:"#059669",front:"#047857"},amber:{top:"#f59e0b",side:"#d97706",front:"#b45309"},rose:{top:"#f43f5e",side:"#e11d48",front:"#be123c"},slate:{top:"#475569",side:"#334155",front:"#1e293b"}},pt={blue:{top:"#93c5fd",side:"#60a5fa",front:"#3b82f6"},violet:{top:"#c4b5fd",side:"#a78bfa",front:"#8b5cf6"},cyan:{top:"#67e8f9",side:"#22d3ee",front:"#06b6d4"},emerald:{top:"#6ee7b7",side:"#34d399",front:"#10b981"},amber:{top:"#fcd34d",side:"#fbbf24",front:"#f59e0b"},rose:{top:"#fda4af",side:"#fb7185",front:"#f43f5e"},slate:{top:"#e2e8f0",side:"#cbd5e1",front:"#94a3b8"}};function De(e,n,r){const t=f=>{const u=f.replace("#","");return{r:parseInt(u.substring(0,2),16),g:parseInt(u.substring(2,4),16),b:parseInt(u.substring(4,6),16)}},i=t(e),l=t(n),o=Math.round(i.r+(l.r-i.r)*r),a=Math.round(i.g+(l.g-i.g)*r),c=Math.round(i.b+(l.b-i.b)*r);return`rgb(${o},${a},${c})`}function Nn(e){const{theme:n,canvas:r,origin:t,tiers:i,floorSize:l,nodes:o,cornerRadius:a=0}=e,c=e.material==="retro-print",f=c?xn:n==="dark"?ut:pt,u=c?n==="dark"?"#202624":"#f4efe6":n==="dark"?"#0f172a":"#fafafa",h=c?"#202a29":n==="dark"?"#e2e8f0":"#1e293b",p=c?n==="dark"?"#c5c4b7":"#505b56":n==="dark"?"#64748b":"#94a3b8",x=[...o].sort((y,v)=>{const k=i[y.tier]?.elevation||0,_=i[v.tier]?.elevation||0;return k!==_?k-_:v.x+v.width+(v.y+v.depth)-(y.x+y.width+(y.y+y.depth))});let m=`<svg xmlns="http://www.w3.org/2000/svg" width="${r.width}" height="${r.height}" style="background:${u}">`;m+=`<defs>${c?`<pattern id="print" width="64" height="64" patternUnits="userSpaceOnUse">${mn.map(y=>`<circle cx="${y.x}" cy="${y.y}" r="${y.r}" fill="#26362e" opacity="0.32"/>`).join("")}</pattern>`:""}
7
7
  <pattern id="grid" width="24" height="24" patternUnits="userSpaceOnUse">
8
8
  <circle cx="12" cy="12" r="0.5" fill="${n==="dark"?"#1e293b":"#e2e8f0"}"/>
9
9
  </pattern>
@@ -16,36 +16,36 @@ React keys must be passed directly to JSX without using spread:
16
16
  <linearGradient id="sheen" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#ffffff" stop-opacity="0.18"/><stop offset="55%" stop-color="#ffffff" stop-opacity="0.04"/><stop offset="100%" stop-color="#ffffff" stop-opacity="0"/></linearGradient>
17
17
  <linearGradient id="shade" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#000000" stop-opacity="0"/><stop offset="100%" stop-color="#000000" stop-opacity="0.24"/></linearGradient>
18
18
  <filter id="labelshadow" x="-40%" y="-40%" width="180%" height="180%"><feDropShadow dx="0" dy="0.5" stdDeviation="0.7" flood-color="#000000" flood-opacity="0.7"/></filter>
19
- </defs>`,f+='<rect width="100%" height="100%" fill="url(#bg)"/>',f+='<rect width="100%" height="100%" fill="url(#grid)" opacity="0.5"/>',f+=`<g transform="translate(${t.x},${t.y})">`;for(let m=0;m<i.length;m++){const g=i[m],_=u.filter(N=>N.tier===m),k=g.offset||{x:0,y:0};f+=`<g transform="translate(${k.x},${k.y})">`;const v=m===0?8:2,R=ue(l.width,l.depth,v,0,0),O=C(0,0,m===0?-2:g.elevation),S=g.floorColor||(n==="dark"?"#0f172a":"#f8fafc"),j=g.floorOpacity||(m===0?.95:.5);f+=`<g transform="translate(${O.screenX},${O.screenY})">`,m===0&&(f+=`<g transform="translate(4,4)" opacity="0.2"><path d="${R.top}" fill="#000"/></g>`),f+=`<path d="${R.top}" fill="${S}" opacity="${j}"/>`,m===0&&(f+=`<path d="${R.left}" fill="${n==="dark"?"#0f172a":"#cbd5e1"}" opacity="0.8"/>`,f+=`<path d="${R.right}" fill="${n==="dark"?"#1e293b":"#94a3b8"}" opacity="0.8"/>`),f+=`<path d="${R.top}" fill="none" stroke="${g.borderColor||(n==="dark"?"#475569":"#94a3b8")}" stroke-width="${m===0?1.5:.75}" opacity="${m===0?1:.6}"/>`,f+="</g>";for(const N of _){const W=g.elevation+5,D=C(N.x,N.y,W),F=ue(N.width,N.depth,N.height,D.screenX,D.screenY,a),P=c[N.color]||c.slate,te=N.opacity??1;f+=`<g opacity="${te}">`;const re=C(N.x-3,N.y-3,g.elevation),Z=ue(N.width+6,N.depth+6,0,re.screenX,re.screenY,a).top;if(f+=`<path d="${Z}" fill="#000000" opacity="0.3" filter="url(#contact)"/>`,F.cornerBackRight)for(const T of F.cornerBackRight)f+=`<path d="${T.path}" fill="${De(P.front,P.side,T.intensity)}"/>`;if(F.cornerBackLeft)for(const T of F.cornerBackLeft)f+=`<path d="${T.path}" fill="${De(P.side,P.front,T.intensity)}"/>`;if(f+=`<path d="${F.left}" fill="${P.side}"/>`,f+=`<path d="${F.left}" fill="url(#shade)"/>`,f+=`<path d="${F.right}" fill="${P.front}"/>`,f+=`<path d="${F.right}" fill="url(#shade)"/>`,F.cornerFrontRight)for(const T of F.cornerFrontRight)f+=`<path d="${T.path}" fill="${De(P.front,P.side,T.intensity)}"/>`;if(F.cornerFrontLeft)for(const T of F.cornerFrontLeft)f+=`<path d="${T.path}" fill="${De(P.front,P.side,T.intensity)}"/>`;if(f+=`<path d="${F.top}" fill="${P.top}"/>`,f+=`<path d="${F.top}" fill="url(#sheen)"/>`,f+=`<path d="${F.top}" fill="none" stroke="rgba(255,255,255,0.28)" stroke-width="0.75" stroke-linejoin="round"/>`,N.label){const T=C(N.x+N.width/2,N.y+N.depth/2,W+N.height+2),U=N.width>70?9:8;f+=`<g transform="translate(${T.screenX},${T.screenY})" filter="url(#labelshadow)">`,f+='<g transform="matrix(0.866,-0.5,0.866,0.5,0,0)">',f+=`<text x="0" y="0" text-anchor="middle" fill="${p}" font-size="${U}" font-weight="600" font-family='${Sn}' style="text-transform:uppercase;letter-spacing:0.06em">${N.label}</text>`,f+="</g></g>"}f+="</g>"}const I=C(-25,l.depth/2,g.elevation+15);f+=`<text x="${I.screenX-35}" y="${I.screenY}" fill="${h}" font-size="9" font-weight="500" font-family='${Sn}' opacity="0.6" style="letter-spacing:0.05em">${g.name}</text>`,f+="</g>"}return f+="</g></svg>",f}function ut(e,n){e.innerHTML=En(n)}function Tn(e){return typeof e>"u"||e===null}function pt(e){return typeof e=="object"&&e!==null}function dt(e){return Array.isArray(e)?e:Tn(e)?[]:[e]}function ht(e,n){var r,t,i,l;if(n)for(l=Object.keys(n),r=0,t=l.length;r<t;r+=1)i=l[r],e[i]=n[i];return e}function xt(e,n){var r="",t;for(t=0;t<n;t+=1)r+=e;return r}function mt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var yt=Tn,gt=pt,kt=dt,vt=xt,_t=mt,bt=ht,X={isNothing:yt,isObject:gt,toArray:kt,repeat:vt,isNegativeZero:_t,extend:bt};function Nn(e,n){var r="",t=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(r+=`
19
+ </defs>`,m+=`<rect width="100%" height="100%" fill="${c?u:"url(#bg)"}"/>`,m+='<rect width="100%" height="100%" fill="url(#grid)" opacity="0.5"/>',m+=`<g transform="translate(${t.x},${t.y})">`;for(let y=0;y<i.length;y++){const v=i[y],k=x.filter(M=>M.tier===y),_=v.offset||{x:0,y:0};m+=`<g transform="translate(${_.x},${_.y})">`;const Y=y===0?8:2,E=ue(l.width,l.depth,Y,0,0),$=w(0,0,y===0?-2:v.elevation),O=v.floorColor||(n==="dark"?"#0f172a":"#f8fafc"),I=v.floorOpacity||(y===0?.95:.5);m+=`<g transform="translate(${$.screenX},${$.screenY})">`,y===0&&(m+=`<g transform="translate(4,4)" opacity="0.2"><path d="${E.top}" fill="#000"/></g>`),m+=`<path d="${E.top}" fill="${O}" opacity="${I}"/>`,y===0&&(m+=`<path d="${E.left}" fill="${n==="dark"?"#0f172a":"#cbd5e1"}" opacity="0.8"/>`,m+=`<path d="${E.right}" fill="${n==="dark"?"#1e293b":"#94a3b8"}" opacity="0.8"/>`),m+=`<path d="${E.top}" fill="none" stroke="${v.borderColor||(n==="dark"?"#475569":"#94a3b8")}" stroke-width="${y===0?1.5:.75}" opacity="${y===0?1:.6}"/>`,m+="</g>";for(const M of k){const R=v.elevation+5,re=w(M.x,M.y,R),L=ue(M.width,M.depth,M.height,re.screenX,re.screenY,a),D=f[M.color]||f.slate,te=M.opacity??1;m+=`<g opacity="${te}">`;const Z=w(M.x-3,M.y-3,v.elevation),W=ue(M.width+6,M.depth+6,0,Z.screenX,Z.screenY,a).top;if(m+=`<path d="${W}" fill="#000000" opacity="0.3" filter="url(#contact)"/>`,L.cornerBackRight)for(const T of L.cornerBackRight)m+=`<path d="${T.path}" fill="${De(D.front,D.side,T.intensity)}"/>`;if(L.cornerBackLeft)for(const T of L.cornerBackLeft)m+=`<path d="${T.path}" fill="${De(D.side,D.front,T.intensity)}"/>`;if(m+=`<path d="${L.left}" fill="${D.side}"/>`,m+=`<path d="${L.left}" fill="url(#${c?"print":"shade"})"/>`,m+=`<path d="${L.right}" fill="${D.front}"/>`,m+=`<path d="${L.right}" fill="url(#${c?"print":"shade"})"/>`,L.cornerFrontRight)for(const T of L.cornerFrontRight)m+=`<path d="${T.path}" fill="${De(D.front,D.side,T.intensity)}"/>`;if(L.cornerFrontLeft)for(const T of L.cornerFrontLeft)m+=`<path d="${T.path}" fill="${De(D.front,D.side,T.intensity)}"/>`;if(m+=`<path d="${L.top}" fill="${D.top}"/>`,m+=`<path d="${L.top}" fill="url(#${c?"print":"sheen"})"/>`,m+=`<path d="${L.top}" fill="none" stroke="rgba(255,255,255,0.28)" stroke-width="0.75" stroke-linejoin="round"/>`,M.label){const T=w(M.x+M.width/2,M.y+M.depth/2,R+M.height+2),X=M.width>70?9:8;m+=`<g transform="translate(${T.screenX},${T.screenY})" filter="${c?"none":"url(#labelshadow)"}">`,m+='<g transform="matrix(0.866,-0.5,0.866,0.5,0,0)">',m+=`<text x="0" y="0" text-anchor="middle" fill="${h}" font-size="${X}" font-weight="600" font-family='${Tn}' style="text-transform:uppercase;letter-spacing:0.06em">${M.label}</text>`,m+="</g></g>"}m+="</g>"}const H=w(-25,l.depth/2,v.elevation+15);m+=`<text x="${H.screenX-35}" y="${H.screenY}" fill="${p}" font-size="9" font-weight="500" font-family='${Tn}' opacity="0.6" style="letter-spacing:0.05em">${v.name}</text>`,m+="</g>"}return m+="</g></svg>",m}function dt(e,n){e.innerHTML=Nn(n)}function Mn(e){return typeof e>"u"||e===null}function ht(e){return typeof e=="object"&&e!==null}function xt(e){return Array.isArray(e)?e:Mn(e)?[]:[e]}function mt(e,n){var r,t,i,l;if(n)for(l=Object.keys(n),r=0,t=l.length;r<t;r+=1)i=l[r],e[i]=n[i];return e}function yt(e,n){var r="",t;for(t=0;t<n;t+=1)r+=e;return r}function gt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var kt=Mn,vt=ht,_t=xt,bt=yt,At=gt,wt=mt,z={isNothing:kt,isObject:vt,toArray:_t,repeat:bt,isNegativeZero:At,extend:wt};function jn(e,n){var r="",t=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(r+=`
20
20
 
21
- `+e.mark.snippet),t+" "+r):t}function Ee(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=Nn(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ee.prototype=Object.create(Error.prototype),Ee.prototype.constructor=Ee,Ee.prototype.toString=function(n){return this.name+": "+Nn(this,n)};var J=Ee;function Ke(e,n,r,t,i){var l="",o="",a=Math.floor(i/2)-1;return t-n>a&&(l=" ... ",n=t-a+l.length),r-t>a&&(o=" ...",r=t+a-o.length),{str:l+e.slice(n,r).replace(/\t/g,"→")+o,pos:t-n+l.length}}function Ve(e,n){return X.repeat(" ",n-e.length)+e}function At(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var r=/\r?\n|\r|\0/g,t=[0],i=[],l,o=-1;l=r.exec(e.buffer);)i.push(l.index),t.push(l.index+l[0].length),e.position<=l.index&&o<0&&(o=t.length-2);o<0&&(o=t.length-1);var a="",c,s,p=Math.min(e.line+n.linesAfter,i.length).toString().length,h=n.maxLength-(n.indent+p+3);for(c=1;c<=n.linesBefore&&!(o-c<0);c++)s=Ke(e.buffer,t[o-c],i[o-c],e.position-(t[o]-t[o-c]),h),a=X.repeat(" ",n.indent)+Ve((e.line-c+1).toString(),p)+" | "+s.str+`
22
- `+a;for(s=Ke(e.buffer,t[o],i[o],e.position,h),a+=X.repeat(" ",n.indent)+Ve((e.line+1).toString(),p)+" | "+s.str+`
23
- `,a+=X.repeat("-",n.indent+p+3+s.pos)+`^
24
- `,c=1;c<=n.linesAfter&&!(o+c>=i.length);c++)s=Ke(e.buffer,t[o+c],i[o+c],e.position-(t[o]-t[o+c]),h),a+=X.repeat(" ",n.indent)+Ve((e.line+c+1).toString(),p)+" | "+s.str+`
25
- `;return a.replace(/\n$/,"")}var wt=At,Ct=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],$t=["scalar","sequence","mapping"];function St(e){var n={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(t){n[String(t)]=r})}),n}function Et(e,n){if(n=n||{},Object.keys(n).forEach(function(r){if(Ct.indexOf(r)===-1)throw new J('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(r){return r},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=St(n.styleAliases||null),$t.indexOf(this.kind)===-1)throw new J('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var G=Et;function Mn(e,n){var r=[];return e[n].forEach(function(t){var i=r.length;r.forEach(function(l,o){l.tag===t.tag&&l.kind===t.kind&&l.multi===t.multi&&(i=o)}),r[i]=t}),r}function Tt(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,r;function t(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(n=0,r=arguments.length;n<r;n+=1)arguments[n].forEach(t);return e}function Ze(e){return this.extend(e)}Ze.prototype.extend=function(n){var r=[],t=[];if(n instanceof G)t.push(n);else if(Array.isArray(n))t=t.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(r=r.concat(n.implicit)),n.explicit&&(t=t.concat(n.explicit));else throw new J("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(l){if(!(l instanceof G))throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(l.loadKind&&l.loadKind!=="scalar")throw new J("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(l.multi)throw new J("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(l){if(!(l instanceof G))throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Ze.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(t),i.compiledImplicit=Mn(i,"implicit"),i.compiledExplicit=Mn(i,"explicit"),i.compiledTypeMap=Tt(i.compiledImplicit,i.compiledExplicit),i};var jn=Ze,On=new G("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Ln=new G("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Fn=new G("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),In=new jn({explicit:[On,Ln,Fn]});function Nt(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function Mt(){return null}function jt(e){return e===null}var Rn=new G("tag:yaml.org,2002:null",{kind:"scalar",resolve:Nt,construct:Mt,predicate:jt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Ot(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function Lt(e){return e==="true"||e==="True"||e==="TRUE"}function Ft(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Pn=new G("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ot,construct:Lt,predicate:Ft,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function It(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Rt(e){return 48<=e&&e<=55}function Pt(e){return 48<=e&&e<=57}function Dt(e){if(e===null)return!1;var n=e.length,r=0,t=!1,i;if(!n)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===n)return!0;if(i=e[++r],i==="b"){for(r++;r<n;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;t=!0}return t&&i!=="_"}if(i==="x"){for(r++;r<n;r++)if(i=e[r],i!=="_"){if(!It(e.charCodeAt(r)))return!1;t=!0}return t&&i!=="_"}if(i==="o"){for(r++;r<n;r++)if(i=e[r],i!=="_"){if(!Rt(e.charCodeAt(r)))return!1;t=!0}return t&&i!=="_"}}if(i==="_")return!1;for(;r<n;r++)if(i=e[r],i!=="_"){if(!Pt(e.charCodeAt(r)))return!1;t=!0}return!(!t||i==="_")}function Yt(e){var n=e,r=1,t;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),t=n[0],(t==="-"||t==="+")&&(t==="-"&&(r=-1),n=n.slice(1),t=n[0]),n==="0")return 0;if(t==="0"){if(n[1]==="b")return r*parseInt(n.slice(2),2);if(n[1]==="x")return r*parseInt(n.slice(2),16);if(n[1]==="o")return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)}function Bt(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!X.isNegativeZero(e)}var Dn=new G("tag:yaml.org,2002:int",{kind:"scalar",resolve:Dt,construct:Yt,predicate:Bt,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ht=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Wt(e){return!(e===null||!Ht.test(e)||e[e.length-1]==="_")}function Ut(e){var n,r;return n=e.replace(/_/g,"").toLowerCase(),r=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:r*parseFloat(n,10)}var zt=/^[-+]?[0-9]+e/;function Xt(e,n){var r;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(X.isNegativeZero(e))return"-0.0";return r=e.toString(10),zt.test(r)?r.replace("e",".e"):r}function Gt(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||X.isNegativeZero(e))}var Yn=new G("tag:yaml.org,2002:float",{kind:"scalar",resolve:Wt,construct:Ut,predicate:Gt,represent:Xt,defaultStyle:"lowercase"}),Bn=In.extend({implicit:[Rn,Pn,Dn,Yn]}),Hn=Bn,Wn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Un=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function qt(e){return e===null?!1:Wn.exec(e)!==null||Un.exec(e)!==null}function Kt(e){var n,r,t,i,l,o,a,c=0,s=null,p,h,u;if(n=Wn.exec(e),n===null&&(n=Un.exec(e)),n===null)throw new Error("Date resolve error");if(r=+n[1],t=+n[2]-1,i=+n[3],!n[4])return new Date(Date.UTC(r,t,i));if(l=+n[4],o=+n[5],a=+n[6],n[7]){for(c=n[7].slice(0,3);c.length<3;)c+="0";c=+c}return n[9]&&(p=+n[10],h=+(n[11]||0),s=(p*60+h)*6e4,n[9]==="-"&&(s=-s)),u=new Date(Date.UTC(r,t,i,l,o,a,c)),s&&u.setTime(u.getTime()-s),u}function Vt(e){return e.toISOString()}var zn=new G("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:qt,construct:Kt,instanceOf:Date,represent:Vt});function Zt(e){return e==="<<"||e===null}var Xn=new G("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Zt}),Je=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
26
- \r`;function Jt(e){if(e===null)return!1;var n,r,t=0,i=e.length,l=Je;for(r=0;r<i;r++)if(n=l.indexOf(e.charAt(r)),!(n>64)){if(n<0)return!1;t+=6}return t%8===0}function Qt(e){var n,r,t=e.replace(/[\r\n=]/g,""),i=t.length,l=Je,o=0,a=[];for(n=0;n<i;n++)n%4===0&&n&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|l.indexOf(t.charAt(n));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function eo(e){var n="",r=0,t,i,l=e.length,o=Je;for(t=0;t<l;t++)t%3===0&&t&&(n+=o[r>>18&63],n+=o[r>>12&63],n+=o[r>>6&63],n+=o[r&63]),r=(r<<8)+e[t];return i=l%3,i===0?(n+=o[r>>18&63],n+=o[r>>12&63],n+=o[r>>6&63],n+=o[r&63]):i===2?(n+=o[r>>10&63],n+=o[r>>4&63],n+=o[r<<2&63],n+=o[64]):i===1&&(n+=o[r>>2&63],n+=o[r<<4&63],n+=o[64],n+=o[64]),n}function no(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Gn=new G("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Jt,construct:Qt,predicate:no,represent:eo}),ro=Object.prototype.hasOwnProperty,io=Object.prototype.toString;function to(e){if(e===null)return!0;var n=[],r,t,i,l,o,a=e;for(r=0,t=a.length;r<t;r+=1){if(i=a[r],o=!1,io.call(i)!=="[object Object]")return!1;for(l in i)if(ro.call(i,l))if(!o)o=!0;else return!1;if(!o)return!1;if(n.indexOf(l)===-1)n.push(l);else return!1}return!0}function oo(e){return e!==null?e:[]}var qn=new G("tag:yaml.org,2002:omap",{kind:"sequence",resolve:to,construct:oo}),lo=Object.prototype.toString;function ao(e){if(e===null)return!0;var n,r,t,i,l,o=e;for(l=new Array(o.length),n=0,r=o.length;n<r;n+=1){if(t=o[n],lo.call(t)!=="[object Object]"||(i=Object.keys(t),i.length!==1))return!1;l[n]=[i[0],t[i[0]]]}return!0}function co(e){if(e===null)return[];var n,r,t,i,l,o=e;for(l=new Array(o.length),n=0,r=o.length;n<r;n+=1)t=o[n],i=Object.keys(t),l[n]=[i[0],t[i[0]]];return l}var Kn=new G("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ao,construct:co}),so=Object.prototype.hasOwnProperty;function fo(e){if(e===null)return!0;var n,r=e;for(n in r)if(so.call(r,n)&&r[n]!==null)return!1;return!0}function uo(e){return e!==null?e:{}}var Vn=new G("tag:yaml.org,2002:set",{kind:"mapping",resolve:fo,construct:uo}),Qe=Hn.extend({implicit:[zn,Xn],explicit:[Gn,qn,Kn,Vn]}),pe=Object.prototype.hasOwnProperty,Ye=1,Zn=2,Jn=3,Be=4,en=1,po=2,Qn=3,ho=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,xo=/[\x85\u2028\u2029]/,mo=/[,\[\]\{\}]/,er=/^(?:!|!!|![a-z\-]+!)$/i,nr=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function rr(e){return Object.prototype.toString.call(e)}function ce(e){return e===10||e===13}function ye(e){return e===9||e===32}function ne(e){return e===9||e===32||e===10||e===13}function ke(e){return e===44||e===91||e===93||e===123||e===125}function yo(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function go(e){return e===120?2:e===117?4:e===85?8:0}function ko(e){return 48<=e&&e<=57?e-48:-1}function ir(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
27
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function vo(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function tr(e,n,r){n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[n]=r}for(var or=new Array(256),lr=new Array(256),ve=0;ve<256;ve++)or[ve]=ir(ve)?1:0,lr[ve]=ir(ve);function _o(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||Qe,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ar(e,n){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=wt(r),new J(n,r)}function b(e,n){throw ar(e,n)}function He(e,n){e.onWarning&&e.onWarning.call(null,ar(e,n))}var cr={YAML:function(n,r,t){var i,l,o;n.version!==null&&b(n,"duplication of %YAML directive"),t.length!==1&&b(n,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),i===null&&b(n,"ill-formed argument of the YAML directive"),l=parseInt(i[1],10),o=parseInt(i[2],10),l!==1&&b(n,"unacceptable YAML version of the document"),n.version=t[0],n.checkLineBreaks=o<2,o!==1&&o!==2&&He(n,"unsupported YAML version of the document")},TAG:function(n,r,t){var i,l;t.length!==2&&b(n,"TAG directive accepts exactly two arguments"),i=t[0],l=t[1],er.test(i)||b(n,"ill-formed tag handle (first argument) of the TAG directive"),pe.call(n.tagMap,i)&&b(n,'there is a previously declared suffix for "'+i+'" tag handle'),nr.test(l)||b(n,"ill-formed tag prefix (second argument) of the TAG directive");try{l=decodeURIComponent(l)}catch{b(n,"tag prefix is malformed: "+l)}n.tagMap[i]=l}};function de(e,n,r,t){var i,l,o,a;if(n<r){if(a=e.input.slice(n,r),t)for(i=0,l=a.length;i<l;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||b(e,"expected valid JSON character");else ho.test(a)&&b(e,"the stream contains non-printable characters");e.result+=a}}function sr(e,n,r,t){var i,l,o,a;for(X.isObject(r)||b(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)l=i[o],pe.call(n,l)||(tr(n,l,r[l]),t[l]=!0)}function _e(e,n,r,t,i,l,o,a,c){var s,p;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),s=0,p=i.length;s<p;s+=1)Array.isArray(i[s])&&b(e,"nested arrays are not supported inside keys"),typeof i=="object"&&rr(i[s])==="[object Object]"&&(i[s]="[object Object]");if(typeof i=="object"&&rr(i)==="[object Object]"&&(i="[object Object]"),i=String(i),n===null&&(n={}),t==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(s=0,p=l.length;s<p;s+=1)sr(e,n,l[s],r);else sr(e,n,l,r);else!e.json&&!pe.call(r,i)&&pe.call(n,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,b(e,"duplicated mapping key")),tr(n,i,l),delete r[i];return n}function nn(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):b(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function H(e,n,r){for(var t=0,i=e.input.charCodeAt(e.position);i!==0;){for(;ye(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(n&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(ce(i))for(nn(e),i=e.input.charCodeAt(e.position),t++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&t!==0&&e.lineIndent<r&&He(e,"deficient indentation"),t}function We(e){var n=e.position,r;return r=e.input.charCodeAt(n),!!((r===45||r===46)&&r===e.input.charCodeAt(n+1)&&r===e.input.charCodeAt(n+2)&&(n+=3,r=e.input.charCodeAt(n),r===0||ne(r)))}function rn(e,n){n===1?e.result+=" ":n>1&&(e.result+=X.repeat(`
28
- `,n-1))}function bo(e,n,r){var t,i,l,o,a,c,s,p,h=e.kind,u=e.result,f;if(f=e.input.charCodeAt(e.position),ne(f)||ke(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(i=e.input.charCodeAt(e.position+1),ne(i)||r&&ke(i)))return!1;for(e.kind="scalar",e.result="",l=o=e.position,a=!1;f!==0;){if(f===58){if(i=e.input.charCodeAt(e.position+1),ne(i)||r&&ke(i))break}else if(f===35){if(t=e.input.charCodeAt(e.position-1),ne(t))break}else{if(e.position===e.lineStart&&We(e)||r&&ke(f))break;if(ce(f))if(c=e.line,s=e.lineStart,p=e.lineIndent,H(e,!1,-1),e.lineIndent>=n){a=!0,f=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=s,e.lineIndent=p;break}}a&&(de(e,l,o,!1),rn(e,e.line-c),l=o=e.position,a=!1),ye(f)||(o=e.position+1),f=e.input.charCodeAt(++e.position)}return de(e,l,o,!1),e.result?!0:(e.kind=h,e.result=u,!1)}function Ao(e,n){var r,t,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,t=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(de(e,t,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)t=e.position,e.position++,i=e.position;else return!0;else ce(r)?(de(e,t,i,!0),rn(e,H(e,!1,n)),t=i=e.position):e.position===e.lineStart&&We(e)?b(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);b(e,"unexpected end of the stream within a single quoted scalar")}function wo(e,n){var r,t,i,l,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=t=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return de(e,r,e.position,!0),e.position++,!0;if(a===92){if(de(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),ce(a))H(e,!1,n);else if(a<256&&or[a])e.result+=lr[a],e.position++;else if((o=go(a))>0){for(i=o,l=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=yo(a))>=0?l=(l<<4)+o:b(e,"expected hexadecimal character");e.result+=vo(l),e.position++}else b(e,"unknown escape sequence");r=t=e.position}else ce(a)?(de(e,r,t,!0),rn(e,H(e,!1,n)),r=t=e.position):e.position===e.lineStart&&We(e)?b(e,"unexpected end of the document within a double quoted scalar"):(e.position++,t=e.position)}b(e,"unexpected end of the stream within a double quoted scalar")}function Co(e,n){var r=!0,t,i,l,o=e.tag,a,c=e.anchor,s,p,h,u,f,m=Object.create(null),g,_,k,v;if(v=e.input.charCodeAt(e.position),v===91)p=93,f=!1,a=[];else if(v===123)p=125,f=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),v=e.input.charCodeAt(++e.position);v!==0;){if(H(e,!0,n),v=e.input.charCodeAt(e.position),v===p)return e.position++,e.tag=o,e.anchor=c,e.kind=f?"mapping":"sequence",e.result=a,!0;r?v===44&&b(e,"expected the node content, but found ','"):b(e,"missed comma between flow collection entries"),_=g=k=null,h=u=!1,v===63&&(s=e.input.charCodeAt(e.position+1),ne(s)&&(h=u=!0,e.position++,H(e,!0,n))),t=e.line,i=e.lineStart,l=e.position,be(e,n,Ye,!1,!0),_=e.tag,g=e.result,H(e,!0,n),v=e.input.charCodeAt(e.position),(u||e.line===t)&&v===58&&(h=!0,v=e.input.charCodeAt(++e.position),H(e,!0,n),be(e,n,Ye,!1,!0),k=e.result),f?_e(e,a,m,_,g,k,t,i,l):h?a.push(_e(e,null,m,_,g,k,t,i,l)):a.push(g),H(e,!0,n),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}b(e,"unexpected end of the stream within a flow collection")}function $o(e,n){var r,t,i=en,l=!1,o=!1,a=n,c=0,s=!1,p,h;if(h=e.input.charCodeAt(e.position),h===124)t=!1;else if(h===62)t=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)en===i?i=h===43?Qn:po:b(e,"repeat of a chomping mode identifier");else if((p=ko(h))>=0)p===0?b(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?b(e,"repeat of an indentation width identifier"):(a=n+p-1,o=!0);else break;if(ye(h)){do h=e.input.charCodeAt(++e.position);while(ye(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!ce(h)&&h!==0)}for(;h!==0;){for(nn(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),ce(h)){c++;continue}if(e.lineIndent<a){i===Qn?e.result+=X.repeat(`
21
+ `+e.mark.snippet),t+" "+r):t}function Te(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=jn(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Te.prototype=Object.create(Error.prototype),Te.prototype.constructor=Te,Te.prototype.toString=function(n){return this.name+": "+jn(this,n)};var J=Te;function Ke(e,n,r,t,i){var l="",o="",a=Math.floor(i/2)-1;return t-n>a&&(l=" ... ",n=t-a+l.length),r-t>a&&(o=" ...",r=t+a-o.length),{str:l+e.slice(n,r).replace(/\t/g,"→")+o,pos:t-n+l.length}}function Ve(e,n){return z.repeat(" ",n-e.length)+e}function $t(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var r=/\r?\n|\r|\0/g,t=[0],i=[],l,o=-1;l=r.exec(e.buffer);)i.push(l.index),t.push(l.index+l[0].length),e.position<=l.index&&o<0&&(o=t.length-2);o<0&&(o=t.length-1);var a="",c,f,u=Math.min(e.line+n.linesAfter,i.length).toString().length,h=n.maxLength-(n.indent+u+3);for(c=1;c<=n.linesBefore&&!(o-c<0);c++)f=Ke(e.buffer,t[o-c],i[o-c],e.position-(t[o]-t[o-c]),h),a=z.repeat(" ",n.indent)+Ve((e.line-c+1).toString(),u)+" | "+f.str+`
22
+ `+a;for(f=Ke(e.buffer,t[o],i[o],e.position,h),a+=z.repeat(" ",n.indent)+Ve((e.line+1).toString(),u)+" | "+f.str+`
23
+ `,a+=z.repeat("-",n.indent+u+3+f.pos)+`^
24
+ `,c=1;c<=n.linesAfter&&!(o+c>=i.length);c++)f=Ke(e.buffer,t[o+c],i[o+c],e.position-(t[o]-t[o+c]),h),a+=z.repeat(" ",n.indent)+Ve((e.line+c+1).toString(),u)+" | "+f.str+`
25
+ `;return a.replace(/\n$/,"")}var Ct=$t,St=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Et=["scalar","sequence","mapping"];function Tt(e){var n={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(t){n[String(t)]=r})}),n}function Nt(e,n){if(n=n||{},Object.keys(n).forEach(function(r){if(St.indexOf(r)===-1)throw new J('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(r){return r},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=Tt(n.styleAliases||null),Et.indexOf(this.kind)===-1)throw new J('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var G=Nt;function On(e,n){var r=[];return e[n].forEach(function(t){var i=r.length;r.forEach(function(l,o){l.tag===t.tag&&l.kind===t.kind&&l.multi===t.multi&&(i=o)}),r[i]=t}),r}function Mt(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,r;function t(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(n=0,r=arguments.length;n<r;n+=1)arguments[n].forEach(t);return e}function Ze(e){return this.extend(e)}Ze.prototype.extend=function(n){var r=[],t=[];if(n instanceof G)t.push(n);else if(Array.isArray(n))t=t.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(r=r.concat(n.implicit)),n.explicit&&(t=t.concat(n.explicit));else throw new J("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(l){if(!(l instanceof G))throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(l.loadKind&&l.loadKind!=="scalar")throw new J("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(l.multi)throw new J("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(l){if(!(l instanceof G))throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Ze.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(t),i.compiledImplicit=On(i,"implicit"),i.compiledExplicit=On(i,"explicit"),i.compiledTypeMap=Mt(i.compiledImplicit,i.compiledExplicit),i};var Ln=Ze,Fn=new G("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),In=new G("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Rn=new G("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Pn=new Ln({explicit:[Fn,In,Rn]});function jt(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function Ot(){return null}function Lt(e){return e===null}var Dn=new G("tag:yaml.org,2002:null",{kind:"scalar",resolve:jt,construct:Ot,predicate:Lt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Ft(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function It(e){return e==="true"||e==="True"||e==="TRUE"}function Rt(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Yn=new G("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ft,construct:It,predicate:Rt,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Pt(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Dt(e){return 48<=e&&e<=55}function Yt(e){return 48<=e&&e<=57}function Bt(e){if(e===null)return!1;var n=e.length,r=0,t=!1,i;if(!n)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===n)return!0;if(i=e[++r],i==="b"){for(r++;r<n;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;t=!0}return t&&i!=="_"}if(i==="x"){for(r++;r<n;r++)if(i=e[r],i!=="_"){if(!Pt(e.charCodeAt(r)))return!1;t=!0}return t&&i!=="_"}if(i==="o"){for(r++;r<n;r++)if(i=e[r],i!=="_"){if(!Dt(e.charCodeAt(r)))return!1;t=!0}return t&&i!=="_"}}if(i==="_")return!1;for(;r<n;r++)if(i=e[r],i!=="_"){if(!Yt(e.charCodeAt(r)))return!1;t=!0}return!(!t||i==="_")}function Ht(e){var n=e,r=1,t;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),t=n[0],(t==="-"||t==="+")&&(t==="-"&&(r=-1),n=n.slice(1),t=n[0]),n==="0")return 0;if(t==="0"){if(n[1]==="b")return r*parseInt(n.slice(2),2);if(n[1]==="x")return r*parseInt(n.slice(2),16);if(n[1]==="o")return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)}function Wt(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!z.isNegativeZero(e)}var Bn=new G("tag:yaml.org,2002:int",{kind:"scalar",resolve:Bt,construct:Ht,predicate:Wt,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ut=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function zt(e){return!(e===null||!Ut.test(e)||e[e.length-1]==="_")}function Xt(e){var n,r;return n=e.replace(/_/g,"").toLowerCase(),r=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:r*parseFloat(n,10)}var Gt=/^[-+]?[0-9]+e/;function qt(e,n){var r;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(z.isNegativeZero(e))return"-0.0";return r=e.toString(10),Gt.test(r)?r.replace("e",".e"):r}function Kt(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||z.isNegativeZero(e))}var Hn=new G("tag:yaml.org,2002:float",{kind:"scalar",resolve:zt,construct:Xt,predicate:Kt,represent:qt,defaultStyle:"lowercase"}),Wn=Pn.extend({implicit:[Dn,Yn,Bn,Hn]}),Un=Wn,zn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Xn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Vt(e){return e===null?!1:zn.exec(e)!==null||Xn.exec(e)!==null}function Zt(e){var n,r,t,i,l,o,a,c=0,f=null,u,h,p;if(n=zn.exec(e),n===null&&(n=Xn.exec(e)),n===null)throw new Error("Date resolve error");if(r=+n[1],t=+n[2]-1,i=+n[3],!n[4])return new Date(Date.UTC(r,t,i));if(l=+n[4],o=+n[5],a=+n[6],n[7]){for(c=n[7].slice(0,3);c.length<3;)c+="0";c=+c}return n[9]&&(u=+n[10],h=+(n[11]||0),f=(u*60+h)*6e4,n[9]==="-"&&(f=-f)),p=new Date(Date.UTC(r,t,i,l,o,a,c)),f&&p.setTime(p.getTime()-f),p}function Jt(e){return e.toISOString()}var Gn=new G("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Vt,construct:Zt,instanceOf:Date,represent:Jt});function Qt(e){return e==="<<"||e===null}var qn=new G("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Qt}),Je=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
26
+ \r`;function eo(e){if(e===null)return!1;var n,r,t=0,i=e.length,l=Je;for(r=0;r<i;r++)if(n=l.indexOf(e.charAt(r)),!(n>64)){if(n<0)return!1;t+=6}return t%8===0}function no(e){var n,r,t=e.replace(/[\r\n=]/g,""),i=t.length,l=Je,o=0,a=[];for(n=0;n<i;n++)n%4===0&&n&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|l.indexOf(t.charAt(n));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function ro(e){var n="",r=0,t,i,l=e.length,o=Je;for(t=0;t<l;t++)t%3===0&&t&&(n+=o[r>>18&63],n+=o[r>>12&63],n+=o[r>>6&63],n+=o[r&63]),r=(r<<8)+e[t];return i=l%3,i===0?(n+=o[r>>18&63],n+=o[r>>12&63],n+=o[r>>6&63],n+=o[r&63]):i===2?(n+=o[r>>10&63],n+=o[r>>4&63],n+=o[r<<2&63],n+=o[64]):i===1&&(n+=o[r>>2&63],n+=o[r<<4&63],n+=o[64],n+=o[64]),n}function io(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Kn=new G("tag:yaml.org,2002:binary",{kind:"scalar",resolve:eo,construct:no,predicate:io,represent:ro}),to=Object.prototype.hasOwnProperty,oo=Object.prototype.toString;function lo(e){if(e===null)return!0;var n=[],r,t,i,l,o,a=e;for(r=0,t=a.length;r<t;r+=1){if(i=a[r],o=!1,oo.call(i)!=="[object Object]")return!1;for(l in i)if(to.call(i,l))if(!o)o=!0;else return!1;if(!o)return!1;if(n.indexOf(l)===-1)n.push(l);else return!1}return!0}function ao(e){return e!==null?e:[]}var Vn=new G("tag:yaml.org,2002:omap",{kind:"sequence",resolve:lo,construct:ao}),co=Object.prototype.toString;function so(e){if(e===null)return!0;var n,r,t,i,l,o=e;for(l=new Array(o.length),n=0,r=o.length;n<r;n+=1){if(t=o[n],co.call(t)!=="[object Object]"||(i=Object.keys(t),i.length!==1))return!1;l[n]=[i[0],t[i[0]]]}return!0}function fo(e){if(e===null)return[];var n,r,t,i,l,o=e;for(l=new Array(o.length),n=0,r=o.length;n<r;n+=1)t=o[n],i=Object.keys(t),l[n]=[i[0],t[i[0]]];return l}var Zn=new G("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:so,construct:fo}),uo=Object.prototype.hasOwnProperty;function po(e){if(e===null)return!0;var n,r=e;for(n in r)if(uo.call(r,n)&&r[n]!==null)return!1;return!0}function ho(e){return e!==null?e:{}}var Jn=new G("tag:yaml.org,2002:set",{kind:"mapping",resolve:po,construct:ho}),Qe=Un.extend({implicit:[Gn,qn],explicit:[Kn,Vn,Zn,Jn]}),pe=Object.prototype.hasOwnProperty,Ye=1,Qn=2,er=3,Be=4,en=1,xo=2,nr=3,mo=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,yo=/[\x85\u2028\u2029]/,go=/[,\[\]\{\}]/,rr=/^(?:!|!!|![a-z\-]+!)$/i,ir=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function tr(e){return Object.prototype.toString.call(e)}function ae(e){return e===10||e===13}function ye(e){return e===9||e===32}function ne(e){return e===9||e===32||e===10||e===13}function ke(e){return e===44||e===91||e===93||e===123||e===125}function ko(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function vo(e){return e===120?2:e===117?4:e===85?8:0}function _o(e){return 48<=e&&e<=57?e-48:-1}function or(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
27
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function bo(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function lr(e,n,r){n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[n]=r}for(var ar=new Array(256),cr=new Array(256),ve=0;ve<256;ve++)ar[ve]=or(ve)?1:0,cr[ve]=or(ve);function Ao(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||Qe,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function sr(e,n){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Ct(r),new J(n,r)}function A(e,n){throw sr(e,n)}function He(e,n){e.onWarning&&e.onWarning.call(null,sr(e,n))}var fr={YAML:function(n,r,t){var i,l,o;n.version!==null&&A(n,"duplication of %YAML directive"),t.length!==1&&A(n,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),i===null&&A(n,"ill-formed argument of the YAML directive"),l=parseInt(i[1],10),o=parseInt(i[2],10),l!==1&&A(n,"unacceptable YAML version of the document"),n.version=t[0],n.checkLineBreaks=o<2,o!==1&&o!==2&&He(n,"unsupported YAML version of the document")},TAG:function(n,r,t){var i,l;t.length!==2&&A(n,"TAG directive accepts exactly two arguments"),i=t[0],l=t[1],rr.test(i)||A(n,"ill-formed tag handle (first argument) of the TAG directive"),pe.call(n.tagMap,i)&&A(n,'there is a previously declared suffix for "'+i+'" tag handle'),ir.test(l)||A(n,"ill-formed tag prefix (second argument) of the TAG directive");try{l=decodeURIComponent(l)}catch{A(n,"tag prefix is malformed: "+l)}n.tagMap[i]=l}};function de(e,n,r,t){var i,l,o,a;if(n<r){if(a=e.input.slice(n,r),t)for(i=0,l=a.length;i<l;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||A(e,"expected valid JSON character");else mo.test(a)&&A(e,"the stream contains non-printable characters");e.result+=a}}function ur(e,n,r,t){var i,l,o,a;for(z.isObject(r)||A(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)l=i[o],pe.call(n,l)||(lr(n,l,r[l]),t[l]=!0)}function _e(e,n,r,t,i,l,o,a,c){var f,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,u=i.length;f<u;f+=1)Array.isArray(i[f])&&A(e,"nested arrays are not supported inside keys"),typeof i=="object"&&tr(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&tr(i)==="[object Object]"&&(i="[object Object]"),i=String(i),n===null&&(n={}),t==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(f=0,u=l.length;f<u;f+=1)ur(e,n,l[f],r);else ur(e,n,l,r);else!e.json&&!pe.call(r,i)&&pe.call(n,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,A(e,"duplicated mapping key")),lr(n,i,l),delete r[i];return n}function nn(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):A(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function B(e,n,r){for(var t=0,i=e.input.charCodeAt(e.position);i!==0;){for(;ye(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(n&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(ae(i))for(nn(e),i=e.input.charCodeAt(e.position),t++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&t!==0&&e.lineIndent<r&&He(e,"deficient indentation"),t}function We(e){var n=e.position,r;return r=e.input.charCodeAt(n),!!((r===45||r===46)&&r===e.input.charCodeAt(n+1)&&r===e.input.charCodeAt(n+2)&&(n+=3,r=e.input.charCodeAt(n),r===0||ne(r)))}function rn(e,n){n===1?e.result+=" ":n>1&&(e.result+=z.repeat(`
28
+ `,n-1))}function wo(e,n,r){var t,i,l,o,a,c,f,u,h=e.kind,p=e.result,x;if(x=e.input.charCodeAt(e.position),ne(x)||ke(x)||x===35||x===38||x===42||x===33||x===124||x===62||x===39||x===34||x===37||x===64||x===96||(x===63||x===45)&&(i=e.input.charCodeAt(e.position+1),ne(i)||r&&ke(i)))return!1;for(e.kind="scalar",e.result="",l=o=e.position,a=!1;x!==0;){if(x===58){if(i=e.input.charCodeAt(e.position+1),ne(i)||r&&ke(i))break}else if(x===35){if(t=e.input.charCodeAt(e.position-1),ne(t))break}else{if(e.position===e.lineStart&&We(e)||r&&ke(x))break;if(ae(x))if(c=e.line,f=e.lineStart,u=e.lineIndent,B(e,!1,-1),e.lineIndent>=n){a=!0,x=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=f,e.lineIndent=u;break}}a&&(de(e,l,o,!1),rn(e,e.line-c),l=o=e.position,a=!1),ye(x)||(o=e.position+1),x=e.input.charCodeAt(++e.position)}return de(e,l,o,!1),e.result?!0:(e.kind=h,e.result=p,!1)}function $o(e,n){var r,t,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,t=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(de(e,t,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)t=e.position,e.position++,i=e.position;else return!0;else ae(r)?(de(e,t,i,!0),rn(e,B(e,!1,n)),t=i=e.position):e.position===e.lineStart&&We(e)?A(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);A(e,"unexpected end of the stream within a single quoted scalar")}function Co(e,n){var r,t,i,l,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=t=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return de(e,r,e.position,!0),e.position++,!0;if(a===92){if(de(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),ae(a))B(e,!1,n);else if(a<256&&ar[a])e.result+=cr[a],e.position++;else if((o=vo(a))>0){for(i=o,l=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=ko(a))>=0?l=(l<<4)+o:A(e,"expected hexadecimal character");e.result+=bo(l),e.position++}else A(e,"unknown escape sequence");r=t=e.position}else ae(a)?(de(e,r,t,!0),rn(e,B(e,!1,n)),r=t=e.position):e.position===e.lineStart&&We(e)?A(e,"unexpected end of the document within a double quoted scalar"):(e.position++,t=e.position)}A(e,"unexpected end of the stream within a double quoted scalar")}function So(e,n){var r=!0,t,i,l,o=e.tag,a,c=e.anchor,f,u,h,p,x,m=Object.create(null),y,v,k,_;if(_=e.input.charCodeAt(e.position),_===91)u=93,x=!1,a=[];else if(_===123)u=125,x=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),_=e.input.charCodeAt(++e.position);_!==0;){if(B(e,!0,n),_=e.input.charCodeAt(e.position),_===u)return e.position++,e.tag=o,e.anchor=c,e.kind=x?"mapping":"sequence",e.result=a,!0;r?_===44&&A(e,"expected the node content, but found ','"):A(e,"missed comma between flow collection entries"),v=y=k=null,h=p=!1,_===63&&(f=e.input.charCodeAt(e.position+1),ne(f)&&(h=p=!0,e.position++,B(e,!0,n))),t=e.line,i=e.lineStart,l=e.position,be(e,n,Ye,!1,!0),v=e.tag,y=e.result,B(e,!0,n),_=e.input.charCodeAt(e.position),(p||e.line===t)&&_===58&&(h=!0,_=e.input.charCodeAt(++e.position),B(e,!0,n),be(e,n,Ye,!1,!0),k=e.result),x?_e(e,a,m,v,y,k,t,i,l):h?a.push(_e(e,null,m,v,y,k,t,i,l)):a.push(y),B(e,!0,n),_=e.input.charCodeAt(e.position),_===44?(r=!0,_=e.input.charCodeAt(++e.position)):r=!1}A(e,"unexpected end of the stream within a flow collection")}function Eo(e,n){var r,t,i=en,l=!1,o=!1,a=n,c=0,f=!1,u,h;if(h=e.input.charCodeAt(e.position),h===124)t=!1;else if(h===62)t=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)en===i?i=h===43?nr:xo:A(e,"repeat of a chomping mode identifier");else if((u=_o(h))>=0)u===0?A(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?A(e,"repeat of an indentation width identifier"):(a=n+u-1,o=!0);else break;if(ye(h)){do h=e.input.charCodeAt(++e.position);while(ye(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!ae(h)&&h!==0)}for(;h!==0;){for(nn(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),ae(h)){c++;continue}if(e.lineIndent<a){i===nr?e.result+=z.repeat(`
29
29
  `,l?1+c:c):i===en&&l&&(e.result+=`
30
- `);break}for(t?ye(h)?(s=!0,e.result+=X.repeat(`
31
- `,l?1+c:c)):s?(s=!1,e.result+=X.repeat(`
32
- `,c+1)):c===0?l&&(e.result+=" "):e.result+=X.repeat(`
33
- `,c):e.result+=X.repeat(`
34
- `,l?1+c:c),l=!0,o=!0,c=0,r=e.position;!ce(h)&&h!==0;)h=e.input.charCodeAt(++e.position);de(e,r,e.position,!1)}return!0}function fr(e,n){var r,t=e.tag,i=e.anchor,l=[],o,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,b(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!ne(o))));){if(a=!0,e.position++,H(e,!0,-1)&&e.lineIndent<=n){l.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,be(e,n,Jn,!1,!0),l.push(e.result),H(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>n)&&c!==0)b(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return a?(e.tag=t,e.anchor=i,e.kind="sequence",e.result=l,!0):!1}function So(e,n,r){var t,i,l,o,a,c,s=e.tag,p=e.anchor,h={},u=Object.create(null),f=null,m=null,g=null,_=!1,k=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),v=e.input.charCodeAt(e.position);v!==0;){if(!_&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,b(e,"tab characters must not be used in indentation")),t=e.input.charCodeAt(e.position+1),l=e.line,(v===63||v===58)&&ne(t))v===63?(_&&(_e(e,h,u,f,m,null,o,a,c),f=m=g=null),k=!0,_=!0,i=!0):_?(_=!1,i=!0):b(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=t;else{if(o=e.line,a=e.lineStart,c=e.position,!be(e,r,Zn,!1,!0))break;if(e.line===l){for(v=e.input.charCodeAt(e.position);ye(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),ne(v)||b(e,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(_e(e,h,u,f,m,null,o,a,c),f=m=g=null),k=!0,_=!1,i=!1,f=e.tag,m=e.result;else if(k)b(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=p,!0}else if(k)b(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=s,e.anchor=p,!0}if((e.line===l||e.lineIndent>n)&&(_&&(o=e.line,a=e.lineStart,c=e.position),be(e,n,Be,!0,i)&&(_?m=e.result:g=e.result),_||(_e(e,h,u,f,m,g,o,a,c),f=m=g=null),H(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===l||e.lineIndent>n)&&v!==0)b(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return _&&_e(e,h,u,f,m,null,o,a,c),k&&(e.tag=s,e.anchor=p,e.kind="mapping",e.result=h),k}function Eo(e){var n,r=!1,t=!1,i,l,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&b(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(t=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",n=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(l=e.input.slice(n,e.position),o=e.input.charCodeAt(++e.position)):b(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ne(o);)o===33&&(t?b(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(n-1,e.position+1),er.test(i)||b(e,"named tag handle cannot contain such characters"),t=!0,n=e.position+1)),o=e.input.charCodeAt(++e.position);l=e.input.slice(n,e.position),mo.test(l)&&b(e,"tag suffix cannot contain flow indicator characters")}l&&!nr.test(l)&&b(e,"tag name cannot contain such characters: "+l);try{l=decodeURIComponent(l)}catch{b(e,"tag name is malformed: "+l)}return r?e.tag=l:pe.call(e.tagMap,i)?e.tag=e.tagMap[i]+l:i==="!"?e.tag="!"+l:i==="!!"?e.tag="tag:yaml.org,2002:"+l:b(e,'undeclared tag handle "'+i+'"'),!0}function To(e){var n,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&b(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),n=e.position;r!==0&&!ne(r)&&!ke(r);)r=e.input.charCodeAt(++e.position);return e.position===n&&b(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function No(e){var n,r,t;if(t=e.input.charCodeAt(e.position),t!==42)return!1;for(t=e.input.charCodeAt(++e.position),n=e.position;t!==0&&!ne(t)&&!ke(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&b(e,"name of an alias node must contain at least one character"),r=e.input.slice(n,e.position),pe.call(e.anchorMap,r)||b(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],H(e,!0,-1),!0}function be(e,n,r,t,i){var l,o,a,c=1,s=!1,p=!1,h,u,f,m,g,_;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,l=o=a=Be===r||Jn===r,t&&H(e,!0,-1)&&(s=!0,e.lineIndent>n?c=1:e.lineIndent===n?c=0:e.lineIndent<n&&(c=-1)),c===1)for(;Eo(e)||To(e);)H(e,!0,-1)?(s=!0,a=l,e.lineIndent>n?c=1:e.lineIndent===n?c=0:e.lineIndent<n&&(c=-1)):a=!1;if(a&&(a=s||i),(c===1||Be===r)&&(Ye===r||Zn===r?g=n:g=n+1,_=e.position-e.lineStart,c===1?a&&(fr(e,_)||So(e,_,g))||Co(e,g)?p=!0:(o&&$o(e,g)||Ao(e,g)||wo(e,g)?p=!0:No(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&b(e,"alias node should not have any properties")):bo(e,g,Ye===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(p=a&&fr(e,_))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&b(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,u=e.implicitTypes.length;h<u;h+=1)if(m=e.implicitTypes[h],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(pe.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,f=e.typeMap.multi[e.kind||"fallback"],h=0,u=f.length;h<u;h+=1)if(e.tag.slice(0,f[h].tag.length)===f[h].tag){m=f[h];break}m||b(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&b(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):b(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function Mo(e){var n=e.position,r,t,i,l=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(H(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(l=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!ne(o);)o=e.input.charCodeAt(++e.position);for(t=e.input.slice(r,e.position),i=[],t.length<1&&b(e,"directive name must not be less than one character in length");o!==0;){for(;ye(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ce(o));break}if(ce(o))break;for(r=e.position;o!==0&&!ne(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&nn(e),pe.call(cr,t)?cr[t](e,t,i):He(e,'unknown document directive "'+t+'"')}if(H(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,H(e,!0,-1)):l&&b(e,"directives end mark is expected"),be(e,e.lineIndent-1,Be,!1,!0),H(e,!0,-1),e.checkLineBreaks&&xo.test(e.input.slice(n,e.position))&&He(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&We(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,H(e,!0,-1));return}if(e.position<e.length-1)b(e,"end of the stream or a document separator is expected");else return}function ur(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
35
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new _o(e,n),t=e.indexOf("\0");for(t!==-1&&(r.position=t,b(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Mo(r);return r.documents}function jo(e,n,r){n!==null&&typeof n=="object"&&typeof r>"u"&&(r=n,n=null);var t=ur(e,r);if(typeof n!="function")return t;for(var i=0,l=t.length;i<l;i+=1)n(t[i])}function Oo(e,n){var r=ur(e,n);if(r.length!==0){if(r.length===1)return r[0];throw new J("expected a single document in the stream, but found more")}}var Lo=jo,Fo=Oo,pr={loadAll:Lo,load:Fo},dr=Object.prototype.toString,hr=Object.prototype.hasOwnProperty,tn=65279,Io=9,Te=10,Ro=13,Po=32,Do=33,Yo=34,on=35,Bo=37,Ho=38,Wo=39,Uo=42,xr=44,zo=45,Ue=58,Xo=61,Go=62,qo=63,Ko=64,mr=91,yr=93,Vo=96,gr=123,Zo=124,kr=125,V={};V[0]="\\0",V[7]="\\a",V[8]="\\b",V[9]="\\t",V[10]="\\n",V[11]="\\v",V[12]="\\f",V[13]="\\r",V[27]="\\e",V[34]='\\"',V[92]="\\\\",V[133]="\\N",V[160]="\\_",V[8232]="\\L",V[8233]="\\P";var Jo=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Qo=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function el(e,n){var r,t,i,l,o,a,c;if(n===null)return{};for(r={},t=Object.keys(n),i=0,l=t.length;i<l;i+=1)o=t[i],a=String(n[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&hr.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function nl(e){var n,r,t;if(n=e.toString(16).toUpperCase(),e<=255)r="x",t=2;else if(e<=65535)r="u",t=4;else if(e<=4294967295)r="U",t=8;else throw new J("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+X.repeat("0",t-n.length)+n}var rl=1,Ne=2;function il(e){this.schema=e.schema||Qe,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=X.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=el(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Ne:rl,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function vr(e,n){for(var r=X.repeat(" ",n),t=0,i=-1,l="",o,a=e.length;t<a;)i=e.indexOf(`
30
+ `);break}for(t?ye(h)?(f=!0,e.result+=z.repeat(`
31
+ `,l?1+c:c)):f?(f=!1,e.result+=z.repeat(`
32
+ `,c+1)):c===0?l&&(e.result+=" "):e.result+=z.repeat(`
33
+ `,c):e.result+=z.repeat(`
34
+ `,l?1+c:c),l=!0,o=!0,c=0,r=e.position;!ae(h)&&h!==0;)h=e.input.charCodeAt(++e.position);de(e,r,e.position,!1)}return!0}function pr(e,n){var r,t=e.tag,i=e.anchor,l=[],o,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,A(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!ne(o))));){if(a=!0,e.position++,B(e,!0,-1)&&e.lineIndent<=n){l.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,be(e,n,er,!1,!0),l.push(e.result),B(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>n)&&c!==0)A(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return a?(e.tag=t,e.anchor=i,e.kind="sequence",e.result=l,!0):!1}function To(e,n,r){var t,i,l,o,a,c,f=e.tag,u=e.anchor,h={},p=Object.create(null),x=null,m=null,y=null,v=!1,k=!1,_;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),_=e.input.charCodeAt(e.position);_!==0;){if(!v&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,A(e,"tab characters must not be used in indentation")),t=e.input.charCodeAt(e.position+1),l=e.line,(_===63||_===58)&&ne(t))_===63?(v&&(_e(e,h,p,x,m,null,o,a,c),x=m=y=null),k=!0,v=!0,i=!0):v?(v=!1,i=!0):A(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,_=t;else{if(o=e.line,a=e.lineStart,c=e.position,!be(e,r,Qn,!1,!0))break;if(e.line===l){for(_=e.input.charCodeAt(e.position);ye(_);)_=e.input.charCodeAt(++e.position);if(_===58)_=e.input.charCodeAt(++e.position),ne(_)||A(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(_e(e,h,p,x,m,null,o,a,c),x=m=y=null),k=!0,v=!1,i=!1,x=e.tag,m=e.result;else if(k)A(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=u,!0}else if(k)A(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=u,!0}if((e.line===l||e.lineIndent>n)&&(v&&(o=e.line,a=e.lineStart,c=e.position),be(e,n,Be,!0,i)&&(v?m=e.result:y=e.result),v||(_e(e,h,p,x,m,y,o,a,c),x=m=y=null),B(e,!0,-1),_=e.input.charCodeAt(e.position)),(e.line===l||e.lineIndent>n)&&_!==0)A(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return v&&_e(e,h,p,x,m,null,o,a,c),k&&(e.tag=f,e.anchor=u,e.kind="mapping",e.result=h),k}function No(e){var n,r=!1,t=!1,i,l,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&A(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(t=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",n=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(l=e.input.slice(n,e.position),o=e.input.charCodeAt(++e.position)):A(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ne(o);)o===33&&(t?A(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(n-1,e.position+1),rr.test(i)||A(e,"named tag handle cannot contain such characters"),t=!0,n=e.position+1)),o=e.input.charCodeAt(++e.position);l=e.input.slice(n,e.position),go.test(l)&&A(e,"tag suffix cannot contain flow indicator characters")}l&&!ir.test(l)&&A(e,"tag name cannot contain such characters: "+l);try{l=decodeURIComponent(l)}catch{A(e,"tag name is malformed: "+l)}return r?e.tag=l:pe.call(e.tagMap,i)?e.tag=e.tagMap[i]+l:i==="!"?e.tag="!"+l:i==="!!"?e.tag="tag:yaml.org,2002:"+l:A(e,'undeclared tag handle "'+i+'"'),!0}function Mo(e){var n,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&A(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),n=e.position;r!==0&&!ne(r)&&!ke(r);)r=e.input.charCodeAt(++e.position);return e.position===n&&A(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function jo(e){var n,r,t;if(t=e.input.charCodeAt(e.position),t!==42)return!1;for(t=e.input.charCodeAt(++e.position),n=e.position;t!==0&&!ne(t)&&!ke(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&A(e,"name of an alias node must contain at least one character"),r=e.input.slice(n,e.position),pe.call(e.anchorMap,r)||A(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],B(e,!0,-1),!0}function be(e,n,r,t,i){var l,o,a,c=1,f=!1,u=!1,h,p,x,m,y,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,l=o=a=Be===r||er===r,t&&B(e,!0,-1)&&(f=!0,e.lineIndent>n?c=1:e.lineIndent===n?c=0:e.lineIndent<n&&(c=-1)),c===1)for(;No(e)||Mo(e);)B(e,!0,-1)?(f=!0,a=l,e.lineIndent>n?c=1:e.lineIndent===n?c=0:e.lineIndent<n&&(c=-1)):a=!1;if(a&&(a=f||i),(c===1||Be===r)&&(Ye===r||Qn===r?y=n:y=n+1,v=e.position-e.lineStart,c===1?a&&(pr(e,v)||To(e,v,y))||So(e,y)?u=!0:(o&&Eo(e,y)||$o(e,y)||Co(e,y)?u=!0:jo(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&A(e,"alias node should not have any properties")):wo(e,y,Ye===r)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=a&&pr(e,v))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&A(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,p=e.implicitTypes.length;h<p;h+=1)if(m=e.implicitTypes[h],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(pe.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,x=e.typeMap.multi[e.kind||"fallback"],h=0,p=x.length;h<p;h+=1)if(e.tag.slice(0,x[h].tag.length)===x[h].tag){m=x[h];break}m||A(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&A(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):A(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function Oo(e){var n=e.position,r,t,i,l=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(B(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(l=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!ne(o);)o=e.input.charCodeAt(++e.position);for(t=e.input.slice(r,e.position),i=[],t.length<1&&A(e,"directive name must not be less than one character in length");o!==0;){for(;ye(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ae(o));break}if(ae(o))break;for(r=e.position;o!==0&&!ne(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&nn(e),pe.call(fr,t)?fr[t](e,t,i):He(e,'unknown document directive "'+t+'"')}if(B(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,B(e,!0,-1)):l&&A(e,"directives end mark is expected"),be(e,e.lineIndent-1,Be,!1,!0),B(e,!0,-1),e.checkLineBreaks&&yo.test(e.input.slice(n,e.position))&&He(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&We(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,B(e,!0,-1));return}if(e.position<e.length-1)A(e,"end of the stream or a document separator is expected");else return}function dr(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
35
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Ao(e,n),t=e.indexOf("\0");for(t!==-1&&(r.position=t,A(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Oo(r);return r.documents}function Lo(e,n,r){n!==null&&typeof n=="object"&&typeof r>"u"&&(r=n,n=null);var t=dr(e,r);if(typeof n!="function")return t;for(var i=0,l=t.length;i<l;i+=1)n(t[i])}function Fo(e,n){var r=dr(e,n);if(r.length!==0){if(r.length===1)return r[0];throw new J("expected a single document in the stream, but found more")}}var Io=Lo,Ro=Fo,hr={loadAll:Io,load:Ro},xr=Object.prototype.toString,mr=Object.prototype.hasOwnProperty,tn=65279,Po=9,Ne=10,Do=13,Yo=32,Bo=33,Ho=34,on=35,Wo=37,Uo=38,zo=39,Xo=42,yr=44,Go=45,Ue=58,qo=61,Ko=62,Vo=63,Zo=64,gr=91,kr=93,Jo=96,vr=123,Qo=124,_r=125,V={};V[0]="\\0",V[7]="\\a",V[8]="\\b",V[9]="\\t",V[10]="\\n",V[11]="\\v",V[12]="\\f",V[13]="\\r",V[27]="\\e",V[34]='\\"',V[92]="\\\\",V[133]="\\N",V[160]="\\_",V[8232]="\\L",V[8233]="\\P";var el=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],nl=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function rl(e,n){var r,t,i,l,o,a,c;if(n===null)return{};for(r={},t=Object.keys(n),i=0,l=t.length;i<l;i+=1)o=t[i],a=String(n[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&mr.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function il(e){var n,r,t;if(n=e.toString(16).toUpperCase(),e<=255)r="x",t=2;else if(e<=65535)r="u",t=4;else if(e<=4294967295)r="U",t=8;else throw new J("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+z.repeat("0",t-n.length)+n}var tl=1,Me=2;function ol(e){this.schema=e.schema||Qe,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=z.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=rl(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Me:tl,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function br(e,n){for(var r=z.repeat(" ",n),t=0,i=-1,l="",o,a=e.length;t<a;)i=e.indexOf(`
36
36
  `,t),i===-1?(o=e.slice(t),t=a):(o=e.slice(t,i+1),t=i+1),o.length&&o!==`
37
37
  `&&(l+=r),l+=o;return l}function ln(e,n){return`
38
- `+X.repeat(" ",e.indent*n)}function tl(e,n){var r,t,i;for(r=0,t=e.implicitTypes.length;r<t;r+=1)if(i=e.implicitTypes[r],i.resolve(n))return!0;return!1}function ze(e){return e===Po||e===Io}function Me(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==tn||65536<=e&&e<=1114111}function _r(e){return Me(e)&&e!==tn&&e!==Ro&&e!==Te}function br(e,n,r){var t=_r(e),i=t&&!ze(e);return(r?t:t&&e!==xr&&e!==mr&&e!==yr&&e!==gr&&e!==kr)&&e!==on&&!(n===Ue&&!i)||_r(n)&&!ze(n)&&e===on||n===Ue&&i}function ol(e){return Me(e)&&e!==tn&&!ze(e)&&e!==zo&&e!==qo&&e!==Ue&&e!==xr&&e!==mr&&e!==yr&&e!==gr&&e!==kr&&e!==on&&e!==Ho&&e!==Uo&&e!==Do&&e!==Zo&&e!==Xo&&e!==Go&&e!==Wo&&e!==Yo&&e!==Bo&&e!==Ko&&e!==Vo}function ll(e){return!ze(e)&&e!==Ue}function je(e,n){var r=e.charCodeAt(n),t;return r>=55296&&r<=56319&&n+1<e.length&&(t=e.charCodeAt(n+1),t>=56320&&t<=57343)?(r-55296)*1024+t-56320+65536:r}function Ar(e){var n=/^\n* /;return n.test(e)}var wr=1,an=2,Cr=3,$r=4,Ae=5;function al(e,n,r,t,i,l,o,a){var c,s=0,p=null,h=!1,u=!1,f=t!==-1,m=-1,g=ol(je(e,0))&&ll(je(e,e.length-1));if(n||o)for(c=0;c<e.length;s>=65536?c+=2:c++){if(s=je(e,c),!Me(s))return Ae;g=g&&br(s,p,a),p=s}else{for(c=0;c<e.length;s>=65536?c+=2:c++){if(s=je(e,c),s===Te)h=!0,f&&(u=u||c-m-1>t&&e[m+1]!==" ",m=c);else if(!Me(s))return Ae;g=g&&br(s,p,a),p=s}u=u||f&&c-m-1>t&&e[m+1]!==" "}return!h&&!u?g&&!o&&!i(e)?wr:l===Ne?Ae:an:r>9&&Ar(e)?Ae:o?l===Ne?Ae:an:u?$r:Cr}function cl(e,n,r,t,i){e.dump=(function(){if(n.length===0)return e.quotingType===Ne?'""':"''";if(!e.noCompatMode&&(Jo.indexOf(n)!==-1||Qo.test(n)))return e.quotingType===Ne?'"'+n+'"':"'"+n+"'";var l=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-l),a=t||e.flowLevel>-1&&r>=e.flowLevel;function c(s){return tl(e,s)}switch(al(n,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!t,i)){case wr:return n;case an:return"'"+n.replace(/'/g,"''")+"'";case Cr:return"|"+Sr(n,e.indent)+Er(vr(n,l));case $r:return">"+Sr(n,e.indent)+Er(vr(sl(n,o),l));case Ae:return'"'+fl(n)+'"';default:throw new J("impossible error: invalid scalar style")}})()}function Sr(e,n){var r=Ar(e)?String(n):"",t=e[e.length-1]===`
38
+ `+z.repeat(" ",e.indent*n)}function ll(e,n){var r,t,i;for(r=0,t=e.implicitTypes.length;r<t;r+=1)if(i=e.implicitTypes[r],i.resolve(n))return!0;return!1}function ze(e){return e===Yo||e===Po}function je(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==tn||65536<=e&&e<=1114111}function Ar(e){return je(e)&&e!==tn&&e!==Do&&e!==Ne}function wr(e,n,r){var t=Ar(e),i=t&&!ze(e);return(r?t:t&&e!==yr&&e!==gr&&e!==kr&&e!==vr&&e!==_r)&&e!==on&&!(n===Ue&&!i)||Ar(n)&&!ze(n)&&e===on||n===Ue&&i}function al(e){return je(e)&&e!==tn&&!ze(e)&&e!==Go&&e!==Vo&&e!==Ue&&e!==yr&&e!==gr&&e!==kr&&e!==vr&&e!==_r&&e!==on&&e!==Uo&&e!==Xo&&e!==Bo&&e!==Qo&&e!==qo&&e!==Ko&&e!==zo&&e!==Ho&&e!==Wo&&e!==Zo&&e!==Jo}function cl(e){return!ze(e)&&e!==Ue}function Oe(e,n){var r=e.charCodeAt(n),t;return r>=55296&&r<=56319&&n+1<e.length&&(t=e.charCodeAt(n+1),t>=56320&&t<=57343)?(r-55296)*1024+t-56320+65536:r}function $r(e){var n=/^\n* /;return n.test(e)}var Cr=1,an=2,Sr=3,Er=4,Ae=5;function sl(e,n,r,t,i,l,o,a){var c,f=0,u=null,h=!1,p=!1,x=t!==-1,m=-1,y=al(Oe(e,0))&&cl(Oe(e,e.length-1));if(n||o)for(c=0;c<e.length;f>=65536?c+=2:c++){if(f=Oe(e,c),!je(f))return Ae;y=y&&wr(f,u,a),u=f}else{for(c=0;c<e.length;f>=65536?c+=2:c++){if(f=Oe(e,c),f===Ne)h=!0,x&&(p=p||c-m-1>t&&e[m+1]!==" ",m=c);else if(!je(f))return Ae;y=y&&wr(f,u,a),u=f}p=p||x&&c-m-1>t&&e[m+1]!==" "}return!h&&!p?y&&!o&&!i(e)?Cr:l===Me?Ae:an:r>9&&$r(e)?Ae:o?l===Me?Ae:an:p?Er:Sr}function fl(e,n,r,t,i){e.dump=(function(){if(n.length===0)return e.quotingType===Me?'""':"''";if(!e.noCompatMode&&(el.indexOf(n)!==-1||nl.test(n)))return e.quotingType===Me?'"'+n+'"':"'"+n+"'";var l=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-l),a=t||e.flowLevel>-1&&r>=e.flowLevel;function c(f){return ll(e,f)}switch(sl(n,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!t,i)){case Cr:return n;case an:return"'"+n.replace(/'/g,"''")+"'";case Sr:return"|"+Tr(n,e.indent)+Nr(br(n,l));case Er:return">"+Tr(n,e.indent)+Nr(br(ul(n,o),l));case Ae:return'"'+pl(n)+'"';default:throw new J("impossible error: invalid scalar style")}})()}function Tr(e,n){var r=$r(e)?String(n):"",t=e[e.length-1]===`
39
39
  `,i=t&&(e[e.length-2]===`
40
40
  `||e===`
41
41
  `),l=i?"+":t?"":"-";return r+l+`
42
- `}function Er(e){return e[e.length-1]===`
43
- `?e.slice(0,-1):e}function sl(e,n){for(var r=/(\n+)([^\n]*)/g,t=(function(){var s=e.indexOf(`
44
- `);return s=s!==-1?s:e.length,r.lastIndex=s,Tr(e.slice(0,s),n)})(),i=e[0]===`
42
+ `}function Nr(e){return e[e.length-1]===`
43
+ `?e.slice(0,-1):e}function ul(e,n){for(var r=/(\n+)([^\n]*)/g,t=(function(){var f=e.indexOf(`
44
+ `);return f=f!==-1?f:e.length,r.lastIndex=f,Mr(e.slice(0,f),n)})(),i=e[0]===`
45
45
  `||e[0]===" ",l,o;o=r.exec(e);){var a=o[1],c=o[2];l=c[0]===" ",t+=a+(!i&&!l&&c!==""?`
46
- `:"")+Tr(c,n),i=l}return t}function Tr(e,n){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,t,i=0,l,o=0,a=0,c="";t=r.exec(e);)a=t.index,a-i>n&&(l=o>i?o:a,c+=`
46
+ `:"")+Mr(c,n),i=l}return t}function Mr(e,n){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,t,i=0,l,o=0,a=0,c="";t=r.exec(e);)a=t.index,a-i>n&&(l=o>i?o:a,c+=`
47
47
  `+e.slice(i,l),i=l+1),o=a;return c+=`
48
48
  `,e.length-i>n&&o>i?c+=e.slice(i,o)+`
49
- `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function fl(e){for(var n="",r=0,t,i=0;i<e.length;r>=65536?i+=2:i++)r=je(e,i),t=V[r],!t&&Me(r)?(n+=e[i],r>=65536&&(n+=e[i+1])):n+=t||nl(r);return n}function ul(e,n,r){var t="",i=e.tag,l,o,a;for(l=0,o=r.length;l<o;l+=1)a=r[l],e.replacer&&(a=e.replacer.call(r,String(l),a)),(se(e,n,a,!1,!1)||typeof a>"u"&&se(e,n,null,!1,!1))&&(t!==""&&(t+=","+(e.condenseFlow?"":" ")),t+=e.dump);e.tag=i,e.dump="["+t+"]"}function Nr(e,n,r,t){var i="",l=e.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],e.replacer&&(c=e.replacer.call(r,String(o),c)),(se(e,n+1,c,!0,!0,!1,!0)||typeof c>"u"&&se(e,n+1,null,!0,!0,!1,!0))&&((!t||i!=="")&&(i+=ln(e,n)),e.dump&&Te===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=l,e.dump=i||"[]"}function pl(e,n,r){var t="",i=e.tag,l=Object.keys(r),o,a,c,s,p;for(o=0,a=l.length;o<a;o+=1)p="",t!==""&&(p+=", "),e.condenseFlow&&(p+='"'),c=l[o],s=r[c],e.replacer&&(s=e.replacer.call(r,c,s)),se(e,n,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),se(e,n,s,!1,!1)&&(p+=e.dump,t+=p));e.tag=i,e.dump="{"+t+"}"}function dl(e,n,r,t){var i="",l=e.tag,o=Object.keys(r),a,c,s,p,h,u;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new J("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)u="",(!t||i!=="")&&(u+=ln(e,n)),s=o[a],p=r[s],e.replacer&&(p=e.replacer.call(r,s,p)),se(e,n+1,s,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&Te===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=ln(e,n)),se(e,n+1,p,!0,h)&&(e.dump&&Te===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=l,e.dump=i||"{}"}function Mr(e,n,r){var t,i,l,o,a,c;for(i=r?e.explicitTypes:e.implicitTypes,l=0,o=i.length;l<o;l+=1)if(a=i[l],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof n=="object"&&n instanceof a.instanceOf)&&(!a.predicate||a.predicate(n))){if(r?a.multi&&a.representName?e.tag=a.representName(n):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,dr.call(a.represent)==="[object Function]")t=a.represent(n,c);else if(hr.call(a.represent,c))t=a.represent[c](n,c);else throw new J("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=t}return!0}return!1}function se(e,n,r,t,i,l,o){e.tag=null,e.dump=r,Mr(e,r,!1)||Mr(e,r,!0);var a=dr.call(e.dump),c=t,s;t&&(t=e.flowLevel<0||e.flowLevel>n);var p=a==="[object Object]"||a==="[object Array]",h,u;if(p&&(h=e.duplicates.indexOf(r),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&n>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(p&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),a==="[object Object]")t&&Object.keys(e.dump).length!==0?(dl(e,n,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(pl(e,n,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(a==="[object Array]")t&&e.dump.length!==0?(e.noArrayIndent&&!o&&n>0?Nr(e,n-1,e.dump,i):Nr(e,n,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(ul(e,n,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&cl(e,e.dump,n,l,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new J("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(s=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?s="!"+s:s.slice(0,18)==="tag:yaml.org,2002:"?s="!!"+s.slice(18):s="!<"+s+">",e.dump=s+" "+e.dump)}return!0}function hl(e,n){var r=[],t=[],i,l;for(cn(e,r,t),i=0,l=t.length;i<l;i+=1)n.duplicates.push(r[t[i]]);n.usedDuplicates=new Array(l)}function cn(e,n,r){var t,i,l;if(e!==null&&typeof e=="object")if(i=n.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(n.push(e),Array.isArray(e))for(i=0,l=e.length;i<l;i+=1)cn(e[i],n,r);else for(t=Object.keys(e),i=0,l=t.length;i<l;i+=1)cn(e[t[i]],n,r)}function xl(e,n){n=n||{};var r=new il(n);r.noRefs||hl(e,r);var t=e;return r.replacer&&(t=r.replacer.call({"":t},"",t)),se(r,0,t,!0,!0)?r.dump+`
50
- `:""}var ml=xl,yl={dump:ml};function sn(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var gl=G,kl=jn,vl=In,_l=Bn,bl=Hn,Al=Qe,wl=pr.load,Cl=pr.loadAll,$l=yl.dump,Sl=J,El={binary:Gn,float:Yn,map:Fn,null:Rn,pairs:Kn,set:Vn,timestamp:zn,bool:Pn,int:Dn,merge:Xn,omap:qn,seq:Ln,str:On},Tl=sn("safeLoad","load"),Nl=sn("safeLoadAll","loadAll"),Ml=sn("safeDump","dump"),jl={Type:gl,Schema:kl,FAILSAFE_SCHEMA:vl,JSON_SCHEMA:_l,CORE_SCHEMA:bl,DEFAULT_SCHEMA:Al,load:wl,loadAll:Cl,dump:$l,YAMLException:Sl,types:El,safeLoad:Tl,safeLoadAll:Nl,safeDump:Ml};function Ol(e){const n=e.match(/^(\d+)x(\d+)x(\d+)$/);return n?{width:parseInt(n[1],10),depth:parseInt(n[2],10),height:parseInt(n[3],10)}:null}function jr(e){const n=e.match(/^(\d+)x(\d+)$/);return n?{width:parseInt(n[1],10),height:parseInt(n[2],10)}:null}function Ll(e){const n=e.match(/^(-?\d+),(-?\d+)$/);return n?{x:parseInt(n[1],10),y:parseInt(n[2],10)}:null}function Fl(e){const n=e.match(/^(.+?)\s*@\s*(\d+)$/);return n?{name:n[1].trim(),elevation:parseInt(n[2],10)}:null}function Il(e,n,r){const t={},i=e.match(/\{([^}]+)\}\s*$/);if(i){const f=i[1].split(/\s+/);for(const m of f){const[g,_]=m.split("=");if(g&&_){const k=parseFloat(_);t[g]=isNaN(k)?_:k}}e=e.replace(/\{[^}]+\}\s*$/,"").trim()}const l=e.trim().split(/\s+/);if(l.length<4)return null;const o=l[0],a=l[1],c=l[2],s=l[3],p=Ll(c),h=Ol(s);if(!p||!h)return null;const u=r[a]||a;return{tier:n,label:o,color:u,x:p.x,y:p.y,width:h.width,depth:h.depth,height:h.height,...t}}function Rl(e){const n=jl.load(e);let r={width:1100,height:700};if(typeof n.canvas=="string"){const u=jr(n.canvas);u&&(r=u)}else n.canvas&&typeof n.canvas=="object"&&(r=n.canvas);let t={width:400,depth:280};if(typeof n.floor=="string"){const u=jr(n.floor);u&&(t={width:u.width,depth:u.height})}else n.floor&&typeof n.floor=="object"&&(t=n.floor);let i={x:r.width/2,y:r.height-80};n.origin&&typeof n.origin=="object"&&(i=n.origin);const l={};if(n.colors&&typeof n.colors=="object")for(const[u,f]of Object.entries(n.colors))l[u]=f;const o=[],a={dark:["#0f172a","#1e293b","#334155","#475569"],light:["#f1f5f9","#e0f2fe","#dbeafe","#ede9fe"]},c={dark:["#334155","#475569","#64748b","#94a3b8"],light:["#94a3b8","#7dd3fc","#93c5fd","#c4b5fd"]},s=n.theme||"dark";Array.isArray(n.tiers)&&n.tiers.forEach((u,f)=>{if(typeof u=="string"){const m=Fl(u);m&&o.push({name:m.name,elevation:m.elevation,floorColor:a[s][f]||a[s][0],floorOpacity:f===0?.95:.7-f*.1,borderColor:c[s][f]||c[s][0]})}else if(u&&typeof u=="object"){const m=u;o.push({name:m.name||`Tier ${f}`,elevation:m.elevation||f*150,floorColor:m.floorColor||a[s][f],floorOpacity:m.floorOpacity??(f===0?.95:.7-f*.1),borderColor:m.borderColor||c[s][f]})}});const p=[];if(n.nodes&&typeof n.nodes=="object"&&!Array.isArray(n.nodes)){const u=n.nodes;for(const[f,m]of Object.entries(u)){const g=parseInt(f,10);if(!(isNaN(g)||!Array.isArray(m))){for(const _ of m)if(typeof _=="string"){const k=Il(_,g,l);k&&p.push(k)}else if(_&&typeof _=="object"){const k=_;p.push({tier:g,label:k.label||"",color:l[k.color]||k.color||"slate",x:k.x||0,y:k.y||0,width:k.width||100,depth:k.depth||80,height:k.height||40,opacity:k.opacity,blur:k.blur,translucent:k.translucent})}}}}const h=[];if(Array.isArray(n.pillars)){for(const u of n.pillars)if(typeof u=="string"){const f=u.match(/^(-?\d+),(-?\d+)\s+(\d+)->(\d+)$/);f&&h.push({x:parseInt(f[1],10),y:parseInt(f[2],10),fromTier:parseInt(f[3],10),toTier:parseInt(f[4],10)})}else if(u&&typeof u=="object"){const f=u;h.push({x:f.x||0,y:f.y||0,fromTier:f.fromTier||0,toTier:f.toTier||1})}}return{title:n.title||"Untitled",style:n.style||void 0,description:n.description||"",theme:s,canvas:r,origin:i,cornerRadius:n.corner??n.cornerRadius??14,tiers:o,floorSize:t,nodes:p,pillars:h.length>0?h:void 0}}function Pl(e){const n=[];n.push(`title: ${e.title}`),e.description&&n.push(`description: ${e.description}`),n.push(`theme: ${e.theme}`),e.style&&e.style!=="solid"&&n.push(`style: ${e.style}`),n.push(`canvas: ${e.canvas.width}x${e.canvas.height}`),n.push(`floor: ${e.floorSize.width}x${e.floorSize.depth}`),e.cornerRadius&&n.push(`corner: ${e.cornerRadius}`),n.push("");const r={};e.nodes.forEach(i=>{r[i.color]=(r[i.color]||0)+1});const t=Object.entries(r).filter(([,i])=>i>=2).map(([i])=>i);return t.length>0&&(n.push("colors:"),t.forEach(i=>{const l=i.slice(0,3);n.push(` ${l}: &${l} ${i}`)}),n.push("")),n.push("tiers:"),e.tiers.forEach(i=>{n.push(` - ${i.name} @ ${i.elevation}`)}),n.push(""),n.push("nodes:"),e.tiers.forEach((i,l)=>{const o=e.nodes.filter(a=>a.tier===l);o.length!==0&&(n.push(` ${l}: # ${i.name}`),o.forEach(a=>{let c=a.color;t.includes(a.color)&&(c=`*${a.color.slice(0,3)}`);const s=[];a.opacity!==void 0&&s.push(`opacity=${a.opacity}`),a.blur!==void 0&&s.push(`blur=${a.blur}`),a.translucent&&s.push("translucent=true");const p=s.length>0?` { ${s.join(" ")} }`:"",h=`${a.width}x${a.depth}x${a.height}`,u=`${a.x},${a.y}`,f=a.label.padEnd(12),m=c.padEnd(8);n.push(` - ${f} ${m} ${u.padEnd(8)} ${h}${p}`)}))}),e.pillars&&e.pillars.length>0&&(n.push(""),n.push("pillars:"),e.pillars.forEach(i=>{n.push(` - ${i.x},${i.y} ${i.fromTier}->${i.toTier}`)})),n.join(`
51
- `)}ee.ArcDiagram=at,ee.configToYaml=Pl,ee.getColorShading=Dr,ee.isoBox=ue,ee.isoToScreen=C,ee.parseYamlConfig=Rl,ee.renderToElement=ut,ee.renderToString=En,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})}));
49
+ `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function pl(e){for(var n="",r=0,t,i=0;i<e.length;r>=65536?i+=2:i++)r=Oe(e,i),t=V[r],!t&&je(r)?(n+=e[i],r>=65536&&(n+=e[i+1])):n+=t||il(r);return n}function dl(e,n,r){var t="",i=e.tag,l,o,a;for(l=0,o=r.length;l<o;l+=1)a=r[l],e.replacer&&(a=e.replacer.call(r,String(l),a)),(se(e,n,a,!1,!1)||typeof a>"u"&&se(e,n,null,!1,!1))&&(t!==""&&(t+=","+(e.condenseFlow?"":" ")),t+=e.dump);e.tag=i,e.dump="["+t+"]"}function jr(e,n,r,t){var i="",l=e.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],e.replacer&&(c=e.replacer.call(r,String(o),c)),(se(e,n+1,c,!0,!0,!1,!0)||typeof c>"u"&&se(e,n+1,null,!0,!0,!1,!0))&&((!t||i!=="")&&(i+=ln(e,n)),e.dump&&Ne===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=l,e.dump=i||"[]"}function hl(e,n,r){var t="",i=e.tag,l=Object.keys(r),o,a,c,f,u;for(o=0,a=l.length;o<a;o+=1)u="",t!==""&&(u+=", "),e.condenseFlow&&(u+='"'),c=l[o],f=r[c],e.replacer&&(f=e.replacer.call(r,c,f)),se(e,n,c,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),se(e,n,f,!1,!1)&&(u+=e.dump,t+=u));e.tag=i,e.dump="{"+t+"}"}function xl(e,n,r,t){var i="",l=e.tag,o=Object.keys(r),a,c,f,u,h,p;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new J("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)p="",(!t||i!=="")&&(p+=ln(e,n)),f=o[a],u=r[f],e.replacer&&(u=e.replacer.call(r,f,u)),se(e,n+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&Ne===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,h&&(p+=ln(e,n)),se(e,n+1,u,!0,h)&&(e.dump&&Ne===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=l,e.dump=i||"{}"}function Or(e,n,r){var t,i,l,o,a,c;for(i=r?e.explicitTypes:e.implicitTypes,l=0,o=i.length;l<o;l+=1)if(a=i[l],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof n=="object"&&n instanceof a.instanceOf)&&(!a.predicate||a.predicate(n))){if(r?a.multi&&a.representName?e.tag=a.representName(n):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,xr.call(a.represent)==="[object Function]")t=a.represent(n,c);else if(mr.call(a.represent,c))t=a.represent[c](n,c);else throw new J("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=t}return!0}return!1}function se(e,n,r,t,i,l,o){e.tag=null,e.dump=r,Or(e,r,!1)||Or(e,r,!0);var a=xr.call(e.dump),c=t,f;t&&(t=e.flowLevel<0||e.flowLevel>n);var u=a==="[object Object]"||a==="[object Array]",h,p;if(u&&(h=e.duplicates.indexOf(r),p=h!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&n>0)&&(i=!1),p&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(u&&p&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),a==="[object Object]")t&&Object.keys(e.dump).length!==0?(xl(e,n,e.dump,i),p&&(e.dump="&ref_"+h+e.dump)):(hl(e,n,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if(a==="[object Array]")t&&e.dump.length!==0?(e.noArrayIndent&&!o&&n>0?jr(e,n-1,e.dump,i):jr(e,n,e.dump,i),p&&(e.dump="&ref_"+h+e.dump)):(dl(e,n,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&fl(e,e.dump,n,l,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new J("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function ml(e,n){var r=[],t=[],i,l;for(cn(e,r,t),i=0,l=t.length;i<l;i+=1)n.duplicates.push(r[t[i]]);n.usedDuplicates=new Array(l)}function cn(e,n,r){var t,i,l;if(e!==null&&typeof e=="object")if(i=n.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(n.push(e),Array.isArray(e))for(i=0,l=e.length;i<l;i+=1)cn(e[i],n,r);else for(t=Object.keys(e),i=0,l=t.length;i<l;i+=1)cn(e[t[i]],n,r)}function yl(e,n){n=n||{};var r=new ol(n);r.noRefs||ml(e,r);var t=e;return r.replacer&&(t=r.replacer.call({"":t},"",t)),se(r,0,t,!0,!0)?r.dump+`
50
+ `:""}var gl=yl,kl={dump:gl};function sn(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var vl=G,_l=Ln,bl=Pn,Al=Wn,wl=Un,$l=Qe,Cl=hr.load,Sl=hr.loadAll,El=kl.dump,Tl=J,Nl={binary:Kn,float:Hn,map:Rn,null:Dn,pairs:Zn,set:Jn,timestamp:Gn,bool:Yn,int:Bn,merge:qn,omap:Vn,seq:In,str:Fn},Ml=sn("safeLoad","load"),jl=sn("safeLoadAll","loadAll"),Ol=sn("safeDump","dump"),Ll={Type:vl,Schema:_l,FAILSAFE_SCHEMA:bl,JSON_SCHEMA:Al,CORE_SCHEMA:wl,DEFAULT_SCHEMA:$l,load:Cl,loadAll:Sl,dump:El,YAMLException:Tl,types:Nl,safeLoad:Ml,safeLoadAll:jl,safeDump:Ol};function Fl(e){const n=e.match(/^(\d+)x(\d+)x(\d+)$/);return n?{width:parseInt(n[1],10),depth:parseInt(n[2],10),height:parseInt(n[3],10)}:null}function Lr(e){const n=e.match(/^(\d+)x(\d+)$/);return n?{width:parseInt(n[1],10),height:parseInt(n[2],10)}:null}function Il(e){const n=e.match(/^(-?\d+),(-?\d+)$/);return n?{x:parseInt(n[1],10),y:parseInt(n[2],10)}:null}function Rl(e){const n=e.match(/^(.+?)\s*@\s*(\d+)$/);return n?{name:n[1].trim(),elevation:parseInt(n[2],10)}:null}function Pl(e,n,r){const t={},i=e.match(/\{([^}]+)\}\s*$/);if(i){const x=i[1].split(/\s+/);for(const m of x){const[y,v]=m.split("=");if(y&&v){const k=parseFloat(v);t[y]=isNaN(k)?v:k}}e=e.replace(/\{[^}]+\}\s*$/,"").trim()}const l=e.trim().split(/\s+/);if(l.length<4)return null;const o=l[0],a=l[1],c=l[2],f=l[3],u=Il(c),h=Fl(f);if(!u||!h)return null;const p=r[a]||a;return{tier:n,label:o,color:p,x:u.x,y:u.y,width:h.width,depth:h.depth,height:h.height,...t}}function Dl(e){const n=Ll.load(e);let r={width:1100,height:700};if(typeof n.canvas=="string"){const p=Lr(n.canvas);p&&(r=p)}else n.canvas&&typeof n.canvas=="object"&&(r=n.canvas);let t={width:400,depth:280};if(typeof n.floor=="string"){const p=Lr(n.floor);p&&(t={width:p.width,depth:p.height})}else n.floor&&typeof n.floor=="object"&&(t=n.floor);let i={x:r.width/2,y:r.height-80};n.origin&&typeof n.origin=="object"&&(i=n.origin);const l={};if(n.colors&&typeof n.colors=="object")for(const[p,x]of Object.entries(n.colors))l[p]=x;const o=[],a={dark:["#0f172a","#1e293b","#334155","#475569"],light:["#f1f5f9","#e0f2fe","#dbeafe","#ede9fe"]},c={dark:["#334155","#475569","#64748b","#94a3b8"],light:["#94a3b8","#7dd3fc","#93c5fd","#c4b5fd"]},f=n.theme||"dark";Array.isArray(n.tiers)&&n.tiers.forEach((p,x)=>{if(typeof p=="string"){const m=Rl(p);m&&o.push({name:m.name,elevation:m.elevation,floorColor:a[f][x]||a[f][0],floorOpacity:x===0?.95:.7-x*.1,borderColor:c[f][x]||c[f][0]})}else if(p&&typeof p=="object"){const m=p;o.push({name:m.name||`Tier ${x}`,elevation:m.elevation||x*150,floorColor:m.floorColor||a[f][x],floorOpacity:m.floorOpacity??(x===0?.95:.7-x*.1),borderColor:m.borderColor||c[f][x]})}});const u=[];if(n.nodes&&typeof n.nodes=="object"&&!Array.isArray(n.nodes)){const p=n.nodes;for(const[x,m]of Object.entries(p)){const y=parseInt(x,10);if(!(isNaN(y)||!Array.isArray(m))){for(const v of m)if(typeof v=="string"){const k=Pl(v,y,l);k&&u.push(k)}else if(v&&typeof v=="object"){const k=v;u.push({tier:y,label:k.label||"",color:l[k.color]||k.color||"slate",x:k.x||0,y:k.y||0,width:k.width||100,depth:k.depth||80,height:k.height||40,opacity:k.opacity,blur:k.blur,translucent:k.translucent})}}}}const h=[];if(Array.isArray(n.pillars)){for(const p of n.pillars)if(typeof p=="string"){const x=p.match(/^(-?\d+),(-?\d+)\s+(\d+)->(\d+)$/);x&&h.push({x:parseInt(x[1],10),y:parseInt(x[2],10),fromTier:parseInt(x[3],10),toTier:parseInt(x[4],10)})}else if(p&&typeof p=="object"){const x=p;h.push({x:x.x||0,y:x.y||0,fromTier:x.fromTier||0,toTier:x.toTier||1})}}return{title:n.title||"Untitled",style:n.style||void 0,description:n.description||"",theme:f,canvas:r,origin:i,cornerRadius:n.corner??n.cornerRadius??14,tiers:o,floorSize:t,nodes:u,pillars:h.length>0?h:void 0}}function Yl(e){const n=[];n.push(`title: ${e.title}`),e.description&&n.push(`description: ${e.description}`),n.push(`theme: ${e.theme}`),e.style&&e.style!=="solid"&&n.push(`style: ${e.style}`),n.push(`canvas: ${e.canvas.width}x${e.canvas.height}`),n.push(`floor: ${e.floorSize.width}x${e.floorSize.depth}`),e.cornerRadius&&n.push(`corner: ${e.cornerRadius}`),n.push("");const r={};e.nodes.forEach(i=>{r[i.color]=(r[i.color]||0)+1});const t=Object.entries(r).filter(([,i])=>i>=2).map(([i])=>i);return t.length>0&&(n.push("colors:"),t.forEach(i=>{const l=i.slice(0,3);n.push(` ${l}: &${l} ${i}`)}),n.push("")),n.push("tiers:"),e.tiers.forEach(i=>{n.push(` - ${i.name} @ ${i.elevation}`)}),n.push(""),n.push("nodes:"),e.tiers.forEach((i,l)=>{const o=e.nodes.filter(a=>a.tier===l);o.length!==0&&(n.push(` ${l}: # ${i.name}`),o.forEach(a=>{let c=a.color;t.includes(a.color)&&(c=`*${a.color.slice(0,3)}`);const f=[];a.opacity!==void 0&&f.push(`opacity=${a.opacity}`),a.blur!==void 0&&f.push(`blur=${a.blur}`),a.translucent&&f.push("translucent=true");const u=f.length>0?` { ${f.join(" ")} }`:"",h=`${a.width}x${a.depth}x${a.height}`,p=`${a.x},${a.y}`,x=a.label.padEnd(12),m=c.padEnd(8);n.push(` - ${x} ${m} ${p.padEnd(8)} ${h}${u}`)}))}),e.pillars&&e.pillars.length>0&&(n.push(""),n.push("pillars:"),e.pillars.forEach(i=>{n.push(` - ${i.x},${i.y} ${i.fromTier}->${i.toTier}`)})),n.join(`
51
+ `)}ee.ArcDiagram=st,ee.configToYaml=Yl,ee.getColorShading=Br,ee.isoBox=ue,ee.isoToScreen=w,ee.parseYamlConfig=Dl,ee.renderToElement=dt,ee.renderToString=Nn,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})}));