diff --git a/examples/apfel/assets/index-7HUy52LA.js b/examples/apfel/assets/index-iF-k-Kt6.js similarity index 99% rename from examples/apfel/assets/index-7HUy52LA.js rename to examples/apfel/assets/index-iF-k-Kt6.js index 7b0003e4..ee7c288b 100644 --- a/examples/apfel/assets/index-7HUy52LA.js +++ b/examples/apfel/assets/index-iF-k-Kt6.js @@ -4058,7 +4058,7 @@ No matching component was found for: `||d==null)&&(o.charLength=s-a+1,o.nonWhitespaceCharLength=o.charLength,o.nonWhitespaceWidth=l,o.whitespacesBetween=c)}};function r2(t,e){const n=t.length;for(;t[e]===" "&&e{for(const o of i)o(s);NI.set(t,s)}).catch(console.error)}async function eY(t,e){const n=await(await fetch(t)).json();if(n.pages.length!==1)throw new Error("only supporting exactly 1 page");const r=await ZJ.loadAsync(new URL(n.pages[0],new URL(t,window.location.href)).href);return r.anisotropy=e.capabilities.getMaxAnisotropy(),r.flipY=!1,new iY(n,r)}const $S={thin:100,"extra-light":200,light:300,normal:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800,black:900,"extra-black":950},tY={inter:{light:"https://pmndrs.github.io/uikit/fonts/inter-light.json",normal:"https://pmndrs.github.io/uikit/fonts/inter-normal.json",medium:"https://pmndrs.github.io/uikit/fonts/inter-medium.json","semi-bold":"https://pmndrs.github.io/uikit/fonts/inter-semi-bold.json",bold:"https://pmndrs.github.io/uikit/fonts/inter-bold.json"}};function NL(t,e,n,r){const i=rn(void 0),s=nr(t,"fontFamily",void 0),o=nr(t,"fontWeight","normal");return r.push(()=>en(()=>{const a=(e==null?void 0:e.value)??tY;let l=s.value;l==null&&(l=Object.keys(a)[0]);const c=nY(a[l],typeof o.value=="string"?$S[o.value]:o.value);let p=!1;return $J(c,n,d=>p?void 0:i.value=d),()=>p=!0})),i}function nY(t,e){let n=1/0,r;for(const i in t){const s=Math.abs(e-rY(i));if(s===0)return t[i];s{const c=e.value;if(c==null)return;const p=n.value,d={font:c,fontSize:s.value,letterSpacing:o.value,lineHeight:a.value,text:Array.isArray(p)?p.map(C=>ws(C)).join(""):ws(p),wordBreak:l.value};r.current=d;const{width:A}=OI(d,0),{height:y}=OI(d,void 0);return{minHeight:y,minWidth:A,measure:(C,v)=>OI(d,v===lC.Undefined?void 0:C)}})}const OL={"keep-all":qJ,"break-all":XJ,"break-word":KJ},QE={};function OI(t,e){const n=OL[t.wordBreak],r=t.text;let i=0,s=0,o=0;for(;o({font:t.value}))}class uY{constructor(e,n,r,i,s){qe(this,"group");qe(this,"baseMatrix");qe(this,"color");qe(this,"opacity");qe(this,"clippingRect");qe(this,"index");qe(this,"hidden",!0);qe(this,"glyphInfo");qe(this,"x",0);qe(this,"y",0);qe(this,"fontSize",0);qe(this,"pixelSize",0);this.group=e,this.baseMatrix=n,this.color=r,this.opacity=i,this.clippingRect=s}getX(e){return this.glyphInfo==null?this.x:this.x+e*this.glyphInfo.width*this.fontSize}show(){this.hidden&&(this.hidden=!1,this.group.requestActivate(this))}hide(){this.hidden||(this.hidden=!0,this.group.delete(this))}activate(e){this.index=e,this.writeUpdatedMatrix(),this.writeUV(),this.updateColor(this.color),this.updateOpacity(this.opacity),this.updateClippingRect(this.clippingRect)}setIndex(e){this.index=e}updateClippingRect(e){if(this.clippingRect=e,this.index==null)return;const n=this.index*16,{instanceClipping:r,root:i}=this.group;this.clippingRect==null?r.set(JC,n):this.clippingRect.toArray(r.array,n),r.addUpdateRange(n,16),r.needsUpdate=!0,i.requestRender()}updateColor(e){if(this.color=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=n.itemSize*this.index;o0(n.array,i,e,void 0),n.addUpdateRange(i,3),n.needsUpdate=!0,r.requestRender()}updateOpacity(e){if(this.opacity=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=this.index*4+3;n.array[i]=e,n.addUpdateRange(i,1),n.needsUpdate=!0,r.requestRender()}updateGlyphAndTransformation(e,n,r,i,s){this.glyphInfo===e&&this.x===n&&this.y===r&&this.fontSize===i&&this.pixelSize===s||(this.glyphInfo!=e&&(this.glyphInfo=e,this.writeUV()),this.x=n,this.y=r,this.fontSize=i,this.pixelSize=s,this.writeUpdatedMatrix())}updateBaseMatrix(e){this.baseMatrix!==e&&(this.baseMatrix=e,this.writeUpdatedMatrix())}writeUV(){if(this.index==null||this.glyphInfo==null)return;const e=this.index*4,{instanceUV:n,root:r}=this.group;sY(this.glyphInfo,n.array,e),n.addUpdateRange(e,4),n.needsUpdate=!0,r.requestRender()}writeUpdatedMatrix(){if(this.index==null||this.glyphInfo==null||this.baseMatrix==null)return;const e=this.index*16,{instanceMatrix:n,root:r}=this.group;n.addUpdateRange(e,16),hF.makeTranslation(this.x*this.pixelSize,this.y*this.pixelSize,0).multiply(lY.makeScale(this.fontSize*this.glyphInfo.width*this.pixelSize,this.fontSize*this.glyphInfo.height*this.pixelSize,1)).premultiply(this.baseMatrix),hF.toArray(n.array,e),n.needsUpdate=!0,r.requestRender()}}const cY="middle",hY="left";function GL(t,e,n,r,i,s,o,a,l,c,p,d,A,y,C,v){let D={current:void 0};const I=oY(t,l,e,D,v),B=nr(t,"verticalAlign",cY),w=nr(t,"textAlign",hY),_=nr(t,"color",0),F=nr(t,"opacity",1),Q=rn(void 0);return C.push(()=>en(()=>{var N;return(N=r.value)==null?void 0:N.addLayoutChangeListener(()=>{const U=D.current,{size:{value:X},paddingInset:{value:L},borderInset:{value:H}}=i;if(U==null||X==null||L==null||H==null)return;const[ue,Ee]=X,[ne,Te,ve,Ue]=L,[re,fe,Ce,de]=H,Oe=ue-Te-Ue-fe-de,De=Ee-ne-ve-re-Ce;Q.value=aY(U,Oe,De)})}),()=>en(()=>{const N=l.value;if(N==null||a.value==null)return;const U=new dY(c.getGroup(a.value.majorIndex,N),w,B,_,F,Q,n,s,o,p,d,A);return y!=null&&(y.current=U),()=>U.destroy()})),I}const pY=[];class dY{constructor(e,n,r,i,s,o,a,l,c,p,d,A){qe(this,"group");qe(this,"textAlign");qe(this,"verticalAlign");qe(this,"color");qe(this,"opacity");qe(this,"layoutSignal");qe(this,"matrix");qe(this,"parentClippingRect");qe(this,"selectionRange");qe(this,"selectionBoxes");qe(this,"caretPosition");qe(this,"glyphLines",[]);qe(this,"lastLayout");qe(this,"unsubscribeInitialList",[]);qe(this,"unsubscribeShowList",[]);this.group=e,this.textAlign=n,this.verticalAlign=r,this.color=i,this.opacity=s,this.layoutSignal=o,this.matrix=a,this.parentClippingRect=c,this.selectionRange=p,this.selectionBoxes=d,this.caretPosition=A,this.unsubscribeInitialList=[en(()=>{if(!l.value||s.value<.01){this.hide();return}this.show()}),en(()=>this.updateSelectionBoxes(this.lastLayout,p==null?void 0:p.value,r.peek(),n.peek()))]}getCharIndex(e,n){const r=this.lastLayout;if(r==null)return 0;n-=-PE(r,this.verticalAlign.peek());const i=Math.floor(n/-FE(r.lineHeight,r.fontSize)),s=r.lines;if(i<0||s.length===0)return 0;if(i>=s.length){const p=s[s.length-1];return p.charIndexOffset+p.charLength+1}const o=s[i],a=r.font.getGlyphInfo(" ").xadvance*r.fontSize,l=this.glyphLines[i];let c=l.length;for(let p=0;p=d.charIndexOffset+d.charLength)continue;const A=this.glyphLines[p][Math.max(r-d.charIndexOffset,0)];return{lineIndex:p,x:this.getGlyphX(A,i?0:1,s)}}const l=e[a-1];if(l.charLength===0)return{lineIndex:a-1,x:pF(n,l.nonWhitespaceWidth,o)-n/2};const c=this.glyphLines[a-1][l.charLength-1];return{lineIndex:a-1,x:this.getGlyphX(c,1,s)}}getGlyphX(e,n,r){return typeof e=="number"?e+n*r:e.getX(n)}show(){this.unsubscribeShowList.length>0||(gp(this.glyphLines,e=>e.show()),this.unsubscribeShowList.push(en(()=>{const e=this.matrix.value;e!=null&&gp(this.glyphLines,n=>n.updateBaseMatrix(e))}),en(()=>{var n;const e=(n=this.parentClippingRect)==null?void 0:n.value;gp(this.glyphLines,r=>r.updateClippingRect(e))}),en(()=>{const e=this.color.value;gp(this.glyphLines,n=>n.updateColor(e))}),en(()=>{const e=this.opacity.value;gp(this.glyphLines,n=>n.updateOpacity(e))}),en(()=>{var A,y;const e=this.layoutSignal.value;if(e==null)return;const{text:n,font:r,lines:i,letterSpacing:s=0,fontSize:o=16,lineHeight:a=1.2,availableWidth:l}=e;let c=PE(e,this.verticalAlign.value)-e.availableHeight/2;const p=i.length,d=this.group.pixelSize.value;for(let C=0;CB+I){Q=Ee.id;const ve=F+uF(r,o,Ee,Q);typeof N[H]=="number"?N[H]=F:N.splice(H,0,ve),F+=_+a0(o,Ee,s);continue}let ne=N[H];for(;HC.hide(),p),this.glyphLines.length=p,this.lastLayout=e,this.updateSelectionBoxes(e,(y=this.selectionRange)==null?void 0:y.peek(),this.verticalAlign.value,this.textAlign.value)})))}hide(){const e=this.unsubscribeShowList.length;if(e!==0){for(let n=0;nn.hide())}}destroy(){this.hide(),this.glyphLines.length=0;const e=this.unsubscribeInitialList.length;for(let n=0;nUl(p,B,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,ld(),Q));const w=NL(p,n,t.root.renderer,c),_=bs(void 0,Yi.Text,UL(w),B),F=GL(p,e,C,d,A,D,t.clippingRect,_,w,t.root.gylphGroupManager,void 0,void 0,void 0,void 0,c,"break-word");return c.push(()=>en(()=>{var Q;return(Q=d.value)==null?void 0:Q.setCustomLayouting(F.value)})),Fu(r,i,A.size,c),Ih(r,i,v,c),Object.assign(A,{isClipped:v,mergedProperties:p,interactionPanel:ud(B,t.root,t.clippingRect,A.size,c),handlers:Nu(r,i,s,a,l),initializers:c})}const AY=ri;class kA extends vo{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,n,r,i){const s=this,o=new Nl(s.manager);o.setPath(s.path),o.setRequestHeader(s.requestHeader),o.setWithCredentials(s.withCredentials),o.load(e,function(a){try{n(s.parse(a))}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},r,i)}parse(e){const n=this;function r(q,se){if(q.nodeType!==1)return;const Y=_(q);let K=!1,ke=null;switch(q.nodeName){case"svg":se=C(q,se);break;case"style":s(q);break;case"g":se=C(q,se);break;case"path":se=C(q,se),q.hasAttribute("d")&&(ke=i(q));break;case"rect":se=C(q,se),ke=l(q);break;case"polygon":se=C(q,se),ke=c(q);break;case"polyline":se=C(q,se),ke=p(q);break;case"circle":se=C(q,se),ke=d(q);break;case"ellipse":se=C(q,se),ke=A(q);break;case"line":se=C(q,se),ke=y(q);break;case"defs":K=!0;break;case"use":se=C(q,se);const We=(q.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),oe=q.viewportElement.getElementById(We);oe?r(oe,se):console.warn("SVGLoader: 'use node' references non-existent node id: "+We);break}ke&&(se.fill!==void 0&&se.fill!=="none"&&ke.color.setStyle(se.fill,AY),Q(ke,de),ue.push(ke),ke.userData={node:q,style:se});const ze=q.childNodes;for(let _e=0;_e0?de.copy(ne[ne.length-1]):de.identity())}function i(q){const se=new Lc,Y=new it,K=new it,ke=new it;let ze=!0,_e=!1;const We=q.getAttribute("d");if(We===""||We==="none")return null;const oe=We.match(/[a-df-z][^a-df-z]*/ig);for(let Le=0,Be=oe.length;Le0&&(Y.copy(ke),se.currentPath.currentPoint.copy(Y),ze=!0);break;default:console.warn(Ve)}_e=!1}return se}function s(q){if(!(!q.sheet||!q.sheet.cssRules||!q.sheet.cssRules.length))for(let se=0;seke.trim());for(let ke=0;ke_e!==""));Ee[K[ke]]=Object.assign(Ee[K[ke]]||{},ze)}}}function o(q,se,Y,K,ke,ze,_e,We){if(se==0||Y==0){q.lineTo(We.x,We.y);return}K=K*Math.PI/180,se=Math.abs(se),Y=Math.abs(Y);const oe=(_e.x-We.x)/2,Le=(_e.y-We.y)/2,Be=Math.cos(K)*oe+Math.sin(K)*Le,Ve=-Math.sin(K)*oe+Math.cos(K)*Le;let Ge=se*se,at=Y*Y;const Ie=Be*Be,W=Ve*Ve,Z=Ie/Ge+W/at;if(Z>1){const gt=Math.sqrt(Z);se=gt*se,Y=gt*Y,Ge=se*se,at=Y*Y}const Ne=Ge*W+at*Ie,dt=(Ge*at-Ne)/Ne;let ht=Math.sqrt(Math.max(0,dt));ke===ze&&(ht=-ht);const lt=ht*se*Ve/Y,Nt=-ht*Y*Be/se,Mt=Math.cos(K)*lt-Math.sin(K)*Nt+(_e.x+We.x)/2,Lt=Math.sin(K)*lt+Math.cos(K)*Nt+(_e.y+We.y)/2,_t=a(1,0,(Be-lt)/se,(Ve-Nt)/Y),Ft=a((Be-lt)/se,(Ve-Nt)/Y,(-Be-lt)/se,(-Ve-Nt)/Y)%(Math.PI*2);q.currentPath.absellipse(Mt,Lt,se,Y,_t,_t+Ft,ze===0,K)}function a(q,se,Y,K){const ke=q*Y+se*K,ze=Math.sqrt(q*q+se*se)*Math.sqrt(Y*Y+K*K);let _e=Math.acos(Math.max(-1,Math.min(1,ke/ze)));return q*K-se*Y<0&&(_e=-_e),_e}function l(q){const se=w(q.getAttribute("x")||0),Y=w(q.getAttribute("y")||0),K=w(q.getAttribute("rx")||q.getAttribute("ry")||0),ke=w(q.getAttribute("ry")||q.getAttribute("rx")||0),ze=w(q.getAttribute("width")),_e=w(q.getAttribute("height")),We=1-.551915024494,oe=new Lc;return oe.moveTo(se+K,Y),oe.lineTo(se+ze-K,Y),(K!==0||ke!==0)&&oe.bezierCurveTo(se+ze-K*We,Y,se+ze,Y+ke*We,se+ze,Y+ke),oe.lineTo(se+ze,Y+_e-ke),(K!==0||ke!==0)&&oe.bezierCurveTo(se+ze,Y+_e-ke*We,se+ze-K*We,Y+_e,se+ze-K,Y+_e),oe.lineTo(se+K,Y+_e),(K!==0||ke!==0)&&oe.bezierCurveTo(se+K*We,Y+_e,se,Y+_e-ke*We,se,Y+_e-ke),oe.lineTo(se,Y+ke),(K!==0||ke!==0)&&oe.bezierCurveTo(se,Y+ke*We,se+K*We,Y,se+K,Y),oe}function c(q){function se(ze,_e,We){const oe=w(_e),Le=w(We);ke===0?K.moveTo(oe,Le):K.lineTo(oe,Le),ke++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,K=new Lc;let ke=0;return q.getAttribute("points").replace(Y,se),K.currentPath.autoClose=!0,K}function p(q){function se(ze,_e,We){const oe=w(_e),Le=w(We);ke===0?K.moveTo(oe,Le):K.lineTo(oe,Le),ke++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,K=new Lc;let ke=0;return q.getAttribute("points").replace(Y,se),K.currentPath.autoClose=!1,K}function d(q){const se=w(q.getAttribute("cx")||0),Y=w(q.getAttribute("cy")||0),K=w(q.getAttribute("r")||0),ke=new rh;ke.absarc(se,Y,K,0,Math.PI*2);const ze=new Lc;return ze.subPaths.push(ke),ze}function A(q){const se=w(q.getAttribute("cx")||0),Y=w(q.getAttribute("cy")||0),K=w(q.getAttribute("rx")||0),ke=w(q.getAttribute("ry")||0),ze=new rh;ze.absellipse(se,Y,K,ke,0,Math.PI*2);const _e=new Lc;return _e.subPaths.push(ze),_e}function y(q){const se=w(q.getAttribute("x1")||0),Y=w(q.getAttribute("y1")||0),K=w(q.getAttribute("x2")||0),ke=w(q.getAttribute("y2")||0),ze=new Lc;return ze.moveTo(se,Y),ze.lineTo(K,ke),ze.currentPath.autoClose=!1,ze}function C(q,se){se=Object.assign({},se);let Y={};if(q.hasAttribute("class")){const _e=q.getAttribute("class").split(/\s/).filter(Boolean).map(We=>We.trim());for(let We=0;We<_e.length;We++)Y=Object.assign(Y,Ee["."+_e[We]])}q.hasAttribute("id")&&(Y=Object.assign(Y,Ee["#"+q.getAttribute("id")]));function K(_e,We,oe){oe===void 0&&(oe=function(Be){return Be.startsWith("url")&&console.warn("SVGLoader: url access in attributes is not implemented."),Be}),q.hasAttribute(_e)&&(se[We]=oe(q.getAttribute(_e))),Y[_e]&&(se[We]=oe(Y[_e])),q.style&&q.style[_e]!==""&&(se[We]=oe(q.style[_e]))}function ke(_e){return Math.max(0,Math.min(1,w(_e)))}function ze(_e){return Math.max(0,w(_e))}return K("fill","fill"),K("fill-opacity","fillOpacity",ke),K("fill-rule","fillRule"),K("opacity","opacity",ke),K("stroke","stroke"),K("stroke-opacity","strokeOpacity",ke),K("stroke-width","strokeWidth",ze),K("stroke-linejoin","strokeLineJoin"),K("stroke-linecap","strokeLineCap"),K("stroke-miterlimit","strokeMiterLimit",ze),K("visibility","visibility"),se}function v(q,se){return q-(se-q)}function D(q,se,Y){if(typeof q!="string")throw new TypeError("Invalid input: "+typeof q);const K={SEPARATOR:/[ \t\r\n\,.\-+]/,WHITESPACE:/[ \t\r\n]/,DIGIT:/[\d]/,SIGN:/[-+]/,POINT:/\./,COMMA:/,/,EXP:/e/i,FLAGS:/[01]/},ke=0,ze=1,_e=2,We=3;let oe=ke,Le=!0,Be="",Ve="";const Ge=[];function at(Ne,dt,ht){const lt=new SyntaxError('Unexpected character "'+Ne+'" at index '+dt+".");throw lt.partial=ht,lt}function Ie(){Be!==""&&(Ve===""?Ge.push(Number(Be)):Ge.push(Number(Be)*Math.pow(10,Number(Ve)))),Be="",Ve=""}let W;const Z=q.length;for(let Ne=0;Ne0&&se.premultiply(ne[ne.length-1]),de.copy(se),ne.push(se),se}function F(q){const se=new Qn,Y=Te;if(q.nodeName==="use"&&(q.hasAttribute("x")||q.hasAttribute("y"))){const K=w(q.getAttribute("x")),ke=w(q.getAttribute("y"));se.translate(K,ke)}if(q.hasAttribute("transform")){const K=q.getAttribute("transform").split(")");for(let ke=K.length-1;ke>=0;ke--){const ze=K[ke].trim();if(ze==="")continue;const _e=ze.indexOf("("),We=ze.length;if(_e>0&&_e=1){const Be=Le[0];let Ve=0;Le.length>=2&&(Ve=Le[1]),Y.translate(Be,Ve)}break;case"rotate":if(Le.length>=1){let Be=0,Ve=0,Ge=0;Be=Le[0]*Math.PI/180,Le.length>=3&&(Ve=Le[1],Ge=Le[2]),ve.makeTranslation(-Ve,-Ge),Ue.makeRotation(Be),re.multiplyMatrices(Ue,ve),ve.makeTranslation(Ve,Ge),Y.multiplyMatrices(ve,re)}break;case"scale":if(Le.length>=1){const Be=Le[0];let Ve=Be;Le.length>=2&&(Ve=Le[1]),Y.scale(Be,Ve)}break;case"skewX":Le.length===1&&Y.set(1,Math.tan(Le[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":Le.length===1&&Y.set(1,0,0,Math.tan(Le[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":Le.length===6&&Y.set(Le[0],Le[2],Le[4],Le[1],Le[3],Le[5],0,0,1);break}}se.premultiply(Y)}}return se}function Q(q,se){function Y(_e){Ce.set(_e.x,_e.y,1).applyMatrix3(se),_e.set(Ce.x,Ce.y)}function K(_e){const We=_e.xRadius,oe=_e.yRadius,Le=Math.cos(_e.aRotation),Be=Math.sin(_e.aRotation),Ve=new ae(We*Le,We*Be,0),Ge=new ae(-oe*Be,oe*Le,0),at=Ve.applyMatrix3(se),Ie=Ge.applyMatrix3(se),W=Te.set(at.x,Ie.x,0,at.y,Ie.y,0,0,0,1),Z=ve.copy(W).invert(),ht=Ue.copy(Z).transpose().multiply(Z).elements,lt=H(ht[0],ht[1],ht[4]),Nt=Math.sqrt(lt.rt1),Mt=Math.sqrt(lt.rt2);if(_e.xRadius=1/Nt,_e.yRadius=1/Mt,_e.aRotation=Math.atan2(lt.sn,lt.cs),!((_e.aEndAngle-_e.aStartAngle)%(2*Math.PI){const{x:ln,y:Kt}=new ae(Math.cos(Dn),Math.sin(Dn),0).applyMatrix3(gt);return Math.atan2(Kt,ln)};_e.aStartAngle=Pn(_e.aStartAngle),_e.aEndAngle=Pn(_e.aEndAngle),N(se)&&(_e.aClockwise=!_e.aClockwise)}}function ke(_e){const We=X(se),oe=L(se);_e.xRadius*=We,_e.yRadius*=oe;const Le=We>Number.EPSILON?Math.atan2(se.elements[1],se.elements[0]):Math.atan2(-se.elements[3],se.elements[4]);_e.aRotation+=Le,N(se)&&(_e.aStartAngle*=-1,_e.aEndAngle*=-1,_e.aClockwise=!_e.aClockwise)}const ze=q.subPaths;for(let _e=0,We=ze.length;_eNumber.EPSILON}function X(q){const se=q.elements;return Math.sqrt(se[0]*se[0]+se[1]*se[1])}function L(q){const se=q.elements;return Math.sqrt(se[3]*se[3]+se[4]*se[4])}function H(q,se,Y){let K,ke,ze,_e,We;const oe=q+Y,Le=q-Y,Be=Math.sqrt(Le*Le+4*se*se);return oe>0?(K=.5*(oe+Be),We=1/K,ke=q*We*Y-se*We*se):oe<0?ke=.5*(oe-Be):(K=.5*Be,ke=-.5*Be),Le>0?ze=Le+Be:ze=Le-Be,Math.abs(ze)>2*Math.abs(se)?(We=-2*se/ze,_e=1/Math.sqrt(1+We*We),ze=We*_e):Math.abs(se)===0?(ze=1,_e=0):(We=-.5*ze/se,ze=1/Math.sqrt(1+We*We),_e=We*ze),Le>0&&(We=ze,ze=-_e,_e=We),{rt1:K,rt2:ke,cs:ze,sn:_e}}const ue=[],Ee={},ne=[],Te=new Qn,ve=new Qn,Ue=new Qn,re=new Qn,fe=new it,Ce=new ae,de=new Qn,Oe=new DOMParser().parseFromString(e,"image/svg+xml");return r(Oe.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:ue,xml:Oe.documentElement}}static createShapes(e){const r={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:r.ORIGIN,t:0};function s(v,D,I,B){const w=v.x,_=D.x,F=I.x,Q=B.x,N=v.y,U=D.y,X=I.y,L=B.y,H=(Q-F)*(N-X)-(L-X)*(w-F),ue=(_-w)*(N-X)-(U-N)*(w-F),Ee=(L-X)*(_-w)-(Q-F)*(U-N),ne=H/Ee,Te=ue/Ee;if(Ee===0&&H!==0||ne<=0||ne>=1||Te<0||Te>1)return null;if(H===0&&Ee===0){for(let ve=0;ve<2;ve++)if(o(ve===0?I:B,v,D),i.loc==r.ORIGIN){const Ue=ve===0?I:B;return{x:Ue.x,y:Ue.y,t:i.t}}else if(i.loc==r.BETWEEN){const Ue=+(w+i.t*(_-w)).toPrecision(10),re=+(N+i.t*(U-N)).toPrecision(10);return{x:Ue,y:re,t:i.t}}return null}else{for(let re=0;re<2;re++)if(o(re===0?I:B,v,D),i.loc==r.ORIGIN){const fe=re===0?I:B;return{x:fe.x,y:fe.y,t:i.t}}const ve=+(w+ne*(_-w)).toPrecision(10),Ue=+(N+ne*(U-N)).toPrecision(10);return{x:ve,y:Ue,t:ne}}}function o(v,D,I){const B=I.x-D.x,w=I.y-D.y,_=v.x-D.x,F=v.y-D.y,Q=B*F-_*w;if(v.x===D.x&&v.y===D.y){i.loc=r.ORIGIN,i.t=0;return}if(v.x===I.x&&v.y===I.y){i.loc=r.DESTINATION,i.t=1;return}if(Q<-Number.EPSILON){i.loc=r.LEFT;return}if(Q>Number.EPSILON){i.loc=r.RIGHT;return}if(B*_<0||w*F<0){i.loc=r.BEHIND;return}if(Math.sqrt(B*B+w*w)L.t<=X.t+Number.EPSILON&&L.t>=X.t-Number.EPSILON)===void 0&&(I.push(X),B.push(new it(X.x,X.y)))}}return B}function l(v,D,I){const B=new it;D.getCenter(B);const w=[];return I.forEach(_=>{_.boundingBox.containsPoint(B)&&a(v,_.points).forEach(Q=>{w.push({identifier:_.identifier,isCW:_.isCW,point:Q})})}),w.sort((_,F)=>_.point.x-F.point.x),w}function c(v,D,I,B,w){(w==null||w==="")&&(w="nonzero");const _=new it;v.boundingBox.getCenter(_);const F=[new it(I,_.y),new it(B,_.y)],Q=l(F,v.boundingBox,D);Q.sort((ue,Ee)=>ue.point.x-Ee.point.x);const N=[],U=[];Q.forEach(ue=>{ue.identifier===v.identifier?N.push(ue):U.push(ue)});const X=N[0].point.x,L=[];let H=0;for(;H0&&L[L.length-1]===U[H].identifier?L.pop():L.push(U[H].identifier),H++;if(L.push(v.identifier),w==="evenodd"){const ue=L.length%2===0,Ee=L[L.length-2];return{identifier:v.identifier,isHole:ue,for:Ee}}else if(w==="nonzero"){let ue=!0,Ee=null,ne=null;for(let Te=0;Te{const D=v.getPoints();let I=-999999999,B=999999999,w=-999999999,_=999999999;for(let F=0;FI&&(I=Q.y),Q.yw&&(w=Q.x),Q.x<_&&(_=Q.x)}return d<=w&&(d=w+1),p>=_&&(p=_-1),{curves:v.curves,points:D,isCW:nl.isClockWise(D),identifier:-1,boundingBox:new Qk(new it(_,B),new it(w,I))}});A=A.filter(v=>v.points.length>1);for(let v=0;vc(v,A,p,d,e.userData?e.userData.style.fillRule:void 0)),C=[];return A.forEach(v=>{if(!y[v.identifier].isHole){const I=new ih;I.curves=v.curves,y.filter(w=>w.isHole&&w.for===v.identifier).forEach(w=>{const _=A[w.identifier],F=new rh;F.curves=_.curves,I.holes.push(F)}),C.push(I)}}),C}static getStrokeStyle(e,n,r,i,s){return e=e!==void 0?e:1,n=n!==void 0?n:"#000",r=r!==void 0?r:"miter",i=i!==void 0?i:"butt",s=s!==void 0?s:4,{strokeColor:n,strokeWidth:e,strokeLineJoin:r,strokeLineCap:i,strokeMiterLimit:s}}static pointsToStroke(e,n,r,i){const s=[],o=[],a=[];if(kA.pointsToStrokeWithBuffers(e,n,r,i,s,o,a)===0)return null;const l=new Un;return l.setAttribute("position",new hn(s,3)),l.setAttribute("normal",new hn(o,3)),l.setAttribute("uv",new hn(a,2)),l}static pointsToStrokeWithBuffers(e,n,r,i,s,o,a,l){const c=new it,p=new it,d=new it,A=new it,y=new it,C=new it,v=new it,D=new it,I=new it,B=new it,w=new it,_=new it,F=new it,Q=new it,N=new it,U=new it,X=new it;r=r!==void 0?r:12,i=i!==void 0?i:.001,l=l!==void 0?l:0,e=Le(e);const L=e.length;if(L<2)return 0;const H=e[0].equals(e[L-1]);let ue,Ee=e[0],ne;const Te=n.strokeWidth/2,ve=1/(L-1);let Ue=0,re,fe,Ce,de,Oe=!1,De=0,q=l*3,se=l*2;Y(e[0],e[1],c).multiplyScalar(Te),D.copy(e[0]).sub(c),I.copy(e[0]).add(c),B.copy(D),w.copy(I);for(let Be=1;BeNumber.EPSILON){const at=Te/Ge;d.multiplyScalar(-at),A.subVectors(ue,Ee),y.copy(A).setLength(at).add(d),U.copy(y).negate();const Ie=y.length(),W=A.length();A.divideScalar(W),C.subVectors(ne,ue);const Z=C.length();switch(C.divideScalar(Z),A.dot(U)=i&&Ge.push(Be[at]);return Ge.push(Be[Be.length-1]),Ge}}}function gY(t,e,n,r,i,s){const o=[],a=rn([]),l=rn([]);zu(a,o);const c=rn(void 0),p=Ou(e,n,r,{...Gu,...Uu(t.root.size),...Hu(a),...ku(l)},Xx,ue=>ue.add("aspectRatio",c)),d=rn(void 0),A=Ru();Bh(d,A,t,p,i,!0,o);const y=Qu(p,A,t.root.pixelSize);Pu(t.root,i,y,o);const C=Sh(t.childrenMatrix,y),v=Dh(t.clippingRect,C,A.size,t.root.pixelSize),D=Lu(A,v,p),I=cd(p),B=bs(p,Yi.Panel,I,t.orderInfo);o.push(ue=>Ul(p,B,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,ld(),ue));const w=bs(void 0,Yi.Svg,void 0,B),_=Kn(()=>{var ue,Ee;return ws((ue=e.value)==null?void 0:ue.src)??ws((Ee=n.value)==null?void 0:Ee.src)}),F=rn(void 0),Q=S0(t.root,t.clippingRect);yL(F,EY,lJ,o,_,t.root,Q,t.clippingRect,w,c),EL(p,F,o,t.root);const N=mY(t.root,A,F,c,D,o),U=Zx();ev(s,U,t.root.pixelSize,o);const X=$x(U,C,t.root.pixelSize);nv(p,U,A,C,D,t.clippingRect,w,t.root.panelGroupManager,o);const L=ud(w,t.root,t.clippingRect,A.size,o),H=tv(U,t.anyAncestorScrollable,A,i,L,n,t.root,o);return Fu(e,n,A.size,o),Ih(e,n,v,o),Object.assign(A,{scrollPosition:U,isClipped:v,mergedProperties:p,anyAncestorScrollable:t2(A.scrollable,t.anyAncestorScrollable),clippingRect:Yx(C,A,t.root.pixelSize,t.clippingRect),childrenMatrix:X,node:d,orderInfo:w,root:t.root,initializers:o,centerGroup:N,handlers:Nu(e,n,r,a,l,H),interactionPanel:L})}function mY(t,e,n,r,i,s){const o=new Cu;return o.matrixAutoUpdate=!1,s.push(()=>en(()=>{dL(o.position,o.scale,e.size,e.paddingInset,e.borderInset,t.pixelSize.value,r.value??1),o.updateMatrix(),t.requestRender()}),()=>en(()=>{const a=n.value;if(a!=null)return o.add(a),t.requestRender(),()=>{o.remove(a),t.requestRender()}}),()=>en(()=>{o.visible=n.value!=null&&i.value,t.requestRender()})),o}const yY=new kA,RE=new Vi,mp=new ae,dF=new Map;async function EY(t,e,n,r,i,s){if(t==null)return;const o=new Cu;o.matrixAutoUpdate=!1;let a=dF.get(t);a==null&&dF.set(t,a=await yY.loadAsync(t)),RE.makeEmpty();for(const c of a.paths){const p=kA.createShapes(c),d=new Uo;d.transparent=!0,d.depthWrite=!1,d.toneMapped=!1,d.clippingPlanes=n;for(const A of p){const y=new FA(A);y.computeBoundingBox(),RE.union(y.boundingBox);const C=new mr(y,d);C.matrixAutoUpdate=!1,C.raycast=hh(C,C.raycast,e.object,r,i),ad(C,e,i),C.userData.color=c.color,C.scale.y=-1,C.updateMatrix(),o.add(C)}}RE.getSize(mp),s.value=mp.x/mp.y;const l=1/mp.y;return o.scale.set(1,1,1).multiplyScalar(l),RE.getCenter(mp),mp.y*=-1,o.position.copy(mp).negate().multiplyScalar(l),o.updateMatrix(),o}function CY(t,e,n,r,i,s,o,a){const l=[],c=rn([]),p=rn([]);zu(c,l);const d=Ou(i,s,o,{...Gu,...Uu(t.root.size),...Hu(c),...ku(p)},Xx,Q=>{Q.add("aspectRatio",n/r),Q.add("width",n),Q.add("height",r)}),A=Ru();Bh(void 0,A,t,d,a,!0,l);const y=Qu(d,A,t.root.pixelSize);Pu(t.root,a,y,l);const C=Sh(t.childrenMatrix,y),v=Dh(t.clippingRect,C,A.size,t.root.pixelSize),D=Lu(A,v,d),I=cd(d),B=bs(d,Yi.Panel,I,t.orderInfo);l.push(Q=>Ul(d,B,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,ld(),Q));const w=bs(void 0,Yi.Svg,void 0,B),_=S0(t.root,t.clippingRect),F=vY(d,e,n,r,t,w,A,D,_,l);return Fu(i,s,A.size,l),Ih(i,s,v,l),Object.assign(A,{isClipped:v,mergedProperties:d,initializers:l,iconGroup:F,handlers:Nu(i,s,o,c,p),interactionPanel:ud(w,t.root,t.clippingRect,A.size,l)})}const xY=new kA;function vY(t,e,n,r,i,s,o,a,l,c){const p=new Cu;p.matrixAutoUpdate=!1;const d=xY.parse(e);for(const y of d.paths){const C=kA.createShapes(y),v=new Uo;v.transparent=!0,v.depthWrite=!1,v.toneMapped=!1,v.clippingPlanes=l;for(const D of C){const I=new FA(D);I.computeBoundingBox();const B=new mr(I,v);B.matrixAutoUpdate=!1,B.raycast=hh(B,B.raycast,i.root.object,i.clippingRect,s),ad(B,i.root,s),B.userData.color=y.color,B.scale.y=-1,B.updateMatrix(),p.add(B)}}const A=n/r;return c.push(()=>en(()=>{dL(p.position,p.scale,o.size,o.paddingInset,o.borderInset,i.root.pixelSize.value,A),p.position.x-=p.scale.x*A/2,p.position.y+=p.scale.x/2,p.scale.divideScalar(r),p.updateMatrix(),i.root.requestRender()}),()=>en(()=>{p.visible=a.value,i.root.requestRender()})),EL(t,p,c,i.root),p}const IY=["caretBorderRightWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderBottomWidth"];let fF;function DY(){return fF??(fF=B0({backgroundColor:"caretColor",backgroundOpacity:"caretOpacity",borderBend:"caretBorderBend",borderBottomLeftRadius:"caretBorderBottomLeftRadius",borderBottomRightRadius:"caretBorderBottomRightRadius",borderColor:"caretBorderColor",borderOpacity:"caretBorderOpacity",borderTopLeftRadius:"caretBorderTopLeftRadius",borderTopRightRadius:"caretBorderTopRightRadius"},{backgroundColor:0,backgroundOpacity:1})),fF}function SY(t,e,n,r,i,s,o,a){const l=bs(void 0,Yi.Panel,Kx,i),c=rn(void 0);a.push(()=>en(()=>{const A=n.value;A==null&&(c.value=void 0),c.value=A;const y=setInterval(()=>c.value=c.peek()==null?A:void 0,500);return()=>clearInterval(y)}));const p=Zw(t,IY),d=nr(t,"caretWidth",1.5);a.push(A=>Ul(t,l,void 0,o,e,Kn(()=>{const y=c.value;return y==null?[0,0]:[d.value,y[2]]}),Kn(()=>{const y=c.value;return y==null?[0,0]:[y[0]-d.value/2,y[1]]}),p,s,r,DY(),A))}const BY=["selectionBorderRightWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderBottomWidth"];let AF;function wY(){return AF??(AF=B0({backgroundColor:"selectionColor",backgroundOpacity:"selectionOpacity",borderBend:"selectionBorderBend",borderBottomLeftRadius:"selectionBorderBottomLeftRadius",borderBottomRightRadius:"selectionBorderBottomRightRadius",borderColor:"selectionBorderColor",borderOpacity:"selectionBorderOpacity",borderTopLeftRadius:"selectionBorderTopLeftRadius",borderTopRightRadius:"selectionBorderTopRightRadius"},{backgroundColor:11851775,backgroundOpacity:1})),AF}function bY(t,e,n,r,i,s,o,a){const l=[],c=bs(void 0,Yi.Panel,Kx,i),p=Zw(t,BY);return a.push(()=>en(()=>{const d=n.value,A=d.length;for(let C=0;C()=>{const d=l.length;for(let A=0;At.value)}}const MY=new Set;function _Y(t){MY.add(t)}function FY(t,e,n,r,i,s){var de,Oe,De,q,se,Y;const o=rn([]),a=rn([]),l=rn(!1),c=[];zu(o,c);const p=Ou(n,r,i,{...Gu,...Uu(t.root.size),...Hu(o),...ku(a),...TY(l)},void 0,K=>{Jx(n.value,r.value,i.value,ke=>{K.add("caretOpacity",ke.opacity),K.add("caretColor",ke.color)})}),d=Ru(),A=rn(void 0);Bh(A,d,t,p,s,!1,c);const y=Qu(p,d,t.root.pixelSize);Pu(t.root,s,y,c);const C=Sh(t.childrenMatrix,y),v=Dh(t.clippingRect,C,d.size,t.root.pixelSize),D=Lu(d,v,p),I=cd(p),B=bs(p,Yi.Panel,I,t.orderInfo);c.push(K=>Ul(p,B,I,t.root.panelGroupManager,C,d.size,void 0,d.borderInset,t.clippingRect,D,ld(),K));const w={},_=rn([]),F=rn(void 0),Q=rn(void 0);SY(p,C,F,D,B,t.clippingRect,t.root.panelGroupManager,c);const N=bY(p,C,_,D,B,t.clippingRect,t.root.panelGroupManager,c),U=NL(p,e,t.root.renderer,c),X=bs(void 0,Yi.Text,UL(U),N),L=((de=n.peek())==null?void 0:de.defaultValue)??((Oe=r.peek())==null?void 0:Oe.defaultValue),H=((De=n.peek())==null?void 0:De.value)==null&&((q=r.peek())==null?void 0:q.value)==null?rn(L??""):void 0,ue=Kn(()=>{var K,ke;return(H==null?void 0:H.value)??ws((K=n.value)==null?void 0:K.value)??ws((ke=r.value)==null?void 0:ke.value)??""}),Ee=vI(n,r,"type","text"),ne=Kn(()=>Ee.value==="text"?ue.value:"*".repeat(ue.value.length??0)),Te=((se=n.peek())==null?void 0:se.multiline)??((Y=r.peek())==null?void 0:Y.multiline)??!1,ve=GL(p,ne,C,A,d,D,t.clippingRect,X,U,t.root.gylphGroupManager,Q,_,F,w,c,Te?"break-word":"keep-all");c.push(()=>en(()=>{var K;return(K=A.value)==null?void 0:K.setCustomLayouting(ve.value)})),Fu(n,r,d.size,c),Ih(n,r,v,c);const Ue=vI(n,r,"disabled",!1),re=PY(ue,Q,K=>{var ke,ze,_e,We;H!=null&&(H.value=K),(ze=(ke=n.peek())==null?void 0:ke.onValueChange)==null||ze.call(ke,K),(We=(_e=r.peek())==null?void 0:_e.onValueChange)==null||We.call(_e,K)},Te,Ee,Ue,vI(n,r,"tabIndex",0),c),fe=(K,ke,ze)=>{const _e=re.peek();_e!=null&&(l.peek()||_e.focus(),K!=null&&ke!=null&&_e.setSelectionRange(K,ke,ze),Q.value=[_e.selectionStart??0,_e.selectionEnd??0])};RY(re,l,c,K=>{var ke,ze,_e,We;(ze=(ke=r.peek())==null?void 0:ke.onFocusChange)==null||ze.call(ke,K),(We=(_e=n.peek())==null?void 0:_e.onFocusChange)==null||We.call(_e,K)});const Ce=QY(d,w,fe,Ue);return Object.assign(d,{isClipped:v,mergedProperties:p,valueSignal:ue,focus:()=>fe(),root:t.root,element:re,node:A,interactionPanel:ud(B,t.root,t.clippingRect,d.size,c),handlers:Nu(n,r,i,o,a,Ce,"text"),initializers:c})}function QY(t,e,n,r){return Kn(()=>{if(r.value)return;let i;return{onPointerDown:s=>{var a;if(s.defaultPrevented||s.uv==null||e.current==null)return;_Y(s.nativeEvent),(a=s.stopPropagation)==null||a.call(s);const o=gF(t,s.uv,e.current);i=o,setTimeout(()=>n(o,o))},onPointerUp:s=>{i=void 0},onPointerLeave:s=>{i=void 0},onPointerMove:s=>{var p;if(i==null||s.uv==null||e.current==null)return;(p=s.stopPropagation)==null||p.call(s);const o=gF(t,s.uv,e.current),a=Math.min(i,o),l=Math.max(i,o),c=in(a,l,c))}}})}function PY(t,e,n,r,i,s,o,a){const l=rn(void 0);return a.push(c=>{const p=document.createElement(r?"textarea":"input"),d=p.style;d.setProperty("position","absolute"),d.setProperty("left","-1000vw"),d.setProperty("top","0"),d.setProperty("pointerEvents","none"),d.setProperty("opacity","0"),p.addEventListener("input",()=>{n==null||n(p.value),A()});const A=()=>{const{selectionStart:y,selectionEnd:C}=p;if(y==null||C==null){e.value=void 0;return}const v=e.peek();v!=null&&v[0]===y&&v[1]===C||(e.value=[y,C])};return p.addEventListener("keydown",A),p.addEventListener("keyup",A),p.addEventListener("blur",()=>e.value=void 0),document.body.appendChild(p),l.value=p,c.push(()=>{l.value=void 0,p.remove()},en(()=>p.value=t.value),en(()=>p.disabled=s.value),en(()=>p.tabIndex=o.value),en(()=>p.setAttribute("type",i.value))),c}),l}function RY(t,e,n,r){n.push(()=>en(()=>{const i=t.value;if(i==null)return;e.value=document.activeElement===i;const s=()=>{const o=document.activeElement===i;o!=e.value&&(e.value=o,r(o))};return i.addEventListener("focus",s),i.addEventListener("blur",s),()=>{i.removeEventListener("focus",s),i.removeEventListener("blur",s)}}))}function gF({size:t,borderInset:e,paddingInset:n},r,i){const s=t.peek(),o=e.peek(),a=n.peek();if(s==null||o==null||a==null)return 0;const[l,c]=s,[p,,,d]=o,[A,,,y]=a,C=r.x*l-d-y,v=-r.y*c+p+A;return i.getCharIndex(C,v)}function kY(t,e,n,r,i,s){const o=rn([]),a=rn([]),l=[];zu(o,l);const c=Ou(e,n,r,{...Gu,...Uu(t.root.size),...Hu(o),...ku(a)}),p=Ru();Bh(void 0,p,t,c,i,!0,l);const d=Qu(c,p,t.root.pixelSize);Pu(t.root,i,d,l);const A=Sh(t.childrenMatrix,d),y=Dh(t.clippingRect,A,p.size,t.root.pixelSize),C=Lu(p,y,c),v=bs(c,Yi.Custom,void 0,t.orderInfo),D=S0(t.root,t.clippingRect);return l.push(I=>{const B=s.current;if(B==null)return I;if(B.matrixAutoUpdate=!1,B.material instanceof Ni){const w=B.material;w.clippingPlanes=D,w.needsUpdate=!0,w.shadowSide=wa,I.push(()=>en(()=>{w.depthTest=t.root.depthTest.value,t.root.requestRender()}))}return B.raycast=hh(B,B.raycast,t.root.object,t.clippingRect,v),ad(B,t.root,v),I.push(en(()=>{B.renderOrder=t.root.renderOrder.value,t.root.requestRender()}),en(()=>{B.receiveShadow=c.value.read("receiveShadow",!1),t.root.requestRender()}),en(()=>{B.castShadow=c.value.read("castShadow",!1),t.root.requestRender()}),en(()=>{if(p.size.value==null)return;const[w,_]=p.size.value,F=t.root.pixelSize.value;B.scale.set(w*F,_*F,1),B.updateMatrix(),t.root.requestRender()}),en(()=>{B.visible=C.value,t.root.requestRender()})),I}),Fu(e,n,p.size,l),Ih(e,n,y,l),Object.assign(p,{isClipped:y,mergedProperties:c,root:t.root,handlers:Nu(e,n,r,o,a),initializers:l})}function LY(t,e,n,r,i,s){const o=rn([]),a=rn([]),l=[],c=Ru();zu(o,l);const p=rn(new ae(1,1,1)),d=Kn(()=>p.value.x/p.value.y),A=Ou(e,n,r,{...Gu,...Uu(t.root.size),...Hu(o),...ku(a)},Xx,_=>_.add("aspectRatio",d));Bh(void 0,c,t,A,i,!0,l);const y=Qu(A,c,t.root.pixelSize);Pu(t.root,i,y,l);const C=Sh(t.childrenMatrix,y),v=Dh(t.clippingRect,C,c.size,t.root.pixelSize),D=Lu(c,v,A),I=cd(A),B=bs(A,Yi.Panel,I,t.orderInfo);l.push(_=>Ul(A,B,I,t.root.panelGroupManager,C,c.size,void 0,c.borderInset,t.clippingRect,D,ld(),_));const w=bs(void 0,Yi.Object,void 0,B);return Fu(e,n,c.size,l),Ih(e,n,v,l),Object.assign(c,{isClipped:v,mergedProperties:A,remeasureContent:UY(A,t.root,c,t.clippingRect,D,w,p,s,l),interactionPanel:ud(B,t.root,t.clippingRect,c.size,l),handlers:Nu(e,n,r,o,a),initializers:l})}const UI=new Vi,mF=new ae().setScalar(.001),NY=new ae,OY="back";function UY(t,e,n,r,i,s,o,a,l){const c=S0(e,r),p=nr(t,"depthAlign",OY),d=nr(t,"keepAspectRatio",!0),A=new ae,y=new ae,C=(D,I,B,w)=>{D!=null&&(D.visible=I,D.traverse(_=>{_ instanceof mr&&(_.renderOrder=B,_.material instanceof Ni&&(_.material.depthTest=w))}),e.requestRender())},v=()=>{const D=a.current;if(D==null){A.copy(mF),y.set(0,0,0);return}D.traverse(B=>{B instanceof mr&&(ad(B,e,s),B.material.clippingPlanes=c,B.material.needsUpdate=!0,B.raycast=hh(B,B.raycast,e.object,r,s))});const I=D.parent;D.parent=null,UI.setFromObject(D),UI.getSize(A).max(mF),o.value=A,I!=null&&(D.parent=I),UI.getCenter(y),e.requestRender()};return l.push(()=>en(()=>{C(a.current,i.value,e.renderOrder.value,e.depthTest.value),e.requestRender()}),D=>{const I=a.current;return I==null||(v(),D.push(en(()=>{const{size:{value:B},paddingInset:{value:w},borderInset:{value:_}}=n;if(B==null||w==null||_==null)return;const[F,Q]=B,[N,U,X,L]=w,[H,ue,Ee,ne]=_,Te=N+H,ve=U+ue,Ue=X+Ee,re=L+ne,fe=F-re-ve,Ce=Q-Te-Ue,de=e.pixelSize.value;I.scale.set(fe*de,Ce*de,d.value?Ce*de*A.z/A.y:A.z).divide(A),I.position.copy(y).negate(),I.position.z-=Dj[p.value]*A.z,I.position.multiply(I.scale),I.position.add(NY.set((re-ve)*.5*de,(Ue-Te)*.5*de,0)),I.updateMatrix(),e.requestRender()}))),D}),()=>{C(a.current,i.peek(),e.renderOrder.peek(),e.depthTest.peek()),v()}}function GY(t,e,n,r,i,s){if(i instanceof Pi){const o=2*Math.tan(Math.PI*i.fov/360)*r;n.value=o/s,e.value=o,t.value=o*i.aspect}if(i instanceof TA){const o=i.top-i.bottom,a=i.right-i.left;n.value=o/s,e.value=o,t.value=a}}function zY(t,{src:e,autoplay:n,loop:r,muted:i,playbackRate:s,preservesPitch:o,volume:a}){if(!(e instanceof HTMLElement)){if(n&&(t.remove(),document.body.append(t),t.style.position="absolute",t.style.width="1px",t.style.zIndex="-1000",t.style.top="0px",t.style.left="0px"),t.playsInline=!0,t.volume=a??1,t.preservesPitch=o??!0,t.playbackRate=s??1,t.muted=i??!1,t.loop=r??!1,t.autoplay=n??!1,e==null){t.removeAttribute("src"),t.removeAttribute("srcObject");return}typeof e=="string"?t.src=e:t.srcObject=e}}function HY(t,e){let n;const r=()=>{e(),n=t.requestVideoFrameCallback(r)};return n=t.requestVideoFrameCallback(r),()=>t.cancelVideoFrameCallback(n)}function zu(t,e){e.push(()=>()=>zL(t))}function WY(t,e,n,r,i,s){let o=!1;Jx(e,n,r,l=>{"hover"in l&&(o=!0)});const a=(e==null?void 0:e.cursor)??(n==null?void 0:n.cursor)??s;if(!o&&(e==null?void 0:e.onHoverChange)==null&&(n==null?void 0:n.onHoverChange)==null&&a==null){i.value.length=0;return}zp("onPointerOver",t,({pointerId:l})=>{var c,p;i.value=[l,...i.value],i.value.length===1&&((c=n==null?void 0:n.onHoverChange)==null||c.call(n,!0),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!0)),a!=null&&VY(i,a)}),zp("onPointerOut",t,({pointerId:l})=>{var c,p;i.value=i.value.filter(d=>d!=l),i.value.length===0&&((c=n==null?void 0:n.onHoverChange)==null||c.call(n,!1),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!1)),zL(i)})}function Hu(t){return{hover:D0(()=>t.value.length>0)}}const eB=[],cC=[];function VY(t,e){eB.push(t),cC.push(e),document.body.style.cursor=e}function zL(t){const e=eB.indexOf(t);e!=-1&&(eB.splice(e,1),cC.splice(e,1),document.body.style.cursor=cC[cC.length-1]??"default")}var yF={},jY=Object.create,rv=Object.defineProperty,JY=Object.getOwnPropertyDescriptor,YY=Object.getOwnPropertyNames,XY=Object.getPrototypeOf,qY=Object.prototype.hasOwnProperty,w0=(t,e)=>()=>(t&&(e=t(t=0)),e),Bt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),iv=(t,e)=>{for(var n in e)rv(t,n,{get:e[n],enumerable:!0})},HL=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of YY(e))!qY.call(t,i)&&i!==n&&rv(t,i,{get:()=>e[i],enumerable:!(r=JY(e,i))||r.enumerable});return t},Xi=(t,e,n)=>(n=t!=null?jY(XY(t)):{},HL(e||!t||!t.__esModule?rv(n,"default",{value:t,enumerable:!0}):n,t)),$p=t=>HL(rv({},"__esModule",{value:!0}),t),WL,KY=w0(()=>{WL=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} +`)&&r.push({charLength:0,nonWhitespaceWidth:0,whitespacesBetween:0,charIndexOffset:s.length,nonWhitespaceCharLength:0}),{lines:r,availableHeight:n,availableWidth:e,...t}}const hF=new gn,lY=new gn;function UL(t){return Kn(()=>({font:t.value}))}class uY{constructor(e,n,r,i,s){qe(this,"group");qe(this,"baseMatrix");qe(this,"color");qe(this,"opacity");qe(this,"clippingRect");qe(this,"index");qe(this,"hidden",!0);qe(this,"glyphInfo");qe(this,"x",0);qe(this,"y",0);qe(this,"fontSize",0);qe(this,"pixelSize",0);this.group=e,this.baseMatrix=n,this.color=r,this.opacity=i,this.clippingRect=s}getX(e){return this.glyphInfo==null?this.x:this.x+e*this.glyphInfo.width*this.fontSize}show(){this.hidden&&(this.hidden=!1,this.group.requestActivate(this))}hide(){this.hidden||(this.hidden=!0,this.group.delete(this))}activate(e){this.index=e,this.writeUpdatedMatrix(),this.writeUV(),this.updateColor(this.color),this.updateOpacity(this.opacity),this.updateClippingRect(this.clippingRect)}setIndex(e){this.index=e}updateClippingRect(e){if(this.clippingRect=e,this.index==null)return;const n=this.index*16,{instanceClipping:r,root:i}=this.group;this.clippingRect==null?r.set(JC,n):this.clippingRect.toArray(r.array,n),r.addUpdateRange(n,16),r.needsUpdate=!0,i.requestRender()}updateColor(e){if(this.color=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=n.itemSize*this.index;o0(n.array,i,e,void 0),n.addUpdateRange(i,3),n.needsUpdate=!0,r.requestRender()}updateOpacity(e){if(this.opacity=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=this.index*4+3;n.array[i]=e,n.addUpdateRange(i,1),n.needsUpdate=!0,r.requestRender()}updateGlyphAndTransformation(e,n,r,i,s){this.glyphInfo===e&&this.x===n&&this.y===r&&this.fontSize===i&&this.pixelSize===s||(this.glyphInfo!=e&&(this.glyphInfo=e,this.writeUV()),this.x=n,this.y=r,this.fontSize=i,this.pixelSize=s,this.writeUpdatedMatrix())}updateBaseMatrix(e){this.baseMatrix!==e&&(this.baseMatrix=e,this.writeUpdatedMatrix())}writeUV(){if(this.index==null||this.glyphInfo==null)return;const e=this.index*4,{instanceUV:n,root:r}=this.group;sY(this.glyphInfo,n.array,e),n.addUpdateRange(e,4),n.needsUpdate=!0,r.requestRender()}writeUpdatedMatrix(){if(this.index==null||this.glyphInfo==null||this.baseMatrix==null)return;const e=this.index*16,{instanceMatrix:n,root:r}=this.group;n.addUpdateRange(e,16),hF.makeTranslation(this.x*this.pixelSize,this.y*this.pixelSize,0).multiply(lY.makeScale(this.fontSize*this.glyphInfo.width*this.pixelSize,this.fontSize*this.glyphInfo.height*this.pixelSize,1)).premultiply(this.baseMatrix),hF.toArray(n.array,e),n.needsUpdate=!0,r.requestRender()}}const cY="middle",hY="left";function GL(t,e,n,r,i,s,o,a,l,c,p,d,A,y,C,v){let D={current:void 0};const I=oY(t,l,e,D,v),B=nr(t,"verticalAlign",cY),w=nr(t,"textAlign",hY),_=nr(t,"color",0),F=nr(t,"opacity",1),Q=rn(void 0);return C.push(()=>en(()=>{var N;return(N=r.value)==null?void 0:N.addLayoutChangeListener(()=>{const U=D.current,{size:{value:X},paddingInset:{value:L},borderInset:{value:H}}=i;if(U==null||X==null||L==null||H==null)return;const[ue,Ee]=X,[ne,Te,ve,Ue]=L,[re,fe,Ce,de]=H,Oe=ue-Te-Ue-fe-de,De=Ee-ne-ve-re-Ce;Q.value=aY(U,Oe,De)})}),()=>en(()=>{const N=l.value;if(N==null||a.value==null)return;const U=new dY(c.getGroup(a.value.majorIndex,N),w,B,_,F,Q,n,s,o,p,d,A);return y!=null&&(y.current=U),()=>U.destroy()})),I}const pY=[];class dY{constructor(e,n,r,i,s,o,a,l,c,p,d,A){qe(this,"group");qe(this,"textAlign");qe(this,"verticalAlign");qe(this,"color");qe(this,"opacity");qe(this,"layoutSignal");qe(this,"matrix");qe(this,"parentClippingRect");qe(this,"selectionRange");qe(this,"selectionBoxes");qe(this,"caretPosition");qe(this,"glyphLines",[]);qe(this,"lastLayout");qe(this,"unsubscribeInitialList",[]);qe(this,"unsubscribeShowList",[]);this.group=e,this.textAlign=n,this.verticalAlign=r,this.color=i,this.opacity=s,this.layoutSignal=o,this.matrix=a,this.parentClippingRect=c,this.selectionRange=p,this.selectionBoxes=d,this.caretPosition=A,this.unsubscribeInitialList=[en(()=>{if(!l.value||s.value<.01){this.hide();return}this.show()}),en(()=>this.updateSelectionBoxes(this.lastLayout,p==null?void 0:p.value,r.peek(),n.peek()))]}getCharIndex(e,n){const r=this.lastLayout;if(r==null)return 0;n-=-PE(r,this.verticalAlign.peek());const i=Math.floor(n/-FE(r.lineHeight,r.fontSize)),s=r.lines;if(i<0||s.length===0)return 0;if(i>=s.length){const p=s[s.length-1];return p.charIndexOffset+p.charLength+1}const o=s[i],a=r.font.getGlyphInfo(" ").xadvance*r.fontSize,l=this.glyphLines[i];let c=l.length;for(let p=0;p=d.charIndexOffset+d.charLength)continue;const A=this.glyphLines[p][Math.max(r-d.charIndexOffset,0)];return{lineIndex:p,x:this.getGlyphX(A,i?0:1,s)}}const l=e[a-1];if(l.charLength===0)return{lineIndex:a-1,x:pF(n,l.nonWhitespaceWidth,o)-n/2};const c=this.glyphLines[a-1][l.charLength-1];return{lineIndex:a-1,x:this.getGlyphX(c,1,s)}}getGlyphX(e,n,r){return typeof e=="number"?e+n*r:e.getX(n)}show(){this.unsubscribeShowList.length>0||(gp(this.glyphLines,e=>e.show()),this.unsubscribeShowList.push(en(()=>{const e=this.matrix.value;e!=null&&gp(this.glyphLines,n=>n.updateBaseMatrix(e))}),en(()=>{var n;const e=(n=this.parentClippingRect)==null?void 0:n.value;gp(this.glyphLines,r=>r.updateClippingRect(e))}),en(()=>{const e=this.color.value;gp(this.glyphLines,n=>n.updateColor(e))}),en(()=>{const e=this.opacity.value;gp(this.glyphLines,n=>n.updateOpacity(e))}),en(()=>{var A,y;const e=this.layoutSignal.value;if(e==null)return;const{text:n,font:r,lines:i,letterSpacing:s=0,fontSize:o=16,lineHeight:a=1.2,availableWidth:l}=e;let c=PE(e,this.verticalAlign.value)-e.availableHeight/2;const p=i.length,d=this.group.pixelSize.value;for(let C=0;CB+I){Q=Ee.id;const ve=F+uF(r,o,Ee,Q);typeof N[H]=="number"?N[H]=F:N.splice(H,0,ve),F+=_+a0(o,Ee,s);continue}let ne=N[H];for(;HC.hide(),p),this.glyphLines.length=p,this.lastLayout=e,this.updateSelectionBoxes(e,(y=this.selectionRange)==null?void 0:y.peek(),this.verticalAlign.value,this.textAlign.value)})))}hide(){const e=this.unsubscribeShowList.length;if(e!==0){for(let n=0;nn.hide())}}destroy(){this.hide(),this.glyphLines.length=0;const e=this.unsubscribeInitialList.length;for(let n=0;nUl(p,B,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,ld(),Q));const w=NL(p,n,t.root.renderer,c),_=bs(void 0,Yi.Text,UL(w),B),F=GL(p,e,C,d,A,D,t.clippingRect,_,w,t.root.gylphGroupManager,void 0,void 0,void 0,void 0,c,"break-word");return c.push(()=>en(()=>{var Q;return(Q=d.value)==null?void 0:Q.setCustomLayouting(F.value)})),Fu(r,i,A.size,c),Ih(r,i,v,c),Object.assign(A,{isClipped:v,mergedProperties:p,interactionPanel:ud(B,t.root,t.clippingRect,A.size,c),handlers:Nu(r,i,s,a,l),initializers:c})}const AY=ri;class kA extends vo{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,n,r,i){const s=this,o=new Nl(s.manager);o.setPath(s.path),o.setRequestHeader(s.requestHeader),o.setWithCredentials(s.withCredentials),o.load(e,function(a){try{n(s.parse(a))}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},r,i)}parse(e){const n=this;function r(q,se){if(q.nodeType!==1)return;const Y=_(q);let K=!1,ke=null;switch(q.nodeName){case"svg":se=C(q,se);break;case"style":s(q);break;case"g":se=C(q,se);break;case"path":se=C(q,se),q.hasAttribute("d")&&(ke=i(q));break;case"rect":se=C(q,se),ke=l(q);break;case"polygon":se=C(q,se),ke=c(q);break;case"polyline":se=C(q,se),ke=p(q);break;case"circle":se=C(q,se),ke=d(q);break;case"ellipse":se=C(q,se),ke=A(q);break;case"line":se=C(q,se),ke=y(q);break;case"defs":K=!0;break;case"use":se=C(q,se);const We=(q.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),oe=q.viewportElement.getElementById(We);oe?r(oe,se):console.warn("SVGLoader: 'use node' references non-existent node id: "+We);break}ke&&(se.fill!==void 0&&se.fill!=="none"&&ke.color.setStyle(se.fill,AY),Q(ke,de),ue.push(ke),ke.userData={node:q,style:se});const ze=q.childNodes;for(let _e=0;_e0?de.copy(ne[ne.length-1]):de.identity())}function i(q){const se=new Lc,Y=new it,K=new it,ke=new it;let ze=!0,_e=!1;const We=q.getAttribute("d");if(We===""||We==="none")return null;const oe=We.match(/[a-df-z][^a-df-z]*/ig);for(let Le=0,Be=oe.length;Le0&&(Y.copy(ke),se.currentPath.currentPoint.copy(Y),ze=!0);break;default:console.warn(Ve)}_e=!1}return se}function s(q){if(!(!q.sheet||!q.sheet.cssRules||!q.sheet.cssRules.length))for(let se=0;seke.trim());for(let ke=0;ke_e!==""));Ee[K[ke]]=Object.assign(Ee[K[ke]]||{},ze)}}}function o(q,se,Y,K,ke,ze,_e,We){if(se==0||Y==0){q.lineTo(We.x,We.y);return}K=K*Math.PI/180,se=Math.abs(se),Y=Math.abs(Y);const oe=(_e.x-We.x)/2,Le=(_e.y-We.y)/2,Be=Math.cos(K)*oe+Math.sin(K)*Le,Ve=-Math.sin(K)*oe+Math.cos(K)*Le;let Ge=se*se,at=Y*Y;const Ie=Be*Be,W=Ve*Ve,Z=Ie/Ge+W/at;if(Z>1){const gt=Math.sqrt(Z);se=gt*se,Y=gt*Y,Ge=se*se,at=Y*Y}const Ne=Ge*W+at*Ie,dt=(Ge*at-Ne)/Ne;let ht=Math.sqrt(Math.max(0,dt));ke===ze&&(ht=-ht);const lt=ht*se*Ve/Y,Nt=-ht*Y*Be/se,Mt=Math.cos(K)*lt-Math.sin(K)*Nt+(_e.x+We.x)/2,Lt=Math.sin(K)*lt+Math.cos(K)*Nt+(_e.y+We.y)/2,_t=a(1,0,(Be-lt)/se,(Ve-Nt)/Y),Ft=a((Be-lt)/se,(Ve-Nt)/Y,(-Be-lt)/se,(-Ve-Nt)/Y)%(Math.PI*2);q.currentPath.absellipse(Mt,Lt,se,Y,_t,_t+Ft,ze===0,K)}function a(q,se,Y,K){const ke=q*Y+se*K,ze=Math.sqrt(q*q+se*se)*Math.sqrt(Y*Y+K*K);let _e=Math.acos(Math.max(-1,Math.min(1,ke/ze)));return q*K-se*Y<0&&(_e=-_e),_e}function l(q){const se=w(q.getAttribute("x")||0),Y=w(q.getAttribute("y")||0),K=w(q.getAttribute("rx")||q.getAttribute("ry")||0),ke=w(q.getAttribute("ry")||q.getAttribute("rx")||0),ze=w(q.getAttribute("width")),_e=w(q.getAttribute("height")),We=1-.551915024494,oe=new Lc;return oe.moveTo(se+K,Y),oe.lineTo(se+ze-K,Y),(K!==0||ke!==0)&&oe.bezierCurveTo(se+ze-K*We,Y,se+ze,Y+ke*We,se+ze,Y+ke),oe.lineTo(se+ze,Y+_e-ke),(K!==0||ke!==0)&&oe.bezierCurveTo(se+ze,Y+_e-ke*We,se+ze-K*We,Y+_e,se+ze-K,Y+_e),oe.lineTo(se+K,Y+_e),(K!==0||ke!==0)&&oe.bezierCurveTo(se+K*We,Y+_e,se,Y+_e-ke*We,se,Y+_e-ke),oe.lineTo(se,Y+ke),(K!==0||ke!==0)&&oe.bezierCurveTo(se,Y+ke*We,se+K*We,Y,se+K,Y),oe}function c(q){function se(ze,_e,We){const oe=w(_e),Le=w(We);ke===0?K.moveTo(oe,Le):K.lineTo(oe,Le),ke++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,K=new Lc;let ke=0;return q.getAttribute("points").replace(Y,se),K.currentPath.autoClose=!0,K}function p(q){function se(ze,_e,We){const oe=w(_e),Le=w(We);ke===0?K.moveTo(oe,Le):K.lineTo(oe,Le),ke++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,K=new Lc;let ke=0;return q.getAttribute("points").replace(Y,se),K.currentPath.autoClose=!1,K}function d(q){const se=w(q.getAttribute("cx")||0),Y=w(q.getAttribute("cy")||0),K=w(q.getAttribute("r")||0),ke=new rh;ke.absarc(se,Y,K,0,Math.PI*2);const ze=new Lc;return ze.subPaths.push(ke),ze}function A(q){const se=w(q.getAttribute("cx")||0),Y=w(q.getAttribute("cy")||0),K=w(q.getAttribute("rx")||0),ke=w(q.getAttribute("ry")||0),ze=new rh;ze.absellipse(se,Y,K,ke,0,Math.PI*2);const _e=new Lc;return _e.subPaths.push(ze),_e}function y(q){const se=w(q.getAttribute("x1")||0),Y=w(q.getAttribute("y1")||0),K=w(q.getAttribute("x2")||0),ke=w(q.getAttribute("y2")||0),ze=new Lc;return ze.moveTo(se,Y),ze.lineTo(K,ke),ze.currentPath.autoClose=!1,ze}function C(q,se){se=Object.assign({},se);let Y={};if(q.hasAttribute("class")){const _e=q.getAttribute("class").split(/\s/).filter(Boolean).map(We=>We.trim());for(let We=0;We<_e.length;We++)Y=Object.assign(Y,Ee["."+_e[We]])}q.hasAttribute("id")&&(Y=Object.assign(Y,Ee["#"+q.getAttribute("id")]));function K(_e,We,oe){oe===void 0&&(oe=function(Be){return Be.startsWith("url")&&console.warn("SVGLoader: url access in attributes is not implemented."),Be}),q.hasAttribute(_e)&&(se[We]=oe(q.getAttribute(_e))),Y[_e]&&(se[We]=oe(Y[_e])),q.style&&q.style[_e]!==""&&(se[We]=oe(q.style[_e]))}function ke(_e){return Math.max(0,Math.min(1,w(_e)))}function ze(_e){return Math.max(0,w(_e))}return K("fill","fill"),K("fill-opacity","fillOpacity",ke),K("fill-rule","fillRule"),K("opacity","opacity",ke),K("stroke","stroke"),K("stroke-opacity","strokeOpacity",ke),K("stroke-width","strokeWidth",ze),K("stroke-linejoin","strokeLineJoin"),K("stroke-linecap","strokeLineCap"),K("stroke-miterlimit","strokeMiterLimit",ze),K("visibility","visibility"),se}function v(q,se){return q-(se-q)}function D(q,se,Y){if(typeof q!="string")throw new TypeError("Invalid input: "+typeof q);const K={SEPARATOR:/[ \t\r\n\,.\-+]/,WHITESPACE:/[ \t\r\n]/,DIGIT:/[\d]/,SIGN:/[-+]/,POINT:/\./,COMMA:/,/,EXP:/e/i,FLAGS:/[01]/},ke=0,ze=1,_e=2,We=3;let oe=ke,Le=!0,Be="",Ve="";const Ge=[];function at(Ne,dt,ht){const lt=new SyntaxError('Unexpected character "'+Ne+'" at index '+dt+".");throw lt.partial=ht,lt}function Ie(){Be!==""&&(Ve===""?Ge.push(Number(Be)):Ge.push(Number(Be)*Math.pow(10,Number(Ve)))),Be="",Ve=""}let W;const Z=q.length;for(let Ne=0;Ne0&&se.premultiply(ne[ne.length-1]),de.copy(se),ne.push(se),se}function F(q){const se=new Qn,Y=Te;if(q.nodeName==="use"&&(q.hasAttribute("x")||q.hasAttribute("y"))){const K=w(q.getAttribute("x")),ke=w(q.getAttribute("y"));se.translate(K,ke)}if(q.hasAttribute("transform")){const K=q.getAttribute("transform").split(")");for(let ke=K.length-1;ke>=0;ke--){const ze=K[ke].trim();if(ze==="")continue;const _e=ze.indexOf("("),We=ze.length;if(_e>0&&_e=1){const Be=Le[0];let Ve=0;Le.length>=2&&(Ve=Le[1]),Y.translate(Be,Ve)}break;case"rotate":if(Le.length>=1){let Be=0,Ve=0,Ge=0;Be=Le[0]*Math.PI/180,Le.length>=3&&(Ve=Le[1],Ge=Le[2]),ve.makeTranslation(-Ve,-Ge),Ue.makeRotation(Be),re.multiplyMatrices(Ue,ve),ve.makeTranslation(Ve,Ge),Y.multiplyMatrices(ve,re)}break;case"scale":if(Le.length>=1){const Be=Le[0];let Ve=Be;Le.length>=2&&(Ve=Le[1]),Y.scale(Be,Ve)}break;case"skewX":Le.length===1&&Y.set(1,Math.tan(Le[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":Le.length===1&&Y.set(1,0,0,Math.tan(Le[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":Le.length===6&&Y.set(Le[0],Le[2],Le[4],Le[1],Le[3],Le[5],0,0,1);break}}se.premultiply(Y)}}return se}function Q(q,se){function Y(_e){Ce.set(_e.x,_e.y,1).applyMatrix3(se),_e.set(Ce.x,Ce.y)}function K(_e){const We=_e.xRadius,oe=_e.yRadius,Le=Math.cos(_e.aRotation),Be=Math.sin(_e.aRotation),Ve=new ae(We*Le,We*Be,0),Ge=new ae(-oe*Be,oe*Le,0),at=Ve.applyMatrix3(se),Ie=Ge.applyMatrix3(se),W=Te.set(at.x,Ie.x,0,at.y,Ie.y,0,0,0,1),Z=ve.copy(W).invert(),ht=Ue.copy(Z).transpose().multiply(Z).elements,lt=H(ht[0],ht[1],ht[4]),Nt=Math.sqrt(lt.rt1),Mt=Math.sqrt(lt.rt2);if(_e.xRadius=1/Nt,_e.yRadius=1/Mt,_e.aRotation=Math.atan2(lt.sn,lt.cs),!((_e.aEndAngle-_e.aStartAngle)%(2*Math.PI){const{x:ln,y:Kt}=new ae(Math.cos(Dn),Math.sin(Dn),0).applyMatrix3(gt);return Math.atan2(Kt,ln)};_e.aStartAngle=Pn(_e.aStartAngle),_e.aEndAngle=Pn(_e.aEndAngle),N(se)&&(_e.aClockwise=!_e.aClockwise)}}function ke(_e){const We=X(se),oe=L(se);_e.xRadius*=We,_e.yRadius*=oe;const Le=We>Number.EPSILON?Math.atan2(se.elements[1],se.elements[0]):Math.atan2(-se.elements[3],se.elements[4]);_e.aRotation+=Le,N(se)&&(_e.aStartAngle*=-1,_e.aEndAngle*=-1,_e.aClockwise=!_e.aClockwise)}const ze=q.subPaths;for(let _e=0,We=ze.length;_eNumber.EPSILON}function X(q){const se=q.elements;return Math.sqrt(se[0]*se[0]+se[1]*se[1])}function L(q){const se=q.elements;return Math.sqrt(se[3]*se[3]+se[4]*se[4])}function H(q,se,Y){let K,ke,ze,_e,We;const oe=q+Y,Le=q-Y,Be=Math.sqrt(Le*Le+4*se*se);return oe>0?(K=.5*(oe+Be),We=1/K,ke=q*We*Y-se*We*se):oe<0?ke=.5*(oe-Be):(K=.5*Be,ke=-.5*Be),Le>0?ze=Le+Be:ze=Le-Be,Math.abs(ze)>2*Math.abs(se)?(We=-2*se/ze,_e=1/Math.sqrt(1+We*We),ze=We*_e):Math.abs(se)===0?(ze=1,_e=0):(We=-.5*ze/se,ze=1/Math.sqrt(1+We*We),_e=We*ze),Le>0&&(We=ze,ze=-_e,_e=We),{rt1:K,rt2:ke,cs:ze,sn:_e}}const ue=[],Ee={},ne=[],Te=new Qn,ve=new Qn,Ue=new Qn,re=new Qn,fe=new it,Ce=new ae,de=new Qn,Oe=new DOMParser().parseFromString(e,"image/svg+xml");return r(Oe.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:ue,xml:Oe.documentElement}}static createShapes(e){const r={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:r.ORIGIN,t:0};function s(v,D,I,B){const w=v.x,_=D.x,F=I.x,Q=B.x,N=v.y,U=D.y,X=I.y,L=B.y,H=(Q-F)*(N-X)-(L-X)*(w-F),ue=(_-w)*(N-X)-(U-N)*(w-F),Ee=(L-X)*(_-w)-(Q-F)*(U-N),ne=H/Ee,Te=ue/Ee;if(Ee===0&&H!==0||ne<=0||ne>=1||Te<0||Te>1)return null;if(H===0&&Ee===0){for(let ve=0;ve<2;ve++)if(o(ve===0?I:B,v,D),i.loc==r.ORIGIN){const Ue=ve===0?I:B;return{x:Ue.x,y:Ue.y,t:i.t}}else if(i.loc==r.BETWEEN){const Ue=+(w+i.t*(_-w)).toPrecision(10),re=+(N+i.t*(U-N)).toPrecision(10);return{x:Ue,y:re,t:i.t}}return null}else{for(let re=0;re<2;re++)if(o(re===0?I:B,v,D),i.loc==r.ORIGIN){const fe=re===0?I:B;return{x:fe.x,y:fe.y,t:i.t}}const ve=+(w+ne*(_-w)).toPrecision(10),Ue=+(N+ne*(U-N)).toPrecision(10);return{x:ve,y:Ue,t:ne}}}function o(v,D,I){const B=I.x-D.x,w=I.y-D.y,_=v.x-D.x,F=v.y-D.y,Q=B*F-_*w;if(v.x===D.x&&v.y===D.y){i.loc=r.ORIGIN,i.t=0;return}if(v.x===I.x&&v.y===I.y){i.loc=r.DESTINATION,i.t=1;return}if(Q<-Number.EPSILON){i.loc=r.LEFT;return}if(Q>Number.EPSILON){i.loc=r.RIGHT;return}if(B*_<0||w*F<0){i.loc=r.BEHIND;return}if(Math.sqrt(B*B+w*w)L.t<=X.t+Number.EPSILON&&L.t>=X.t-Number.EPSILON)===void 0&&(I.push(X),B.push(new it(X.x,X.y)))}}return B}function l(v,D,I){const B=new it;D.getCenter(B);const w=[];return I.forEach(_=>{_.boundingBox.containsPoint(B)&&a(v,_.points).forEach(Q=>{w.push({identifier:_.identifier,isCW:_.isCW,point:Q})})}),w.sort((_,F)=>_.point.x-F.point.x),w}function c(v,D,I,B,w){(w==null||w==="")&&(w="nonzero");const _=new it;v.boundingBox.getCenter(_);const F=[new it(I,_.y),new it(B,_.y)],Q=l(F,v.boundingBox,D);Q.sort((ue,Ee)=>ue.point.x-Ee.point.x);const N=[],U=[];Q.forEach(ue=>{ue.identifier===v.identifier?N.push(ue):U.push(ue)});const X=N[0].point.x,L=[];let H=0;for(;H0&&L[L.length-1]===U[H].identifier?L.pop():L.push(U[H].identifier),H++;if(L.push(v.identifier),w==="evenodd"){const ue=L.length%2===0,Ee=L[L.length-2];return{identifier:v.identifier,isHole:ue,for:Ee}}else if(w==="nonzero"){let ue=!0,Ee=null,ne=null;for(let Te=0;Te{const D=v.getPoints();let I=-999999999,B=999999999,w=-999999999,_=999999999;for(let F=0;FI&&(I=Q.y),Q.yw&&(w=Q.x),Q.x<_&&(_=Q.x)}return d<=w&&(d=w+1),p>=_&&(p=_-1),{curves:v.curves,points:D,isCW:nl.isClockWise(D),identifier:-1,boundingBox:new Qk(new it(_,B),new it(w,I))}});A=A.filter(v=>v.points.length>1);for(let v=0;vc(v,A,p,d,e.userData?e.userData.style.fillRule:void 0)),C=[];return A.forEach(v=>{if(!y[v.identifier].isHole){const I=new ih;I.curves=v.curves,y.filter(w=>w.isHole&&w.for===v.identifier).forEach(w=>{const _=A[w.identifier],F=new rh;F.curves=_.curves,I.holes.push(F)}),C.push(I)}}),C}static getStrokeStyle(e,n,r,i,s){return e=e!==void 0?e:1,n=n!==void 0?n:"#000",r=r!==void 0?r:"miter",i=i!==void 0?i:"butt",s=s!==void 0?s:4,{strokeColor:n,strokeWidth:e,strokeLineJoin:r,strokeLineCap:i,strokeMiterLimit:s}}static pointsToStroke(e,n,r,i){const s=[],o=[],a=[];if(kA.pointsToStrokeWithBuffers(e,n,r,i,s,o,a)===0)return null;const l=new Un;return l.setAttribute("position",new hn(s,3)),l.setAttribute("normal",new hn(o,3)),l.setAttribute("uv",new hn(a,2)),l}static pointsToStrokeWithBuffers(e,n,r,i,s,o,a,l){const c=new it,p=new it,d=new it,A=new it,y=new it,C=new it,v=new it,D=new it,I=new it,B=new it,w=new it,_=new it,F=new it,Q=new it,N=new it,U=new it,X=new it;r=r!==void 0?r:12,i=i!==void 0?i:.001,l=l!==void 0?l:0,e=Le(e);const L=e.length;if(L<2)return 0;const H=e[0].equals(e[L-1]);let ue,Ee=e[0],ne;const Te=n.strokeWidth/2,ve=1/(L-1);let Ue=0,re,fe,Ce,de,Oe=!1,De=0,q=l*3,se=l*2;Y(e[0],e[1],c).multiplyScalar(Te),D.copy(e[0]).sub(c),I.copy(e[0]).add(c),B.copy(D),w.copy(I);for(let Be=1;BeNumber.EPSILON){const at=Te/Ge;d.multiplyScalar(-at),A.subVectors(ue,Ee),y.copy(A).setLength(at).add(d),U.copy(y).negate();const Ie=y.length(),W=A.length();A.divideScalar(W),C.subVectors(ne,ue);const Z=C.length();switch(C.divideScalar(Z),A.dot(U)=i&&Ge.push(Be[at]);return Ge.push(Be[Be.length-1]),Ge}}}function gY(t,e,n,r,i,s){const o=[],a=rn([]),l=rn([]);zu(a,o);const c=rn(void 0),p=Ou(e,n,r,{...Gu,...Uu(t.root.size),...Hu(a),...ku(l)},Xx,ue=>ue.add("aspectRatio",c)),d=rn(void 0),A=Ru();Bh(d,A,t,p,i,!0,o);const y=Qu(p,A,t.root.pixelSize);Pu(t.root,i,y,o);const C=Sh(t.childrenMatrix,y),v=Dh(t.clippingRect,C,A.size,t.root.pixelSize),D=Lu(A,v,p),I=cd(p),B=bs(p,Yi.Panel,I,t.orderInfo);o.push(ue=>Ul(p,B,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,ld(),ue));const w=bs(void 0,Yi.Svg,void 0,B),_=Kn(()=>{var ue,Ee;return ws((ue=e.value)==null?void 0:ue.src)??ws((Ee=n.value)==null?void 0:Ee.src)}),F=rn(void 0),Q=S0(t.root,t.clippingRect);yL(F,EY,lJ,o,_,t.root,Q,t.clippingRect,w,c),EL(p,F,o,t.root);const N=mY(t.root,A,F,c,D,o),U=Zx();ev(s,U,t.root.pixelSize,o);const X=$x(U,C,t.root.pixelSize);nv(p,U,A,C,D,t.clippingRect,w,t.root.panelGroupManager,o);const L=ud(w,t.root,t.clippingRect,A.size,o),H=tv(U,t.anyAncestorScrollable,A,i,L,n,t.root,o);return Fu(e,n,A.size,o),Ih(e,n,v,o),Object.assign(A,{scrollPosition:U,isClipped:v,mergedProperties:p,anyAncestorScrollable:t2(A.scrollable,t.anyAncestorScrollable),clippingRect:Yx(C,A,t.root.pixelSize,t.clippingRect),childrenMatrix:X,node:d,orderInfo:w,root:t.root,initializers:o,centerGroup:N,handlers:Nu(e,n,r,a,l,H),interactionPanel:L})}function mY(t,e,n,r,i,s){const o=new Cu;return o.matrixAutoUpdate=!1,s.push(()=>en(()=>{dL(o.position,o.scale,e.size,e.paddingInset,e.borderInset,t.pixelSize.value,r.value??1),o.updateMatrix(),t.requestRender()}),()=>en(()=>{const a=n.value;if(a!=null)return o.add(a),t.requestRender(),()=>{o.remove(a),t.requestRender()}}),()=>en(()=>{o.visible=n.value!=null&&i.value,t.requestRender()})),o}const yY=new kA,RE=new Vi,mp=new ae,dF=new Map;async function EY(t,e,n,r,i,s){if(t==null)return;const o=new Cu;o.matrixAutoUpdate=!1;let a=dF.get(t);a==null&&dF.set(t,a=await yY.loadAsync(t)),RE.makeEmpty();for(const c of a.paths){const p=kA.createShapes(c),d=new Uo;d.transparent=!0,d.depthWrite=!1,d.toneMapped=!1,d.clippingPlanes=n;for(const A of p){const y=new FA(A);y.computeBoundingBox(),RE.union(y.boundingBox);const C=new mr(y,d);C.matrixAutoUpdate=!1,C.raycast=hh(C,C.raycast,e.object,r,i),ad(C,e,i),C.userData.color=c.color,C.scale.y=-1,C.updateMatrix(),o.add(C)}}RE.getSize(mp),s.value=mp.x/mp.y;const l=1/mp.y;return o.scale.set(1,1,1).multiplyScalar(l),RE.getCenter(mp),mp.y*=-1,o.position.copy(mp).negate().multiplyScalar(l),o.updateMatrix(),o}function CY(t,e,n,r,i,s,o,a){const l=[],c=rn([]),p=rn([]);zu(c,l);const d=Ou(i,s,o,{...Gu,...Uu(t.root.size),...Hu(c),...ku(p)},Xx,Q=>{Q.add("aspectRatio",n/r),Q.add("width",n),Q.add("height",r)}),A=Ru();Bh(void 0,A,t,d,a,!0,l);const y=Qu(d,A,t.root.pixelSize);Pu(t.root,a,y,l);const C=Sh(t.childrenMatrix,y),v=Dh(t.clippingRect,C,A.size,t.root.pixelSize),D=Lu(A,v,d),I=cd(d),B=bs(d,Yi.Panel,I,t.orderInfo);l.push(Q=>Ul(d,B,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,ld(),Q));const w=bs(void 0,Yi.Svg,void 0,B),_=S0(t.root,t.clippingRect),F=vY(d,e,n,r,t,w,A,D,_,l);return Fu(i,s,A.size,l),Ih(i,s,v,l),Object.assign(A,{isClipped:v,mergedProperties:d,initializers:l,iconGroup:F,handlers:Nu(i,s,o,c,p),interactionPanel:ud(w,t.root,t.clippingRect,A.size,l)})}const xY=new kA;function vY(t,e,n,r,i,s,o,a,l,c){const p=new Cu;p.matrixAutoUpdate=!1;const d=xY.parse(e);for(const y of d.paths){const C=kA.createShapes(y),v=new Uo;v.transparent=!0,v.depthWrite=!1,v.toneMapped=!1,v.clippingPlanes=l;for(const D of C){const I=new FA(D);I.computeBoundingBox();const B=new mr(I,v);B.matrixAutoUpdate=!1,B.raycast=hh(B,B.raycast,i.root.object,i.clippingRect,s),ad(B,i.root,s),B.userData.color=y.color,B.scale.y=-1,B.updateMatrix(),p.add(B)}}const A=n/r;return c.push(()=>en(()=>{dL(p.position,p.scale,o.size,o.paddingInset,o.borderInset,i.root.pixelSize.value,A),p.position.x-=p.scale.x*A/2,p.position.y+=p.scale.x/2,p.scale.divideScalar(r),p.updateMatrix(),i.root.requestRender()}),()=>en(()=>{p.visible=a.value,i.root.requestRender()})),EL(t,p,c,i.root),p}const IY=["caretBorderRightWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderBottomWidth"];let fF;function DY(){return fF??(fF=B0({backgroundColor:"caretColor",backgroundOpacity:"caretOpacity",borderBend:"caretBorderBend",borderBottomLeftRadius:"caretBorderBottomLeftRadius",borderBottomRightRadius:"caretBorderBottomRightRadius",borderColor:"caretBorderColor",borderOpacity:"caretBorderOpacity",borderTopLeftRadius:"caretBorderTopLeftRadius",borderTopRightRadius:"caretBorderTopRightRadius"},{backgroundColor:0,backgroundOpacity:1})),fF}function SY(t,e,n,r,i,s,o,a){const l=bs(void 0,Yi.Panel,Kx,i),c=rn(void 0);a.push(()=>en(()=>{const A=n.value;A==null&&(c.value=void 0),c.value=A;const y=setInterval(()=>c.value=c.peek()==null?A:void 0,500);return()=>clearInterval(y)}));const p=Zw(t,IY),d=nr(t,"caretWidth",1.5);a.push(A=>Ul(t,l,void 0,o,e,Kn(()=>{const y=c.value;return y==null?[0,0]:[d.value,y[2]]}),Kn(()=>{const y=c.value;return y==null?[0,0]:[y[0]-d.value/2,y[1]]}),p,s,r,DY(),A))}const BY=["selectionBorderRightWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderBottomWidth"];let AF;function wY(){return AF??(AF=B0({backgroundColor:"selectionColor",backgroundOpacity:"selectionOpacity",borderBend:"selectionBorderBend",borderBottomLeftRadius:"selectionBorderBottomLeftRadius",borderBottomRightRadius:"selectionBorderBottomRightRadius",borderColor:"selectionBorderColor",borderOpacity:"selectionBorderOpacity",borderTopLeftRadius:"selectionBorderTopLeftRadius",borderTopRightRadius:"selectionBorderTopRightRadius"},{backgroundColor:11851775,backgroundOpacity:1})),AF}function bY(t,e,n,r,i,s,o,a){const l=[],c=bs(void 0,Yi.Panel,Kx,i),p=Zw(t,BY);return a.push(()=>en(()=>{const d=n.value,A=d.length;for(let C=0;C()=>{const d=l.length;for(let A=0;At.value)}}const MY=new Set;function _Y(t){MY.add(t)}function FY(t,e,n,r,i,s){var de,Oe,De,q,se,Y;const o=rn([]),a=rn([]),l=rn(!1),c=[];zu(o,c);const p=Ou(n,r,i,{...Gu,...Uu(t.root.size),...Hu(o),...ku(a),...TY(l)},void 0,K=>{Jx(n.value,r.value,i.value,ke=>{K.add("caretOpacity",ke.opacity),K.add("caretColor",ke.color)})}),d=Ru(),A=rn(void 0);Bh(A,d,t,p,s,!1,c);const y=Qu(p,d,t.root.pixelSize);Pu(t.root,s,y,c);const C=Sh(t.childrenMatrix,y),v=Dh(t.clippingRect,C,d.size,t.root.pixelSize),D=Lu(d,v,p),I=cd(p),B=bs(p,Yi.Panel,I,t.orderInfo);c.push(K=>Ul(p,B,I,t.root.panelGroupManager,C,d.size,void 0,d.borderInset,t.clippingRect,D,ld(),K));const w={},_=rn([]),F=rn(void 0),Q=rn(void 0);SY(p,C,F,D,B,t.clippingRect,t.root.panelGroupManager,c);const N=bY(p,C,_,D,B,t.clippingRect,t.root.panelGroupManager,c),U=NL(p,e,t.root.renderer,c),X=bs(void 0,Yi.Text,UL(U),N),L=((de=n.peek())==null?void 0:de.defaultValue)??((Oe=r.peek())==null?void 0:Oe.defaultValue),H=((De=n.peek())==null?void 0:De.value)==null&&((q=r.peek())==null?void 0:q.value)==null?rn(L??""):void 0,ue=Kn(()=>{var K,ke;return(H==null?void 0:H.value)??ws((K=n.value)==null?void 0:K.value)??ws((ke=r.value)==null?void 0:ke.value)??""}),Ee=vI(n,r,"type","text"),ne=Kn(()=>Ee.value==="text"?ue.value:"*".repeat(ue.value.length??0)),Te=((se=n.peek())==null?void 0:se.multiline)??((Y=r.peek())==null?void 0:Y.multiline)??!1,ve=GL(p,ne,C,A,d,D,t.clippingRect,X,U,t.root.gylphGroupManager,Q,_,F,w,c,Te?"break-word":"keep-all");c.push(()=>en(()=>{var K;return(K=A.value)==null?void 0:K.setCustomLayouting(ve.value)})),Fu(n,r,d.size,c),Ih(n,r,v,c);const Ue=vI(n,r,"disabled",!1),re=PY(ue,Q,K=>{var ke,ze,_e,We;H!=null&&(H.value=K),(ze=(ke=n.peek())==null?void 0:ke.onValueChange)==null||ze.call(ke,K),(We=(_e=r.peek())==null?void 0:_e.onValueChange)==null||We.call(_e,K)},Te,Ee,Ue,vI(n,r,"tabIndex",0),c),fe=(K,ke,ze)=>{const _e=re.peek();_e!=null&&(l.peek()||_e.focus(),K!=null&&ke!=null&&_e.setSelectionRange(K,ke,ze),Q.value=[_e.selectionStart??0,_e.selectionEnd??0])};RY(re,l,c,K=>{var ke,ze,_e,We;(ze=(ke=r.peek())==null?void 0:ke.onFocusChange)==null||ze.call(ke,K),(We=(_e=n.peek())==null?void 0:_e.onFocusChange)==null||We.call(_e,K)});const Ce=QY(d,w,fe,Ue);return Object.assign(d,{isClipped:v,mergedProperties:p,valueSignal:ue,focus:()=>fe(),root:t.root,element:re,node:A,interactionPanel:ud(B,t.root,t.clippingRect,d.size,c),handlers:Nu(n,r,i,o,a,Ce,"text"),initializers:c})}function QY(t,e,n,r){return Kn(()=>{if(r.value)return;let i;return{onPointerDown:s=>{var a;if(s.defaultPrevented||s.uv==null||e.current==null)return;_Y(s.nativeEvent),(a=s.stopPropagation)==null||a.call(s);const o=gF(t,s.uv,e.current);i=o,setTimeout(()=>n(o,o))},onPointerUp:s=>{i=void 0},onPointerLeave:s=>{i=void 0},onPointerMove:s=>{var p;if(i==null||s.uv==null||e.current==null)return;(p=s.stopPropagation)==null||p.call(s);const o=gF(t,s.uv,e.current),a=Math.min(i,o),l=Math.max(i,o),c=in(a,l,c))}}})}function PY(t,e,n,r,i,s,o,a){const l=rn(void 0);return a.push(c=>{const p=document.createElement(r?"textarea":"input"),d=p.style;d.setProperty("position","absolute"),d.setProperty("left","-1000vw"),d.setProperty("top","0"),d.setProperty("pointerEvents","none"),d.setProperty("opacity","0"),p.addEventListener("input",()=>{n==null||n(p.value),A()});const A=()=>{const{selectionStart:y,selectionEnd:C}=p;if(y==null||C==null){e.value=void 0;return}const v=e.peek();v!=null&&v[0]===y&&v[1]===C||(e.value=[y,C])};return p.addEventListener("keydown",A),p.addEventListener("keyup",A),p.addEventListener("blur",()=>e.value=void 0),document.body.appendChild(p),l.value=p,c.push(()=>{l.value=void 0,p.remove()},en(()=>p.value=t.value),en(()=>p.disabled=s.value),en(()=>p.tabIndex=o.value),en(()=>p.setAttribute("type",i.value))),c}),l}function RY(t,e,n,r){n.push(()=>en(()=>{const i=t.value;if(i==null)return;e.value=document.activeElement===i;const s=()=>{const o=document.activeElement===i;o!=e.value&&(e.value=o,r(o))};return i.addEventListener("focus",s),i.addEventListener("blur",s),()=>{i.removeEventListener("focus",s),i.removeEventListener("blur",s)}}))}function gF({size:t,borderInset:e,paddingInset:n},r,i){const s=t.peek(),o=e.peek(),a=n.peek();if(s==null||o==null||a==null)return 0;const[l,c]=s,[p,,,d]=o,[A,,,y]=a,C=r.x*l-d-y,v=-r.y*c+p+A;return i.getCharIndex(C,v)}function kY(t,e,n,r,i,s){const o=rn([]),a=rn([]),l=[];zu(o,l);const c=Ou(e,n,r,{...Gu,...Uu(t.root.size),...Hu(o),...ku(a)}),p=Ru();Bh(void 0,p,t,c,i,!0,l);const d=Qu(c,p,t.root.pixelSize);Pu(t.root,i,d,l);const A=Sh(t.childrenMatrix,d),y=Dh(t.clippingRect,A,p.size,t.root.pixelSize),C=Lu(p,y,c),v=bs(c,Yi.Custom,void 0,t.orderInfo),D=S0(t.root,t.clippingRect);return l.push(I=>{const B=s.current;if(B==null)return I;if(B.matrixAutoUpdate=!1,B.material instanceof Ni){const w=B.material;w.clippingPlanes=D,w.needsUpdate=!0,w.shadowSide=wa,I.push(()=>en(()=>{w.depthTest=t.root.depthTest.value,t.root.requestRender()}))}return B.raycast=hh(B,B.raycast,t.root.object,t.clippingRect,v),ad(B,t.root,v),I.push(en(()=>{B.renderOrder=t.root.renderOrder.value,t.root.requestRender()}),en(()=>{B.receiveShadow=c.value.read("receiveShadow",!1),t.root.requestRender()}),en(()=>{B.castShadow=c.value.read("castShadow",!1),t.root.requestRender()}),en(()=>{if(p.size.value==null)return;const[w,_]=p.size.value,F=t.root.pixelSize.value;B.scale.set(w*F,_*F,1),B.updateMatrix(),t.root.requestRender()}),en(()=>{B.visible=C.value,t.root.requestRender()})),I}),Fu(e,n,p.size,l),Ih(e,n,y,l),Object.assign(p,{isClipped:y,mergedProperties:c,root:t.root,handlers:Nu(e,n,r,o,a),initializers:l})}function LY(t,e,n,r,i,s){const o=rn([]),a=rn([]),l=[],c=Ru();zu(o,l);const p=rn(new ae(1,1,1)),d=Kn(()=>p.value.x/p.value.y),A=Ou(e,n,r,{...Gu,...Uu(t.root.size),...Hu(o),...ku(a)},Xx,_=>_.add("aspectRatio",d));Bh(void 0,c,t,A,i,!0,l);const y=Qu(A,c,t.root.pixelSize);Pu(t.root,i,y,l);const C=Sh(t.childrenMatrix,y),v=Dh(t.clippingRect,C,c.size,t.root.pixelSize),D=Lu(c,v,A),I=cd(A),B=bs(A,Yi.Panel,I,t.orderInfo);l.push(_=>Ul(A,B,I,t.root.panelGroupManager,C,c.size,void 0,c.borderInset,t.clippingRect,D,ld(),_));const w=bs(void 0,Yi.Object,void 0,B);return Fu(e,n,c.size,l),Ih(e,n,v,l),Object.assign(c,{isClipped:v,mergedProperties:A,remeasureContent:UY(A,t.root,c,t.clippingRect,D,w,p,s,l),interactionPanel:ud(B,t.root,t.clippingRect,c.size,l),handlers:Nu(e,n,r,o,a),initializers:l})}const UI=new Vi,mF=new ae().setScalar(.001),NY=new ae,OY="back";function UY(t,e,n,r,i,s,o,a,l){const c=S0(e,r),p=nr(t,"depthAlign",OY),d=nr(t,"keepAspectRatio",!0),A=new ae,y=new ae,C=(D,I,B,w)=>{D!=null&&(D.visible=I,D.traverse(_=>{_ instanceof mr&&(_.renderOrder=B,_.material instanceof Ni&&(_.material.depthTest=w))}),e.requestRender())},v=()=>{const D=a.current;if(D==null){A.copy(mF),y.set(0,0,0);return}D.traverse(B=>{B instanceof mr&&(ad(B,e,s),B.material.clippingPlanes=c,B.material.needsUpdate=!0,B.raycast=hh(B,B.raycast,e.object,r,s))});const I=D.parent;D.parent=null,UI.setFromObject(D),UI.getSize(A).max(mF),o.value=A,I!=null&&(D.parent=I),UI.getCenter(y),e.requestRender()};return l.push(()=>en(()=>{C(a.current,i.value,e.renderOrder.value,e.depthTest.value),e.requestRender()}),D=>{const I=a.current;return I==null||(v(),D.push(en(()=>{const{size:{value:B},paddingInset:{value:w},borderInset:{value:_}}=n;if(B==null||w==null||_==null)return;const[F,Q]=B,[N,U,X,L]=w,[H,ue,Ee,ne]=_,Te=N+H,ve=U+ue,Ue=X+Ee,re=L+ne,fe=F-re-ve,Ce=Q-Te-Ue,de=e.pixelSize.value;I.scale.set(fe*de,Ce*de,d.value?Ce*de*A.z/A.y:A.z).divide(A),I.position.copy(y).negate(),I.position.z-=Dj[p.value]*A.z,I.position.multiply(I.scale),I.position.add(NY.set((re-ve)*.5*de,(Ue-Te)*.5*de,0)),I.updateMatrix(),e.requestRender()}))),D}),()=>{C(a.current,i.peek(),e.renderOrder.peek(),e.depthTest.peek()),v()}}function GY(t,e,n,r,i,s){if(i instanceof Pi){const o=2*Math.tan(Math.PI*i.fov/360)*r;n.value=o/s,e.value=o,t.value=o*i.aspect}if(i instanceof TA){const o=i.top-i.bottom,a=i.right-i.left;n.value=o/s,e.value=o,t.value=a}}function zY(t,{src:e,autoplay:n,loop:r,muted:i,playbackRate:s,preservesPitch:o,volume:a}){if(!(e instanceof HTMLElement)){if(t.playsInline=!0,t.volume=a??1,t.preservesPitch=o??!0,t.playbackRate=s??1,t.muted=i??!1,t.loop=r??!1,t.autoplay=n??!1,e==null){t.removeAttribute("src"),t.removeAttribute("srcObject");return}typeof e=="string"?t.src=e:t.srcObject=e}}function HY(t,e){let n;const r=()=>{e(),n=t.requestVideoFrameCallback(r)};return n=t.requestVideoFrameCallback(r),()=>t.cancelVideoFrameCallback(n)}function zu(t,e){e.push(()=>()=>zL(t))}function WY(t,e,n,r,i,s){let o=!1;Jx(e,n,r,l=>{"hover"in l&&(o=!0)});const a=(e==null?void 0:e.cursor)??(n==null?void 0:n.cursor)??s;if(!o&&(e==null?void 0:e.onHoverChange)==null&&(n==null?void 0:n.onHoverChange)==null&&a==null){i.value.length=0;return}zp("onPointerOver",t,({pointerId:l})=>{var c,p;i.value=[l,...i.value],i.value.length===1&&((c=n==null?void 0:n.onHoverChange)==null||c.call(n,!0),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!0)),a!=null&&VY(i,a)}),zp("onPointerOut",t,({pointerId:l})=>{var c,p;i.value=i.value.filter(d=>d!=l),i.value.length===0&&((c=n==null?void 0:n.onHoverChange)==null||c.call(n,!1),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!1)),zL(i)})}function Hu(t){return{hover:D0(()=>t.value.length>0)}}const eB=[],cC=[];function VY(t,e){eB.push(t),cC.push(e),document.body.style.cursor=e}function zL(t){const e=eB.indexOf(t);e!=-1&&(eB.splice(e,1),cC.splice(e,1),document.body.style.cursor=cC[cC.length-1]??"default")}var yF={},jY=Object.create,rv=Object.defineProperty,JY=Object.getOwnPropertyDescriptor,YY=Object.getOwnPropertyNames,XY=Object.getPrototypeOf,qY=Object.prototype.hasOwnProperty,w0=(t,e)=>()=>(t&&(e=t(t=0)),e),Bt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),iv=(t,e)=>{for(var n in e)rv(t,n,{get:e[n],enumerable:!0})},HL=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of YY(e))!qY.call(t,i)&&i!==n&&rv(t,i,{get:()=>e[i],enumerable:!(r=JY(e,i))||r.enumerable});return t},Xi=(t,e,n)=>(n=t!=null?jY(XY(t)):{},HL(e||!t||!t.__esModule?rv(n,"default",{value:t,enumerable:!0}):n,t)),$p=t=>HL(rv({},"__esModule",{value:!0}),t),WL,KY=w0(()=>{WL=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} `}),VL={};iv(VL,{default:()=>jL});var jL,i2=w0(()=>{KY(),jL={readFileSync:()=>WL}}),ZY=Bt((t,e)=>{var n=class{constructor(r={}){if(!(r.maxSize&&r.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof r.maxAge=="number"&&r.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=r.maxSize,this.maxAge=r.maxAge||1/0,this.onEviction=r.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(r){if(typeof this.onEviction=="function")for(let[i,s]of r)this.onEviction(i,s.value)}_deleteIfExpired(r,i){return typeof i.expiry=="number"&&i.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(r,i.value),this.delete(r)):!1}_getOrDeleteIfExpired(r,i){if(this._deleteIfExpired(r,i)===!1)return i.value}_getItemValue(r,i){return i.expiry?this._getOrDeleteIfExpired(r,i):i.value}_peek(r,i){let s=i.get(r);return this._getItemValue(r,s)}_set(r,i){this.cache.set(r,i),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(r,i){this.oldCache.delete(r),this._set(r,i)}*_entriesAscending(){for(let r of this.oldCache){let[i,s]=r;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield r)}for(let r of this.cache){let[i,s]=r;this._deleteIfExpired(i,s)===!1&&(yield r)}}get(r){if(this.cache.has(r)){let i=this.cache.get(r);return this._getItemValue(r,i)}if(this.oldCache.has(r)){let i=this.oldCache.get(r);if(this._deleteIfExpired(r,i)===!1)return this._moveToRecent(r,i),i.value}}set(r,i,{maxAge:s=this.maxAge===1/0?void 0:Date.now()+this.maxAge}={}){this.cache.has(r)?this.cache.set(r,{value:i,maxAge:s}):this._set(r,{value:i,expiry:s})}has(r){return this.cache.has(r)?!this._deleteIfExpired(r,this.cache.get(r)):this.oldCache.has(r)?!this._deleteIfExpired(r,this.oldCache.get(r)):!1}peek(r){if(this.cache.has(r))return this._peek(r,this.cache);if(this.oldCache.has(r))return this._peek(r,this.oldCache)}delete(r){let i=this.cache.delete(r);return i&&this._size--,this.oldCache.delete(r)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(r){if(!(r&&r>0))throw new TypeError("`maxSize` must be a number greater than 0");let i=[...this._entriesAscending()],s=i.length-r;s<0?(this.cache=new Map(i),this.oldCache=new Map,this._size=i.length):(s>0&&this._emitEvictions(i.slice(0,s)),this.oldCache=new Map(i.slice(s)),this.cache=new Map,this._size=0),this.maxSize=r}*keys(){for(let[r]of this)yield r}*values(){for(let[,r]of this)yield r}*[Symbol.iterator](){for(let r of this.cache){let[i,s]=r;this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}for(let r of this.oldCache){let[i,s]=r;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}}*entriesDescending(){let r=[...this.cache];for(let i=r.length-1;i>=0;--i){let s=r[i],[o,a]=s;this._deleteIfExpired(o,a)===!1&&(yield[o,a.value])}r=[...this.oldCache];for(let i=r.length-1;i>=0;--i){let s=r[i],[o,a]=s;this.cache.has(o)||this._deleteIfExpired(o,a)===!1&&(yield[o,a.value])}}*entriesAscending(){for(let[r,i]of this._entriesAscending())yield[r,i.value]}get size(){if(!this._size)return this.oldCache.size;let r=0;for(let i of this.oldCache.keys())this.cache.has(i)||r++;return Math.min(this._size+r,this.maxSize)}};e.exports=n}),JL={};iv(JL,{default:()=>YL});var YL,XL=w0(()=>{YL={yellow:t=>t}}),qL=Bt(()=>{}),s2=Bt((t,e)=>{var n=(XL(),$p(JL)),r=qL(),i=class extends Error{constructor(s,o,a,l,c,p){super(s),this.name="CssSyntaxError",this.reason=s,c&&(this.file=c),l&&(this.source=l),p&&(this.plugin=p),typeof o<"u"&&typeof a<"u"&&(typeof o=="number"?(this.line=o,this.column=a):(this.line=o.line,this.column=o.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let o=this.source;s==null&&(s=n.isColorSupported),r&&s&&(o=r(o));let a=o.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),p=String(c).length,d,A;if(s){let{bold:y,gray:C,red:v}=n.createColors(!0);d=D=>y(v(D)),A=D=>C(D)}else d=A=y=>y;return a.slice(l,c).map((y,C)=>{let v=l+1+C,D=" "+(" "+v).slice(-p)+" | ";if(v===this.line){let I=A(D.replace(/\d/g," "))+y.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+A(D)+y+` `+I+d("^")}return" "+A(D)+y}).join(` `)}toString(){let s=this.showSourceCode();return s&&(s=` @@ -4102,7 +4102,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var fv=Me,oq=sq;function aq(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var lq=typeof Object.is=="function"?Object.is:aq,uq=oq.useSyncExternalStore,cq=fv.useRef,hq=fv.useEffect,pq=fv.useMemo,dq=fv.useDebugValue;FN.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=cq(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=pq(function(){function l(y){if(!c){if(c=!0,p=y,y=r(y),i!==void 0&&o.hasValue){var C=o.value;if(i(C,y))return d=C}return d=y}if(C=d,lq(p,y))return C;var v=r(y);return i!==void 0&&i(C,v)?C:(p=y,d=v)}var c=!1,p,d,A=n===void 0?null:n;return[function(){return l(e())},A===null?void 0:function(){return l(A())}]},[e,n,r,i]);var a=uq(t,s[0],s[1]);return hq(function(){o.hasValue=!0,o.value=a},[a]),dq(a),a};_N.exports=FN;var fq=_N.exports;const Aq=qC(fq);var RN={BASE_URL:"/uikit/examples/apfel/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:gq}=ZC,{useSyncExternalStoreWithSelector:mq}=Aq;let IF=!1;const yq=t=>t;function Eq(t,e=yq,n){(RN?"production":void 0)!=="production"&&n&&!IF&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),IF=!0);const r=mq(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return gq(r),r}const DF=t=>{(RN?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?XX(t):t,n=(r,i)=>Eq(e,r,i);return Object.assign(n,e),n},Cq=t=>t?DF(t):DF,xq=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],vq=t=>t&&t.isOrthographicCamera;Me.forwardRef(({children:t,dpr:e,frames:n=1/0,renderPriority:r=0,eventPriority:i=0,...s},o)=>{const a=Me.useMemo(()=>new Li(void 0),[]),l=Me.useRef(null),c=al();e??(e=c.getState().viewport.dpr),Me.useImperativeHandle(o,()=>l.current,[]);const p=Me.useMemo(()=>Kn(()=>{var A;return(A=a.value)==null?void 0:A.texture}),[a]),d=Me.useMemo(()=>{let A=c.getState();const y=new Pi(50,1,.1,1e3);y.position.set(0,0,5);const C=new it;let v={events:{compute:Iq.bind(null,l),priority:i},size:{width:1,height:1,left:0,top:0},camera:y,scene:new Km,raycaster:new PA,pointer:C,mouse:C,previousRoot:c};const D=Cq((I,B)=>{const w=()=>{const F={};for(const Q in A)xq.includes(Q)||(F[Q]=A[Q]);return Object.assign(F,v,{events:{...A.events,...v.events},viewport:Object.assign({},A.viewport,A.viewport.getCurrentViewport(y,new ae,v.size))})},_=()=>I(w());return{...A,set(F){typeof F=="function"&&(F=F(B())),Object.assign(v,F),_()},setPreviousState(F){A=F,_()},get:B,setEvents(F){Object.assign(v.events,F),_()},...w()}});return Object.assign(D,{setState(I){D.getState().set(I)}})},[i,c]);return Me.useEffect(()=>c.subscribe(d.getState().setPreviousState),[c,d]),Me.useEffect(()=>{if(l.current==null)return;const A=a.value=new ba(1,1,{minFilter:Wr,magFilter:Wr,type:Xp}),{size:y}=l.current,C=en(()=>{if(y.value==null)return;const[v,D]=y.value;A.setSize(v*e,D*e),d.setState({size:{width:v,height:D,top:0,left:0},viewport:{...c.getState().viewport,width:v,height:D,aspect:v/D}})});return()=>{C(),A.dispose()}},[a,c,d,e]),te.jsxs(te.Fragment,{children:[CA.createPortal(te.jsx(Wx.Provider,{value:d,children:te.jsxs(Dq,{renderPriority:r,frames:n,fbo:a,children:[t,te.jsx("group",{onPointerOver:()=>null})]})}),d,null),te.jsx(x2,{src:p,objectFit:"fill",keepAspectRatio:!1,...s,ref:l})]})});function Iq({current:t},e,n,r){var o,a,l;if(t==null||r==null)return!1;r.raycaster.camera||(l=(a=r.events).compute)==null||l.call(a,e,r,(o=r.previousRoot)==null?void 0:o.getState());const[i]=r.raycaster.intersectObject(t.interactionPanel);if(!i)return!1;const s=i.uv;if(!s)return!1;n.raycaster.setFromCamera(n.pointer.set(s.x*2-1,s.y*2-1),n.camera)}function Dq({frames:t,renderPriority:e,children:n,fbo:r}){const i=al();Me.useEffect(()=>i.subscribe((p,d)=>{const{size:A,camera:y}=p;A&&(vq(y)?(y.left=A.width/-2,y.right=A.width/2,y.top=A.height/2,y.bottom=A.height/-2):y.aspect=A.width/A.height,(A!==d.size||y!==d.camera)&&(y.updateProjectionMatrix(),y.updateMatrixWorld()))}),[i]);let s=0,o,a,l,c;return RA(p=>{const d=r.peek();d!=null&&(t===1/0||s{const n=Me.useMemo(()=>rn(void 0),[]),r=Me.useMemo(()=>rn(1),[]),i=t.src instanceof HTMLVideoElement?t.src:void 0,s=Me.useMemo(()=>i??document.createElement("video"),[i]),o=s0(l=>l.invalidate);Me.useEffect(()=>HY(s,o),[s,o]),zY(s,t),Me.useEffect(()=>{const l=()=>r.value=s.videoWidth/s.videoHeight;return l(),s.addEventListener("resize",l),()=>s.removeEventListener("resize",l)},[r,s]),Me.useEffect(()=>{const l=new XR(s);return l.colorSpace=ri,n.value=l,()=>l.dispose()},[n,s]);const a=Me.useRef(null);return Me.useImperativeHandle(e,()=>({...a.current,element:s}),[s]),te.jsx(Sq.Provider,{value:s,children:te.jsx(x2,{aspectRatio:r,...t,ref:a,src:n})})});var Bq=Object.create,Av=Object.defineProperty,wq=Object.getOwnPropertyDescriptor,bq=Object.getOwnPropertyNames,Tq=Object.getPrototypeOf,Mq=Object.prototype.hasOwnProperty,_q=(t,e)=>()=>(t&&(e=t(t=0)),e),gv=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),mv=(t,e)=>{for(var n in e)Av(t,n,{get:e[n],enumerable:!0})},kN=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of bq(e))!Mq.call(t,i)&&i!==n&&Av(t,i,{get:()=>e[i],enumerable:!(r=wq(e,i))||r.enumerable});return t},F0=(t,e,n)=>(n=t!=null?Bq(Tq(t)):{},kN(e||!t||!t.__esModule?Av(n,"default",{value:t,enumerable:!0}):n,t)),Fq=t=>kN(Av({},"__esModule",{value:!0}),t),Qq=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},SF=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Vg=(t,e,n)=>(Qq(t,e,"access private method"),n),Pq=gv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(){}e.prototype={diff:function(i,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var l=this;function c(B){return a?(setTimeout(function(){a(void 0,B)},0),!0):B}i=this.castInput(i),s=this.castInput(s),i=this.removeEmpty(this.tokenize(i)),s=this.removeEmpty(this.tokenize(s));var p=s.length,d=i.length,A=1,y=p+d;o.maxEditLength&&(y=Math.min(y,o.maxEditLength));var C=[{newPos:-1,components:[]}],v=this.extractCommon(C[0],s,i,0);if(C[0].newPos+1>=p&&v+1>=d)return c([{value:this.join(s),count:s.length}]);function D(){for(var B=-1*A;B<=A;B+=2){var w=void 0,_=C[B-1],F=C[B+1],Q=(F?F.newPos:0)-B;_&&(C[B-1]=void 0);var N=_&&_.newPos+1=p&&Q+1>=d)return c(n(l,w.components,s,i,l.useLongestToken));C[B]=w}A++}if(a)(function B(){setTimeout(function(){if(A>y)return a();D()||B()},0)})();else for(;A<=y;){var I=D();if(I)return I}},pushComponent:function(i,s,o){var a=i[i.length-1];a&&a.added===s&&a.removed===o?i[i.length-1]={count:a.count+1,added:s,removed:o}:i.push({count:1,added:s,removed:o})},extractCommon:function(i,s,o,a){for(var l=s.length,c=o.length,p=i.newPos,d=p-a,A=0;p+1I.length?w:I}),y.value=i.join(v)}else y.value=i.join(o.slice(d,d+y.count));d+=y.count,y.added||(A+=y.count)}}var D=s[p-1];return p>1&&typeof D.value=="string"&&(D.added||D.removed)&&i.equals("",D.value)&&(s[p-2].value+=D.value,s.pop()),s}function r(i){return{newPos:i.newPos,components:i.components.slice(0)}}}),Rq=gv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=i,t.arrayDiff=void 0;var e=n(Pq());function n(s){return s&&s.__esModule?s:{default:s}}var r=new e.default;t.arrayDiff=r,r.tokenize=function(s){return s.slice()},r.join=r.removeEmpty=function(s){return s};function i(s,o,a){return r.diff(s,o,a)}}),yv=gv((t,e)=>{var n=new Proxy(String,{get:()=>n});e.exports=n}),LN={};mv(LN,{default:()=>ON,shouldHighlight:()=>NN});var NN,ON,kq=_q(()=>{NN=()=>!1,ON=String}),Lq=gv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=d,t.default=A;var e=(kq(),Fq(LN)),n=i(yv(),!0);function r(y){if(typeof WeakMap!="function")return null;var C=new WeakMap,v=new WeakMap;return(r=function(D){return D?v:C})(y)}function i(y,C){if(!C&&y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var v=r(C);if(v&&v.has(y))return v.get(y);var D={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in y)if(B!=="default"&&Object.prototype.hasOwnProperty.call(y,B)){var w=I?Object.getOwnPropertyDescriptor(y,B):null;w&&(w.get||w.set)?Object.defineProperty(D,B,w):D[B]=y[B]}return D.default=y,v&&v.set(y,D),D}var s;function o(y){return y?(s!=null||(s=new n.default.constructor({enabled:!0,level:1})),s):n.default}var a=!1;function l(y){return{gutter:y.grey,marker:y.red.bold,message:y.red.bold}}var c=/\r\n|[\n\r\u2028\u2029]/;function p(y,C,v){let D=Object.assign({column:0,line:-1},y.start),I=Object.assign({},D,y.end),{linesAbove:B=2,linesBelow:w=3}=v||{},_=D.line,F=D.column,Q=I.line,N=I.column,U=Math.max(_-(B+1),0),X=Math.min(C.length,Q+w);_===-1&&(U=0),Q===-1&&(X=C.length);let L=Q-_,H={};if(L)for(let ue=0;ue<=L;ue++){let Ee=ue+_;if(!F)H[Ee]=!0;else if(ue===0){let ne=C[Ee-1].length;H[Ee]=[F,ne-F+1]}else if(ue===L)H[Ee]=[0,N];else{let ne=C[Ee-ue].length;H[Ee]=[0,ne]}}else F===N?F?H[_]=[F,0]:H[_]=!0:H[_]=[F,N-F];return{start:U,end:X,markerLines:H}}function d(y,C,v={}){let D=(v.highlightCode||v.forceColor)&&(0,e.shouldHighlight)(v),I=o(v.forceColor),B=l(I),w=(H,ue)=>D?H(ue):ue,_=y.split(c),{start:F,end:Q,markerLines:N}=p(C,_,v),U=C.start&&typeof C.start.column=="number",X=String(Q).length,L=(D?(0,e.default)(y,v):y).split(c,Q).slice(F,Q).map((H,ue)=>{let Ee=F+1+ue,ne=` ${` ${Ee}`.slice(-X)} |`,Te=N[Ee],ve=!N[Ee+1];if(Te){let Ue="";if(Array.isArray(Te)){let re=H.slice(0,Math.max(Te[0]-1,0)).replace(/[^\t]/g," "),fe=Te[1]||1;Ue=[` + */var fv=Me,oq=sq;function aq(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var lq=typeof Object.is=="function"?Object.is:aq,uq=oq.useSyncExternalStore,cq=fv.useRef,hq=fv.useEffect,pq=fv.useMemo,dq=fv.useDebugValue;FN.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=cq(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=pq(function(){function l(y){if(!c){if(c=!0,p=y,y=r(y),i!==void 0&&o.hasValue){var C=o.value;if(i(C,y))return d=C}return d=y}if(C=d,lq(p,y))return C;var v=r(y);return i!==void 0&&i(C,v)?C:(p=y,d=v)}var c=!1,p,d,A=n===void 0?null:n;return[function(){return l(e())},A===null?void 0:function(){return l(A())}]},[e,n,r,i]);var a=uq(t,s[0],s[1]);return hq(function(){o.hasValue=!0,o.value=a},[a]),dq(a),a};_N.exports=FN;var fq=_N.exports;const Aq=qC(fq);var RN={BASE_URL:"/uikit/examples/apfel/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:gq}=ZC,{useSyncExternalStoreWithSelector:mq}=Aq;let IF=!1;const yq=t=>t;function Eq(t,e=yq,n){(RN?"production":void 0)!=="production"&&n&&!IF&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),IF=!0);const r=mq(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return gq(r),r}const DF=t=>{(RN?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?XX(t):t,n=(r,i)=>Eq(e,r,i);return Object.assign(n,e),n},Cq=t=>t?DF(t):DF,xq=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],vq=t=>t&&t.isOrthographicCamera;Me.forwardRef(({children:t,dpr:e,frames:n=1/0,renderPriority:r=0,eventPriority:i=0,...s},o)=>{const a=Me.useMemo(()=>new Li(void 0),[]),l=Me.useRef(null),c=al();e??(e=c.getState().viewport.dpr),Me.useImperativeHandle(o,()=>l.current,[]);const p=Me.useMemo(()=>Kn(()=>{var A;return(A=a.value)==null?void 0:A.texture}),[a]),d=Me.useMemo(()=>{let A=c.getState();const y=new Pi(50,1,.1,1e3);y.position.set(0,0,5);const C=new it;let v={events:{compute:Iq.bind(null,l),priority:i},size:{width:1,height:1,left:0,top:0},camera:y,scene:new Km,raycaster:new PA,pointer:C,mouse:C,previousRoot:c};const D=Cq((I,B)=>{const w=()=>{const F={};for(const Q in A)xq.includes(Q)||(F[Q]=A[Q]);return Object.assign(F,v,{events:{...A.events,...v.events},viewport:Object.assign({},A.viewport,A.viewport.getCurrentViewport(y,new ae,v.size))})},_=()=>I(w());return{...A,set(F){typeof F=="function"&&(F=F(B())),Object.assign(v,F),_()},setPreviousState(F){A=F,_()},get:B,setEvents(F){Object.assign(v.events,F),_()},...w()}});return Object.assign(D,{setState(I){D.getState().set(I)}})},[i,c]);return Me.useEffect(()=>c.subscribe(d.getState().setPreviousState),[c,d]),Me.useEffect(()=>{if(l.current==null)return;const A=a.value=new ba(1,1,{minFilter:Wr,magFilter:Wr,type:Xp}),{size:y}=l.current,C=en(()=>{if(y.value==null)return;const[v,D]=y.value;A.setSize(v*e,D*e),d.setState({size:{width:v,height:D,top:0,left:0},viewport:{...c.getState().viewport,width:v,height:D,aspect:v/D}})});return()=>{C(),A.dispose()}},[a,c,d,e]),te.jsxs(te.Fragment,{children:[CA.createPortal(te.jsx(Wx.Provider,{value:d,children:te.jsxs(Dq,{renderPriority:r,frames:n,fbo:a,children:[t,te.jsx("group",{onPointerOver:()=>null})]})}),d,null),te.jsx(x2,{src:p,objectFit:"fill",keepAspectRatio:!1,...s,ref:l})]})});function Iq({current:t},e,n,r){var o,a,l;if(t==null||r==null)return!1;r.raycaster.camera||(l=(a=r.events).compute)==null||l.call(a,e,r,(o=r.previousRoot)==null?void 0:o.getState());const[i]=r.raycaster.intersectObject(t.interactionPanel);if(!i)return!1;const s=i.uv;if(!s)return!1;n.raycaster.setFromCamera(n.pointer.set(s.x*2-1,s.y*2-1),n.camera)}function Dq({frames:t,renderPriority:e,children:n,fbo:r}){const i=al();Me.useEffect(()=>i.subscribe((p,d)=>{const{size:A,camera:y}=p;A&&(vq(y)?(y.left=A.width/-2,y.right=A.width/2,y.top=A.height/2,y.bottom=A.height/-2):y.aspect=A.width/A.height,(A!==d.size||y!==d.camera)&&(y.updateProjectionMatrix(),y.updateMatrixWorld()))}),[i]);let s=0,o,a,l,c;return RA(p=>{const d=r.peek();d!=null&&(t===1/0||s{const n=Me.useMemo(()=>rn(void 0),[]),r=Me.useMemo(()=>rn(1),[]),i=t.src instanceof HTMLVideoElement?t.src:void 0,s=Me.useMemo(()=>{if(i!=null)return i;const c=document.createElement("video");return c.style.position="absolute",c.style.width="1px",c.style.zIndex="-1000",c.style.top="0px",c.style.left="0px",c},[i]),o=t.src instanceof HTMLVideoElement;Me.useEffect(()=>{if(!o)return document.body.appendChild(s),()=>s.remove()},[s,o]);const a=s0(c=>c.invalidate);Me.useEffect(()=>HY(s,a),[s,a]),zY(s,t),Me.useEffect(()=>{const c=()=>r.value=s.videoWidth/s.videoHeight;return c(),s.addEventListener("resize",c),()=>s.removeEventListener("resize",c)},[r,s]),Me.useEffect(()=>{const c=new XR(s);return c.colorSpace=ri,n.value=c,()=>c.dispose()},[n,s]);const l=Me.useRef(null);return Me.useImperativeHandle(e,()=>({...l.current,element:s}),[s]),te.jsx(Sq.Provider,{value:s,children:te.jsx(x2,{aspectRatio:r,...t,ref:l,src:n})})});var Bq=Object.create,Av=Object.defineProperty,wq=Object.getOwnPropertyDescriptor,bq=Object.getOwnPropertyNames,Tq=Object.getPrototypeOf,Mq=Object.prototype.hasOwnProperty,_q=(t,e)=>()=>(t&&(e=t(t=0)),e),gv=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),mv=(t,e)=>{for(var n in e)Av(t,n,{get:e[n],enumerable:!0})},kN=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of bq(e))!Mq.call(t,i)&&i!==n&&Av(t,i,{get:()=>e[i],enumerable:!(r=wq(e,i))||r.enumerable});return t},F0=(t,e,n)=>(n=t!=null?Bq(Tq(t)):{},kN(e||!t||!t.__esModule?Av(n,"default",{value:t,enumerable:!0}):n,t)),Fq=t=>kN(Av({},"__esModule",{value:!0}),t),Qq=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},SF=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Vg=(t,e,n)=>(Qq(t,e,"access private method"),n),Pq=gv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(){}e.prototype={diff:function(i,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var l=this;function c(B){return a?(setTimeout(function(){a(void 0,B)},0),!0):B}i=this.castInput(i),s=this.castInput(s),i=this.removeEmpty(this.tokenize(i)),s=this.removeEmpty(this.tokenize(s));var p=s.length,d=i.length,A=1,y=p+d;o.maxEditLength&&(y=Math.min(y,o.maxEditLength));var C=[{newPos:-1,components:[]}],v=this.extractCommon(C[0],s,i,0);if(C[0].newPos+1>=p&&v+1>=d)return c([{value:this.join(s),count:s.length}]);function D(){for(var B=-1*A;B<=A;B+=2){var w=void 0,_=C[B-1],F=C[B+1],Q=(F?F.newPos:0)-B;_&&(C[B-1]=void 0);var N=_&&_.newPos+1=p&&Q+1>=d)return c(n(l,w.components,s,i,l.useLongestToken));C[B]=w}A++}if(a)(function B(){setTimeout(function(){if(A>y)return a();D()||B()},0)})();else for(;A<=y;){var I=D();if(I)return I}},pushComponent:function(i,s,o){var a=i[i.length-1];a&&a.added===s&&a.removed===o?i[i.length-1]={count:a.count+1,added:s,removed:o}:i.push({count:1,added:s,removed:o})},extractCommon:function(i,s,o,a){for(var l=s.length,c=o.length,p=i.newPos,d=p-a,A=0;p+1I.length?w:I}),y.value=i.join(v)}else y.value=i.join(o.slice(d,d+y.count));d+=y.count,y.added||(A+=y.count)}}var D=s[p-1];return p>1&&typeof D.value=="string"&&(D.added||D.removed)&&i.equals("",D.value)&&(s[p-2].value+=D.value,s.pop()),s}function r(i){return{newPos:i.newPos,components:i.components.slice(0)}}}),Rq=gv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=i,t.arrayDiff=void 0;var e=n(Pq());function n(s){return s&&s.__esModule?s:{default:s}}var r=new e.default;t.arrayDiff=r,r.tokenize=function(s){return s.slice()},r.join=r.removeEmpty=function(s){return s};function i(s,o,a){return r.diff(s,o,a)}}),yv=gv((t,e)=>{var n=new Proxy(String,{get:()=>n});e.exports=n}),LN={};mv(LN,{default:()=>ON,shouldHighlight:()=>NN});var NN,ON,kq=_q(()=>{NN=()=>!1,ON=String}),Lq=gv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=d,t.default=A;var e=(kq(),Fq(LN)),n=i(yv(),!0);function r(y){if(typeof WeakMap!="function")return null;var C=new WeakMap,v=new WeakMap;return(r=function(D){return D?v:C})(y)}function i(y,C){if(!C&&y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var v=r(C);if(v&&v.has(y))return v.get(y);var D={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in y)if(B!=="default"&&Object.prototype.hasOwnProperty.call(y,B)){var w=I?Object.getOwnPropertyDescriptor(y,B):null;w&&(w.get||w.set)?Object.defineProperty(D,B,w):D[B]=y[B]}return D.default=y,v&&v.set(y,D),D}var s;function o(y){return y?(s!=null||(s=new n.default.constructor({enabled:!0,level:1})),s):n.default}var a=!1;function l(y){return{gutter:y.grey,marker:y.red.bold,message:y.red.bold}}var c=/\r\n|[\n\r\u2028\u2029]/;function p(y,C,v){let D=Object.assign({column:0,line:-1},y.start),I=Object.assign({},D,y.end),{linesAbove:B=2,linesBelow:w=3}=v||{},_=D.line,F=D.column,Q=I.line,N=I.column,U=Math.max(_-(B+1),0),X=Math.min(C.length,Q+w);_===-1&&(U=0),Q===-1&&(X=C.length);let L=Q-_,H={};if(L)for(let ue=0;ue<=L;ue++){let Ee=ue+_;if(!F)H[Ee]=!0;else if(ue===0){let ne=C[Ee-1].length;H[Ee]=[F,ne-F+1]}else if(ue===L)H[Ee]=[0,N];else{let ne=C[Ee-ue].length;H[Ee]=[0,ne]}}else F===N?F?H[_]=[F,0]:H[_]=!0:H[_]=[F,N-F];return{start:U,end:X,markerLines:H}}function d(y,C,v={}){let D=(v.highlightCode||v.forceColor)&&(0,e.shouldHighlight)(v),I=o(v.forceColor),B=l(I),w=(H,ue)=>D?H(ue):ue,_=y.split(c),{start:F,end:Q,markerLines:N}=p(C,_,v),U=C.start&&typeof C.start.column=="number",X=String(Q).length,L=(D?(0,e.default)(y,v):y).split(c,Q).slice(F,Q).map((H,ue)=>{let Ee=F+1+ue,ne=` ${` ${Ee}`.slice(-X)} |`,Te=N[Ee],ve=!N[Ee+1];if(Te){let Ue="";if(Array.isArray(Te)){let re=H.slice(0,Math.max(Te[0]-1,0)).replace(/[^\t]/g," "),fe=Te[1]||1;Ue=[` `,w(B.gutter,ne.replace(/\d/g," "))," ",re,w(B.marker,"^").repeat(fe)].join(""),ve&&v.message&&(Ue+=" "+w(B.message,v.message))}return[w(B.marker,">"),w(B.gutter,ne),H.length>0?` ${H}`:"",Ue].join("")}else return` ${w(B.gutter,ne)}${H.length>0?` ${H}`:""}`}).join(` `);return v.message&&!U&&(L=`${" ".repeat(X+1)}${v.message} ${L}`),D?I.reset(L):L}function A(y,C,v,D={}){if(!a){a=!0;let I="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let B=new Error(I);B.name="DeprecationWarning",console.warn(new Error(I))}}return v=Math.max(v,0),d(y,{start:{column:v,line:C}},D)}}),Nq={};mv(Nq,{__debug:()=>R$,check:()=>Q$,doc:()=>IO,format:()=>BO,formatWithCursor:()=>SO,getSupportInfo:()=>P$,util:()=>DO,version:()=>u$});var Oq=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},Ev=Oq,Uq=F0(Rq(),1);function Gq(t){let e=t.indexOf("\r");return e>=0?t.charAt(e+1)===` diff --git a/examples/apfel/index.html b/examples/apfel/index.html index 49d31398..8ee72d9c 100644 --- a/examples/apfel/index.html +++ b/examples/apfel/index.html @@ -5,7 +5,7 @@ Document - +
diff --git a/examples/auth/assets/index-w1trspXD.js b/examples/auth/assets/index-wPTN_scd.js similarity index 99% rename from examples/auth/assets/index-w1trspXD.js rename to examples/auth/assets/index-wPTN_scd.js index 293acbe3..dcae3c1e 100644 --- a/examples/auth/assets/index-w1trspXD.js +++ b/examples/auth/assets/index-wPTN_scd.js @@ -4058,7 +4058,7 @@ No matching component was found for: `||p==null)&&(o.charLength=s-a+1,o.nonWhitespaceCharLength=o.charLength,o.nonWhitespaceWidth=l,o.whitespacesBetween=u)}};function EB(t,e){const n=t.length;for(;t[e]===" "&&e{for(const o of i)o(s);XI.set(t,s)}).catch(console.error)}async function lY(t,e){const n=await(await fetch(t)).json();if(n.pages.length!==1)throw new Error("only supporting exactly 1 page");const r=await oY.loadAsync(new URL(n.pages[0],new URL(t,window.location.href)).href);return r.anisotropy=e.capabilities.getMaxAnisotropy(),r.flipY=!1,new pY(n,r)}const i2={thin:100,"extra-light":200,light:300,normal:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800,black:900,"extra-black":950},uY={inter:{light:"https://pmndrs.github.io/uikit/fonts/inter-light.json",normal:"https://pmndrs.github.io/uikit/fonts/inter-normal.json",medium:"https://pmndrs.github.io/uikit/fonts/inter-medium.json","semi-bold":"https://pmndrs.github.io/uikit/fonts/inter-semi-bold.json",bold:"https://pmndrs.github.io/uikit/fonts/inter-bold.json"}};function T4(t,e,n,r){const i=cn(void 0),s=cr(t,"fontFamily",void 0),o=cr(t,"fontWeight","normal");return r.push(()=>un(()=>{const a=(e==null?void 0:e.value)??uY;let l=s.value;l==null&&(l=Object.keys(a)[0]);const u=cY(a[l],typeof o.value=="string"?i2[o.value]:o.value);let c=!1;return aY(u,n,p=>c?void 0:i.value=p),()=>c=!0})),i}function cY(t,e){let n=1/0,r;for(const i in t){const s=Math.abs(e-hY(i));if(s===0)return t[i];s{const u=e.value;if(u==null)return;const c=n.value,p={font:u,fontSize:s.value,letterSpacing:o.value,lineHeight:a.value,text:Array.isArray(c)?c.map(y=>Ws(y)).join(""):Ws(c),wordBreak:l.value};r.current=p;const{width:f}=YI(p,0),{height:A}=YI(p,void 0);return{minHeight:A,minWidth:f,measure:(y,x)=>YI(p,x===CE.Undefined?void 0:y)}})}const _4={"keep-all":iY,"break-all":rY,"break-word":sY},X1={};function YI(t,e){const n=_4[t.wordBreak],r=t.text;let i=0,s=0,o=0;for(;o({font:t.value}))}class mY{constructor(e,n,r,i,s){At(this,"group");At(this,"baseMatrix");At(this,"color");At(this,"opacity");At(this,"clippingRect");At(this,"index");At(this,"hidden",!0);At(this,"glyphInfo");At(this,"x",0);At(this,"y",0);At(this,"fontSize",0);At(this,"pixelSize",0);this.group=e,this.baseMatrix=n,this.color=r,this.opacity=i,this.clippingRect=s}getX(e){return this.glyphInfo==null?this.x:this.x+e*this.glyphInfo.width*this.fontSize}show(){this.hidden&&(this.hidden=!1,this.group.requestActivate(this))}hide(){this.hidden||(this.hidden=!0,this.group.delete(this))}activate(e){this.index=e,this.writeUpdatedMatrix(),this.writeUV(),this.updateColor(this.color),this.updateOpacity(this.opacity),this.updateClippingRect(this.clippingRect)}setIndex(e){this.index=e}updateClippingRect(e){if(this.clippingRect=e,this.index==null)return;const n=this.index*16,{instanceClipping:r,root:i}=this.group;this.clippingRect==null?r.set(av,n):this.clippingRect.toArray(r.array,n),r.addUpdateRange(n,16),r.needsUpdate=!0,i.requestRender()}updateColor(e){if(this.color=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=n.itemSize*this.index;C0(n.array,i,e,void 0),n.addUpdateRange(i,3),n.needsUpdate=!0,r.requestRender()}updateOpacity(e){if(this.opacity=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=this.index*4+3;n.array[i]=e,n.addUpdateRange(i,1),n.needsUpdate=!0,r.requestRender()}updateGlyphAndTransformation(e,n,r,i,s){this.glyphInfo===e&&this.x===n&&this.y===r&&this.fontSize===i&&this.pixelSize===s||(this.glyphInfo!=e&&(this.glyphInfo=e,this.writeUV()),this.x=n,this.y=r,this.fontSize=i,this.pixelSize=s,this.writeUpdatedMatrix())}updateBaseMatrix(e){this.baseMatrix!==e&&(this.baseMatrix=e,this.writeUpdatedMatrix())}writeUV(){if(this.index==null||this.glyphInfo==null)return;const e=this.index*4,{instanceUV:n,root:r}=this.group;dY(this.glyphInfo,n.array,e),n.addUpdateRange(e,4),n.needsUpdate=!0,r.requestRender()}writeUpdatedMatrix(){if(this.index==null||this.glyphInfo==null||this.baseMatrix==null)return;const e=this.index*16,{instanceMatrix:n,root:r}=this.group;n.addUpdateRange(e,16),M3.makeTranslation(this.x*this.pixelSize,this.y*this.pixelSize,0).multiply(gY.makeScale(this.fontSize*this.glyphInfo.width*this.pixelSize,this.fontSize*this.glyphInfo.height*this.pixelSize,1)).premultiply(this.baseMatrix),M3.toArray(n.array,e),n.needsUpdate=!0,r.requestRender()}}const yY="middle",EY="left";function F4(t,e,n,r,i,s,o,a,l,u,c,p,f,A,y,x){let I={current:void 0};const C=fY(t,l,e,I,x),S=cr(t,"verticalAlign",yY),B=cr(t,"textAlign",EY),_=cr(t,"color",0),T=cr(t,"opacity",1),F=cn(void 0);return y.push(()=>un(()=>{var Q;return(Q=r.value)==null?void 0:Q.addLayoutChangeListener(()=>{const N=I.current,{size:{value:Y},paddingInset:{value:L},borderInset:{value:G}}=i;if(N==null||Y==null||L==null||G==null)return;const[ne,ce]=Y,[K,me,fe,Ne]=L,[se,ue,he,re]=G,ye=ne-me-Ne-ue-re,de=ce-K-fe-se-he;F.value=AY(N,ye,de)})}),()=>un(()=>{const Q=l.value;if(Q==null||a.value==null)return;const N=new CY(u.getGroup(a.value.majorIndex,Q),B,S,_,T,F,n,s,o,c,p,f);return A!=null&&(A.current=N),()=>N.destroy()})),C}const vY=[];class CY{constructor(e,n,r,i,s,o,a,l,u,c,p,f){At(this,"group");At(this,"textAlign");At(this,"verticalAlign");At(this,"color");At(this,"opacity");At(this,"layoutSignal");At(this,"matrix");At(this,"parentClippingRect");At(this,"selectionRange");At(this,"selectionBoxes");At(this,"caretPosition");At(this,"glyphLines",[]);At(this,"lastLayout");At(this,"unsubscribeInitialList",[]);At(this,"unsubscribeShowList",[]);this.group=e,this.textAlign=n,this.verticalAlign=r,this.color=i,this.opacity=s,this.layoutSignal=o,this.matrix=a,this.parentClippingRect=u,this.selectionRange=c,this.selectionBoxes=p,this.caretPosition=f,this.unsubscribeInitialList=[un(()=>{if(!l.value||s.value<.01){this.hide();return}this.show()}),un(()=>this.updateSelectionBoxes(this.lastLayout,c==null?void 0:c.value,r.peek(),n.peek()))]}getCharIndex(e,n){const r=this.lastLayout;if(r==null)return 0;n-=-Y1(r,this.verticalAlign.peek());const i=Math.floor(n/-J1(r.lineHeight,r.fontSize)),s=r.lines;if(i<0||s.length===0)return 0;if(i>=s.length){const c=s[s.length-1];return c.charIndexOffset+c.charLength+1}const o=s[i],a=r.font.getGlyphInfo(" ").xadvance*r.fontSize,l=this.glyphLines[i];let u=l.length;for(let c=0;c=p.charIndexOffset+p.charLength)continue;const f=this.glyphLines[c][Math.max(r-p.charIndexOffset,0)];return{lineIndex:c,x:this.getGlyphX(f,i?0:1,s)}}const l=e[a-1];if(l.charLength===0)return{lineIndex:a-1,x:F3(n,l.nonWhitespaceWidth,o)-n/2};const u=this.glyphLines[a-1][l.charLength-1];return{lineIndex:a-1,x:this.getGlyphX(u,1,s)}}getGlyphX(e,n,r){return typeof e=="number"?e+n*r:e.getX(n)}show(){this.unsubscribeShowList.length>0||(Sp(this.glyphLines,e=>e.show()),this.unsubscribeShowList.push(un(()=>{const e=this.matrix.value;e!=null&&Sp(this.glyphLines,n=>n.updateBaseMatrix(e))}),un(()=>{var n;const e=(n=this.parentClippingRect)==null?void 0:n.value;Sp(this.glyphLines,r=>r.updateClippingRect(e))}),un(()=>{const e=this.color.value;Sp(this.glyphLines,n=>n.updateColor(e))}),un(()=>{const e=this.opacity.value;Sp(this.glyphLines,n=>n.updateOpacity(e))}),un(()=>{var f,A;const e=this.layoutSignal.value;if(e==null)return;const{text:n,font:r,lines:i,letterSpacing:s=0,fontSize:o=16,lineHeight:a=1.2,availableWidth:l}=e;let u=Y1(e,this.verticalAlign.value)-e.availableHeight/2;const c=i.length,p=this.group.pixelSize.value;for(let y=0;yS+C){F=ce.id;const fe=T+T3(r,o,ce,F);typeof Q[G]=="number"?Q[G]=T:Q.splice(G,0,fe),T+=_+x0(o,ce,s);continue}let K=Q[G];for(;Gy.hide(),c),this.glyphLines.length=c,this.lastLayout=e,this.updateSelectionBoxes(e,(A=this.selectionRange)==null?void 0:A.peek(),this.verticalAlign.value,this.textAlign.value)})))}hide(){const e=this.unsubscribeShowList.length;if(e!==0){for(let n=0;nn.hide())}}destroy(){this.hide(),this.glyphLines.length=0;const e=this.unsubscribeInitialList.length;for(let n=0;nnu(c,S,C,t.root.panelGroupManager,y,f.size,void 0,f.borderInset,t.clippingRect,I,xd(),F));const B=T4(c,n,t.root.renderer,u),_=Vs(void 0,fs.Text,M4(B),S),T=F4(c,e,y,p,f,I,t.clippingRect,_,B,t.root.gylphGroupManager,void 0,void 0,void 0,void 0,u,"break-word");return u.push(()=>un(()=>{var F;return(F=p.value)==null?void 0:F.setCustomLayouting(T.value)})),ju(r,i,f.size,u),Qh(r,i,x,u),Object.assign(f,{isClipped:x,mergedProperties:c,interactionPanel:Id(S,t.root,t.clippingRect,f.size,u),handlers:Zu(r,i,s,a,l),initializers:u})}const IY=Di;class qA extends ko{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,n,r,i){const s=this,o=new eu(s.manager);o.setPath(s.path),o.setRequestHeader(s.requestHeader),o.setWithCredentials(s.withCredentials),o.load(e,function(a){try{n(s.parse(a))}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},r,i)}parse(e){const n=this;function r(X,te){if(X.nodeType!==1)return;const V=_(X);let j=!1,ve=null;switch(X.nodeName){case"svg":te=y(X,te);break;case"style":s(X);break;case"g":te=y(X,te);break;case"path":te=y(X,te),X.hasAttribute("d")&&(ve=i(X));break;case"rect":te=y(X,te),ve=l(X);break;case"polygon":te=y(X,te),ve=u(X);break;case"polyline":te=y(X,te),ve=c(X);break;case"circle":te=y(X,te),ve=p(X);break;case"ellipse":te=y(X,te),ve=f(X);break;case"line":te=y(X,te),ve=A(X);break;case"defs":j=!0;break;case"use":te=y(X,te);const Pe=(X.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),ie=X.viewportElement.getElementById(Pe);ie?r(ie,te):console.warn("SVGLoader: 'use node' references non-existent node id: "+Pe);break}ve&&(te.fill!==void 0&&te.fill!=="none"&&ve.color.setStyle(te.fill,IY),F(ve,re),ne.push(ve),ve.userData={node:X,style:te});const Me=X.childNodes;for(let De=0;De0?re.copy(K[K.length-1]):re.identity())}function i(X){const te=new Yc,V=new ut,j=new ut,ve=new ut;let Me=!0,De=!1;const Pe=X.getAttribute("d");if(Pe===""||Pe==="none")return null;const ie=Pe.match(/[a-df-z][^a-df-z]*/ig);for(let Le=0,Se=ie.length;Le0&&(V.copy(ve),te.currentPath.currentPoint.copy(V),Me=!0);break;default:console.warn(ke)}De=!1}return te}function s(X){if(!(!X.sheet||!X.sheet.cssRules||!X.sheet.cssRules.length))for(let te=0;teve.trim());for(let ve=0;veDe!==""));ce[j[ve]]=Object.assign(ce[j[ve]]||{},Me)}}}function o(X,te,V,j,ve,Me,De,Pe){if(te==0||V==0){X.lineTo(Pe.x,Pe.y);return}j=j*Math.PI/180,te=Math.abs(te),V=Math.abs(V);const ie=(De.x-Pe.x)/2,Le=(De.y-Pe.y)/2,Se=Math.cos(j)*ie+Math.sin(j)*Le,ke=-Math.sin(j)*ie+Math.cos(j)*Le;let Oe=te*te,Ke=V*V;const pe=Se*Se,H=ke*ke,q=pe/Oe+H/Ke;if(q>1){const at=Math.sqrt(q);te=at*te,V=at*V,Oe=te*te,Ke=V*V}const Ce=Oe*H+Ke*pe,tt=(Oe*Ke-Ce)/Ce;let Ye=Math.sqrt(Math.max(0,tt));ve===Me&&(Ye=-Ye);const Je=Ye*te*ke/V,pt=-Ye*V*Se/te,xt=Math.cos(j)*Je-Math.sin(j)*pt+(De.x+Pe.x)/2,wt=Math.sin(j)*Je+Math.cos(j)*pt+(De.y+Pe.y)/2,ct=a(1,0,(Se-Je)/te,(ke-pt)/V),Et=a((Se-Je)/te,(ke-pt)/V,(-Se-Je)/te,(-ke-pt)/V)%(Math.PI*2);X.currentPath.absellipse(xt,wt,te,V,ct,ct+Et,Me===0,j)}function a(X,te,V,j){const ve=X*V+te*j,Me=Math.sqrt(X*X+te*te)*Math.sqrt(V*V+j*j);let De=Math.acos(Math.max(-1,Math.min(1,ve/Me)));return X*j-te*V<0&&(De=-De),De}function l(X){const te=B(X.getAttribute("x")||0),V=B(X.getAttribute("y")||0),j=B(X.getAttribute("rx")||X.getAttribute("ry")||0),ve=B(X.getAttribute("ry")||X.getAttribute("rx")||0),Me=B(X.getAttribute("width")),De=B(X.getAttribute("height")),Pe=1-.551915024494,ie=new Yc;return ie.moveTo(te+j,V),ie.lineTo(te+Me-j,V),(j!==0||ve!==0)&&ie.bezierCurveTo(te+Me-j*Pe,V,te+Me,V+ve*Pe,te+Me,V+ve),ie.lineTo(te+Me,V+De-ve),(j!==0||ve!==0)&&ie.bezierCurveTo(te+Me,V+De-ve*Pe,te+Me-j*Pe,V+De,te+Me-j,V+De),ie.lineTo(te+j,V+De),(j!==0||ve!==0)&&ie.bezierCurveTo(te+j*Pe,V+De,te,V+De-ve*Pe,te,V+De-ve),ie.lineTo(te,V+ve),(j!==0||ve!==0)&&ie.bezierCurveTo(te,V+ve*Pe,te+j*Pe,V,te+j,V),ie}function u(X){function te(Me,De,Pe){const ie=B(De),Le=B(Pe);ve===0?j.moveTo(ie,Le):j.lineTo(ie,Le),ve++}const V=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,j=new Yc;let ve=0;return X.getAttribute("points").replace(V,te),j.currentPath.autoClose=!0,j}function c(X){function te(Me,De,Pe){const ie=B(De),Le=B(Pe);ve===0?j.moveTo(ie,Le):j.lineTo(ie,Le),ve++}const V=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,j=new Yc;let ve=0;return X.getAttribute("points").replace(V,te),j.currentPath.autoClose=!1,j}function p(X){const te=B(X.getAttribute("cx")||0),V=B(X.getAttribute("cy")||0),j=B(X.getAttribute("r")||0),ve=new Ah;ve.absarc(te,V,j,0,Math.PI*2);const Me=new Yc;return Me.subPaths.push(ve),Me}function f(X){const te=B(X.getAttribute("cx")||0),V=B(X.getAttribute("cy")||0),j=B(X.getAttribute("rx")||0),ve=B(X.getAttribute("ry")||0),Me=new Ah;Me.absellipse(te,V,j,ve,0,Math.PI*2);const De=new Yc;return De.subPaths.push(Me),De}function A(X){const te=B(X.getAttribute("x1")||0),V=B(X.getAttribute("y1")||0),j=B(X.getAttribute("x2")||0),ve=B(X.getAttribute("y2")||0),Me=new Yc;return Me.moveTo(te,V),Me.lineTo(j,ve),Me.currentPath.autoClose=!1,Me}function y(X,te){te=Object.assign({},te);let V={};if(X.hasAttribute("class")){const De=X.getAttribute("class").split(/\s/).filter(Boolean).map(Pe=>Pe.trim());for(let Pe=0;Pe0&&te.premultiply(K[K.length-1]),re.copy(te),K.push(te),te}function T(X){const te=new On,V=me;if(X.nodeName==="use"&&(X.hasAttribute("x")||X.hasAttribute("y"))){const j=B(X.getAttribute("x")),ve=B(X.getAttribute("y"));te.translate(j,ve)}if(X.hasAttribute("transform")){const j=X.getAttribute("transform").split(")");for(let ve=j.length-1;ve>=0;ve--){const Me=j[ve].trim();if(Me==="")continue;const De=Me.indexOf("("),Pe=Me.length;if(De>0&&De=1){const Se=Le[0];let ke=0;Le.length>=2&&(ke=Le[1]),V.translate(Se,ke)}break;case"rotate":if(Le.length>=1){let Se=0,ke=0,Oe=0;Se=Le[0]*Math.PI/180,Le.length>=3&&(ke=Le[1],Oe=Le[2]),fe.makeTranslation(-ke,-Oe),Ne.makeRotation(Se),se.multiplyMatrices(Ne,fe),fe.makeTranslation(ke,Oe),V.multiplyMatrices(fe,se)}break;case"scale":if(Le.length>=1){const Se=Le[0];let ke=Se;Le.length>=2&&(ke=Le[1]),V.scale(Se,ke)}break;case"skewX":Le.length===1&&V.set(1,Math.tan(Le[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":Le.length===1&&V.set(1,0,0,Math.tan(Le[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":Le.length===6&&V.set(Le[0],Le[2],Le[4],Le[1],Le[3],Le[5],0,0,1);break}}te.premultiply(V)}}return te}function F(X,te){function V(De){he.set(De.x,De.y,1).applyMatrix3(te),De.set(he.x,he.y)}function j(De){const Pe=De.xRadius,ie=De.yRadius,Le=Math.cos(De.aRotation),Se=Math.sin(De.aRotation),ke=new ge(Pe*Le,Pe*Se,0),Oe=new ge(-ie*Se,ie*Le,0),Ke=ke.applyMatrix3(te),pe=Oe.applyMatrix3(te),H=me.set(Ke.x,pe.x,0,Ke.y,pe.y,0,0,0,1),q=fe.copy(H).invert(),Ye=Ne.copy(q).transpose().multiply(q).elements,Je=G(Ye[0],Ye[1],Ye[4]),pt=Math.sqrt(Je.rt1),xt=Math.sqrt(Je.rt2);if(De.xRadius=1/pt,De.yRadius=1/xt,De.aRotation=Math.atan2(Je.sn,Je.cs),!((De.aEndAngle-De.aStartAngle)%(2*Math.PI){const{x:Gt,y:bt}=new ge(Math.cos(Ut),Math.sin(Ut),0).applyMatrix3(at);return Math.atan2(bt,Gt)};De.aStartAngle=fn(De.aStartAngle),De.aEndAngle=fn(De.aEndAngle),Q(te)&&(De.aClockwise=!De.aClockwise)}}function ve(De){const Pe=Y(te),ie=L(te);De.xRadius*=Pe,De.yRadius*=ie;const Le=Pe>Number.EPSILON?Math.atan2(te.elements[1],te.elements[0]):Math.atan2(-te.elements[3],te.elements[4]);De.aRotation+=Le,Q(te)&&(De.aStartAngle*=-1,De.aEndAngle*=-1,De.aClockwise=!De.aClockwise)}const Me=X.subPaths;for(let De=0,Pe=Me.length;DeNumber.EPSILON}function Y(X){const te=X.elements;return Math.sqrt(te[0]*te[0]+te[1]*te[1])}function L(X){const te=X.elements;return Math.sqrt(te[3]*te[3]+te[4]*te[4])}function G(X,te,V){let j,ve,Me,De,Pe;const ie=X+V,Le=X-V,Se=Math.sqrt(Le*Le+4*te*te);return ie>0?(j=.5*(ie+Se),Pe=1/j,ve=X*Pe*V-te*Pe*te):ie<0?ve=.5*(ie-Se):(j=.5*Se,ve=-.5*Se),Le>0?Me=Le+Se:Me=Le-Se,Math.abs(Me)>2*Math.abs(te)?(Pe=-2*te/Me,De=1/Math.sqrt(1+Pe*Pe),Me=Pe*De):Math.abs(te)===0?(Me=1,De=0):(Pe=-.5*Me/te,Me=1/Math.sqrt(1+Pe*Pe),De=Pe*Me),Le>0&&(Pe=Me,Me=-De,De=Pe),{rt1:j,rt2:ve,cs:Me,sn:De}}const ne=[],ce={},K=[],me=new On,fe=new On,Ne=new On,se=new On,ue=new ut,he=new ge,re=new On,ye=new DOMParser().parseFromString(e,"image/svg+xml");return r(ye.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:ne,xml:ye.documentElement}}static createShapes(e){const r={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:r.ORIGIN,t:0};function s(x,I,C,S){const B=x.x,_=I.x,T=C.x,F=S.x,Q=x.y,N=I.y,Y=C.y,L=S.y,G=(F-T)*(Q-Y)-(L-Y)*(B-T),ne=(_-B)*(Q-Y)-(N-Q)*(B-T),ce=(L-Y)*(_-B)-(F-T)*(N-Q),K=G/ce,me=ne/ce;if(ce===0&&G!==0||K<=0||K>=1||me<0||me>1)return null;if(G===0&&ce===0){for(let fe=0;fe<2;fe++)if(o(fe===0?C:S,x,I),i.loc==r.ORIGIN){const Ne=fe===0?C:S;return{x:Ne.x,y:Ne.y,t:i.t}}else if(i.loc==r.BETWEEN){const Ne=+(B+i.t*(_-B)).toPrecision(10),se=+(Q+i.t*(N-Q)).toPrecision(10);return{x:Ne,y:se,t:i.t}}return null}else{for(let se=0;se<2;se++)if(o(se===0?C:S,x,I),i.loc==r.ORIGIN){const ue=se===0?C:S;return{x:ue.x,y:ue.y,t:i.t}}const fe=+(B+K*(_-B)).toPrecision(10),Ne=+(Q+K*(N-Q)).toPrecision(10);return{x:fe,y:Ne,t:K}}}function o(x,I,C){const S=C.x-I.x,B=C.y-I.y,_=x.x-I.x,T=x.y-I.y,F=S*T-_*B;if(x.x===I.x&&x.y===I.y){i.loc=r.ORIGIN,i.t=0;return}if(x.x===C.x&&x.y===C.y){i.loc=r.DESTINATION,i.t=1;return}if(F<-Number.EPSILON){i.loc=r.LEFT;return}if(F>Number.EPSILON){i.loc=r.RIGHT;return}if(S*_<0||B*T<0){i.loc=r.BEHIND;return}if(Math.sqrt(S*S+B*B)L.t<=Y.t+Number.EPSILON&&L.t>=Y.t-Number.EPSILON)===void 0&&(C.push(Y),S.push(new ut(Y.x,Y.y)))}}return S}function l(x,I,C){const S=new ut;I.getCenter(S);const B=[];return C.forEach(_=>{_.boundingBox.containsPoint(S)&&a(x,_.points).forEach(F=>{B.push({identifier:_.identifier,isCW:_.isCW,point:F})})}),B.sort((_,T)=>_.point.x-T.point.x),B}function u(x,I,C,S,B){(B==null||B==="")&&(B="nonzero");const _=new ut;x.boundingBox.getCenter(_);const T=[new ut(C,_.y),new ut(S,_.y)],F=l(T,x.boundingBox,I);F.sort((ne,ce)=>ne.point.x-ce.point.x);const Q=[],N=[];F.forEach(ne=>{ne.identifier===x.identifier?Q.push(ne):N.push(ne)});const Y=Q[0].point.x,L=[];let G=0;for(;G0&&L[L.length-1]===N[G].identifier?L.pop():L.push(N[G].identifier),G++;if(L.push(x.identifier),B==="evenodd"){const ne=L.length%2===0,ce=L[L.length-2];return{identifier:x.identifier,isHole:ne,for:ce}}else if(B==="nonzero"){let ne=!0,ce=null,K=null;for(let me=0;me{const I=x.getPoints();let C=-999999999,S=999999999,B=-999999999,_=999999999;for(let T=0;TC&&(C=F.y),F.yB&&(B=F.x),F.x<_&&(_=F.x)}return p<=B&&(p=B+1),c>=_&&(c=_-1),{curves:x.curves,points:I,isCW:Il.isClockWise(I),identifier:-1,boundingBox:new yL(new ut(_,S),new ut(B,C))}});f=f.filter(x=>x.points.length>1);for(let x=0;xu(x,f,c,p,e.userData?e.userData.style.fillRule:void 0)),y=[];return f.forEach(x=>{if(!A[x.identifier].isHole){const C=new gh;C.curves=x.curves,A.filter(B=>B.isHole&&B.for===x.identifier).forEach(B=>{const _=f[B.identifier],T=new Ah;T.curves=_.curves,C.holes.push(T)}),y.push(C)}}),y}static getStrokeStyle(e,n,r,i,s){return e=e!==void 0?e:1,n=n!==void 0?n:"#000",r=r!==void 0?r:"miter",i=i!==void 0?i:"butt",s=s!==void 0?s:4,{strokeColor:n,strokeWidth:e,strokeLineJoin:r,strokeLineCap:i,strokeMiterLimit:s}}static pointsToStroke(e,n,r,i){const s=[],o=[],a=[];if(qA.pointsToStrokeWithBuffers(e,n,r,i,s,o,a)===0)return null;const l=new Jn;return l.setAttribute("position",new En(s,3)),l.setAttribute("normal",new En(o,3)),l.setAttribute("uv",new En(a,2)),l}static pointsToStrokeWithBuffers(e,n,r,i,s,o,a,l){const u=new ut,c=new ut,p=new ut,f=new ut,A=new ut,y=new ut,x=new ut,I=new ut,C=new ut,S=new ut,B=new ut,_=new ut,T=new ut,F=new ut,Q=new ut,N=new ut,Y=new ut;r=r!==void 0?r:12,i=i!==void 0?i:.001,l=l!==void 0?l:0,e=Le(e);const L=e.length;if(L<2)return 0;const G=e[0].equals(e[L-1]);let ne,ce=e[0],K;const me=n.strokeWidth/2,fe=1/(L-1);let Ne=0,se,ue,he,re,ye=!1,de=0,X=l*3,te=l*2;V(e[0],e[1],u).multiplyScalar(me),I.copy(e[0]).sub(u),C.copy(e[0]).add(u),S.copy(I),B.copy(C);for(let Se=1;SeNumber.EPSILON){const Ke=me/Oe;p.multiplyScalar(-Ke),f.subVectors(ne,ce),A.copy(f).setLength(Ke).add(p),N.copy(A).negate();const pe=A.length(),H=f.length();f.divideScalar(H),y.subVectors(K,ne);const q=y.length();switch(y.divideScalar(q),f.dot(N)=i&&Oe.push(Se[Ke]);return Oe.push(Se[Se.length-1]),Oe}}}function DY(t,e,n,r,i,s){const o=[],a=cn([]),l=cn([]);nc(a,o);const u=cn(void 0),c=$u(e,n,r,{...tc,...ec(t.root.size),...rc(a),...qu(l)},lC,ne=>ne.add("aspectRatio",u)),p=cn(void 0),f=Yu();Lh(p,f,t,c,i,!0,o);const A=Ju(c,f,t.root.pixelSize);Xu(t.root,i,A,o);const y=Rh(t.childrenMatrix,A),x=kh(t.clippingRect,y,f.size,t.root.pixelSize),I=Ku(f,x,c),C=Dd(c),S=Vs(c,fs.Panel,C,t.orderInfo);o.push(ne=>nu(c,S,C,t.root.panelGroupManager,y,f.size,void 0,f.borderInset,t.clippingRect,I,xd(),ne));const B=Vs(void 0,fs.Svg,void 0,S),_=Kn(()=>{var ne,ce;return Ws((ne=e.value)==null?void 0:ne.src)??Ws((ce=n.value)==null?void 0:ce.src)}),T=cn(void 0),F=z0(t.root,t.clippingRect);a4(T,BY,mX,o,_,t.root,F,t.clippingRect,B,u),l4(c,T,o,t.root);const Q=SY(t.root,f,T,u,I,o),N=cC();pC(s,N,t.root.pixelSize,o);const Y=hC(N,y,t.root.pixelSize);fC(c,N,f,y,I,t.clippingRect,B,t.root.panelGroupManager,o);const L=Id(B,t.root,t.clippingRect,f.size,o),G=dC(N,t.anyAncestorScrollable,f,i,L,n,t.root,o);return ju(e,n,f.size,o),Qh(e,n,x,o),Object.assign(f,{scrollPosition:N,isClipped:x,mergedProperties:c,anyAncestorScrollable:mB(f.scrollable,t.anyAncestorScrollable),clippingRect:aC(y,f,t.root.pixelSize,t.clippingRect),childrenMatrix:Y,node:p,orderInfo:B,root:t.root,initializers:o,centerGroup:Q,handlers:Zu(e,n,r,a,l,G),interactionPanel:L})}function SY(t,e,n,r,i,s){const o=new Fu;return o.matrixAutoUpdate=!1,s.push(()=>un(()=>{n4(o.position,o.scale,e.size,e.paddingInset,e.borderInset,t.pixelSize.value,r.value??1),o.updateMatrix(),t.requestRender()}),()=>un(()=>{const a=n.value;if(a!=null)return o.add(a),t.requestRender(),()=>{o.remove(a),t.requestRender()}}),()=>un(()=>{o.visible=n.value!=null&&i.value,t.requestRender()})),o}const wY=new qA,q1=new ns,wp=new ge,P3=new Map;async function BY(t,e,n,r,i,s){if(t==null)return;const o=new Fu;o.matrixAutoUpdate=!1;let a=P3.get(t);a==null&&P3.set(t,a=await wY.loadAsync(t)),q1.makeEmpty();for(const u of a.paths){const c=qA.createShapes(u),p=new Po;p.transparent=!0,p.depthWrite=!1,p.toneMapped=!1,p.clippingPlanes=n;for(const f of c){const A=new XA(f);A.computeBoundingBox(),q1.union(A.boundingBox);const y=new vr(A,p);y.matrixAutoUpdate=!1,y.raycast=Dh(y,y.raycast,e.object,r,i),Cd(y,e,i),y.userData.color=u.color,y.scale.y=-1,y.updateMatrix(),o.add(y)}}q1.getSize(wp),s.value=wp.x/wp.y;const l=1/wp.y;return o.scale.set(1,1,1).multiplyScalar(l),q1.getCenter(wp),wp.y*=-1,o.position.copy(wp).negate().multiplyScalar(l),o.updateMatrix(),o}function bY(t,e,n,r,i,s,o,a){const l=[],u=cn([]),c=cn([]);nc(u,l);const p=$u(i,s,o,{...tc,...ec(t.root.size),...rc(u),...qu(c)},lC,F=>{F.add("aspectRatio",n/r),F.add("width",n),F.add("height",r)}),f=Yu();Lh(void 0,f,t,p,a,!0,l);const A=Ju(p,f,t.root.pixelSize);Xu(t.root,a,A,l);const y=Rh(t.childrenMatrix,A),x=kh(t.clippingRect,y,f.size,t.root.pixelSize),I=Ku(f,x,p),C=Dd(p),S=Vs(p,fs.Panel,C,t.orderInfo);l.push(F=>nu(p,S,C,t.root.panelGroupManager,y,f.size,void 0,f.borderInset,t.clippingRect,I,xd(),F));const B=Vs(void 0,fs.Svg,void 0,S),_=z0(t.root,t.clippingRect),T=_Y(p,e,n,r,t,B,f,I,_,l);return ju(i,s,f.size,l),Qh(i,s,x,l),Object.assign(f,{isClipped:x,mergedProperties:p,initializers:l,iconGroup:T,handlers:Zu(i,s,o,u,c),interactionPanel:Id(B,t.root,t.clippingRect,f.size,l)})}const TY=new qA;function _Y(t,e,n,r,i,s,o,a,l,u){const c=new Fu;c.matrixAutoUpdate=!1;const p=TY.parse(e);for(const A of p.paths){const y=qA.createShapes(A),x=new Po;x.transparent=!0,x.depthWrite=!1,x.toneMapped=!1,x.clippingPlanes=l;for(const I of y){const C=new XA(I);C.computeBoundingBox();const S=new vr(C,x);S.matrixAutoUpdate=!1,S.raycast=Dh(S,S.raycast,i.root.object,i.clippingRect,s),Cd(S,i.root,s),S.userData.color=A.color,S.scale.y=-1,S.updateMatrix(),c.add(S)}}const f=n/r;return u.push(()=>un(()=>{n4(c.position,c.scale,o.size,o.paddingInset,o.borderInset,i.root.pixelSize.value,f),c.position.x-=c.scale.x*f/2,c.position.y+=c.scale.x/2,c.scale.divideScalar(r),c.updateMatrix(),i.root.requestRender()}),()=>un(()=>{c.visible=a.value,i.root.requestRender()})),l4(t,c,u,i.root),c}const MY=["caretBorderRightWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderBottomWidth"];let Q3;function FY(){return Q3??(Q3=H0({backgroundColor:"caretColor",backgroundOpacity:"caretOpacity",borderBend:"caretBorderBend",borderBottomLeftRadius:"caretBorderBottomLeftRadius",borderBottomRightRadius:"caretBorderBottomRightRadius",borderColor:"caretBorderColor",borderOpacity:"caretBorderOpacity",borderTopLeftRadius:"caretBorderTopLeftRadius",borderTopRightRadius:"caretBorderTopRightRadius"},{backgroundColor:0,backgroundOpacity:1})),Q3}function PY(t,e,n,r,i,s,o,a){const l=Vs(void 0,fs.Panel,uC,i),u=cn(void 0);a.push(()=>un(()=>{const f=n.value;f==null&&(u.value=void 0),u.value=f;const A=setInterval(()=>u.value=u.peek()==null?f:void 0,500);return()=>clearInterval(A)}));const c=dB(t,MY),p=cr(t,"caretWidth",1.5);a.push(f=>nu(t,l,void 0,o,e,Kn(()=>{const A=u.value;return A==null?[0,0]:[p.value,A[2]]}),Kn(()=>{const A=u.value;return A==null?[0,0]:[A[0]-p.value/2,A[1]]}),c,s,r,FY(),f))}const QY=["selectionBorderRightWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderBottomWidth"];let k3;function kY(){return k3??(k3=H0({backgroundColor:"selectionColor",backgroundOpacity:"selectionOpacity",borderBend:"selectionBorderBend",borderBottomLeftRadius:"selectionBorderBottomLeftRadius",borderBottomRightRadius:"selectionBorderBottomRightRadius",borderColor:"selectionBorderColor",borderOpacity:"selectionBorderOpacity",borderTopLeftRadius:"selectionBorderTopLeftRadius",borderTopRightRadius:"selectionBorderTopRightRadius"},{backgroundColor:11851775,backgroundOpacity:1})),k3}function RY(t,e,n,r,i,s,o,a){const l=[],u=Vs(void 0,fs.Panel,uC,i),c=dB(t,QY);return a.push(()=>un(()=>{const p=n.value,f=p.length;for(let y=0;y()=>{const p=l.length;for(let f=0;ft.value)}}const s2=new Set;function NY(t){s2.add(t)}const OY={onPointerDown:t=>{document.activeElement instanceof HTMLElement&&s2.has(t.nativeEvent)&&(s2.delete(t.nativeEvent),t.preventDefault())}};function UY(t,e,n,r,i,s){var re,ye,de,X,te,V;const o=cn([]),a=cn([]),l=cn(!1),u=[];nc(o,u);const c=$u(n,r,i,{...tc,...ec(t.root.size),...rc(o),...qu(a),...LY(l)},void 0,j=>{oC(n.value,r.value,i.value,ve=>{j.add("caretOpacity",ve.opacity),j.add("caretColor",ve.color)})}),p=Yu(),f=cn(void 0);Lh(f,p,t,c,s,!1,u);const A=Ju(c,p,t.root.pixelSize);Xu(t.root,s,A,u);const y=Rh(t.childrenMatrix,A),x=kh(t.clippingRect,y,p.size,t.root.pixelSize),I=Ku(p,x,c),C=Dd(c),S=Vs(c,fs.Panel,C,t.orderInfo);u.push(j=>nu(c,S,C,t.root.panelGroupManager,y,p.size,void 0,p.borderInset,t.clippingRect,I,xd(),j));const B={},_=cn([]),T=cn(void 0),F=cn(void 0);PY(c,y,T,I,S,t.clippingRect,t.root.panelGroupManager,u);const Q=RY(c,y,_,I,S,t.clippingRect,t.root.panelGroupManager,u),N=T4(c,e,t.root.renderer,u),Y=Vs(void 0,fs.Text,M4(N),Q),L=((re=n.peek())==null?void 0:re.defaultValue)??((ye=r.peek())==null?void 0:ye.defaultValue),G=((de=n.peek())==null?void 0:de.value)==null&&((X=r.peek())==null?void 0:X.value)==null?cn(L??""):void 0,ne=Kn(()=>{var j,ve;return(G==null?void 0:G.value)??Ws((j=n.value)==null?void 0:j.value)??Ws((ve=r.value)==null?void 0:ve.value)??""}),ce=FI(n,r,"type","text"),K=Kn(()=>ce.value==="text"?ne.value:"*".repeat(ne.value.length??0)),me=((te=n.peek())==null?void 0:te.multiline)??((V=r.peek())==null?void 0:V.multiline)??!1,fe=F4(c,K,y,f,p,I,t.clippingRect,Y,N,t.root.gylphGroupManager,F,_,T,B,u,me?"break-word":"keep-all");u.push(()=>un(()=>{var j;return(j=f.value)==null?void 0:j.setCustomLayouting(fe.value)})),ju(n,r,p.size,u),Qh(n,r,x,u);const Ne=FI(n,r,"disabled",!1),se=zY(ne,F,j=>{var ve,Me,De,Pe;G!=null&&(G.value=j),(Me=(ve=n.peek())==null?void 0:ve.onValueChange)==null||Me.call(ve,j),(Pe=(De=r.peek())==null?void 0:De.onValueChange)==null||Pe.call(De,j)},me,ce,Ne,FI(n,r,"tabIndex",0),u),ue=(j,ve,Me)=>{const De=se.peek();De!=null&&(l.peek()||De.focus(),j!=null&&ve!=null&&De.setSelectionRange(j,ve,Me),F.value=[De.selectionStart??0,De.selectionEnd??0])};HY(se,l,u,j=>{var ve,Me,De,Pe;(Me=(ve=r.peek())==null?void 0:ve.onFocusChange)==null||Me.call(ve,j),(Pe=(De=n.peek())==null?void 0:De.onFocusChange)==null||Pe.call(De,j)});const he=GY(p,B,ue,Ne);return Object.assign(p,{isClipped:x,mergedProperties:c,valueSignal:ne,focus:()=>ue(),root:t.root,element:se,node:f,interactionPanel:Id(S,t.root,t.clippingRect,p.size,u),handlers:Zu(n,r,i,o,a,he,"text"),initializers:u})}function GY(t,e,n,r){return Kn(()=>{if(r.value)return;let i;return{onPointerDown:s=>{var a;if(s.defaultPrevented||s.uv==null||e.current==null)return;NY(s.nativeEvent),(a=s.stopPropagation)==null||a.call(s);const o=R3(t,s.uv,e.current);i=o,setTimeout(()=>n(o,o))},onPointerUp:s=>{i=void 0},onPointerLeave:s=>{i=void 0},onPointerMove:s=>{var c;if(i==null||s.uv==null||e.current==null)return;(c=s.stopPropagation)==null||c.call(s);const o=R3(t,s.uv,e.current),a=Math.min(i,o),l=Math.max(i,o),u=in(a,l,u))}}})}function zY(t,e,n,r,i,s,o,a){const l=cn(void 0);return a.push(u=>{const c=document.createElement(r?"textarea":"input"),p=c.style;p.setProperty("position","absolute"),p.setProperty("left","-1000vw"),p.setProperty("top","0"),p.setProperty("pointerEvents","none"),p.setProperty("opacity","0"),c.addEventListener("input",()=>{n==null||n(c.value),f()});const f=()=>{const{selectionStart:A,selectionEnd:y}=c;if(A==null||y==null){e.value=void 0;return}const x=e.peek();x!=null&&x[0]===A&&x[1]===y||(e.value=[A,y])};return c.addEventListener("keydown",f),c.addEventListener("keyup",f),c.addEventListener("blur",()=>e.value=void 0),document.body.appendChild(c),l.value=c,u.push(()=>{l.value=void 0,c.remove()},un(()=>c.value=t.value),un(()=>c.disabled=s.value),un(()=>c.tabIndex=o.value),un(()=>c.setAttribute("type",i.value))),u}),l}function HY(t,e,n,r){n.push(()=>un(()=>{const i=t.value;if(i==null)return;e.value=document.activeElement===i;const s=()=>{const o=document.activeElement===i;o!=e.value&&(e.value=o,r(o))};return i.addEventListener("focus",s),i.addEventListener("blur",s),()=>{i.removeEventListener("focus",s),i.removeEventListener("blur",s)}}))}function R3({size:t,borderInset:e,paddingInset:n},r,i){const s=t.peek(),o=e.peek(),a=n.peek();if(s==null||o==null||a==null)return 0;const[l,u]=s,[c,,,p]=o,[f,,,A]=a,y=r.x*l-p-A,x=-r.y*u+c+f;return i.getCharIndex(y,x)}function WY(t,e,n,r,i,s){const o=cn([]),a=cn([]),l=[];nc(o,l);const u=$u(e,n,r,{...tc,...ec(t.root.size),...rc(o),...qu(a)}),c=Yu();Lh(void 0,c,t,u,i,!0,l);const p=Ju(u,c,t.root.pixelSize);Xu(t.root,i,p,l);const f=Rh(t.childrenMatrix,p),A=kh(t.clippingRect,f,c.size,t.root.pixelSize),y=Ku(c,A,u),x=Vs(u,fs.Custom,void 0,t.orderInfo),I=z0(t.root,t.clippingRect);return l.push(C=>{const S=s.current;if(S==null)return C;if(S.matrixAutoUpdate=!1,S.material instanceof is){const B=S.material;B.clippingPlanes=I,B.needsUpdate=!0,B.shadowSide=va,C.push(()=>un(()=>{B.depthTest=t.root.depthTest.value,t.root.requestRender()}))}return S.raycast=Dh(S,S.raycast,t.root.object,t.clippingRect,x),Cd(S,t.root,x),C.push(un(()=>{S.renderOrder=t.root.renderOrder.value,t.root.requestRender()}),un(()=>{S.receiveShadow=u.value.read("receiveShadow",!1),t.root.requestRender()}),un(()=>{S.castShadow=u.value.read("castShadow",!1),t.root.requestRender()}),un(()=>{if(c.size.value==null)return;const[B,_]=c.size.value,T=t.root.pixelSize.value;S.scale.set(B*T,_*T,1),S.updateMatrix(),t.root.requestRender()}),un(()=>{S.visible=y.value,t.root.requestRender()})),C}),ju(e,n,c.size,l),Qh(e,n,A,l),Object.assign(c,{isClipped:A,mergedProperties:u,root:t.root,handlers:Zu(e,n,r,o,a),initializers:l})}function VY(t,e,n,r,i,s){const o=cn([]),a=cn([]),l=[],u=Yu();nc(o,l);const c=cn(new ge(1,1,1)),p=Kn(()=>c.value.x/c.value.y),f=$u(e,n,r,{...tc,...ec(t.root.size),...rc(o),...qu(a)},lC,_=>_.add("aspectRatio",p));Lh(void 0,u,t,f,i,!0,l);const A=Ju(f,u,t.root.pixelSize);Xu(t.root,i,A,l);const y=Rh(t.childrenMatrix,A),x=kh(t.clippingRect,y,u.size,t.root.pixelSize),I=Ku(u,x,f),C=Dd(f),S=Vs(f,fs.Panel,C,t.orderInfo);l.push(_=>nu(f,S,C,t.root.panelGroupManager,y,u.size,void 0,u.borderInset,t.clippingRect,I,xd(),_));const B=Vs(void 0,fs.Object,void 0,S);return ju(e,n,u.size,l),Qh(e,n,x,l),Object.assign(u,{isClipped:x,mergedProperties:f,remeasureContent:XY(f,t.root,u,t.clippingRect,I,B,c,s,l),interactionPanel:Id(S,t.root,t.clippingRect,u.size,l),handlers:Zu(e,n,r,o,a),initializers:l})}const qI=new ns,L3=new ge().setScalar(.001),jY=new ge,JY="back";function XY(t,e,n,r,i,s,o,a,l){const u=z0(e,r),c=cr(t,"depthAlign",JY),p=cr(t,"keepAspectRatio",!0),f=new ge,A=new ge,y=(I,C,S,B)=>{I!=null&&(I.visible=C,I.traverse(_=>{_ instanceof vr&&(_.renderOrder=S,_.material instanceof is&&(_.material.depthTest=B))}),e.requestRender())},x=()=>{const I=a.current;if(I==null){f.copy(L3),A.set(0,0,0);return}I.traverse(S=>{S instanceof vr&&(Cd(S,e,s),S.material.clippingPlanes=u,S.material.needsUpdate=!0,S.raycast=Dh(S,S.raycast,e.object,r,s))});const C=I.parent;I.parent=null,qI.setFromObject(I),qI.getSize(f).max(L3),o.value=f,C!=null&&(I.parent=C),qI.getCenter(A),e.requestRender()};return l.push(()=>un(()=>{y(a.current,i.value,e.renderOrder.value,e.depthTest.value),e.requestRender()}),I=>{const C=a.current;return C==null||(x(),I.push(un(()=>{const{size:{value:S},paddingInset:{value:B},borderInset:{value:_}}=n;if(S==null||B==null||_==null)return;const[T,F]=S,[Q,N,Y,L]=B,[G,ne,ce,K]=_,me=Q+G,fe=N+ne,Ne=Y+ce,se=L+K,ue=T-se-fe,he=F-me-Ne,re=e.pixelSize.value;C.scale.set(ue*re,he*re,p.value?he*re*f.z/f.y:f.z).divide(f),C.position.copy(A).negate(),C.position.z-=PJ[c.value]*f.z,C.position.multiply(C.scale),C.position.add(jY.set((se-fe)*.5*re,(Ne-me)*.5*re,0)),C.updateMatrix(),e.requestRender()}))),I}),()=>{y(a.current,i.peek(),e.renderOrder.peek(),e.depthTest.peek()),x()}}function YY(t,e,n,r,i,s){if(i instanceof es){const o=2*Math.tan(Math.PI*i.fov/360)*r;n.value=o/s,e.value=o,t.value=o*i.aspect}if(i instanceof VA){const o=i.top-i.bottom,a=i.right-i.left;n.value=o/s,e.value=o,t.value=a}}function qY(t,{src:e,autoplay:n,loop:r,muted:i,playbackRate:s,preservesPitch:o,volume:a}){if(!(e instanceof HTMLElement)){if(n&&(t.remove(),document.body.append(t),t.style.position="absolute",t.style.width="1px",t.style.zIndex="-1000",t.style.top="0px",t.style.left="0px"),t.playsInline=!0,t.volume=a??1,t.preservesPitch=o??!0,t.playbackRate=s??1,t.muted=i??!1,t.loop=r??!1,t.autoplay=n??!1,e==null){t.removeAttribute("src"),t.removeAttribute("srcObject");return}typeof e=="string"?t.src=e:t.srcObject=e}}function KY(t,e){let n;const r=()=>{e(),n=t.requestVideoFrameCallback(r)};return n=t.requestVideoFrameCallback(r),()=>t.cancelVideoFrameCallback(n)}function nc(t,e){e.push(()=>()=>P4(t))}function ZY(t,e,n,r,i,s){let o=!1;oC(e,n,r,l=>{"hover"in l&&(o=!0)});const a=(e==null?void 0:e.cursor)??(n==null?void 0:n.cursor)??s;if(!o&&(e==null?void 0:e.onHoverChange)==null&&(n==null?void 0:n.onHoverChange)==null&&a==null){i.value.length=0;return}Kp("onPointerOver",t,({pointerId:l})=>{var u,c;i.value=[l,...i.value],i.value.length===1&&((u=n==null?void 0:n.onHoverChange)==null||u.call(n,!0),(c=e==null?void 0:e.onHoverChange)==null||c.call(e,!0)),a!=null&&$Y(i,a)}),Kp("onPointerOut",t,({pointerId:l})=>{var u,c;i.value=i.value.filter(p=>p!=l),i.value.length===0&&((u=n==null?void 0:n.onHoverChange)==null||u.call(n,!1),(c=e==null?void 0:e.onHoverChange)==null||c.call(e,!1)),P4(i)})}function rc(t){return{hover:G0(()=>t.value.length>0)}}const o2=[],IE=[];function $Y(t,e){o2.push(t),IE.push(e),document.body.style.cursor=e}function P4(t){const e=o2.indexOf(t);e!=-1&&(o2.splice(e,1),IE.splice(e,1),document.body.style.cursor=IE[IE.length-1]??"default")}var N3={},eq=Object.create,AC=Object.defineProperty,tq=Object.getOwnPropertyDescriptor,nq=Object.getOwnPropertyNames,rq=Object.getPrototypeOf,iq=Object.prototype.hasOwnProperty,W0=(t,e)=>()=>(t&&(e=t(t=0)),e),Rt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),gC=(t,e)=>{for(var n in e)AC(t,n,{get:e[n],enumerable:!0})},Q4=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of nq(e))!iq.call(t,i)&&i!==n&&AC(t,i,{get:()=>e[i],enumerable:!(r=tq(e,i))||r.enumerable});return t},As=(t,e,n)=>(n=t!=null?eq(rq(t)):{},Q4(e||!t||!t.__esModule?AC(n,"default",{value:t,enumerable:!0}):n,t)),pd=t=>Q4(AC({},"__esModule",{value:!0}),t),k4,sq=W0(()=>{k4=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} +`)&&r.push({charLength:0,nonWhitespaceWidth:0,whitespacesBetween:0,charIndexOffset:s.length,nonWhitespaceCharLength:0}),{lines:r,availableHeight:n,availableWidth:e,...t}}const M3=new bn,gY=new bn;function M4(t){return Kn(()=>({font:t.value}))}class mY{constructor(e,n,r,i,s){At(this,"group");At(this,"baseMatrix");At(this,"color");At(this,"opacity");At(this,"clippingRect");At(this,"index");At(this,"hidden",!0);At(this,"glyphInfo");At(this,"x",0);At(this,"y",0);At(this,"fontSize",0);At(this,"pixelSize",0);this.group=e,this.baseMatrix=n,this.color=r,this.opacity=i,this.clippingRect=s}getX(e){return this.glyphInfo==null?this.x:this.x+e*this.glyphInfo.width*this.fontSize}show(){this.hidden&&(this.hidden=!1,this.group.requestActivate(this))}hide(){this.hidden||(this.hidden=!0,this.group.delete(this))}activate(e){this.index=e,this.writeUpdatedMatrix(),this.writeUV(),this.updateColor(this.color),this.updateOpacity(this.opacity),this.updateClippingRect(this.clippingRect)}setIndex(e){this.index=e}updateClippingRect(e){if(this.clippingRect=e,this.index==null)return;const n=this.index*16,{instanceClipping:r,root:i}=this.group;this.clippingRect==null?r.set(av,n):this.clippingRect.toArray(r.array,n),r.addUpdateRange(n,16),r.needsUpdate=!0,i.requestRender()}updateColor(e){if(this.color=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=n.itemSize*this.index;C0(n.array,i,e,void 0),n.addUpdateRange(i,3),n.needsUpdate=!0,r.requestRender()}updateOpacity(e){if(this.opacity=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=this.index*4+3;n.array[i]=e,n.addUpdateRange(i,1),n.needsUpdate=!0,r.requestRender()}updateGlyphAndTransformation(e,n,r,i,s){this.glyphInfo===e&&this.x===n&&this.y===r&&this.fontSize===i&&this.pixelSize===s||(this.glyphInfo!=e&&(this.glyphInfo=e,this.writeUV()),this.x=n,this.y=r,this.fontSize=i,this.pixelSize=s,this.writeUpdatedMatrix())}updateBaseMatrix(e){this.baseMatrix!==e&&(this.baseMatrix=e,this.writeUpdatedMatrix())}writeUV(){if(this.index==null||this.glyphInfo==null)return;const e=this.index*4,{instanceUV:n,root:r}=this.group;dY(this.glyphInfo,n.array,e),n.addUpdateRange(e,4),n.needsUpdate=!0,r.requestRender()}writeUpdatedMatrix(){if(this.index==null||this.glyphInfo==null||this.baseMatrix==null)return;const e=this.index*16,{instanceMatrix:n,root:r}=this.group;n.addUpdateRange(e,16),M3.makeTranslation(this.x*this.pixelSize,this.y*this.pixelSize,0).multiply(gY.makeScale(this.fontSize*this.glyphInfo.width*this.pixelSize,this.fontSize*this.glyphInfo.height*this.pixelSize,1)).premultiply(this.baseMatrix),M3.toArray(n.array,e),n.needsUpdate=!0,r.requestRender()}}const yY="middle",EY="left";function F4(t,e,n,r,i,s,o,a,l,u,c,p,f,A,y,x){let I={current:void 0};const C=fY(t,l,e,I,x),S=cr(t,"verticalAlign",yY),B=cr(t,"textAlign",EY),_=cr(t,"color",0),T=cr(t,"opacity",1),F=cn(void 0);return y.push(()=>un(()=>{var Q;return(Q=r.value)==null?void 0:Q.addLayoutChangeListener(()=>{const N=I.current,{size:{value:Y},paddingInset:{value:L},borderInset:{value:G}}=i;if(N==null||Y==null||L==null||G==null)return;const[ne,ce]=Y,[K,me,fe,Ne]=L,[se,ue,he,re]=G,ye=ne-me-Ne-ue-re,de=ce-K-fe-se-he;F.value=AY(N,ye,de)})}),()=>un(()=>{const Q=l.value;if(Q==null||a.value==null)return;const N=new CY(u.getGroup(a.value.majorIndex,Q),B,S,_,T,F,n,s,o,c,p,f);return A!=null&&(A.current=N),()=>N.destroy()})),C}const vY=[];class CY{constructor(e,n,r,i,s,o,a,l,u,c,p,f){At(this,"group");At(this,"textAlign");At(this,"verticalAlign");At(this,"color");At(this,"opacity");At(this,"layoutSignal");At(this,"matrix");At(this,"parentClippingRect");At(this,"selectionRange");At(this,"selectionBoxes");At(this,"caretPosition");At(this,"glyphLines",[]);At(this,"lastLayout");At(this,"unsubscribeInitialList",[]);At(this,"unsubscribeShowList",[]);this.group=e,this.textAlign=n,this.verticalAlign=r,this.color=i,this.opacity=s,this.layoutSignal=o,this.matrix=a,this.parentClippingRect=u,this.selectionRange=c,this.selectionBoxes=p,this.caretPosition=f,this.unsubscribeInitialList=[un(()=>{if(!l.value||s.value<.01){this.hide();return}this.show()}),un(()=>this.updateSelectionBoxes(this.lastLayout,c==null?void 0:c.value,r.peek(),n.peek()))]}getCharIndex(e,n){const r=this.lastLayout;if(r==null)return 0;n-=-Y1(r,this.verticalAlign.peek());const i=Math.floor(n/-J1(r.lineHeight,r.fontSize)),s=r.lines;if(i<0||s.length===0)return 0;if(i>=s.length){const c=s[s.length-1];return c.charIndexOffset+c.charLength+1}const o=s[i],a=r.font.getGlyphInfo(" ").xadvance*r.fontSize,l=this.glyphLines[i];let u=l.length;for(let c=0;c=p.charIndexOffset+p.charLength)continue;const f=this.glyphLines[c][Math.max(r-p.charIndexOffset,0)];return{lineIndex:c,x:this.getGlyphX(f,i?0:1,s)}}const l=e[a-1];if(l.charLength===0)return{lineIndex:a-1,x:F3(n,l.nonWhitespaceWidth,o)-n/2};const u=this.glyphLines[a-1][l.charLength-1];return{lineIndex:a-1,x:this.getGlyphX(u,1,s)}}getGlyphX(e,n,r){return typeof e=="number"?e+n*r:e.getX(n)}show(){this.unsubscribeShowList.length>0||(Sp(this.glyphLines,e=>e.show()),this.unsubscribeShowList.push(un(()=>{const e=this.matrix.value;e!=null&&Sp(this.glyphLines,n=>n.updateBaseMatrix(e))}),un(()=>{var n;const e=(n=this.parentClippingRect)==null?void 0:n.value;Sp(this.glyphLines,r=>r.updateClippingRect(e))}),un(()=>{const e=this.color.value;Sp(this.glyphLines,n=>n.updateColor(e))}),un(()=>{const e=this.opacity.value;Sp(this.glyphLines,n=>n.updateOpacity(e))}),un(()=>{var f,A;const e=this.layoutSignal.value;if(e==null)return;const{text:n,font:r,lines:i,letterSpacing:s=0,fontSize:o=16,lineHeight:a=1.2,availableWidth:l}=e;let u=Y1(e,this.verticalAlign.value)-e.availableHeight/2;const c=i.length,p=this.group.pixelSize.value;for(let y=0;yS+C){F=ce.id;const fe=T+T3(r,o,ce,F);typeof Q[G]=="number"?Q[G]=T:Q.splice(G,0,fe),T+=_+x0(o,ce,s);continue}let K=Q[G];for(;Gy.hide(),c),this.glyphLines.length=c,this.lastLayout=e,this.updateSelectionBoxes(e,(A=this.selectionRange)==null?void 0:A.peek(),this.verticalAlign.value,this.textAlign.value)})))}hide(){const e=this.unsubscribeShowList.length;if(e!==0){for(let n=0;nn.hide())}}destroy(){this.hide(),this.glyphLines.length=0;const e=this.unsubscribeInitialList.length;for(let n=0;nnu(c,S,C,t.root.panelGroupManager,y,f.size,void 0,f.borderInset,t.clippingRect,I,xd(),F));const B=T4(c,n,t.root.renderer,u),_=Vs(void 0,fs.Text,M4(B),S),T=F4(c,e,y,p,f,I,t.clippingRect,_,B,t.root.gylphGroupManager,void 0,void 0,void 0,void 0,u,"break-word");return u.push(()=>un(()=>{var F;return(F=p.value)==null?void 0:F.setCustomLayouting(T.value)})),ju(r,i,f.size,u),Qh(r,i,x,u),Object.assign(f,{isClipped:x,mergedProperties:c,interactionPanel:Id(S,t.root,t.clippingRect,f.size,u),handlers:Zu(r,i,s,a,l),initializers:u})}const IY=Di;class qA extends ko{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,n,r,i){const s=this,o=new eu(s.manager);o.setPath(s.path),o.setRequestHeader(s.requestHeader),o.setWithCredentials(s.withCredentials),o.load(e,function(a){try{n(s.parse(a))}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},r,i)}parse(e){const n=this;function r(X,te){if(X.nodeType!==1)return;const V=_(X);let j=!1,ve=null;switch(X.nodeName){case"svg":te=y(X,te);break;case"style":s(X);break;case"g":te=y(X,te);break;case"path":te=y(X,te),X.hasAttribute("d")&&(ve=i(X));break;case"rect":te=y(X,te),ve=l(X);break;case"polygon":te=y(X,te),ve=u(X);break;case"polyline":te=y(X,te),ve=c(X);break;case"circle":te=y(X,te),ve=p(X);break;case"ellipse":te=y(X,te),ve=f(X);break;case"line":te=y(X,te),ve=A(X);break;case"defs":j=!0;break;case"use":te=y(X,te);const Pe=(X.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),ie=X.viewportElement.getElementById(Pe);ie?r(ie,te):console.warn("SVGLoader: 'use node' references non-existent node id: "+Pe);break}ve&&(te.fill!==void 0&&te.fill!=="none"&&ve.color.setStyle(te.fill,IY),F(ve,re),ne.push(ve),ve.userData={node:X,style:te});const Me=X.childNodes;for(let De=0;De0?re.copy(K[K.length-1]):re.identity())}function i(X){const te=new Yc,V=new ut,j=new ut,ve=new ut;let Me=!0,De=!1;const Pe=X.getAttribute("d");if(Pe===""||Pe==="none")return null;const ie=Pe.match(/[a-df-z][^a-df-z]*/ig);for(let Le=0,Se=ie.length;Le0&&(V.copy(ve),te.currentPath.currentPoint.copy(V),Me=!0);break;default:console.warn(ke)}De=!1}return te}function s(X){if(!(!X.sheet||!X.sheet.cssRules||!X.sheet.cssRules.length))for(let te=0;teve.trim());for(let ve=0;veDe!==""));ce[j[ve]]=Object.assign(ce[j[ve]]||{},Me)}}}function o(X,te,V,j,ve,Me,De,Pe){if(te==0||V==0){X.lineTo(Pe.x,Pe.y);return}j=j*Math.PI/180,te=Math.abs(te),V=Math.abs(V);const ie=(De.x-Pe.x)/2,Le=(De.y-Pe.y)/2,Se=Math.cos(j)*ie+Math.sin(j)*Le,ke=-Math.sin(j)*ie+Math.cos(j)*Le;let Oe=te*te,Ke=V*V;const pe=Se*Se,H=ke*ke,q=pe/Oe+H/Ke;if(q>1){const at=Math.sqrt(q);te=at*te,V=at*V,Oe=te*te,Ke=V*V}const Ce=Oe*H+Ke*pe,tt=(Oe*Ke-Ce)/Ce;let Ye=Math.sqrt(Math.max(0,tt));ve===Me&&(Ye=-Ye);const Je=Ye*te*ke/V,pt=-Ye*V*Se/te,xt=Math.cos(j)*Je-Math.sin(j)*pt+(De.x+Pe.x)/2,wt=Math.sin(j)*Je+Math.cos(j)*pt+(De.y+Pe.y)/2,ct=a(1,0,(Se-Je)/te,(ke-pt)/V),Et=a((Se-Je)/te,(ke-pt)/V,(-Se-Je)/te,(-ke-pt)/V)%(Math.PI*2);X.currentPath.absellipse(xt,wt,te,V,ct,ct+Et,Me===0,j)}function a(X,te,V,j){const ve=X*V+te*j,Me=Math.sqrt(X*X+te*te)*Math.sqrt(V*V+j*j);let De=Math.acos(Math.max(-1,Math.min(1,ve/Me)));return X*j-te*V<0&&(De=-De),De}function l(X){const te=B(X.getAttribute("x")||0),V=B(X.getAttribute("y")||0),j=B(X.getAttribute("rx")||X.getAttribute("ry")||0),ve=B(X.getAttribute("ry")||X.getAttribute("rx")||0),Me=B(X.getAttribute("width")),De=B(X.getAttribute("height")),Pe=1-.551915024494,ie=new Yc;return ie.moveTo(te+j,V),ie.lineTo(te+Me-j,V),(j!==0||ve!==0)&&ie.bezierCurveTo(te+Me-j*Pe,V,te+Me,V+ve*Pe,te+Me,V+ve),ie.lineTo(te+Me,V+De-ve),(j!==0||ve!==0)&&ie.bezierCurveTo(te+Me,V+De-ve*Pe,te+Me-j*Pe,V+De,te+Me-j,V+De),ie.lineTo(te+j,V+De),(j!==0||ve!==0)&&ie.bezierCurveTo(te+j*Pe,V+De,te,V+De-ve*Pe,te,V+De-ve),ie.lineTo(te,V+ve),(j!==0||ve!==0)&&ie.bezierCurveTo(te,V+ve*Pe,te+j*Pe,V,te+j,V),ie}function u(X){function te(Me,De,Pe){const ie=B(De),Le=B(Pe);ve===0?j.moveTo(ie,Le):j.lineTo(ie,Le),ve++}const V=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,j=new Yc;let ve=0;return X.getAttribute("points").replace(V,te),j.currentPath.autoClose=!0,j}function c(X){function te(Me,De,Pe){const ie=B(De),Le=B(Pe);ve===0?j.moveTo(ie,Le):j.lineTo(ie,Le),ve++}const V=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,j=new Yc;let ve=0;return X.getAttribute("points").replace(V,te),j.currentPath.autoClose=!1,j}function p(X){const te=B(X.getAttribute("cx")||0),V=B(X.getAttribute("cy")||0),j=B(X.getAttribute("r")||0),ve=new Ah;ve.absarc(te,V,j,0,Math.PI*2);const Me=new Yc;return Me.subPaths.push(ve),Me}function f(X){const te=B(X.getAttribute("cx")||0),V=B(X.getAttribute("cy")||0),j=B(X.getAttribute("rx")||0),ve=B(X.getAttribute("ry")||0),Me=new Ah;Me.absellipse(te,V,j,ve,0,Math.PI*2);const De=new Yc;return De.subPaths.push(Me),De}function A(X){const te=B(X.getAttribute("x1")||0),V=B(X.getAttribute("y1")||0),j=B(X.getAttribute("x2")||0),ve=B(X.getAttribute("y2")||0),Me=new Yc;return Me.moveTo(te,V),Me.lineTo(j,ve),Me.currentPath.autoClose=!1,Me}function y(X,te){te=Object.assign({},te);let V={};if(X.hasAttribute("class")){const De=X.getAttribute("class").split(/\s/).filter(Boolean).map(Pe=>Pe.trim());for(let Pe=0;Pe0&&te.premultiply(K[K.length-1]),re.copy(te),K.push(te),te}function T(X){const te=new On,V=me;if(X.nodeName==="use"&&(X.hasAttribute("x")||X.hasAttribute("y"))){const j=B(X.getAttribute("x")),ve=B(X.getAttribute("y"));te.translate(j,ve)}if(X.hasAttribute("transform")){const j=X.getAttribute("transform").split(")");for(let ve=j.length-1;ve>=0;ve--){const Me=j[ve].trim();if(Me==="")continue;const De=Me.indexOf("("),Pe=Me.length;if(De>0&&De=1){const Se=Le[0];let ke=0;Le.length>=2&&(ke=Le[1]),V.translate(Se,ke)}break;case"rotate":if(Le.length>=1){let Se=0,ke=0,Oe=0;Se=Le[0]*Math.PI/180,Le.length>=3&&(ke=Le[1],Oe=Le[2]),fe.makeTranslation(-ke,-Oe),Ne.makeRotation(Se),se.multiplyMatrices(Ne,fe),fe.makeTranslation(ke,Oe),V.multiplyMatrices(fe,se)}break;case"scale":if(Le.length>=1){const Se=Le[0];let ke=Se;Le.length>=2&&(ke=Le[1]),V.scale(Se,ke)}break;case"skewX":Le.length===1&&V.set(1,Math.tan(Le[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":Le.length===1&&V.set(1,0,0,Math.tan(Le[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":Le.length===6&&V.set(Le[0],Le[2],Le[4],Le[1],Le[3],Le[5],0,0,1);break}}te.premultiply(V)}}return te}function F(X,te){function V(De){he.set(De.x,De.y,1).applyMatrix3(te),De.set(he.x,he.y)}function j(De){const Pe=De.xRadius,ie=De.yRadius,Le=Math.cos(De.aRotation),Se=Math.sin(De.aRotation),ke=new ge(Pe*Le,Pe*Se,0),Oe=new ge(-ie*Se,ie*Le,0),Ke=ke.applyMatrix3(te),pe=Oe.applyMatrix3(te),H=me.set(Ke.x,pe.x,0,Ke.y,pe.y,0,0,0,1),q=fe.copy(H).invert(),Ye=Ne.copy(q).transpose().multiply(q).elements,Je=G(Ye[0],Ye[1],Ye[4]),pt=Math.sqrt(Je.rt1),xt=Math.sqrt(Je.rt2);if(De.xRadius=1/pt,De.yRadius=1/xt,De.aRotation=Math.atan2(Je.sn,Je.cs),!((De.aEndAngle-De.aStartAngle)%(2*Math.PI){const{x:Gt,y:bt}=new ge(Math.cos(Ut),Math.sin(Ut),0).applyMatrix3(at);return Math.atan2(bt,Gt)};De.aStartAngle=fn(De.aStartAngle),De.aEndAngle=fn(De.aEndAngle),Q(te)&&(De.aClockwise=!De.aClockwise)}}function ve(De){const Pe=Y(te),ie=L(te);De.xRadius*=Pe,De.yRadius*=ie;const Le=Pe>Number.EPSILON?Math.atan2(te.elements[1],te.elements[0]):Math.atan2(-te.elements[3],te.elements[4]);De.aRotation+=Le,Q(te)&&(De.aStartAngle*=-1,De.aEndAngle*=-1,De.aClockwise=!De.aClockwise)}const Me=X.subPaths;for(let De=0,Pe=Me.length;DeNumber.EPSILON}function Y(X){const te=X.elements;return Math.sqrt(te[0]*te[0]+te[1]*te[1])}function L(X){const te=X.elements;return Math.sqrt(te[3]*te[3]+te[4]*te[4])}function G(X,te,V){let j,ve,Me,De,Pe;const ie=X+V,Le=X-V,Se=Math.sqrt(Le*Le+4*te*te);return ie>0?(j=.5*(ie+Se),Pe=1/j,ve=X*Pe*V-te*Pe*te):ie<0?ve=.5*(ie-Se):(j=.5*Se,ve=-.5*Se),Le>0?Me=Le+Se:Me=Le-Se,Math.abs(Me)>2*Math.abs(te)?(Pe=-2*te/Me,De=1/Math.sqrt(1+Pe*Pe),Me=Pe*De):Math.abs(te)===0?(Me=1,De=0):(Pe=-.5*Me/te,Me=1/Math.sqrt(1+Pe*Pe),De=Pe*Me),Le>0&&(Pe=Me,Me=-De,De=Pe),{rt1:j,rt2:ve,cs:Me,sn:De}}const ne=[],ce={},K=[],me=new On,fe=new On,Ne=new On,se=new On,ue=new ut,he=new ge,re=new On,ye=new DOMParser().parseFromString(e,"image/svg+xml");return r(ye.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:ne,xml:ye.documentElement}}static createShapes(e){const r={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:r.ORIGIN,t:0};function s(x,I,C,S){const B=x.x,_=I.x,T=C.x,F=S.x,Q=x.y,N=I.y,Y=C.y,L=S.y,G=(F-T)*(Q-Y)-(L-Y)*(B-T),ne=(_-B)*(Q-Y)-(N-Q)*(B-T),ce=(L-Y)*(_-B)-(F-T)*(N-Q),K=G/ce,me=ne/ce;if(ce===0&&G!==0||K<=0||K>=1||me<0||me>1)return null;if(G===0&&ce===0){for(let fe=0;fe<2;fe++)if(o(fe===0?C:S,x,I),i.loc==r.ORIGIN){const Ne=fe===0?C:S;return{x:Ne.x,y:Ne.y,t:i.t}}else if(i.loc==r.BETWEEN){const Ne=+(B+i.t*(_-B)).toPrecision(10),se=+(Q+i.t*(N-Q)).toPrecision(10);return{x:Ne,y:se,t:i.t}}return null}else{for(let se=0;se<2;se++)if(o(se===0?C:S,x,I),i.loc==r.ORIGIN){const ue=se===0?C:S;return{x:ue.x,y:ue.y,t:i.t}}const fe=+(B+K*(_-B)).toPrecision(10),Ne=+(Q+K*(N-Q)).toPrecision(10);return{x:fe,y:Ne,t:K}}}function o(x,I,C){const S=C.x-I.x,B=C.y-I.y,_=x.x-I.x,T=x.y-I.y,F=S*T-_*B;if(x.x===I.x&&x.y===I.y){i.loc=r.ORIGIN,i.t=0;return}if(x.x===C.x&&x.y===C.y){i.loc=r.DESTINATION,i.t=1;return}if(F<-Number.EPSILON){i.loc=r.LEFT;return}if(F>Number.EPSILON){i.loc=r.RIGHT;return}if(S*_<0||B*T<0){i.loc=r.BEHIND;return}if(Math.sqrt(S*S+B*B)L.t<=Y.t+Number.EPSILON&&L.t>=Y.t-Number.EPSILON)===void 0&&(C.push(Y),S.push(new ut(Y.x,Y.y)))}}return S}function l(x,I,C){const S=new ut;I.getCenter(S);const B=[];return C.forEach(_=>{_.boundingBox.containsPoint(S)&&a(x,_.points).forEach(F=>{B.push({identifier:_.identifier,isCW:_.isCW,point:F})})}),B.sort((_,T)=>_.point.x-T.point.x),B}function u(x,I,C,S,B){(B==null||B==="")&&(B="nonzero");const _=new ut;x.boundingBox.getCenter(_);const T=[new ut(C,_.y),new ut(S,_.y)],F=l(T,x.boundingBox,I);F.sort((ne,ce)=>ne.point.x-ce.point.x);const Q=[],N=[];F.forEach(ne=>{ne.identifier===x.identifier?Q.push(ne):N.push(ne)});const Y=Q[0].point.x,L=[];let G=0;for(;G0&&L[L.length-1]===N[G].identifier?L.pop():L.push(N[G].identifier),G++;if(L.push(x.identifier),B==="evenodd"){const ne=L.length%2===0,ce=L[L.length-2];return{identifier:x.identifier,isHole:ne,for:ce}}else if(B==="nonzero"){let ne=!0,ce=null,K=null;for(let me=0;me{const I=x.getPoints();let C=-999999999,S=999999999,B=-999999999,_=999999999;for(let T=0;TC&&(C=F.y),F.yB&&(B=F.x),F.x<_&&(_=F.x)}return p<=B&&(p=B+1),c>=_&&(c=_-1),{curves:x.curves,points:I,isCW:Il.isClockWise(I),identifier:-1,boundingBox:new yL(new ut(_,S),new ut(B,C))}});f=f.filter(x=>x.points.length>1);for(let x=0;xu(x,f,c,p,e.userData?e.userData.style.fillRule:void 0)),y=[];return f.forEach(x=>{if(!A[x.identifier].isHole){const C=new gh;C.curves=x.curves,A.filter(B=>B.isHole&&B.for===x.identifier).forEach(B=>{const _=f[B.identifier],T=new Ah;T.curves=_.curves,C.holes.push(T)}),y.push(C)}}),y}static getStrokeStyle(e,n,r,i,s){return e=e!==void 0?e:1,n=n!==void 0?n:"#000",r=r!==void 0?r:"miter",i=i!==void 0?i:"butt",s=s!==void 0?s:4,{strokeColor:n,strokeWidth:e,strokeLineJoin:r,strokeLineCap:i,strokeMiterLimit:s}}static pointsToStroke(e,n,r,i){const s=[],o=[],a=[];if(qA.pointsToStrokeWithBuffers(e,n,r,i,s,o,a)===0)return null;const l=new Jn;return l.setAttribute("position",new En(s,3)),l.setAttribute("normal",new En(o,3)),l.setAttribute("uv",new En(a,2)),l}static pointsToStrokeWithBuffers(e,n,r,i,s,o,a,l){const u=new ut,c=new ut,p=new ut,f=new ut,A=new ut,y=new ut,x=new ut,I=new ut,C=new ut,S=new ut,B=new ut,_=new ut,T=new ut,F=new ut,Q=new ut,N=new ut,Y=new ut;r=r!==void 0?r:12,i=i!==void 0?i:.001,l=l!==void 0?l:0,e=Le(e);const L=e.length;if(L<2)return 0;const G=e[0].equals(e[L-1]);let ne,ce=e[0],K;const me=n.strokeWidth/2,fe=1/(L-1);let Ne=0,se,ue,he,re,ye=!1,de=0,X=l*3,te=l*2;V(e[0],e[1],u).multiplyScalar(me),I.copy(e[0]).sub(u),C.copy(e[0]).add(u),S.copy(I),B.copy(C);for(let Se=1;SeNumber.EPSILON){const Ke=me/Oe;p.multiplyScalar(-Ke),f.subVectors(ne,ce),A.copy(f).setLength(Ke).add(p),N.copy(A).negate();const pe=A.length(),H=f.length();f.divideScalar(H),y.subVectors(K,ne);const q=y.length();switch(y.divideScalar(q),f.dot(N)=i&&Oe.push(Se[Ke]);return Oe.push(Se[Se.length-1]),Oe}}}function DY(t,e,n,r,i,s){const o=[],a=cn([]),l=cn([]);nc(a,o);const u=cn(void 0),c=$u(e,n,r,{...tc,...ec(t.root.size),...rc(a),...qu(l)},lC,ne=>ne.add("aspectRatio",u)),p=cn(void 0),f=Yu();Lh(p,f,t,c,i,!0,o);const A=Ju(c,f,t.root.pixelSize);Xu(t.root,i,A,o);const y=Rh(t.childrenMatrix,A),x=kh(t.clippingRect,y,f.size,t.root.pixelSize),I=Ku(f,x,c),C=Dd(c),S=Vs(c,fs.Panel,C,t.orderInfo);o.push(ne=>nu(c,S,C,t.root.panelGroupManager,y,f.size,void 0,f.borderInset,t.clippingRect,I,xd(),ne));const B=Vs(void 0,fs.Svg,void 0,S),_=Kn(()=>{var ne,ce;return Ws((ne=e.value)==null?void 0:ne.src)??Ws((ce=n.value)==null?void 0:ce.src)}),T=cn(void 0),F=z0(t.root,t.clippingRect);a4(T,BY,mX,o,_,t.root,F,t.clippingRect,B,u),l4(c,T,o,t.root);const Q=SY(t.root,f,T,u,I,o),N=cC();pC(s,N,t.root.pixelSize,o);const Y=hC(N,y,t.root.pixelSize);fC(c,N,f,y,I,t.clippingRect,B,t.root.panelGroupManager,o);const L=Id(B,t.root,t.clippingRect,f.size,o),G=dC(N,t.anyAncestorScrollable,f,i,L,n,t.root,o);return ju(e,n,f.size,o),Qh(e,n,x,o),Object.assign(f,{scrollPosition:N,isClipped:x,mergedProperties:c,anyAncestorScrollable:mB(f.scrollable,t.anyAncestorScrollable),clippingRect:aC(y,f,t.root.pixelSize,t.clippingRect),childrenMatrix:Y,node:p,orderInfo:B,root:t.root,initializers:o,centerGroup:Q,handlers:Zu(e,n,r,a,l,G),interactionPanel:L})}function SY(t,e,n,r,i,s){const o=new Fu;return o.matrixAutoUpdate=!1,s.push(()=>un(()=>{n4(o.position,o.scale,e.size,e.paddingInset,e.borderInset,t.pixelSize.value,r.value??1),o.updateMatrix(),t.requestRender()}),()=>un(()=>{const a=n.value;if(a!=null)return o.add(a),t.requestRender(),()=>{o.remove(a),t.requestRender()}}),()=>un(()=>{o.visible=n.value!=null&&i.value,t.requestRender()})),o}const wY=new qA,q1=new ns,wp=new ge,P3=new Map;async function BY(t,e,n,r,i,s){if(t==null)return;const o=new Fu;o.matrixAutoUpdate=!1;let a=P3.get(t);a==null&&P3.set(t,a=await wY.loadAsync(t)),q1.makeEmpty();for(const u of a.paths){const c=qA.createShapes(u),p=new Po;p.transparent=!0,p.depthWrite=!1,p.toneMapped=!1,p.clippingPlanes=n;for(const f of c){const A=new XA(f);A.computeBoundingBox(),q1.union(A.boundingBox);const y=new vr(A,p);y.matrixAutoUpdate=!1,y.raycast=Dh(y,y.raycast,e.object,r,i),Cd(y,e,i),y.userData.color=u.color,y.scale.y=-1,y.updateMatrix(),o.add(y)}}q1.getSize(wp),s.value=wp.x/wp.y;const l=1/wp.y;return o.scale.set(1,1,1).multiplyScalar(l),q1.getCenter(wp),wp.y*=-1,o.position.copy(wp).negate().multiplyScalar(l),o.updateMatrix(),o}function bY(t,e,n,r,i,s,o,a){const l=[],u=cn([]),c=cn([]);nc(u,l);const p=$u(i,s,o,{...tc,...ec(t.root.size),...rc(u),...qu(c)},lC,F=>{F.add("aspectRatio",n/r),F.add("width",n),F.add("height",r)}),f=Yu();Lh(void 0,f,t,p,a,!0,l);const A=Ju(p,f,t.root.pixelSize);Xu(t.root,a,A,l);const y=Rh(t.childrenMatrix,A),x=kh(t.clippingRect,y,f.size,t.root.pixelSize),I=Ku(f,x,p),C=Dd(p),S=Vs(p,fs.Panel,C,t.orderInfo);l.push(F=>nu(p,S,C,t.root.panelGroupManager,y,f.size,void 0,f.borderInset,t.clippingRect,I,xd(),F));const B=Vs(void 0,fs.Svg,void 0,S),_=z0(t.root,t.clippingRect),T=_Y(p,e,n,r,t,B,f,I,_,l);return ju(i,s,f.size,l),Qh(i,s,x,l),Object.assign(f,{isClipped:x,mergedProperties:p,initializers:l,iconGroup:T,handlers:Zu(i,s,o,u,c),interactionPanel:Id(B,t.root,t.clippingRect,f.size,l)})}const TY=new qA;function _Y(t,e,n,r,i,s,o,a,l,u){const c=new Fu;c.matrixAutoUpdate=!1;const p=TY.parse(e);for(const A of p.paths){const y=qA.createShapes(A),x=new Po;x.transparent=!0,x.depthWrite=!1,x.toneMapped=!1,x.clippingPlanes=l;for(const I of y){const C=new XA(I);C.computeBoundingBox();const S=new vr(C,x);S.matrixAutoUpdate=!1,S.raycast=Dh(S,S.raycast,i.root.object,i.clippingRect,s),Cd(S,i.root,s),S.userData.color=A.color,S.scale.y=-1,S.updateMatrix(),c.add(S)}}const f=n/r;return u.push(()=>un(()=>{n4(c.position,c.scale,o.size,o.paddingInset,o.borderInset,i.root.pixelSize.value,f),c.position.x-=c.scale.x*f/2,c.position.y+=c.scale.x/2,c.scale.divideScalar(r),c.updateMatrix(),i.root.requestRender()}),()=>un(()=>{c.visible=a.value,i.root.requestRender()})),l4(t,c,u,i.root),c}const MY=["caretBorderRightWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderBottomWidth"];let Q3;function FY(){return Q3??(Q3=H0({backgroundColor:"caretColor",backgroundOpacity:"caretOpacity",borderBend:"caretBorderBend",borderBottomLeftRadius:"caretBorderBottomLeftRadius",borderBottomRightRadius:"caretBorderBottomRightRadius",borderColor:"caretBorderColor",borderOpacity:"caretBorderOpacity",borderTopLeftRadius:"caretBorderTopLeftRadius",borderTopRightRadius:"caretBorderTopRightRadius"},{backgroundColor:0,backgroundOpacity:1})),Q3}function PY(t,e,n,r,i,s,o,a){const l=Vs(void 0,fs.Panel,uC,i),u=cn(void 0);a.push(()=>un(()=>{const f=n.value;f==null&&(u.value=void 0),u.value=f;const A=setInterval(()=>u.value=u.peek()==null?f:void 0,500);return()=>clearInterval(A)}));const c=dB(t,MY),p=cr(t,"caretWidth",1.5);a.push(f=>nu(t,l,void 0,o,e,Kn(()=>{const A=u.value;return A==null?[0,0]:[p.value,A[2]]}),Kn(()=>{const A=u.value;return A==null?[0,0]:[A[0]-p.value/2,A[1]]}),c,s,r,FY(),f))}const QY=["selectionBorderRightWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderBottomWidth"];let k3;function kY(){return k3??(k3=H0({backgroundColor:"selectionColor",backgroundOpacity:"selectionOpacity",borderBend:"selectionBorderBend",borderBottomLeftRadius:"selectionBorderBottomLeftRadius",borderBottomRightRadius:"selectionBorderBottomRightRadius",borderColor:"selectionBorderColor",borderOpacity:"selectionBorderOpacity",borderTopLeftRadius:"selectionBorderTopLeftRadius",borderTopRightRadius:"selectionBorderTopRightRadius"},{backgroundColor:11851775,backgroundOpacity:1})),k3}function RY(t,e,n,r,i,s,o,a){const l=[],u=Vs(void 0,fs.Panel,uC,i),c=dB(t,QY);return a.push(()=>un(()=>{const p=n.value,f=p.length;for(let y=0;y()=>{const p=l.length;for(let f=0;ft.value)}}const s2=new Set;function NY(t){s2.add(t)}const OY={onPointerDown:t=>{document.activeElement instanceof HTMLElement&&s2.has(t.nativeEvent)&&(s2.delete(t.nativeEvent),t.preventDefault())}};function UY(t,e,n,r,i,s){var re,ye,de,X,te,V;const o=cn([]),a=cn([]),l=cn(!1),u=[];nc(o,u);const c=$u(n,r,i,{...tc,...ec(t.root.size),...rc(o),...qu(a),...LY(l)},void 0,j=>{oC(n.value,r.value,i.value,ve=>{j.add("caretOpacity",ve.opacity),j.add("caretColor",ve.color)})}),p=Yu(),f=cn(void 0);Lh(f,p,t,c,s,!1,u);const A=Ju(c,p,t.root.pixelSize);Xu(t.root,s,A,u);const y=Rh(t.childrenMatrix,A),x=kh(t.clippingRect,y,p.size,t.root.pixelSize),I=Ku(p,x,c),C=Dd(c),S=Vs(c,fs.Panel,C,t.orderInfo);u.push(j=>nu(c,S,C,t.root.panelGroupManager,y,p.size,void 0,p.borderInset,t.clippingRect,I,xd(),j));const B={},_=cn([]),T=cn(void 0),F=cn(void 0);PY(c,y,T,I,S,t.clippingRect,t.root.panelGroupManager,u);const Q=RY(c,y,_,I,S,t.clippingRect,t.root.panelGroupManager,u),N=T4(c,e,t.root.renderer,u),Y=Vs(void 0,fs.Text,M4(N),Q),L=((re=n.peek())==null?void 0:re.defaultValue)??((ye=r.peek())==null?void 0:ye.defaultValue),G=((de=n.peek())==null?void 0:de.value)==null&&((X=r.peek())==null?void 0:X.value)==null?cn(L??""):void 0,ne=Kn(()=>{var j,ve;return(G==null?void 0:G.value)??Ws((j=n.value)==null?void 0:j.value)??Ws((ve=r.value)==null?void 0:ve.value)??""}),ce=FI(n,r,"type","text"),K=Kn(()=>ce.value==="text"?ne.value:"*".repeat(ne.value.length??0)),me=((te=n.peek())==null?void 0:te.multiline)??((V=r.peek())==null?void 0:V.multiline)??!1,fe=F4(c,K,y,f,p,I,t.clippingRect,Y,N,t.root.gylphGroupManager,F,_,T,B,u,me?"break-word":"keep-all");u.push(()=>un(()=>{var j;return(j=f.value)==null?void 0:j.setCustomLayouting(fe.value)})),ju(n,r,p.size,u),Qh(n,r,x,u);const Ne=FI(n,r,"disabled",!1),se=zY(ne,F,j=>{var ve,Me,De,Pe;G!=null&&(G.value=j),(Me=(ve=n.peek())==null?void 0:ve.onValueChange)==null||Me.call(ve,j),(Pe=(De=r.peek())==null?void 0:De.onValueChange)==null||Pe.call(De,j)},me,ce,Ne,FI(n,r,"tabIndex",0),u),ue=(j,ve,Me)=>{const De=se.peek();De!=null&&(l.peek()||De.focus(),j!=null&&ve!=null&&De.setSelectionRange(j,ve,Me),F.value=[De.selectionStart??0,De.selectionEnd??0])};HY(se,l,u,j=>{var ve,Me,De,Pe;(Me=(ve=r.peek())==null?void 0:ve.onFocusChange)==null||Me.call(ve,j),(Pe=(De=n.peek())==null?void 0:De.onFocusChange)==null||Pe.call(De,j)});const he=GY(p,B,ue,Ne);return Object.assign(p,{isClipped:x,mergedProperties:c,valueSignal:ne,focus:()=>ue(),root:t.root,element:se,node:f,interactionPanel:Id(S,t.root,t.clippingRect,p.size,u),handlers:Zu(n,r,i,o,a,he,"text"),initializers:u})}function GY(t,e,n,r){return Kn(()=>{if(r.value)return;let i;return{onPointerDown:s=>{var a;if(s.defaultPrevented||s.uv==null||e.current==null)return;NY(s.nativeEvent),(a=s.stopPropagation)==null||a.call(s);const o=R3(t,s.uv,e.current);i=o,setTimeout(()=>n(o,o))},onPointerUp:s=>{i=void 0},onPointerLeave:s=>{i=void 0},onPointerMove:s=>{var c;if(i==null||s.uv==null||e.current==null)return;(c=s.stopPropagation)==null||c.call(s);const o=R3(t,s.uv,e.current),a=Math.min(i,o),l=Math.max(i,o),u=in(a,l,u))}}})}function zY(t,e,n,r,i,s,o,a){const l=cn(void 0);return a.push(u=>{const c=document.createElement(r?"textarea":"input"),p=c.style;p.setProperty("position","absolute"),p.setProperty("left","-1000vw"),p.setProperty("top","0"),p.setProperty("pointerEvents","none"),p.setProperty("opacity","0"),c.addEventListener("input",()=>{n==null||n(c.value),f()});const f=()=>{const{selectionStart:A,selectionEnd:y}=c;if(A==null||y==null){e.value=void 0;return}const x=e.peek();x!=null&&x[0]===A&&x[1]===y||(e.value=[A,y])};return c.addEventListener("keydown",f),c.addEventListener("keyup",f),c.addEventListener("blur",()=>e.value=void 0),document.body.appendChild(c),l.value=c,u.push(()=>{l.value=void 0,c.remove()},un(()=>c.value=t.value),un(()=>c.disabled=s.value),un(()=>c.tabIndex=o.value),un(()=>c.setAttribute("type",i.value))),u}),l}function HY(t,e,n,r){n.push(()=>un(()=>{const i=t.value;if(i==null)return;e.value=document.activeElement===i;const s=()=>{const o=document.activeElement===i;o!=e.value&&(e.value=o,r(o))};return i.addEventListener("focus",s),i.addEventListener("blur",s),()=>{i.removeEventListener("focus",s),i.removeEventListener("blur",s)}}))}function R3({size:t,borderInset:e,paddingInset:n},r,i){const s=t.peek(),o=e.peek(),a=n.peek();if(s==null||o==null||a==null)return 0;const[l,u]=s,[c,,,p]=o,[f,,,A]=a,y=r.x*l-p-A,x=-r.y*u+c+f;return i.getCharIndex(y,x)}function WY(t,e,n,r,i,s){const o=cn([]),a=cn([]),l=[];nc(o,l);const u=$u(e,n,r,{...tc,...ec(t.root.size),...rc(o),...qu(a)}),c=Yu();Lh(void 0,c,t,u,i,!0,l);const p=Ju(u,c,t.root.pixelSize);Xu(t.root,i,p,l);const f=Rh(t.childrenMatrix,p),A=kh(t.clippingRect,f,c.size,t.root.pixelSize),y=Ku(c,A,u),x=Vs(u,fs.Custom,void 0,t.orderInfo),I=z0(t.root,t.clippingRect);return l.push(C=>{const S=s.current;if(S==null)return C;if(S.matrixAutoUpdate=!1,S.material instanceof is){const B=S.material;B.clippingPlanes=I,B.needsUpdate=!0,B.shadowSide=va,C.push(()=>un(()=>{B.depthTest=t.root.depthTest.value,t.root.requestRender()}))}return S.raycast=Dh(S,S.raycast,t.root.object,t.clippingRect,x),Cd(S,t.root,x),C.push(un(()=>{S.renderOrder=t.root.renderOrder.value,t.root.requestRender()}),un(()=>{S.receiveShadow=u.value.read("receiveShadow",!1),t.root.requestRender()}),un(()=>{S.castShadow=u.value.read("castShadow",!1),t.root.requestRender()}),un(()=>{if(c.size.value==null)return;const[B,_]=c.size.value,T=t.root.pixelSize.value;S.scale.set(B*T,_*T,1),S.updateMatrix(),t.root.requestRender()}),un(()=>{S.visible=y.value,t.root.requestRender()})),C}),ju(e,n,c.size,l),Qh(e,n,A,l),Object.assign(c,{isClipped:A,mergedProperties:u,root:t.root,handlers:Zu(e,n,r,o,a),initializers:l})}function VY(t,e,n,r,i,s){const o=cn([]),a=cn([]),l=[],u=Yu();nc(o,l);const c=cn(new ge(1,1,1)),p=Kn(()=>c.value.x/c.value.y),f=$u(e,n,r,{...tc,...ec(t.root.size),...rc(o),...qu(a)},lC,_=>_.add("aspectRatio",p));Lh(void 0,u,t,f,i,!0,l);const A=Ju(f,u,t.root.pixelSize);Xu(t.root,i,A,l);const y=Rh(t.childrenMatrix,A),x=kh(t.clippingRect,y,u.size,t.root.pixelSize),I=Ku(u,x,f),C=Dd(f),S=Vs(f,fs.Panel,C,t.orderInfo);l.push(_=>nu(f,S,C,t.root.panelGroupManager,y,u.size,void 0,u.borderInset,t.clippingRect,I,xd(),_));const B=Vs(void 0,fs.Object,void 0,S);return ju(e,n,u.size,l),Qh(e,n,x,l),Object.assign(u,{isClipped:x,mergedProperties:f,remeasureContent:XY(f,t.root,u,t.clippingRect,I,B,c,s,l),interactionPanel:Id(S,t.root,t.clippingRect,u.size,l),handlers:Zu(e,n,r,o,a),initializers:l})}const qI=new ns,L3=new ge().setScalar(.001),jY=new ge,JY="back";function XY(t,e,n,r,i,s,o,a,l){const u=z0(e,r),c=cr(t,"depthAlign",JY),p=cr(t,"keepAspectRatio",!0),f=new ge,A=new ge,y=(I,C,S,B)=>{I!=null&&(I.visible=C,I.traverse(_=>{_ instanceof vr&&(_.renderOrder=S,_.material instanceof is&&(_.material.depthTest=B))}),e.requestRender())},x=()=>{const I=a.current;if(I==null){f.copy(L3),A.set(0,0,0);return}I.traverse(S=>{S instanceof vr&&(Cd(S,e,s),S.material.clippingPlanes=u,S.material.needsUpdate=!0,S.raycast=Dh(S,S.raycast,e.object,r,s))});const C=I.parent;I.parent=null,qI.setFromObject(I),qI.getSize(f).max(L3),o.value=f,C!=null&&(I.parent=C),qI.getCenter(A),e.requestRender()};return l.push(()=>un(()=>{y(a.current,i.value,e.renderOrder.value,e.depthTest.value),e.requestRender()}),I=>{const C=a.current;return C==null||(x(),I.push(un(()=>{const{size:{value:S},paddingInset:{value:B},borderInset:{value:_}}=n;if(S==null||B==null||_==null)return;const[T,F]=S,[Q,N,Y,L]=B,[G,ne,ce,K]=_,me=Q+G,fe=N+ne,Ne=Y+ce,se=L+K,ue=T-se-fe,he=F-me-Ne,re=e.pixelSize.value;C.scale.set(ue*re,he*re,p.value?he*re*f.z/f.y:f.z).divide(f),C.position.copy(A).negate(),C.position.z-=PJ[c.value]*f.z,C.position.multiply(C.scale),C.position.add(jY.set((se-fe)*.5*re,(Ne-me)*.5*re,0)),C.updateMatrix(),e.requestRender()}))),I}),()=>{y(a.current,i.peek(),e.renderOrder.peek(),e.depthTest.peek()),x()}}function YY(t,e,n,r,i,s){if(i instanceof es){const o=2*Math.tan(Math.PI*i.fov/360)*r;n.value=o/s,e.value=o,t.value=o*i.aspect}if(i instanceof VA){const o=i.top-i.bottom,a=i.right-i.left;n.value=o/s,e.value=o,t.value=a}}function qY(t,{src:e,autoplay:n,loop:r,muted:i,playbackRate:s,preservesPitch:o,volume:a}){if(!(e instanceof HTMLElement)){if(t.playsInline=!0,t.volume=a??1,t.preservesPitch=o??!0,t.playbackRate=s??1,t.muted=i??!1,t.loop=r??!1,t.autoplay=n??!1,e==null){t.removeAttribute("src"),t.removeAttribute("srcObject");return}typeof e=="string"?t.src=e:t.srcObject=e}}function KY(t,e){let n;const r=()=>{e(),n=t.requestVideoFrameCallback(r)};return n=t.requestVideoFrameCallback(r),()=>t.cancelVideoFrameCallback(n)}function nc(t,e){e.push(()=>()=>P4(t))}function ZY(t,e,n,r,i,s){let o=!1;oC(e,n,r,l=>{"hover"in l&&(o=!0)});const a=(e==null?void 0:e.cursor)??(n==null?void 0:n.cursor)??s;if(!o&&(e==null?void 0:e.onHoverChange)==null&&(n==null?void 0:n.onHoverChange)==null&&a==null){i.value.length=0;return}Kp("onPointerOver",t,({pointerId:l})=>{var u,c;i.value=[l,...i.value],i.value.length===1&&((u=n==null?void 0:n.onHoverChange)==null||u.call(n,!0),(c=e==null?void 0:e.onHoverChange)==null||c.call(e,!0)),a!=null&&$Y(i,a)}),Kp("onPointerOut",t,({pointerId:l})=>{var u,c;i.value=i.value.filter(p=>p!=l),i.value.length===0&&((u=n==null?void 0:n.onHoverChange)==null||u.call(n,!1),(c=e==null?void 0:e.onHoverChange)==null||c.call(e,!1)),P4(i)})}function rc(t){return{hover:G0(()=>t.value.length>0)}}const o2=[],IE=[];function $Y(t,e){o2.push(t),IE.push(e),document.body.style.cursor=e}function P4(t){const e=o2.indexOf(t);e!=-1&&(o2.splice(e,1),IE.splice(e,1),document.body.style.cursor=IE[IE.length-1]??"default")}var N3={},eq=Object.create,AC=Object.defineProperty,tq=Object.getOwnPropertyDescriptor,nq=Object.getOwnPropertyNames,rq=Object.getPrototypeOf,iq=Object.prototype.hasOwnProperty,W0=(t,e)=>()=>(t&&(e=t(t=0)),e),Rt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),gC=(t,e)=>{for(var n in e)AC(t,n,{get:e[n],enumerable:!0})},Q4=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of nq(e))!iq.call(t,i)&&i!==n&&AC(t,i,{get:()=>e[i],enumerable:!(r=tq(e,i))||r.enumerable});return t},As=(t,e,n)=>(n=t!=null?eq(rq(t)):{},Q4(e||!t||!t.__esModule?AC(n,"default",{value:t,enumerable:!0}):n,t)),pd=t=>Q4(AC({},"__esModule",{value:!0}),t),k4,sq=W0(()=>{k4=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} `}),R4={};gC(R4,{default:()=>L4});var L4,vB=W0(()=>{sq(),L4={readFileSync:()=>k4}}),oq=Rt((t,e)=>{var n=class{constructor(r={}){if(!(r.maxSize&&r.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof r.maxAge=="number"&&r.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=r.maxSize,this.maxAge=r.maxAge||1/0,this.onEviction=r.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(r){if(typeof this.onEviction=="function")for(let[i,s]of r)this.onEviction(i,s.value)}_deleteIfExpired(r,i){return typeof i.expiry=="number"&&i.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(r,i.value),this.delete(r)):!1}_getOrDeleteIfExpired(r,i){if(this._deleteIfExpired(r,i)===!1)return i.value}_getItemValue(r,i){return i.expiry?this._getOrDeleteIfExpired(r,i):i.value}_peek(r,i){let s=i.get(r);return this._getItemValue(r,s)}_set(r,i){this.cache.set(r,i),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(r,i){this.oldCache.delete(r),this._set(r,i)}*_entriesAscending(){for(let r of this.oldCache){let[i,s]=r;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield r)}for(let r of this.cache){let[i,s]=r;this._deleteIfExpired(i,s)===!1&&(yield r)}}get(r){if(this.cache.has(r)){let i=this.cache.get(r);return this._getItemValue(r,i)}if(this.oldCache.has(r)){let i=this.oldCache.get(r);if(this._deleteIfExpired(r,i)===!1)return this._moveToRecent(r,i),i.value}}set(r,i,{maxAge:s=this.maxAge===1/0?void 0:Date.now()+this.maxAge}={}){this.cache.has(r)?this.cache.set(r,{value:i,maxAge:s}):this._set(r,{value:i,expiry:s})}has(r){return this.cache.has(r)?!this._deleteIfExpired(r,this.cache.get(r)):this.oldCache.has(r)?!this._deleteIfExpired(r,this.oldCache.get(r)):!1}peek(r){if(this.cache.has(r))return this._peek(r,this.cache);if(this.oldCache.has(r))return this._peek(r,this.oldCache)}delete(r){let i=this.cache.delete(r);return i&&this._size--,this.oldCache.delete(r)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(r){if(!(r&&r>0))throw new TypeError("`maxSize` must be a number greater than 0");let i=[...this._entriesAscending()],s=i.length-r;s<0?(this.cache=new Map(i),this.oldCache=new Map,this._size=i.length):(s>0&&this._emitEvictions(i.slice(0,s)),this.oldCache=new Map(i.slice(s)),this.cache=new Map,this._size=0),this.maxSize=r}*keys(){for(let[r]of this)yield r}*values(){for(let[,r]of this)yield r}*[Symbol.iterator](){for(let r of this.cache){let[i,s]=r;this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}for(let r of this.oldCache){let[i,s]=r;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}}*entriesDescending(){let r=[...this.cache];for(let i=r.length-1;i>=0;--i){let s=r[i],[o,a]=s;this._deleteIfExpired(o,a)===!1&&(yield[o,a.value])}r=[...this.oldCache];for(let i=r.length-1;i>=0;--i){let s=r[i],[o,a]=s;this.cache.has(o)||this._deleteIfExpired(o,a)===!1&&(yield[o,a.value])}}*entriesAscending(){for(let[r,i]of this._entriesAscending())yield[r,i.value]}get size(){if(!this._size)return this.oldCache.size;let r=0;for(let i of this.oldCache.keys())this.cache.has(i)||r++;return Math.min(this._size+r,this.maxSize)}};e.exports=n}),N4={};gC(N4,{default:()=>O4});var O4,U4=W0(()=>{O4={yellow:t=>t}}),G4=Rt(()=>{}),CB=Rt((t,e)=>{var n=(U4(),pd(N4)),r=G4(),i=class extends Error{constructor(s,o,a,l,u,c){super(s),this.name="CssSyntaxError",this.reason=s,u&&(this.file=u),l&&(this.source=l),c&&(this.plugin=c),typeof o<"u"&&typeof a<"u"&&(typeof o=="number"?(this.line=o,this.column=a):(this.line=o.line,this.column=o.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let o=this.source;s==null&&(s=n.isColorSupported),r&&s&&(o=r(o));let a=o.split(/\r?\n/),l=Math.max(this.line-3,0),u=Math.min(this.line+2,a.length),c=String(u).length,p,f;if(s){let{bold:A,gray:y,red:x}=n.createColors(!0);p=I=>A(x(I)),f=I=>y(I)}else p=f=A=>A;return a.slice(l,u).map((A,y)=>{let x=l+1+y,I=" "+(" "+x).slice(-c)+" | ";if(x===this.line){let C=f(I.replace(/\d/g," "))+A.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+f(I)+A+` `+C+p("^")}return" "+f(I)+A}).join(` `)}toString(){let s=this.showSourceCode();return s&&(s=` @@ -4102,7 +4102,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var wC=Te,fK=dK;function AK(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var gK=typeof Object.is=="function"?Object.is:AK,mK=fK.useSyncExternalStore,yK=wC.useRef,EK=wC.useEffect,vK=wC.useMemo,CK=wC.useDebugValue;DN.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=yK(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=vK(function(){function l(A){if(!u){if(u=!0,c=A,A=r(A),i!==void 0&&o.hasValue){var y=o.value;if(i(y,A))return p=y}return p=A}if(y=p,gK(c,A))return y;var x=r(A);return i!==void 0&&i(y,x)?y:(c=A,p=x)}var u=!1,c,p,f=n===void 0?null:n;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,n,r,i]);var a=mK(t,s[0],s[1]);return EK(function(){o.hasValue=!0,o.value=a},[a]),CK(a),a};IN.exports=DN;var xK=IN.exports;const IK=NA(xK);var BN={BASE_URL:"/uikit/examples/auth/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:DK}=qc,{useSyncExternalStoreWithSelector:SK}=IK;let H3=!1;const wK=t=>t;function BK(t,e=wK,n){(BN?"production":void 0)!=="production"&&n&&!H3&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),H3=!0);const r=SK(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return DK(r),r}const W3=t=>{(BN?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?rK(t):t,n=(r,i)=>BK(e,r,i);return Object.assign(n,e),n},bK=t=>t?W3(t):W3,TK=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],_K=t=>t&&t.isOrthographicCamera;Te.forwardRef(({children:t,dpr:e,frames:n=1/0,renderPriority:r=0,eventPriority:i=0,...s},o)=>{const a=Te.useMemo(()=>new rs(void 0),[]),l=Te.useRef(null),u=vd();e??(e=u.getState().viewport.dpr),Te.useImperativeHandle(o,()=>l.current,[]);const c=Te.useMemo(()=>Kn(()=>{var f;return(f=a.value)==null?void 0:f.texture}),[a]),p=Te.useMemo(()=>{let f=u.getState();const A=new es(50,1,.1,1e3);A.position.set(0,0,5);const y=new ut;let x={events:{compute:MK.bind(null,l),priority:i},size:{width:1,height:1,left:0,top:0},camera:A,scene:new ud,raycaster:new tC,pointer:y,mouse:y,previousRoot:u};const I=bK((C,S)=>{const B=()=>{const T={};for(const F in f)TK.includes(F)||(T[F]=f[F]);return Object.assign(T,x,{events:{...f.events,...x.events},viewport:Object.assign({},f.viewport,f.viewport.getCurrentViewport(A,new ge,x.size))})},_=()=>C(B());return{...f,set(T){typeof T=="function"&&(T=T(S())),Object.assign(x,T),_()},setPreviousState(T){f=T,_()},get:S,setEvents(T){Object.assign(x.events,T),_()},...B()}});return Object.assign(I,{setState(C){I.getState().set(C)}})},[i,u]);return Te.useEffect(()=>u.subscribe(p.getState().setPreviousState),[u,p]),Te.useEffect(()=>{if(l.current==null)return;const f=a.value=new Va(1,1,{minFilter:$r,magFilter:$r,type:ad}),{size:A}=l.current,y=un(()=>{if(A.value==null)return;const[x,I]=A.value;f.setSize(x*e,I*e),p.setState({size:{width:x,height:I,top:0,left:0},viewport:{...u.getState().viewport,width:x,height:I,aspect:x/I}})});return()=>{y(),f.dispose()}},[a,u,p,e]),we.jsxs(we.Fragment,{children:[FA.createPortal(we.jsx(nC.Provider,{value:p,children:we.jsxs(FK,{renderPriority:r,frames:n,fbo:a,children:[t,we.jsx("group",{onPointerOver:()=>null})]})}),p,null),we.jsx(LB,{src:c,objectFit:"fill",keepAspectRatio:!1,...s,ref:l})]})});function MK({current:t},e,n,r){var o,a,l;if(t==null||r==null)return!1;r.raycaster.camera||(l=(a=r.events).compute)==null||l.call(a,e,r,(o=r.previousRoot)==null?void 0:o.getState());const[i]=r.raycaster.intersectObject(t.interactionPanel);if(!i)return!1;const s=i.uv;if(!s)return!1;n.raycaster.setFromCamera(n.pointer.set(s.x*2-1,s.y*2-1),n.camera)}function FK({frames:t,renderPriority:e,children:n,fbo:r}){const i=vd();Te.useEffect(()=>i.subscribe((c,p)=>{const{size:f,camera:A}=c;f&&(_K(A)?(A.left=f.width/-2,A.right=f.width/2,A.top=f.height/2,A.bottom=f.height/-2):A.aspect=f.width/f.height,(f!==p.size||A!==p.camera)&&(A.updateProjectionMatrix(),A.updateMatrixWorld()))}),[i]);let s=0,o,a,l,u;return rC(c=>{const p=r.peek();p!=null&&(t===1/0||s{const n=Te.useMemo(()=>cn(void 0),[]),r=Te.useMemo(()=>cn(1),[]),i=t.src instanceof HTMLVideoElement?t.src:void 0,s=Te.useMemo(()=>i??document.createElement("video"),[i]),o=Ih(l=>l.invalidate);Te.useEffect(()=>KY(s,o),[s,o]),qY(s,t),Te.useEffect(()=>{const l=()=>r.value=s.videoWidth/s.videoHeight;return l(),s.addEventListener("resize",l),()=>s.removeEventListener("resize",l)},[r,s]),Te.useEffect(()=>{const l=new QR(s);return l.colorSpace=Di,n.value=l,()=>l.dispose()},[n,s]);const a=Te.useRef(null);return Te.useImperativeHandle(e,()=>({...a.current,element:s}),[s]),we.jsx(PK.Provider,{value:s,children:we.jsx(LB,{aspectRatio:r,...t,ref:a,src:n})})});var QK=Object.create,BC=Object.defineProperty,kK=Object.getOwnPropertyDescriptor,RK=Object.getOwnPropertyNames,LK=Object.getPrototypeOf,NK=Object.prototype.hasOwnProperty,OK=(t,e)=>()=>(t&&(e=t(t=0)),e),bC=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),TC=(t,e)=>{for(var n in e)BC(t,n,{get:e[n],enumerable:!0})},bN=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of RK(e))!NK.call(t,i)&&i!==n&&BC(t,i,{get:()=>e[i],enumerable:!(r=kK(e,i))||r.enumerable});return t},X0=(t,e,n)=>(n=t!=null?QK(LK(t)):{},bN(e||!t||!t.__esModule?BC(n,"default",{value:t,enumerable:!0}):n,t)),UK=t=>bN(BC({},"__esModule",{value:!0}),t),GK=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},V3=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},sm=(t,e,n)=>(GK(t,e,"access private method"),n),zK=bC(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(){}e.prototype={diff:function(i,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var l=this;function u(S){return a?(setTimeout(function(){a(void 0,S)},0),!0):S}i=this.castInput(i),s=this.castInput(s),i=this.removeEmpty(this.tokenize(i)),s=this.removeEmpty(this.tokenize(s));var c=s.length,p=i.length,f=1,A=c+p;o.maxEditLength&&(A=Math.min(A,o.maxEditLength));var y=[{newPos:-1,components:[]}],x=this.extractCommon(y[0],s,i,0);if(y[0].newPos+1>=c&&x+1>=p)return u([{value:this.join(s),count:s.length}]);function I(){for(var S=-1*f;S<=f;S+=2){var B=void 0,_=y[S-1],T=y[S+1],F=(T?T.newPos:0)-S;_&&(y[S-1]=void 0);var Q=_&&_.newPos+1=c&&F+1>=p)return u(n(l,B.components,s,i,l.useLongestToken));y[S]=B}f++}if(a)(function S(){setTimeout(function(){if(f>A)return a();I()||S()},0)})();else for(;f<=A;){var C=I();if(C)return C}},pushComponent:function(i,s,o){var a=i[i.length-1];a&&a.added===s&&a.removed===o?i[i.length-1]={count:a.count+1,added:s,removed:o}:i.push({count:1,added:s,removed:o})},extractCommon:function(i,s,o,a){for(var l=s.length,u=o.length,c=i.newPos,p=c-a,f=0;c+1C.length?B:C}),A.value=i.join(x)}else A.value=i.join(o.slice(p,p+A.count));p+=A.count,A.added||(f+=A.count)}}var I=s[c-1];return c>1&&typeof I.value=="string"&&(I.added||I.removed)&&i.equals("",I.value)&&(s[c-2].value+=I.value,s.pop()),s}function r(i){return{newPos:i.newPos,components:i.components.slice(0)}}}),HK=bC(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=i,t.arrayDiff=void 0;var e=n(zK());function n(s){return s&&s.__esModule?s:{default:s}}var r=new e.default;t.arrayDiff=r,r.tokenize=function(s){return s.slice()},r.join=r.removeEmpty=function(s){return s};function i(s,o,a){return r.diff(s,o,a)}}),_C=bC((t,e)=>{var n=new Proxy(String,{get:()=>n});e.exports=n}),TN={};TC(TN,{default:()=>MN,shouldHighlight:()=>_N});var _N,MN,WK=OK(()=>{_N=()=>!1,MN=String}),VK=bC(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=p,t.default=f;var e=(WK(),UK(TN)),n=i(_C(),!0);function r(A){if(typeof WeakMap!="function")return null;var y=new WeakMap,x=new WeakMap;return(r=function(I){return I?x:y})(A)}function i(A,y){if(!y&&A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var x=r(y);if(x&&x.has(A))return x.get(A);var I={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in A)if(S!=="default"&&Object.prototype.hasOwnProperty.call(A,S)){var B=C?Object.getOwnPropertyDescriptor(A,S):null;B&&(B.get||B.set)?Object.defineProperty(I,S,B):I[S]=A[S]}return I.default=A,x&&x.set(A,I),I}var s;function o(A){return A?(s!=null||(s=new n.default.constructor({enabled:!0,level:1})),s):n.default}var a=!1;function l(A){return{gutter:A.grey,marker:A.red.bold,message:A.red.bold}}var u=/\r\n|[\n\r\u2028\u2029]/;function c(A,y,x){let I=Object.assign({column:0,line:-1},A.start),C=Object.assign({},I,A.end),{linesAbove:S=2,linesBelow:B=3}=x||{},_=I.line,T=I.column,F=C.line,Q=C.column,N=Math.max(_-(S+1),0),Y=Math.min(y.length,F+B);_===-1&&(N=0),F===-1&&(Y=y.length);let L=F-_,G={};if(L)for(let ne=0;ne<=L;ne++){let ce=ne+_;if(!T)G[ce]=!0;else if(ne===0){let K=y[ce-1].length;G[ce]=[T,K-T+1]}else if(ne===L)G[ce]=[0,Q];else{let K=y[ce-ne].length;G[ce]=[0,K]}}else T===Q?T?G[_]=[T,0]:G[_]=!0:G[_]=[T,Q-T];return{start:N,end:Y,markerLines:G}}function p(A,y,x={}){let I=(x.highlightCode||x.forceColor)&&(0,e.shouldHighlight)(x),C=o(x.forceColor),S=l(C),B=(G,ne)=>I?G(ne):ne,_=A.split(u),{start:T,end:F,markerLines:Q}=c(y,_,x),N=y.start&&typeof y.start.column=="number",Y=String(F).length,L=(I?(0,e.default)(A,x):A).split(u,F).slice(T,F).map((G,ne)=>{let ce=T+1+ne,K=` ${` ${ce}`.slice(-Y)} |`,me=Q[ce],fe=!Q[ce+1];if(me){let Ne="";if(Array.isArray(me)){let se=G.slice(0,Math.max(me[0]-1,0)).replace(/[^\t]/g," "),ue=me[1]||1;Ne=[` + */var wC=Te,fK=dK;function AK(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var gK=typeof Object.is=="function"?Object.is:AK,mK=fK.useSyncExternalStore,yK=wC.useRef,EK=wC.useEffect,vK=wC.useMemo,CK=wC.useDebugValue;DN.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=yK(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=vK(function(){function l(A){if(!u){if(u=!0,c=A,A=r(A),i!==void 0&&o.hasValue){var y=o.value;if(i(y,A))return p=y}return p=A}if(y=p,gK(c,A))return y;var x=r(A);return i!==void 0&&i(y,x)?y:(c=A,p=x)}var u=!1,c,p,f=n===void 0?null:n;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,n,r,i]);var a=mK(t,s[0],s[1]);return EK(function(){o.hasValue=!0,o.value=a},[a]),CK(a),a};IN.exports=DN;var xK=IN.exports;const IK=NA(xK);var BN={BASE_URL:"/uikit/examples/auth/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:DK}=qc,{useSyncExternalStoreWithSelector:SK}=IK;let H3=!1;const wK=t=>t;function BK(t,e=wK,n){(BN?"production":void 0)!=="production"&&n&&!H3&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),H3=!0);const r=SK(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return DK(r),r}const W3=t=>{(BN?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?rK(t):t,n=(r,i)=>BK(e,r,i);return Object.assign(n,e),n},bK=t=>t?W3(t):W3,TK=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],_K=t=>t&&t.isOrthographicCamera;Te.forwardRef(({children:t,dpr:e,frames:n=1/0,renderPriority:r=0,eventPriority:i=0,...s},o)=>{const a=Te.useMemo(()=>new rs(void 0),[]),l=Te.useRef(null),u=vd();e??(e=u.getState().viewport.dpr),Te.useImperativeHandle(o,()=>l.current,[]);const c=Te.useMemo(()=>Kn(()=>{var f;return(f=a.value)==null?void 0:f.texture}),[a]),p=Te.useMemo(()=>{let f=u.getState();const A=new es(50,1,.1,1e3);A.position.set(0,0,5);const y=new ut;let x={events:{compute:MK.bind(null,l),priority:i},size:{width:1,height:1,left:0,top:0},camera:A,scene:new ud,raycaster:new tC,pointer:y,mouse:y,previousRoot:u};const I=bK((C,S)=>{const B=()=>{const T={};for(const F in f)TK.includes(F)||(T[F]=f[F]);return Object.assign(T,x,{events:{...f.events,...x.events},viewport:Object.assign({},f.viewport,f.viewport.getCurrentViewport(A,new ge,x.size))})},_=()=>C(B());return{...f,set(T){typeof T=="function"&&(T=T(S())),Object.assign(x,T),_()},setPreviousState(T){f=T,_()},get:S,setEvents(T){Object.assign(x.events,T),_()},...B()}});return Object.assign(I,{setState(C){I.getState().set(C)}})},[i,u]);return Te.useEffect(()=>u.subscribe(p.getState().setPreviousState),[u,p]),Te.useEffect(()=>{if(l.current==null)return;const f=a.value=new Va(1,1,{minFilter:$r,magFilter:$r,type:ad}),{size:A}=l.current,y=un(()=>{if(A.value==null)return;const[x,I]=A.value;f.setSize(x*e,I*e),p.setState({size:{width:x,height:I,top:0,left:0},viewport:{...u.getState().viewport,width:x,height:I,aspect:x/I}})});return()=>{y(),f.dispose()}},[a,u,p,e]),we.jsxs(we.Fragment,{children:[FA.createPortal(we.jsx(nC.Provider,{value:p,children:we.jsxs(FK,{renderPriority:r,frames:n,fbo:a,children:[t,we.jsx("group",{onPointerOver:()=>null})]})}),p,null),we.jsx(LB,{src:c,objectFit:"fill",keepAspectRatio:!1,...s,ref:l})]})});function MK({current:t},e,n,r){var o,a,l;if(t==null||r==null)return!1;r.raycaster.camera||(l=(a=r.events).compute)==null||l.call(a,e,r,(o=r.previousRoot)==null?void 0:o.getState());const[i]=r.raycaster.intersectObject(t.interactionPanel);if(!i)return!1;const s=i.uv;if(!s)return!1;n.raycaster.setFromCamera(n.pointer.set(s.x*2-1,s.y*2-1),n.camera)}function FK({frames:t,renderPriority:e,children:n,fbo:r}){const i=vd();Te.useEffect(()=>i.subscribe((c,p)=>{const{size:f,camera:A}=c;f&&(_K(A)?(A.left=f.width/-2,A.right=f.width/2,A.top=f.height/2,A.bottom=f.height/-2):A.aspect=f.width/f.height,(f!==p.size||A!==p.camera)&&(A.updateProjectionMatrix(),A.updateMatrixWorld()))}),[i]);let s=0,o,a,l,u;return rC(c=>{const p=r.peek();p!=null&&(t===1/0||s{const n=Te.useMemo(()=>cn(void 0),[]),r=Te.useMemo(()=>cn(1),[]),i=t.src instanceof HTMLVideoElement?t.src:void 0,s=Te.useMemo(()=>{if(i!=null)return i;const u=document.createElement("video");return u.style.position="absolute",u.style.width="1px",u.style.zIndex="-1000",u.style.top="0px",u.style.left="0px",u},[i]),o=t.src instanceof HTMLVideoElement;Te.useEffect(()=>{if(!o)return document.body.appendChild(s),()=>s.remove()},[s,o]);const a=Ih(u=>u.invalidate);Te.useEffect(()=>KY(s,a),[s,a]),qY(s,t),Te.useEffect(()=>{const u=()=>r.value=s.videoWidth/s.videoHeight;return u(),s.addEventListener("resize",u),()=>s.removeEventListener("resize",u)},[r,s]),Te.useEffect(()=>{const u=new QR(s);return u.colorSpace=Di,n.value=u,()=>u.dispose()},[n,s]);const l=Te.useRef(null);return Te.useImperativeHandle(e,()=>({...l.current,element:s}),[s]),we.jsx(PK.Provider,{value:s,children:we.jsx(LB,{aspectRatio:r,...t,ref:l,src:n})})});var QK=Object.create,BC=Object.defineProperty,kK=Object.getOwnPropertyDescriptor,RK=Object.getOwnPropertyNames,LK=Object.getPrototypeOf,NK=Object.prototype.hasOwnProperty,OK=(t,e)=>()=>(t&&(e=t(t=0)),e),bC=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),TC=(t,e)=>{for(var n in e)BC(t,n,{get:e[n],enumerable:!0})},bN=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of RK(e))!NK.call(t,i)&&i!==n&&BC(t,i,{get:()=>e[i],enumerable:!(r=kK(e,i))||r.enumerable});return t},X0=(t,e,n)=>(n=t!=null?QK(LK(t)):{},bN(e||!t||!t.__esModule?BC(n,"default",{value:t,enumerable:!0}):n,t)),UK=t=>bN(BC({},"__esModule",{value:!0}),t),GK=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},V3=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},sm=(t,e,n)=>(GK(t,e,"access private method"),n),zK=bC(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(){}e.prototype={diff:function(i,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var l=this;function u(S){return a?(setTimeout(function(){a(void 0,S)},0),!0):S}i=this.castInput(i),s=this.castInput(s),i=this.removeEmpty(this.tokenize(i)),s=this.removeEmpty(this.tokenize(s));var c=s.length,p=i.length,f=1,A=c+p;o.maxEditLength&&(A=Math.min(A,o.maxEditLength));var y=[{newPos:-1,components:[]}],x=this.extractCommon(y[0],s,i,0);if(y[0].newPos+1>=c&&x+1>=p)return u([{value:this.join(s),count:s.length}]);function I(){for(var S=-1*f;S<=f;S+=2){var B=void 0,_=y[S-1],T=y[S+1],F=(T?T.newPos:0)-S;_&&(y[S-1]=void 0);var Q=_&&_.newPos+1=c&&F+1>=p)return u(n(l,B.components,s,i,l.useLongestToken));y[S]=B}f++}if(a)(function S(){setTimeout(function(){if(f>A)return a();I()||S()},0)})();else for(;f<=A;){var C=I();if(C)return C}},pushComponent:function(i,s,o){var a=i[i.length-1];a&&a.added===s&&a.removed===o?i[i.length-1]={count:a.count+1,added:s,removed:o}:i.push({count:1,added:s,removed:o})},extractCommon:function(i,s,o,a){for(var l=s.length,u=o.length,c=i.newPos,p=c-a,f=0;c+1C.length?B:C}),A.value=i.join(x)}else A.value=i.join(o.slice(p,p+A.count));p+=A.count,A.added||(f+=A.count)}}var I=s[c-1];return c>1&&typeof I.value=="string"&&(I.added||I.removed)&&i.equals("",I.value)&&(s[c-2].value+=I.value,s.pop()),s}function r(i){return{newPos:i.newPos,components:i.components.slice(0)}}}),HK=bC(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=i,t.arrayDiff=void 0;var e=n(zK());function n(s){return s&&s.__esModule?s:{default:s}}var r=new e.default;t.arrayDiff=r,r.tokenize=function(s){return s.slice()},r.join=r.removeEmpty=function(s){return s};function i(s,o,a){return r.diff(s,o,a)}}),_C=bC((t,e)=>{var n=new Proxy(String,{get:()=>n});e.exports=n}),TN={};TC(TN,{default:()=>MN,shouldHighlight:()=>_N});var _N,MN,WK=OK(()=>{_N=()=>!1,MN=String}),VK=bC(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=p,t.default=f;var e=(WK(),UK(TN)),n=i(_C(),!0);function r(A){if(typeof WeakMap!="function")return null;var y=new WeakMap,x=new WeakMap;return(r=function(I){return I?x:y})(A)}function i(A,y){if(!y&&A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var x=r(y);if(x&&x.has(A))return x.get(A);var I={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in A)if(S!=="default"&&Object.prototype.hasOwnProperty.call(A,S)){var B=C?Object.getOwnPropertyDescriptor(A,S):null;B&&(B.get||B.set)?Object.defineProperty(I,S,B):I[S]=A[S]}return I.default=A,x&&x.set(A,I),I}var s;function o(A){return A?(s!=null||(s=new n.default.constructor({enabled:!0,level:1})),s):n.default}var a=!1;function l(A){return{gutter:A.grey,marker:A.red.bold,message:A.red.bold}}var u=/\r\n|[\n\r\u2028\u2029]/;function c(A,y,x){let I=Object.assign({column:0,line:-1},A.start),C=Object.assign({},I,A.end),{linesAbove:S=2,linesBelow:B=3}=x||{},_=I.line,T=I.column,F=C.line,Q=C.column,N=Math.max(_-(S+1),0),Y=Math.min(y.length,F+B);_===-1&&(N=0),F===-1&&(Y=y.length);let L=F-_,G={};if(L)for(let ne=0;ne<=L;ne++){let ce=ne+_;if(!T)G[ce]=!0;else if(ne===0){let K=y[ce-1].length;G[ce]=[T,K-T+1]}else if(ne===L)G[ce]=[0,Q];else{let K=y[ce-ne].length;G[ce]=[0,K]}}else T===Q?T?G[_]=[T,0]:G[_]=!0:G[_]=[T,Q-T];return{start:N,end:Y,markerLines:G}}function p(A,y,x={}){let I=(x.highlightCode||x.forceColor)&&(0,e.shouldHighlight)(x),C=o(x.forceColor),S=l(C),B=(G,ne)=>I?G(ne):ne,_=A.split(u),{start:T,end:F,markerLines:Q}=c(y,_,x),N=y.start&&typeof y.start.column=="number",Y=String(F).length,L=(I?(0,e.default)(A,x):A).split(u,F).slice(T,F).map((G,ne)=>{let ce=T+1+ne,K=` ${` ${ce}`.slice(-Y)} |`,me=Q[ce],fe=!Q[ce+1];if(me){let Ne="";if(Array.isArray(me)){let se=G.slice(0,Math.max(me[0]-1,0)).replace(/[^\t]/g," "),ue=me[1]||1;Ne=[` `,B(S.gutter,K.replace(/\d/g," "))," ",se,B(S.marker,"^").repeat(ue)].join(""),fe&&x.message&&(Ne+=" "+B(S.message,x.message))}return[B(S.marker,">"),B(S.gutter,K),G.length>0?` ${G}`:"",Ne].join("")}else return` ${B(S.gutter,K)}${G.length>0?` ${G}`:""}`}).join(` `);return x.message&&!N&&(L=`${" ".repeat(Y+1)}${x.message} ${L}`),I?C.reset(L):L}function f(A,y,x,I={}){if(!a){a=!0;let C="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let S=new Error(C);S.name="DeprecationWarning",console.warn(new Error(C))}}return x=Math.max(x,0),p(A,{start:{column:x,line:y}},I)}}),jK={};TC(jK,{__debug:()=>Hee,check:()=>Gee,doc:()=>A8,format:()=>y8,formatWithCursor:()=>m8,getSupportInfo:()=>zee,util:()=>g8,version:()=>mee});var JK=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},MC=JK,XK=X0(HK(),1);function YK(t){let e=t.indexOf("\r");return e>=0?t.charAt(e+1)===` diff --git a/examples/auth/index.html b/examples/auth/index.html index 75424e63..9226a684 100644 --- a/examples/auth/index.html +++ b/examples/auth/index.html @@ -5,7 +5,7 @@ Document - +
diff --git a/examples/card/assets/index-IrmVIiT3.js b/examples/card/assets/index--y7zgZu3.js similarity index 99% rename from examples/card/assets/index-IrmVIiT3.js rename to examples/card/assets/index--y7zgZu3.js index 99ca2970..968e0a1f 100644 --- a/examples/card/assets/index-IrmVIiT3.js +++ b/examples/card/assets/index--y7zgZu3.js @@ -4264,7 +4264,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `||r==null)&&(t.charLength=C-B+1,t.nonWhitespaceCharLength=t.charLength,t.nonWhitespaceWidth=o,t.whitespacesBetween=Q)}};function XU(g,A){const I=g.length;for(;g[A]===" "&&A{for(const t of i)t(C);yk.set(g,C)}).catch(console.error)}async function XAA(g,A){const I=await(await fetch(g)).json();if(I.pages.length!==1)throw new Error("only supporting exactly 1 page");const e=await jAA.loadAsync(new URL(I.pages[0],new URL(g,window.location.href)).href);return e.anisotropy=A.capabilities.getMaxAnisotropy(),e.flipY=!1,new IIA(I,e)}const qF={thin:100,"extra-light":200,light:300,normal:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800,black:900,"extra-black":950},zAA={inter:{light:"https://pmndrs.github.io/uikit/fonts/inter-light.json",normal:"https://pmndrs.github.io/uikit/fonts/inter-normal.json",medium:"https://pmndrs.github.io/uikit/fonts/inter-medium.json","semi-bold":"https://pmndrs.github.io/uikit/fonts/inter-semi-bold.json",bold:"https://pmndrs.github.io/uikit/fonts/inter-bold.json"}};function c1(g,A,I,e){const i=lg(void 0),C=he(g,"fontFamily",void 0),t=he(g,"fontWeight","normal");return e.push(()=>hg(()=>{const B=(A==null?void 0:A.value)??zAA;let o=C.value;o==null&&(o=Object.keys(B)[0]);const Q=$AA(B[o],typeof t.value=="string"?qF[t.value]:t.value);let s=!1;return VAA(Q,I,r=>s?void 0:i.value=r),()=>s=!0})),i}function $AA(g,A){let I=1/0,e;for(const i in g){const C=Math.abs(A-AIA(i));if(C===0)return g[i];C{const Q=A.value;if(Q==null)return;const s=I.value,r={font:Q,fontSize:C.value,letterSpacing:t.value,lineHeight:B.value,text:Array.isArray(s)?s.map(u=>nt(u)).join(""):nt(s),wordBreak:o.value};e.current=r;const{width:E}=wk(r,0),{height:h}=wk(r,void 0);return{minHeight:h,minWidth:E,measure:(u,w)=>wk(r,w===Cw.Undefined?void 0:u)}})}const h1={"keep-all":ZAA,"break-all":_AA,"break-word":WAA},Ry={};function wk(g,A){const I=h1[g.wordBreak],e=g.text;let i=0,C=0,t=0;for(;t({font:g.value}))}class tIA{constructor(A,I,e,i,C){DI(this,"group");DI(this,"baseMatrix");DI(this,"color");DI(this,"opacity");DI(this,"clippingRect");DI(this,"index");DI(this,"hidden",!0);DI(this,"glyphInfo");DI(this,"x",0);DI(this,"y",0);DI(this,"fontSize",0);DI(this,"pixelSize",0);this.group=A,this.baseMatrix=I,this.color=e,this.opacity=i,this.clippingRect=C}getX(A){return this.glyphInfo==null?this.x:this.x+A*this.glyphInfo.width*this.fontSize}show(){this.hidden&&(this.hidden=!1,this.group.requestActivate(this))}hide(){this.hidden||(this.hidden=!0,this.group.delete(this))}activate(A){this.index=A,this.writeUpdatedMatrix(),this.writeUV(),this.updateColor(this.color),this.updateOpacity(this.opacity),this.updateClippingRect(this.clippingRect)}setIndex(A){this.index=A}updateClippingRect(A){if(this.clippingRect=A,this.index==null)return;const I=this.index*16,{instanceClipping:e,root:i}=this.group;this.clippingRect==null?e.set(Pw,I):this.clippingRect.toArray(e.array,I),e.addUpdateRange(I,16),e.needsUpdate=!0,i.requestRender()}updateColor(A){if(this.color=A,this.index==null)return;const{instanceRGBA:I,root:e}=this.group,i=I.itemSize*this.index;Tu(I.array,i,A,void 0),I.addUpdateRange(i,3),I.needsUpdate=!0,e.requestRender()}updateOpacity(A){if(this.opacity=A,this.index==null)return;const{instanceRGBA:I,root:e}=this.group,i=this.index*4+3;I.array[i]=A,I.addUpdateRange(i,1),I.needsUpdate=!0,e.requestRender()}updateGlyphAndTransformation(A,I,e,i,C){this.glyphInfo===A&&this.x===I&&this.y===e&&this.fontSize===i&&this.pixelSize===C||(this.glyphInfo!=A&&(this.glyphInfo=A,this.writeUV()),this.x=I,this.y=e,this.fontSize=i,this.pixelSize=C,this.writeUpdatedMatrix())}updateBaseMatrix(A){this.baseMatrix!==A&&(this.baseMatrix=A,this.writeUpdatedMatrix())}writeUV(){if(this.index==null||this.glyphInfo==null)return;const A=this.index*4,{instanceUV:I,root:e}=this.group;gIA(this.glyphInfo,I.array,A),I.addUpdateRange(A,4),I.needsUpdate=!0,e.requestRender()}writeUpdatedMatrix(){if(this.index==null||this.glyphInfo==null||this.baseMatrix==null)return;const A=this.index*16,{instanceMatrix:I,root:e}=this.group;I.addUpdateRange(A,16),JY.makeTranslation(this.x*this.pixelSize,this.y*this.pixelSize,0).multiply(CIA.makeScale(this.fontSize*this.glyphInfo.width*this.pixelSize,this.fontSize*this.glyphInfo.height*this.pixelSize,1)).premultiply(this.baseMatrix),JY.toArray(I.array,A),I.needsUpdate=!0,e.requestRender()}}const BIA="middle",oIA="left";function u1(g,A,I,e,i,C,t,B,o,Q,s,r,E,h,u,w){let S={current:void 0};const y=eIA(g,o,A,S,w),f=he(g,"verticalAlign",BIA),k=he(g,"textAlign",oIA),N=he(g,"color",0),U=he(g,"opacity",1),R=lg(void 0);return u.push(()=>hg(()=>{var q;return(q=e.value)==null?void 0:q.addLayoutChangeListener(()=>{const H=S.current,{size:{value:Z},paddingInset:{value:L},borderInset:{value:x}}=i;if(H==null||Z==null||L==null||x==null)return;const[QA,yA]=Z,[CA,kA,GA,PA]=L,[BA,wA,uA,pA]=x,xA=QA-kA-PA-wA-pA,MA=yA-CA-GA-BA-uA;R.value=iIA(H,xA,MA)})}),()=>hg(()=>{const q=o.value;if(q==null||B.value==null)return;const H=new nIA(Q.getGroup(B.value.majorIndex,q),k,f,N,U,R,I,C,t,s,r,E);return h!=null&&(h.current=H),()=>H.destroy()})),y}const QIA=[];class nIA{constructor(A,I,e,i,C,t,B,o,Q,s,r,E){DI(this,"group");DI(this,"textAlign");DI(this,"verticalAlign");DI(this,"color");DI(this,"opacity");DI(this,"layoutSignal");DI(this,"matrix");DI(this,"parentClippingRect");DI(this,"selectionRange");DI(this,"selectionBoxes");DI(this,"caretPosition");DI(this,"glyphLines",[]);DI(this,"lastLayout");DI(this,"unsubscribeInitialList",[]);DI(this,"unsubscribeShowList",[]);this.group=A,this.textAlign=I,this.verticalAlign=e,this.color=i,this.opacity=C,this.layoutSignal=t,this.matrix=B,this.parentClippingRect=Q,this.selectionRange=s,this.selectionBoxes=r,this.caretPosition=E,this.unsubscribeInitialList=[hg(()=>{if(!o.value||C.value<.01){this.hide();return}this.show()}),hg(()=>this.updateSelectionBoxes(this.lastLayout,s==null?void 0:s.value,e.peek(),I.peek()))]}getCharIndex(A,I){const e=this.lastLayout;if(e==null)return 0;I-=-my(e,this.verticalAlign.peek());const i=Math.floor(I/-Uy(e.lineHeight,e.fontSize)),C=e.lines;if(i<0||C.length===0)return 0;if(i>=C.length){const s=C[C.length-1];return s.charIndexOffset+s.charLength+1}const t=C[i],B=e.font.getGlyphInfo(" ").xadvance*e.fontSize,o=this.glyphLines[i];let Q=o.length;for(let s=0;s=r.charIndexOffset+r.charLength)continue;const E=this.glyphLines[s][Math.max(e-r.charIndexOffset,0)];return{lineIndex:s,x:this.getGlyphX(E,i?0:1,C)}}const o=A[B-1];if(o.charLength===0)return{lineIndex:B-1,x:qY(I,o.nonWhitespaceWidth,t)-I/2};const Q=this.glyphLines[B-1][o.charLength-1];return{lineIndex:B-1,x:this.getGlyphX(Q,1,C)}}getGlyphX(A,I,e){return typeof A=="number"?A+I*e:A.getX(I)}show(){this.unsubscribeShowList.length>0||(wa(this.glyphLines,A=>A.show()),this.unsubscribeShowList.push(hg(()=>{const A=this.matrix.value;A!=null&&wa(this.glyphLines,I=>I.updateBaseMatrix(A))}),hg(()=>{var I;const A=(I=this.parentClippingRect)==null?void 0:I.value;wa(this.glyphLines,e=>e.updateClippingRect(A))}),hg(()=>{const A=this.color.value;wa(this.glyphLines,I=>I.updateColor(A))}),hg(()=>{const A=this.opacity.value;wa(this.glyphLines,I=>I.updateOpacity(A))}),hg(()=>{var E,h;const A=this.layoutSignal.value;if(A==null)return;const{text:I,font:e,lines:i,letterSpacing:C=0,fontSize:t=16,lineHeight:B=1.2,availableWidth:o}=A;let Q=my(A,this.verticalAlign.value)-A.availableHeight/2;const s=i.length,r=this.group.pixelSize.value;for(let u=0;uf+y){R=yA.id;const GA=U+mY(e,t,yA,R);typeof q[x]=="number"?q[x]=U:q.splice(x,0,GA),U+=N+vu(t,yA,C);continue}let CA=q[x];for(;xu.hide(),s),this.glyphLines.length=s,this.lastLayout=A,this.updateSelectionBoxes(A,(h=this.selectionRange)==null?void 0:h.peek(),this.verticalAlign.value,this.textAlign.value)})))}hide(){const A=this.unsubscribeShowList.length;if(A!==0){for(let I=0;II.hide())}}destroy(){this.hide(),this.glyphLines.length=0;const A=this.unsubscribeInitialList.length;for(let I=0;INQ(s,f,y,g.root.panelGroupManager,u,E.size,void 0,E.borderInset,g.clippingRect,S,SE(),R));const k=c1(s,I,g.root.renderer,Q),N=st(void 0,GC.Text,D1(k),f),U=u1(s,A,u,r,E,S,g.clippingRect,N,k,g.root.gylphGroupManager,void 0,void 0,void 0,void 0,Q,"break-word");return Q.push(()=>hg(()=>{var R;return(R=r.value)==null?void 0:R.setCustomLayouting(U.value)})),Fn(e,i,E.size,Q),Mr(e,i,w,Q),Object.assign(E,{isClipped:w,mergedProperties:s,interactionPanel:fE(f,g.root,g.clippingRect,E.size,Q),handlers:Jn(e,i,C,B,o),initializers:Q})}const rIA=Gi;class Qh extends at{constructor(A){super(A),this.defaultDPI=90,this.defaultUnit="px"}load(A,I,e,i){const C=this,t=new DB(C.manager);t.setPath(C.path),t.setRequestHeader(C.requestHeader),t.setWithCredentials(C.withCredentials),t.load(A,function(B){try{I(C.parse(B))}catch(o){i?i(o):console.error(o),C.manager.itemError(A)}},e,i)}parse(A){const I=this;function e($,tA){if($.nodeType!==1)return;const W=N($);let z=!1,fA=null;switch($.nodeName){case"svg":tA=u($,tA);break;case"style":C($);break;case"g":tA=u($,tA);break;case"path":tA=u($,tA),$.hasAttribute("d")&&(fA=i($));break;case"rect":tA=u($,tA),fA=o($);break;case"polygon":tA=u($,tA),fA=Q($);break;case"polyline":tA=u($,tA),fA=s($);break;case"circle":tA=u($,tA),fA=r($);break;case"ellipse":tA=u($,tA),fA=E($);break;case"line":tA=u($,tA),fA=h($);break;case"defs":z=!0;break;case"use":tA=u($,tA);const VA=($.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),sA=$.viewportElement.getElementById(VA);sA?e(sA,tA):console.warn("SVGLoader: 'use node' references non-existent node id: "+VA);break}fA&&(tA.fill!==void 0&&tA.fill!=="none"&&fA.color.setStyle(tA.fill,rIA),R(fA,pA),QA.push(fA),fA.userData={node:$,style:tA});const vA=$.childNodes;for(let FA=0;FA0?pA.copy(CA[CA.length-1]):pA.identity())}function i($){const tA=new Js,W=new sI,z=new sI,fA=new sI;let vA=!0,FA=!1;const VA=$.getAttribute("d");if(VA===""||VA==="none")return null;const sA=VA.match(/[a-df-z][^a-df-z]*/ig);for(let TA=0,NA=sA.length;TA0&&(W.copy(fA),tA.currentPath.currentPoint.copy(W),vA=!0);break;default:console.warn(XA)}FA=!1}return tA}function C($){if(!(!$.sheet||!$.sheet.cssRules||!$.sheet.cssRules.length))for(let tA=0;tA<$.sheet.cssRules.length;tA++){const W=$.sheet.cssRules[tA];if(W.type!==1)continue;const z=W.selectorText.split(/,/gm).filter(Boolean).map(fA=>fA.trim());for(let fA=0;fAFA!==""));yA[z[fA]]=Object.assign(yA[z[fA]]||{},vA)}}}function t($,tA,W,z,fA,vA,FA,VA){if(tA==0||W==0){$.lineTo(VA.x,VA.y);return}z=z*Math.PI/180,tA=Math.abs(tA),W=Math.abs(W);const sA=(FA.x-VA.x)/2,TA=(FA.y-VA.y)/2,NA=Math.cos(z)*sA+Math.sin(z)*TA,XA=-Math.sin(z)*sA+Math.cos(z)*TA;let zA=tA*tA,EI=W*W;const mA=NA*NA,P=XA*XA,gA=mA/zA+P/EI;if(gA>1){const GI=Math.sqrt(gA);tA=GI*tA,W=GI*W,zA=tA*tA,EI=W*W}const _A=zA*P+EI*mA,SI=(zA*EI-_A)/_A;let dI=Math.sqrt(Math.max(0,SI));fA===vA&&(dI=-dI);const cI=dI*tA*XA/W,VI=-dI*W*NA/tA,HI=Math.cos(z)*cI-Math.sin(z)*VI+(FA.x+VA.x)/2,XI=Math.sin(z)*cI+Math.cos(z)*VI+(FA.y+VA.y)/2,qI=B(1,0,(NA-cI)/tA,(XA-VI)/W),LI=B((NA-cI)/tA,(XA-VI)/W,(-NA-cI)/tA,(-XA-VI)/W)%(Math.PI*2);$.currentPath.absellipse(HI,XI,tA,W,qI,qI+LI,vA===0,z)}function B($,tA,W,z){const fA=$*W+tA*z,vA=Math.sqrt($*$+tA*tA)*Math.sqrt(W*W+z*z);let FA=Math.acos(Math.max(-1,Math.min(1,fA/vA)));return $*z-tA*W<0&&(FA=-FA),FA}function o($){const tA=k($.getAttribute("x")||0),W=k($.getAttribute("y")||0),z=k($.getAttribute("rx")||$.getAttribute("ry")||0),fA=k($.getAttribute("ry")||$.getAttribute("rx")||0),vA=k($.getAttribute("width")),FA=k($.getAttribute("height")),VA=1-.551915024494,sA=new Js;return sA.moveTo(tA+z,W),sA.lineTo(tA+vA-z,W),(z!==0||fA!==0)&&sA.bezierCurveTo(tA+vA-z*VA,W,tA+vA,W+fA*VA,tA+vA,W+fA),sA.lineTo(tA+vA,W+FA-fA),(z!==0||fA!==0)&&sA.bezierCurveTo(tA+vA,W+FA-fA*VA,tA+vA-z*VA,W+FA,tA+vA-z,W+FA),sA.lineTo(tA+z,W+FA),(z!==0||fA!==0)&&sA.bezierCurveTo(tA+z*VA,W+FA,tA,W+FA-fA*VA,tA,W+FA-fA),sA.lineTo(tA,W+fA),(z!==0||fA!==0)&&sA.bezierCurveTo(tA,W+fA*VA,tA+z*VA,W,tA+z,W),sA}function Q($){function tA(vA,FA,VA){const sA=k(FA),TA=k(VA);fA===0?z.moveTo(sA,TA):z.lineTo(sA,TA),fA++}const W=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,z=new Js;let fA=0;return $.getAttribute("points").replace(W,tA),z.currentPath.autoClose=!0,z}function s($){function tA(vA,FA,VA){const sA=k(FA),TA=k(VA);fA===0?z.moveTo(sA,TA):z.lineTo(sA,TA),fA++}const W=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,z=new Js;let fA=0;return $.getAttribute("points").replace(W,tA),z.currentPath.autoClose=!1,z}function r($){const tA=k($.getAttribute("cx")||0),W=k($.getAttribute("cy")||0),z=k($.getAttribute("r")||0),fA=new Cr;fA.absarc(tA,W,z,0,Math.PI*2);const vA=new Js;return vA.subPaths.push(fA),vA}function E($){const tA=k($.getAttribute("cx")||0),W=k($.getAttribute("cy")||0),z=k($.getAttribute("rx")||0),fA=k($.getAttribute("ry")||0),vA=new Cr;vA.absellipse(tA,W,z,fA,0,Math.PI*2);const FA=new Js;return FA.subPaths.push(vA),FA}function h($){const tA=k($.getAttribute("x1")||0),W=k($.getAttribute("y1")||0),z=k($.getAttribute("x2")||0),fA=k($.getAttribute("y2")||0),vA=new Js;return vA.moveTo(tA,W),vA.lineTo(z,fA),vA.currentPath.autoClose=!1,vA}function u($,tA){tA=Object.assign({},tA);let W={};if($.hasAttribute("class")){const FA=$.getAttribute("class").split(/\s/).filter(Boolean).map(VA=>VA.trim());for(let VA=0;VA0&&tA.premultiply(CA[CA.length-1]),pA.copy(tA),CA.push(tA),tA}function U($){const tA=new jg,W=kA;if($.nodeName==="use"&&($.hasAttribute("x")||$.hasAttribute("y"))){const z=k($.getAttribute("x")),fA=k($.getAttribute("y"));tA.translate(z,fA)}if($.hasAttribute("transform")){const z=$.getAttribute("transform").split(")");for(let fA=z.length-1;fA>=0;fA--){const vA=z[fA].trim();if(vA==="")continue;const FA=vA.indexOf("("),VA=vA.length;if(FA>0&&FA=1){const NA=TA[0];let XA=0;TA.length>=2&&(XA=TA[1]),W.translate(NA,XA)}break;case"rotate":if(TA.length>=1){let NA=0,XA=0,zA=0;NA=TA[0]*Math.PI/180,TA.length>=3&&(XA=TA[1],zA=TA[2]),GA.makeTranslation(-XA,-zA),PA.makeRotation(NA),BA.multiplyMatrices(PA,GA),GA.makeTranslation(XA,zA),W.multiplyMatrices(GA,BA)}break;case"scale":if(TA.length>=1){const NA=TA[0];let XA=NA;TA.length>=2&&(XA=TA[1]),W.scale(NA,XA)}break;case"skewX":TA.length===1&&W.set(1,Math.tan(TA[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":TA.length===1&&W.set(1,0,0,Math.tan(TA[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":TA.length===6&&W.set(TA[0],TA[2],TA[4],TA[1],TA[3],TA[5],0,0,1);break}}tA.premultiply(W)}}return tA}function R($,tA){function W(FA){uA.set(FA.x,FA.y,1).applyMatrix3(tA),FA.set(uA.x,uA.y)}function z(FA){const VA=FA.xRadius,sA=FA.yRadius,TA=Math.cos(FA.aRotation),NA=Math.sin(FA.aRotation),XA=new rA(VA*TA,VA*NA,0),zA=new rA(-sA*NA,sA*TA,0),EI=XA.applyMatrix3(tA),mA=zA.applyMatrix3(tA),P=kA.set(EI.x,mA.x,0,EI.y,mA.y,0,0,0,1),gA=GA.copy(P).invert(),dI=PA.copy(gA).transpose().multiply(gA).elements,cI=x(dI[0],dI[1],dI[4]),VI=Math.sqrt(cI.rt1),HI=Math.sqrt(cI.rt2);if(FA.xRadius=1/VI,FA.yRadius=1/HI,FA.aRotation=Math.atan2(cI.sn,cI.cs),!((FA.aEndAngle-FA.aStartAngle)%(2*Math.PI){const{x:Qg,y:ZI}=new rA(Math.cos(Jg),Math.sin(Jg),0).applyMatrix3(GI);return Math.atan2(ZI,Qg)};FA.aStartAngle=Tg(FA.aStartAngle),FA.aEndAngle=Tg(FA.aEndAngle),q(tA)&&(FA.aClockwise=!FA.aClockwise)}}function fA(FA){const VA=Z(tA),sA=L(tA);FA.xRadius*=VA,FA.yRadius*=sA;const TA=VA>Number.EPSILON?Math.atan2(tA.elements[1],tA.elements[0]):Math.atan2(-tA.elements[3],tA.elements[4]);FA.aRotation+=TA,q(tA)&&(FA.aStartAngle*=-1,FA.aEndAngle*=-1,FA.aClockwise=!FA.aClockwise)}const vA=$.subPaths;for(let FA=0,VA=vA.length;FANumber.EPSILON}function Z($){const tA=$.elements;return Math.sqrt(tA[0]*tA[0]+tA[1]*tA[1])}function L($){const tA=$.elements;return Math.sqrt(tA[3]*tA[3]+tA[4]*tA[4])}function x($,tA,W){let z,fA,vA,FA,VA;const sA=$+W,TA=$-W,NA=Math.sqrt(TA*TA+4*tA*tA);return sA>0?(z=.5*(sA+NA),VA=1/z,fA=$*VA*W-tA*VA*tA):sA<0?fA=.5*(sA-NA):(z=.5*NA,fA=-.5*NA),TA>0?vA=TA+NA:vA=TA-NA,Math.abs(vA)>2*Math.abs(tA)?(VA=-2*tA/vA,FA=1/Math.sqrt(1+VA*VA),vA=VA*FA):Math.abs(tA)===0?(vA=1,FA=0):(VA=-.5*vA/tA,vA=1/Math.sqrt(1+VA*VA),FA=VA*vA),TA>0&&(VA=vA,vA=-FA,FA=VA),{rt1:z,rt2:fA,cs:vA,sn:FA}}const QA=[],yA={},CA=[],kA=new jg,GA=new jg,PA=new jg,BA=new jg,wA=new sI,uA=new rA,pA=new jg,xA=new DOMParser().parseFromString(A,"image/svg+xml");return e(xA.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:QA,xml:xA.documentElement}}static createShapes(A){const e={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:e.ORIGIN,t:0};function C(w,S,y,f){const k=w.x,N=S.x,U=y.x,R=f.x,q=w.y,H=S.y,Z=y.y,L=f.y,x=(R-U)*(q-Z)-(L-Z)*(k-U),QA=(N-k)*(q-Z)-(H-q)*(k-U),yA=(L-Z)*(N-k)-(R-U)*(H-q),CA=x/yA,kA=QA/yA;if(yA===0&&x!==0||CA<=0||CA>=1||kA<0||kA>1)return null;if(x===0&&yA===0){for(let GA=0;GA<2;GA++)if(t(GA===0?y:f,w,S),i.loc==e.ORIGIN){const PA=GA===0?y:f;return{x:PA.x,y:PA.y,t:i.t}}else if(i.loc==e.BETWEEN){const PA=+(k+i.t*(N-k)).toPrecision(10),BA=+(q+i.t*(H-q)).toPrecision(10);return{x:PA,y:BA,t:i.t}}return null}else{for(let BA=0;BA<2;BA++)if(t(BA===0?y:f,w,S),i.loc==e.ORIGIN){const wA=BA===0?y:f;return{x:wA.x,y:wA.y,t:i.t}}const GA=+(k+CA*(N-k)).toPrecision(10),PA=+(q+CA*(H-q)).toPrecision(10);return{x:GA,y:PA,t:CA}}}function t(w,S,y){const f=y.x-S.x,k=y.y-S.y,N=w.x-S.x,U=w.y-S.y,R=f*U-N*k;if(w.x===S.x&&w.y===S.y){i.loc=e.ORIGIN,i.t=0;return}if(w.x===y.x&&w.y===y.y){i.loc=e.DESTINATION,i.t=1;return}if(R<-Number.EPSILON){i.loc=e.LEFT;return}if(R>Number.EPSILON){i.loc=e.RIGHT;return}if(f*N<0||k*U<0){i.loc=e.BEHIND;return}if(Math.sqrt(f*f+k*k)L.t<=Z.t+Number.EPSILON&&L.t>=Z.t-Number.EPSILON)===void 0&&(y.push(Z),f.push(new sI(Z.x,Z.y)))}}return f}function o(w,S,y){const f=new sI;S.getCenter(f);const k=[];return y.forEach(N=>{N.boundingBox.containsPoint(f)&&B(w,N.points).forEach(R=>{k.push({identifier:N.identifier,isCW:N.isCW,point:R})})}),k.sort((N,U)=>N.point.x-U.point.x),k}function Q(w,S,y,f,k){(k==null||k==="")&&(k="nonzero");const N=new sI;w.boundingBox.getCenter(N);const U=[new sI(y,N.y),new sI(f,N.y)],R=o(U,w.boundingBox,S);R.sort((QA,yA)=>QA.point.x-yA.point.x);const q=[],H=[];R.forEach(QA=>{QA.identifier===w.identifier?q.push(QA):H.push(QA)});const Z=q[0].point.x,L=[];let x=0;for(;x0&&L[L.length-1]===H[x].identifier?L.pop():L.push(H[x].identifier),x++;if(L.push(w.identifier),k==="evenodd"){const QA=L.length%2===0,yA=L[L.length-2];return{identifier:w.identifier,isHole:QA,for:yA}}else if(k==="nonzero"){let QA=!0,yA=null,CA=null;for(let kA=0;kA{const S=w.getPoints();let y=-999999999,f=999999999,k=-999999999,N=999999999;for(let U=0;Uy&&(y=R.y),R.yk&&(k=R.x),R.x=N&&(s=N-1),{curves:w.curves,points:S,isCW:_o.isClockWise(S),identifier:-1,boundingBox:new Pv(new sI(N,f),new sI(k,y))}});E=E.filter(w=>w.points.length>1);for(let w=0;wQ(w,E,s,r,A.userData?A.userData.style.fillRule:void 0)),u=[];return E.forEach(w=>{if(!h[w.identifier].isHole){const y=new tr;y.curves=w.curves,h.filter(k=>k.isHole&&k.for===w.identifier).forEach(k=>{const N=E[k.identifier],U=new Cr;U.curves=N.curves,y.holes.push(U)}),u.push(y)}}),u}static getStrokeStyle(A,I,e,i,C){return A=A!==void 0?A:1,I=I!==void 0?I:"#000",e=e!==void 0?e:"miter",i=i!==void 0?i:"butt",C=C!==void 0?C:4,{strokeColor:I,strokeWidth:A,strokeLineJoin:e,strokeLineCap:i,strokeMiterLimit:C}}static pointsToStroke(A,I,e,i){const C=[],t=[],B=[];if(Qh.pointsToStrokeWithBuffers(A,I,e,i,C,t,B)===0)return null;const o=new Vg;return o.setAttribute("position",new yg(C,3)),o.setAttribute("normal",new yg(t,3)),o.setAttribute("uv",new yg(B,2)),o}static pointsToStrokeWithBuffers(A,I,e,i,C,t,B,o){const Q=new sI,s=new sI,r=new sI,E=new sI,h=new sI,u=new sI,w=new sI,S=new sI,y=new sI,f=new sI,k=new sI,N=new sI,U=new sI,R=new sI,q=new sI,H=new sI,Z=new sI;e=e!==void 0?e:12,i=i!==void 0?i:.001,o=o!==void 0?o:0,A=TA(A);const L=A.length;if(L<2)return 0;const x=A[0].equals(A[L-1]);let QA,yA=A[0],CA;const kA=I.strokeWidth/2,GA=1/(L-1);let PA=0,BA,wA,uA,pA,xA=!1,MA=0,$=o*3,tA=o*2;W(A[0],A[1],Q).multiplyScalar(kA),S.copy(A[0]).sub(Q),y.copy(A[0]).add(Q),f.copy(S),k.copy(y);for(let NA=1;NANumber.EPSILON){const EI=kA/zA;r.multiplyScalar(-EI),E.subVectors(QA,yA),h.copy(E).setLength(EI).add(r),H.copy(h).negate();const mA=h.length(),P=E.length();E.divideScalar(P),u.subVectors(CA,QA);const gA=u.length();switch(u.divideScalar(gA),E.dot(H)=i&&zA.push(NA[EI]);return zA.push(NA[NA.length-1]),zA}}}function aIA(g,A,I,e,i,C){const t=[],B=lg([]),o=lg([]);Hn(B,t);const Q=lg(void 0),s=qn(A,I,e,{...Yn,...Ln(g.root.size),...xn(B),...mn(o)},A0,QA=>QA.add("aspectRatio",Q)),r=lg(void 0),E=Rn();Ur(r,E,g,s,i,!0,t);const h=Nn(s,E,g.root.pixelSize);Un(g.root,i,h,t);const u=Nr(g.childrenMatrix,h),w=Fr(g.clippingRect,u,E.size,g.root.pixelSize),S=Kn(E,w,s),y=GE(s),f=st(s,GC.Panel,y,g.orderInfo);t.push(QA=>NQ(s,f,y,g.root.panelGroupManager,u,E.size,void 0,E.borderInset,g.clippingRect,S,SE(),QA));const k=st(void 0,GC.Svg,void 0,f),N=Ce(()=>{var QA,yA;return nt((QA=A.value)==null?void 0:QA.src)??nt((yA=I.value)==null?void 0:yA.src)}),U=lg(void 0),R=pp(g.root,g.clippingRect);Wb(U,cIA,tAA,t,N,g.root,R,g.clippingRect,k,Q),jb(s,U,t,g.root);const q=EIA(g.root,E,U,Q,S,t),H=g0();i0(C,H,g.root.pixelSize,t);const Z=e0(H,u,g.root.pixelSize);t0(s,H,E,u,S,g.clippingRect,k,g.root.panelGroupManager,t);const L=fE(k,g.root,g.clippingRect,E.size,t),x=C0(H,g.anyAncestorScrollable,E,i,L,I,g.root,t);return Fn(A,I,E.size,t),Mr(A,I,w,t),Object.assign(E,{scrollPosition:H,isClipped:w,mergedProperties:s,anyAncestorScrollable:jU(E.scrollable,g.anyAncestorScrollable),clippingRect:$S(u,E,g.root.pixelSize,g.clippingRect),childrenMatrix:Z,node:r,orderInfo:k,root:g.root,initializers:t,centerGroup:q,handlers:Jn(A,I,e,B,o,x),interactionPanel:L})}function EIA(g,A,I,e,i,C){const t=new no;return t.matrixAutoUpdate=!1,C.push(()=>hg(()=>{bb(t.position,t.scale,A.size,A.paddingInset,A.borderInset,g.pixelSize.value,e.value??1),t.updateMatrix(),g.requestRender()}),()=>hg(()=>{const B=I.value;if(B!=null)return t.add(B),g.requestRender(),()=>{t.remove(B),g.requestRender()}}),()=>hg(()=>{t.visible=I.value!=null&&i.value,g.requestRender()})),t}const lIA=new Qh,Ky=new bi,Sa=new rA,LY=new Map;async function cIA(g,A,I,e,i,C){if(g==null)return;const t=new no;t.matrixAutoUpdate=!1;let B=LY.get(g);B==null&&LY.set(g,B=await lIA.loadAsync(g)),Ky.makeEmpty();for(const Q of B.paths){const s=Qh.createShapes(Q),r=new rC;r.transparent=!0,r.depthWrite=!1,r.toneMapped=!1,r.clippingPlanes=I;for(const E of s){const h=new Bh(E);h.computeBoundingBox(),Ky.union(h.boundingBox);const u=new Ge(h,r);u.matrixAutoUpdate=!1,u.raycast=cr(u,u.raycast,A.object,e,i),wE(u,A,i),u.userData.color=Q.color,u.scale.y=-1,u.updateMatrix(),t.add(u)}}Ky.getSize(Sa),C.value=Sa.x/Sa.y;const o=1/Sa.y;return t.scale.set(1,1,1).multiplyScalar(o),Ky.getCenter(Sa),Sa.y*=-1,t.position.copy(Sa).negate().multiplyScalar(o),t.updateMatrix(),t}function hIA(g,A,I,e,i,C,t,B){const o=[],Q=lg([]),s=lg([]);Hn(Q,o);const r=qn(i,C,t,{...Yn,...Ln(g.root.size),...xn(Q),...mn(s)},A0,R=>{R.add("aspectRatio",I/e),R.add("width",I),R.add("height",e)}),E=Rn();Ur(void 0,E,g,r,B,!0,o);const h=Nn(r,E,g.root.pixelSize);Un(g.root,B,h,o);const u=Nr(g.childrenMatrix,h),w=Fr(g.clippingRect,u,E.size,g.root.pixelSize),S=Kn(E,w,r),y=GE(r),f=st(r,GC.Panel,y,g.orderInfo);o.push(R=>NQ(r,f,y,g.root.panelGroupManager,u,E.size,void 0,E.borderInset,g.clippingRect,S,SE(),R));const k=st(void 0,GC.Svg,void 0,f),N=pp(g.root,g.clippingRect),U=uIA(r,A,I,e,g,k,E,S,N,o);return Fn(i,C,E.size,o),Mr(i,C,w,o),Object.assign(E,{isClipped:w,mergedProperties:r,initializers:o,iconGroup:U,handlers:Jn(i,C,t,Q,s),interactionPanel:fE(k,g.root,g.clippingRect,E.size,o)})}const DIA=new Qh;function uIA(g,A,I,e,i,C,t,B,o,Q){const s=new no;s.matrixAutoUpdate=!1;const r=DIA.parse(A);for(const h of r.paths){const u=Qh.createShapes(h),w=new rC;w.transparent=!0,w.depthWrite=!1,w.toneMapped=!1,w.clippingPlanes=o;for(const S of u){const y=new Bh(S);y.computeBoundingBox();const f=new Ge(y,w);f.matrixAutoUpdate=!1,f.raycast=cr(f,f.raycast,i.root.object,i.clippingRect,C),wE(f,i.root,C),f.userData.color=h.color,f.scale.y=-1,f.updateMatrix(),s.add(f)}}const E=I/e;return Q.push(()=>hg(()=>{bb(s.position,s.scale,t.size,t.paddingInset,t.borderInset,i.root.pixelSize.value,E),s.position.x-=s.scale.x*E/2,s.position.y+=s.scale.x/2,s.scale.divideScalar(e),s.updateMatrix(),i.root.requestRender()}),()=>hg(()=>{s.visible=B.value,i.root.requestRender()})),jb(g,s,Q,i.root),s}const pIA=["caretBorderRightWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderBottomWidth"];let YY;function dIA(){return YY??(YY=dp({backgroundColor:"caretColor",backgroundOpacity:"caretOpacity",borderBend:"caretBorderBend",borderBottomLeftRadius:"caretBorderBottomLeftRadius",borderBottomRightRadius:"caretBorderBottomRightRadius",borderColor:"caretBorderColor",borderOpacity:"caretBorderOpacity",borderTopLeftRadius:"caretBorderTopLeftRadius",borderTopRightRadius:"caretBorderTopRightRadius"},{backgroundColor:0,backgroundOpacity:1})),YY}function yIA(g,A,I,e,i,C,t,B){const o=st(void 0,GC.Panel,I0,i),Q=lg(void 0);B.push(()=>hg(()=>{const E=I.value;E==null&&(Q.value=void 0),Q.value=E;const h=setInterval(()=>Q.value=Q.peek()==null?E:void 0,500);return()=>clearInterval(h)}));const s=PU(g,pIA),r=he(g,"caretWidth",1.5);B.push(E=>NQ(g,o,void 0,t,A,Ce(()=>{const h=Q.value;return h==null?[0,0]:[r.value,h[2]]}),Ce(()=>{const h=Q.value;return h==null?[0,0]:[h[0]-r.value/2,h[1]]}),s,C,e,dIA(),E))}const wIA=["selectionBorderRightWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderBottomWidth"];let HY;function SIA(){return HY??(HY=dp({backgroundColor:"selectionColor",backgroundOpacity:"selectionOpacity",borderBend:"selectionBorderBend",borderBottomLeftRadius:"selectionBorderBottomLeftRadius",borderBottomRightRadius:"selectionBorderBottomRightRadius",borderColor:"selectionBorderColor",borderOpacity:"selectionBorderOpacity",borderTopLeftRadius:"selectionBorderTopLeftRadius",borderTopRightRadius:"selectionBorderTopRightRadius"},{backgroundColor:11851775,backgroundOpacity:1})),HY}function fIA(g,A,I,e,i,C,t,B){const o=[],Q=st(void 0,GC.Panel,I0,i),s=PU(g,wIA);return B.push(()=>hg(()=>{const r=I.value,E=r.length;for(let u=0;u()=>{const r=o.length;for(let E=0;Eg.value)}}const kIA=new Set;function MIA(g){kIA.add(g)}function FIA(g,A,I,e,i,C){var pA,xA,MA,$,tA,W;const t=lg([]),B=lg([]),o=lg(!1),Q=[];Hn(t,Q);const s=qn(I,e,i,{...Yn,...Ln(g.root.size),...xn(t),...mn(B),...GIA(o)},void 0,z=>{zS(I.value,e.value,i.value,fA=>{z.add("caretOpacity",fA.opacity),z.add("caretColor",fA.color)})}),r=Rn(),E=lg(void 0);Ur(E,r,g,s,C,!1,Q);const h=Nn(s,r,g.root.pixelSize);Un(g.root,C,h,Q);const u=Nr(g.childrenMatrix,h),w=Fr(g.clippingRect,u,r.size,g.root.pixelSize),S=Kn(r,w,s),y=GE(s),f=st(s,GC.Panel,y,g.orderInfo);Q.push(z=>NQ(s,f,y,g.root.panelGroupManager,u,r.size,void 0,r.borderInset,g.clippingRect,S,SE(),z));const k={},N=lg([]),U=lg(void 0),R=lg(void 0);yIA(s,u,U,S,f,g.clippingRect,g.root.panelGroupManager,Q);const q=fIA(s,u,N,S,f,g.clippingRect,g.root.panelGroupManager,Q),H=c1(s,A,g.root.renderer,Q),Z=st(void 0,GC.Text,D1(H),q),L=((pA=I.peek())==null?void 0:pA.defaultValue)??((xA=e.peek())==null?void 0:xA.defaultValue),x=((MA=I.peek())==null?void 0:MA.value)==null&&(($=e.peek())==null?void 0:$.value)==null?lg(L??""):void 0,QA=Ce(()=>{var z,fA;return(x==null?void 0:x.value)??nt((z=I.value)==null?void 0:z.value)??nt((fA=e.value)==null?void 0:fA.value)??""}),yA=tk(I,e,"type","text"),CA=Ce(()=>yA.value==="text"?QA.value:"*".repeat(QA.value.length??0)),kA=((tA=I.peek())==null?void 0:tA.multiline)??((W=e.peek())==null?void 0:W.multiline)??!1,GA=u1(s,CA,u,E,r,S,g.clippingRect,Z,H,g.root.gylphGroupManager,R,N,U,k,Q,kA?"break-word":"keep-all");Q.push(()=>hg(()=>{var z;return(z=E.value)==null?void 0:z.setCustomLayouting(GA.value)})),Fn(I,e,r.size,Q),Mr(I,e,w,Q);const PA=tk(I,e,"disabled",!1),BA=UIA(QA,R,z=>{var fA,vA,FA,VA;x!=null&&(x.value=z),(vA=(fA=I.peek())==null?void 0:fA.onValueChange)==null||vA.call(fA,z),(VA=(FA=e.peek())==null?void 0:FA.onValueChange)==null||VA.call(FA,z)},kA,yA,PA,tk(I,e,"tabIndex",0),Q),wA=(z,fA,vA)=>{const FA=BA.peek();FA!=null&&(o.peek()||FA.focus(),z!=null&&fA!=null&&FA.setSelectionRange(z,fA,vA),R.value=[FA.selectionStart??0,FA.selectionEnd??0])};RIA(BA,o,Q,z=>{var fA,vA,FA,VA;(vA=(fA=e.peek())==null?void 0:fA.onFocusChange)==null||vA.call(fA,z),(VA=(FA=I.peek())==null?void 0:FA.onFocusChange)==null||VA.call(FA,z)});const uA=NIA(r,k,wA,PA);return Object.assign(r,{isClipped:w,mergedProperties:s,valueSignal:QA,focus:()=>wA(),root:g.root,element:BA,node:E,interactionPanel:fE(f,g.root,g.clippingRect,r.size,Q),handlers:Jn(I,e,i,t,B,uA,"text"),initializers:Q})}function NIA(g,A,I,e){return Ce(()=>{if(e.value)return;let i;return{onPointerDown:C=>{var B;if(C.defaultPrevented||C.uv==null||A.current==null)return;MIA(C.nativeEvent),(B=C.stopPropagation)==null||B.call(C);const t=xY(g,C.uv,A.current);i=t,setTimeout(()=>I(t,t))},onPointerUp:C=>{i=void 0},onPointerLeave:C=>{i=void 0},onPointerMove:C=>{var s;if(i==null||C.uv==null||A.current==null)return;(s=C.stopPropagation)==null||s.call(C);const t=xY(g,C.uv,A.current),B=Math.min(i,t),o=Math.max(i,t),Q=iI(B,o,Q))}}})}function UIA(g,A,I,e,i,C,t,B){const o=lg(void 0);return B.push(Q=>{const s=document.createElement(e?"textarea":"input"),r=s.style;r.setProperty("position","absolute"),r.setProperty("left","-1000vw"),r.setProperty("top","0"),r.setProperty("pointerEvents","none"),r.setProperty("opacity","0"),s.addEventListener("input",()=>{I==null||I(s.value),E()});const E=()=>{const{selectionStart:h,selectionEnd:u}=s;if(h==null||u==null){A.value=void 0;return}const w=A.peek();w!=null&&w[0]===h&&w[1]===u||(A.value=[h,u])};return s.addEventListener("keydown",E),s.addEventListener("keyup",E),s.addEventListener("blur",()=>A.value=void 0),document.body.appendChild(s),o.value=s,Q.push(()=>{o.value=void 0,s.remove()},hg(()=>s.value=g.value),hg(()=>s.disabled=C.value),hg(()=>s.tabIndex=t.value),hg(()=>s.setAttribute("type",i.value))),Q}),o}function RIA(g,A,I,e){I.push(()=>hg(()=>{const i=g.value;if(i==null)return;A.value=document.activeElement===i;const C=()=>{const t=document.activeElement===i;t!=A.value&&(A.value=t,e(t))};return i.addEventListener("focus",C),i.addEventListener("blur",C),()=>{i.removeEventListener("focus",C),i.removeEventListener("blur",C)}}))}function xY({size:g,borderInset:A,paddingInset:I},e,i){const C=g.peek(),t=A.peek(),B=I.peek();if(C==null||t==null||B==null)return 0;const[o,Q]=C,[s,,,r]=t,[E,,,h]=B,u=e.x*o-r-h,w=-e.y*Q+s+E;return i.getCharIndex(u,w)}function mIA(g,A,I,e,i,C){const t=lg([]),B=lg([]),o=[];Hn(t,o);const Q=qn(A,I,e,{...Yn,...Ln(g.root.size),...xn(t),...mn(B)}),s=Rn();Ur(void 0,s,g,Q,i,!0,o);const r=Nn(Q,s,g.root.pixelSize);Un(g.root,i,r,o);const E=Nr(g.childrenMatrix,r),h=Fr(g.clippingRect,E,s.size,g.root.pixelSize),u=Kn(s,h,Q),w=st(Q,GC.Custom,void 0,g.orderInfo),S=pp(g.root,g.clippingRect);return o.push(y=>{const f=C.current;if(f==null)return y;if(f.matrixAutoUpdate=!1,f.material instanceof Fi){const k=f.material;k.clippingPlanes=S,k.needsUpdate=!0,k.shadowSide=xB,y.push(()=>hg(()=>{k.depthTest=g.root.depthTest.value,g.root.requestRender()}))}return f.raycast=cr(f,f.raycast,g.root.object,g.clippingRect,w),wE(f,g.root,w),y.push(hg(()=>{f.renderOrder=g.root.renderOrder.value,g.root.requestRender()}),hg(()=>{f.receiveShadow=Q.value.read("receiveShadow",!1),g.root.requestRender()}),hg(()=>{f.castShadow=Q.value.read("castShadow",!1),g.root.requestRender()}),hg(()=>{if(s.size.value==null)return;const[k,N]=s.size.value,U=g.root.pixelSize.value;f.scale.set(k*U,N*U,1),f.updateMatrix(),g.root.requestRender()}),hg(()=>{f.visible=u.value,g.root.requestRender()})),y}),Fn(A,I,s.size,o),Mr(A,I,h,o),Object.assign(s,{isClipped:h,mergedProperties:Q,root:g.root,handlers:Jn(A,I,e,t,B),initializers:o})}function KIA(g,A,I,e,i,C){const t=lg([]),B=lg([]),o=[],Q=Rn();Hn(t,o);const s=lg(new rA(1,1,1)),r=Ce(()=>s.value.x/s.value.y),E=qn(A,I,e,{...Yn,...Ln(g.root.size),...xn(t),...mn(B)},A0,N=>N.add("aspectRatio",r));Ur(void 0,Q,g,E,i,!0,o);const h=Nn(E,Q,g.root.pixelSize);Un(g.root,i,h,o);const u=Nr(g.childrenMatrix,h),w=Fr(g.clippingRect,u,Q.size,g.root.pixelSize),S=Kn(Q,w,E),y=GE(E),f=st(E,GC.Panel,y,g.orderInfo);o.push(N=>NQ(E,f,y,g.root.panelGroupManager,u,Q.size,void 0,Q.borderInset,g.clippingRect,S,SE(),N));const k=st(void 0,GC.Object,void 0,f);return Fn(A,I,Q.size,o),Mr(A,I,w,o),Object.assign(Q,{isClipped:w,mergedProperties:E,remeasureContent:LIA(E,g.root,Q,g.clippingRect,S,k,s,C,o),interactionPanel:fE(f,g.root,g.clippingRect,Q.size,o),handlers:Jn(A,I,e,t,B),initializers:o})}const Sk=new bi,TY=new rA().setScalar(.001),JIA=new rA,qIA="back";function LIA(g,A,I,e,i,C,t,B,o){const Q=pp(A,e),s=he(g,"depthAlign",qIA),r=he(g,"keepAspectRatio",!0),E=new rA,h=new rA,u=(S,y,f,k)=>{S!=null&&(S.visible=y,S.traverse(N=>{N instanceof Ge&&(N.renderOrder=f,N.material instanceof Fi&&(N.material.depthTest=k))}),A.requestRender())},w=()=>{const S=B.current;if(S==null){E.copy(TY),h.set(0,0,0);return}S.traverse(f=>{f instanceof Ge&&(wE(f,A,C),f.material.clippingPlanes=Q,f.material.needsUpdate=!0,f.raycast=cr(f,f.raycast,A.object,e,C))});const y=S.parent;S.parent=null,Sk.setFromObject(S),Sk.getSize(E).max(TY),t.value=E,y!=null&&(S.parent=y),Sk.getCenter(h),A.requestRender()};return o.push(()=>hg(()=>{u(B.current,i.value,A.renderOrder.value,A.depthTest.value),A.requestRender()}),S=>{const y=B.current;return y==null||(w(),S.push(hg(()=>{const{size:{value:f},paddingInset:{value:k},borderInset:{value:N}}=I;if(f==null||k==null||N==null)return;const[U,R]=f,[q,H,Z,L]=k,[x,QA,yA,CA]=N,kA=q+x,GA=H+QA,PA=Z+yA,BA=L+CA,wA=U-BA-GA,uA=R-kA-PA,pA=A.pixelSize.value;y.scale.set(wA*pA,uA*pA,r.value?uA*pA*E.z/E.y:E.z).divide(E),y.position.copy(h).negate(),y.position.z-=y$[s.value]*E.z,y.position.multiply(y.scale),y.position.add(JIA.set((BA-GA)*.5*pA,(PA-kA)*.5*pA,0)),y.updateMatrix(),A.requestRender()}))),S}),()=>{u(B.current,i.peek(),A.renderOrder.peek(),A.depthTest.peek()),w()}}function YIA(g,A,I,e,i,C){if(i instanceof Xi){const t=2*Math.tan(Math.PI*i.fov/360)*e;I.value=t/C,A.value=t,g.value=t*i.aspect}if(i instanceof kn){const t=i.top-i.bottom,B=i.right-i.left;I.value=t/C,A.value=t,g.value=B}}function HIA(g,{src:A,autoplay:I,loop:e,muted:i,playbackRate:C,preservesPitch:t,volume:B}){if(!(A instanceof HTMLElement)){if(I&&(g.remove(),document.body.append(g),g.style.position="absolute",g.style.width="1px",g.style.zIndex="-1000",g.style.top="0px",g.style.left="0px"),g.playsInline=!0,g.volume=B??1,g.preservesPitch=t??!0,g.playbackRate=C??1,g.muted=i??!1,g.loop=e??!1,g.autoplay=I??!1,A==null){g.removeAttribute("src"),g.removeAttribute("srcObject");return}typeof A=="string"?g.src=A:g.srcObject=A}}function xIA(g,A){let I;const e=()=>{A(),I=g.requestVideoFrameCallback(e)};return I=g.requestVideoFrameCallback(e),()=>g.cancelVideoFrameCallback(I)}function Hn(g,A){A.push(()=>()=>p1(g))}function TIA(g,A,I,e,i,C){let t=!1;zS(A,I,e,o=>{"hover"in o&&(t=!0)});const B=(A==null?void 0:A.cursor)??(I==null?void 0:I.cursor)??C;if(!t&&(A==null?void 0:A.onHoverChange)==null&&(I==null?void 0:I.onHoverChange)==null&&B==null){i.value.length=0;return}Va("onPointerOver",g,({pointerId:o})=>{var Q,s;i.value=[o,...i.value],i.value.length===1&&((Q=I==null?void 0:I.onHoverChange)==null||Q.call(I,!0),(s=A==null?void 0:A.onHoverChange)==null||s.call(A,!0)),B!=null&&vIA(i,B)}),Va("onPointerOut",g,({pointerId:o})=>{var Q,s;i.value=i.value.filter(r=>r!=o),i.value.length===0&&((Q=I==null?void 0:I.onHoverChange)==null||Q.call(I,!1),(s=A==null?void 0:A.onHoverChange)==null||s.call(A,!1)),p1(i)})}function xn(g){return{hover:up(()=>g.value.length>0)}}const LF=[],Bw=[];function vIA(g,A){LF.push(g),Bw.push(A),document.body.style.cursor=A}function p1(g){const A=LF.indexOf(g);A!=-1&&(LF.splice(A,1),Bw.splice(A,1),document.body.style.cursor=Bw[Bw.length-1]??"default")}var vY={},bIA=Object.create,B0=Object.defineProperty,OIA=Object.getOwnPropertyDescriptor,PIA=Object.getOwnPropertyNames,_IA=Object.getPrototypeOf,ZIA=Object.prototype.hasOwnProperty,yp=(g,A)=>()=>(g&&(A=g(g=0)),A),bI=(g,A)=>()=>(A||g((A={exports:{}}).exports,A),A.exports),o0=(g,A)=>{for(var I in A)B0(g,I,{get:A[I],enumerable:!0})},d1=(g,A,I,e)=>{if(A&&typeof A=="object"||typeof A=="function")for(let i of PIA(A))!ZIA.call(g,i)&&i!==I&&B0(g,i,{get:()=>A[i],enumerable:!(e=OIA(A,i))||e.enumerable});return g},kC=(g,A,I)=>(I=g!=null?bIA(_IA(g)):{},d1(A||!g||!g.__esModule?B0(I,"default",{value:g,enumerable:!0}):I,g)),BE=g=>d1(B0({},"__esModule",{value:!0}),g),y1,WIA=yp(()=>{y1=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} +`)&&e.push({charLength:0,nonWhitespaceWidth:0,whitespacesBetween:0,charIndexOffset:C.length,nonWhitespaceCharLength:0}),{lines:e,availableHeight:I,availableWidth:A,...g}}const JY=new fg,CIA=new fg;function D1(g){return Ce(()=>({font:g.value}))}class tIA{constructor(A,I,e,i,C){DI(this,"group");DI(this,"baseMatrix");DI(this,"color");DI(this,"opacity");DI(this,"clippingRect");DI(this,"index");DI(this,"hidden",!0);DI(this,"glyphInfo");DI(this,"x",0);DI(this,"y",0);DI(this,"fontSize",0);DI(this,"pixelSize",0);this.group=A,this.baseMatrix=I,this.color=e,this.opacity=i,this.clippingRect=C}getX(A){return this.glyphInfo==null?this.x:this.x+A*this.glyphInfo.width*this.fontSize}show(){this.hidden&&(this.hidden=!1,this.group.requestActivate(this))}hide(){this.hidden||(this.hidden=!0,this.group.delete(this))}activate(A){this.index=A,this.writeUpdatedMatrix(),this.writeUV(),this.updateColor(this.color),this.updateOpacity(this.opacity),this.updateClippingRect(this.clippingRect)}setIndex(A){this.index=A}updateClippingRect(A){if(this.clippingRect=A,this.index==null)return;const I=this.index*16,{instanceClipping:e,root:i}=this.group;this.clippingRect==null?e.set(Pw,I):this.clippingRect.toArray(e.array,I),e.addUpdateRange(I,16),e.needsUpdate=!0,i.requestRender()}updateColor(A){if(this.color=A,this.index==null)return;const{instanceRGBA:I,root:e}=this.group,i=I.itemSize*this.index;Tu(I.array,i,A,void 0),I.addUpdateRange(i,3),I.needsUpdate=!0,e.requestRender()}updateOpacity(A){if(this.opacity=A,this.index==null)return;const{instanceRGBA:I,root:e}=this.group,i=this.index*4+3;I.array[i]=A,I.addUpdateRange(i,1),I.needsUpdate=!0,e.requestRender()}updateGlyphAndTransformation(A,I,e,i,C){this.glyphInfo===A&&this.x===I&&this.y===e&&this.fontSize===i&&this.pixelSize===C||(this.glyphInfo!=A&&(this.glyphInfo=A,this.writeUV()),this.x=I,this.y=e,this.fontSize=i,this.pixelSize=C,this.writeUpdatedMatrix())}updateBaseMatrix(A){this.baseMatrix!==A&&(this.baseMatrix=A,this.writeUpdatedMatrix())}writeUV(){if(this.index==null||this.glyphInfo==null)return;const A=this.index*4,{instanceUV:I,root:e}=this.group;gIA(this.glyphInfo,I.array,A),I.addUpdateRange(A,4),I.needsUpdate=!0,e.requestRender()}writeUpdatedMatrix(){if(this.index==null||this.glyphInfo==null||this.baseMatrix==null)return;const A=this.index*16,{instanceMatrix:I,root:e}=this.group;I.addUpdateRange(A,16),JY.makeTranslation(this.x*this.pixelSize,this.y*this.pixelSize,0).multiply(CIA.makeScale(this.fontSize*this.glyphInfo.width*this.pixelSize,this.fontSize*this.glyphInfo.height*this.pixelSize,1)).premultiply(this.baseMatrix),JY.toArray(I.array,A),I.needsUpdate=!0,e.requestRender()}}const BIA="middle",oIA="left";function u1(g,A,I,e,i,C,t,B,o,Q,s,r,E,h,u,w){let S={current:void 0};const y=eIA(g,o,A,S,w),f=he(g,"verticalAlign",BIA),k=he(g,"textAlign",oIA),N=he(g,"color",0),U=he(g,"opacity",1),R=lg(void 0);return u.push(()=>hg(()=>{var q;return(q=e.value)==null?void 0:q.addLayoutChangeListener(()=>{const H=S.current,{size:{value:Z},paddingInset:{value:L},borderInset:{value:x}}=i;if(H==null||Z==null||L==null||x==null)return;const[QA,yA]=Z,[CA,kA,GA,PA]=L,[BA,wA,uA,pA]=x,xA=QA-kA-PA-wA-pA,MA=yA-CA-GA-BA-uA;R.value=iIA(H,xA,MA)})}),()=>hg(()=>{const q=o.value;if(q==null||B.value==null)return;const H=new nIA(Q.getGroup(B.value.majorIndex,q),k,f,N,U,R,I,C,t,s,r,E);return h!=null&&(h.current=H),()=>H.destroy()})),y}const QIA=[];class nIA{constructor(A,I,e,i,C,t,B,o,Q,s,r,E){DI(this,"group");DI(this,"textAlign");DI(this,"verticalAlign");DI(this,"color");DI(this,"opacity");DI(this,"layoutSignal");DI(this,"matrix");DI(this,"parentClippingRect");DI(this,"selectionRange");DI(this,"selectionBoxes");DI(this,"caretPosition");DI(this,"glyphLines",[]);DI(this,"lastLayout");DI(this,"unsubscribeInitialList",[]);DI(this,"unsubscribeShowList",[]);this.group=A,this.textAlign=I,this.verticalAlign=e,this.color=i,this.opacity=C,this.layoutSignal=t,this.matrix=B,this.parentClippingRect=Q,this.selectionRange=s,this.selectionBoxes=r,this.caretPosition=E,this.unsubscribeInitialList=[hg(()=>{if(!o.value||C.value<.01){this.hide();return}this.show()}),hg(()=>this.updateSelectionBoxes(this.lastLayout,s==null?void 0:s.value,e.peek(),I.peek()))]}getCharIndex(A,I){const e=this.lastLayout;if(e==null)return 0;I-=-my(e,this.verticalAlign.peek());const i=Math.floor(I/-Uy(e.lineHeight,e.fontSize)),C=e.lines;if(i<0||C.length===0)return 0;if(i>=C.length){const s=C[C.length-1];return s.charIndexOffset+s.charLength+1}const t=C[i],B=e.font.getGlyphInfo(" ").xadvance*e.fontSize,o=this.glyphLines[i];let Q=o.length;for(let s=0;s=r.charIndexOffset+r.charLength)continue;const E=this.glyphLines[s][Math.max(e-r.charIndexOffset,0)];return{lineIndex:s,x:this.getGlyphX(E,i?0:1,C)}}const o=A[B-1];if(o.charLength===0)return{lineIndex:B-1,x:qY(I,o.nonWhitespaceWidth,t)-I/2};const Q=this.glyphLines[B-1][o.charLength-1];return{lineIndex:B-1,x:this.getGlyphX(Q,1,C)}}getGlyphX(A,I,e){return typeof A=="number"?A+I*e:A.getX(I)}show(){this.unsubscribeShowList.length>0||(wa(this.glyphLines,A=>A.show()),this.unsubscribeShowList.push(hg(()=>{const A=this.matrix.value;A!=null&&wa(this.glyphLines,I=>I.updateBaseMatrix(A))}),hg(()=>{var I;const A=(I=this.parentClippingRect)==null?void 0:I.value;wa(this.glyphLines,e=>e.updateClippingRect(A))}),hg(()=>{const A=this.color.value;wa(this.glyphLines,I=>I.updateColor(A))}),hg(()=>{const A=this.opacity.value;wa(this.glyphLines,I=>I.updateOpacity(A))}),hg(()=>{var E,h;const A=this.layoutSignal.value;if(A==null)return;const{text:I,font:e,lines:i,letterSpacing:C=0,fontSize:t=16,lineHeight:B=1.2,availableWidth:o}=A;let Q=my(A,this.verticalAlign.value)-A.availableHeight/2;const s=i.length,r=this.group.pixelSize.value;for(let u=0;uf+y){R=yA.id;const GA=U+mY(e,t,yA,R);typeof q[x]=="number"?q[x]=U:q.splice(x,0,GA),U+=N+vu(t,yA,C);continue}let CA=q[x];for(;xu.hide(),s),this.glyphLines.length=s,this.lastLayout=A,this.updateSelectionBoxes(A,(h=this.selectionRange)==null?void 0:h.peek(),this.verticalAlign.value,this.textAlign.value)})))}hide(){const A=this.unsubscribeShowList.length;if(A!==0){for(let I=0;II.hide())}}destroy(){this.hide(),this.glyphLines.length=0;const A=this.unsubscribeInitialList.length;for(let I=0;INQ(s,f,y,g.root.panelGroupManager,u,E.size,void 0,E.borderInset,g.clippingRect,S,SE(),R));const k=c1(s,I,g.root.renderer,Q),N=st(void 0,GC.Text,D1(k),f),U=u1(s,A,u,r,E,S,g.clippingRect,N,k,g.root.gylphGroupManager,void 0,void 0,void 0,void 0,Q,"break-word");return Q.push(()=>hg(()=>{var R;return(R=r.value)==null?void 0:R.setCustomLayouting(U.value)})),Fn(e,i,E.size,Q),Mr(e,i,w,Q),Object.assign(E,{isClipped:w,mergedProperties:s,interactionPanel:fE(f,g.root,g.clippingRect,E.size,Q),handlers:Jn(e,i,C,B,o),initializers:Q})}const rIA=Gi;class Qh extends at{constructor(A){super(A),this.defaultDPI=90,this.defaultUnit="px"}load(A,I,e,i){const C=this,t=new DB(C.manager);t.setPath(C.path),t.setRequestHeader(C.requestHeader),t.setWithCredentials(C.withCredentials),t.load(A,function(B){try{I(C.parse(B))}catch(o){i?i(o):console.error(o),C.manager.itemError(A)}},e,i)}parse(A){const I=this;function e($,tA){if($.nodeType!==1)return;const W=N($);let z=!1,fA=null;switch($.nodeName){case"svg":tA=u($,tA);break;case"style":C($);break;case"g":tA=u($,tA);break;case"path":tA=u($,tA),$.hasAttribute("d")&&(fA=i($));break;case"rect":tA=u($,tA),fA=o($);break;case"polygon":tA=u($,tA),fA=Q($);break;case"polyline":tA=u($,tA),fA=s($);break;case"circle":tA=u($,tA),fA=r($);break;case"ellipse":tA=u($,tA),fA=E($);break;case"line":tA=u($,tA),fA=h($);break;case"defs":z=!0;break;case"use":tA=u($,tA);const VA=($.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),sA=$.viewportElement.getElementById(VA);sA?e(sA,tA):console.warn("SVGLoader: 'use node' references non-existent node id: "+VA);break}fA&&(tA.fill!==void 0&&tA.fill!=="none"&&fA.color.setStyle(tA.fill,rIA),R(fA,pA),QA.push(fA),fA.userData={node:$,style:tA});const vA=$.childNodes;for(let FA=0;FA0?pA.copy(CA[CA.length-1]):pA.identity())}function i($){const tA=new Js,W=new sI,z=new sI,fA=new sI;let vA=!0,FA=!1;const VA=$.getAttribute("d");if(VA===""||VA==="none")return null;const sA=VA.match(/[a-df-z][^a-df-z]*/ig);for(let TA=0,NA=sA.length;TA0&&(W.copy(fA),tA.currentPath.currentPoint.copy(W),vA=!0);break;default:console.warn(XA)}FA=!1}return tA}function C($){if(!(!$.sheet||!$.sheet.cssRules||!$.sheet.cssRules.length))for(let tA=0;tA<$.sheet.cssRules.length;tA++){const W=$.sheet.cssRules[tA];if(W.type!==1)continue;const z=W.selectorText.split(/,/gm).filter(Boolean).map(fA=>fA.trim());for(let fA=0;fAFA!==""));yA[z[fA]]=Object.assign(yA[z[fA]]||{},vA)}}}function t($,tA,W,z,fA,vA,FA,VA){if(tA==0||W==0){$.lineTo(VA.x,VA.y);return}z=z*Math.PI/180,tA=Math.abs(tA),W=Math.abs(W);const sA=(FA.x-VA.x)/2,TA=(FA.y-VA.y)/2,NA=Math.cos(z)*sA+Math.sin(z)*TA,XA=-Math.sin(z)*sA+Math.cos(z)*TA;let zA=tA*tA,EI=W*W;const mA=NA*NA,P=XA*XA,gA=mA/zA+P/EI;if(gA>1){const GI=Math.sqrt(gA);tA=GI*tA,W=GI*W,zA=tA*tA,EI=W*W}const _A=zA*P+EI*mA,SI=(zA*EI-_A)/_A;let dI=Math.sqrt(Math.max(0,SI));fA===vA&&(dI=-dI);const cI=dI*tA*XA/W,VI=-dI*W*NA/tA,HI=Math.cos(z)*cI-Math.sin(z)*VI+(FA.x+VA.x)/2,XI=Math.sin(z)*cI+Math.cos(z)*VI+(FA.y+VA.y)/2,qI=B(1,0,(NA-cI)/tA,(XA-VI)/W),LI=B((NA-cI)/tA,(XA-VI)/W,(-NA-cI)/tA,(-XA-VI)/W)%(Math.PI*2);$.currentPath.absellipse(HI,XI,tA,W,qI,qI+LI,vA===0,z)}function B($,tA,W,z){const fA=$*W+tA*z,vA=Math.sqrt($*$+tA*tA)*Math.sqrt(W*W+z*z);let FA=Math.acos(Math.max(-1,Math.min(1,fA/vA)));return $*z-tA*W<0&&(FA=-FA),FA}function o($){const tA=k($.getAttribute("x")||0),W=k($.getAttribute("y")||0),z=k($.getAttribute("rx")||$.getAttribute("ry")||0),fA=k($.getAttribute("ry")||$.getAttribute("rx")||0),vA=k($.getAttribute("width")),FA=k($.getAttribute("height")),VA=1-.551915024494,sA=new Js;return sA.moveTo(tA+z,W),sA.lineTo(tA+vA-z,W),(z!==0||fA!==0)&&sA.bezierCurveTo(tA+vA-z*VA,W,tA+vA,W+fA*VA,tA+vA,W+fA),sA.lineTo(tA+vA,W+FA-fA),(z!==0||fA!==0)&&sA.bezierCurveTo(tA+vA,W+FA-fA*VA,tA+vA-z*VA,W+FA,tA+vA-z,W+FA),sA.lineTo(tA+z,W+FA),(z!==0||fA!==0)&&sA.bezierCurveTo(tA+z*VA,W+FA,tA,W+FA-fA*VA,tA,W+FA-fA),sA.lineTo(tA,W+fA),(z!==0||fA!==0)&&sA.bezierCurveTo(tA,W+fA*VA,tA+z*VA,W,tA+z,W),sA}function Q($){function tA(vA,FA,VA){const sA=k(FA),TA=k(VA);fA===0?z.moveTo(sA,TA):z.lineTo(sA,TA),fA++}const W=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,z=new Js;let fA=0;return $.getAttribute("points").replace(W,tA),z.currentPath.autoClose=!0,z}function s($){function tA(vA,FA,VA){const sA=k(FA),TA=k(VA);fA===0?z.moveTo(sA,TA):z.lineTo(sA,TA),fA++}const W=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,z=new Js;let fA=0;return $.getAttribute("points").replace(W,tA),z.currentPath.autoClose=!1,z}function r($){const tA=k($.getAttribute("cx")||0),W=k($.getAttribute("cy")||0),z=k($.getAttribute("r")||0),fA=new Cr;fA.absarc(tA,W,z,0,Math.PI*2);const vA=new Js;return vA.subPaths.push(fA),vA}function E($){const tA=k($.getAttribute("cx")||0),W=k($.getAttribute("cy")||0),z=k($.getAttribute("rx")||0),fA=k($.getAttribute("ry")||0),vA=new Cr;vA.absellipse(tA,W,z,fA,0,Math.PI*2);const FA=new Js;return FA.subPaths.push(vA),FA}function h($){const tA=k($.getAttribute("x1")||0),W=k($.getAttribute("y1")||0),z=k($.getAttribute("x2")||0),fA=k($.getAttribute("y2")||0),vA=new Js;return vA.moveTo(tA,W),vA.lineTo(z,fA),vA.currentPath.autoClose=!1,vA}function u($,tA){tA=Object.assign({},tA);let W={};if($.hasAttribute("class")){const FA=$.getAttribute("class").split(/\s/).filter(Boolean).map(VA=>VA.trim());for(let VA=0;VA0&&tA.premultiply(CA[CA.length-1]),pA.copy(tA),CA.push(tA),tA}function U($){const tA=new jg,W=kA;if($.nodeName==="use"&&($.hasAttribute("x")||$.hasAttribute("y"))){const z=k($.getAttribute("x")),fA=k($.getAttribute("y"));tA.translate(z,fA)}if($.hasAttribute("transform")){const z=$.getAttribute("transform").split(")");for(let fA=z.length-1;fA>=0;fA--){const vA=z[fA].trim();if(vA==="")continue;const FA=vA.indexOf("("),VA=vA.length;if(FA>0&&FA=1){const NA=TA[0];let XA=0;TA.length>=2&&(XA=TA[1]),W.translate(NA,XA)}break;case"rotate":if(TA.length>=1){let NA=0,XA=0,zA=0;NA=TA[0]*Math.PI/180,TA.length>=3&&(XA=TA[1],zA=TA[2]),GA.makeTranslation(-XA,-zA),PA.makeRotation(NA),BA.multiplyMatrices(PA,GA),GA.makeTranslation(XA,zA),W.multiplyMatrices(GA,BA)}break;case"scale":if(TA.length>=1){const NA=TA[0];let XA=NA;TA.length>=2&&(XA=TA[1]),W.scale(NA,XA)}break;case"skewX":TA.length===1&&W.set(1,Math.tan(TA[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":TA.length===1&&W.set(1,0,0,Math.tan(TA[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":TA.length===6&&W.set(TA[0],TA[2],TA[4],TA[1],TA[3],TA[5],0,0,1);break}}tA.premultiply(W)}}return tA}function R($,tA){function W(FA){uA.set(FA.x,FA.y,1).applyMatrix3(tA),FA.set(uA.x,uA.y)}function z(FA){const VA=FA.xRadius,sA=FA.yRadius,TA=Math.cos(FA.aRotation),NA=Math.sin(FA.aRotation),XA=new rA(VA*TA,VA*NA,0),zA=new rA(-sA*NA,sA*TA,0),EI=XA.applyMatrix3(tA),mA=zA.applyMatrix3(tA),P=kA.set(EI.x,mA.x,0,EI.y,mA.y,0,0,0,1),gA=GA.copy(P).invert(),dI=PA.copy(gA).transpose().multiply(gA).elements,cI=x(dI[0],dI[1],dI[4]),VI=Math.sqrt(cI.rt1),HI=Math.sqrt(cI.rt2);if(FA.xRadius=1/VI,FA.yRadius=1/HI,FA.aRotation=Math.atan2(cI.sn,cI.cs),!((FA.aEndAngle-FA.aStartAngle)%(2*Math.PI){const{x:Qg,y:ZI}=new rA(Math.cos(Jg),Math.sin(Jg),0).applyMatrix3(GI);return Math.atan2(ZI,Qg)};FA.aStartAngle=Tg(FA.aStartAngle),FA.aEndAngle=Tg(FA.aEndAngle),q(tA)&&(FA.aClockwise=!FA.aClockwise)}}function fA(FA){const VA=Z(tA),sA=L(tA);FA.xRadius*=VA,FA.yRadius*=sA;const TA=VA>Number.EPSILON?Math.atan2(tA.elements[1],tA.elements[0]):Math.atan2(-tA.elements[3],tA.elements[4]);FA.aRotation+=TA,q(tA)&&(FA.aStartAngle*=-1,FA.aEndAngle*=-1,FA.aClockwise=!FA.aClockwise)}const vA=$.subPaths;for(let FA=0,VA=vA.length;FANumber.EPSILON}function Z($){const tA=$.elements;return Math.sqrt(tA[0]*tA[0]+tA[1]*tA[1])}function L($){const tA=$.elements;return Math.sqrt(tA[3]*tA[3]+tA[4]*tA[4])}function x($,tA,W){let z,fA,vA,FA,VA;const sA=$+W,TA=$-W,NA=Math.sqrt(TA*TA+4*tA*tA);return sA>0?(z=.5*(sA+NA),VA=1/z,fA=$*VA*W-tA*VA*tA):sA<0?fA=.5*(sA-NA):(z=.5*NA,fA=-.5*NA),TA>0?vA=TA+NA:vA=TA-NA,Math.abs(vA)>2*Math.abs(tA)?(VA=-2*tA/vA,FA=1/Math.sqrt(1+VA*VA),vA=VA*FA):Math.abs(tA)===0?(vA=1,FA=0):(VA=-.5*vA/tA,vA=1/Math.sqrt(1+VA*VA),FA=VA*vA),TA>0&&(VA=vA,vA=-FA,FA=VA),{rt1:z,rt2:fA,cs:vA,sn:FA}}const QA=[],yA={},CA=[],kA=new jg,GA=new jg,PA=new jg,BA=new jg,wA=new sI,uA=new rA,pA=new jg,xA=new DOMParser().parseFromString(A,"image/svg+xml");return e(xA.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:QA,xml:xA.documentElement}}static createShapes(A){const e={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:e.ORIGIN,t:0};function C(w,S,y,f){const k=w.x,N=S.x,U=y.x,R=f.x,q=w.y,H=S.y,Z=y.y,L=f.y,x=(R-U)*(q-Z)-(L-Z)*(k-U),QA=(N-k)*(q-Z)-(H-q)*(k-U),yA=(L-Z)*(N-k)-(R-U)*(H-q),CA=x/yA,kA=QA/yA;if(yA===0&&x!==0||CA<=0||CA>=1||kA<0||kA>1)return null;if(x===0&&yA===0){for(let GA=0;GA<2;GA++)if(t(GA===0?y:f,w,S),i.loc==e.ORIGIN){const PA=GA===0?y:f;return{x:PA.x,y:PA.y,t:i.t}}else if(i.loc==e.BETWEEN){const PA=+(k+i.t*(N-k)).toPrecision(10),BA=+(q+i.t*(H-q)).toPrecision(10);return{x:PA,y:BA,t:i.t}}return null}else{for(let BA=0;BA<2;BA++)if(t(BA===0?y:f,w,S),i.loc==e.ORIGIN){const wA=BA===0?y:f;return{x:wA.x,y:wA.y,t:i.t}}const GA=+(k+CA*(N-k)).toPrecision(10),PA=+(q+CA*(H-q)).toPrecision(10);return{x:GA,y:PA,t:CA}}}function t(w,S,y){const f=y.x-S.x,k=y.y-S.y,N=w.x-S.x,U=w.y-S.y,R=f*U-N*k;if(w.x===S.x&&w.y===S.y){i.loc=e.ORIGIN,i.t=0;return}if(w.x===y.x&&w.y===y.y){i.loc=e.DESTINATION,i.t=1;return}if(R<-Number.EPSILON){i.loc=e.LEFT;return}if(R>Number.EPSILON){i.loc=e.RIGHT;return}if(f*N<0||k*U<0){i.loc=e.BEHIND;return}if(Math.sqrt(f*f+k*k)L.t<=Z.t+Number.EPSILON&&L.t>=Z.t-Number.EPSILON)===void 0&&(y.push(Z),f.push(new sI(Z.x,Z.y)))}}return f}function o(w,S,y){const f=new sI;S.getCenter(f);const k=[];return y.forEach(N=>{N.boundingBox.containsPoint(f)&&B(w,N.points).forEach(R=>{k.push({identifier:N.identifier,isCW:N.isCW,point:R})})}),k.sort((N,U)=>N.point.x-U.point.x),k}function Q(w,S,y,f,k){(k==null||k==="")&&(k="nonzero");const N=new sI;w.boundingBox.getCenter(N);const U=[new sI(y,N.y),new sI(f,N.y)],R=o(U,w.boundingBox,S);R.sort((QA,yA)=>QA.point.x-yA.point.x);const q=[],H=[];R.forEach(QA=>{QA.identifier===w.identifier?q.push(QA):H.push(QA)});const Z=q[0].point.x,L=[];let x=0;for(;x0&&L[L.length-1]===H[x].identifier?L.pop():L.push(H[x].identifier),x++;if(L.push(w.identifier),k==="evenodd"){const QA=L.length%2===0,yA=L[L.length-2];return{identifier:w.identifier,isHole:QA,for:yA}}else if(k==="nonzero"){let QA=!0,yA=null,CA=null;for(let kA=0;kA{const S=w.getPoints();let y=-999999999,f=999999999,k=-999999999,N=999999999;for(let U=0;Uy&&(y=R.y),R.yk&&(k=R.x),R.x=N&&(s=N-1),{curves:w.curves,points:S,isCW:_o.isClockWise(S),identifier:-1,boundingBox:new Pv(new sI(N,f),new sI(k,y))}});E=E.filter(w=>w.points.length>1);for(let w=0;wQ(w,E,s,r,A.userData?A.userData.style.fillRule:void 0)),u=[];return E.forEach(w=>{if(!h[w.identifier].isHole){const y=new tr;y.curves=w.curves,h.filter(k=>k.isHole&&k.for===w.identifier).forEach(k=>{const N=E[k.identifier],U=new Cr;U.curves=N.curves,y.holes.push(U)}),u.push(y)}}),u}static getStrokeStyle(A,I,e,i,C){return A=A!==void 0?A:1,I=I!==void 0?I:"#000",e=e!==void 0?e:"miter",i=i!==void 0?i:"butt",C=C!==void 0?C:4,{strokeColor:I,strokeWidth:A,strokeLineJoin:e,strokeLineCap:i,strokeMiterLimit:C}}static pointsToStroke(A,I,e,i){const C=[],t=[],B=[];if(Qh.pointsToStrokeWithBuffers(A,I,e,i,C,t,B)===0)return null;const o=new Vg;return o.setAttribute("position",new yg(C,3)),o.setAttribute("normal",new yg(t,3)),o.setAttribute("uv",new yg(B,2)),o}static pointsToStrokeWithBuffers(A,I,e,i,C,t,B,o){const Q=new sI,s=new sI,r=new sI,E=new sI,h=new sI,u=new sI,w=new sI,S=new sI,y=new sI,f=new sI,k=new sI,N=new sI,U=new sI,R=new sI,q=new sI,H=new sI,Z=new sI;e=e!==void 0?e:12,i=i!==void 0?i:.001,o=o!==void 0?o:0,A=TA(A);const L=A.length;if(L<2)return 0;const x=A[0].equals(A[L-1]);let QA,yA=A[0],CA;const kA=I.strokeWidth/2,GA=1/(L-1);let PA=0,BA,wA,uA,pA,xA=!1,MA=0,$=o*3,tA=o*2;W(A[0],A[1],Q).multiplyScalar(kA),S.copy(A[0]).sub(Q),y.copy(A[0]).add(Q),f.copy(S),k.copy(y);for(let NA=1;NANumber.EPSILON){const EI=kA/zA;r.multiplyScalar(-EI),E.subVectors(QA,yA),h.copy(E).setLength(EI).add(r),H.copy(h).negate();const mA=h.length(),P=E.length();E.divideScalar(P),u.subVectors(CA,QA);const gA=u.length();switch(u.divideScalar(gA),E.dot(H)=i&&zA.push(NA[EI]);return zA.push(NA[NA.length-1]),zA}}}function aIA(g,A,I,e,i,C){const t=[],B=lg([]),o=lg([]);Hn(B,t);const Q=lg(void 0),s=qn(A,I,e,{...Yn,...Ln(g.root.size),...xn(B),...mn(o)},A0,QA=>QA.add("aspectRatio",Q)),r=lg(void 0),E=Rn();Ur(r,E,g,s,i,!0,t);const h=Nn(s,E,g.root.pixelSize);Un(g.root,i,h,t);const u=Nr(g.childrenMatrix,h),w=Fr(g.clippingRect,u,E.size,g.root.pixelSize),S=Kn(E,w,s),y=GE(s),f=st(s,GC.Panel,y,g.orderInfo);t.push(QA=>NQ(s,f,y,g.root.panelGroupManager,u,E.size,void 0,E.borderInset,g.clippingRect,S,SE(),QA));const k=st(void 0,GC.Svg,void 0,f),N=Ce(()=>{var QA,yA;return nt((QA=A.value)==null?void 0:QA.src)??nt((yA=I.value)==null?void 0:yA.src)}),U=lg(void 0),R=pp(g.root,g.clippingRect);Wb(U,cIA,tAA,t,N,g.root,R,g.clippingRect,k,Q),jb(s,U,t,g.root);const q=EIA(g.root,E,U,Q,S,t),H=g0();i0(C,H,g.root.pixelSize,t);const Z=e0(H,u,g.root.pixelSize);t0(s,H,E,u,S,g.clippingRect,k,g.root.panelGroupManager,t);const L=fE(k,g.root,g.clippingRect,E.size,t),x=C0(H,g.anyAncestorScrollable,E,i,L,I,g.root,t);return Fn(A,I,E.size,t),Mr(A,I,w,t),Object.assign(E,{scrollPosition:H,isClipped:w,mergedProperties:s,anyAncestorScrollable:jU(E.scrollable,g.anyAncestorScrollable),clippingRect:$S(u,E,g.root.pixelSize,g.clippingRect),childrenMatrix:Z,node:r,orderInfo:k,root:g.root,initializers:t,centerGroup:q,handlers:Jn(A,I,e,B,o,x),interactionPanel:L})}function EIA(g,A,I,e,i,C){const t=new no;return t.matrixAutoUpdate=!1,C.push(()=>hg(()=>{bb(t.position,t.scale,A.size,A.paddingInset,A.borderInset,g.pixelSize.value,e.value??1),t.updateMatrix(),g.requestRender()}),()=>hg(()=>{const B=I.value;if(B!=null)return t.add(B),g.requestRender(),()=>{t.remove(B),g.requestRender()}}),()=>hg(()=>{t.visible=I.value!=null&&i.value,g.requestRender()})),t}const lIA=new Qh,Ky=new bi,Sa=new rA,LY=new Map;async function cIA(g,A,I,e,i,C){if(g==null)return;const t=new no;t.matrixAutoUpdate=!1;let B=LY.get(g);B==null&&LY.set(g,B=await lIA.loadAsync(g)),Ky.makeEmpty();for(const Q of B.paths){const s=Qh.createShapes(Q),r=new rC;r.transparent=!0,r.depthWrite=!1,r.toneMapped=!1,r.clippingPlanes=I;for(const E of s){const h=new Bh(E);h.computeBoundingBox(),Ky.union(h.boundingBox);const u=new Ge(h,r);u.matrixAutoUpdate=!1,u.raycast=cr(u,u.raycast,A.object,e,i),wE(u,A,i),u.userData.color=Q.color,u.scale.y=-1,u.updateMatrix(),t.add(u)}}Ky.getSize(Sa),C.value=Sa.x/Sa.y;const o=1/Sa.y;return t.scale.set(1,1,1).multiplyScalar(o),Ky.getCenter(Sa),Sa.y*=-1,t.position.copy(Sa).negate().multiplyScalar(o),t.updateMatrix(),t}function hIA(g,A,I,e,i,C,t,B){const o=[],Q=lg([]),s=lg([]);Hn(Q,o);const r=qn(i,C,t,{...Yn,...Ln(g.root.size),...xn(Q),...mn(s)},A0,R=>{R.add("aspectRatio",I/e),R.add("width",I),R.add("height",e)}),E=Rn();Ur(void 0,E,g,r,B,!0,o);const h=Nn(r,E,g.root.pixelSize);Un(g.root,B,h,o);const u=Nr(g.childrenMatrix,h),w=Fr(g.clippingRect,u,E.size,g.root.pixelSize),S=Kn(E,w,r),y=GE(r),f=st(r,GC.Panel,y,g.orderInfo);o.push(R=>NQ(r,f,y,g.root.panelGroupManager,u,E.size,void 0,E.borderInset,g.clippingRect,S,SE(),R));const k=st(void 0,GC.Svg,void 0,f),N=pp(g.root,g.clippingRect),U=uIA(r,A,I,e,g,k,E,S,N,o);return Fn(i,C,E.size,o),Mr(i,C,w,o),Object.assign(E,{isClipped:w,mergedProperties:r,initializers:o,iconGroup:U,handlers:Jn(i,C,t,Q,s),interactionPanel:fE(k,g.root,g.clippingRect,E.size,o)})}const DIA=new Qh;function uIA(g,A,I,e,i,C,t,B,o,Q){const s=new no;s.matrixAutoUpdate=!1;const r=DIA.parse(A);for(const h of r.paths){const u=Qh.createShapes(h),w=new rC;w.transparent=!0,w.depthWrite=!1,w.toneMapped=!1,w.clippingPlanes=o;for(const S of u){const y=new Bh(S);y.computeBoundingBox();const f=new Ge(y,w);f.matrixAutoUpdate=!1,f.raycast=cr(f,f.raycast,i.root.object,i.clippingRect,C),wE(f,i.root,C),f.userData.color=h.color,f.scale.y=-1,f.updateMatrix(),s.add(f)}}const E=I/e;return Q.push(()=>hg(()=>{bb(s.position,s.scale,t.size,t.paddingInset,t.borderInset,i.root.pixelSize.value,E),s.position.x-=s.scale.x*E/2,s.position.y+=s.scale.x/2,s.scale.divideScalar(e),s.updateMatrix(),i.root.requestRender()}),()=>hg(()=>{s.visible=B.value,i.root.requestRender()})),jb(g,s,Q,i.root),s}const pIA=["caretBorderRightWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderBottomWidth"];let YY;function dIA(){return YY??(YY=dp({backgroundColor:"caretColor",backgroundOpacity:"caretOpacity",borderBend:"caretBorderBend",borderBottomLeftRadius:"caretBorderBottomLeftRadius",borderBottomRightRadius:"caretBorderBottomRightRadius",borderColor:"caretBorderColor",borderOpacity:"caretBorderOpacity",borderTopLeftRadius:"caretBorderTopLeftRadius",borderTopRightRadius:"caretBorderTopRightRadius"},{backgroundColor:0,backgroundOpacity:1})),YY}function yIA(g,A,I,e,i,C,t,B){const o=st(void 0,GC.Panel,I0,i),Q=lg(void 0);B.push(()=>hg(()=>{const E=I.value;E==null&&(Q.value=void 0),Q.value=E;const h=setInterval(()=>Q.value=Q.peek()==null?E:void 0,500);return()=>clearInterval(h)}));const s=PU(g,pIA),r=he(g,"caretWidth",1.5);B.push(E=>NQ(g,o,void 0,t,A,Ce(()=>{const h=Q.value;return h==null?[0,0]:[r.value,h[2]]}),Ce(()=>{const h=Q.value;return h==null?[0,0]:[h[0]-r.value/2,h[1]]}),s,C,e,dIA(),E))}const wIA=["selectionBorderRightWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderBottomWidth"];let HY;function SIA(){return HY??(HY=dp({backgroundColor:"selectionColor",backgroundOpacity:"selectionOpacity",borderBend:"selectionBorderBend",borderBottomLeftRadius:"selectionBorderBottomLeftRadius",borderBottomRightRadius:"selectionBorderBottomRightRadius",borderColor:"selectionBorderColor",borderOpacity:"selectionBorderOpacity",borderTopLeftRadius:"selectionBorderTopLeftRadius",borderTopRightRadius:"selectionBorderTopRightRadius"},{backgroundColor:11851775,backgroundOpacity:1})),HY}function fIA(g,A,I,e,i,C,t,B){const o=[],Q=st(void 0,GC.Panel,I0,i),s=PU(g,wIA);return B.push(()=>hg(()=>{const r=I.value,E=r.length;for(let u=0;u()=>{const r=o.length;for(let E=0;Eg.value)}}const kIA=new Set;function MIA(g){kIA.add(g)}function FIA(g,A,I,e,i,C){var pA,xA,MA,$,tA,W;const t=lg([]),B=lg([]),o=lg(!1),Q=[];Hn(t,Q);const s=qn(I,e,i,{...Yn,...Ln(g.root.size),...xn(t),...mn(B),...GIA(o)},void 0,z=>{zS(I.value,e.value,i.value,fA=>{z.add("caretOpacity",fA.opacity),z.add("caretColor",fA.color)})}),r=Rn(),E=lg(void 0);Ur(E,r,g,s,C,!1,Q);const h=Nn(s,r,g.root.pixelSize);Un(g.root,C,h,Q);const u=Nr(g.childrenMatrix,h),w=Fr(g.clippingRect,u,r.size,g.root.pixelSize),S=Kn(r,w,s),y=GE(s),f=st(s,GC.Panel,y,g.orderInfo);Q.push(z=>NQ(s,f,y,g.root.panelGroupManager,u,r.size,void 0,r.borderInset,g.clippingRect,S,SE(),z));const k={},N=lg([]),U=lg(void 0),R=lg(void 0);yIA(s,u,U,S,f,g.clippingRect,g.root.panelGroupManager,Q);const q=fIA(s,u,N,S,f,g.clippingRect,g.root.panelGroupManager,Q),H=c1(s,A,g.root.renderer,Q),Z=st(void 0,GC.Text,D1(H),q),L=((pA=I.peek())==null?void 0:pA.defaultValue)??((xA=e.peek())==null?void 0:xA.defaultValue),x=((MA=I.peek())==null?void 0:MA.value)==null&&(($=e.peek())==null?void 0:$.value)==null?lg(L??""):void 0,QA=Ce(()=>{var z,fA;return(x==null?void 0:x.value)??nt((z=I.value)==null?void 0:z.value)??nt((fA=e.value)==null?void 0:fA.value)??""}),yA=tk(I,e,"type","text"),CA=Ce(()=>yA.value==="text"?QA.value:"*".repeat(QA.value.length??0)),kA=((tA=I.peek())==null?void 0:tA.multiline)??((W=e.peek())==null?void 0:W.multiline)??!1,GA=u1(s,CA,u,E,r,S,g.clippingRect,Z,H,g.root.gylphGroupManager,R,N,U,k,Q,kA?"break-word":"keep-all");Q.push(()=>hg(()=>{var z;return(z=E.value)==null?void 0:z.setCustomLayouting(GA.value)})),Fn(I,e,r.size,Q),Mr(I,e,w,Q);const PA=tk(I,e,"disabled",!1),BA=UIA(QA,R,z=>{var fA,vA,FA,VA;x!=null&&(x.value=z),(vA=(fA=I.peek())==null?void 0:fA.onValueChange)==null||vA.call(fA,z),(VA=(FA=e.peek())==null?void 0:FA.onValueChange)==null||VA.call(FA,z)},kA,yA,PA,tk(I,e,"tabIndex",0),Q),wA=(z,fA,vA)=>{const FA=BA.peek();FA!=null&&(o.peek()||FA.focus(),z!=null&&fA!=null&&FA.setSelectionRange(z,fA,vA),R.value=[FA.selectionStart??0,FA.selectionEnd??0])};RIA(BA,o,Q,z=>{var fA,vA,FA,VA;(vA=(fA=e.peek())==null?void 0:fA.onFocusChange)==null||vA.call(fA,z),(VA=(FA=I.peek())==null?void 0:FA.onFocusChange)==null||VA.call(FA,z)});const uA=NIA(r,k,wA,PA);return Object.assign(r,{isClipped:w,mergedProperties:s,valueSignal:QA,focus:()=>wA(),root:g.root,element:BA,node:E,interactionPanel:fE(f,g.root,g.clippingRect,r.size,Q),handlers:Jn(I,e,i,t,B,uA,"text"),initializers:Q})}function NIA(g,A,I,e){return Ce(()=>{if(e.value)return;let i;return{onPointerDown:C=>{var B;if(C.defaultPrevented||C.uv==null||A.current==null)return;MIA(C.nativeEvent),(B=C.stopPropagation)==null||B.call(C);const t=xY(g,C.uv,A.current);i=t,setTimeout(()=>I(t,t))},onPointerUp:C=>{i=void 0},onPointerLeave:C=>{i=void 0},onPointerMove:C=>{var s;if(i==null||C.uv==null||A.current==null)return;(s=C.stopPropagation)==null||s.call(C);const t=xY(g,C.uv,A.current),B=Math.min(i,t),o=Math.max(i,t),Q=iI(B,o,Q))}}})}function UIA(g,A,I,e,i,C,t,B){const o=lg(void 0);return B.push(Q=>{const s=document.createElement(e?"textarea":"input"),r=s.style;r.setProperty("position","absolute"),r.setProperty("left","-1000vw"),r.setProperty("top","0"),r.setProperty("pointerEvents","none"),r.setProperty("opacity","0"),s.addEventListener("input",()=>{I==null||I(s.value),E()});const E=()=>{const{selectionStart:h,selectionEnd:u}=s;if(h==null||u==null){A.value=void 0;return}const w=A.peek();w!=null&&w[0]===h&&w[1]===u||(A.value=[h,u])};return s.addEventListener("keydown",E),s.addEventListener("keyup",E),s.addEventListener("blur",()=>A.value=void 0),document.body.appendChild(s),o.value=s,Q.push(()=>{o.value=void 0,s.remove()},hg(()=>s.value=g.value),hg(()=>s.disabled=C.value),hg(()=>s.tabIndex=t.value),hg(()=>s.setAttribute("type",i.value))),Q}),o}function RIA(g,A,I,e){I.push(()=>hg(()=>{const i=g.value;if(i==null)return;A.value=document.activeElement===i;const C=()=>{const t=document.activeElement===i;t!=A.value&&(A.value=t,e(t))};return i.addEventListener("focus",C),i.addEventListener("blur",C),()=>{i.removeEventListener("focus",C),i.removeEventListener("blur",C)}}))}function xY({size:g,borderInset:A,paddingInset:I},e,i){const C=g.peek(),t=A.peek(),B=I.peek();if(C==null||t==null||B==null)return 0;const[o,Q]=C,[s,,,r]=t,[E,,,h]=B,u=e.x*o-r-h,w=-e.y*Q+s+E;return i.getCharIndex(u,w)}function mIA(g,A,I,e,i,C){const t=lg([]),B=lg([]),o=[];Hn(t,o);const Q=qn(A,I,e,{...Yn,...Ln(g.root.size),...xn(t),...mn(B)}),s=Rn();Ur(void 0,s,g,Q,i,!0,o);const r=Nn(Q,s,g.root.pixelSize);Un(g.root,i,r,o);const E=Nr(g.childrenMatrix,r),h=Fr(g.clippingRect,E,s.size,g.root.pixelSize),u=Kn(s,h,Q),w=st(Q,GC.Custom,void 0,g.orderInfo),S=pp(g.root,g.clippingRect);return o.push(y=>{const f=C.current;if(f==null)return y;if(f.matrixAutoUpdate=!1,f.material instanceof Fi){const k=f.material;k.clippingPlanes=S,k.needsUpdate=!0,k.shadowSide=xB,y.push(()=>hg(()=>{k.depthTest=g.root.depthTest.value,g.root.requestRender()}))}return f.raycast=cr(f,f.raycast,g.root.object,g.clippingRect,w),wE(f,g.root,w),y.push(hg(()=>{f.renderOrder=g.root.renderOrder.value,g.root.requestRender()}),hg(()=>{f.receiveShadow=Q.value.read("receiveShadow",!1),g.root.requestRender()}),hg(()=>{f.castShadow=Q.value.read("castShadow",!1),g.root.requestRender()}),hg(()=>{if(s.size.value==null)return;const[k,N]=s.size.value,U=g.root.pixelSize.value;f.scale.set(k*U,N*U,1),f.updateMatrix(),g.root.requestRender()}),hg(()=>{f.visible=u.value,g.root.requestRender()})),y}),Fn(A,I,s.size,o),Mr(A,I,h,o),Object.assign(s,{isClipped:h,mergedProperties:Q,root:g.root,handlers:Jn(A,I,e,t,B),initializers:o})}function KIA(g,A,I,e,i,C){const t=lg([]),B=lg([]),o=[],Q=Rn();Hn(t,o);const s=lg(new rA(1,1,1)),r=Ce(()=>s.value.x/s.value.y),E=qn(A,I,e,{...Yn,...Ln(g.root.size),...xn(t),...mn(B)},A0,N=>N.add("aspectRatio",r));Ur(void 0,Q,g,E,i,!0,o);const h=Nn(E,Q,g.root.pixelSize);Un(g.root,i,h,o);const u=Nr(g.childrenMatrix,h),w=Fr(g.clippingRect,u,Q.size,g.root.pixelSize),S=Kn(Q,w,E),y=GE(E),f=st(E,GC.Panel,y,g.orderInfo);o.push(N=>NQ(E,f,y,g.root.panelGroupManager,u,Q.size,void 0,Q.borderInset,g.clippingRect,S,SE(),N));const k=st(void 0,GC.Object,void 0,f);return Fn(A,I,Q.size,o),Mr(A,I,w,o),Object.assign(Q,{isClipped:w,mergedProperties:E,remeasureContent:LIA(E,g.root,Q,g.clippingRect,S,k,s,C,o),interactionPanel:fE(f,g.root,g.clippingRect,Q.size,o),handlers:Jn(A,I,e,t,B),initializers:o})}const Sk=new bi,TY=new rA().setScalar(.001),JIA=new rA,qIA="back";function LIA(g,A,I,e,i,C,t,B,o){const Q=pp(A,e),s=he(g,"depthAlign",qIA),r=he(g,"keepAspectRatio",!0),E=new rA,h=new rA,u=(S,y,f,k)=>{S!=null&&(S.visible=y,S.traverse(N=>{N instanceof Ge&&(N.renderOrder=f,N.material instanceof Fi&&(N.material.depthTest=k))}),A.requestRender())},w=()=>{const S=B.current;if(S==null){E.copy(TY),h.set(0,0,0);return}S.traverse(f=>{f instanceof Ge&&(wE(f,A,C),f.material.clippingPlanes=Q,f.material.needsUpdate=!0,f.raycast=cr(f,f.raycast,A.object,e,C))});const y=S.parent;S.parent=null,Sk.setFromObject(S),Sk.getSize(E).max(TY),t.value=E,y!=null&&(S.parent=y),Sk.getCenter(h),A.requestRender()};return o.push(()=>hg(()=>{u(B.current,i.value,A.renderOrder.value,A.depthTest.value),A.requestRender()}),S=>{const y=B.current;return y==null||(w(),S.push(hg(()=>{const{size:{value:f},paddingInset:{value:k},borderInset:{value:N}}=I;if(f==null||k==null||N==null)return;const[U,R]=f,[q,H,Z,L]=k,[x,QA,yA,CA]=N,kA=q+x,GA=H+QA,PA=Z+yA,BA=L+CA,wA=U-BA-GA,uA=R-kA-PA,pA=A.pixelSize.value;y.scale.set(wA*pA,uA*pA,r.value?uA*pA*E.z/E.y:E.z).divide(E),y.position.copy(h).negate(),y.position.z-=y$[s.value]*E.z,y.position.multiply(y.scale),y.position.add(JIA.set((BA-GA)*.5*pA,(PA-kA)*.5*pA,0)),y.updateMatrix(),A.requestRender()}))),S}),()=>{u(B.current,i.peek(),A.renderOrder.peek(),A.depthTest.peek()),w()}}function YIA(g,A,I,e,i,C){if(i instanceof Xi){const t=2*Math.tan(Math.PI*i.fov/360)*e;I.value=t/C,A.value=t,g.value=t*i.aspect}if(i instanceof kn){const t=i.top-i.bottom,B=i.right-i.left;I.value=t/C,A.value=t,g.value=B}}function HIA(g,{src:A,autoplay:I,loop:e,muted:i,playbackRate:C,preservesPitch:t,volume:B}){if(!(A instanceof HTMLElement)){if(g.playsInline=!0,g.volume=B??1,g.preservesPitch=t??!0,g.playbackRate=C??1,g.muted=i??!1,g.loop=e??!1,g.autoplay=I??!1,A==null){g.removeAttribute("src"),g.removeAttribute("srcObject");return}typeof A=="string"?g.src=A:g.srcObject=A}}function xIA(g,A){let I;const e=()=>{A(),I=g.requestVideoFrameCallback(e)};return I=g.requestVideoFrameCallback(e),()=>g.cancelVideoFrameCallback(I)}function Hn(g,A){A.push(()=>()=>p1(g))}function TIA(g,A,I,e,i,C){let t=!1;zS(A,I,e,o=>{"hover"in o&&(t=!0)});const B=(A==null?void 0:A.cursor)??(I==null?void 0:I.cursor)??C;if(!t&&(A==null?void 0:A.onHoverChange)==null&&(I==null?void 0:I.onHoverChange)==null&&B==null){i.value.length=0;return}Va("onPointerOver",g,({pointerId:o})=>{var Q,s;i.value=[o,...i.value],i.value.length===1&&((Q=I==null?void 0:I.onHoverChange)==null||Q.call(I,!0),(s=A==null?void 0:A.onHoverChange)==null||s.call(A,!0)),B!=null&&vIA(i,B)}),Va("onPointerOut",g,({pointerId:o})=>{var Q,s;i.value=i.value.filter(r=>r!=o),i.value.length===0&&((Q=I==null?void 0:I.onHoverChange)==null||Q.call(I,!1),(s=A==null?void 0:A.onHoverChange)==null||s.call(A,!1)),p1(i)})}function xn(g){return{hover:up(()=>g.value.length>0)}}const LF=[],Bw=[];function vIA(g,A){LF.push(g),Bw.push(A),document.body.style.cursor=A}function p1(g){const A=LF.indexOf(g);A!=-1&&(LF.splice(A,1),Bw.splice(A,1),document.body.style.cursor=Bw[Bw.length-1]??"default")}var vY={},bIA=Object.create,B0=Object.defineProperty,OIA=Object.getOwnPropertyDescriptor,PIA=Object.getOwnPropertyNames,_IA=Object.getPrototypeOf,ZIA=Object.prototype.hasOwnProperty,yp=(g,A)=>()=>(g&&(A=g(g=0)),A),bI=(g,A)=>()=>(A||g((A={exports:{}}).exports,A),A.exports),o0=(g,A)=>{for(var I in A)B0(g,I,{get:A[I],enumerable:!0})},d1=(g,A,I,e)=>{if(A&&typeof A=="object"||typeof A=="function")for(let i of PIA(A))!ZIA.call(g,i)&&i!==I&&B0(g,i,{get:()=>A[i],enumerable:!(e=OIA(A,i))||e.enumerable});return g},kC=(g,A,I)=>(I=g!=null?bIA(_IA(g)):{},d1(A||!g||!g.__esModule?B0(I,"default",{value:g,enumerable:!0}):I,g)),BE=g=>d1(B0({},"__esModule",{value:!0}),g),y1,WIA=yp(()=>{y1=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} `}),w1={};o0(w1,{default:()=>S1});var S1,zU=yp(()=>{WIA(),S1={readFileSync:()=>y1}}),jIA=bI((g,A)=>{var I=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||1/0,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if(typeof this.onEviction=="function")for(let[i,C]of e)this.onEviction(i,C.value)}_deleteIfExpired(e,i){return typeof i.expiry=="number"&&i.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(e,i.value),this.delete(e)):!1}_getOrDeleteIfExpired(e,i){if(this._deleteIfExpired(e,i)===!1)return i.value}_getItemValue(e,i){return i.expiry?this._getOrDeleteIfExpired(e,i):i.value}_peek(e,i){let C=i.get(e);return this._getItemValue(e,C)}_set(e,i){this.cache.set(e,i),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,i){this.oldCache.delete(e),this._set(e,i)}*_entriesAscending(){for(let e of this.oldCache){let[i,C]=e;this.cache.has(i)||this._deleteIfExpired(i,C)===!1&&(yield e)}for(let e of this.cache){let[i,C]=e;this._deleteIfExpired(i,C)===!1&&(yield e)}}get(e){if(this.cache.has(e)){let i=this.cache.get(e);return this._getItemValue(e,i)}if(this.oldCache.has(e)){let i=this.oldCache.get(e);if(this._deleteIfExpired(e,i)===!1)return this._moveToRecent(e,i),i.value}}set(e,i,{maxAge:C=this.maxAge===1/0?void 0:Date.now()+this.maxAge}={}){this.cache.has(e)?this.cache.set(e,{value:i,maxAge:C}):this._set(e,{value:i,expiry:C})}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):this.oldCache.has(e)?!this._deleteIfExpired(e,this.oldCache.get(e)):!1}peek(e){if(this.cache.has(e))return this._peek(e,this.cache);if(this.oldCache.has(e))return this._peek(e,this.oldCache)}delete(e){let i=this.cache.delete(e);return i&&this._size--,this.oldCache.delete(e)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");let i=[...this._entriesAscending()],C=i.length-e;C<0?(this.cache=new Map(i),this.oldCache=new Map,this._size=i.length):(C>0&&this._emitEvictions(i.slice(0,C)),this.oldCache=new Map(i.slice(C)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache){let[i,C]=e;this._deleteIfExpired(i,C)===!1&&(yield[i,C.value])}for(let e of this.oldCache){let[i,C]=e;this.cache.has(i)||this._deleteIfExpired(i,C)===!1&&(yield[i,C.value])}}*entriesDescending(){let e=[...this.cache];for(let i=e.length-1;i>=0;--i){let C=e[i],[t,B]=C;this._deleteIfExpired(t,B)===!1&&(yield[t,B.value])}e=[...this.oldCache];for(let i=e.length-1;i>=0;--i){let C=e[i],[t,B]=C;this.cache.has(t)||this._deleteIfExpired(t,B)===!1&&(yield[t,B.value])}}*entriesAscending(){for(let[e,i]of this._entriesAscending())yield[e,i.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(let i of this.oldCache.keys())this.cache.has(i)||e++;return Math.min(this._size+e,this.maxSize)}};A.exports=I}),f1={};o0(f1,{default:()=>G1});var G1,k1=yp(()=>{G1={yellow:g=>g}}),M1=bI(()=>{}),$U=bI((g,A)=>{var I=(k1(),BE(f1)),e=M1(),i=class extends Error{constructor(C,t,B,o,Q,s){super(C),this.name="CssSyntaxError",this.reason=C,Q&&(this.file=Q),o&&(this.source=o),s&&(this.plugin=s),typeof t<"u"&&typeof B<"u"&&(typeof t=="number"?(this.line=t,this.column=B):(this.line=t.line,this.column=t.column,this.endLine=B.line,this.endColumn=B.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(C){if(!this.source)return"";let t=this.source;C==null&&(C=I.isColorSupported),e&&C&&(t=e(t));let B=t.split(/\r?\n/),o=Math.max(this.line-3,0),Q=Math.min(this.line+2,B.length),s=String(Q).length,r,E;if(C){let{bold:h,gray:u,red:w}=I.createColors(!0);r=S=>h(w(S)),E=S=>u(S)}else r=E=h=>h;return B.slice(o,Q).map((h,u)=>{let w=o+1+u,S=" "+(" "+w).slice(-s)+" | ";if(w===this.line){let y=E(S.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+E(S)+h+` `+y+r("^")}return" "+E(S)+h}).join(` `)}toString(){let C=this.showSourceCode();return C&&(C=` @@ -4308,7 +4308,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var u0=cA,geA=IeA;function eeA(g,A){return g===A&&(g!==0||1/g===1/A)||g!==g&&A!==A}var ieA=typeof Object.is=="function"?Object.is:eeA,CeA=geA.useSyncExternalStore,teA=u0.useRef,BeA=u0.useEffect,oeA=u0.useMemo,QeA=u0.useDebugValue;rO.useSyncExternalStoreWithSelector=function(g,A,I,e,i){var C=teA(null);if(C.current===null){var t={hasValue:!1,value:null};C.current=t}else t=C.current;C=oeA(function(){function o(h){if(!Q){if(Q=!0,s=h,h=e(h),i!==void 0&&t.hasValue){var u=t.value;if(i(u,h))return r=u}return r=h}if(u=r,ieA(s,h))return u;var w=e(h);return i!==void 0&&i(u,w)?u:(s=h,r=w)}var Q=!1,s,r,E=I===void 0?null:I;return[function(){return o(A())},E===null?void 0:function(){return o(E())}]},[A,I,e,i]);var B=CeA(g,C[0],C[1]);return BeA(function(){t.hasValue=!0,t.value=B},[B]),QeA(B),B};sO.exports=rO;var neA=sO.exports;const seA=Vu(neA);var lO={BASE_URL:"/uikit/examples/card/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:reA}=Ie,{useSyncExternalStoreWithSelector:aeA}=seA;let ZY=!1;const EeA=g=>g;function leA(g,A=EeA,I){(lO?"production":void 0)!=="production"&&I&&!ZY&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),ZY=!0);const e=aeA(g.subscribe,g.getState,g.getServerState||g.getInitialState,A,I);return reA(e),e}const WY=g=>{(lO?"production":void 0)!=="production"&&typeof g!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const A=typeof g=="function"?PgA(g):g,I=(e,i)=>leA(A,e,i);return Object.assign(I,A),I},ceA=g=>g?WY(g):WY,heA=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],DeA=g=>g&&g.isOrthographicCamera;cA.forwardRef(({children:g,dpr:A,frames:I=1/0,renderPriority:e=0,eventPriority:i=0,...C},t)=>{const B=cA.useMemo(()=>new aC(void 0),[]),o=cA.useRef(null),Q=dE();A??(A=Q.getState().viewport.dpr),cA.useImperativeHandle(t,()=>o.current,[]);const s=cA.useMemo(()=>Ce(()=>{var E;return(E=B.value)==null?void 0:E.texture}),[B]),r=cA.useMemo(()=>{let E=Q.getState();const h=new Xi(50,1,.1,1e3);h.position.set(0,0,5);const u=new sI;let w={events:{compute:ueA.bind(null,o),priority:i},size:{width:1,height:1,left:0,top:0},camera:h,scene:new CE,raycaster:new WS,pointer:u,mouse:u,previousRoot:Q};const S=ceA((y,f)=>{const k=()=>{const U={};for(const R in E)heA.includes(R)||(U[R]=E[R]);return Object.assign(U,w,{events:{...E.events,...w.events},viewport:Object.assign({},E.viewport,E.viewport.getCurrentViewport(h,new rA,w.size))})},N=()=>y(k());return{...E,set(U){typeof U=="function"&&(U=U(f())),Object.assign(w,U),N()},setPreviousState(U){E=U,N()},get:f,setEvents(U){Object.assign(w.events,U),N()},...k()}});return Object.assign(S,{setState(y){S.getState().set(y)}})},[i,Q]);return cA.useEffect(()=>Q.subscribe(r.getState().setPreviousState),[Q,r]),cA.useEffect(()=>{if(o.current==null)return;const E=B.value=new nC(1,1,{minFilter:qe,magFilter:qe,type:Bt}),{size:h}=o.current,u=hg(()=>{if(h.value==null)return;const[w,S]=h.value;E.setSize(w*A,S*A),r.setState({size:{width:w,height:S,top:0,left:0},viewport:{...Q.getState().viewport,width:w,height:S,aspect:w/S}})});return()=>{u(),E.dispose()}},[B,Q,r,A]),uI.jsxs(uI.Fragment,{children:[Zc.createPortal(uI.jsx(jS.Provider,{value:r,children:uI.jsxs(peA,{renderPriority:e,frames:I,fbo:B,children:[g,uI.jsx("group",{onPointerOver:()=>null})]})}),r,null),uI.jsx(D0,{src:s,objectFit:"fill",keepAspectRatio:!1,...C,ref:o})]})});function ueA({current:g},A,I,e){var t,B,o;if(g==null||e==null)return!1;e.raycaster.camera||(o=(B=e.events).compute)==null||o.call(B,A,e,(t=e.previousRoot)==null?void 0:t.getState());const[i]=e.raycaster.intersectObject(g.interactionPanel);if(!i)return!1;const C=i.uv;if(!C)return!1;I.raycaster.setFromCamera(I.pointer.set(C.x*2-1,C.y*2-1),I.camera)}function peA({frames:g,renderPriority:A,children:I,fbo:e}){const i=dE();cA.useEffect(()=>i.subscribe((s,r)=>{const{size:E,camera:h}=s;E&&(DeA(h)?(h.left=E.width/-2,h.right=E.width/2,h.top=E.height/2,h.bottom=E.height/-2):h.aspect=E.width/E.height,(E!==r.size||h!==r.camera)&&(h.updateProjectionMatrix(),h.updateMatrixWorld()))}),[i]);let C=0,t,B,o,Q;return pB(s=>{const r=e.peek();r!=null&&(g===1/0||C{const I=cA.useMemo(()=>lg(void 0),[]),e=cA.useMemo(()=>lg(1),[]),i=g.src instanceof HTMLVideoElement?g.src:void 0,C=cA.useMemo(()=>i??document.createElement("video"),[i]),t=PC(o=>o.invalidate);cA.useEffect(()=>xIA(C,t),[C,t]),HIA(C,g),cA.useEffect(()=>{const o=()=>e.value=C.videoWidth/C.videoHeight;return o(),C.addEventListener("resize",o),()=>C.removeEventListener("resize",o)},[e,C]),cA.useEffect(()=>{const o=new Bv(C);return o.colorSpace=Gi,I.value=o,()=>o.dispose()},[I,C]);const B=cA.useRef(null);return cA.useImperativeHandle(A,()=>({...B.current,element:C}),[C]),uI.jsx(deA.Provider,{value:C,children:uI.jsx(D0,{aspectRatio:e,...g,ref:B,src:I})})});var yeA=Object.create,p0=Object.defineProperty,weA=Object.getOwnPropertyDescriptor,SeA=Object.getOwnPropertyNames,feA=Object.getPrototypeOf,GeA=Object.prototype.hasOwnProperty,keA=(g,A)=>()=>(g&&(A=g(g=0)),A),d0=(g,A)=>()=>(A||g((A={exports:{}}).exports,A),A.exports),y0=(g,A)=>{for(var I in A)p0(g,I,{get:A[I],enumerable:!0})},cO=(g,A,I,e)=>{if(A&&typeof A=="object"||typeof A=="function")for(let i of SeA(A))!GeA.call(g,i)&&i!==I&&p0(g,i,{get:()=>A[i],enumerable:!(e=weA(A,i))||e.enumerable});return g},kp=(g,A,I)=>(I=g!=null?yeA(feA(g)):{},cO(A||!g||!g.__esModule?p0(I,"default",{value:g,enumerable:!0}):I,g)),MeA=g=>cO(p0({},"__esModule",{value:!0}),g),FeA=(g,A,I)=>{if(!A.has(g))throw TypeError("Cannot "+I)},jY=(g,A,I)=>{if(A.has(g))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(g):A.set(g,I)},ND=(g,A,I)=>(FeA(g,A,"access private method"),I),NeA=d0(g=>{Object.defineProperty(g,"__esModule",{value:!0}),g.default=A;function A(){}A.prototype={diff:function(i,C){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=t.callback;typeof t=="function"&&(B=t,t={}),this.options=t;var o=this;function Q(f){return B?(setTimeout(function(){B(void 0,f)},0),!0):f}i=this.castInput(i),C=this.castInput(C),i=this.removeEmpty(this.tokenize(i)),C=this.removeEmpty(this.tokenize(C));var s=C.length,r=i.length,E=1,h=s+r;t.maxEditLength&&(h=Math.min(h,t.maxEditLength));var u=[{newPos:-1,components:[]}],w=this.extractCommon(u[0],C,i,0);if(u[0].newPos+1>=s&&w+1>=r)return Q([{value:this.join(C),count:C.length}]);function S(){for(var f=-1*E;f<=E;f+=2){var k=void 0,N=u[f-1],U=u[f+1],R=(U?U.newPos:0)-f;N&&(u[f-1]=void 0);var q=N&&N.newPos+1=s&&R+1>=r)return Q(I(o,k.components,C,i,o.useLongestToken));u[f]=k}E++}if(B)(function f(){setTimeout(function(){if(E>h)return B();S()||f()},0)})();else for(;E<=h;){var y=S();if(y)return y}},pushComponent:function(i,C,t){var B=i[i.length-1];B&&B.added===C&&B.removed===t?i[i.length-1]={count:B.count+1,added:C,removed:t}:i.push({count:1,added:C,removed:t})},extractCommon:function(i,C,t,B){for(var o=C.length,Q=t.length,s=i.newPos,r=s-B,E=0;s+1y.length?k:y}),h.value=i.join(w)}else h.value=i.join(t.slice(r,r+h.count));r+=h.count,h.added||(E+=h.count)}}var S=C[s-1];return s>1&&typeof S.value=="string"&&(S.added||S.removed)&&i.equals("",S.value)&&(C[s-2].value+=S.value,C.pop()),C}function e(i){return{newPos:i.newPos,components:i.components.slice(0)}}}),UeA=d0(g=>{Object.defineProperty(g,"__esModule",{value:!0}),g.diffArrays=i,g.arrayDiff=void 0;var A=I(NeA());function I(C){return C&&C.__esModule?C:{default:C}}var e=new A.default;g.arrayDiff=e,e.tokenize=function(C){return C.slice()},e.join=e.removeEmpty=function(C){return C};function i(C,t,B){return e.diff(C,t,B)}}),w0=d0((g,A)=>{var I=new Proxy(String,{get:()=>I});A.exports=I}),hO={};y0(hO,{default:()=>uO,shouldHighlight:()=>DO});var DO,uO,ReA=keA(()=>{DO=()=>!1,uO=String}),meA=d0(g=>{Object.defineProperty(g,"__esModule",{value:!0}),g.codeFrameColumns=r,g.default=E;var A=(ReA(),MeA(hO)),I=i(w0(),!0);function e(h){if(typeof WeakMap!="function")return null;var u=new WeakMap,w=new WeakMap;return(e=function(S){return S?w:u})(h)}function i(h,u){if(!u&&h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var w=e(u);if(w&&w.has(h))return w.get(h);var S={__proto__:null},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in h)if(f!=="default"&&Object.prototype.hasOwnProperty.call(h,f)){var k=y?Object.getOwnPropertyDescriptor(h,f):null;k&&(k.get||k.set)?Object.defineProperty(S,f,k):S[f]=h[f]}return S.default=h,w&&w.set(h,S),S}var C;function t(h){return h?(C!=null||(C=new I.default.constructor({enabled:!0,level:1})),C):I.default}var B=!1;function o(h){return{gutter:h.grey,marker:h.red.bold,message:h.red.bold}}var Q=/\r\n|[\n\r\u2028\u2029]/;function s(h,u,w){let S=Object.assign({column:0,line:-1},h.start),y=Object.assign({},S,h.end),{linesAbove:f=2,linesBelow:k=3}=w||{},N=S.line,U=S.column,R=y.line,q=y.column,H=Math.max(N-(f+1),0),Z=Math.min(u.length,R+k);N===-1&&(H=0),R===-1&&(Z=u.length);let L=R-N,x={};if(L)for(let QA=0;QA<=L;QA++){let yA=QA+N;if(!U)x[yA]=!0;else if(QA===0){let CA=u[yA-1].length;x[yA]=[U,CA-U+1]}else if(QA===L)x[yA]=[0,q];else{let CA=u[yA-QA].length;x[yA]=[0,CA]}}else U===q?U?x[N]=[U,0]:x[N]=!0:x[N]=[U,q-U];return{start:H,end:Z,markerLines:x}}function r(h,u,w={}){let S=(w.highlightCode||w.forceColor)&&(0,A.shouldHighlight)(w),y=t(w.forceColor),f=o(y),k=(x,QA)=>S?x(QA):QA,N=h.split(Q),{start:U,end:R,markerLines:q}=s(u,N,w),H=u.start&&typeof u.start.column=="number",Z=String(R).length,L=(S?(0,A.default)(h,w):h).split(Q,R).slice(U,R).map((x,QA)=>{let yA=U+1+QA,CA=` ${` ${yA}`.slice(-Z)} |`,kA=q[yA],GA=!q[yA+1];if(kA){let PA="";if(Array.isArray(kA)){let BA=x.slice(0,Math.max(kA[0]-1,0)).replace(/[^\t]/g," "),wA=kA[1]||1;PA=[` + */var u0=cA,geA=IeA;function eeA(g,A){return g===A&&(g!==0||1/g===1/A)||g!==g&&A!==A}var ieA=typeof Object.is=="function"?Object.is:eeA,CeA=geA.useSyncExternalStore,teA=u0.useRef,BeA=u0.useEffect,oeA=u0.useMemo,QeA=u0.useDebugValue;rO.useSyncExternalStoreWithSelector=function(g,A,I,e,i){var C=teA(null);if(C.current===null){var t={hasValue:!1,value:null};C.current=t}else t=C.current;C=oeA(function(){function o(h){if(!Q){if(Q=!0,s=h,h=e(h),i!==void 0&&t.hasValue){var u=t.value;if(i(u,h))return r=u}return r=h}if(u=r,ieA(s,h))return u;var w=e(h);return i!==void 0&&i(u,w)?u:(s=h,r=w)}var Q=!1,s,r,E=I===void 0?null:I;return[function(){return o(A())},E===null?void 0:function(){return o(E())}]},[A,I,e,i]);var B=CeA(g,C[0],C[1]);return BeA(function(){t.hasValue=!0,t.value=B},[B]),QeA(B),B};sO.exports=rO;var neA=sO.exports;const seA=Vu(neA);var lO={BASE_URL:"/uikit/examples/card/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:reA}=Ie,{useSyncExternalStoreWithSelector:aeA}=seA;let ZY=!1;const EeA=g=>g;function leA(g,A=EeA,I){(lO?"production":void 0)!=="production"&&I&&!ZY&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),ZY=!0);const e=aeA(g.subscribe,g.getState,g.getServerState||g.getInitialState,A,I);return reA(e),e}const WY=g=>{(lO?"production":void 0)!=="production"&&typeof g!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const A=typeof g=="function"?PgA(g):g,I=(e,i)=>leA(A,e,i);return Object.assign(I,A),I},ceA=g=>g?WY(g):WY,heA=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],DeA=g=>g&&g.isOrthographicCamera;cA.forwardRef(({children:g,dpr:A,frames:I=1/0,renderPriority:e=0,eventPriority:i=0,...C},t)=>{const B=cA.useMemo(()=>new aC(void 0),[]),o=cA.useRef(null),Q=dE();A??(A=Q.getState().viewport.dpr),cA.useImperativeHandle(t,()=>o.current,[]);const s=cA.useMemo(()=>Ce(()=>{var E;return(E=B.value)==null?void 0:E.texture}),[B]),r=cA.useMemo(()=>{let E=Q.getState();const h=new Xi(50,1,.1,1e3);h.position.set(0,0,5);const u=new sI;let w={events:{compute:ueA.bind(null,o),priority:i},size:{width:1,height:1,left:0,top:0},camera:h,scene:new CE,raycaster:new WS,pointer:u,mouse:u,previousRoot:Q};const S=ceA((y,f)=>{const k=()=>{const U={};for(const R in E)heA.includes(R)||(U[R]=E[R]);return Object.assign(U,w,{events:{...E.events,...w.events},viewport:Object.assign({},E.viewport,E.viewport.getCurrentViewport(h,new rA,w.size))})},N=()=>y(k());return{...E,set(U){typeof U=="function"&&(U=U(f())),Object.assign(w,U),N()},setPreviousState(U){E=U,N()},get:f,setEvents(U){Object.assign(w.events,U),N()},...k()}});return Object.assign(S,{setState(y){S.getState().set(y)}})},[i,Q]);return cA.useEffect(()=>Q.subscribe(r.getState().setPreviousState),[Q,r]),cA.useEffect(()=>{if(o.current==null)return;const E=B.value=new nC(1,1,{minFilter:qe,magFilter:qe,type:Bt}),{size:h}=o.current,u=hg(()=>{if(h.value==null)return;const[w,S]=h.value;E.setSize(w*A,S*A),r.setState({size:{width:w,height:S,top:0,left:0},viewport:{...Q.getState().viewport,width:w,height:S,aspect:w/S}})});return()=>{u(),E.dispose()}},[B,Q,r,A]),uI.jsxs(uI.Fragment,{children:[Zc.createPortal(uI.jsx(jS.Provider,{value:r,children:uI.jsxs(peA,{renderPriority:e,frames:I,fbo:B,children:[g,uI.jsx("group",{onPointerOver:()=>null})]})}),r,null),uI.jsx(D0,{src:s,objectFit:"fill",keepAspectRatio:!1,...C,ref:o})]})});function ueA({current:g},A,I,e){var t,B,o;if(g==null||e==null)return!1;e.raycaster.camera||(o=(B=e.events).compute)==null||o.call(B,A,e,(t=e.previousRoot)==null?void 0:t.getState());const[i]=e.raycaster.intersectObject(g.interactionPanel);if(!i)return!1;const C=i.uv;if(!C)return!1;I.raycaster.setFromCamera(I.pointer.set(C.x*2-1,C.y*2-1),I.camera)}function peA({frames:g,renderPriority:A,children:I,fbo:e}){const i=dE();cA.useEffect(()=>i.subscribe((s,r)=>{const{size:E,camera:h}=s;E&&(DeA(h)?(h.left=E.width/-2,h.right=E.width/2,h.top=E.height/2,h.bottom=E.height/-2):h.aspect=E.width/E.height,(E!==r.size||h!==r.camera)&&(h.updateProjectionMatrix(),h.updateMatrixWorld()))}),[i]);let C=0,t,B,o,Q;return pB(s=>{const r=e.peek();r!=null&&(g===1/0||C{const I=cA.useMemo(()=>lg(void 0),[]),e=cA.useMemo(()=>lg(1),[]),i=g.src instanceof HTMLVideoElement?g.src:void 0,C=cA.useMemo(()=>{if(i!=null)return i;const Q=document.createElement("video");return Q.style.position="absolute",Q.style.width="1px",Q.style.zIndex="-1000",Q.style.top="0px",Q.style.left="0px",Q},[i]),t=g.src instanceof HTMLVideoElement;cA.useEffect(()=>{if(!t)return document.body.appendChild(C),()=>C.remove()},[C,t]);const B=PC(Q=>Q.invalidate);cA.useEffect(()=>xIA(C,B),[C,B]),HIA(C,g),cA.useEffect(()=>{const Q=()=>e.value=C.videoWidth/C.videoHeight;return Q(),C.addEventListener("resize",Q),()=>C.removeEventListener("resize",Q)},[e,C]),cA.useEffect(()=>{const Q=new Bv(C);return Q.colorSpace=Gi,I.value=Q,()=>Q.dispose()},[I,C]);const o=cA.useRef(null);return cA.useImperativeHandle(A,()=>({...o.current,element:C}),[C]),uI.jsx(deA.Provider,{value:C,children:uI.jsx(D0,{aspectRatio:e,...g,ref:o,src:I})})});var yeA=Object.create,p0=Object.defineProperty,weA=Object.getOwnPropertyDescriptor,SeA=Object.getOwnPropertyNames,feA=Object.getPrototypeOf,GeA=Object.prototype.hasOwnProperty,keA=(g,A)=>()=>(g&&(A=g(g=0)),A),d0=(g,A)=>()=>(A||g((A={exports:{}}).exports,A),A.exports),y0=(g,A)=>{for(var I in A)p0(g,I,{get:A[I],enumerable:!0})},cO=(g,A,I,e)=>{if(A&&typeof A=="object"||typeof A=="function")for(let i of SeA(A))!GeA.call(g,i)&&i!==I&&p0(g,i,{get:()=>A[i],enumerable:!(e=weA(A,i))||e.enumerable});return g},kp=(g,A,I)=>(I=g!=null?yeA(feA(g)):{},cO(A||!g||!g.__esModule?p0(I,"default",{value:g,enumerable:!0}):I,g)),MeA=g=>cO(p0({},"__esModule",{value:!0}),g),FeA=(g,A,I)=>{if(!A.has(g))throw TypeError("Cannot "+I)},jY=(g,A,I)=>{if(A.has(g))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(g):A.set(g,I)},ND=(g,A,I)=>(FeA(g,A,"access private method"),I),NeA=d0(g=>{Object.defineProperty(g,"__esModule",{value:!0}),g.default=A;function A(){}A.prototype={diff:function(i,C){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=t.callback;typeof t=="function"&&(B=t,t={}),this.options=t;var o=this;function Q(f){return B?(setTimeout(function(){B(void 0,f)},0),!0):f}i=this.castInput(i),C=this.castInput(C),i=this.removeEmpty(this.tokenize(i)),C=this.removeEmpty(this.tokenize(C));var s=C.length,r=i.length,E=1,h=s+r;t.maxEditLength&&(h=Math.min(h,t.maxEditLength));var u=[{newPos:-1,components:[]}],w=this.extractCommon(u[0],C,i,0);if(u[0].newPos+1>=s&&w+1>=r)return Q([{value:this.join(C),count:C.length}]);function S(){for(var f=-1*E;f<=E;f+=2){var k=void 0,N=u[f-1],U=u[f+1],R=(U?U.newPos:0)-f;N&&(u[f-1]=void 0);var q=N&&N.newPos+1=s&&R+1>=r)return Q(I(o,k.components,C,i,o.useLongestToken));u[f]=k}E++}if(B)(function f(){setTimeout(function(){if(E>h)return B();S()||f()},0)})();else for(;E<=h;){var y=S();if(y)return y}},pushComponent:function(i,C,t){var B=i[i.length-1];B&&B.added===C&&B.removed===t?i[i.length-1]={count:B.count+1,added:C,removed:t}:i.push({count:1,added:C,removed:t})},extractCommon:function(i,C,t,B){for(var o=C.length,Q=t.length,s=i.newPos,r=s-B,E=0;s+1y.length?k:y}),h.value=i.join(w)}else h.value=i.join(t.slice(r,r+h.count));r+=h.count,h.added||(E+=h.count)}}var S=C[s-1];return s>1&&typeof S.value=="string"&&(S.added||S.removed)&&i.equals("",S.value)&&(C[s-2].value+=S.value,C.pop()),C}function e(i){return{newPos:i.newPos,components:i.components.slice(0)}}}),UeA=d0(g=>{Object.defineProperty(g,"__esModule",{value:!0}),g.diffArrays=i,g.arrayDiff=void 0;var A=I(NeA());function I(C){return C&&C.__esModule?C:{default:C}}var e=new A.default;g.arrayDiff=e,e.tokenize=function(C){return C.slice()},e.join=e.removeEmpty=function(C){return C};function i(C,t,B){return e.diff(C,t,B)}}),w0=d0((g,A)=>{var I=new Proxy(String,{get:()=>I});A.exports=I}),hO={};y0(hO,{default:()=>uO,shouldHighlight:()=>DO});var DO,uO,ReA=keA(()=>{DO=()=>!1,uO=String}),meA=d0(g=>{Object.defineProperty(g,"__esModule",{value:!0}),g.codeFrameColumns=r,g.default=E;var A=(ReA(),MeA(hO)),I=i(w0(),!0);function e(h){if(typeof WeakMap!="function")return null;var u=new WeakMap,w=new WeakMap;return(e=function(S){return S?w:u})(h)}function i(h,u){if(!u&&h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var w=e(u);if(w&&w.has(h))return w.get(h);var S={__proto__:null},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in h)if(f!=="default"&&Object.prototype.hasOwnProperty.call(h,f)){var k=y?Object.getOwnPropertyDescriptor(h,f):null;k&&(k.get||k.set)?Object.defineProperty(S,f,k):S[f]=h[f]}return S.default=h,w&&w.set(h,S),S}var C;function t(h){return h?(C!=null||(C=new I.default.constructor({enabled:!0,level:1})),C):I.default}var B=!1;function o(h){return{gutter:h.grey,marker:h.red.bold,message:h.red.bold}}var Q=/\r\n|[\n\r\u2028\u2029]/;function s(h,u,w){let S=Object.assign({column:0,line:-1},h.start),y=Object.assign({},S,h.end),{linesAbove:f=2,linesBelow:k=3}=w||{},N=S.line,U=S.column,R=y.line,q=y.column,H=Math.max(N-(f+1),0),Z=Math.min(u.length,R+k);N===-1&&(H=0),R===-1&&(Z=u.length);let L=R-N,x={};if(L)for(let QA=0;QA<=L;QA++){let yA=QA+N;if(!U)x[yA]=!0;else if(QA===0){let CA=u[yA-1].length;x[yA]=[U,CA-U+1]}else if(QA===L)x[yA]=[0,q];else{let CA=u[yA-QA].length;x[yA]=[0,CA]}}else U===q?U?x[N]=[U,0]:x[N]=!0:x[N]=[U,q-U];return{start:H,end:Z,markerLines:x}}function r(h,u,w={}){let S=(w.highlightCode||w.forceColor)&&(0,A.shouldHighlight)(w),y=t(w.forceColor),f=o(y),k=(x,QA)=>S?x(QA):QA,N=h.split(Q),{start:U,end:R,markerLines:q}=s(u,N,w),H=u.start&&typeof u.start.column=="number",Z=String(R).length,L=(S?(0,A.default)(h,w):h).split(Q,R).slice(U,R).map((x,QA)=>{let yA=U+1+QA,CA=` ${` ${yA}`.slice(-Z)} |`,kA=q[yA],GA=!q[yA+1];if(kA){let PA="";if(Array.isArray(kA)){let BA=x.slice(0,Math.max(kA[0]-1,0)).replace(/[^\t]/g," "),wA=kA[1]||1;PA=[` `,k(f.gutter,CA.replace(/\d/g," "))," ",BA,k(f.marker,"^").repeat(wA)].join(""),GA&&w.message&&(PA+=" "+k(f.message,w.message))}return[k(f.marker,">"),k(f.gutter,CA),x.length>0?` ${x}`:"",PA].join("")}else return` ${k(f.gutter,CA)}${x.length>0?` ${x}`:""}`}).join(` `);return w.message&&!H&&(L=`${" ".repeat(Z+1)}${w.message} ${L}`),S?y.reset(L):L}function E(h,u,w,S={}){if(!B){B=!0;let y="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let f=new Error(y);f.name="DeprecationWarning",console.warn(new Error(y))}}return w=Math.max(w,0),r(h,{start:{column:w,line:u}},S)}}),KeA={};y0(KeA,{__debug:()=>UtA,check:()=>FtA,doc:()=>e3,format:()=>t3,formatWithCursor:()=>C3,getSupportInfo:()=>NtA,util:()=>i3,version:()=>CtA});var JeA=(g,A,I,e)=>{if(!(g&&A==null))return A.replaceAll?A.replaceAll(I,e):I.global?A.replace(I,e):A.split(I).join(e)},S0=JeA,qeA=kp(UeA(),1);function LeA(g){let A=g.indexOf("\r");return A>=0?g.charAt(A+1)===` diff --git a/examples/card/index.html b/examples/card/index.html index 7f07e813..1c2ba82c 100644 --- a/examples/card/index.html +++ b/examples/card/index.html @@ -5,7 +5,7 @@ Document - + diff --git a/examples/dashboard/assets/index-g8qL53GM.js b/examples/dashboard/assets/index-rK3cuuoK.js similarity index 99% rename from examples/dashboard/assets/index-g8qL53GM.js rename to examples/dashboard/assets/index-rK3cuuoK.js index ddd0424a..d9c3da95 100644 --- a/examples/dashboard/assets/index-g8qL53GM.js +++ b/examples/dashboard/assets/index-rK3cuuoK.js @@ -4058,7 +4058,7 @@ No matching component was found for: `||d==null)&&(o.charLength=s-a+1,o.nonWhitespaceCharLength=o.charLength,o.nonWhitespaceWidth=l,o.whitespacesBetween=c)}};function $w(t,e){const n=t.length;for(;t[e]===" "&&e{for(const o of i)o(s);PI.set(t,s)}).catch(console.error)}async function oY(t,e){const n=await(await fetch(t)).json();if(n.pages.length!==1)throw new Error("only supporting exactly 1 page");const r=await iY.loadAsync(new URL(n.pages[0],new URL(t,window.location.href)).href);return r.anisotropy=e.capabilities.getMaxAnisotropy(),r.flipY=!1,new cY(n,r)}const YS={thin:100,"extra-light":200,light:300,normal:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800,black:900,"extra-black":950},aY={inter:{light:"https://pmndrs.github.io/uikit/fonts/inter-light.json",normal:"https://pmndrs.github.io/uikit/fonts/inter-normal.json",medium:"https://pmndrs.github.io/uikit/fonts/inter-medium.json","semi-bold":"https://pmndrs.github.io/uikit/fonts/inter-semi-bold.json",bold:"https://pmndrs.github.io/uikit/fonts/inter-bold.json"}};function HL(t,e,n,r){const i=sn(void 0),s=nr(t,"fontFamily",void 0),o=nr(t,"fontWeight","normal");return r.push(()=>tn(()=>{const a=(e==null?void 0:e.value)??aY;let l=s.value;l==null&&(l=Object.keys(a)[0]);const c=lY(a[l],typeof o.value=="string"?YS[o.value]:o.value);let p=!1;return sY(c,n,d=>p?void 0:i.value=d),()=>p=!0})),i}function lY(t,e){let n=1/0,r;for(const i in t){const s=Math.abs(e-uY(i));if(s===0)return t[i];s{const c=e.value;if(c==null)return;const p=n.value,d={font:c,fontSize:s.value,letterSpacing:o.value,lineHeight:a.value,text:Array.isArray(p)?p.map(C=>Bs(C)).join(""):Bs(p),wordBreak:l.value};r.current=d;const{width:A}=QI(d,0),{height:y}=QI(d,void 0);return{minHeight:y,minWidth:A,measure:(C,x)=>QI(d,x===s1.Undefined?void 0:C)}})}const zL={"keep-all":nY,"break-all":tY,"break-word":rY},FE={};function QI(t,e){const n=zL[t.wordBreak],r=t.text;let i=0,s=0,o=0;for(;o({font:t.value}))}class AY{constructor(e,n,r,i,s){Ke(this,"group");Ke(this,"baseMatrix");Ke(this,"color");Ke(this,"opacity");Ke(this,"clippingRect");Ke(this,"index");Ke(this,"hidden",!0);Ke(this,"glyphInfo");Ke(this,"x",0);Ke(this,"y",0);Ke(this,"fontSize",0);Ke(this,"pixelSize",0);this.group=e,this.baseMatrix=n,this.color=r,this.opacity=i,this.clippingRect=s}getX(e){return this.glyphInfo==null?this.x:this.x+e*this.glyphInfo.width*this.fontSize}show(){this.hidden&&(this.hidden=!1,this.group.requestActivate(this))}hide(){this.hidden||(this.hidden=!0,this.group.delete(this))}activate(e){this.index=e,this.writeUpdatedMatrix(),this.writeUV(),this.updateColor(this.color),this.updateOpacity(this.opacity),this.updateClippingRect(this.clippingRect)}setIndex(e){this.index=e}updateClippingRect(e){if(this.clippingRect=e,this.index==null)return;const n=this.index*16,{instanceClipping:r,root:i}=this.group;this.clippingRect==null?r.set(z1,n):this.clippingRect.toArray(r.array,n),r.addUpdateRange(n,16),r.needsUpdate=!0,i.requestRender()}updateColor(e){if(this.color=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=n.itemSize*this.index;r0(n.array,i,e,void 0),n.addUpdateRange(i,3),n.needsUpdate=!0,r.requestRender()}updateOpacity(e){if(this.opacity=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=this.index*4+3;n.array[i]=e,n.addUpdateRange(i,1),n.needsUpdate=!0,r.requestRender()}updateGlyphAndTransformation(e,n,r,i,s){this.glyphInfo===e&&this.x===n&&this.y===r&&this.fontSize===i&&this.pixelSize===s||(this.glyphInfo!=e&&(this.glyphInfo=e,this.writeUV()),this.x=n,this.y=r,this.fontSize=i,this.pixelSize=s,this.writeUpdatedMatrix())}updateBaseMatrix(e){this.baseMatrix!==e&&(this.baseMatrix=e,this.writeUpdatedMatrix())}writeUV(){if(this.index==null||this.glyphInfo==null)return;const e=this.index*4,{instanceUV:n,root:r}=this.group;hY(this.glyphInfo,n.array,e),n.addUpdateRange(e,4),n.needsUpdate=!0,r.requestRender()}writeUpdatedMatrix(){if(this.index==null||this.glyphInfo==null||this.baseMatrix==null)return;const e=this.index*16,{instanceMatrix:n,root:r}=this.group;n.addUpdateRange(e,16),uF.makeTranslation(this.x*this.pixelSize,this.y*this.pixelSize,0).multiply(fY.makeScale(this.fontSize*this.glyphInfo.width*this.pixelSize,this.fontSize*this.glyphInfo.height*this.pixelSize,1)).premultiply(this.baseMatrix),uF.toArray(n.array,e),n.needsUpdate=!0,r.requestRender()}}const gY="middle",mY="left";function VL(t,e,n,r,i,s,o,a,l,c,p,d,A,y,C,x){let D={current:void 0};const I=pY(t,l,e,D,x),B=nr(t,"verticalAlign",gY),w=nr(t,"textAlign",mY),_=nr(t,"color",0),F=nr(t,"opacity",1),P=sn(void 0);return C.push(()=>tn(()=>{var N;return(N=r.value)==null?void 0:N.addLayoutChangeListener(()=>{const U=D.current,{size:{value:q},paddingInset:{value:L},borderInset:{value:z}}=i;if(U==null||q==null||L==null||z==null)return;const[ue,ve]=q,[ne,_e,Ie,Ge]=L,[re,fe,Ee,de]=z,Ue=ue-_e-Ge-fe-de,Se=ve-ne-Ie-re-Ee;P.value=dY(U,Ue,Se)})}),()=>tn(()=>{const N=l.value;if(N==null||a.value==null)return;const U=new EY(c.getGroup(a.value.majorIndex,N),w,B,_,F,P,n,s,o,p,d,A);return y!=null&&(y.current=U),()=>U.destroy()})),I}const yY=[];class EY{constructor(e,n,r,i,s,o,a,l,c,p,d,A){Ke(this,"group");Ke(this,"textAlign");Ke(this,"verticalAlign");Ke(this,"color");Ke(this,"opacity");Ke(this,"layoutSignal");Ke(this,"matrix");Ke(this,"parentClippingRect");Ke(this,"selectionRange");Ke(this,"selectionBoxes");Ke(this,"caretPosition");Ke(this,"glyphLines",[]);Ke(this,"lastLayout");Ke(this,"unsubscribeInitialList",[]);Ke(this,"unsubscribeShowList",[]);this.group=e,this.textAlign=n,this.verticalAlign=r,this.color=i,this.opacity=s,this.layoutSignal=o,this.matrix=a,this.parentClippingRect=c,this.selectionRange=p,this.selectionBoxes=d,this.caretPosition=A,this.unsubscribeInitialList=[tn(()=>{if(!l.value||s.value<.01){this.hide();return}this.show()}),tn(()=>this.updateSelectionBoxes(this.lastLayout,p==null?void 0:p.value,r.peek(),n.peek()))]}getCharIndex(e,n){const r=this.lastLayout;if(r==null)return 0;n-=-PE(r,this.verticalAlign.peek());const i=Math.floor(n/-_E(r.lineHeight,r.fontSize)),s=r.lines;if(i<0||s.length===0)return 0;if(i>=s.length){const p=s[s.length-1];return p.charIndexOffset+p.charLength+1}const o=s[i],a=r.font.getGlyphInfo(" ").xadvance*r.fontSize,l=this.glyphLines[i];let c=l.length;for(let p=0;p=d.charIndexOffset+d.charLength)continue;const A=this.glyphLines[p][Math.max(r-d.charIndexOffset,0)];return{lineIndex:p,x:this.getGlyphX(A,i?0:1,s)}}const l=e[a-1];if(l.charLength===0)return{lineIndex:a-1,x:cF(n,l.nonWhitespaceWidth,o)-n/2};const c=this.glyphLines[a-1][l.charLength-1];return{lineIndex:a-1,x:this.getGlyphX(c,1,s)}}getGlyphX(e,n,r){return typeof e=="number"?e+n*r:e.getX(n)}show(){this.unsubscribeShowList.length>0||(hp(this.glyphLines,e=>e.show()),this.unsubscribeShowList.push(tn(()=>{const e=this.matrix.value;e!=null&&hp(this.glyphLines,n=>n.updateBaseMatrix(e))}),tn(()=>{var n;const e=(n=this.parentClippingRect)==null?void 0:n.value;hp(this.glyphLines,r=>r.updateClippingRect(e))}),tn(()=>{const e=this.color.value;hp(this.glyphLines,n=>n.updateColor(e))}),tn(()=>{const e=this.opacity.value;hp(this.glyphLines,n=>n.updateOpacity(e))}),tn(()=>{var A,y;const e=this.layoutSignal.value;if(e==null)return;const{text:n,font:r,lines:i,letterSpacing:s=0,fontSize:o=16,lineHeight:a=1.2,availableWidth:l}=e;let c=PE(e,this.verticalAlign.value)-e.availableHeight/2;const p=i.length,d=this.group.pixelSize.value;for(let C=0;CB+I){P=ve.id;const Ie=F+aF(r,o,ve,P);typeof N[z]=="number"?N[z]=F:N.splice(z,0,Ie),F+=_+i0(o,ve,s);continue}let ne=N[z];for(;zC.hide(),p),this.glyphLines.length=p,this.lastLayout=e,this.updateSelectionBoxes(e,(y=this.selectionRange)==null?void 0:y.peek(),this.verticalAlign.value,this.textAlign.value)})))}hide(){const e=this.unsubscribeShowList.length;if(e!==0){for(let n=0;nn.hide())}}destroy(){this.hide(),this.glyphLines.length=0;const e=this.unsubscribeInitialList.length;for(let n=0;nkl(p,B,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,id(),P));const w=HL(p,n,t.root.renderer,c),_=ws(void 0,Ji.Text,WL(w),B),F=VL(p,e,C,d,A,D,t.clippingRect,_,w,t.root.gylphGroupManager,void 0,void 0,void 0,void 0,c,"break-word");return c.push(()=>tn(()=>{var P;return(P=d.value)==null?void 0:P.setCustomLayouting(F.value)})),bu(r,i,A.size,c),mh(r,i,x,c),Object.assign(A,{isClipped:x,mergedProperties:p,interactionPanel:sd(B,t.root,t.clippingRect,A.size,c),handlers:Qu(r,i,s,a,l),initializers:c})}const vY=ni;class QA extends Eo{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,n,r,i){const s=this,o=new Pl(s.manager);o.setPath(s.path),o.setRequestHeader(s.requestHeader),o.setWithCredentials(s.withCredentials),o.load(e,function(a){try{n(s.parse(a))}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},r,i)}parse(e){const n=this;function r(K,se){if(K.nodeType!==1)return;const Y=_(K);let Z=!1,Le=null;switch(K.nodeName){case"svg":se=C(K,se);break;case"style":s(K);break;case"g":se=C(K,se);break;case"path":se=C(K,se),K.hasAttribute("d")&&(Le=i(K));break;case"rect":se=C(K,se),Le=l(K);break;case"polygon":se=C(K,se),Le=c(K);break;case"polyline":se=C(K,se),Le=p(K);break;case"circle":se=C(K,se),Le=d(K);break;case"ellipse":se=C(K,se),Le=A(K);break;case"line":se=C(K,se),Le=y(K);break;case"defs":Z=!0;break;case"use":se=C(K,se);const Ve=(K.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),oe=K.viewportElement.getElementById(Ve);oe?r(oe,se):console.warn("SVGLoader: 'use node' references non-existent node id: "+Ve);break}Le&&(se.fill!==void 0&&se.fill!=="none"&&Le.color.setStyle(se.fill,vY),P(Le,de),ue.push(Le),Le.userData={node:K,style:se});const ze=K.childNodes;for(let Fe=0;Fe0?de.copy(ne[ne.length-1]):de.identity())}function i(K){const se=new _c,Y=new st,Z=new st,Le=new st;let ze=!0,Fe=!1;const Ve=K.getAttribute("d");if(Ve===""||Ve==="none")return null;const oe=Ve.match(/[a-df-z][^a-df-z]*/ig);for(let Ne=0,we=oe.length;Ne0&&(Y.copy(Le),se.currentPath.currentPoint.copy(Y),ze=!0);break;default:console.warn(je)}Fe=!1}return se}function s(K){if(!(!K.sheet||!K.sheet.cssRules||!K.sheet.cssRules.length))for(let se=0;seLe.trim());for(let Le=0;LeFe!==""));ve[Z[Le]]=Object.assign(ve[Z[Le]]||{},ze)}}}function o(K,se,Y,Z,Le,ze,Fe,Ve){if(se==0||Y==0){K.lineTo(Ve.x,Ve.y);return}Z=Z*Math.PI/180,se=Math.abs(se),Y=Math.abs(Y);const oe=(Fe.x-Ve.x)/2,Ne=(Fe.y-Ve.y)/2,we=Math.cos(Z)*oe+Math.sin(Z)*Ne,je=-Math.sin(Z)*oe+Math.cos(Z)*Ne;let He=se*se,lt=Y*Y;const De=we*we,W=je*je,$=De/He+W/lt;if($>1){const mt=Math.sqrt($);se=mt*se,Y=mt*Y,He=se*se,lt=Y*Y}const Oe=He*W+lt*De,ft=(He*lt-Oe)/Oe;let pt=Math.sqrt(Math.max(0,ft));Le===ze&&(pt=-pt);const ut=pt*se*je/Y,Ot=-pt*Y*we/se,_t=Math.cos(Z)*ut-Math.sin(Z)*Ot+(Fe.x+Ve.x)/2,Nt=Math.sin(Z)*ut+Math.cos(Z)*Ot+(Fe.y+Ve.y)/2,Ft=a(1,0,(we-ut)/se,(je-Ot)/Y),Pt=a((we-ut)/se,(je-Ot)/Y,(-we-ut)/se,(-je-Ot)/Y)%(Math.PI*2);K.currentPath.absellipse(_t,Nt,se,Y,Ft,Ft+Pt,ze===0,Z)}function a(K,se,Y,Z){const Le=K*Y+se*Z,ze=Math.sqrt(K*K+se*se)*Math.sqrt(Y*Y+Z*Z);let Fe=Math.acos(Math.max(-1,Math.min(1,Le/ze)));return K*Z-se*Y<0&&(Fe=-Fe),Fe}function l(K){const se=w(K.getAttribute("x")||0),Y=w(K.getAttribute("y")||0),Z=w(K.getAttribute("rx")||K.getAttribute("ry")||0),Le=w(K.getAttribute("ry")||K.getAttribute("rx")||0),ze=w(K.getAttribute("width")),Fe=w(K.getAttribute("height")),Ve=1-.551915024494,oe=new _c;return oe.moveTo(se+Z,Y),oe.lineTo(se+ze-Z,Y),(Z!==0||Le!==0)&&oe.bezierCurveTo(se+ze-Z*Ve,Y,se+ze,Y+Le*Ve,se+ze,Y+Le),oe.lineTo(se+ze,Y+Fe-Le),(Z!==0||Le!==0)&&oe.bezierCurveTo(se+ze,Y+Fe-Le*Ve,se+ze-Z*Ve,Y+Fe,se+ze-Z,Y+Fe),oe.lineTo(se+Z,Y+Fe),(Z!==0||Le!==0)&&oe.bezierCurveTo(se+Z*Ve,Y+Fe,se,Y+Fe-Le*Ve,se,Y+Fe-Le),oe.lineTo(se,Y+Le),(Z!==0||Le!==0)&&oe.bezierCurveTo(se,Y+Le*Ve,se+Z*Ve,Y,se+Z,Y),oe}function c(K){function se(ze,Fe,Ve){const oe=w(Fe),Ne=w(Ve);Le===0?Z.moveTo(oe,Ne):Z.lineTo(oe,Ne),Le++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,Z=new _c;let Le=0;return K.getAttribute("points").replace(Y,se),Z.currentPath.autoClose=!0,Z}function p(K){function se(ze,Fe,Ve){const oe=w(Fe),Ne=w(Ve);Le===0?Z.moveTo(oe,Ne):Z.lineTo(oe,Ne),Le++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,Z=new _c;let Le=0;return K.getAttribute("points").replace(Y,se),Z.currentPath.autoClose=!1,Z}function d(K){const se=w(K.getAttribute("cx")||0),Y=w(K.getAttribute("cy")||0),Z=w(K.getAttribute("r")||0),Le=new Kc;Le.absarc(se,Y,Z,0,Math.PI*2);const ze=new _c;return ze.subPaths.push(Le),ze}function A(K){const se=w(K.getAttribute("cx")||0),Y=w(K.getAttribute("cy")||0),Z=w(K.getAttribute("rx")||0),Le=w(K.getAttribute("ry")||0),ze=new Kc;ze.absellipse(se,Y,Z,Le,0,Math.PI*2);const Fe=new _c;return Fe.subPaths.push(ze),Fe}function y(K){const se=w(K.getAttribute("x1")||0),Y=w(K.getAttribute("y1")||0),Z=w(K.getAttribute("x2")||0),Le=w(K.getAttribute("y2")||0),ze=new _c;return ze.moveTo(se,Y),ze.lineTo(Z,Le),ze.currentPath.autoClose=!1,ze}function C(K,se){se=Object.assign({},se);let Y={};if(K.hasAttribute("class")){const Fe=K.getAttribute("class").split(/\s/).filter(Boolean).map(Ve=>Ve.trim());for(let Ve=0;Ve0&&se.premultiply(ne[ne.length-1]),de.copy(se),ne.push(se),se}function F(K){const se=new Qn,Y=_e;if(K.nodeName==="use"&&(K.hasAttribute("x")||K.hasAttribute("y"))){const Z=w(K.getAttribute("x")),Le=w(K.getAttribute("y"));se.translate(Z,Le)}if(K.hasAttribute("transform")){const Z=K.getAttribute("transform").split(")");for(let Le=Z.length-1;Le>=0;Le--){const ze=Z[Le].trim();if(ze==="")continue;const Fe=ze.indexOf("("),Ve=ze.length;if(Fe>0&&Fe=1){const we=Ne[0];let je=0;Ne.length>=2&&(je=Ne[1]),Y.translate(we,je)}break;case"rotate":if(Ne.length>=1){let we=0,je=0,He=0;we=Ne[0]*Math.PI/180,Ne.length>=3&&(je=Ne[1],He=Ne[2]),Ie.makeTranslation(-je,-He),Ge.makeRotation(we),re.multiplyMatrices(Ge,Ie),Ie.makeTranslation(je,He),Y.multiplyMatrices(Ie,re)}break;case"scale":if(Ne.length>=1){const we=Ne[0];let je=we;Ne.length>=2&&(je=Ne[1]),Y.scale(we,je)}break;case"skewX":Ne.length===1&&Y.set(1,Math.tan(Ne[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":Ne.length===1&&Y.set(1,0,0,Math.tan(Ne[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":Ne.length===6&&Y.set(Ne[0],Ne[2],Ne[4],Ne[1],Ne[3],Ne[5],0,0,1);break}}se.premultiply(Y)}}return se}function P(K,se){function Y(Fe){Ee.set(Fe.x,Fe.y,1).applyMatrix3(se),Fe.set(Ee.x,Ee.y)}function Z(Fe){const Ve=Fe.xRadius,oe=Fe.yRadius,Ne=Math.cos(Fe.aRotation),we=Math.sin(Fe.aRotation),je=new ae(Ve*Ne,Ve*we,0),He=new ae(-oe*we,oe*Ne,0),lt=je.applyMatrix3(se),De=He.applyMatrix3(se),W=_e.set(lt.x,De.x,0,lt.y,De.y,0,0,0,1),$=Ie.copy(W).invert(),pt=Ge.copy($).transpose().multiply($).elements,ut=z(pt[0],pt[1],pt[4]),Ot=Math.sqrt(ut.rt1),_t=Math.sqrt(ut.rt2);if(Fe.xRadius=1/Ot,Fe.yRadius=1/_t,Fe.aRotation=Math.atan2(ut.sn,ut.cs),!((Fe.aEndAngle-Fe.aStartAngle)%(2*Math.PI){const{x:ln,y:Zt}=new ae(Math.cos(Dn),Math.sin(Dn),0).applyMatrix3(mt);return Math.atan2(Zt,ln)};Fe.aStartAngle=kn(Fe.aStartAngle),Fe.aEndAngle=kn(Fe.aEndAngle),N(se)&&(Fe.aClockwise=!Fe.aClockwise)}}function Le(Fe){const Ve=q(se),oe=L(se);Fe.xRadius*=Ve,Fe.yRadius*=oe;const Ne=Ve>Number.EPSILON?Math.atan2(se.elements[1],se.elements[0]):Math.atan2(-se.elements[3],se.elements[4]);Fe.aRotation+=Ne,N(se)&&(Fe.aStartAngle*=-1,Fe.aEndAngle*=-1,Fe.aClockwise=!Fe.aClockwise)}const ze=K.subPaths;for(let Fe=0,Ve=ze.length;FeNumber.EPSILON}function q(K){const se=K.elements;return Math.sqrt(se[0]*se[0]+se[1]*se[1])}function L(K){const se=K.elements;return Math.sqrt(se[3]*se[3]+se[4]*se[4])}function z(K,se,Y){let Z,Le,ze,Fe,Ve;const oe=K+Y,Ne=K-Y,we=Math.sqrt(Ne*Ne+4*se*se);return oe>0?(Z=.5*(oe+we),Ve=1/Z,Le=K*Ve*Y-se*Ve*se):oe<0?Le=.5*(oe-we):(Z=.5*we,Le=-.5*we),Ne>0?ze=Ne+we:ze=Ne-we,Math.abs(ze)>2*Math.abs(se)?(Ve=-2*se/ze,Fe=1/Math.sqrt(1+Ve*Ve),ze=Ve*Fe):Math.abs(se)===0?(ze=1,Fe=0):(Ve=-.5*ze/se,ze=1/Math.sqrt(1+Ve*Ve),Fe=Ve*ze),Ne>0&&(Ve=ze,ze=-Fe,Fe=Ve),{rt1:Z,rt2:Le,cs:ze,sn:Fe}}const ue=[],ve={},ne=[],_e=new Qn,Ie=new Qn,Ge=new Qn,re=new Qn,fe=new st,Ee=new ae,de=new Qn,Ue=new DOMParser().parseFromString(e,"image/svg+xml");return r(Ue.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:ue,xml:Ue.documentElement}}static createShapes(e){const r={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:r.ORIGIN,t:0};function s(x,D,I,B){const w=x.x,_=D.x,F=I.x,P=B.x,N=x.y,U=D.y,q=I.y,L=B.y,z=(P-F)*(N-q)-(L-q)*(w-F),ue=(_-w)*(N-q)-(U-N)*(w-F),ve=(L-q)*(_-w)-(P-F)*(U-N),ne=z/ve,_e=ue/ve;if(ve===0&&z!==0||ne<=0||ne>=1||_e<0||_e>1)return null;if(z===0&&ve===0){for(let Ie=0;Ie<2;Ie++)if(o(Ie===0?I:B,x,D),i.loc==r.ORIGIN){const Ge=Ie===0?I:B;return{x:Ge.x,y:Ge.y,t:i.t}}else if(i.loc==r.BETWEEN){const Ge=+(w+i.t*(_-w)).toPrecision(10),re=+(N+i.t*(U-N)).toPrecision(10);return{x:Ge,y:re,t:i.t}}return null}else{for(let re=0;re<2;re++)if(o(re===0?I:B,x,D),i.loc==r.ORIGIN){const fe=re===0?I:B;return{x:fe.x,y:fe.y,t:i.t}}const Ie=+(w+ne*(_-w)).toPrecision(10),Ge=+(N+ne*(U-N)).toPrecision(10);return{x:Ie,y:Ge,t:ne}}}function o(x,D,I){const B=I.x-D.x,w=I.y-D.y,_=x.x-D.x,F=x.y-D.y,P=B*F-_*w;if(x.x===D.x&&x.y===D.y){i.loc=r.ORIGIN,i.t=0;return}if(x.x===I.x&&x.y===I.y){i.loc=r.DESTINATION,i.t=1;return}if(P<-Number.EPSILON){i.loc=r.LEFT;return}if(P>Number.EPSILON){i.loc=r.RIGHT;return}if(B*_<0||w*F<0){i.loc=r.BEHIND;return}if(Math.sqrt(B*B+w*w)L.t<=q.t+Number.EPSILON&&L.t>=q.t-Number.EPSILON)===void 0&&(I.push(q),B.push(new st(q.x,q.y)))}}return B}function l(x,D,I){const B=new st;D.getCenter(B);const w=[];return I.forEach(_=>{_.boundingBox.containsPoint(B)&&a(x,_.points).forEach(P=>{w.push({identifier:_.identifier,isCW:_.isCW,point:P})})}),w.sort((_,F)=>_.point.x-F.point.x),w}function c(x,D,I,B,w){(w==null||w==="")&&(w="nonzero");const _=new st;x.boundingBox.getCenter(_);const F=[new st(I,_.y),new st(B,_.y)],P=l(F,x.boundingBox,D);P.sort((ue,ve)=>ue.point.x-ve.point.x);const N=[],U=[];P.forEach(ue=>{ue.identifier===x.identifier?N.push(ue):U.push(ue)});const q=N[0].point.x,L=[];let z=0;for(;z0&&L[L.length-1]===U[z].identifier?L.pop():L.push(U[z].identifier),z++;if(L.push(x.identifier),w==="evenodd"){const ue=L.length%2===0,ve=L[L.length-2];return{identifier:x.identifier,isHole:ue,for:ve}}else if(w==="nonzero"){let ue=!0,ve=null,ne=null;for(let _e=0;_e{const D=x.getPoints();let I=-999999999,B=999999999,w=-999999999,_=999999999;for(let F=0;FI&&(I=P.y),P.yw&&(w=P.x),P.x<_&&(_=P.x)}return d<=w&&(d=w+1),p>=_&&(p=_-1),{curves:x.curves,points:D,isCW:Ka.isClockWise(D),identifier:-1,boundingBox:new kR(new st(_,B),new st(w,I))}});A=A.filter(x=>x.points.length>1);for(let x=0;xc(x,A,p,d,e.userData?e.userData.style.fillRule:void 0)),C=[];return A.forEach(x=>{if(!y[x.identifier].isHole){const I=new Zc;I.curves=x.curves,y.filter(w=>w.isHole&&w.for===x.identifier).forEach(w=>{const _=A[w.identifier],F=new Kc;F.curves=_.curves,I.holes.push(F)}),C.push(I)}}),C}static getStrokeStyle(e,n,r,i,s){return e=e!==void 0?e:1,n=n!==void 0?n:"#000",r=r!==void 0?r:"miter",i=i!==void 0?i:"butt",s=s!==void 0?s:4,{strokeColor:n,strokeWidth:e,strokeLineJoin:r,strokeLineCap:i,strokeMiterLimit:s}}static pointsToStroke(e,n,r,i){const s=[],o=[],a=[];if(QA.pointsToStrokeWithBuffers(e,n,r,i,s,o,a)===0)return null;const l=new Gn;return l.setAttribute("position",new hn(s,3)),l.setAttribute("normal",new hn(o,3)),l.setAttribute("uv",new hn(a,2)),l}static pointsToStrokeWithBuffers(e,n,r,i,s,o,a,l){const c=new st,p=new st,d=new st,A=new st,y=new st,C=new st,x=new st,D=new st,I=new st,B=new st,w=new st,_=new st,F=new st,P=new st,N=new st,U=new st,q=new st;r=r!==void 0?r:12,i=i!==void 0?i:.001,l=l!==void 0?l:0,e=Ne(e);const L=e.length;if(L<2)return 0;const z=e[0].equals(e[L-1]);let ue,ve=e[0],ne;const _e=n.strokeWidth/2,Ie=1/(L-1);let Ge=0,re,fe,Ee,de,Ue=!1,Se=0,K=l*3,se=l*2;Y(e[0],e[1],c).multiplyScalar(_e),D.copy(e[0]).sub(c),I.copy(e[0]).add(c),B.copy(D),w.copy(I);for(let we=1;weNumber.EPSILON){const lt=_e/He;d.multiplyScalar(-lt),A.subVectors(ue,ve),y.copy(A).setLength(lt).add(d),U.copy(y).negate();const De=y.length(),W=A.length();A.divideScalar(W),C.subVectors(ne,ue);const $=C.length();switch(C.divideScalar($),A.dot(U)=i&&He.push(we[lt]);return He.push(we[we.length-1]),He}}}function xY(t,e,n,r,i,s){const o=[],a=sn([]),l=sn([]);Nu(a,o);const c=sn(void 0),p=ku(e,n,r,{...Lu,...Ru(t.root.size),...Ou(a),...Fu(l)},zC,ue=>ue.add("aspectRatio",c)),d=sn(void 0),A=_u();Ch(d,A,t,p,i,!0,o);const y=Tu(p,A,t.root.pixelSize);Mu(t.root,i,y,o);const C=Eh(t.childrenMatrix,y),x=yh(t.clippingRect,C,A.size,t.root.pixelSize),D=Pu(A,x,p),I=od(p),B=ws(p,Ji.Panel,I,t.orderInfo);o.push(ue=>kl(p,B,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,id(),ue));const w=ws(void 0,Ji.Svg,void 0,B),_=Vn(()=>{var ue,ve;return Bs((ue=e.value)==null?void 0:ue.src)??Bs((ve=n.value)==null?void 0:ve.src)}),F=sn(void 0),P=S0(t.root,t.clippingRect);CL(F,SY,AJ,o,_,t.root,P,t.clippingRect,w,c),vL(p,F,o,t.root);const N=IY(t.root,A,F,c,D,o),U=VC();JC(s,U,t.root.pixelSize,o);const q=jC(U,C,t.root.pixelSize);XC(p,U,A,C,D,t.clippingRect,w,t.root.panelGroupManager,o);const L=sd(w,t.root,t.clippingRect,A.size,o),z=YC(U,t.anyAncestorScrollable,A,i,L,n,t.root,o);return bu(e,n,A.size,o),mh(e,n,x,o),Object.assign(A,{scrollPosition:U,isClipped:x,mergedProperties:p,anyAncestorScrollable:Kw(A.scrollable,t.anyAncestorScrollable),clippingRect:HC(C,A,t.root.pixelSize,t.clippingRect),childrenMatrix:q,node:d,orderInfo:w,root:t.root,initializers:o,centerGroup:N,handlers:Qu(e,n,r,a,l,z),interactionPanel:L})}function IY(t,e,n,r,i,s){const o=new gu;return o.matrixAutoUpdate=!1,s.push(()=>tn(()=>{AL(o.position,o.scale,e.size,e.paddingInset,e.borderInset,t.pixelSize.value,r.value??1),o.updateMatrix(),t.requestRender()}),()=>tn(()=>{const a=n.value;if(a!=null)return o.add(a),t.requestRender(),()=>{o.remove(a),t.requestRender()}}),()=>tn(()=>{o.visible=n.value!=null&&i.value,t.requestRender()})),o}const DY=new QA,QE=new Wi,pp=new ae,hF=new Map;async function SY(t,e,n,r,i,s){if(t==null)return;const o=new gu;o.matrixAutoUpdate=!1;let a=hF.get(t);a==null&&hF.set(t,a=await DY.loadAsync(t)),QE.makeEmpty();for(const c of a.paths){const p=QA.createShapes(c),d=new Lo;d.transparent=!0,d.depthWrite=!1,d.toneMapped=!1,d.clippingPlanes=n;for(const A of p){const y=new MA(A);y.computeBoundingBox(),QE.union(y.boundingBox);const C=new gr(y,d);C.matrixAutoUpdate=!1,C.raycast=sh(C,C.raycast,e.object,r,i),rd(C,e,i),C.userData.color=c.color,C.scale.y=-1,C.updateMatrix(),o.add(C)}}QE.getSize(pp),s.value=pp.x/pp.y;const l=1/pp.y;return o.scale.set(1,1,1).multiplyScalar(l),QE.getCenter(pp),pp.y*=-1,o.position.copy(pp).negate().multiplyScalar(l),o.updateMatrix(),o}function BY(t,e,n,r,i,s,o,a){const l=[],c=sn([]),p=sn([]);Nu(c,l);const d=ku(i,s,o,{...Lu,...Ru(t.root.size),...Ou(c),...Fu(p)},zC,P=>{P.add("aspectRatio",n/r),P.add("width",n),P.add("height",r)}),A=_u();Ch(void 0,A,t,d,a,!0,l);const y=Tu(d,A,t.root.pixelSize);Mu(t.root,a,y,l);const C=Eh(t.childrenMatrix,y),x=yh(t.clippingRect,C,A.size,t.root.pixelSize),D=Pu(A,x,d),I=od(d),B=ws(d,Ji.Panel,I,t.orderInfo);l.push(P=>kl(d,B,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,id(),P));const w=ws(void 0,Ji.Svg,void 0,B),_=S0(t.root,t.clippingRect),F=bY(d,e,n,r,t,w,A,D,_,l);return bu(i,s,A.size,l),mh(i,s,x,l),Object.assign(A,{isClipped:x,mergedProperties:d,initializers:l,iconGroup:F,handlers:Qu(i,s,o,c,p),interactionPanel:sd(w,t.root,t.clippingRect,A.size,l)})}const wY=new QA;function bY(t,e,n,r,i,s,o,a,l,c){const p=new gu;p.matrixAutoUpdate=!1;const d=wY.parse(e);for(const y of d.paths){const C=QA.createShapes(y),x=new Lo;x.transparent=!0,x.depthWrite=!1,x.toneMapped=!1,x.clippingPlanes=l;for(const D of C){const I=new MA(D);I.computeBoundingBox();const B=new gr(I,x);B.matrixAutoUpdate=!1,B.raycast=sh(B,B.raycast,i.root.object,i.clippingRect,s),rd(B,i.root,s),B.userData.color=y.color,B.scale.y=-1,B.updateMatrix(),p.add(B)}}const A=n/r;return c.push(()=>tn(()=>{AL(p.position,p.scale,o.size,o.paddingInset,o.borderInset,i.root.pixelSize.value,A),p.position.x-=p.scale.x*A/2,p.position.y+=p.scale.x/2,p.scale.divideScalar(r),p.updateMatrix(),i.root.requestRender()}),()=>tn(()=>{p.visible=a.value,i.root.requestRender()})),vL(t,p,c,i.root),p}const TY=["caretBorderRightWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderBottomWidth"];let pF;function MY(){return pF??(pF=B0({backgroundColor:"caretColor",backgroundOpacity:"caretOpacity",borderBend:"caretBorderBend",borderBottomLeftRadius:"caretBorderBottomLeftRadius",borderBottomRightRadius:"caretBorderBottomRightRadius",borderColor:"caretBorderColor",borderOpacity:"caretBorderOpacity",borderTopLeftRadius:"caretBorderTopLeftRadius",borderTopRightRadius:"caretBorderTopRightRadius"},{backgroundColor:0,backgroundOpacity:1})),pF}function _Y(t,e,n,r,i,s,o,a){const l=ws(void 0,Ji.Panel,WC,i),c=sn(void 0);a.push(()=>tn(()=>{const A=n.value;A==null&&(c.value=void 0),c.value=A;const y=setInterval(()=>c.value=c.peek()==null?A:void 0,500);return()=>clearInterval(y)}));const p=Jw(t,TY),d=nr(t,"caretWidth",1.5);a.push(A=>kl(t,l,void 0,o,e,Vn(()=>{const y=c.value;return y==null?[0,0]:[d.value,y[2]]}),Vn(()=>{const y=c.value;return y==null?[0,0]:[y[0]-d.value/2,y[1]]}),p,s,r,MY(),A))}const FY=["selectionBorderRightWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderBottomWidth"];let dF;function PY(){return dF??(dF=B0({backgroundColor:"selectionColor",backgroundOpacity:"selectionOpacity",borderBend:"selectionBorderBend",borderBottomLeftRadius:"selectionBorderBottomLeftRadius",borderBottomRightRadius:"selectionBorderBottomRightRadius",borderColor:"selectionBorderColor",borderOpacity:"selectionBorderOpacity",borderTopLeftRadius:"selectionBorderTopLeftRadius",borderTopRightRadius:"selectionBorderTopRightRadius"},{backgroundColor:11851775,backgroundOpacity:1})),dF}function QY(t,e,n,r,i,s,o,a){const l=[],c=ws(void 0,Ji.Panel,WC,i),p=Jw(t,FY);return a.push(()=>tn(()=>{const d=n.value,A=d.length;for(let C=0;C()=>{const d=l.length;for(let A=0;At.value)}}const RY=new Set;function LY(t){RY.add(t)}function NY(t,e,n,r,i,s){var de,Ue,Se,K,se,Y;const o=sn([]),a=sn([]),l=sn(!1),c=[];Nu(o,c);const p=ku(n,r,i,{...Lu,...Ru(t.root.size),...Ou(o),...Fu(a),...kY(l)},void 0,Z=>{GC(n.value,r.value,i.value,Le=>{Z.add("caretOpacity",Le.opacity),Z.add("caretColor",Le.color)})}),d=_u(),A=sn(void 0);Ch(A,d,t,p,s,!1,c);const y=Tu(p,d,t.root.pixelSize);Mu(t.root,s,y,c);const C=Eh(t.childrenMatrix,y),x=yh(t.clippingRect,C,d.size,t.root.pixelSize),D=Pu(d,x,p),I=od(p),B=ws(p,Ji.Panel,I,t.orderInfo);c.push(Z=>kl(p,B,I,t.root.panelGroupManager,C,d.size,void 0,d.borderInset,t.clippingRect,D,id(),Z));const w={},_=sn([]),F=sn(void 0),P=sn(void 0);_Y(p,C,F,D,B,t.clippingRect,t.root.panelGroupManager,c);const N=QY(p,C,_,D,B,t.clippingRect,t.root.panelGroupManager,c),U=HL(p,e,t.root.renderer,c),q=ws(void 0,Ji.Text,WL(U),N),L=((de=n.peek())==null?void 0:de.defaultValue)??((Ue=r.peek())==null?void 0:Ue.defaultValue),z=((Se=n.peek())==null?void 0:Se.value)==null&&((K=r.peek())==null?void 0:K.value)==null?sn(L??""):void 0,ue=Vn(()=>{var Z,Le;return(z==null?void 0:z.value)??Bs((Z=n.value)==null?void 0:Z.value)??Bs((Le=r.value)==null?void 0:Le.value)??""}),ve=mI(n,r,"type","text"),ne=Vn(()=>ve.value==="text"?ue.value:"*".repeat(ue.value.length??0)),_e=((se=n.peek())==null?void 0:se.multiline)??((Y=r.peek())==null?void 0:Y.multiline)??!1,Ie=VL(p,ne,C,A,d,D,t.clippingRect,q,U,t.root.gylphGroupManager,P,_,F,w,c,_e?"break-word":"keep-all");c.push(()=>tn(()=>{var Z;return(Z=A.value)==null?void 0:Z.setCustomLayouting(Ie.value)})),bu(n,r,d.size,c),mh(n,r,x,c);const Ge=mI(n,r,"disabled",!1),re=UY(ue,P,Z=>{var Le,ze,Fe,Ve;z!=null&&(z.value=Z),(ze=(Le=n.peek())==null?void 0:Le.onValueChange)==null||ze.call(Le,Z),(Ve=(Fe=r.peek())==null?void 0:Fe.onValueChange)==null||Ve.call(Fe,Z)},_e,ve,Ge,mI(n,r,"tabIndex",0),c),fe=(Z,Le,ze)=>{const Fe=re.peek();Fe!=null&&(l.peek()||Fe.focus(),Z!=null&&Le!=null&&Fe.setSelectionRange(Z,Le,ze),P.value=[Fe.selectionStart??0,Fe.selectionEnd??0])};GY(re,l,c,Z=>{var Le,ze,Fe,Ve;(ze=(Le=r.peek())==null?void 0:Le.onFocusChange)==null||ze.call(Le,Z),(Ve=(Fe=n.peek())==null?void 0:Fe.onFocusChange)==null||Ve.call(Fe,Z)});const Ee=OY(d,w,fe,Ge);return Object.assign(d,{isClipped:x,mergedProperties:p,valueSignal:ue,focus:()=>fe(),root:t.root,element:re,node:A,interactionPanel:sd(B,t.root,t.clippingRect,d.size,c),handlers:Qu(n,r,i,o,a,Ee,"text"),initializers:c})}function OY(t,e,n,r){return Vn(()=>{if(r.value)return;let i;return{onPointerDown:s=>{var a;if(s.defaultPrevented||s.uv==null||e.current==null)return;LY(s.nativeEvent),(a=s.stopPropagation)==null||a.call(s);const o=fF(t,s.uv,e.current);i=o,setTimeout(()=>n(o,o))},onPointerUp:s=>{i=void 0},onPointerLeave:s=>{i=void 0},onPointerMove:s=>{var p;if(i==null||s.uv==null||e.current==null)return;(p=s.stopPropagation)==null||p.call(s);const o=fF(t,s.uv,e.current),a=Math.min(i,o),l=Math.max(i,o),c=in(a,l,c))}}})}function UY(t,e,n,r,i,s,o,a){const l=sn(void 0);return a.push(c=>{const p=document.createElement(r?"textarea":"input"),d=p.style;d.setProperty("position","absolute"),d.setProperty("left","-1000vw"),d.setProperty("top","0"),d.setProperty("pointerEvents","none"),d.setProperty("opacity","0"),p.addEventListener("input",()=>{n==null||n(p.value),A()});const A=()=>{const{selectionStart:y,selectionEnd:C}=p;if(y==null||C==null){e.value=void 0;return}const x=e.peek();x!=null&&x[0]===y&&x[1]===C||(e.value=[y,C])};return p.addEventListener("keydown",A),p.addEventListener("keyup",A),p.addEventListener("blur",()=>e.value=void 0),document.body.appendChild(p),l.value=p,c.push(()=>{l.value=void 0,p.remove()},tn(()=>p.value=t.value),tn(()=>p.disabled=s.value),tn(()=>p.tabIndex=o.value),tn(()=>p.setAttribute("type",i.value))),c}),l}function GY(t,e,n,r){n.push(()=>tn(()=>{const i=t.value;if(i==null)return;e.value=document.activeElement===i;const s=()=>{const o=document.activeElement===i;o!=e.value&&(e.value=o,r(o))};return i.addEventListener("focus",s),i.addEventListener("blur",s),()=>{i.removeEventListener("focus",s),i.removeEventListener("blur",s)}}))}function fF({size:t,borderInset:e,paddingInset:n},r,i){const s=t.peek(),o=e.peek(),a=n.peek();if(s==null||o==null||a==null)return 0;const[l,c]=s,[p,,,d]=o,[A,,,y]=a,C=r.x*l-d-y,x=-r.y*c+p+A;return i.getCharIndex(C,x)}function HY(t,e,n,r,i,s){const o=sn([]),a=sn([]),l=[];Nu(o,l);const c=ku(e,n,r,{...Lu,...Ru(t.root.size),...Ou(o),...Fu(a)}),p=_u();Ch(void 0,p,t,c,i,!0,l);const d=Tu(c,p,t.root.pixelSize);Mu(t.root,i,d,l);const A=Eh(t.childrenMatrix,d),y=yh(t.clippingRect,A,p.size,t.root.pixelSize),C=Pu(p,y,c),x=ws(c,Ji.Custom,void 0,t.orderInfo),D=S0(t.root,t.clippingRect);return l.push(I=>{const B=s.current;if(B==null)return I;if(B.matrixAutoUpdate=!1,B.material instanceof Li){const w=B.material;w.clippingPlanes=D,w.needsUpdate=!0,w.shadowSide=xa,I.push(()=>tn(()=>{w.depthTest=t.root.depthTest.value,t.root.requestRender()}))}return B.raycast=sh(B,B.raycast,t.root.object,t.clippingRect,x),rd(B,t.root,x),I.push(tn(()=>{B.renderOrder=t.root.renderOrder.value,t.root.requestRender()}),tn(()=>{B.receiveShadow=c.value.read("receiveShadow",!1),t.root.requestRender()}),tn(()=>{B.castShadow=c.value.read("castShadow",!1),t.root.requestRender()}),tn(()=>{if(p.size.value==null)return;const[w,_]=p.size.value,F=t.root.pixelSize.value;B.scale.set(w*F,_*F,1),B.updateMatrix(),t.root.requestRender()}),tn(()=>{B.visible=C.value,t.root.requestRender()})),I}),bu(e,n,p.size,l),mh(e,n,y,l),Object.assign(p,{isClipped:y,mergedProperties:c,root:t.root,handlers:Qu(e,n,r,o,a),initializers:l})}function zY(t,e,n,r,i,s){const o=sn([]),a=sn([]),l=[],c=_u();Nu(o,l);const p=sn(new ae(1,1,1)),d=Vn(()=>p.value.x/p.value.y),A=ku(e,n,r,{...Lu,...Ru(t.root.size),...Ou(o),...Fu(a)},zC,_=>_.add("aspectRatio",d));Ch(void 0,c,t,A,i,!0,l);const y=Tu(A,c,t.root.pixelSize);Mu(t.root,i,y,l);const C=Eh(t.childrenMatrix,y),x=yh(t.clippingRect,C,c.size,t.root.pixelSize),D=Pu(c,x,A),I=od(A),B=ws(A,Ji.Panel,I,t.orderInfo);l.push(_=>kl(A,B,I,t.root.panelGroupManager,C,c.size,void 0,c.borderInset,t.clippingRect,D,id(),_));const w=ws(void 0,Ji.Object,void 0,B);return bu(e,n,c.size,l),mh(e,n,x,l),Object.assign(c,{isClipped:x,mergedProperties:A,remeasureContent:jY(A,t.root,c,t.clippingRect,D,w,p,s,l),interactionPanel:sd(B,t.root,t.clippingRect,c.size,l),handlers:Qu(e,n,r,o,a),initializers:l})}const kI=new Wi,AF=new ae().setScalar(.001),WY=new ae,VY="back";function jY(t,e,n,r,i,s,o,a,l){const c=S0(e,r),p=nr(t,"depthAlign",VY),d=nr(t,"keepAspectRatio",!0),A=new ae,y=new ae,C=(D,I,B,w)=>{D!=null&&(D.visible=I,D.traverse(_=>{_ instanceof gr&&(_.renderOrder=B,_.material instanceof Li&&(_.material.depthTest=w))}),e.requestRender())},x=()=>{const D=a.current;if(D==null){A.copy(AF),y.set(0,0,0);return}D.traverse(B=>{B instanceof gr&&(rd(B,e,s),B.material.clippingPlanes=c,B.material.needsUpdate=!0,B.raycast=sh(B,B.raycast,e.object,r,s))});const I=D.parent;D.parent=null,kI.setFromObject(D),kI.getSize(A).max(AF),o.value=A,I!=null&&(D.parent=I),kI.getCenter(y),e.requestRender()};return l.push(()=>tn(()=>{C(a.current,i.value,e.renderOrder.value,e.depthTest.value),e.requestRender()}),D=>{const I=a.current;return I==null||(x(),D.push(tn(()=>{const{size:{value:B},paddingInset:{value:w},borderInset:{value:_}}=n;if(B==null||w==null||_==null)return;const[F,P]=B,[N,U,q,L]=w,[z,ue,ve,ne]=_,_e=N+z,Ie=U+ue,Ge=q+ve,re=L+ne,fe=F-re-Ie,Ee=P-_e-Ge,de=e.pixelSize.value;I.scale.set(fe*de,Ee*de,d.value?Ee*de*A.z/A.y:A.z).divide(A),I.position.copy(y).negate(),I.position.z-=_j[p.value]*A.z,I.position.multiply(I.scale),I.position.add(WY.set((re-Ie)*.5*de,(Ge-_e)*.5*de,0)),I.updateMatrix(),e.requestRender()}))),D}),()=>{C(a.current,i.peek(),e.renderOrder.peek(),e.depthTest.peek()),x()}}function JY(t,e,n,r,i,s){if(i instanceof Pi){const o=2*Math.tan(Math.PI*i.fov/360)*r;n.value=o/s,e.value=o,t.value=o*i.aspect}if(i instanceof wA){const o=i.top-i.bottom,a=i.right-i.left;n.value=o/s,e.value=o,t.value=a}}function YY(t,{src:e,autoplay:n,loop:r,muted:i,playbackRate:s,preservesPitch:o,volume:a}){if(!(e instanceof HTMLElement)){if(n&&(t.remove(),document.body.append(t),t.style.position="absolute",t.style.width="1px",t.style.zIndex="-1000",t.style.top="0px",t.style.left="0px"),t.playsInline=!0,t.volume=a??1,t.preservesPitch=o??!0,t.playbackRate=s??1,t.muted=i??!1,t.loop=r??!1,t.autoplay=n??!1,e==null){t.removeAttribute("src"),t.removeAttribute("srcObject");return}typeof e=="string"?t.src=e:t.srcObject=e}}function XY(t,e){let n;const r=()=>{e(),n=t.requestVideoFrameCallback(r)};return n=t.requestVideoFrameCallback(r),()=>t.cancelVideoFrameCallback(n)}function Nu(t,e){e.push(()=>()=>jL(t))}function qY(t,e,n,r,i,s){let o=!1;GC(e,n,r,l=>{"hover"in l&&(o=!0)});const a=(e==null?void 0:e.cursor)??(n==null?void 0:n.cursor)??s;if(!o&&(e==null?void 0:e.onHoverChange)==null&&(n==null?void 0:n.onHoverChange)==null&&a==null){i.value.length=0;return}Np("onPointerOver",t,({pointerId:l})=>{var c,p;i.value=[l,...i.value],i.value.length===1&&((c=n==null?void 0:n.onHoverChange)==null||c.call(n,!0),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!0)),a!=null&&KY(i,a)}),Np("onPointerOut",t,({pointerId:l})=>{var c,p;i.value=i.value.filter(d=>d!=l),i.value.length===0&&((c=n==null?void 0:n.onHoverChange)==null||c.call(n,!1),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!1)),jL(i)})}function Ou(t){return{hover:D0(()=>t.value.length>0)}}const XS=[],a1=[];function KY(t,e){XS.push(t),a1.push(e),document.body.style.cursor=e}function jL(t){const e=XS.indexOf(t);e!=-1&&(XS.splice(e,1),a1.splice(e,1),document.body.style.cursor=a1[a1.length-1]??"default")}var gF={},ZY=Object.create,qC=Object.defineProperty,$Y=Object.getOwnPropertyDescriptor,eX=Object.getOwnPropertyNames,tX=Object.getPrototypeOf,nX=Object.prototype.hasOwnProperty,w0=(t,e)=>()=>(t&&(e=t(t=0)),e),wt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),KC=(t,e)=>{for(var n in e)qC(t,n,{get:e[n],enumerable:!0})},JL=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of eX(e))!nX.call(t,i)&&i!==n&&qC(t,i,{get:()=>e[i],enumerable:!(r=$Y(e,i))||r.enumerable});return t},Yi=(t,e,n)=>(n=t!=null?ZY(tX(t)):{},JL(e||!t||!t.__esModule?qC(n,"default",{value:t,enumerable:!0}):n,t)),Xp=t=>JL(qC({},"__esModule",{value:!0}),t),YL,rX=w0(()=>{YL=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} +`)&&r.push({charLength:0,nonWhitespaceWidth:0,whitespacesBetween:0,charIndexOffset:s.length,nonWhitespaceCharLength:0}),{lines:r,availableHeight:n,availableWidth:e,...t}}const uF=new gn,fY=new gn;function WL(t){return Vn(()=>({font:t.value}))}class AY{constructor(e,n,r,i,s){Ke(this,"group");Ke(this,"baseMatrix");Ke(this,"color");Ke(this,"opacity");Ke(this,"clippingRect");Ke(this,"index");Ke(this,"hidden",!0);Ke(this,"glyphInfo");Ke(this,"x",0);Ke(this,"y",0);Ke(this,"fontSize",0);Ke(this,"pixelSize",0);this.group=e,this.baseMatrix=n,this.color=r,this.opacity=i,this.clippingRect=s}getX(e){return this.glyphInfo==null?this.x:this.x+e*this.glyphInfo.width*this.fontSize}show(){this.hidden&&(this.hidden=!1,this.group.requestActivate(this))}hide(){this.hidden||(this.hidden=!0,this.group.delete(this))}activate(e){this.index=e,this.writeUpdatedMatrix(),this.writeUV(),this.updateColor(this.color),this.updateOpacity(this.opacity),this.updateClippingRect(this.clippingRect)}setIndex(e){this.index=e}updateClippingRect(e){if(this.clippingRect=e,this.index==null)return;const n=this.index*16,{instanceClipping:r,root:i}=this.group;this.clippingRect==null?r.set(z1,n):this.clippingRect.toArray(r.array,n),r.addUpdateRange(n,16),r.needsUpdate=!0,i.requestRender()}updateColor(e){if(this.color=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=n.itemSize*this.index;r0(n.array,i,e,void 0),n.addUpdateRange(i,3),n.needsUpdate=!0,r.requestRender()}updateOpacity(e){if(this.opacity=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=this.index*4+3;n.array[i]=e,n.addUpdateRange(i,1),n.needsUpdate=!0,r.requestRender()}updateGlyphAndTransformation(e,n,r,i,s){this.glyphInfo===e&&this.x===n&&this.y===r&&this.fontSize===i&&this.pixelSize===s||(this.glyphInfo!=e&&(this.glyphInfo=e,this.writeUV()),this.x=n,this.y=r,this.fontSize=i,this.pixelSize=s,this.writeUpdatedMatrix())}updateBaseMatrix(e){this.baseMatrix!==e&&(this.baseMatrix=e,this.writeUpdatedMatrix())}writeUV(){if(this.index==null||this.glyphInfo==null)return;const e=this.index*4,{instanceUV:n,root:r}=this.group;hY(this.glyphInfo,n.array,e),n.addUpdateRange(e,4),n.needsUpdate=!0,r.requestRender()}writeUpdatedMatrix(){if(this.index==null||this.glyphInfo==null||this.baseMatrix==null)return;const e=this.index*16,{instanceMatrix:n,root:r}=this.group;n.addUpdateRange(e,16),uF.makeTranslation(this.x*this.pixelSize,this.y*this.pixelSize,0).multiply(fY.makeScale(this.fontSize*this.glyphInfo.width*this.pixelSize,this.fontSize*this.glyphInfo.height*this.pixelSize,1)).premultiply(this.baseMatrix),uF.toArray(n.array,e),n.needsUpdate=!0,r.requestRender()}}const gY="middle",mY="left";function VL(t,e,n,r,i,s,o,a,l,c,p,d,A,y,C,x){let D={current:void 0};const I=pY(t,l,e,D,x),B=nr(t,"verticalAlign",gY),w=nr(t,"textAlign",mY),_=nr(t,"color",0),F=nr(t,"opacity",1),P=sn(void 0);return C.push(()=>tn(()=>{var N;return(N=r.value)==null?void 0:N.addLayoutChangeListener(()=>{const U=D.current,{size:{value:q},paddingInset:{value:L},borderInset:{value:z}}=i;if(U==null||q==null||L==null||z==null)return;const[ue,ve]=q,[ne,_e,Ie,Ge]=L,[re,fe,Ee,de]=z,Ue=ue-_e-Ge-fe-de,Se=ve-ne-Ie-re-Ee;P.value=dY(U,Ue,Se)})}),()=>tn(()=>{const N=l.value;if(N==null||a.value==null)return;const U=new EY(c.getGroup(a.value.majorIndex,N),w,B,_,F,P,n,s,o,p,d,A);return y!=null&&(y.current=U),()=>U.destroy()})),I}const yY=[];class EY{constructor(e,n,r,i,s,o,a,l,c,p,d,A){Ke(this,"group");Ke(this,"textAlign");Ke(this,"verticalAlign");Ke(this,"color");Ke(this,"opacity");Ke(this,"layoutSignal");Ke(this,"matrix");Ke(this,"parentClippingRect");Ke(this,"selectionRange");Ke(this,"selectionBoxes");Ke(this,"caretPosition");Ke(this,"glyphLines",[]);Ke(this,"lastLayout");Ke(this,"unsubscribeInitialList",[]);Ke(this,"unsubscribeShowList",[]);this.group=e,this.textAlign=n,this.verticalAlign=r,this.color=i,this.opacity=s,this.layoutSignal=o,this.matrix=a,this.parentClippingRect=c,this.selectionRange=p,this.selectionBoxes=d,this.caretPosition=A,this.unsubscribeInitialList=[tn(()=>{if(!l.value||s.value<.01){this.hide();return}this.show()}),tn(()=>this.updateSelectionBoxes(this.lastLayout,p==null?void 0:p.value,r.peek(),n.peek()))]}getCharIndex(e,n){const r=this.lastLayout;if(r==null)return 0;n-=-PE(r,this.verticalAlign.peek());const i=Math.floor(n/-_E(r.lineHeight,r.fontSize)),s=r.lines;if(i<0||s.length===0)return 0;if(i>=s.length){const p=s[s.length-1];return p.charIndexOffset+p.charLength+1}const o=s[i],a=r.font.getGlyphInfo(" ").xadvance*r.fontSize,l=this.glyphLines[i];let c=l.length;for(let p=0;p=d.charIndexOffset+d.charLength)continue;const A=this.glyphLines[p][Math.max(r-d.charIndexOffset,0)];return{lineIndex:p,x:this.getGlyphX(A,i?0:1,s)}}const l=e[a-1];if(l.charLength===0)return{lineIndex:a-1,x:cF(n,l.nonWhitespaceWidth,o)-n/2};const c=this.glyphLines[a-1][l.charLength-1];return{lineIndex:a-1,x:this.getGlyphX(c,1,s)}}getGlyphX(e,n,r){return typeof e=="number"?e+n*r:e.getX(n)}show(){this.unsubscribeShowList.length>0||(hp(this.glyphLines,e=>e.show()),this.unsubscribeShowList.push(tn(()=>{const e=this.matrix.value;e!=null&&hp(this.glyphLines,n=>n.updateBaseMatrix(e))}),tn(()=>{var n;const e=(n=this.parentClippingRect)==null?void 0:n.value;hp(this.glyphLines,r=>r.updateClippingRect(e))}),tn(()=>{const e=this.color.value;hp(this.glyphLines,n=>n.updateColor(e))}),tn(()=>{const e=this.opacity.value;hp(this.glyphLines,n=>n.updateOpacity(e))}),tn(()=>{var A,y;const e=this.layoutSignal.value;if(e==null)return;const{text:n,font:r,lines:i,letterSpacing:s=0,fontSize:o=16,lineHeight:a=1.2,availableWidth:l}=e;let c=PE(e,this.verticalAlign.value)-e.availableHeight/2;const p=i.length,d=this.group.pixelSize.value;for(let C=0;CB+I){P=ve.id;const Ie=F+aF(r,o,ve,P);typeof N[z]=="number"?N[z]=F:N.splice(z,0,Ie),F+=_+i0(o,ve,s);continue}let ne=N[z];for(;zC.hide(),p),this.glyphLines.length=p,this.lastLayout=e,this.updateSelectionBoxes(e,(y=this.selectionRange)==null?void 0:y.peek(),this.verticalAlign.value,this.textAlign.value)})))}hide(){const e=this.unsubscribeShowList.length;if(e!==0){for(let n=0;nn.hide())}}destroy(){this.hide(),this.glyphLines.length=0;const e=this.unsubscribeInitialList.length;for(let n=0;nkl(p,B,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,id(),P));const w=HL(p,n,t.root.renderer,c),_=ws(void 0,Ji.Text,WL(w),B),F=VL(p,e,C,d,A,D,t.clippingRect,_,w,t.root.gylphGroupManager,void 0,void 0,void 0,void 0,c,"break-word");return c.push(()=>tn(()=>{var P;return(P=d.value)==null?void 0:P.setCustomLayouting(F.value)})),bu(r,i,A.size,c),mh(r,i,x,c),Object.assign(A,{isClipped:x,mergedProperties:p,interactionPanel:sd(B,t.root,t.clippingRect,A.size,c),handlers:Qu(r,i,s,a,l),initializers:c})}const vY=ni;class QA extends Eo{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,n,r,i){const s=this,o=new Pl(s.manager);o.setPath(s.path),o.setRequestHeader(s.requestHeader),o.setWithCredentials(s.withCredentials),o.load(e,function(a){try{n(s.parse(a))}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},r,i)}parse(e){const n=this;function r(K,se){if(K.nodeType!==1)return;const Y=_(K);let Z=!1,Le=null;switch(K.nodeName){case"svg":se=C(K,se);break;case"style":s(K);break;case"g":se=C(K,se);break;case"path":se=C(K,se),K.hasAttribute("d")&&(Le=i(K));break;case"rect":se=C(K,se),Le=l(K);break;case"polygon":se=C(K,se),Le=c(K);break;case"polyline":se=C(K,se),Le=p(K);break;case"circle":se=C(K,se),Le=d(K);break;case"ellipse":se=C(K,se),Le=A(K);break;case"line":se=C(K,se),Le=y(K);break;case"defs":Z=!0;break;case"use":se=C(K,se);const Ve=(K.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),oe=K.viewportElement.getElementById(Ve);oe?r(oe,se):console.warn("SVGLoader: 'use node' references non-existent node id: "+Ve);break}Le&&(se.fill!==void 0&&se.fill!=="none"&&Le.color.setStyle(se.fill,vY),P(Le,de),ue.push(Le),Le.userData={node:K,style:se});const ze=K.childNodes;for(let Fe=0;Fe0?de.copy(ne[ne.length-1]):de.identity())}function i(K){const se=new _c,Y=new st,Z=new st,Le=new st;let ze=!0,Fe=!1;const Ve=K.getAttribute("d");if(Ve===""||Ve==="none")return null;const oe=Ve.match(/[a-df-z][^a-df-z]*/ig);for(let Ne=0,we=oe.length;Ne0&&(Y.copy(Le),se.currentPath.currentPoint.copy(Y),ze=!0);break;default:console.warn(je)}Fe=!1}return se}function s(K){if(!(!K.sheet||!K.sheet.cssRules||!K.sheet.cssRules.length))for(let se=0;seLe.trim());for(let Le=0;LeFe!==""));ve[Z[Le]]=Object.assign(ve[Z[Le]]||{},ze)}}}function o(K,se,Y,Z,Le,ze,Fe,Ve){if(se==0||Y==0){K.lineTo(Ve.x,Ve.y);return}Z=Z*Math.PI/180,se=Math.abs(se),Y=Math.abs(Y);const oe=(Fe.x-Ve.x)/2,Ne=(Fe.y-Ve.y)/2,we=Math.cos(Z)*oe+Math.sin(Z)*Ne,je=-Math.sin(Z)*oe+Math.cos(Z)*Ne;let He=se*se,lt=Y*Y;const De=we*we,W=je*je,$=De/He+W/lt;if($>1){const mt=Math.sqrt($);se=mt*se,Y=mt*Y,He=se*se,lt=Y*Y}const Oe=He*W+lt*De,ft=(He*lt-Oe)/Oe;let pt=Math.sqrt(Math.max(0,ft));Le===ze&&(pt=-pt);const ut=pt*se*je/Y,Ot=-pt*Y*we/se,_t=Math.cos(Z)*ut-Math.sin(Z)*Ot+(Fe.x+Ve.x)/2,Nt=Math.sin(Z)*ut+Math.cos(Z)*Ot+(Fe.y+Ve.y)/2,Ft=a(1,0,(we-ut)/se,(je-Ot)/Y),Pt=a((we-ut)/se,(je-Ot)/Y,(-we-ut)/se,(-je-Ot)/Y)%(Math.PI*2);K.currentPath.absellipse(_t,Nt,se,Y,Ft,Ft+Pt,ze===0,Z)}function a(K,se,Y,Z){const Le=K*Y+se*Z,ze=Math.sqrt(K*K+se*se)*Math.sqrt(Y*Y+Z*Z);let Fe=Math.acos(Math.max(-1,Math.min(1,Le/ze)));return K*Z-se*Y<0&&(Fe=-Fe),Fe}function l(K){const se=w(K.getAttribute("x")||0),Y=w(K.getAttribute("y")||0),Z=w(K.getAttribute("rx")||K.getAttribute("ry")||0),Le=w(K.getAttribute("ry")||K.getAttribute("rx")||0),ze=w(K.getAttribute("width")),Fe=w(K.getAttribute("height")),Ve=1-.551915024494,oe=new _c;return oe.moveTo(se+Z,Y),oe.lineTo(se+ze-Z,Y),(Z!==0||Le!==0)&&oe.bezierCurveTo(se+ze-Z*Ve,Y,se+ze,Y+Le*Ve,se+ze,Y+Le),oe.lineTo(se+ze,Y+Fe-Le),(Z!==0||Le!==0)&&oe.bezierCurveTo(se+ze,Y+Fe-Le*Ve,se+ze-Z*Ve,Y+Fe,se+ze-Z,Y+Fe),oe.lineTo(se+Z,Y+Fe),(Z!==0||Le!==0)&&oe.bezierCurveTo(se+Z*Ve,Y+Fe,se,Y+Fe-Le*Ve,se,Y+Fe-Le),oe.lineTo(se,Y+Le),(Z!==0||Le!==0)&&oe.bezierCurveTo(se,Y+Le*Ve,se+Z*Ve,Y,se+Z,Y),oe}function c(K){function se(ze,Fe,Ve){const oe=w(Fe),Ne=w(Ve);Le===0?Z.moveTo(oe,Ne):Z.lineTo(oe,Ne),Le++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,Z=new _c;let Le=0;return K.getAttribute("points").replace(Y,se),Z.currentPath.autoClose=!0,Z}function p(K){function se(ze,Fe,Ve){const oe=w(Fe),Ne=w(Ve);Le===0?Z.moveTo(oe,Ne):Z.lineTo(oe,Ne),Le++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,Z=new _c;let Le=0;return K.getAttribute("points").replace(Y,se),Z.currentPath.autoClose=!1,Z}function d(K){const se=w(K.getAttribute("cx")||0),Y=w(K.getAttribute("cy")||0),Z=w(K.getAttribute("r")||0),Le=new Kc;Le.absarc(se,Y,Z,0,Math.PI*2);const ze=new _c;return ze.subPaths.push(Le),ze}function A(K){const se=w(K.getAttribute("cx")||0),Y=w(K.getAttribute("cy")||0),Z=w(K.getAttribute("rx")||0),Le=w(K.getAttribute("ry")||0),ze=new Kc;ze.absellipse(se,Y,Z,Le,0,Math.PI*2);const Fe=new _c;return Fe.subPaths.push(ze),Fe}function y(K){const se=w(K.getAttribute("x1")||0),Y=w(K.getAttribute("y1")||0),Z=w(K.getAttribute("x2")||0),Le=w(K.getAttribute("y2")||0),ze=new _c;return ze.moveTo(se,Y),ze.lineTo(Z,Le),ze.currentPath.autoClose=!1,ze}function C(K,se){se=Object.assign({},se);let Y={};if(K.hasAttribute("class")){const Fe=K.getAttribute("class").split(/\s/).filter(Boolean).map(Ve=>Ve.trim());for(let Ve=0;Ve0&&se.premultiply(ne[ne.length-1]),de.copy(se),ne.push(se),se}function F(K){const se=new Qn,Y=_e;if(K.nodeName==="use"&&(K.hasAttribute("x")||K.hasAttribute("y"))){const Z=w(K.getAttribute("x")),Le=w(K.getAttribute("y"));se.translate(Z,Le)}if(K.hasAttribute("transform")){const Z=K.getAttribute("transform").split(")");for(let Le=Z.length-1;Le>=0;Le--){const ze=Z[Le].trim();if(ze==="")continue;const Fe=ze.indexOf("("),Ve=ze.length;if(Fe>0&&Fe=1){const we=Ne[0];let je=0;Ne.length>=2&&(je=Ne[1]),Y.translate(we,je)}break;case"rotate":if(Ne.length>=1){let we=0,je=0,He=0;we=Ne[0]*Math.PI/180,Ne.length>=3&&(je=Ne[1],He=Ne[2]),Ie.makeTranslation(-je,-He),Ge.makeRotation(we),re.multiplyMatrices(Ge,Ie),Ie.makeTranslation(je,He),Y.multiplyMatrices(Ie,re)}break;case"scale":if(Ne.length>=1){const we=Ne[0];let je=we;Ne.length>=2&&(je=Ne[1]),Y.scale(we,je)}break;case"skewX":Ne.length===1&&Y.set(1,Math.tan(Ne[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":Ne.length===1&&Y.set(1,0,0,Math.tan(Ne[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":Ne.length===6&&Y.set(Ne[0],Ne[2],Ne[4],Ne[1],Ne[3],Ne[5],0,0,1);break}}se.premultiply(Y)}}return se}function P(K,se){function Y(Fe){Ee.set(Fe.x,Fe.y,1).applyMatrix3(se),Fe.set(Ee.x,Ee.y)}function Z(Fe){const Ve=Fe.xRadius,oe=Fe.yRadius,Ne=Math.cos(Fe.aRotation),we=Math.sin(Fe.aRotation),je=new ae(Ve*Ne,Ve*we,0),He=new ae(-oe*we,oe*Ne,0),lt=je.applyMatrix3(se),De=He.applyMatrix3(se),W=_e.set(lt.x,De.x,0,lt.y,De.y,0,0,0,1),$=Ie.copy(W).invert(),pt=Ge.copy($).transpose().multiply($).elements,ut=z(pt[0],pt[1],pt[4]),Ot=Math.sqrt(ut.rt1),_t=Math.sqrt(ut.rt2);if(Fe.xRadius=1/Ot,Fe.yRadius=1/_t,Fe.aRotation=Math.atan2(ut.sn,ut.cs),!((Fe.aEndAngle-Fe.aStartAngle)%(2*Math.PI){const{x:ln,y:Zt}=new ae(Math.cos(Dn),Math.sin(Dn),0).applyMatrix3(mt);return Math.atan2(Zt,ln)};Fe.aStartAngle=kn(Fe.aStartAngle),Fe.aEndAngle=kn(Fe.aEndAngle),N(se)&&(Fe.aClockwise=!Fe.aClockwise)}}function Le(Fe){const Ve=q(se),oe=L(se);Fe.xRadius*=Ve,Fe.yRadius*=oe;const Ne=Ve>Number.EPSILON?Math.atan2(se.elements[1],se.elements[0]):Math.atan2(-se.elements[3],se.elements[4]);Fe.aRotation+=Ne,N(se)&&(Fe.aStartAngle*=-1,Fe.aEndAngle*=-1,Fe.aClockwise=!Fe.aClockwise)}const ze=K.subPaths;for(let Fe=0,Ve=ze.length;FeNumber.EPSILON}function q(K){const se=K.elements;return Math.sqrt(se[0]*se[0]+se[1]*se[1])}function L(K){const se=K.elements;return Math.sqrt(se[3]*se[3]+se[4]*se[4])}function z(K,se,Y){let Z,Le,ze,Fe,Ve;const oe=K+Y,Ne=K-Y,we=Math.sqrt(Ne*Ne+4*se*se);return oe>0?(Z=.5*(oe+we),Ve=1/Z,Le=K*Ve*Y-se*Ve*se):oe<0?Le=.5*(oe-we):(Z=.5*we,Le=-.5*we),Ne>0?ze=Ne+we:ze=Ne-we,Math.abs(ze)>2*Math.abs(se)?(Ve=-2*se/ze,Fe=1/Math.sqrt(1+Ve*Ve),ze=Ve*Fe):Math.abs(se)===0?(ze=1,Fe=0):(Ve=-.5*ze/se,ze=1/Math.sqrt(1+Ve*Ve),Fe=Ve*ze),Ne>0&&(Ve=ze,ze=-Fe,Fe=Ve),{rt1:Z,rt2:Le,cs:ze,sn:Fe}}const ue=[],ve={},ne=[],_e=new Qn,Ie=new Qn,Ge=new Qn,re=new Qn,fe=new st,Ee=new ae,de=new Qn,Ue=new DOMParser().parseFromString(e,"image/svg+xml");return r(Ue.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:ue,xml:Ue.documentElement}}static createShapes(e){const r={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:r.ORIGIN,t:0};function s(x,D,I,B){const w=x.x,_=D.x,F=I.x,P=B.x,N=x.y,U=D.y,q=I.y,L=B.y,z=(P-F)*(N-q)-(L-q)*(w-F),ue=(_-w)*(N-q)-(U-N)*(w-F),ve=(L-q)*(_-w)-(P-F)*(U-N),ne=z/ve,_e=ue/ve;if(ve===0&&z!==0||ne<=0||ne>=1||_e<0||_e>1)return null;if(z===0&&ve===0){for(let Ie=0;Ie<2;Ie++)if(o(Ie===0?I:B,x,D),i.loc==r.ORIGIN){const Ge=Ie===0?I:B;return{x:Ge.x,y:Ge.y,t:i.t}}else if(i.loc==r.BETWEEN){const Ge=+(w+i.t*(_-w)).toPrecision(10),re=+(N+i.t*(U-N)).toPrecision(10);return{x:Ge,y:re,t:i.t}}return null}else{for(let re=0;re<2;re++)if(o(re===0?I:B,x,D),i.loc==r.ORIGIN){const fe=re===0?I:B;return{x:fe.x,y:fe.y,t:i.t}}const Ie=+(w+ne*(_-w)).toPrecision(10),Ge=+(N+ne*(U-N)).toPrecision(10);return{x:Ie,y:Ge,t:ne}}}function o(x,D,I){const B=I.x-D.x,w=I.y-D.y,_=x.x-D.x,F=x.y-D.y,P=B*F-_*w;if(x.x===D.x&&x.y===D.y){i.loc=r.ORIGIN,i.t=0;return}if(x.x===I.x&&x.y===I.y){i.loc=r.DESTINATION,i.t=1;return}if(P<-Number.EPSILON){i.loc=r.LEFT;return}if(P>Number.EPSILON){i.loc=r.RIGHT;return}if(B*_<0||w*F<0){i.loc=r.BEHIND;return}if(Math.sqrt(B*B+w*w)L.t<=q.t+Number.EPSILON&&L.t>=q.t-Number.EPSILON)===void 0&&(I.push(q),B.push(new st(q.x,q.y)))}}return B}function l(x,D,I){const B=new st;D.getCenter(B);const w=[];return I.forEach(_=>{_.boundingBox.containsPoint(B)&&a(x,_.points).forEach(P=>{w.push({identifier:_.identifier,isCW:_.isCW,point:P})})}),w.sort((_,F)=>_.point.x-F.point.x),w}function c(x,D,I,B,w){(w==null||w==="")&&(w="nonzero");const _=new st;x.boundingBox.getCenter(_);const F=[new st(I,_.y),new st(B,_.y)],P=l(F,x.boundingBox,D);P.sort((ue,ve)=>ue.point.x-ve.point.x);const N=[],U=[];P.forEach(ue=>{ue.identifier===x.identifier?N.push(ue):U.push(ue)});const q=N[0].point.x,L=[];let z=0;for(;z0&&L[L.length-1]===U[z].identifier?L.pop():L.push(U[z].identifier),z++;if(L.push(x.identifier),w==="evenodd"){const ue=L.length%2===0,ve=L[L.length-2];return{identifier:x.identifier,isHole:ue,for:ve}}else if(w==="nonzero"){let ue=!0,ve=null,ne=null;for(let _e=0;_e{const D=x.getPoints();let I=-999999999,B=999999999,w=-999999999,_=999999999;for(let F=0;FI&&(I=P.y),P.yw&&(w=P.x),P.x<_&&(_=P.x)}return d<=w&&(d=w+1),p>=_&&(p=_-1),{curves:x.curves,points:D,isCW:Ka.isClockWise(D),identifier:-1,boundingBox:new kR(new st(_,B),new st(w,I))}});A=A.filter(x=>x.points.length>1);for(let x=0;xc(x,A,p,d,e.userData?e.userData.style.fillRule:void 0)),C=[];return A.forEach(x=>{if(!y[x.identifier].isHole){const I=new Zc;I.curves=x.curves,y.filter(w=>w.isHole&&w.for===x.identifier).forEach(w=>{const _=A[w.identifier],F=new Kc;F.curves=_.curves,I.holes.push(F)}),C.push(I)}}),C}static getStrokeStyle(e,n,r,i,s){return e=e!==void 0?e:1,n=n!==void 0?n:"#000",r=r!==void 0?r:"miter",i=i!==void 0?i:"butt",s=s!==void 0?s:4,{strokeColor:n,strokeWidth:e,strokeLineJoin:r,strokeLineCap:i,strokeMiterLimit:s}}static pointsToStroke(e,n,r,i){const s=[],o=[],a=[];if(QA.pointsToStrokeWithBuffers(e,n,r,i,s,o,a)===0)return null;const l=new Gn;return l.setAttribute("position",new hn(s,3)),l.setAttribute("normal",new hn(o,3)),l.setAttribute("uv",new hn(a,2)),l}static pointsToStrokeWithBuffers(e,n,r,i,s,o,a,l){const c=new st,p=new st,d=new st,A=new st,y=new st,C=new st,x=new st,D=new st,I=new st,B=new st,w=new st,_=new st,F=new st,P=new st,N=new st,U=new st,q=new st;r=r!==void 0?r:12,i=i!==void 0?i:.001,l=l!==void 0?l:0,e=Ne(e);const L=e.length;if(L<2)return 0;const z=e[0].equals(e[L-1]);let ue,ve=e[0],ne;const _e=n.strokeWidth/2,Ie=1/(L-1);let Ge=0,re,fe,Ee,de,Ue=!1,Se=0,K=l*3,se=l*2;Y(e[0],e[1],c).multiplyScalar(_e),D.copy(e[0]).sub(c),I.copy(e[0]).add(c),B.copy(D),w.copy(I);for(let we=1;weNumber.EPSILON){const lt=_e/He;d.multiplyScalar(-lt),A.subVectors(ue,ve),y.copy(A).setLength(lt).add(d),U.copy(y).negate();const De=y.length(),W=A.length();A.divideScalar(W),C.subVectors(ne,ue);const $=C.length();switch(C.divideScalar($),A.dot(U)=i&&He.push(we[lt]);return He.push(we[we.length-1]),He}}}function xY(t,e,n,r,i,s){const o=[],a=sn([]),l=sn([]);Nu(a,o);const c=sn(void 0),p=ku(e,n,r,{...Lu,...Ru(t.root.size),...Ou(a),...Fu(l)},zC,ue=>ue.add("aspectRatio",c)),d=sn(void 0),A=_u();Ch(d,A,t,p,i,!0,o);const y=Tu(p,A,t.root.pixelSize);Mu(t.root,i,y,o);const C=Eh(t.childrenMatrix,y),x=yh(t.clippingRect,C,A.size,t.root.pixelSize),D=Pu(A,x,p),I=od(p),B=ws(p,Ji.Panel,I,t.orderInfo);o.push(ue=>kl(p,B,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,id(),ue));const w=ws(void 0,Ji.Svg,void 0,B),_=Vn(()=>{var ue,ve;return Bs((ue=e.value)==null?void 0:ue.src)??Bs((ve=n.value)==null?void 0:ve.src)}),F=sn(void 0),P=S0(t.root,t.clippingRect);CL(F,SY,AJ,o,_,t.root,P,t.clippingRect,w,c),vL(p,F,o,t.root);const N=IY(t.root,A,F,c,D,o),U=VC();JC(s,U,t.root.pixelSize,o);const q=jC(U,C,t.root.pixelSize);XC(p,U,A,C,D,t.clippingRect,w,t.root.panelGroupManager,o);const L=sd(w,t.root,t.clippingRect,A.size,o),z=YC(U,t.anyAncestorScrollable,A,i,L,n,t.root,o);return bu(e,n,A.size,o),mh(e,n,x,o),Object.assign(A,{scrollPosition:U,isClipped:x,mergedProperties:p,anyAncestorScrollable:Kw(A.scrollable,t.anyAncestorScrollable),clippingRect:HC(C,A,t.root.pixelSize,t.clippingRect),childrenMatrix:q,node:d,orderInfo:w,root:t.root,initializers:o,centerGroup:N,handlers:Qu(e,n,r,a,l,z),interactionPanel:L})}function IY(t,e,n,r,i,s){const o=new gu;return o.matrixAutoUpdate=!1,s.push(()=>tn(()=>{AL(o.position,o.scale,e.size,e.paddingInset,e.borderInset,t.pixelSize.value,r.value??1),o.updateMatrix(),t.requestRender()}),()=>tn(()=>{const a=n.value;if(a!=null)return o.add(a),t.requestRender(),()=>{o.remove(a),t.requestRender()}}),()=>tn(()=>{o.visible=n.value!=null&&i.value,t.requestRender()})),o}const DY=new QA,QE=new Wi,pp=new ae,hF=new Map;async function SY(t,e,n,r,i,s){if(t==null)return;const o=new gu;o.matrixAutoUpdate=!1;let a=hF.get(t);a==null&&hF.set(t,a=await DY.loadAsync(t)),QE.makeEmpty();for(const c of a.paths){const p=QA.createShapes(c),d=new Lo;d.transparent=!0,d.depthWrite=!1,d.toneMapped=!1,d.clippingPlanes=n;for(const A of p){const y=new MA(A);y.computeBoundingBox(),QE.union(y.boundingBox);const C=new gr(y,d);C.matrixAutoUpdate=!1,C.raycast=sh(C,C.raycast,e.object,r,i),rd(C,e,i),C.userData.color=c.color,C.scale.y=-1,C.updateMatrix(),o.add(C)}}QE.getSize(pp),s.value=pp.x/pp.y;const l=1/pp.y;return o.scale.set(1,1,1).multiplyScalar(l),QE.getCenter(pp),pp.y*=-1,o.position.copy(pp).negate().multiplyScalar(l),o.updateMatrix(),o}function BY(t,e,n,r,i,s,o,a){const l=[],c=sn([]),p=sn([]);Nu(c,l);const d=ku(i,s,o,{...Lu,...Ru(t.root.size),...Ou(c),...Fu(p)},zC,P=>{P.add("aspectRatio",n/r),P.add("width",n),P.add("height",r)}),A=_u();Ch(void 0,A,t,d,a,!0,l);const y=Tu(d,A,t.root.pixelSize);Mu(t.root,a,y,l);const C=Eh(t.childrenMatrix,y),x=yh(t.clippingRect,C,A.size,t.root.pixelSize),D=Pu(A,x,d),I=od(d),B=ws(d,Ji.Panel,I,t.orderInfo);l.push(P=>kl(d,B,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,id(),P));const w=ws(void 0,Ji.Svg,void 0,B),_=S0(t.root,t.clippingRect),F=bY(d,e,n,r,t,w,A,D,_,l);return bu(i,s,A.size,l),mh(i,s,x,l),Object.assign(A,{isClipped:x,mergedProperties:d,initializers:l,iconGroup:F,handlers:Qu(i,s,o,c,p),interactionPanel:sd(w,t.root,t.clippingRect,A.size,l)})}const wY=new QA;function bY(t,e,n,r,i,s,o,a,l,c){const p=new gu;p.matrixAutoUpdate=!1;const d=wY.parse(e);for(const y of d.paths){const C=QA.createShapes(y),x=new Lo;x.transparent=!0,x.depthWrite=!1,x.toneMapped=!1,x.clippingPlanes=l;for(const D of C){const I=new MA(D);I.computeBoundingBox();const B=new gr(I,x);B.matrixAutoUpdate=!1,B.raycast=sh(B,B.raycast,i.root.object,i.clippingRect,s),rd(B,i.root,s),B.userData.color=y.color,B.scale.y=-1,B.updateMatrix(),p.add(B)}}const A=n/r;return c.push(()=>tn(()=>{AL(p.position,p.scale,o.size,o.paddingInset,o.borderInset,i.root.pixelSize.value,A),p.position.x-=p.scale.x*A/2,p.position.y+=p.scale.x/2,p.scale.divideScalar(r),p.updateMatrix(),i.root.requestRender()}),()=>tn(()=>{p.visible=a.value,i.root.requestRender()})),vL(t,p,c,i.root),p}const TY=["caretBorderRightWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderBottomWidth"];let pF;function MY(){return pF??(pF=B0({backgroundColor:"caretColor",backgroundOpacity:"caretOpacity",borderBend:"caretBorderBend",borderBottomLeftRadius:"caretBorderBottomLeftRadius",borderBottomRightRadius:"caretBorderBottomRightRadius",borderColor:"caretBorderColor",borderOpacity:"caretBorderOpacity",borderTopLeftRadius:"caretBorderTopLeftRadius",borderTopRightRadius:"caretBorderTopRightRadius"},{backgroundColor:0,backgroundOpacity:1})),pF}function _Y(t,e,n,r,i,s,o,a){const l=ws(void 0,Ji.Panel,WC,i),c=sn(void 0);a.push(()=>tn(()=>{const A=n.value;A==null&&(c.value=void 0),c.value=A;const y=setInterval(()=>c.value=c.peek()==null?A:void 0,500);return()=>clearInterval(y)}));const p=Jw(t,TY),d=nr(t,"caretWidth",1.5);a.push(A=>kl(t,l,void 0,o,e,Vn(()=>{const y=c.value;return y==null?[0,0]:[d.value,y[2]]}),Vn(()=>{const y=c.value;return y==null?[0,0]:[y[0]-d.value/2,y[1]]}),p,s,r,MY(),A))}const FY=["selectionBorderRightWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderBottomWidth"];let dF;function PY(){return dF??(dF=B0({backgroundColor:"selectionColor",backgroundOpacity:"selectionOpacity",borderBend:"selectionBorderBend",borderBottomLeftRadius:"selectionBorderBottomLeftRadius",borderBottomRightRadius:"selectionBorderBottomRightRadius",borderColor:"selectionBorderColor",borderOpacity:"selectionBorderOpacity",borderTopLeftRadius:"selectionBorderTopLeftRadius",borderTopRightRadius:"selectionBorderTopRightRadius"},{backgroundColor:11851775,backgroundOpacity:1})),dF}function QY(t,e,n,r,i,s,o,a){const l=[],c=ws(void 0,Ji.Panel,WC,i),p=Jw(t,FY);return a.push(()=>tn(()=>{const d=n.value,A=d.length;for(let C=0;C()=>{const d=l.length;for(let A=0;At.value)}}const RY=new Set;function LY(t){RY.add(t)}function NY(t,e,n,r,i,s){var de,Ue,Se,K,se,Y;const o=sn([]),a=sn([]),l=sn(!1),c=[];Nu(o,c);const p=ku(n,r,i,{...Lu,...Ru(t.root.size),...Ou(o),...Fu(a),...kY(l)},void 0,Z=>{GC(n.value,r.value,i.value,Le=>{Z.add("caretOpacity",Le.opacity),Z.add("caretColor",Le.color)})}),d=_u(),A=sn(void 0);Ch(A,d,t,p,s,!1,c);const y=Tu(p,d,t.root.pixelSize);Mu(t.root,s,y,c);const C=Eh(t.childrenMatrix,y),x=yh(t.clippingRect,C,d.size,t.root.pixelSize),D=Pu(d,x,p),I=od(p),B=ws(p,Ji.Panel,I,t.orderInfo);c.push(Z=>kl(p,B,I,t.root.panelGroupManager,C,d.size,void 0,d.borderInset,t.clippingRect,D,id(),Z));const w={},_=sn([]),F=sn(void 0),P=sn(void 0);_Y(p,C,F,D,B,t.clippingRect,t.root.panelGroupManager,c);const N=QY(p,C,_,D,B,t.clippingRect,t.root.panelGroupManager,c),U=HL(p,e,t.root.renderer,c),q=ws(void 0,Ji.Text,WL(U),N),L=((de=n.peek())==null?void 0:de.defaultValue)??((Ue=r.peek())==null?void 0:Ue.defaultValue),z=((Se=n.peek())==null?void 0:Se.value)==null&&((K=r.peek())==null?void 0:K.value)==null?sn(L??""):void 0,ue=Vn(()=>{var Z,Le;return(z==null?void 0:z.value)??Bs((Z=n.value)==null?void 0:Z.value)??Bs((Le=r.value)==null?void 0:Le.value)??""}),ve=mI(n,r,"type","text"),ne=Vn(()=>ve.value==="text"?ue.value:"*".repeat(ue.value.length??0)),_e=((se=n.peek())==null?void 0:se.multiline)??((Y=r.peek())==null?void 0:Y.multiline)??!1,Ie=VL(p,ne,C,A,d,D,t.clippingRect,q,U,t.root.gylphGroupManager,P,_,F,w,c,_e?"break-word":"keep-all");c.push(()=>tn(()=>{var Z;return(Z=A.value)==null?void 0:Z.setCustomLayouting(Ie.value)})),bu(n,r,d.size,c),mh(n,r,x,c);const Ge=mI(n,r,"disabled",!1),re=UY(ue,P,Z=>{var Le,ze,Fe,Ve;z!=null&&(z.value=Z),(ze=(Le=n.peek())==null?void 0:Le.onValueChange)==null||ze.call(Le,Z),(Ve=(Fe=r.peek())==null?void 0:Fe.onValueChange)==null||Ve.call(Fe,Z)},_e,ve,Ge,mI(n,r,"tabIndex",0),c),fe=(Z,Le,ze)=>{const Fe=re.peek();Fe!=null&&(l.peek()||Fe.focus(),Z!=null&&Le!=null&&Fe.setSelectionRange(Z,Le,ze),P.value=[Fe.selectionStart??0,Fe.selectionEnd??0])};GY(re,l,c,Z=>{var Le,ze,Fe,Ve;(ze=(Le=r.peek())==null?void 0:Le.onFocusChange)==null||ze.call(Le,Z),(Ve=(Fe=n.peek())==null?void 0:Fe.onFocusChange)==null||Ve.call(Fe,Z)});const Ee=OY(d,w,fe,Ge);return Object.assign(d,{isClipped:x,mergedProperties:p,valueSignal:ue,focus:()=>fe(),root:t.root,element:re,node:A,interactionPanel:sd(B,t.root,t.clippingRect,d.size,c),handlers:Qu(n,r,i,o,a,Ee,"text"),initializers:c})}function OY(t,e,n,r){return Vn(()=>{if(r.value)return;let i;return{onPointerDown:s=>{var a;if(s.defaultPrevented||s.uv==null||e.current==null)return;LY(s.nativeEvent),(a=s.stopPropagation)==null||a.call(s);const o=fF(t,s.uv,e.current);i=o,setTimeout(()=>n(o,o))},onPointerUp:s=>{i=void 0},onPointerLeave:s=>{i=void 0},onPointerMove:s=>{var p;if(i==null||s.uv==null||e.current==null)return;(p=s.stopPropagation)==null||p.call(s);const o=fF(t,s.uv,e.current),a=Math.min(i,o),l=Math.max(i,o),c=in(a,l,c))}}})}function UY(t,e,n,r,i,s,o,a){const l=sn(void 0);return a.push(c=>{const p=document.createElement(r?"textarea":"input"),d=p.style;d.setProperty("position","absolute"),d.setProperty("left","-1000vw"),d.setProperty("top","0"),d.setProperty("pointerEvents","none"),d.setProperty("opacity","0"),p.addEventListener("input",()=>{n==null||n(p.value),A()});const A=()=>{const{selectionStart:y,selectionEnd:C}=p;if(y==null||C==null){e.value=void 0;return}const x=e.peek();x!=null&&x[0]===y&&x[1]===C||(e.value=[y,C])};return p.addEventListener("keydown",A),p.addEventListener("keyup",A),p.addEventListener("blur",()=>e.value=void 0),document.body.appendChild(p),l.value=p,c.push(()=>{l.value=void 0,p.remove()},tn(()=>p.value=t.value),tn(()=>p.disabled=s.value),tn(()=>p.tabIndex=o.value),tn(()=>p.setAttribute("type",i.value))),c}),l}function GY(t,e,n,r){n.push(()=>tn(()=>{const i=t.value;if(i==null)return;e.value=document.activeElement===i;const s=()=>{const o=document.activeElement===i;o!=e.value&&(e.value=o,r(o))};return i.addEventListener("focus",s),i.addEventListener("blur",s),()=>{i.removeEventListener("focus",s),i.removeEventListener("blur",s)}}))}function fF({size:t,borderInset:e,paddingInset:n},r,i){const s=t.peek(),o=e.peek(),a=n.peek();if(s==null||o==null||a==null)return 0;const[l,c]=s,[p,,,d]=o,[A,,,y]=a,C=r.x*l-d-y,x=-r.y*c+p+A;return i.getCharIndex(C,x)}function HY(t,e,n,r,i,s){const o=sn([]),a=sn([]),l=[];Nu(o,l);const c=ku(e,n,r,{...Lu,...Ru(t.root.size),...Ou(o),...Fu(a)}),p=_u();Ch(void 0,p,t,c,i,!0,l);const d=Tu(c,p,t.root.pixelSize);Mu(t.root,i,d,l);const A=Eh(t.childrenMatrix,d),y=yh(t.clippingRect,A,p.size,t.root.pixelSize),C=Pu(p,y,c),x=ws(c,Ji.Custom,void 0,t.orderInfo),D=S0(t.root,t.clippingRect);return l.push(I=>{const B=s.current;if(B==null)return I;if(B.matrixAutoUpdate=!1,B.material instanceof Li){const w=B.material;w.clippingPlanes=D,w.needsUpdate=!0,w.shadowSide=xa,I.push(()=>tn(()=>{w.depthTest=t.root.depthTest.value,t.root.requestRender()}))}return B.raycast=sh(B,B.raycast,t.root.object,t.clippingRect,x),rd(B,t.root,x),I.push(tn(()=>{B.renderOrder=t.root.renderOrder.value,t.root.requestRender()}),tn(()=>{B.receiveShadow=c.value.read("receiveShadow",!1),t.root.requestRender()}),tn(()=>{B.castShadow=c.value.read("castShadow",!1),t.root.requestRender()}),tn(()=>{if(p.size.value==null)return;const[w,_]=p.size.value,F=t.root.pixelSize.value;B.scale.set(w*F,_*F,1),B.updateMatrix(),t.root.requestRender()}),tn(()=>{B.visible=C.value,t.root.requestRender()})),I}),bu(e,n,p.size,l),mh(e,n,y,l),Object.assign(p,{isClipped:y,mergedProperties:c,root:t.root,handlers:Qu(e,n,r,o,a),initializers:l})}function zY(t,e,n,r,i,s){const o=sn([]),a=sn([]),l=[],c=_u();Nu(o,l);const p=sn(new ae(1,1,1)),d=Vn(()=>p.value.x/p.value.y),A=ku(e,n,r,{...Lu,...Ru(t.root.size),...Ou(o),...Fu(a)},zC,_=>_.add("aspectRatio",d));Ch(void 0,c,t,A,i,!0,l);const y=Tu(A,c,t.root.pixelSize);Mu(t.root,i,y,l);const C=Eh(t.childrenMatrix,y),x=yh(t.clippingRect,C,c.size,t.root.pixelSize),D=Pu(c,x,A),I=od(A),B=ws(A,Ji.Panel,I,t.orderInfo);l.push(_=>kl(A,B,I,t.root.panelGroupManager,C,c.size,void 0,c.borderInset,t.clippingRect,D,id(),_));const w=ws(void 0,Ji.Object,void 0,B);return bu(e,n,c.size,l),mh(e,n,x,l),Object.assign(c,{isClipped:x,mergedProperties:A,remeasureContent:jY(A,t.root,c,t.clippingRect,D,w,p,s,l),interactionPanel:sd(B,t.root,t.clippingRect,c.size,l),handlers:Qu(e,n,r,o,a),initializers:l})}const kI=new Wi,AF=new ae().setScalar(.001),WY=new ae,VY="back";function jY(t,e,n,r,i,s,o,a,l){const c=S0(e,r),p=nr(t,"depthAlign",VY),d=nr(t,"keepAspectRatio",!0),A=new ae,y=new ae,C=(D,I,B,w)=>{D!=null&&(D.visible=I,D.traverse(_=>{_ instanceof gr&&(_.renderOrder=B,_.material instanceof Li&&(_.material.depthTest=w))}),e.requestRender())},x=()=>{const D=a.current;if(D==null){A.copy(AF),y.set(0,0,0);return}D.traverse(B=>{B instanceof gr&&(rd(B,e,s),B.material.clippingPlanes=c,B.material.needsUpdate=!0,B.raycast=sh(B,B.raycast,e.object,r,s))});const I=D.parent;D.parent=null,kI.setFromObject(D),kI.getSize(A).max(AF),o.value=A,I!=null&&(D.parent=I),kI.getCenter(y),e.requestRender()};return l.push(()=>tn(()=>{C(a.current,i.value,e.renderOrder.value,e.depthTest.value),e.requestRender()}),D=>{const I=a.current;return I==null||(x(),D.push(tn(()=>{const{size:{value:B},paddingInset:{value:w},borderInset:{value:_}}=n;if(B==null||w==null||_==null)return;const[F,P]=B,[N,U,q,L]=w,[z,ue,ve,ne]=_,_e=N+z,Ie=U+ue,Ge=q+ve,re=L+ne,fe=F-re-Ie,Ee=P-_e-Ge,de=e.pixelSize.value;I.scale.set(fe*de,Ee*de,d.value?Ee*de*A.z/A.y:A.z).divide(A),I.position.copy(y).negate(),I.position.z-=_j[p.value]*A.z,I.position.multiply(I.scale),I.position.add(WY.set((re-Ie)*.5*de,(Ge-_e)*.5*de,0)),I.updateMatrix(),e.requestRender()}))),D}),()=>{C(a.current,i.peek(),e.renderOrder.peek(),e.depthTest.peek()),x()}}function JY(t,e,n,r,i,s){if(i instanceof Pi){const o=2*Math.tan(Math.PI*i.fov/360)*r;n.value=o/s,e.value=o,t.value=o*i.aspect}if(i instanceof wA){const o=i.top-i.bottom,a=i.right-i.left;n.value=o/s,e.value=o,t.value=a}}function YY(t,{src:e,autoplay:n,loop:r,muted:i,playbackRate:s,preservesPitch:o,volume:a}){if(!(e instanceof HTMLElement)){if(t.playsInline=!0,t.volume=a??1,t.preservesPitch=o??!0,t.playbackRate=s??1,t.muted=i??!1,t.loop=r??!1,t.autoplay=n??!1,e==null){t.removeAttribute("src"),t.removeAttribute("srcObject");return}typeof e=="string"?t.src=e:t.srcObject=e}}function XY(t,e){let n;const r=()=>{e(),n=t.requestVideoFrameCallback(r)};return n=t.requestVideoFrameCallback(r),()=>t.cancelVideoFrameCallback(n)}function Nu(t,e){e.push(()=>()=>jL(t))}function qY(t,e,n,r,i,s){let o=!1;GC(e,n,r,l=>{"hover"in l&&(o=!0)});const a=(e==null?void 0:e.cursor)??(n==null?void 0:n.cursor)??s;if(!o&&(e==null?void 0:e.onHoverChange)==null&&(n==null?void 0:n.onHoverChange)==null&&a==null){i.value.length=0;return}Np("onPointerOver",t,({pointerId:l})=>{var c,p;i.value=[l,...i.value],i.value.length===1&&((c=n==null?void 0:n.onHoverChange)==null||c.call(n,!0),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!0)),a!=null&&KY(i,a)}),Np("onPointerOut",t,({pointerId:l})=>{var c,p;i.value=i.value.filter(d=>d!=l),i.value.length===0&&((c=n==null?void 0:n.onHoverChange)==null||c.call(n,!1),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!1)),jL(i)})}function Ou(t){return{hover:D0(()=>t.value.length>0)}}const XS=[],a1=[];function KY(t,e){XS.push(t),a1.push(e),document.body.style.cursor=e}function jL(t){const e=XS.indexOf(t);e!=-1&&(XS.splice(e,1),a1.splice(e,1),document.body.style.cursor=a1[a1.length-1]??"default")}var gF={},ZY=Object.create,qC=Object.defineProperty,$Y=Object.getOwnPropertyDescriptor,eX=Object.getOwnPropertyNames,tX=Object.getPrototypeOf,nX=Object.prototype.hasOwnProperty,w0=(t,e)=>()=>(t&&(e=t(t=0)),e),wt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),KC=(t,e)=>{for(var n in e)qC(t,n,{get:e[n],enumerable:!0})},JL=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of eX(e))!nX.call(t,i)&&i!==n&&qC(t,i,{get:()=>e[i],enumerable:!(r=$Y(e,i))||r.enumerable});return t},Yi=(t,e,n)=>(n=t!=null?ZY(tX(t)):{},JL(e||!t||!t.__esModule?qC(n,"default",{value:t,enumerable:!0}):n,t)),Xp=t=>JL(qC({},"__esModule",{value:!0}),t),YL,rX=w0(()=>{YL=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} `}),XL={};KC(XL,{default:()=>qL});var qL,e2=w0(()=>{rX(),qL={readFileSync:()=>YL}}),iX=wt((t,e)=>{var n=class{constructor(r={}){if(!(r.maxSize&&r.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof r.maxAge=="number"&&r.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=r.maxSize,this.maxAge=r.maxAge||1/0,this.onEviction=r.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(r){if(typeof this.onEviction=="function")for(let[i,s]of r)this.onEviction(i,s.value)}_deleteIfExpired(r,i){return typeof i.expiry=="number"&&i.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(r,i.value),this.delete(r)):!1}_getOrDeleteIfExpired(r,i){if(this._deleteIfExpired(r,i)===!1)return i.value}_getItemValue(r,i){return i.expiry?this._getOrDeleteIfExpired(r,i):i.value}_peek(r,i){let s=i.get(r);return this._getItemValue(r,s)}_set(r,i){this.cache.set(r,i),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(r,i){this.oldCache.delete(r),this._set(r,i)}*_entriesAscending(){for(let r of this.oldCache){let[i,s]=r;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield r)}for(let r of this.cache){let[i,s]=r;this._deleteIfExpired(i,s)===!1&&(yield r)}}get(r){if(this.cache.has(r)){let i=this.cache.get(r);return this._getItemValue(r,i)}if(this.oldCache.has(r)){let i=this.oldCache.get(r);if(this._deleteIfExpired(r,i)===!1)return this._moveToRecent(r,i),i.value}}set(r,i,{maxAge:s=this.maxAge===1/0?void 0:Date.now()+this.maxAge}={}){this.cache.has(r)?this.cache.set(r,{value:i,maxAge:s}):this._set(r,{value:i,expiry:s})}has(r){return this.cache.has(r)?!this._deleteIfExpired(r,this.cache.get(r)):this.oldCache.has(r)?!this._deleteIfExpired(r,this.oldCache.get(r)):!1}peek(r){if(this.cache.has(r))return this._peek(r,this.cache);if(this.oldCache.has(r))return this._peek(r,this.oldCache)}delete(r){let i=this.cache.delete(r);return i&&this._size--,this.oldCache.delete(r)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(r){if(!(r&&r>0))throw new TypeError("`maxSize` must be a number greater than 0");let i=[...this._entriesAscending()],s=i.length-r;s<0?(this.cache=new Map(i),this.oldCache=new Map,this._size=i.length):(s>0&&this._emitEvictions(i.slice(0,s)),this.oldCache=new Map(i.slice(s)),this.cache=new Map,this._size=0),this.maxSize=r}*keys(){for(let[r]of this)yield r}*values(){for(let[,r]of this)yield r}*[Symbol.iterator](){for(let r of this.cache){let[i,s]=r;this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}for(let r of this.oldCache){let[i,s]=r;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}}*entriesDescending(){let r=[...this.cache];for(let i=r.length-1;i>=0;--i){let s=r[i],[o,a]=s;this._deleteIfExpired(o,a)===!1&&(yield[o,a.value])}r=[...this.oldCache];for(let i=r.length-1;i>=0;--i){let s=r[i],[o,a]=s;this.cache.has(o)||this._deleteIfExpired(o,a)===!1&&(yield[o,a.value])}}*entriesAscending(){for(let[r,i]of this._entriesAscending())yield[r,i.value]}get size(){if(!this._size)return this.oldCache.size;let r=0;for(let i of this.oldCache.keys())this.cache.has(i)||r++;return Math.min(this._size+r,this.maxSize)}};e.exports=n}),KL={};KC(KL,{default:()=>ZL});var ZL,$L=w0(()=>{ZL={yellow:t=>t}}),eN=wt(()=>{}),t2=wt((t,e)=>{var n=($L(),Xp(KL)),r=eN(),i=class extends Error{constructor(s,o,a,l,c,p){super(s),this.name="CssSyntaxError",this.reason=s,c&&(this.file=c),l&&(this.source=l),p&&(this.plugin=p),typeof o<"u"&&typeof a<"u"&&(typeof o=="number"?(this.line=o,this.column=a):(this.line=o.line,this.column=o.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let o=this.source;s==null&&(s=n.isColorSupported),r&&s&&(o=r(o));let a=o.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),p=String(c).length,d,A;if(s){let{bold:y,gray:C,red:x}=n.createColors(!0);d=D=>y(x(D)),A=D=>C(D)}else d=A=y=>y;return a.slice(l,c).map((y,C)=>{let x=l+1+C,D=" "+(" "+x).slice(-p)+" | ";if(x===this.line){let I=A(D.replace(/\d/g," "))+y.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+A(D)+y+` `+I+d("^")}return" "+A(D)+y}).join(` `)}toString(){let s=this.showSourceCode();return s&&(s=` @@ -4102,7 +4102,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var lv=Me,hq=cq;function pq(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var dq=typeof Object.is=="function"?Object.is:pq,fq=hq.useSyncExternalStore,Aq=lv.useRef,gq=lv.useEffect,mq=lv.useMemo,yq=lv.useDebugValue;RN.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=Aq(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=mq(function(){function l(y){if(!c){if(c=!0,p=y,y=r(y),i!==void 0&&o.hasValue){var C=o.value;if(i(C,y))return d=C}return d=y}if(C=d,dq(p,y))return C;var x=r(y);return i!==void 0&&i(C,x)?C:(p=y,d=x)}var c=!1,p,d,A=n===void 0?null:n;return[function(){return l(e())},A===null?void 0:function(){return l(A())}]},[e,n,r,i]);var a=fq(t,s[0],s[1]);return gq(function(){o.hasValue=!0,o.value=a},[a]),yq(a),a};kN.exports=RN;var Eq=kN.exports;const Cq=o0(Eq);var ON={BASE_URL:"/uikit/examples/dashboard/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:vq}=l0,{useSyncExternalStoreWithSelector:xq}=Cq;let vF=!1;const Iq=t=>t;function Dq(t,e=Iq,n){(ON?"production":void 0)!=="production"&&n&&!vF&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),vF=!0);const r=xq(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return vq(r),r}const xF=t=>{(ON?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?eq(t):t,n=(r,i)=>Dq(e,r,i);return Object.assign(n,e),n},Sq=t=>t?xF(t):xF,Bq=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],wq=t=>t&&t.isOrthographicCamera;Me.forwardRef(({children:t,dpr:e,frames:n=1/0,renderPriority:r=0,eventPriority:i=0,...s},o)=>{const a=Me.useMemo(()=>new Ri(void 0),[]),l=Me.useRef(null),c=nl();e??(e=c.getState().viewport.dpr),Me.useImperativeHandle(o,()=>l.current,[]);const p=Me.useMemo(()=>Vn(()=>{var A;return(A=a.value)==null?void 0:A.texture}),[a]),d=Me.useMemo(()=>{let A=c.getState();const y=new Pi(50,1,.1,1e3);y.position.set(0,0,5);const C=new st;let x={events:{compute:bq.bind(null,l),priority:i},size:{width:1,height:1,left:0,top:0},camera:y,scene:new Ym,raycaster:new FA,pointer:C,mouse:C,previousRoot:c};const D=Sq((I,B)=>{const w=()=>{const F={};for(const P in A)Bq.includes(P)||(F[P]=A[P]);return Object.assign(F,x,{events:{...A.events,...x.events},viewport:Object.assign({},A.viewport,A.viewport.getCurrentViewport(y,new ae,x.size))})},_=()=>I(w());return{...A,set(F){typeof F=="function"&&(F=F(B())),Object.assign(x,F),_()},setPreviousState(F){A=F,_()},get:B,setEvents(F){Object.assign(x.events,F),_()},...w()}});return Object.assign(D,{setState(I){D.getState().set(I)}})},[i,c]);return Me.useEffect(()=>c.subscribe(d.getState().setPreviousState),[c,d]),Me.useEffect(()=>{if(l.current==null)return;const A=a.value=new Ia(1,1,{minFilter:zr,magFilter:zr,type:Vp}),{size:y}=l.current,C=tn(()=>{if(y.value==null)return;const[x,D]=y.value;A.setSize(x*e,D*e),d.setState({size:{width:x,height:D,top:0,left:0},viewport:{...c.getState().viewport,width:x,height:D,aspect:x/D}})});return()=>{C(),A.dispose()}},[a,c,d,e]),xe.jsxs(xe.Fragment,{children:[mA.createPortal(xe.jsx(NC.Provider,{value:d,children:xe.jsxs(Tq,{renderPriority:r,frames:n,fbo:a,children:[t,xe.jsx("group",{onPointerOver:()=>null})]})}),d,null),xe.jsx(av,{src:p,objectFit:"fill",keepAspectRatio:!1,...s,ref:l})]})});function bq({current:t},e,n,r){var o,a,l;if(t==null||r==null)return!1;r.raycaster.camera||(l=(a=r.events).compute)==null||l.call(a,e,r,(o=r.previousRoot)==null?void 0:o.getState());const[i]=r.raycaster.intersectObject(t.interactionPanel);if(!i)return!1;const s=i.uv;if(!s)return!1;n.raycaster.setFromCamera(n.pointer.set(s.x*2-1,s.y*2-1),n.camera)}function Tq({frames:t,renderPriority:e,children:n,fbo:r}){const i=nl();Me.useEffect(()=>i.subscribe((p,d)=>{const{size:A,camera:y}=p;A&&(wq(y)?(y.left=A.width/-2,y.right=A.width/2,y.top=A.height/2,y.bottom=A.height/-2):y.aspect=A.width/A.height,(A!==d.size||y!==d.camera)&&(y.updateProjectionMatrix(),y.updateMatrixWorld()))}),[i]);let s=0,o,a,l,c;return PA(p=>{const d=r.peek();d!=null&&(t===1/0||s{const n=Me.useMemo(()=>sn(void 0),[]),r=Me.useMemo(()=>sn(1),[]),i=t.src instanceof HTMLVideoElement?t.src:void 0,s=Me.useMemo(()=>i??document.createElement("video"),[i]),o=n0(l=>l.invalidate);Me.useEffect(()=>XY(s,o),[s,o]),YY(s,t),Me.useEffect(()=>{const l=()=>r.value=s.videoWidth/s.videoHeight;return l(),s.addEventListener("resize",l),()=>s.removeEventListener("resize",l)},[r,s]),Me.useEffect(()=>{const l=new qk(s);return l.colorSpace=ni,n.value=l,()=>l.dispose()},[n,s]);const a=Me.useRef(null);return Me.useImperativeHandle(e,()=>({...a.current,element:s}),[s]),xe.jsx(Mq.Provider,{value:s,children:xe.jsx(av,{aspectRatio:r,...t,ref:a,src:n})})});var _q=Object.create,uv=Object.defineProperty,Fq=Object.getOwnPropertyDescriptor,Pq=Object.getOwnPropertyNames,Qq=Object.getPrototypeOf,kq=Object.prototype.hasOwnProperty,Rq=(t,e)=>()=>(t&&(e=t(t=0)),e),cv=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),hv=(t,e)=>{for(var n in e)uv(t,n,{get:e[n],enumerable:!0})},UN=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Pq(e))!kq.call(t,i)&&i!==n&&uv(t,i,{get:()=>e[i],enumerable:!(r=Fq(e,i))||r.enumerable});return t},_0=(t,e,n)=>(n=t!=null?_q(Qq(t)):{},UN(e||!t||!t.__esModule?uv(n,"default",{value:t,enumerable:!0}):n,t)),Lq=t=>UN(uv({},"__esModule",{value:!0}),t),Nq=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},IF=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},zg=(t,e,n)=>(Nq(t,e,"access private method"),n),Oq=cv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(){}e.prototype={diff:function(i,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var l=this;function c(B){return a?(setTimeout(function(){a(void 0,B)},0),!0):B}i=this.castInput(i),s=this.castInput(s),i=this.removeEmpty(this.tokenize(i)),s=this.removeEmpty(this.tokenize(s));var p=s.length,d=i.length,A=1,y=p+d;o.maxEditLength&&(y=Math.min(y,o.maxEditLength));var C=[{newPos:-1,components:[]}],x=this.extractCommon(C[0],s,i,0);if(C[0].newPos+1>=p&&x+1>=d)return c([{value:this.join(s),count:s.length}]);function D(){for(var B=-1*A;B<=A;B+=2){var w=void 0,_=C[B-1],F=C[B+1],P=(F?F.newPos:0)-B;_&&(C[B-1]=void 0);var N=_&&_.newPos+1=p&&P+1>=d)return c(n(l,w.components,s,i,l.useLongestToken));C[B]=w}A++}if(a)(function B(){setTimeout(function(){if(A>y)return a();D()||B()},0)})();else for(;A<=y;){var I=D();if(I)return I}},pushComponent:function(i,s,o){var a=i[i.length-1];a&&a.added===s&&a.removed===o?i[i.length-1]={count:a.count+1,added:s,removed:o}:i.push({count:1,added:s,removed:o})},extractCommon:function(i,s,o,a){for(var l=s.length,c=o.length,p=i.newPos,d=p-a,A=0;p+1I.length?w:I}),y.value=i.join(x)}else y.value=i.join(o.slice(d,d+y.count));d+=y.count,y.added||(A+=y.count)}}var D=s[p-1];return p>1&&typeof D.value=="string"&&(D.added||D.removed)&&i.equals("",D.value)&&(s[p-2].value+=D.value,s.pop()),s}function r(i){return{newPos:i.newPos,components:i.components.slice(0)}}}),Uq=cv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=i,t.arrayDiff=void 0;var e=n(Oq());function n(s){return s&&s.__esModule?s:{default:s}}var r=new e.default;t.arrayDiff=r,r.tokenize=function(s){return s.slice()},r.join=r.removeEmpty=function(s){return s};function i(s,o,a){return r.diff(s,o,a)}}),pv=cv((t,e)=>{var n=new Proxy(String,{get:()=>n});e.exports=n}),GN={};hv(GN,{default:()=>zN,shouldHighlight:()=>HN});var HN,zN,Gq=Rq(()=>{HN=()=>!1,zN=String}),Hq=cv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=d,t.default=A;var e=(Gq(),Lq(GN)),n=i(pv(),!0);function r(y){if(typeof WeakMap!="function")return null;var C=new WeakMap,x=new WeakMap;return(r=function(D){return D?x:C})(y)}function i(y,C){if(!C&&y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var x=r(C);if(x&&x.has(y))return x.get(y);var D={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in y)if(B!=="default"&&Object.prototype.hasOwnProperty.call(y,B)){var w=I?Object.getOwnPropertyDescriptor(y,B):null;w&&(w.get||w.set)?Object.defineProperty(D,B,w):D[B]=y[B]}return D.default=y,x&&x.set(y,D),D}var s;function o(y){return y?(s!=null||(s=new n.default.constructor({enabled:!0,level:1})),s):n.default}var a=!1;function l(y){return{gutter:y.grey,marker:y.red.bold,message:y.red.bold}}var c=/\r\n|[\n\r\u2028\u2029]/;function p(y,C,x){let D=Object.assign({column:0,line:-1},y.start),I=Object.assign({},D,y.end),{linesAbove:B=2,linesBelow:w=3}=x||{},_=D.line,F=D.column,P=I.line,N=I.column,U=Math.max(_-(B+1),0),q=Math.min(C.length,P+w);_===-1&&(U=0),P===-1&&(q=C.length);let L=P-_,z={};if(L)for(let ue=0;ue<=L;ue++){let ve=ue+_;if(!F)z[ve]=!0;else if(ue===0){let ne=C[ve-1].length;z[ve]=[F,ne-F+1]}else if(ue===L)z[ve]=[0,N];else{let ne=C[ve-ue].length;z[ve]=[0,ne]}}else F===N?F?z[_]=[F,0]:z[_]=!0:z[_]=[F,N-F];return{start:U,end:q,markerLines:z}}function d(y,C,x={}){let D=(x.highlightCode||x.forceColor)&&(0,e.shouldHighlight)(x),I=o(x.forceColor),B=l(I),w=(z,ue)=>D?z(ue):ue,_=y.split(c),{start:F,end:P,markerLines:N}=p(C,_,x),U=C.start&&typeof C.start.column=="number",q=String(P).length,L=(D?(0,e.default)(y,x):y).split(c,P).slice(F,P).map((z,ue)=>{let ve=F+1+ue,ne=` ${` ${ve}`.slice(-q)} |`,_e=N[ve],Ie=!N[ve+1];if(_e){let Ge="";if(Array.isArray(_e)){let re=z.slice(0,Math.max(_e[0]-1,0)).replace(/[^\t]/g," "),fe=_e[1]||1;Ge=[` + */var lv=Me,hq=cq;function pq(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var dq=typeof Object.is=="function"?Object.is:pq,fq=hq.useSyncExternalStore,Aq=lv.useRef,gq=lv.useEffect,mq=lv.useMemo,yq=lv.useDebugValue;RN.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=Aq(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=mq(function(){function l(y){if(!c){if(c=!0,p=y,y=r(y),i!==void 0&&o.hasValue){var C=o.value;if(i(C,y))return d=C}return d=y}if(C=d,dq(p,y))return C;var x=r(y);return i!==void 0&&i(C,x)?C:(p=y,d=x)}var c=!1,p,d,A=n===void 0?null:n;return[function(){return l(e())},A===null?void 0:function(){return l(A())}]},[e,n,r,i]);var a=fq(t,s[0],s[1]);return gq(function(){o.hasValue=!0,o.value=a},[a]),yq(a),a};kN.exports=RN;var Eq=kN.exports;const Cq=o0(Eq);var ON={BASE_URL:"/uikit/examples/dashboard/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:vq}=l0,{useSyncExternalStoreWithSelector:xq}=Cq;let vF=!1;const Iq=t=>t;function Dq(t,e=Iq,n){(ON?"production":void 0)!=="production"&&n&&!vF&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),vF=!0);const r=xq(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return vq(r),r}const xF=t=>{(ON?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?eq(t):t,n=(r,i)=>Dq(e,r,i);return Object.assign(n,e),n},Sq=t=>t?xF(t):xF,Bq=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],wq=t=>t&&t.isOrthographicCamera;Me.forwardRef(({children:t,dpr:e,frames:n=1/0,renderPriority:r=0,eventPriority:i=0,...s},o)=>{const a=Me.useMemo(()=>new Ri(void 0),[]),l=Me.useRef(null),c=nl();e??(e=c.getState().viewport.dpr),Me.useImperativeHandle(o,()=>l.current,[]);const p=Me.useMemo(()=>Vn(()=>{var A;return(A=a.value)==null?void 0:A.texture}),[a]),d=Me.useMemo(()=>{let A=c.getState();const y=new Pi(50,1,.1,1e3);y.position.set(0,0,5);const C=new st;let x={events:{compute:bq.bind(null,l),priority:i},size:{width:1,height:1,left:0,top:0},camera:y,scene:new Ym,raycaster:new FA,pointer:C,mouse:C,previousRoot:c};const D=Sq((I,B)=>{const w=()=>{const F={};for(const P in A)Bq.includes(P)||(F[P]=A[P]);return Object.assign(F,x,{events:{...A.events,...x.events},viewport:Object.assign({},A.viewport,A.viewport.getCurrentViewport(y,new ae,x.size))})},_=()=>I(w());return{...A,set(F){typeof F=="function"&&(F=F(B())),Object.assign(x,F),_()},setPreviousState(F){A=F,_()},get:B,setEvents(F){Object.assign(x.events,F),_()},...w()}});return Object.assign(D,{setState(I){D.getState().set(I)}})},[i,c]);return Me.useEffect(()=>c.subscribe(d.getState().setPreviousState),[c,d]),Me.useEffect(()=>{if(l.current==null)return;const A=a.value=new Ia(1,1,{minFilter:zr,magFilter:zr,type:Vp}),{size:y}=l.current,C=tn(()=>{if(y.value==null)return;const[x,D]=y.value;A.setSize(x*e,D*e),d.setState({size:{width:x,height:D,top:0,left:0},viewport:{...c.getState().viewport,width:x,height:D,aspect:x/D}})});return()=>{C(),A.dispose()}},[a,c,d,e]),xe.jsxs(xe.Fragment,{children:[mA.createPortal(xe.jsx(NC.Provider,{value:d,children:xe.jsxs(Tq,{renderPriority:r,frames:n,fbo:a,children:[t,xe.jsx("group",{onPointerOver:()=>null})]})}),d,null),xe.jsx(av,{src:p,objectFit:"fill",keepAspectRatio:!1,...s,ref:l})]})});function bq({current:t},e,n,r){var o,a,l;if(t==null||r==null)return!1;r.raycaster.camera||(l=(a=r.events).compute)==null||l.call(a,e,r,(o=r.previousRoot)==null?void 0:o.getState());const[i]=r.raycaster.intersectObject(t.interactionPanel);if(!i)return!1;const s=i.uv;if(!s)return!1;n.raycaster.setFromCamera(n.pointer.set(s.x*2-1,s.y*2-1),n.camera)}function Tq({frames:t,renderPriority:e,children:n,fbo:r}){const i=nl();Me.useEffect(()=>i.subscribe((p,d)=>{const{size:A,camera:y}=p;A&&(wq(y)?(y.left=A.width/-2,y.right=A.width/2,y.top=A.height/2,y.bottom=A.height/-2):y.aspect=A.width/A.height,(A!==d.size||y!==d.camera)&&(y.updateProjectionMatrix(),y.updateMatrixWorld()))}),[i]);let s=0,o,a,l,c;return PA(p=>{const d=r.peek();d!=null&&(t===1/0||s{const n=Me.useMemo(()=>sn(void 0),[]),r=Me.useMemo(()=>sn(1),[]),i=t.src instanceof HTMLVideoElement?t.src:void 0,s=Me.useMemo(()=>{if(i!=null)return i;const c=document.createElement("video");return c.style.position="absolute",c.style.width="1px",c.style.zIndex="-1000",c.style.top="0px",c.style.left="0px",c},[i]),o=t.src instanceof HTMLVideoElement;Me.useEffect(()=>{if(!o)return document.body.appendChild(s),()=>s.remove()},[s,o]);const a=n0(c=>c.invalidate);Me.useEffect(()=>XY(s,a),[s,a]),YY(s,t),Me.useEffect(()=>{const c=()=>r.value=s.videoWidth/s.videoHeight;return c(),s.addEventListener("resize",c),()=>s.removeEventListener("resize",c)},[r,s]),Me.useEffect(()=>{const c=new qk(s);return c.colorSpace=ni,n.value=c,()=>c.dispose()},[n,s]);const l=Me.useRef(null);return Me.useImperativeHandle(e,()=>({...l.current,element:s}),[s]),xe.jsx(Mq.Provider,{value:s,children:xe.jsx(av,{aspectRatio:r,...t,ref:l,src:n})})});var _q=Object.create,uv=Object.defineProperty,Fq=Object.getOwnPropertyDescriptor,Pq=Object.getOwnPropertyNames,Qq=Object.getPrototypeOf,kq=Object.prototype.hasOwnProperty,Rq=(t,e)=>()=>(t&&(e=t(t=0)),e),cv=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),hv=(t,e)=>{for(var n in e)uv(t,n,{get:e[n],enumerable:!0})},UN=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Pq(e))!kq.call(t,i)&&i!==n&&uv(t,i,{get:()=>e[i],enumerable:!(r=Fq(e,i))||r.enumerable});return t},_0=(t,e,n)=>(n=t!=null?_q(Qq(t)):{},UN(e||!t||!t.__esModule?uv(n,"default",{value:t,enumerable:!0}):n,t)),Lq=t=>UN(uv({},"__esModule",{value:!0}),t),Nq=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},IF=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},zg=(t,e,n)=>(Nq(t,e,"access private method"),n),Oq=cv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(){}e.prototype={diff:function(i,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var l=this;function c(B){return a?(setTimeout(function(){a(void 0,B)},0),!0):B}i=this.castInput(i),s=this.castInput(s),i=this.removeEmpty(this.tokenize(i)),s=this.removeEmpty(this.tokenize(s));var p=s.length,d=i.length,A=1,y=p+d;o.maxEditLength&&(y=Math.min(y,o.maxEditLength));var C=[{newPos:-1,components:[]}],x=this.extractCommon(C[0],s,i,0);if(C[0].newPos+1>=p&&x+1>=d)return c([{value:this.join(s),count:s.length}]);function D(){for(var B=-1*A;B<=A;B+=2){var w=void 0,_=C[B-1],F=C[B+1],P=(F?F.newPos:0)-B;_&&(C[B-1]=void 0);var N=_&&_.newPos+1=p&&P+1>=d)return c(n(l,w.components,s,i,l.useLongestToken));C[B]=w}A++}if(a)(function B(){setTimeout(function(){if(A>y)return a();D()||B()},0)})();else for(;A<=y;){var I=D();if(I)return I}},pushComponent:function(i,s,o){var a=i[i.length-1];a&&a.added===s&&a.removed===o?i[i.length-1]={count:a.count+1,added:s,removed:o}:i.push({count:1,added:s,removed:o})},extractCommon:function(i,s,o,a){for(var l=s.length,c=o.length,p=i.newPos,d=p-a,A=0;p+1I.length?w:I}),y.value=i.join(x)}else y.value=i.join(o.slice(d,d+y.count));d+=y.count,y.added||(A+=y.count)}}var D=s[p-1];return p>1&&typeof D.value=="string"&&(D.added||D.removed)&&i.equals("",D.value)&&(s[p-2].value+=D.value,s.pop()),s}function r(i){return{newPos:i.newPos,components:i.components.slice(0)}}}),Uq=cv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=i,t.arrayDiff=void 0;var e=n(Oq());function n(s){return s&&s.__esModule?s:{default:s}}var r=new e.default;t.arrayDiff=r,r.tokenize=function(s){return s.slice()},r.join=r.removeEmpty=function(s){return s};function i(s,o,a){return r.diff(s,o,a)}}),pv=cv((t,e)=>{var n=new Proxy(String,{get:()=>n});e.exports=n}),GN={};hv(GN,{default:()=>zN,shouldHighlight:()=>HN});var HN,zN,Gq=Rq(()=>{HN=()=>!1,zN=String}),Hq=cv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=d,t.default=A;var e=(Gq(),Lq(GN)),n=i(pv(),!0);function r(y){if(typeof WeakMap!="function")return null;var C=new WeakMap,x=new WeakMap;return(r=function(D){return D?x:C})(y)}function i(y,C){if(!C&&y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var x=r(C);if(x&&x.has(y))return x.get(y);var D={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in y)if(B!=="default"&&Object.prototype.hasOwnProperty.call(y,B)){var w=I?Object.getOwnPropertyDescriptor(y,B):null;w&&(w.get||w.set)?Object.defineProperty(D,B,w):D[B]=y[B]}return D.default=y,x&&x.set(y,D),D}var s;function o(y){return y?(s!=null||(s=new n.default.constructor({enabled:!0,level:1})),s):n.default}var a=!1;function l(y){return{gutter:y.grey,marker:y.red.bold,message:y.red.bold}}var c=/\r\n|[\n\r\u2028\u2029]/;function p(y,C,x){let D=Object.assign({column:0,line:-1},y.start),I=Object.assign({},D,y.end),{linesAbove:B=2,linesBelow:w=3}=x||{},_=D.line,F=D.column,P=I.line,N=I.column,U=Math.max(_-(B+1),0),q=Math.min(C.length,P+w);_===-1&&(U=0),P===-1&&(q=C.length);let L=P-_,z={};if(L)for(let ue=0;ue<=L;ue++){let ve=ue+_;if(!F)z[ve]=!0;else if(ue===0){let ne=C[ve-1].length;z[ve]=[F,ne-F+1]}else if(ue===L)z[ve]=[0,N];else{let ne=C[ve-ue].length;z[ve]=[0,ne]}}else F===N?F?z[_]=[F,0]:z[_]=!0:z[_]=[F,N-F];return{start:U,end:q,markerLines:z}}function d(y,C,x={}){let D=(x.highlightCode||x.forceColor)&&(0,e.shouldHighlight)(x),I=o(x.forceColor),B=l(I),w=(z,ue)=>D?z(ue):ue,_=y.split(c),{start:F,end:P,markerLines:N}=p(C,_,x),U=C.start&&typeof C.start.column=="number",q=String(P).length,L=(D?(0,e.default)(y,x):y).split(c,P).slice(F,P).map((z,ue)=>{let ve=F+1+ue,ne=` ${` ${ve}`.slice(-q)} |`,_e=N[ve],Ie=!N[ve+1];if(_e){let Ge="";if(Array.isArray(_e)){let re=z.slice(0,Math.max(_e[0]-1,0)).replace(/[^\t]/g," "),fe=_e[1]||1;Ge=[` `,w(B.gutter,ne.replace(/\d/g," "))," ",re,w(B.marker,"^").repeat(fe)].join(""),Ie&&x.message&&(Ge+=" "+w(B.message,x.message))}return[w(B.marker,">"),w(B.gutter,ne),z.length>0?` ${z}`:"",Ge].join("")}else return` ${w(B.gutter,ne)}${z.length>0?` ${z}`:""}`}).join(` `);return x.message&&!U&&(L=`${" ".repeat(q+1)}${x.message} ${L}`),D?I.reset(L):L}function A(y,C,x,D={}){if(!a){a=!0;let I="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let B=new Error(I);B.name="DeprecationWarning",console.warn(new Error(I))}}return x=Math.max(x,0),d(y,{start:{column:x,line:C}},D)}}),zq={};hv(zq,{__debug:()=>U$,check:()=>N$,doc:()=>w4,format:()=>M4,formatWithCursor:()=>T4,getSupportInfo:()=>O$,util:()=>b4,version:()=>f$});var Wq=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},dv=Wq,Vq=_0(Uq(),1);function jq(t){let e=t.indexOf("\r");return e>=0?t.charAt(e+1)===` diff --git a/examples/dashboard/index.html b/examples/dashboard/index.html index 7d12dccc..84bb2b97 100644 --- a/examples/dashboard/index.html +++ b/examples/dashboard/index.html @@ -5,7 +5,7 @@ Document - +
diff --git a/examples/default/assets/index-kBMBXSzx.js b/examples/default/assets/index-ElSYcbkZ.js similarity index 97% rename from examples/default/assets/index-kBMBXSzx.js rename to examples/default/assets/index-ElSYcbkZ.js index 3912df30..6a3ed388 100644 --- a/examples/default/assets/index-kBMBXSzx.js +++ b/examples/default/assets/index-ElSYcbkZ.js @@ -6,7 +6,7 @@ var R5=Object.defineProperty;var L5=(t,e,n)=>e in t?R5(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var s0=Symbol.for("react.element"),N5=Symbol.for("react.portal"),O5=Symbol.for("react.fragment"),U5=Symbol.for("react.strict_mode"),G5=Symbol.for("react.profiler"),H5=Symbol.for("react.provider"),z5=Symbol.for("react.context"),W5=Symbol.for("react.forward_ref"),j5=Symbol.for("react.suspense"),V5=Symbol.for("react.memo"),J5=Symbol.for("react.lazy"),$b=Symbol.iterator;function Y5(t){return t===null||typeof t!="object"?null:(t=$b&&t[$b]||t["@@iterator"],typeof t=="function"?t:null)}var w3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B3=Object.assign,b3={};function CA(t,e,n){this.props=t,this.context=e,this.refs=b3,this.updater=n||w3}CA.prototype.isReactComponent={};CA.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};CA.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function T3(){}T3.prototype=CA.prototype;function E2(t,e,n){this.props=t,this.context=e,this.refs=b3,this.updater=n||w3}var C2=E2.prototype=new T3;C2.constructor=E2;B3(C2,CA.prototype);C2.isPureReactComponent=!0;var eT=Array.isArray,M3=Object.prototype.hasOwnProperty,v2={current:null},_3={key:!0,ref:!0,__self:!0,__source:!0};function F3(t,e,n){var r,i={},s=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)M3.call(e,r)&&!_3.hasOwnProperty(r)&&(i[r]=e[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1e in t?R5(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var $5=le,e6=Symbol.for("react.element"),t6=Symbol.for("react.fragment"),n6=Object.prototype.hasOwnProperty,r6=$5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i6={key:!0,ref:!0,__self:!0,__source:!0};function Q3(t,e,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)n6.call(e,r)&&!i6.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:e6,type:t,key:s,ref:o,props:i,_owner:r6.current}}WE.Fragment=t6;WE.jsx=Q3;WE.jsxs=Q3;D3.exports=WE;var te=D3.exports,k3={exports:{}},oa={},R3={exports:{}},L3={};/** + */var $5=ae,e6=Symbol.for("react.element"),t6=Symbol.for("react.fragment"),n6=Object.prototype.hasOwnProperty,r6=$5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i6={key:!0,ref:!0,__self:!0,__source:!0};function Q3(t,e,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)n6.call(e,r)&&!i6.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:e6,type:t,key:s,ref:o,props:i,_owner:r6.current}}WE.Fragment=t6;WE.jsx=Q3;WE.jsxs=Q3;D3.exports=WE;var te=D3.exports,k3={exports:{}},oa={},R3={exports:{}},L3={};/** * @license React * scheduler.production.min.js * @@ -30,7 +30,7 @@ var R5=Object.defineProperty;var L5=(t,e,n)=>e in t?R5(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var N3=le,ia=s6;function Tt(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lD=Object.prototype.hasOwnProperty,o6=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,nT={},rT={};function a6(t){return lD.call(rT,t)?!0:lD.call(nT,t)?!1:o6.test(t)?rT[t]=!0:(nT[t]=!0,!1)}function l6(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function u6(t,e,n,r){if(e===null||typeof e>"u"||l6(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Co(t,e,n,r,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var Bs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Bs[t]=new Co(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Bs[e]=new Co(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Bs[t]=new Co(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Bs[t]=new Co(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Bs[t]=new Co(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Bs[t]=new Co(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Bs[t]=new Co(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Bs[t]=new Co(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Bs[t]=new Co(t,5,!1,t.toLowerCase(),null,!1,!1)});var I2=/[\-:]([a-z])/g;function D2(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(I2,D2);Bs[e]=new Co(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(I2,D2);Bs[e]=new Co(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(I2,D2);Bs[e]=new Co(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Bs[t]=new Co(t,1,!1,t.toLowerCase(),null,!1,!1)});Bs.xlinkHref=new Co("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Bs[t]=new Co(t,1,!1,t.toLowerCase(),null,!0,!0)});function S2(t,e,n,r){var i=Bs.hasOwnProperty(e)?Bs[e]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lD=Object.prototype.hasOwnProperty,o6=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,nT={},rT={};function a6(t){return lD.call(rT,t)?!0:lD.call(nT,t)?!1:o6.test(t)?rT[t]=!0:(nT[t]=!0,!1)}function l6(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function u6(t,e,n,r){if(e===null||typeof e>"u"||l6(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Co(t,e,n,r,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var Bs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Bs[t]=new Co(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Bs[e]=new Co(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Bs[t]=new Co(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Bs[t]=new Co(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Bs[t]=new Co(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Bs[t]=new Co(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Bs[t]=new Co(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Bs[t]=new Co(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Bs[t]=new Co(t,5,!1,t.toLowerCase(),null,!1,!1)});var I2=/[\-:]([a-z])/g;function D2(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(I2,D2);Bs[e]=new Co(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(I2,D2);Bs[e]=new Co(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(I2,D2);Bs[e]=new Co(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Bs[t]=new Co(t,1,!1,t.toLowerCase(),null,!1,!1)});Bs.xlinkHref=new Co("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Bs[t]=new Co(t,1,!1,t.toLowerCase(),null,!0,!0)});function S2(t,e,n,r){var i=Bs.hasOwnProperty(e)?Bs[e]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` @@ -3548,7 +3548,7 @@ void main() { #include #include #include -}`,qn={alphahash_fragment:kU,alphahash_pars_fragment:RU,alphamap_fragment:LU,alphamap_pars_fragment:NU,alphatest_fragment:OU,alphatest_pars_fragment:UU,aomap_fragment:GU,aomap_pars_fragment:HU,batching_pars_vertex:zU,batching_vertex:WU,begin_vertex:jU,beginnormal_vertex:VU,bsdfs:JU,iridescence_fragment:YU,bumpmap_pars_fragment:XU,clipping_planes_fragment:qU,clipping_planes_pars_fragment:KU,clipping_planes_pars_vertex:ZU,clipping_planes_vertex:$U,color_fragment:e7,color_pars_fragment:t7,color_pars_vertex:n7,color_vertex:r7,common:i7,cube_uv_reflection_fragment:s7,defaultnormal_vertex:o7,displacementmap_pars_vertex:a7,displacementmap_vertex:l7,emissivemap_fragment:u7,emissivemap_pars_fragment:c7,colorspace_fragment:h7,colorspace_pars_fragment:p7,envmap_fragment:d7,envmap_common_pars_fragment:f7,envmap_pars_fragment:A7,envmap_pars_vertex:g7,envmap_physical_pars_fragment:b7,envmap_vertex:m7,fog_vertex:y7,fog_pars_vertex:E7,fog_fragment:C7,fog_pars_fragment:v7,gradientmap_pars_fragment:x7,lightmap_fragment:I7,lightmap_pars_fragment:D7,lights_lambert_fragment:S7,lights_lambert_pars_fragment:w7,lights_pars_begin:B7,lights_toon_fragment:T7,lights_toon_pars_fragment:M7,lights_phong_fragment:_7,lights_phong_pars_fragment:F7,lights_physical_fragment:P7,lights_physical_pars_fragment:Q7,lights_fragment_begin:k7,lights_fragment_maps:R7,lights_fragment_end:L7,logdepthbuf_fragment:N7,logdepthbuf_pars_fragment:O7,logdepthbuf_pars_vertex:U7,logdepthbuf_vertex:G7,map_fragment:H7,map_pars_fragment:z7,map_particle_fragment:W7,map_particle_pars_fragment:j7,metalnessmap_fragment:V7,metalnessmap_pars_fragment:J7,morphcolor_vertex:Y7,morphnormal_vertex:X7,morphtarget_pars_vertex:q7,morphtarget_vertex:K7,normal_fragment_begin:Z7,normal_fragment_maps:$7,normal_pars_fragment:eG,normal_pars_vertex:tG,normal_vertex:nG,normalmap_pars_fragment:rG,clearcoat_normal_fragment_begin:iG,clearcoat_normal_fragment_maps:sG,clearcoat_pars_fragment:oG,iridescence_pars_fragment:aG,opaque_fragment:lG,packing:uG,premultiplied_alpha_fragment:cG,project_vertex:hG,dithering_fragment:pG,dithering_pars_fragment:dG,roughnessmap_fragment:fG,roughnessmap_pars_fragment:AG,shadowmap_pars_fragment:gG,shadowmap_pars_vertex:mG,shadowmap_vertex:yG,shadowmask_pars_fragment:EG,skinbase_vertex:CG,skinning_pars_vertex:vG,skinning_vertex:xG,skinnormal_vertex:IG,specularmap_fragment:DG,specularmap_pars_fragment:SG,tonemapping_fragment:wG,tonemapping_pars_fragment:BG,transmission_fragment:bG,transmission_pars_fragment:TG,uv_pars_fragment:MG,uv_pars_vertex:_G,uv_vertex:FG,worldpos_vertex:PG,background_vert:QG,background_frag:kG,backgroundCube_vert:RG,backgroundCube_frag:LG,cube_vert:NG,cube_frag:OG,depth_vert:UG,depth_frag:GG,distanceRGBA_vert:HG,distanceRGBA_frag:zG,equirect_vert:WG,equirect_frag:jG,linedashed_vert:VG,linedashed_frag:JG,meshbasic_vert:YG,meshbasic_frag:XG,meshlambert_vert:qG,meshlambert_frag:KG,meshmatcap_vert:ZG,meshmatcap_frag:$G,meshnormal_vert:eH,meshnormal_frag:tH,meshphong_vert:nH,meshphong_frag:rH,meshphysical_vert:iH,meshphysical_frag:sH,meshtoon_vert:oH,meshtoon_frag:aH,points_vert:lH,points_frag:uH,shadow_vert:cH,shadow_frag:hH,sprite_vert:pH,sprite_frag:dH},Gt={common:{diffuse:{value:new Xt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new kn},alphaMap:{value:null},alphaMapTransform:{value:new kn},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new kn}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new kn}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new kn}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new kn},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new kn},normalScale:{value:new st(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new kn},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new kn}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new kn}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new kn}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Xt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Xt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new kn},alphaTest:{value:0},uvTransform:{value:new kn}},sprite:{diffuse:{value:new Xt(16777215)},opacity:{value:1},center:{value:new st(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new kn},alphaMap:{value:null},alphaMapTransform:{value:new kn},alphaTest:{value:0}}},Za={basic:{uniforms:po([Gt.common,Gt.specularmap,Gt.envmap,Gt.aomap,Gt.lightmap,Gt.fog]),vertexShader:qn.meshbasic_vert,fragmentShader:qn.meshbasic_frag},lambert:{uniforms:po([Gt.common,Gt.specularmap,Gt.envmap,Gt.aomap,Gt.lightmap,Gt.emissivemap,Gt.bumpmap,Gt.normalmap,Gt.displacementmap,Gt.fog,Gt.lights,{emissive:{value:new Xt(0)}}]),vertexShader:qn.meshlambert_vert,fragmentShader:qn.meshlambert_frag},phong:{uniforms:po([Gt.common,Gt.specularmap,Gt.envmap,Gt.aomap,Gt.lightmap,Gt.emissivemap,Gt.bumpmap,Gt.normalmap,Gt.displacementmap,Gt.fog,Gt.lights,{emissive:{value:new Xt(0)},specular:{value:new Xt(1118481)},shininess:{value:30}}]),vertexShader:qn.meshphong_vert,fragmentShader:qn.meshphong_frag},standard:{uniforms:po([Gt.common,Gt.envmap,Gt.aomap,Gt.lightmap,Gt.emissivemap,Gt.bumpmap,Gt.normalmap,Gt.displacementmap,Gt.roughnessmap,Gt.metalnessmap,Gt.fog,Gt.lights,{emissive:{value:new Xt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:qn.meshphysical_vert,fragmentShader:qn.meshphysical_frag},toon:{uniforms:po([Gt.common,Gt.aomap,Gt.lightmap,Gt.emissivemap,Gt.bumpmap,Gt.normalmap,Gt.displacementmap,Gt.gradientmap,Gt.fog,Gt.lights,{emissive:{value:new Xt(0)}}]),vertexShader:qn.meshtoon_vert,fragmentShader:qn.meshtoon_frag},matcap:{uniforms:po([Gt.common,Gt.bumpmap,Gt.normalmap,Gt.displacementmap,Gt.fog,{matcap:{value:null}}]),vertexShader:qn.meshmatcap_vert,fragmentShader:qn.meshmatcap_frag},points:{uniforms:po([Gt.points,Gt.fog]),vertexShader:qn.points_vert,fragmentShader:qn.points_frag},dashed:{uniforms:po([Gt.common,Gt.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:qn.linedashed_vert,fragmentShader:qn.linedashed_frag},depth:{uniforms:po([Gt.common,Gt.displacementmap]),vertexShader:qn.depth_vert,fragmentShader:qn.depth_frag},normal:{uniforms:po([Gt.common,Gt.bumpmap,Gt.normalmap,Gt.displacementmap,{opacity:{value:1}}]),vertexShader:qn.meshnormal_vert,fragmentShader:qn.meshnormal_frag},sprite:{uniforms:po([Gt.sprite,Gt.fog]),vertexShader:qn.sprite_vert,fragmentShader:qn.sprite_frag},background:{uniforms:{uvTransform:{value:new kn},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:qn.background_vert,fragmentShader:qn.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:qn.backgroundCube_vert,fragmentShader:qn.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:qn.cube_vert,fragmentShader:qn.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:qn.equirect_vert,fragmentShader:qn.equirect_frag},distanceRGBA:{uniforms:po([Gt.common,Gt.displacementmap,{referencePosition:{value:new ue},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:qn.distanceRGBA_vert,fragmentShader:qn.distanceRGBA_frag},shadow:{uniforms:po([Gt.lights,Gt.fog,{color:{value:new Xt(0)},opacity:{value:1}}]),vertexShader:qn.shadow_vert,fragmentShader:qn.shadow_frag}};Za.physical={uniforms:po([Za.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new kn},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new kn},clearcoatNormalScale:{value:new st(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new kn},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new kn},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new kn},sheen:{value:0},sheenColor:{value:new Xt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new kn},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new kn},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new kn},transmissionSamplerSize:{value:new st},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new kn},attenuationDistance:{value:0},attenuationColor:{value:new Xt(0)},specularColor:{value:new Xt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new kn},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new kn},anisotropyVector:{value:new st},anisotropyMap:{value:null},anisotropyMapTransform:{value:new kn}}]),vertexShader:qn.meshphysical_vert,fragmentShader:qn.meshphysical_frag};const Vy={r:0,b:0,g:0};function fH(t,e,n,r,i,s,o){const a=new Xt(0);let l=s===!0?0:1,c,p,d=null,A=0,y=null;function C(D,I){let w=!1,B=I.isScene===!0?I.background:null;B&&B.isTexture&&(B=(I.backgroundBlurriness>0?n:e).get(B)),B===null?x(a,l):B&&B.isColor&&(x(B,1),w=!0);const _=t.xr.getEnvironmentBlendMode();_==="additive"?r.buffers.color.setClear(0,0,0,1,o):_==="alpha-blend"&&r.buffers.color.setClear(0,0,0,0,o),(t.autoClear||w)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),B&&(B.isCubeTexture||B.mapping===IA)?(p===void 0&&(p=new gr(new td(1,1,1),new il({name:"BackgroundCubeMaterial",uniforms:fA(Za.backgroundCube.uniforms),vertexShader:Za.backgroundCube.vertexShader,fragmentShader:Za.backgroundCube.fragmentShader,side:yo,depthTest:!1,depthWrite:!1,fog:!1})),p.geometry.deleteAttribute("normal"),p.geometry.deleteAttribute("uv"),p.onBeforeRender=function(F,P,N){this.matrixWorld.copyPosition(N.matrixWorld)},Object.defineProperty(p.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(p)),p.material.uniforms.envMap.value=B,p.material.uniforms.flipEnvMap.value=B.isCubeTexture&&B.isRenderTargetTexture===!1?-1:1,p.material.uniforms.backgroundBlurriness.value=I.backgroundBlurriness,p.material.uniforms.backgroundIntensity.value=I.backgroundIntensity,p.material.toneMapped=Br.getTransfer(B.colorSpace)!==Nr,(d!==B||A!==B.version||y!==t.toneMapping)&&(p.material.needsUpdate=!0,d=B,A=B.version,y=t.toneMapping),p.layers.enableAll(),D.unshift(p,p.geometry,p.material,0,0,null)):B&&B.isTexture&&(c===void 0&&(c=new gr(new mh(2,2),new il({name:"BackgroundMaterial",uniforms:fA(Za.background.uniforms),vertexShader:Za.background.vertexShader,fragmentShader:Za.background.fragmentShader,side:Sa,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(c)),c.material.uniforms.t2D.value=B,c.material.uniforms.backgroundIntensity.value=I.backgroundIntensity,c.material.toneMapped=Br.getTransfer(B.colorSpace)!==Nr,B.matrixAutoUpdate===!0&&B.updateMatrix(),c.material.uniforms.uvTransform.value.copy(B.matrix),(d!==B||A!==B.version||y!==t.toneMapping)&&(c.material.needsUpdate=!0,d=B,A=B.version,y=t.toneMapping),c.layers.enableAll(),D.unshift(c,c.geometry,c.material,0,0,null))}function x(D,I){D.getRGB(Vy,zk(t)),r.buffers.color.setClear(Vy.r,Vy.g,Vy.b,I,o)}return{getClearColor:function(){return a},setClearColor:function(D,I=1){a.set(D),l=I,x(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(D){l=D,x(a,l)},render:C}}function AH(t,e,n,r){const i=t.getParameter(t.MAX_VERTEX_ATTRIBS),s=r.isWebGL2?null:e.get("OES_vertex_array_object"),o=r.isWebGL2||s!==null,a={},l=D(null);let c=l,p=!1;function d(re,_e,De,Ge,ie){let ge=!1;if(o){const ve=x(Ge,De,_e);c!==ve&&(c=ve,y(c.object)),ge=I(re,Ge,De,ie),ge&&w(re,Ge,De,ie)}else{const ve=_e.wireframe===!0;(c.geometry!==Ge.id||c.program!==De.id||c.wireframe!==ve)&&(c.geometry=Ge.id,c.program=De.id,c.wireframe=ve,ge=!0)}ie!==null&&n.update(ie,t.ELEMENT_ARRAY_BUFFER),(ge||p)&&(p=!1,U(re,_e,De,Ge),ie!==null&&t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,n.get(ie).buffer))}function A(){return r.isWebGL2?t.createVertexArray():s.createVertexArrayOES()}function y(re){return r.isWebGL2?t.bindVertexArray(re):s.bindVertexArrayOES(re)}function C(re){return r.isWebGL2?t.deleteVertexArray(re):s.deleteVertexArrayOES(re)}function x(re,_e,De){const Ge=De.wireframe===!0;let ie=a[re.id];ie===void 0&&(ie={},a[re.id]=ie);let ge=ie[_e.id];ge===void 0&&(ge={},ie[_e.id]=ge);let ve=ge[Ge];return ve===void 0&&(ve=D(A()),ge[Ge]=ve),ve}function D(re){const _e=[],De=[],Ge=[];for(let ie=0;ie=0){const K=ie[Ue];let oe=ge[Ue];if(oe===void 0&&(Ue==="instanceMatrix"&&re.instanceMatrix&&(oe=re.instanceMatrix),Ue==="instanceColor"&&re.instanceColor&&(oe=re.instanceColor)),K===void 0||K.attribute!==oe||oe&&K.data!==oe.data)return!0;ve++}return c.attributesNum!==ve||c.index!==Ge}function w(re,_e,De,Ge){const ie={},ge=_e.attributes;let ve=0;const Ae=De.getAttributes();for(const Ue in Ae)if(Ae[Ue].location>=0){let K=ge[Ue];K===void 0&&(Ue==="instanceMatrix"&&re.instanceMatrix&&(K=re.instanceMatrix),Ue==="instanceColor"&&re.instanceColor&&(K=re.instanceColor));const oe={};oe.attribute=K,K&&K.data&&(oe.data=K.data),ie[Ue]=oe,ve++}c.attributes=ie,c.attributesNum=ve,c.index=Ge}function B(){const re=c.newAttributes;for(let _e=0,De=re.length;_e=0){let we=ie[Ae];if(we===void 0&&(Ae==="instanceMatrix"&&re.instanceMatrix&&(we=re.instanceMatrix),Ae==="instanceColor"&&re.instanceColor&&(we=re.instanceColor)),we!==void 0){const K=we.normalized,oe=we.itemSize,Y=n.get(we);if(Y===void 0)continue;const Z=Y.buffer,Le=Y.type,ze=Y.bytesPerElement,Fe=r.isWebGL2===!0&&(Le===t.INT||Le===t.UNSIGNED_INT||we.gpuType===fw);if(we.isInterleavedBufferAttribute){const je=we.data,ae=je.stride,Ne=we.offset;if(je.isInstancedInterleavedBuffer){for(let be=0;be0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";N="mediump"}return N==="mediump"&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&t.constructor.name==="WebGL2RenderingContext";let a=n.precision!==void 0?n.precision:"highp";const l=s(a);l!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",l,"instead."),a=l);const c=o||e.has("WEBGL_draw_buffers"),p=n.logarithmicDepthBuffer===!0,d=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),A=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),y=t.getParameter(t.MAX_TEXTURE_SIZE),C=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),x=t.getParameter(t.MAX_VERTEX_ATTRIBS),D=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),I=t.getParameter(t.MAX_VARYING_VECTORS),w=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),B=A>0,_=o||e.has("OES_texture_float"),F=B&&_,P=o?t.getParameter(t.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:c,getMaxAnisotropy:i,getMaxPrecision:s,precision:a,logarithmicDepthBuffer:p,maxTextures:d,maxVertexTextures:A,maxTextureSize:y,maxCubemapSize:C,maxAttributes:x,maxVertexUniforms:D,maxVaryings:I,maxFragmentUniforms:w,vertexTextures:B,floatFragmentTextures:_,floatVertexTextures:F,maxSamples:P}}function yH(t){const e=this;let n=null,r=0,i=!1,s=!1;const o=new Tr,a=new kn,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(d,A){const y=d.length!==0||A||r!==0||i;return i=A,r=d.length,y},this.beginShadows=function(){s=!0,p(null)},this.endShadows=function(){s=!1},this.setGlobalState=function(d,A){n=p(d,A,0)},this.setState=function(d,A,y){const C=d.clippingPlanes,x=d.clipIntersection,D=d.clipShadows,I=t.get(d);if(!i||C===null||C.length===0||s&&!D)s?p(null):c();else{const w=s?0:r,B=w*4;let _=I.clippingState||null;l.value=_,_=p(C,A,B,y);for(let F=0;F!==B;++F)_[F]=n[F];I.clippingState=_,this.numIntersection=x?this.numPlanes:0,this.numPlanes+=w}};function c(){l.value!==n&&(l.value=n,l.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function p(d,A,y,C){const x=d!==null?d.length:0;let D=null;if(x!==0){if(D=l.value,C!==!0||D===null){const I=y+x*4,w=A.matrixWorldInverse;a.getNormalMatrix(w),(D===null||D.length0){const c=new Vk(l.height);return c.fromEquirectangularTexture(t,o),e.set(o,c),o.addEventListener("dispose",i),n(c.texture,o.mapping)}else return null}}return o}function i(o){const a=o.target;a.removeEventListener("dispose",i);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function s(){e=new WeakMap}return{get:r,dispose:s}}class SA extends p0{constructor(e=-1,n=1,r=1,i=-1,s=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=r,this.bottom=i,this.near=s,this.far=o,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,n,r,i,s,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let s=r-e,o=r+e,a=i+n,l=i-n;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,p=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s+=c*this.view.offsetX,o=s+c*this.view.width,a-=p*this.view.offsetY,l=a-p*this.view.height}this.projectionMatrix.makeOrthographic(s,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}const Gf=4,BM=[.125,.215,.35,.446,.526,.582],xp=20,Gx=new SA,bM=new Xt;let Hx=null,zx=0,Wx=0;const Ep=(1+Math.sqrt(5))/2,pf=1/Ep,TM=[new ue(1,1,1),new ue(-1,1,1),new ue(1,1,-1),new ue(-1,1,-1),new ue(0,Ep,pf),new ue(0,Ep,-pf),new ue(pf,0,Ep),new ue(-pf,0,Ep),new ue(Ep,pf,0),new ue(-Ep,pf,0)];class kS{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,n=0,r=.1,i=100){Hx=this._renderer.getRenderTarget(),zx=this._renderer.getActiveCubeFace(),Wx=this._renderer.getActiveMipmapLevel(),this._setSize(256);const s=this._allocateTargets();return s.depthBuffer=!0,this._sceneToCubeUV(e,r,i,s),n>0&&this._blur(s,0,0,n),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,n=null){return this._fromTexture(e,n)}fromCubemap(e,n=null){return this._fromTexture(e,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=FM(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=_M(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?B:0,B,B),p.setRenderTarget(i),x&&p.render(C,a),p.render(e,a)}C.geometry.dispose(),C.material.dispose(),p.toneMapping=A,p.autoClear=d,e.background=D}_textureToCubeUV(e,n){const r=this._renderer,i=e.mapping===bu||e.mapping===ah;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=FM()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=_M());const s=i?this._cubemapMaterial:this._equirectMaterial,o=new gr(this._lodPlanes[0],s),a=s.uniforms;a.envMap.value=e;const l=this._cubeSize;Jy(n,0,0,3*l,2*l),r.setRenderTarget(n),r.render(o,Gx)}_applyPMREM(e){const n=this._renderer,r=n.autoClear;n.autoClear=!1;for(let i=1;ixp&&console.warn(`sigmaRadians, ${s}, is too large and will clip, as it requested ${D} samples when the maximum is set to ${xp}`);const I=[];let w=0;for(let N=0;NB-Gf?i-B+Gf:0),P=4*(this._cubeSize-_);Jy(n,F,P,3*_,2*_),l.setRenderTarget(n),l.render(d,Gx)}}function CH(t){const e=[],n=[],r=[];let i=t;const s=t-Gf+1+BM.length;for(let o=0;ot-Gf?l=BM[o-t+Gf-1]:o===0&&(l=0),r.push(l);const c=1/(a-2),p=-c,d=1+c,A=[p,p,d,p,d,d,p,p,d,d,p,d],y=6,C=6,x=3,D=2,I=1,w=new Float32Array(x*C*y),B=new Float32Array(D*C*y),_=new Float32Array(I*C*y);for(let P=0;P2?0:-1,q=[N,U,0,N+2/3,U,0,N+2/3,U+1,0,N,U,0,N+2/3,U+1,0,N,U+1,0];w.set(q,x*C*P),B.set(A,D*C*P);const L=[P,P,P,P,P,P];_.set(L,I*C*P)}const F=new Hn;F.setAttribute("position",new Sr(w,x)),F.setAttribute("uv",new Sr(B,D)),F.setAttribute("faceIndex",new Sr(_,I)),e.push(F),i>Gf&&i--}return{lodPlanes:e,sizeLods:n,sigmas:r}}function MM(t,e,n){const r=new wa(t,e,n);return r.texture.mapping=IA,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function Jy(t,e,n,r,i){t.viewport.set(e,n,r,i),t.scissor.set(e,n,r,i)}function vH(t,e,n){const r=new Float32Array(xp),i=new ue(0,1,0);return new il({name:"SphericalGaussianBlur",defines:{n:xp,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:Mw(),fragmentShader:` +}`,qn={alphahash_fragment:kU,alphahash_pars_fragment:RU,alphamap_fragment:LU,alphamap_pars_fragment:NU,alphatest_fragment:OU,alphatest_pars_fragment:UU,aomap_fragment:GU,aomap_pars_fragment:HU,batching_pars_vertex:zU,batching_vertex:WU,begin_vertex:jU,beginnormal_vertex:VU,bsdfs:JU,iridescence_fragment:YU,bumpmap_pars_fragment:XU,clipping_planes_fragment:qU,clipping_planes_pars_fragment:KU,clipping_planes_pars_vertex:ZU,clipping_planes_vertex:$U,color_fragment:e7,color_pars_fragment:t7,color_pars_vertex:n7,color_vertex:r7,common:i7,cube_uv_reflection_fragment:s7,defaultnormal_vertex:o7,displacementmap_pars_vertex:a7,displacementmap_vertex:l7,emissivemap_fragment:u7,emissivemap_pars_fragment:c7,colorspace_fragment:h7,colorspace_pars_fragment:p7,envmap_fragment:d7,envmap_common_pars_fragment:f7,envmap_pars_fragment:A7,envmap_pars_vertex:g7,envmap_physical_pars_fragment:b7,envmap_vertex:m7,fog_vertex:y7,fog_pars_vertex:E7,fog_fragment:C7,fog_pars_fragment:v7,gradientmap_pars_fragment:x7,lightmap_fragment:I7,lightmap_pars_fragment:D7,lights_lambert_fragment:S7,lights_lambert_pars_fragment:w7,lights_pars_begin:B7,lights_toon_fragment:T7,lights_toon_pars_fragment:M7,lights_phong_fragment:_7,lights_phong_pars_fragment:F7,lights_physical_fragment:P7,lights_physical_pars_fragment:Q7,lights_fragment_begin:k7,lights_fragment_maps:R7,lights_fragment_end:L7,logdepthbuf_fragment:N7,logdepthbuf_pars_fragment:O7,logdepthbuf_pars_vertex:U7,logdepthbuf_vertex:G7,map_fragment:H7,map_pars_fragment:z7,map_particle_fragment:W7,map_particle_pars_fragment:j7,metalnessmap_fragment:V7,metalnessmap_pars_fragment:J7,morphcolor_vertex:Y7,morphnormal_vertex:X7,morphtarget_pars_vertex:q7,morphtarget_vertex:K7,normal_fragment_begin:Z7,normal_fragment_maps:$7,normal_pars_fragment:eG,normal_pars_vertex:tG,normal_vertex:nG,normalmap_pars_fragment:rG,clearcoat_normal_fragment_begin:iG,clearcoat_normal_fragment_maps:sG,clearcoat_pars_fragment:oG,iridescence_pars_fragment:aG,opaque_fragment:lG,packing:uG,premultiplied_alpha_fragment:cG,project_vertex:hG,dithering_fragment:pG,dithering_pars_fragment:dG,roughnessmap_fragment:fG,roughnessmap_pars_fragment:AG,shadowmap_pars_fragment:gG,shadowmap_pars_vertex:mG,shadowmap_vertex:yG,shadowmask_pars_fragment:EG,skinbase_vertex:CG,skinning_pars_vertex:vG,skinning_vertex:xG,skinnormal_vertex:IG,specularmap_fragment:DG,specularmap_pars_fragment:SG,tonemapping_fragment:wG,tonemapping_pars_fragment:BG,transmission_fragment:bG,transmission_pars_fragment:TG,uv_pars_fragment:MG,uv_pars_vertex:_G,uv_vertex:FG,worldpos_vertex:PG,background_vert:QG,background_frag:kG,backgroundCube_vert:RG,backgroundCube_frag:LG,cube_vert:NG,cube_frag:OG,depth_vert:UG,depth_frag:GG,distanceRGBA_vert:HG,distanceRGBA_frag:zG,equirect_vert:WG,equirect_frag:jG,linedashed_vert:VG,linedashed_frag:JG,meshbasic_vert:YG,meshbasic_frag:XG,meshlambert_vert:qG,meshlambert_frag:KG,meshmatcap_vert:ZG,meshmatcap_frag:$G,meshnormal_vert:eH,meshnormal_frag:tH,meshphong_vert:nH,meshphong_frag:rH,meshphysical_vert:iH,meshphysical_frag:sH,meshtoon_vert:oH,meshtoon_frag:aH,points_vert:lH,points_frag:uH,shadow_vert:cH,shadow_frag:hH,sprite_vert:pH,sprite_frag:dH},Gt={common:{diffuse:{value:new Xt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new kn},alphaMap:{value:null},alphaMapTransform:{value:new kn},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new kn}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new kn}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new kn}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new kn},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new kn},normalScale:{value:new st(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new kn},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new kn}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new kn}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new kn}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Xt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Xt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new kn},alphaTest:{value:0},uvTransform:{value:new kn}},sprite:{diffuse:{value:new Xt(16777215)},opacity:{value:1},center:{value:new st(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new kn},alphaMap:{value:null},alphaMapTransform:{value:new kn},alphaTest:{value:0}}},Za={basic:{uniforms:po([Gt.common,Gt.specularmap,Gt.envmap,Gt.aomap,Gt.lightmap,Gt.fog]),vertexShader:qn.meshbasic_vert,fragmentShader:qn.meshbasic_frag},lambert:{uniforms:po([Gt.common,Gt.specularmap,Gt.envmap,Gt.aomap,Gt.lightmap,Gt.emissivemap,Gt.bumpmap,Gt.normalmap,Gt.displacementmap,Gt.fog,Gt.lights,{emissive:{value:new Xt(0)}}]),vertexShader:qn.meshlambert_vert,fragmentShader:qn.meshlambert_frag},phong:{uniforms:po([Gt.common,Gt.specularmap,Gt.envmap,Gt.aomap,Gt.lightmap,Gt.emissivemap,Gt.bumpmap,Gt.normalmap,Gt.displacementmap,Gt.fog,Gt.lights,{emissive:{value:new Xt(0)},specular:{value:new Xt(1118481)},shininess:{value:30}}]),vertexShader:qn.meshphong_vert,fragmentShader:qn.meshphong_frag},standard:{uniforms:po([Gt.common,Gt.envmap,Gt.aomap,Gt.lightmap,Gt.emissivemap,Gt.bumpmap,Gt.normalmap,Gt.displacementmap,Gt.roughnessmap,Gt.metalnessmap,Gt.fog,Gt.lights,{emissive:{value:new Xt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:qn.meshphysical_vert,fragmentShader:qn.meshphysical_frag},toon:{uniforms:po([Gt.common,Gt.aomap,Gt.lightmap,Gt.emissivemap,Gt.bumpmap,Gt.normalmap,Gt.displacementmap,Gt.gradientmap,Gt.fog,Gt.lights,{emissive:{value:new Xt(0)}}]),vertexShader:qn.meshtoon_vert,fragmentShader:qn.meshtoon_frag},matcap:{uniforms:po([Gt.common,Gt.bumpmap,Gt.normalmap,Gt.displacementmap,Gt.fog,{matcap:{value:null}}]),vertexShader:qn.meshmatcap_vert,fragmentShader:qn.meshmatcap_frag},points:{uniforms:po([Gt.points,Gt.fog]),vertexShader:qn.points_vert,fragmentShader:qn.points_frag},dashed:{uniforms:po([Gt.common,Gt.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:qn.linedashed_vert,fragmentShader:qn.linedashed_frag},depth:{uniforms:po([Gt.common,Gt.displacementmap]),vertexShader:qn.depth_vert,fragmentShader:qn.depth_frag},normal:{uniforms:po([Gt.common,Gt.bumpmap,Gt.normalmap,Gt.displacementmap,{opacity:{value:1}}]),vertexShader:qn.meshnormal_vert,fragmentShader:qn.meshnormal_frag},sprite:{uniforms:po([Gt.sprite,Gt.fog]),vertexShader:qn.sprite_vert,fragmentShader:qn.sprite_frag},background:{uniforms:{uvTransform:{value:new kn},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:qn.background_vert,fragmentShader:qn.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:qn.backgroundCube_vert,fragmentShader:qn.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:qn.cube_vert,fragmentShader:qn.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:qn.equirect_vert,fragmentShader:qn.equirect_frag},distanceRGBA:{uniforms:po([Gt.common,Gt.displacementmap,{referencePosition:{value:new ue},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:qn.distanceRGBA_vert,fragmentShader:qn.distanceRGBA_frag},shadow:{uniforms:po([Gt.lights,Gt.fog,{color:{value:new Xt(0)},opacity:{value:1}}]),vertexShader:qn.shadow_vert,fragmentShader:qn.shadow_frag}};Za.physical={uniforms:po([Za.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new kn},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new kn},clearcoatNormalScale:{value:new st(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new kn},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new kn},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new kn},sheen:{value:0},sheenColor:{value:new Xt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new kn},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new kn},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new kn},transmissionSamplerSize:{value:new st},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new kn},attenuationDistance:{value:0},attenuationColor:{value:new Xt(0)},specularColor:{value:new Xt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new kn},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new kn},anisotropyVector:{value:new st},anisotropyMap:{value:null},anisotropyMapTransform:{value:new kn}}]),vertexShader:qn.meshphysical_vert,fragmentShader:qn.meshphysical_frag};const Vy={r:0,b:0,g:0};function fH(t,e,n,r,i,s,o){const a=new Xt(0);let l=s===!0?0:1,c,p,d=null,A=0,y=null;function C(D,I){let w=!1,B=I.isScene===!0?I.background:null;B&&B.isTexture&&(B=(I.backgroundBlurriness>0?n:e).get(B)),B===null?x(a,l):B&&B.isColor&&(x(B,1),w=!0);const _=t.xr.getEnvironmentBlendMode();_==="additive"?r.buffers.color.setClear(0,0,0,1,o):_==="alpha-blend"&&r.buffers.color.setClear(0,0,0,0,o),(t.autoClear||w)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),B&&(B.isCubeTexture||B.mapping===IA)?(p===void 0&&(p=new gr(new td(1,1,1),new il({name:"BackgroundCubeMaterial",uniforms:fA(Za.backgroundCube.uniforms),vertexShader:Za.backgroundCube.vertexShader,fragmentShader:Za.backgroundCube.fragmentShader,side:yo,depthTest:!1,depthWrite:!1,fog:!1})),p.geometry.deleteAttribute("normal"),p.geometry.deleteAttribute("uv"),p.onBeforeRender=function(F,P,N){this.matrixWorld.copyPosition(N.matrixWorld)},Object.defineProperty(p.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(p)),p.material.uniforms.envMap.value=B,p.material.uniforms.flipEnvMap.value=B.isCubeTexture&&B.isRenderTargetTexture===!1?-1:1,p.material.uniforms.backgroundBlurriness.value=I.backgroundBlurriness,p.material.uniforms.backgroundIntensity.value=I.backgroundIntensity,p.material.toneMapped=Br.getTransfer(B.colorSpace)!==Nr,(d!==B||A!==B.version||y!==t.toneMapping)&&(p.material.needsUpdate=!0,d=B,A=B.version,y=t.toneMapping),p.layers.enableAll(),D.unshift(p,p.geometry,p.material,0,0,null)):B&&B.isTexture&&(c===void 0&&(c=new gr(new mh(2,2),new il({name:"BackgroundMaterial",uniforms:fA(Za.background.uniforms),vertexShader:Za.background.vertexShader,fragmentShader:Za.background.fragmentShader,side:Sa,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(c)),c.material.uniforms.t2D.value=B,c.material.uniforms.backgroundIntensity.value=I.backgroundIntensity,c.material.toneMapped=Br.getTransfer(B.colorSpace)!==Nr,B.matrixAutoUpdate===!0&&B.updateMatrix(),c.material.uniforms.uvTransform.value.copy(B.matrix),(d!==B||A!==B.version||y!==t.toneMapping)&&(c.material.needsUpdate=!0,d=B,A=B.version,y=t.toneMapping),c.layers.enableAll(),D.unshift(c,c.geometry,c.material,0,0,null))}function x(D,I){D.getRGB(Vy,zk(t)),r.buffers.color.setClear(Vy.r,Vy.g,Vy.b,I,o)}return{getClearColor:function(){return a},setClearColor:function(D,I=1){a.set(D),l=I,x(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(D){l=D,x(a,l)},render:C}}function AH(t,e,n,r){const i=t.getParameter(t.MAX_VERTEX_ATTRIBS),s=r.isWebGL2?null:e.get("OES_vertex_array_object"),o=r.isWebGL2||s!==null,a={},l=D(null);let c=l,p=!1;function d(re,_e,De,Ge,ie){let ge=!1;if(o){const ve=x(Ge,De,_e);c!==ve&&(c=ve,y(c.object)),ge=I(re,Ge,De,ie),ge&&w(re,Ge,De,ie)}else{const ve=_e.wireframe===!0;(c.geometry!==Ge.id||c.program!==De.id||c.wireframe!==ve)&&(c.geometry=Ge.id,c.program=De.id,c.wireframe=ve,ge=!0)}ie!==null&&n.update(ie,t.ELEMENT_ARRAY_BUFFER),(ge||p)&&(p=!1,U(re,_e,De,Ge),ie!==null&&t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,n.get(ie).buffer))}function A(){return r.isWebGL2?t.createVertexArray():s.createVertexArrayOES()}function y(re){return r.isWebGL2?t.bindVertexArray(re):s.bindVertexArrayOES(re)}function C(re){return r.isWebGL2?t.deleteVertexArray(re):s.deleteVertexArrayOES(re)}function x(re,_e,De){const Ge=De.wireframe===!0;let ie=a[re.id];ie===void 0&&(ie={},a[re.id]=ie);let ge=ie[_e.id];ge===void 0&&(ge={},ie[_e.id]=ge);let ve=ge[Ge];return ve===void 0&&(ve=D(A()),ge[Ge]=ve),ve}function D(re){const _e=[],De=[],Ge=[];for(let ie=0;ie=0){const K=ie[Ue];let oe=ge[Ue];if(oe===void 0&&(Ue==="instanceMatrix"&&re.instanceMatrix&&(oe=re.instanceMatrix),Ue==="instanceColor"&&re.instanceColor&&(oe=re.instanceColor)),K===void 0||K.attribute!==oe||oe&&K.data!==oe.data)return!0;ve++}return c.attributesNum!==ve||c.index!==Ge}function w(re,_e,De,Ge){const ie={},ge=_e.attributes;let ve=0;const Ae=De.getAttributes();for(const Ue in Ae)if(Ae[Ue].location>=0){let K=ge[Ue];K===void 0&&(Ue==="instanceMatrix"&&re.instanceMatrix&&(K=re.instanceMatrix),Ue==="instanceColor"&&re.instanceColor&&(K=re.instanceColor));const oe={};oe.attribute=K,K&&K.data&&(oe.data=K.data),ie[Ue]=oe,ve++}c.attributes=ie,c.attributesNum=ve,c.index=Ge}function B(){const re=c.newAttributes;for(let _e=0,De=re.length;_e=0){let we=ie[Ae];if(we===void 0&&(Ae==="instanceMatrix"&&re.instanceMatrix&&(we=re.instanceMatrix),Ae==="instanceColor"&&re.instanceColor&&(we=re.instanceColor)),we!==void 0){const K=we.normalized,oe=we.itemSize,Y=n.get(we);if(Y===void 0)continue;const Z=Y.buffer,Le=Y.type,ze=Y.bytesPerElement,Fe=r.isWebGL2===!0&&(Le===t.INT||Le===t.UNSIGNED_INT||we.gpuType===fw);if(we.isInterleavedBufferAttribute){const je=we.data,le=je.stride,Ne=we.offset;if(je.isInstancedInterleavedBuffer){for(let be=0;be0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";N="mediump"}return N==="mediump"&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&t.constructor.name==="WebGL2RenderingContext";let a=n.precision!==void 0?n.precision:"highp";const l=s(a);l!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",l,"instead."),a=l);const c=o||e.has("WEBGL_draw_buffers"),p=n.logarithmicDepthBuffer===!0,d=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),A=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),y=t.getParameter(t.MAX_TEXTURE_SIZE),C=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),x=t.getParameter(t.MAX_VERTEX_ATTRIBS),D=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),I=t.getParameter(t.MAX_VARYING_VECTORS),w=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),B=A>0,_=o||e.has("OES_texture_float"),F=B&&_,P=o?t.getParameter(t.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:c,getMaxAnisotropy:i,getMaxPrecision:s,precision:a,logarithmicDepthBuffer:p,maxTextures:d,maxVertexTextures:A,maxTextureSize:y,maxCubemapSize:C,maxAttributes:x,maxVertexUniforms:D,maxVaryings:I,maxFragmentUniforms:w,vertexTextures:B,floatFragmentTextures:_,floatVertexTextures:F,maxSamples:P}}function yH(t){const e=this;let n=null,r=0,i=!1,s=!1;const o=new Tr,a=new kn,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(d,A){const y=d.length!==0||A||r!==0||i;return i=A,r=d.length,y},this.beginShadows=function(){s=!0,p(null)},this.endShadows=function(){s=!1},this.setGlobalState=function(d,A){n=p(d,A,0)},this.setState=function(d,A,y){const C=d.clippingPlanes,x=d.clipIntersection,D=d.clipShadows,I=t.get(d);if(!i||C===null||C.length===0||s&&!D)s?p(null):c();else{const w=s?0:r,B=w*4;let _=I.clippingState||null;l.value=_,_=p(C,A,B,y);for(let F=0;F!==B;++F)_[F]=n[F];I.clippingState=_,this.numIntersection=x?this.numPlanes:0,this.numPlanes+=w}};function c(){l.value!==n&&(l.value=n,l.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function p(d,A,y,C){const x=d!==null?d.length:0;let D=null;if(x!==0){if(D=l.value,C!==!0||D===null){const I=y+x*4,w=A.matrixWorldInverse;a.getNormalMatrix(w),(D===null||D.length0){const c=new Vk(l.height);return c.fromEquirectangularTexture(t,o),e.set(o,c),o.addEventListener("dispose",i),n(c.texture,o.mapping)}else return null}}return o}function i(o){const a=o.target;a.removeEventListener("dispose",i);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function s(){e=new WeakMap}return{get:r,dispose:s}}class SA extends p0{constructor(e=-1,n=1,r=1,i=-1,s=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=r,this.bottom=i,this.near=s,this.far=o,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,n,r,i,s,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let s=r-e,o=r+e,a=i+n,l=i-n;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,p=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s+=c*this.view.offsetX,o=s+c*this.view.width,a-=p*this.view.offsetY,l=a-p*this.view.height}this.projectionMatrix.makeOrthographic(s,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}const Gf=4,BM=[.125,.215,.35,.446,.526,.582],xp=20,Gx=new SA,bM=new Xt;let Hx=null,zx=0,Wx=0;const Ep=(1+Math.sqrt(5))/2,pf=1/Ep,TM=[new ue(1,1,1),new ue(-1,1,1),new ue(1,1,-1),new ue(-1,1,-1),new ue(0,Ep,pf),new ue(0,Ep,-pf),new ue(pf,0,Ep),new ue(-pf,0,Ep),new ue(Ep,pf,0),new ue(-Ep,pf,0)];class kS{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,n=0,r=.1,i=100){Hx=this._renderer.getRenderTarget(),zx=this._renderer.getActiveCubeFace(),Wx=this._renderer.getActiveMipmapLevel(),this._setSize(256);const s=this._allocateTargets();return s.depthBuffer=!0,this._sceneToCubeUV(e,r,i,s),n>0&&this._blur(s,0,0,n),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,n=null){return this._fromTexture(e,n)}fromCubemap(e,n=null){return this._fromTexture(e,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=FM(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=_M(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?B:0,B,B),p.setRenderTarget(i),x&&p.render(C,a),p.render(e,a)}C.geometry.dispose(),C.material.dispose(),p.toneMapping=A,p.autoClear=d,e.background=D}_textureToCubeUV(e,n){const r=this._renderer,i=e.mapping===bu||e.mapping===ah;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=FM()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=_M());const s=i?this._cubemapMaterial:this._equirectMaterial,o=new gr(this._lodPlanes[0],s),a=s.uniforms;a.envMap.value=e;const l=this._cubeSize;Jy(n,0,0,3*l,2*l),r.setRenderTarget(n),r.render(o,Gx)}_applyPMREM(e){const n=this._renderer,r=n.autoClear;n.autoClear=!1;for(let i=1;ixp&&console.warn(`sigmaRadians, ${s}, is too large and will clip, as it requested ${D} samples when the maximum is set to ${xp}`);const I=[];let w=0;for(let N=0;NB-Gf?i-B+Gf:0),P=4*(this._cubeSize-_);Jy(n,F,P,3*_,2*_),l.setRenderTarget(n),l.render(d,Gx)}}function CH(t){const e=[],n=[],r=[];let i=t;const s=t-Gf+1+BM.length;for(let o=0;ot-Gf?l=BM[o-t+Gf-1]:o===0&&(l=0),r.push(l);const c=1/(a-2),p=-c,d=1+c,A=[p,p,d,p,d,d,p,p,d,d,p,d],y=6,C=6,x=3,D=2,I=1,w=new Float32Array(x*C*y),B=new Float32Array(D*C*y),_=new Float32Array(I*C*y);for(let P=0;P2?0:-1,q=[N,U,0,N+2/3,U,0,N+2/3,U+1,0,N,U,0,N+2/3,U+1,0,N,U+1,0];w.set(q,x*C*P),B.set(A,D*C*P);const L=[P,P,P,P,P,P];_.set(L,I*C*P)}const F=new Hn;F.setAttribute("position",new Sr(w,x)),F.setAttribute("uv",new Sr(B,D)),F.setAttribute("faceIndex",new Sr(_,I)),e.push(F),i>Gf&&i--}return{lodPlanes:e,sizeLods:n,sigmas:r}}function MM(t,e,n){const r=new wa(t,e,n);return r.texture.mapping=IA,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function Jy(t,e,n,r,i){t.viewport.set(e,n,r,i),t.scissor.set(e,n,r,i)}function vH(t,e,n){const r=new Float32Array(xp),i=new ue(0,1,0);return new il({name:"SphericalGaussianBlur",defines:{n:xp,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:Mw(),fragmentShader:` precision mediump float; precision mediump int; @@ -3748,7 +3748,7 @@ Material Type: `+he.type+` Program Info Log: `+Ie+` `+ie+` -`+ge)}else Ie!==""?console.warn("THREE.WebGLProgram: Program Info Log:",Ie):(re===""||_e==="")&&(Ge=!1);Ge&&(he.diagnostics={runnable:De,programLog:Ie,vertexShader:{log:re,prefix:I},fragmentShader:{log:_e,prefix:w}})}i.deleteShader(P),i.deleteShader(N),q=new K1(i,D),L=Mz(i,D)}let q;this.getUniforms=function(){return q===void 0&&U(this),q};let L;this.getAttributes=function(){return L===void 0&&U(this),L};let z=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return z===!1&&(z=i.getProgramParameter(D,vz)),z},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(D),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=xz++,this.cacheKey=e,this.usedTimes=1,this.program=D,this.vertexShader=P,this.fragmentShader=N,this}let Hz=0;class zz{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,r=e.fragmentShader,i=this._getShaderStage(n),s=this._getShaderStage(r),o=this._getShaderCacheForMaterial(e);return o.has(i)===!1&&(o.add(i),i.usedTimes++),o.has(s)===!1&&(o.add(s),s.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const r of n)r.usedTimes--,r.usedTimes===0&&this.shaderCache.delete(r.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const n=this.materialCache;let r=n.get(e);return r===void 0&&(r=new Set,n.set(e,r)),r}_getShaderStage(e){const n=this.shaderCache;let r=n.get(e);return r===void 0&&(r=new Wz(e),n.set(e,r)),r}}class Wz{constructor(e){this.id=Hz++,this.code=e,this.usedTimes=0}}function jz(t,e,n,r,i,s,o){const a=new Lp,l=new zz,c=new Set,p=[],d=i.isWebGL2,A=i.logarithmicDepthBuffer,y=i.vertexTextures;let C=i.precision;const x={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function D(L){return c.add(L),L===0?"uv":`uv${L}`}function I(L,z,he,Ie,re){const _e=Ie.fog,De=re.geometry,Ge=L.isMeshStandardMaterial?Ie.environment:null,ie=(L.isMeshStandardMaterial?n:e).get(L.envMap||Ge),ge=ie&&ie.mapping===IA?ie.image.height:null,ve=x[L.type];L.precision!==null&&(C=i.getMaxPrecision(L.precision),C!==L.precision&&console.warn("THREE.WebGLProgram.getParameters:",L.precision,"not supported, using",C,"instead."));const Ae=De.morphAttributes.position||De.morphAttributes.normal||De.morphAttributes.color,Ue=Ae!==void 0?Ae.length:0;let we=0;De.morphAttributes.position!==void 0&&(we=1),De.morphAttributes.normal!==void 0&&(we=2),De.morphAttributes.color!==void 0&&(we=3);let K,oe,Y,Z;if(ve){const or=Za[ve];K=or.vertexShader,oe=or.fragmentShader}else K=L.vertexShader,oe=L.fragmentShader,l.update(L),Y=l.getVertexShaderID(L),Z=l.getFragmentShaderID(L);const Le=t.getRenderTarget(),ze=re.isInstancedMesh===!0,Fe=re.isBatchedMesh===!0,je=!!L.map,ae=!!L.matcap,Ne=!!ie,be=!!L.aoMap,Ve=!!L.lightMap,He=!!L.bumpMap,lt=!!L.normalMap,Se=!!L.displacementMap,W=!!L.emissiveMap,$=!!L.metalnessMap,Oe=!!L.roughnessMap,ft=L.anisotropy>0,pt=L.clearcoat>0,ut=L.iridescence>0,Ut=L.sheen>0,_t=L.transmission>0,Ot=ft&&!!L.anisotropyMap,Ft=pt&&!!L.clearcoatMap,Pt=pt&&!!L.clearcoatNormalMap,mt=pt&&!!L.clearcoatRoughnessMap,Rn=ut&&!!L.iridescenceMap,Sn=ut&&!!L.iridescenceThicknessMap,cn=Ut&&!!L.sheenColorMap,tn=Ut&&!!L.sheenRoughnessMap,qt=!!L.specularMap,xn=!!L.specularColorMap,Vn=!!L.specularIntensityMap,Tn=_t&&!!L.transmissionMap,Pn=_t&&!!L.thicknessMap,zn=!!L.gradientMap,Be=!!L.alphaMap,Mt=L.alphaTest>0,dt=!!L.alphaHash,on=!!L.extensions;let nn=kl;L.toneMapped&&(Le===null||Le.isXRRenderTarget===!0)&&(nn=t.toneMapping);const rr={isWebGL2:d,shaderID:ve,shaderType:L.type,shaderName:L.name,vertexShader:K,fragmentShader:oe,defines:L.defines,customVertexShaderID:Y,customFragmentShaderID:Z,isRawShaderMaterial:L.isRawShaderMaterial===!0,glslVersion:L.glslVersion,precision:C,batching:Fe,instancing:ze,instancingColor:ze&&re.instanceColor!==null,supportsVertexTextures:y,outputColorSpace:Le===null?t.outputColorSpace:Le.isXRRenderTarget===!0?Le.texture.colorSpace:Ll,alphaToCoverage:!!L.alphaToCoverage,map:je,matcap:ae,envMap:Ne,envMapMode:Ne&&ie.mapping,envMapCubeUVHeight:ge,aoMap:be,lightMap:Ve,bumpMap:He,normalMap:lt,displacementMap:y&&Se,emissiveMap:W,normalMapObjectSpace:lt&&L.normalMapType===_k,normalMapTangentSpace:lt&&L.normalMapType===Ah,metalnessMap:$,roughnessMap:Oe,anisotropy:ft,anisotropyMap:Ot,clearcoat:pt,clearcoatMap:Ft,clearcoatNormalMap:Pt,clearcoatRoughnessMap:mt,iridescence:ut,iridescenceMap:Rn,iridescenceThicknessMap:Sn,sheen:Ut,sheenColorMap:cn,sheenRoughnessMap:tn,specularMap:qt,specularColorMap:xn,specularIntensityMap:Vn,transmission:_t,transmissionMap:Tn,thicknessMap:Pn,gradientMap:zn,opaque:L.transparent===!1&&L.blending===Qp&&L.alphaToCoverage===!1,alphaMap:Be,alphaTest:Mt,alphaHash:dt,combine:L.combine,mapUv:je&&D(L.map.channel),aoMapUv:be&&D(L.aoMap.channel),lightMapUv:Ve&&D(L.lightMap.channel),bumpMapUv:He&&D(L.bumpMap.channel),normalMapUv:lt&&D(L.normalMap.channel),displacementMapUv:Se&&D(L.displacementMap.channel),emissiveMapUv:W&&D(L.emissiveMap.channel),metalnessMapUv:$&&D(L.metalnessMap.channel),roughnessMapUv:Oe&&D(L.roughnessMap.channel),anisotropyMapUv:Ot&&D(L.anisotropyMap.channel),clearcoatMapUv:Ft&&D(L.clearcoatMap.channel),clearcoatNormalMapUv:Pt&&D(L.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:mt&&D(L.clearcoatRoughnessMap.channel),iridescenceMapUv:Rn&&D(L.iridescenceMap.channel),iridescenceThicknessMapUv:Sn&&D(L.iridescenceThicknessMap.channel),sheenColorMapUv:cn&&D(L.sheenColorMap.channel),sheenRoughnessMapUv:tn&&D(L.sheenRoughnessMap.channel),specularMapUv:qt&&D(L.specularMap.channel),specularColorMapUv:xn&&D(L.specularColorMap.channel),specularIntensityMapUv:Vn&&D(L.specularIntensityMap.channel),transmissionMapUv:Tn&&D(L.transmissionMap.channel),thicknessMapUv:Pn&&D(L.thicknessMap.channel),alphaMapUv:Be&&D(L.alphaMap.channel),vertexTangents:!!De.attributes.tangent&&(lt||ft),vertexColors:L.vertexColors,vertexAlphas:L.vertexColors===!0&&!!De.attributes.color&&De.attributes.color.itemSize===4,pointsUvs:re.isPoints===!0&&!!De.attributes.uv&&(je||Be),fog:!!_e,useFog:L.fog===!0,fogExp2:!!_e&&_e.isFogExp2,flatShading:L.flatShading===!0,sizeAttenuation:L.sizeAttenuation===!0,logarithmicDepthBuffer:A,skinning:re.isSkinnedMesh===!0,morphTargets:De.morphAttributes.position!==void 0,morphNormals:De.morphAttributes.normal!==void 0,morphColors:De.morphAttributes.color!==void 0,morphTargetsCount:Ue,morphTextureStride:we,numDirLights:z.directional.length,numPointLights:z.point.length,numSpotLights:z.spot.length,numSpotLightMaps:z.spotLightMap.length,numRectAreaLights:z.rectArea.length,numHemiLights:z.hemi.length,numDirLightShadows:z.directionalShadowMap.length,numPointLightShadows:z.pointShadowMap.length,numSpotLightShadows:z.spotShadowMap.length,numSpotLightShadowsWithMaps:z.numSpotLightShadowsWithMaps,numLightProbes:z.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:L.dithering,shadowMapEnabled:t.shadowMap.enabled&&he.length>0,shadowMapType:t.shadowMap.type,toneMapping:nn,useLegacyLights:t._useLegacyLights,decodeVideoTexture:je&&L.map.isVideoTexture===!0&&Br.getTransfer(L.map.colorSpace)===Nr,premultipliedAlpha:L.premultipliedAlpha,doubleSided:L.side===Tl,flipSided:L.side===yo,useDepthPacking:L.depthPacking>=0,depthPacking:L.depthPacking||0,index0AttributeName:L.index0AttributeName,extensionDerivatives:on&&L.extensions.derivatives===!0,extensionFragDepth:on&&L.extensions.fragDepth===!0,extensionDrawBuffers:on&&L.extensions.drawBuffers===!0,extensionShaderTextureLOD:on&&L.extensions.shaderTextureLOD===!0,extensionClipCullDistance:on&&L.extensions.clipCullDistance===!0&&r.has("WEBGL_clip_cull_distance"),extensionMultiDraw:on&&L.extensions.multiDraw===!0&&r.has("WEBGL_multi_draw"),rendererExtensionFragDepth:d||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:d||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:d||r.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:r.has("KHR_parallel_shader_compile"),customProgramCacheKey:L.customProgramCacheKey()};return rr.vertexUv1s=c.has(1),rr.vertexUv2s=c.has(2),rr.vertexUv3s=c.has(3),c.clear(),rr}function w(L){const z=[];if(L.shaderID?z.push(L.shaderID):(z.push(L.customVertexShaderID),z.push(L.customFragmentShaderID)),L.defines!==void 0)for(const he in L.defines)z.push(he),z.push(L.defines[he]);return L.isRawShaderMaterial===!1&&(B(z,L),_(z,L),z.push(t.outputColorSpace)),z.push(L.customProgramCacheKey),z.join()}function B(L,z){L.push(z.precision),L.push(z.outputColorSpace),L.push(z.envMapMode),L.push(z.envMapCubeUVHeight),L.push(z.mapUv),L.push(z.alphaMapUv),L.push(z.lightMapUv),L.push(z.aoMapUv),L.push(z.bumpMapUv),L.push(z.normalMapUv),L.push(z.displacementMapUv),L.push(z.emissiveMapUv),L.push(z.metalnessMapUv),L.push(z.roughnessMapUv),L.push(z.anisotropyMapUv),L.push(z.clearcoatMapUv),L.push(z.clearcoatNormalMapUv),L.push(z.clearcoatRoughnessMapUv),L.push(z.iridescenceMapUv),L.push(z.iridescenceThicknessMapUv),L.push(z.sheenColorMapUv),L.push(z.sheenRoughnessMapUv),L.push(z.specularMapUv),L.push(z.specularColorMapUv),L.push(z.specularIntensityMapUv),L.push(z.transmissionMapUv),L.push(z.thicknessMapUv),L.push(z.combine),L.push(z.fogExp2),L.push(z.sizeAttenuation),L.push(z.morphTargetsCount),L.push(z.morphAttributeCount),L.push(z.numDirLights),L.push(z.numPointLights),L.push(z.numSpotLights),L.push(z.numSpotLightMaps),L.push(z.numHemiLights),L.push(z.numRectAreaLights),L.push(z.numDirLightShadows),L.push(z.numPointLightShadows),L.push(z.numSpotLightShadows),L.push(z.numSpotLightShadowsWithMaps),L.push(z.numLightProbes),L.push(z.shadowMapType),L.push(z.toneMapping),L.push(z.numClippingPlanes),L.push(z.numClipIntersection),L.push(z.depthPacking)}function _(L,z){a.disableAll(),z.isWebGL2&&a.enable(0),z.supportsVertexTextures&&a.enable(1),z.instancing&&a.enable(2),z.instancingColor&&a.enable(3),z.matcap&&a.enable(4),z.envMap&&a.enable(5),z.normalMapObjectSpace&&a.enable(6),z.normalMapTangentSpace&&a.enable(7),z.clearcoat&&a.enable(8),z.iridescence&&a.enable(9),z.alphaTest&&a.enable(10),z.vertexColors&&a.enable(11),z.vertexAlphas&&a.enable(12),z.vertexUv1s&&a.enable(13),z.vertexUv2s&&a.enable(14),z.vertexUv3s&&a.enable(15),z.vertexTangents&&a.enable(16),z.anisotropy&&a.enable(17),z.alphaHash&&a.enable(18),z.batching&&a.enable(19),L.push(a.mask),a.disableAll(),z.fog&&a.enable(0),z.useFog&&a.enable(1),z.flatShading&&a.enable(2),z.logarithmicDepthBuffer&&a.enable(3),z.skinning&&a.enable(4),z.morphTargets&&a.enable(5),z.morphNormals&&a.enable(6),z.morphColors&&a.enable(7),z.premultipliedAlpha&&a.enable(8),z.shadowMapEnabled&&a.enable(9),z.useLegacyLights&&a.enable(10),z.doubleSided&&a.enable(11),z.flipSided&&a.enable(12),z.useDepthPacking&&a.enable(13),z.dithering&&a.enable(14),z.transmission&&a.enable(15),z.sheen&&a.enable(16),z.opaque&&a.enable(17),z.pointsUvs&&a.enable(18),z.decodeVideoTexture&&a.enable(19),z.alphaToCoverage&&a.enable(20),L.push(a.mask)}function F(L){const z=x[L.type];let he;if(z){const Ie=Za[z];he=Wk.clone(Ie.uniforms)}else he=L.uniforms;return he}function P(L,z){let he;for(let Ie=0,re=p.length;Ie0?r.push(I):y.transparent===!0?i.push(I):n.push(I)}function l(d,A,y,C,x,D){const I=o(d,A,y,C,x,D);y.transmission>0?r.unshift(I):y.transparent===!0?i.unshift(I):n.unshift(I)}function c(d,A){n.length>1&&n.sort(d||Jz),r.length>1&&r.sort(A||jM),i.length>1&&i.sort(A||jM)}function p(){for(let d=e,A=t.length;d=s.length?(o=new VM,s.push(o)):o=s[i],o}function n(){t=new WeakMap}return{get:e,dispose:n}}function Xz(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new ue,color:new Xt};break;case"SpotLight":n={position:new ue,direction:new ue,color:new Xt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new ue,color:new Xt,distance:0,decay:0};break;case"HemisphereLight":n={direction:new ue,skyColor:new Xt,groundColor:new Xt};break;case"RectAreaLight":n={color:new Xt,position:new ue,halfWidth:new ue,halfHeight:new ue};break}return t[e.id]=n,n}}}function qz(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new st};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new st};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new st,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let Kz=0;function Zz(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function $z(t,e){const n=new Xz,r=qz(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let p=0;p<9;p++)i.probe.push(new ue);const s=new ue,o=new En,a=new En;function l(p,d){let A=0,y=0,C=0;for(let he=0;he<9;he++)i.probe[he].set(0,0,0);let x=0,D=0,I=0,w=0,B=0,_=0,F=0,P=0,N=0,U=0,q=0;p.sort(Zz);const L=d===!0?Math.PI:1;for(let he=0,Ie=p.length;he0&&(e.isWebGL2?t.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=Gt.LTC_FLOAT_1,i.rectAreaLTC2=Gt.LTC_FLOAT_2):(i.rectAreaLTC1=Gt.LTC_HALF_1,i.rectAreaLTC2=Gt.LTC_HALF_2):t.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=Gt.LTC_FLOAT_1,i.rectAreaLTC2=Gt.LTC_FLOAT_2):t.has("OES_texture_half_float_linear")===!0?(i.rectAreaLTC1=Gt.LTC_HALF_1,i.rectAreaLTC2=Gt.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=A,i.ambient[1]=y,i.ambient[2]=C;const z=i.hash;(z.directionalLength!==x||z.pointLength!==D||z.spotLength!==I||z.rectAreaLength!==w||z.hemiLength!==B||z.numDirectionalShadows!==_||z.numPointShadows!==F||z.numSpotShadows!==P||z.numSpotMaps!==N||z.numLightProbes!==q)&&(i.directional.length=x,i.spot.length=I,i.rectArea.length=w,i.point.length=D,i.hemi.length=B,i.directionalShadow.length=_,i.directionalShadowMap.length=_,i.pointShadow.length=F,i.pointShadowMap.length=F,i.spotShadow.length=P,i.spotShadowMap.length=P,i.directionalShadowMatrix.length=_,i.pointShadowMatrix.length=F,i.spotLightMatrix.length=P+N-U,i.spotLightMap.length=N,i.numSpotLightShadowsWithMaps=U,i.numLightProbes=q,z.directionalLength=x,z.pointLength=D,z.spotLength=I,z.rectAreaLength=w,z.hemiLength=B,z.numDirectionalShadows=_,z.numPointShadows=F,z.numSpotShadows=P,z.numSpotMaps=N,z.numLightProbes=q,i.version=Kz++)}function c(p,d){let A=0,y=0,C=0,x=0,D=0;const I=d.matrixWorldInverse;for(let w=0,B=p.length;w=a.length?(l=new JM(t,e),a.push(l)):l=a[o],l}function i(){n=new WeakMap}return{get:r,dispose:i}}class AC extends Ni{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Mk,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class gC extends Ni{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const tW=`void main() { +`+ge)}else Ie!==""?console.warn("THREE.WebGLProgram: Program Info Log:",Ie):(re===""||_e==="")&&(Ge=!1);Ge&&(he.diagnostics={runnable:De,programLog:Ie,vertexShader:{log:re,prefix:I},fragmentShader:{log:_e,prefix:w}})}i.deleteShader(P),i.deleteShader(N),q=new K1(i,D),L=Mz(i,D)}let q;this.getUniforms=function(){return q===void 0&&U(this),q};let L;this.getAttributes=function(){return L===void 0&&U(this),L};let z=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return z===!1&&(z=i.getProgramParameter(D,vz)),z},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(D),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=xz++,this.cacheKey=e,this.usedTimes=1,this.program=D,this.vertexShader=P,this.fragmentShader=N,this}let Hz=0;class zz{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,r=e.fragmentShader,i=this._getShaderStage(n),s=this._getShaderStage(r),o=this._getShaderCacheForMaterial(e);return o.has(i)===!1&&(o.add(i),i.usedTimes++),o.has(s)===!1&&(o.add(s),s.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const r of n)r.usedTimes--,r.usedTimes===0&&this.shaderCache.delete(r.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const n=this.materialCache;let r=n.get(e);return r===void 0&&(r=new Set,n.set(e,r)),r}_getShaderStage(e){const n=this.shaderCache;let r=n.get(e);return r===void 0&&(r=new Wz(e),n.set(e,r)),r}}class Wz{constructor(e){this.id=Hz++,this.code=e,this.usedTimes=0}}function jz(t,e,n,r,i,s,o){const a=new Lp,l=new zz,c=new Set,p=[],d=i.isWebGL2,A=i.logarithmicDepthBuffer,y=i.vertexTextures;let C=i.precision;const x={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function D(L){return c.add(L),L===0?"uv":`uv${L}`}function I(L,z,he,Ie,re){const _e=Ie.fog,De=re.geometry,Ge=L.isMeshStandardMaterial?Ie.environment:null,ie=(L.isMeshStandardMaterial?n:e).get(L.envMap||Ge),ge=ie&&ie.mapping===IA?ie.image.height:null,ve=x[L.type];L.precision!==null&&(C=i.getMaxPrecision(L.precision),C!==L.precision&&console.warn("THREE.WebGLProgram.getParameters:",L.precision,"not supported, using",C,"instead."));const Ae=De.morphAttributes.position||De.morphAttributes.normal||De.morphAttributes.color,Ue=Ae!==void 0?Ae.length:0;let we=0;De.morphAttributes.position!==void 0&&(we=1),De.morphAttributes.normal!==void 0&&(we=2),De.morphAttributes.color!==void 0&&(we=3);let K,oe,Y,Z;if(ve){const or=Za[ve];K=or.vertexShader,oe=or.fragmentShader}else K=L.vertexShader,oe=L.fragmentShader,l.update(L),Y=l.getVertexShaderID(L),Z=l.getFragmentShaderID(L);const Le=t.getRenderTarget(),ze=re.isInstancedMesh===!0,Fe=re.isBatchedMesh===!0,je=!!L.map,le=!!L.matcap,Ne=!!ie,be=!!L.aoMap,Ve=!!L.lightMap,He=!!L.bumpMap,lt=!!L.normalMap,Se=!!L.displacementMap,W=!!L.emissiveMap,$=!!L.metalnessMap,Oe=!!L.roughnessMap,ft=L.anisotropy>0,pt=L.clearcoat>0,ut=L.iridescence>0,Ut=L.sheen>0,_t=L.transmission>0,Ot=ft&&!!L.anisotropyMap,Ft=pt&&!!L.clearcoatMap,Pt=pt&&!!L.clearcoatNormalMap,mt=pt&&!!L.clearcoatRoughnessMap,Rn=ut&&!!L.iridescenceMap,Sn=ut&&!!L.iridescenceThicknessMap,cn=Ut&&!!L.sheenColorMap,tn=Ut&&!!L.sheenRoughnessMap,qt=!!L.specularMap,xn=!!L.specularColorMap,Vn=!!L.specularIntensityMap,Tn=_t&&!!L.transmissionMap,Pn=_t&&!!L.thicknessMap,zn=!!L.gradientMap,Be=!!L.alphaMap,Mt=L.alphaTest>0,dt=!!L.alphaHash,on=!!L.extensions;let nn=kl;L.toneMapped&&(Le===null||Le.isXRRenderTarget===!0)&&(nn=t.toneMapping);const rr={isWebGL2:d,shaderID:ve,shaderType:L.type,shaderName:L.name,vertexShader:K,fragmentShader:oe,defines:L.defines,customVertexShaderID:Y,customFragmentShaderID:Z,isRawShaderMaterial:L.isRawShaderMaterial===!0,glslVersion:L.glslVersion,precision:C,batching:Fe,instancing:ze,instancingColor:ze&&re.instanceColor!==null,supportsVertexTextures:y,outputColorSpace:Le===null?t.outputColorSpace:Le.isXRRenderTarget===!0?Le.texture.colorSpace:Ll,alphaToCoverage:!!L.alphaToCoverage,map:je,matcap:le,envMap:Ne,envMapMode:Ne&&ie.mapping,envMapCubeUVHeight:ge,aoMap:be,lightMap:Ve,bumpMap:He,normalMap:lt,displacementMap:y&&Se,emissiveMap:W,normalMapObjectSpace:lt&&L.normalMapType===_k,normalMapTangentSpace:lt&&L.normalMapType===Ah,metalnessMap:$,roughnessMap:Oe,anisotropy:ft,anisotropyMap:Ot,clearcoat:pt,clearcoatMap:Ft,clearcoatNormalMap:Pt,clearcoatRoughnessMap:mt,iridescence:ut,iridescenceMap:Rn,iridescenceThicknessMap:Sn,sheen:Ut,sheenColorMap:cn,sheenRoughnessMap:tn,specularMap:qt,specularColorMap:xn,specularIntensityMap:Vn,transmission:_t,transmissionMap:Tn,thicknessMap:Pn,gradientMap:zn,opaque:L.transparent===!1&&L.blending===Qp&&L.alphaToCoverage===!1,alphaMap:Be,alphaTest:Mt,alphaHash:dt,combine:L.combine,mapUv:je&&D(L.map.channel),aoMapUv:be&&D(L.aoMap.channel),lightMapUv:Ve&&D(L.lightMap.channel),bumpMapUv:He&&D(L.bumpMap.channel),normalMapUv:lt&&D(L.normalMap.channel),displacementMapUv:Se&&D(L.displacementMap.channel),emissiveMapUv:W&&D(L.emissiveMap.channel),metalnessMapUv:$&&D(L.metalnessMap.channel),roughnessMapUv:Oe&&D(L.roughnessMap.channel),anisotropyMapUv:Ot&&D(L.anisotropyMap.channel),clearcoatMapUv:Ft&&D(L.clearcoatMap.channel),clearcoatNormalMapUv:Pt&&D(L.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:mt&&D(L.clearcoatRoughnessMap.channel),iridescenceMapUv:Rn&&D(L.iridescenceMap.channel),iridescenceThicknessMapUv:Sn&&D(L.iridescenceThicknessMap.channel),sheenColorMapUv:cn&&D(L.sheenColorMap.channel),sheenRoughnessMapUv:tn&&D(L.sheenRoughnessMap.channel),specularMapUv:qt&&D(L.specularMap.channel),specularColorMapUv:xn&&D(L.specularColorMap.channel),specularIntensityMapUv:Vn&&D(L.specularIntensityMap.channel),transmissionMapUv:Tn&&D(L.transmissionMap.channel),thicknessMapUv:Pn&&D(L.thicknessMap.channel),alphaMapUv:Be&&D(L.alphaMap.channel),vertexTangents:!!De.attributes.tangent&&(lt||ft),vertexColors:L.vertexColors,vertexAlphas:L.vertexColors===!0&&!!De.attributes.color&&De.attributes.color.itemSize===4,pointsUvs:re.isPoints===!0&&!!De.attributes.uv&&(je||Be),fog:!!_e,useFog:L.fog===!0,fogExp2:!!_e&&_e.isFogExp2,flatShading:L.flatShading===!0,sizeAttenuation:L.sizeAttenuation===!0,logarithmicDepthBuffer:A,skinning:re.isSkinnedMesh===!0,morphTargets:De.morphAttributes.position!==void 0,morphNormals:De.morphAttributes.normal!==void 0,morphColors:De.morphAttributes.color!==void 0,morphTargetsCount:Ue,morphTextureStride:we,numDirLights:z.directional.length,numPointLights:z.point.length,numSpotLights:z.spot.length,numSpotLightMaps:z.spotLightMap.length,numRectAreaLights:z.rectArea.length,numHemiLights:z.hemi.length,numDirLightShadows:z.directionalShadowMap.length,numPointLightShadows:z.pointShadowMap.length,numSpotLightShadows:z.spotShadowMap.length,numSpotLightShadowsWithMaps:z.numSpotLightShadowsWithMaps,numLightProbes:z.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:L.dithering,shadowMapEnabled:t.shadowMap.enabled&&he.length>0,shadowMapType:t.shadowMap.type,toneMapping:nn,useLegacyLights:t._useLegacyLights,decodeVideoTexture:je&&L.map.isVideoTexture===!0&&Br.getTransfer(L.map.colorSpace)===Nr,premultipliedAlpha:L.premultipliedAlpha,doubleSided:L.side===Tl,flipSided:L.side===yo,useDepthPacking:L.depthPacking>=0,depthPacking:L.depthPacking||0,index0AttributeName:L.index0AttributeName,extensionDerivatives:on&&L.extensions.derivatives===!0,extensionFragDepth:on&&L.extensions.fragDepth===!0,extensionDrawBuffers:on&&L.extensions.drawBuffers===!0,extensionShaderTextureLOD:on&&L.extensions.shaderTextureLOD===!0,extensionClipCullDistance:on&&L.extensions.clipCullDistance===!0&&r.has("WEBGL_clip_cull_distance"),extensionMultiDraw:on&&L.extensions.multiDraw===!0&&r.has("WEBGL_multi_draw"),rendererExtensionFragDepth:d||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:d||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:d||r.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:r.has("KHR_parallel_shader_compile"),customProgramCacheKey:L.customProgramCacheKey()};return rr.vertexUv1s=c.has(1),rr.vertexUv2s=c.has(2),rr.vertexUv3s=c.has(3),c.clear(),rr}function w(L){const z=[];if(L.shaderID?z.push(L.shaderID):(z.push(L.customVertexShaderID),z.push(L.customFragmentShaderID)),L.defines!==void 0)for(const he in L.defines)z.push(he),z.push(L.defines[he]);return L.isRawShaderMaterial===!1&&(B(z,L),_(z,L),z.push(t.outputColorSpace)),z.push(L.customProgramCacheKey),z.join()}function B(L,z){L.push(z.precision),L.push(z.outputColorSpace),L.push(z.envMapMode),L.push(z.envMapCubeUVHeight),L.push(z.mapUv),L.push(z.alphaMapUv),L.push(z.lightMapUv),L.push(z.aoMapUv),L.push(z.bumpMapUv),L.push(z.normalMapUv),L.push(z.displacementMapUv),L.push(z.emissiveMapUv),L.push(z.metalnessMapUv),L.push(z.roughnessMapUv),L.push(z.anisotropyMapUv),L.push(z.clearcoatMapUv),L.push(z.clearcoatNormalMapUv),L.push(z.clearcoatRoughnessMapUv),L.push(z.iridescenceMapUv),L.push(z.iridescenceThicknessMapUv),L.push(z.sheenColorMapUv),L.push(z.sheenRoughnessMapUv),L.push(z.specularMapUv),L.push(z.specularColorMapUv),L.push(z.specularIntensityMapUv),L.push(z.transmissionMapUv),L.push(z.thicknessMapUv),L.push(z.combine),L.push(z.fogExp2),L.push(z.sizeAttenuation),L.push(z.morphTargetsCount),L.push(z.morphAttributeCount),L.push(z.numDirLights),L.push(z.numPointLights),L.push(z.numSpotLights),L.push(z.numSpotLightMaps),L.push(z.numHemiLights),L.push(z.numRectAreaLights),L.push(z.numDirLightShadows),L.push(z.numPointLightShadows),L.push(z.numSpotLightShadows),L.push(z.numSpotLightShadowsWithMaps),L.push(z.numLightProbes),L.push(z.shadowMapType),L.push(z.toneMapping),L.push(z.numClippingPlanes),L.push(z.numClipIntersection),L.push(z.depthPacking)}function _(L,z){a.disableAll(),z.isWebGL2&&a.enable(0),z.supportsVertexTextures&&a.enable(1),z.instancing&&a.enable(2),z.instancingColor&&a.enable(3),z.matcap&&a.enable(4),z.envMap&&a.enable(5),z.normalMapObjectSpace&&a.enable(6),z.normalMapTangentSpace&&a.enable(7),z.clearcoat&&a.enable(8),z.iridescence&&a.enable(9),z.alphaTest&&a.enable(10),z.vertexColors&&a.enable(11),z.vertexAlphas&&a.enable(12),z.vertexUv1s&&a.enable(13),z.vertexUv2s&&a.enable(14),z.vertexUv3s&&a.enable(15),z.vertexTangents&&a.enable(16),z.anisotropy&&a.enable(17),z.alphaHash&&a.enable(18),z.batching&&a.enable(19),L.push(a.mask),a.disableAll(),z.fog&&a.enable(0),z.useFog&&a.enable(1),z.flatShading&&a.enable(2),z.logarithmicDepthBuffer&&a.enable(3),z.skinning&&a.enable(4),z.morphTargets&&a.enable(5),z.morphNormals&&a.enable(6),z.morphColors&&a.enable(7),z.premultipliedAlpha&&a.enable(8),z.shadowMapEnabled&&a.enable(9),z.useLegacyLights&&a.enable(10),z.doubleSided&&a.enable(11),z.flipSided&&a.enable(12),z.useDepthPacking&&a.enable(13),z.dithering&&a.enable(14),z.transmission&&a.enable(15),z.sheen&&a.enable(16),z.opaque&&a.enable(17),z.pointsUvs&&a.enable(18),z.decodeVideoTexture&&a.enable(19),z.alphaToCoverage&&a.enable(20),L.push(a.mask)}function F(L){const z=x[L.type];let he;if(z){const Ie=Za[z];he=Wk.clone(Ie.uniforms)}else he=L.uniforms;return he}function P(L,z){let he;for(let Ie=0,re=p.length;Ie0?r.push(I):y.transparent===!0?i.push(I):n.push(I)}function l(d,A,y,C,x,D){const I=o(d,A,y,C,x,D);y.transmission>0?r.unshift(I):y.transparent===!0?i.unshift(I):n.unshift(I)}function c(d,A){n.length>1&&n.sort(d||Jz),r.length>1&&r.sort(A||jM),i.length>1&&i.sort(A||jM)}function p(){for(let d=e,A=t.length;d=s.length?(o=new VM,s.push(o)):o=s[i],o}function n(){t=new WeakMap}return{get:e,dispose:n}}function Xz(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new ue,color:new Xt};break;case"SpotLight":n={position:new ue,direction:new ue,color:new Xt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new ue,color:new Xt,distance:0,decay:0};break;case"HemisphereLight":n={direction:new ue,skyColor:new Xt,groundColor:new Xt};break;case"RectAreaLight":n={color:new Xt,position:new ue,halfWidth:new ue,halfHeight:new ue};break}return t[e.id]=n,n}}}function qz(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new st};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new st};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new st,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let Kz=0;function Zz(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function $z(t,e){const n=new Xz,r=qz(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let p=0;p<9;p++)i.probe.push(new ue);const s=new ue,o=new En,a=new En;function l(p,d){let A=0,y=0,C=0;for(let he=0;he<9;he++)i.probe[he].set(0,0,0);let x=0,D=0,I=0,w=0,B=0,_=0,F=0,P=0,N=0,U=0,q=0;p.sort(Zz);const L=d===!0?Math.PI:1;for(let he=0,Ie=p.length;he0&&(e.isWebGL2?t.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=Gt.LTC_FLOAT_1,i.rectAreaLTC2=Gt.LTC_FLOAT_2):(i.rectAreaLTC1=Gt.LTC_HALF_1,i.rectAreaLTC2=Gt.LTC_HALF_2):t.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=Gt.LTC_FLOAT_1,i.rectAreaLTC2=Gt.LTC_FLOAT_2):t.has("OES_texture_half_float_linear")===!0?(i.rectAreaLTC1=Gt.LTC_HALF_1,i.rectAreaLTC2=Gt.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=A,i.ambient[1]=y,i.ambient[2]=C;const z=i.hash;(z.directionalLength!==x||z.pointLength!==D||z.spotLength!==I||z.rectAreaLength!==w||z.hemiLength!==B||z.numDirectionalShadows!==_||z.numPointShadows!==F||z.numSpotShadows!==P||z.numSpotMaps!==N||z.numLightProbes!==q)&&(i.directional.length=x,i.spot.length=I,i.rectArea.length=w,i.point.length=D,i.hemi.length=B,i.directionalShadow.length=_,i.directionalShadowMap.length=_,i.pointShadow.length=F,i.pointShadowMap.length=F,i.spotShadow.length=P,i.spotShadowMap.length=P,i.directionalShadowMatrix.length=_,i.pointShadowMatrix.length=F,i.spotLightMatrix.length=P+N-U,i.spotLightMap.length=N,i.numSpotLightShadowsWithMaps=U,i.numLightProbes=q,z.directionalLength=x,z.pointLength=D,z.spotLength=I,z.rectAreaLength=w,z.hemiLength=B,z.numDirectionalShadows=_,z.numPointShadows=F,z.numSpotShadows=P,z.numSpotMaps=N,z.numLightProbes=q,i.version=Kz++)}function c(p,d){let A=0,y=0,C=0,x=0,D=0;const I=d.matrixWorldInverse;for(let w=0,B=p.length;w=a.length?(l=new JM(t,e),a.push(l)):l=a[o],l}function i(){n=new WeakMap}return{get:r,dispose:i}}class AC extends Ni{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Mk,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class gC extends Ni{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const tW=`void main() { gl_Position = vec4( position, 1.0 ); }`,nW=`uniform sampler2D shadow_pass; uniform vec2 resolution; @@ -3776,7 +3776,7 @@ void main() { squared_mean = squared_mean / samples; float std_dev = sqrt( squared_mean - mean * mean ); gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); -}`;function rW(t,e,n){let r=new f0;const i=new st,s=new st,o=new br,a=new AC({depthPacking:Iw}),l=new gC,c={},p=n.maxTextureSize,d={[Sa]:yo,[yo]:Sa,[Tl]:Tl},A=new il({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new st},radius:{value:4}},vertexShader:tW,fragmentShader:nW}),y=A.clone();y.defines.HORIZONTAL_PASS=1;const C=new Hn;C.setAttribute("position",new Sr(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const x=new gr(C,A),D=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=lC;let I=this.type;this.render=function(P,N,U){if(D.enabled===!1||D.autoUpdate===!1&&D.needsUpdate===!1||P.length===0)return;const q=t.getRenderTarget(),L=t.getActiveCubeFace(),z=t.getActiveMipmapLevel(),he=t.state;he.setBlending(Iu),he.buffers.color.setClear(1,1,1,1),he.buffers.depth.setTest(!0),he.setScissorTest(!1);const Ie=I!==Ya&&this.type===Ya,re=I===Ya&&this.type!==Ya;for(let _e=0,De=P.length;_ep||i.y>p)&&(i.x>p&&(s.x=Math.floor(p/ge.x),i.x=s.x*ge.x,ie.mapSize.x=s.x),i.y>p&&(s.y=Math.floor(p/ge.y),i.y=s.y*ge.y,ie.mapSize.y=s.y)),ie.map===null||Ie===!0||re===!0){const Ae=this.type!==Ya?{minFilter:Ii,magFilter:Ii}:{};ie.map!==null&&ie.map.dispose(),ie.map=new wa(i.x,i.y,Ae),ie.map.texture.name=Ge.name+".shadowMap",ie.camera.updateProjectionMatrix()}t.setRenderTarget(ie.map),t.clear();const ve=ie.getViewportCount();for(let Ae=0;Ae0||N.map&&N.alphaTest>0){const he=L.uuid,Ie=N.uuid;let re=c[he];re===void 0&&(re={},c[he]=re);let _e=re[Ie];_e===void 0&&(_e=L.clone(),re[Ie]=_e,N.addEventListener("dispose",F)),L=_e}if(L.visible=N.visible,L.wireframe=N.wireframe,q===Ya?L.side=N.shadowSide!==null?N.shadowSide:N.side:L.side=N.shadowSide!==null?N.shadowSide:d[N.side],L.alphaMap=N.alphaMap,L.alphaTest=N.alphaTest,L.map=N.map,L.clipShadows=N.clipShadows,L.clippingPlanes=N.clippingPlanes,L.clipIntersection=N.clipIntersection,L.displacementMap=N.displacementMap,L.displacementScale=N.displacementScale,L.displacementBias=N.displacementBias,L.wireframeLinewidth=N.wireframeLinewidth,L.linewidth=N.linewidth,U.isPointLight===!0&&L.isMeshDistanceMaterial===!0){const he=t.properties.get(L);he.light=U}return L}function _(P,N,U,q,L){if(P.visible===!1)return;if(P.layers.test(N.layers)&&(P.isMesh||P.isLine||P.isPoints)&&(P.castShadow||P.receiveShadow&&L===Ya)&&(!P.frustumCulled||r.intersectsObject(P))){P.modelViewMatrix.multiplyMatrices(U.matrixWorldInverse,P.matrixWorld);const Ie=e.update(P),re=P.material;if(Array.isArray(re)){const _e=Ie.groups;for(let De=0,Ge=_e.length;De=1):ve.indexOf("OpenGL ES")!==-1&&(ge=parseFloat(/^OpenGL ES (\d)/.exec(ve)[1]),ie=ge>=2);let Ae=null,Ue={};const we=t.getParameter(t.SCISSOR_BOX),K=t.getParameter(t.VIEWPORT),oe=new br().fromArray(we),Y=new br().fromArray(K);function Z(Be,Mt,dt,on){const nn=new Uint8Array(4),rr=t.createTexture();t.bindTexture(Be,rr),t.texParameteri(Be,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(Be,t.TEXTURE_MAG_FILTER,t.NEAREST);for(let or=0;or"u"?!1:/OculusBrowser/g.test(navigator.userAgent),p=new WeakMap;let d;const A=new WeakMap;let y=!1;try{y=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function C(W,$){return y?new OffscreenCanvas(W,$):Jm("canvas")}function x(W,$,Oe,ft){let pt=1;if((W.width>ft||W.height>ft)&&(pt=ft/Math.max(W.width,W.height)),pt<1||$===!0)if(typeof HTMLImageElement<"u"&&W instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&W instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&W instanceof ImageBitmap){const ut=$?kE:Math.floor,Ut=ut(pt*W.width),_t=ut(pt*W.height);d===void 0&&(d=C(Ut,_t));const Ot=Oe?C(Ut,_t):d;return Ot.width=Ut,Ot.height=_t,Ot.getContext("2d").drawImage(W,0,0,Ut,_t),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+W.width+"x"+W.height+") to ("+Ut+"x"+_t+")."),Ot}else return"data"in W&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+W.width+"x"+W.height+")."),W;return W}function D(W){return QS(W.width)&&QS(W.height)}function I(W){return a?!1:W.wrapS!==Ks||W.wrapT!==Ks||W.minFilter!==Ii&&W.minFilter!==Wr}function w(W,$){return W.generateMipmaps&&$&&W.minFilter!==Ii&&W.minFilter!==Wr}function B(W){t.generateMipmap(W)}function _(W,$,Oe,ft,pt=!1){if(a===!1)return $;if(W!==null){if(t[W]!==void 0)return t[W];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+W+"'")}let ut=$;if($===t.RED&&(Oe===t.FLOAT&&(ut=t.R32F),Oe===t.HALF_FLOAT&&(ut=t.R16F),Oe===t.UNSIGNED_BYTE&&(ut=t.R8)),$===t.RED_INTEGER&&(Oe===t.UNSIGNED_BYTE&&(ut=t.R8UI),Oe===t.UNSIGNED_SHORT&&(ut=t.R16UI),Oe===t.UNSIGNED_INT&&(ut=t.R32UI),Oe===t.BYTE&&(ut=t.R8I),Oe===t.SHORT&&(ut=t.R16I),Oe===t.INT&&(ut=t.R32I)),$===t.RG&&(Oe===t.FLOAT&&(ut=t.RG32F),Oe===t.HALF_FLOAT&&(ut=t.RG16F),Oe===t.UNSIGNED_BYTE&&(ut=t.RG8)),$===t.RGBA){const Ut=pt?Hm:Br.getTransfer(ft);Oe===t.FLOAT&&(ut=t.RGBA32F),Oe===t.HALF_FLOAT&&(ut=t.RGBA16F),Oe===t.UNSIGNED_BYTE&&(ut=Ut===Nr?t.SRGB8_ALPHA8:t.RGBA8),Oe===t.UNSIGNED_SHORT_4_4_4_4&&(ut=t.RGBA4),Oe===t.UNSIGNED_SHORT_5_5_5_1&&(ut=t.RGB5_A1)}return(ut===t.R16F||ut===t.R32F||ut===t.RG16F||ut===t.RG32F||ut===t.RGBA16F||ut===t.RGBA32F)&&e.get("EXT_color_buffer_float"),ut}function F(W,$,Oe){return w(W,Oe)===!0||W.isFramebufferTexture&&W.minFilter!==Ii&&W.minFilter!==Wr?Math.log2(Math.max($.width,$.height))+1:W.mipmaps!==void 0&&W.mipmaps.length>0?W.mipmaps.length:W.isCompressedTexture&&Array.isArray(W.image)?$.mipmaps.length:1}function P(W){return W===Ii||W===PE||W===vp?t.NEAREST:t.LINEAR}function N(W){const $=W.target;$.removeEventListener("dispose",N),q($),$.isVideoTexture&&p.delete($)}function U(W){const $=W.target;$.removeEventListener("dispose",U),z($)}function q(W){const $=r.get(W);if($.__webglInit===void 0)return;const Oe=W.source,ft=A.get(Oe);if(ft){const pt=ft[$.__cacheKey];pt.usedTimes--,pt.usedTimes===0&&L(W),Object.keys(ft).length===0&&A.delete(Oe)}r.remove(W)}function L(W){const $=r.get(W);t.deleteTexture($.__webglTexture);const Oe=W.source,ft=A.get(Oe);delete ft[$.__cacheKey],o.memory.textures--}function z(W){const $=W.texture,Oe=r.get(W),ft=r.get($);if(ft.__webglTexture!==void 0&&(t.deleteTexture(ft.__webglTexture),o.memory.textures--),W.depthTexture&&W.depthTexture.dispose(),W.isWebGLCubeRenderTarget)for(let pt=0;pt<6;pt++){if(Array.isArray(Oe.__webglFramebuffer[pt]))for(let ut=0;ut=i.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+W+" texture units while this GPU supports only "+i.maxTextures),he+=1,W}function _e(W){const $=[];return $.push(W.wrapS),$.push(W.wrapT),$.push(W.wrapR||0),$.push(W.magFilter),$.push(W.minFilter),$.push(W.anisotropy),$.push(W.internalFormat),$.push(W.format),$.push(W.type),$.push(W.generateMipmaps),$.push(W.premultiplyAlpha),$.push(W.flipY),$.push(W.unpackAlignment),$.push(W.colorSpace),$.join()}function De(W,$){const Oe=r.get(W);if(W.isVideoTexture&<(W),W.isRenderTargetTexture===!1&&W.version>0&&Oe.__version!==W.version){const ft=W.image;if(ft===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(ft.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{oe(Oe,W,$);return}}n.bindTexture(t.TEXTURE_2D,Oe.__webglTexture,t.TEXTURE0+$)}function Ge(W,$){const Oe=r.get(W);if(W.version>0&&Oe.__version!==W.version){oe(Oe,W,$);return}n.bindTexture(t.TEXTURE_2D_ARRAY,Oe.__webglTexture,t.TEXTURE0+$)}function ie(W,$){const Oe=r.get(W);if(W.version>0&&Oe.__version!==W.version){oe(Oe,W,$);return}n.bindTexture(t.TEXTURE_3D,Oe.__webglTexture,t.TEXTURE0+$)}function ge(W,$){const Oe=r.get(W);if(W.version>0&&Oe.__version!==W.version){Y(Oe,W,$);return}n.bindTexture(t.TEXTURE_CUBE_MAP,Oe.__webglTexture,t.TEXTURE0+$)}const ve={[Lm]:t.REPEAT,[Ks]:t.CLAMP_TO_EDGE,[Nm]:t.MIRRORED_REPEAT},Ae={[Ii]:t.NEAREST,[PE]:t.NEAREST_MIPMAP_NEAREST,[vp]:t.NEAREST_MIPMAP_LINEAR,[Wr]:t.LINEAR,[lm]:t.LINEAR_MIPMAP_NEAREST,[Ml]:t.LINEAR_MIPMAP_LINEAR},Ue={[Fk]:t.NEVER,[Nk]:t.ALWAYS,[Pk]:t.LESS,[Dw]:t.LEQUAL,[Qk]:t.EQUAL,[Lk]:t.GEQUAL,[kk]:t.GREATER,[Rk]:t.NOTEQUAL};function we(W,$,Oe){if($.type===Ea&&e.has("OES_texture_float_linear")===!1&&($.magFilter===Wr||$.magFilter===lm||$.magFilter===vp||$.magFilter===Ml||$.minFilter===Wr||$.minFilter===lm||$.minFilter===vp||$.minFilter===Ml)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),Oe?(t.texParameteri(W,t.TEXTURE_WRAP_S,ve[$.wrapS]),t.texParameteri(W,t.TEXTURE_WRAP_T,ve[$.wrapT]),(W===t.TEXTURE_3D||W===t.TEXTURE_2D_ARRAY)&&t.texParameteri(W,t.TEXTURE_WRAP_R,ve[$.wrapR]),t.texParameteri(W,t.TEXTURE_MAG_FILTER,Ae[$.magFilter]),t.texParameteri(W,t.TEXTURE_MIN_FILTER,Ae[$.minFilter])):(t.texParameteri(W,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(W,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),(W===t.TEXTURE_3D||W===t.TEXTURE_2D_ARRAY)&&t.texParameteri(W,t.TEXTURE_WRAP_R,t.CLAMP_TO_EDGE),($.wrapS!==Ks||$.wrapT!==Ks)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(W,t.TEXTURE_MAG_FILTER,P($.magFilter)),t.texParameteri(W,t.TEXTURE_MIN_FILTER,P($.minFilter)),$.minFilter!==Ii&&$.minFilter!==Wr&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),$.compareFunction&&(t.texParameteri(W,t.TEXTURE_COMPARE_MODE,t.COMPARE_REF_TO_TEXTURE),t.texParameteri(W,t.TEXTURE_COMPARE_FUNC,Ue[$.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const ft=e.get("EXT_texture_filter_anisotropic");if($.magFilter===Ii||$.minFilter!==vp&&$.minFilter!==Ml||$.type===Ea&&e.has("OES_texture_float_linear")===!1||a===!1&&$.type===Jp&&e.has("OES_texture_half_float_linear")===!1)return;($.anisotropy>1||r.get($).__currentAnisotropy)&&(t.texParameterf(W,ft.TEXTURE_MAX_ANISOTROPY_EXT,Math.min($.anisotropy,i.getMaxAnisotropy())),r.get($).__currentAnisotropy=$.anisotropy)}}function K(W,$){let Oe=!1;W.__webglInit===void 0&&(W.__webglInit=!0,$.addEventListener("dispose",N));const ft=$.source;let pt=A.get(ft);pt===void 0&&(pt={},A.set(ft,pt));const ut=_e($);if(ut!==W.__cacheKey){pt[ut]===void 0&&(pt[ut]={texture:t.createTexture(),usedTimes:0},o.memory.textures++,Oe=!0),pt[ut].usedTimes++;const Ut=pt[W.__cacheKey];Ut!==void 0&&(pt[W.__cacheKey].usedTimes--,Ut.usedTimes===0&&L($)),W.__cacheKey=ut,W.__webglTexture=pt[ut].texture}return Oe}function oe(W,$,Oe){let ft=t.TEXTURE_2D;($.isDataArrayTexture||$.isCompressedArrayTexture)&&(ft=t.TEXTURE_2D_ARRAY),$.isData3DTexture&&(ft=t.TEXTURE_3D);const pt=K(W,$),ut=$.source;n.bindTexture(ft,W.__webglTexture,t.TEXTURE0+Oe);const Ut=r.get(ut);if(ut.version!==Ut.__version||pt===!0){n.activeTexture(t.TEXTURE0+Oe);const _t=Br.getPrimaries(Br.workingColorSpace),Ot=$.colorSpace===Ko?null:Br.getPrimaries($.colorSpace),Ft=$.colorSpace===Ko||_t===Ot?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,$.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,$.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,$.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,Ft);const Pt=I($)&&D($.image)===!1;let mt=x($.image,Pt,!1,i.maxTextureSize);mt=Se($,mt);const Rn=D(mt)||a,Sn=s.convert($.format,$.colorSpace);let cn=s.convert($.type),tn=_($.internalFormat,Sn,cn,$.colorSpace,$.isVideoTexture);we(ft,$,Rn);let qt;const xn=$.mipmaps,Vn=a&&$.isVideoTexture!==!0&&tn!==Cw,Tn=Ut.__version===void 0||pt===!0,Pn=ut.dataReady,zn=F($,mt,Rn);if($.isDepthTexture)tn=t.DEPTH_COMPONENT,a?$.type===Ea?tn=t.DEPTH_COMPONENT32F:$.type===Eu?tn=t.DEPTH_COMPONENT24:$.type===Zc?tn=t.DEPTH24_STENCIL8:tn=t.DEPTH_COMPONENT16:$.type===Ea&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),$.format===$c&&tn===t.DEPTH_COMPONENT&&$.type!==cC&&$.type!==Eu&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),$.type=Eu,cn=s.convert($.type)),$.format===Yp&&tn===t.DEPTH_COMPONENT&&(tn=t.DEPTH_STENCIL,$.type!==Zc&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),$.type=Zc,cn=s.convert($.type))),Tn&&(Vn?n.texStorage2D(t.TEXTURE_2D,1,tn,mt.width,mt.height):n.texImage2D(t.TEXTURE_2D,0,tn,mt.width,mt.height,0,Sn,cn,null));else if($.isDataTexture)if(xn.length>0&&Rn){Vn&&Tn&&n.texStorage2D(t.TEXTURE_2D,zn,tn,xn[0].width,xn[0].height);for(let Be=0,Mt=xn.length;Be>=1,Mt>>=1}}else if(xn.length>0&&Rn){Vn&&Tn&&n.texStorage2D(t.TEXTURE_2D,zn,tn,xn[0].width,xn[0].height);for(let Be=0,Mt=xn.length;Be0&&Pn++,n.texStorage2D(t.TEXTURE_CUBE_MAP,Pn,qt,mt[0].width,mt[0].height));for(let Be=0;Be<6;Be++)if(Pt){xn?Tn&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Be,0,0,0,mt[Be].width,mt[Be].height,cn,tn,mt[Be].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Be,0,qt,mt[Be].width,mt[Be].height,0,cn,tn,mt[Be].data);for(let Mt=0;Mt>ut),mt=Math.max(1,$.height>>ut);pt===t.TEXTURE_3D||pt===t.TEXTURE_2D_ARRAY?n.texImage3D(pt,ut,Ot,Pt,mt,$.depth,0,Ut,_t,null):n.texImage2D(pt,ut,Ot,Pt,mt,0,Ut,_t,null)}n.bindFramebuffer(t.FRAMEBUFFER,W),He($)?l.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,ft,pt,r.get(Oe).__webglTexture,0,Ve($)):(pt===t.TEXTURE_2D||pt>=t.TEXTURE_CUBE_MAP_POSITIVE_X&&pt<=t.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&t.framebufferTexture2D(t.FRAMEBUFFER,ft,pt,r.get(Oe).__webglTexture,ut),n.bindFramebuffer(t.FRAMEBUFFER,null)}function Le(W,$,Oe){if(t.bindRenderbuffer(t.RENDERBUFFER,W),$.depthBuffer&&!$.stencilBuffer){let ft=a===!0?t.DEPTH_COMPONENT24:t.DEPTH_COMPONENT16;if(Oe||He($)){const pt=$.depthTexture;pt&&pt.isDepthTexture&&(pt.type===Ea?ft=t.DEPTH_COMPONENT32F:pt.type===Eu&&(ft=t.DEPTH_COMPONENT24));const ut=Ve($);He($)?l.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,ut,ft,$.width,$.height):t.renderbufferStorageMultisample(t.RENDERBUFFER,ut,ft,$.width,$.height)}else t.renderbufferStorage(t.RENDERBUFFER,ft,$.width,$.height);t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,W)}else if($.depthBuffer&&$.stencilBuffer){const ft=Ve($);Oe&&He($)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,ft,t.DEPTH24_STENCIL8,$.width,$.height):He($)?l.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,ft,t.DEPTH24_STENCIL8,$.width,$.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,$.width,$.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,W)}else{const ft=$.isWebGLMultipleRenderTargets===!0?$.texture:[$.texture];for(let pt=0;pt0){Oe.__webglFramebuffer[_t]=[];for(let Ot=0;Ot<$.mipmaps.length;Ot++)Oe.__webglFramebuffer[_t][Ot]=t.createFramebuffer()}else Oe.__webglFramebuffer[_t]=t.createFramebuffer()}else{if(a&&$.mipmaps&&$.mipmaps.length>0){Oe.__webglFramebuffer=[];for(let _t=0;_t<$.mipmaps.length;_t++)Oe.__webglFramebuffer[_t]=t.createFramebuffer()}else Oe.__webglFramebuffer=t.createFramebuffer();if(ut)if(i.drawBuffers){const _t=W.texture;for(let Ot=0,Ft=_t.length;Ot0&&He(W)===!1){const _t=ut?$:[$];Oe.__webglMultisampledFramebuffer=t.createFramebuffer(),Oe.__webglColorRenderbuffer=[],n.bindFramebuffer(t.FRAMEBUFFER,Oe.__webglMultisampledFramebuffer);for(let Ot=0;Ot<_t.length;Ot++){const Ft=_t[Ot];Oe.__webglColorRenderbuffer[Ot]=t.createRenderbuffer(),t.bindRenderbuffer(t.RENDERBUFFER,Oe.__webglColorRenderbuffer[Ot]);const Pt=s.convert(Ft.format,Ft.colorSpace),mt=s.convert(Ft.type),Rn=_(Ft.internalFormat,Pt,mt,Ft.colorSpace,W.isXRRenderTarget===!0),Sn=Ve(W);t.renderbufferStorageMultisample(t.RENDERBUFFER,Sn,Rn,W.width,W.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ot,t.RENDERBUFFER,Oe.__webglColorRenderbuffer[Ot])}t.bindRenderbuffer(t.RENDERBUFFER,null),W.depthBuffer&&(Oe.__webglDepthRenderbuffer=t.createRenderbuffer(),Le(Oe.__webglDepthRenderbuffer,W,!0)),n.bindFramebuffer(t.FRAMEBUFFER,null)}}if(pt){n.bindTexture(t.TEXTURE_CUBE_MAP,ft.__webglTexture),we(t.TEXTURE_CUBE_MAP,$,Ut);for(let _t=0;_t<6;_t++)if(a&&$.mipmaps&&$.mipmaps.length>0)for(let Ot=0;Ot<$.mipmaps.length;Ot++)Z(Oe.__webglFramebuffer[_t][Ot],W,$,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+_t,Ot);else Z(Oe.__webglFramebuffer[_t],W,$,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+_t,0);w($,Ut)&&B(t.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(ut){const _t=W.texture;for(let Ot=0,Ft=_t.length;Ot0)for(let Ot=0;Ot<$.mipmaps.length;Ot++)Z(Oe.__webglFramebuffer[Ot],W,$,t.COLOR_ATTACHMENT0,_t,Ot);else Z(Oe.__webglFramebuffer,W,$,t.COLOR_ATTACHMENT0,_t,0);w($,Ut)&&B(_t),n.unbindTexture()}W.depthBuffer&&Fe(W)}function Ne(W){const $=D(W)||a,Oe=W.isWebGLMultipleRenderTargets===!0?W.texture:[W.texture];for(let ft=0,pt=Oe.length;ft0&&He(W)===!1){const $=W.isWebGLMultipleRenderTargets?W.texture:[W.texture],Oe=W.width,ft=W.height;let pt=t.COLOR_BUFFER_BIT;const ut=[],Ut=W.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,_t=r.get(W),Ot=W.isWebGLMultipleRenderTargets===!0;if(Ot)for(let Ft=0;Ft<$.length;Ft++)n.bindFramebuffer(t.FRAMEBUFFER,_t.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ft,t.RENDERBUFFER,null),n.bindFramebuffer(t.FRAMEBUFFER,_t.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ft,t.TEXTURE_2D,null,0);n.bindFramebuffer(t.READ_FRAMEBUFFER,_t.__webglMultisampledFramebuffer),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,_t.__webglFramebuffer);for(let Ft=0;Ft<$.length;Ft++){ut.push(t.COLOR_ATTACHMENT0+Ft),W.depthBuffer&&ut.push(Ut);const Pt=_t.__ignoreDepthValues!==void 0?_t.__ignoreDepthValues:!1;if(Pt===!1&&(W.depthBuffer&&(pt|=t.DEPTH_BUFFER_BIT),W.stencilBuffer&&(pt|=t.STENCIL_BUFFER_BIT)),Ot&&t.framebufferRenderbuffer(t.READ_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.RENDERBUFFER,_t.__webglColorRenderbuffer[Ft]),Pt===!0&&(t.invalidateFramebuffer(t.READ_FRAMEBUFFER,[Ut]),t.invalidateFramebuffer(t.DRAW_FRAMEBUFFER,[Ut])),Ot){const mt=r.get($[Ft]).__webglTexture;t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,mt,0)}t.blitFramebuffer(0,0,Oe,ft,0,0,Oe,ft,pt,t.NEAREST),c&&t.invalidateFramebuffer(t.READ_FRAMEBUFFER,ut)}if(n.bindFramebuffer(t.READ_FRAMEBUFFER,null),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),Ot)for(let Ft=0;Ft<$.length;Ft++){n.bindFramebuffer(t.FRAMEBUFFER,_t.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ft,t.RENDERBUFFER,_t.__webglColorRenderbuffer[Ft]);const Pt=r.get($[Ft]).__webglTexture;n.bindFramebuffer(t.FRAMEBUFFER,_t.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ft,t.TEXTURE_2D,Pt,0)}n.bindFramebuffer(t.DRAW_FRAMEBUFFER,_t.__webglMultisampledFramebuffer)}}function Ve(W){return Math.min(i.maxSamples,W.samples)}function He(W){const $=r.get(W);return a&&W.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&$.__useRenderToTexture!==!1}function lt(W){const $=o.render.frame;p.get(W)!==$&&(p.set(W,$),W.update())}function Se(W,$){const Oe=W.colorSpace,ft=W.format,pt=W.type;return W.isCompressedTexture===!0||W.isVideoTexture===!0||W.format===QE||Oe!==Ll&&Oe!==Ko&&(Br.getTransfer(Oe)===Nr?a===!1?e.has("EXT_sRGB")===!0&&ft===Ao?(W.format=QE,W.minFilter=Wr,W.generateMipmaps=!1):$=ww.sRGBToLinear($):(ft!==Ao||pt!==Rl)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",Oe)),$}this.allocateTextureUnit=re,this.resetTextureUnits=Ie,this.setTexture2D=De,this.setTexture2DArray=Ge,this.setTexture3D=ie,this.setTextureCube=ge,this.rebindTextures=je,this.setupRenderTarget=ae,this.updateRenderTargetMipmap=Ne,this.updateMultisampleRenderTarget=be,this.setupDepthRenderbuffer=Fe,this.setupFrameBufferTexture=Z,this.useMultisampledRTT=He}function $k(t,e,n){const r=n.isWebGL2;function i(s,o=Ko){let a;const l=Br.getTransfer(o);if(s===Rl)return t.UNSIGNED_BYTE;if(s===Aw)return t.UNSIGNED_SHORT_4_4_4_4;if(s===gw)return t.UNSIGNED_SHORT_5_5_5_1;if(s===Ek)return t.BYTE;if(s===Ck)return t.SHORT;if(s===cC)return t.UNSIGNED_SHORT;if(s===fw)return t.INT;if(s===Eu)return t.UNSIGNED_INT;if(s===Ea)return t.FLOAT;if(s===Jp)return r?t.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(s===vk)return t.ALPHA;if(s===Ao)return t.RGBA;if(s===xk)return t.LUMINANCE;if(s===Ik)return t.LUMINANCE_ALPHA;if(s===$c)return t.DEPTH_COMPONENT;if(s===Yp)return t.DEPTH_STENCIL;if(s===QE)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(s===Dk)return t.RED;if(s===mw)return t.RED_INTEGER;if(s===Sk)return t.RG;if(s===yw)return t.RG_INTEGER;if(s===Ew)return t.RGBA_INTEGER;if(s===j1||s===V1||s===J1||s===Y1)if(l===Nr)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(s===j1)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(s===V1)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(s===J1)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(s===Y1)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(s===j1)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(s===V1)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(s===J1)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(s===Y1)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(s===aS||s===lS||s===uS||s===cS)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(s===aS)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(s===lS)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(s===uS)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(s===cS)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(s===Cw)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(s===hS||s===pS)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(s===hS)return l===Nr?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(s===pS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(s===dS||s===fS||s===AS||s===gS||s===mS||s===yS||s===ES||s===CS||s===vS||s===xS||s===IS||s===DS||s===SS||s===wS)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(s===dS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(s===fS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(s===AS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(s===gS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(s===mS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(s===yS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(s===ES)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(s===CS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(s===vS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(s===xS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(s===IS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(s===DS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(s===SS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(s===wS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(s===X1||s===BS||s===bS)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(s===X1)return l===Nr?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(s===BS)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(s===bS)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(s===wk||s===TS||s===MS||s===_S)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(s===X1)return a.COMPRESSED_RED_RGTC1_EXT;if(s===TS)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(s===MS)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(s===_S)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return s===Zc?r?t.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):t[s]!==void 0?t[s]:null}return{convert:i}}class eR extends ki{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Cu extends ir{constructor(){super(),this.isGroup=!0,this.type="Group"}}const oW={type:"move"};class Vx{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Cu,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Cu,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new ue,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new ue),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Cu,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new ue,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new ue),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const n=this._hand;if(n)for(const r of e.hand.values())this._getHandJoint(n,r)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,n,r){let i=null,s=null,o=null;const a=this._targetRay,l=this._grip,c=this._hand;if(e&&n.session.visibilityState!=="visible-blurred"){if(c&&e.hand){o=!0;for(const x of e.hand.values()){const D=n.getJointPose(x,r),I=this._getHandJoint(c,x);D!==null&&(I.matrix.fromArray(D.transform.matrix),I.matrix.decompose(I.position,I.rotation,I.scale),I.matrixWorldNeedsUpdate=!0,I.jointRadius=D.radius),I.visible=D!==null}const p=c.joints["index-finger-tip"],d=c.joints["thumb-tip"],A=p.position.distanceTo(d.position),y=.02,C=.005;c.inputState.pinching&&A>y+C?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&A<=y-C&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(s=n.getPose(e.gripSpace,r),s!==null&&(l.matrix.fromArray(s.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,s.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(s.linearVelocity)):l.hasLinearVelocity=!1,s.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(s.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(i=n.getPose(e.targetRaySpace,r),i===null&&s!==null&&(i=s),i!==null&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(oW)))}return a!==null&&(a.visible=i!==null),l!==null&&(l.visible=s!==null),c!==null&&(c.visible=o!==null),this}_getHandJoint(e,n){if(e.joints[n.jointName]===void 0){const r=new Cu;r.matrixAutoUpdate=!1,r.visible=!1,e.joints[n.jointName]=r,e.add(r)}return e.joints[n.jointName]}}const aW=` +}`;function rW(t,e,n){let r=new f0;const i=new st,s=new st,o=new br,a=new AC({depthPacking:Iw}),l=new gC,c={},p=n.maxTextureSize,d={[Sa]:yo,[yo]:Sa,[Tl]:Tl},A=new il({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new st},radius:{value:4}},vertexShader:tW,fragmentShader:nW}),y=A.clone();y.defines.HORIZONTAL_PASS=1;const C=new Hn;C.setAttribute("position",new Sr(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const x=new gr(C,A),D=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=lC;let I=this.type;this.render=function(P,N,U){if(D.enabled===!1||D.autoUpdate===!1&&D.needsUpdate===!1||P.length===0)return;const q=t.getRenderTarget(),L=t.getActiveCubeFace(),z=t.getActiveMipmapLevel(),he=t.state;he.setBlending(Iu),he.buffers.color.setClear(1,1,1,1),he.buffers.depth.setTest(!0),he.setScissorTest(!1);const Ie=I!==Ya&&this.type===Ya,re=I===Ya&&this.type!==Ya;for(let _e=0,De=P.length;_ep||i.y>p)&&(i.x>p&&(s.x=Math.floor(p/ge.x),i.x=s.x*ge.x,ie.mapSize.x=s.x),i.y>p&&(s.y=Math.floor(p/ge.y),i.y=s.y*ge.y,ie.mapSize.y=s.y)),ie.map===null||Ie===!0||re===!0){const Ae=this.type!==Ya?{minFilter:Ii,magFilter:Ii}:{};ie.map!==null&&ie.map.dispose(),ie.map=new wa(i.x,i.y,Ae),ie.map.texture.name=Ge.name+".shadowMap",ie.camera.updateProjectionMatrix()}t.setRenderTarget(ie.map),t.clear();const ve=ie.getViewportCount();for(let Ae=0;Ae0||N.map&&N.alphaTest>0){const he=L.uuid,Ie=N.uuid;let re=c[he];re===void 0&&(re={},c[he]=re);let _e=re[Ie];_e===void 0&&(_e=L.clone(),re[Ie]=_e,N.addEventListener("dispose",F)),L=_e}if(L.visible=N.visible,L.wireframe=N.wireframe,q===Ya?L.side=N.shadowSide!==null?N.shadowSide:N.side:L.side=N.shadowSide!==null?N.shadowSide:d[N.side],L.alphaMap=N.alphaMap,L.alphaTest=N.alphaTest,L.map=N.map,L.clipShadows=N.clipShadows,L.clippingPlanes=N.clippingPlanes,L.clipIntersection=N.clipIntersection,L.displacementMap=N.displacementMap,L.displacementScale=N.displacementScale,L.displacementBias=N.displacementBias,L.wireframeLinewidth=N.wireframeLinewidth,L.linewidth=N.linewidth,U.isPointLight===!0&&L.isMeshDistanceMaterial===!0){const he=t.properties.get(L);he.light=U}return L}function _(P,N,U,q,L){if(P.visible===!1)return;if(P.layers.test(N.layers)&&(P.isMesh||P.isLine||P.isPoints)&&(P.castShadow||P.receiveShadow&&L===Ya)&&(!P.frustumCulled||r.intersectsObject(P))){P.modelViewMatrix.multiplyMatrices(U.matrixWorldInverse,P.matrixWorld);const Ie=e.update(P),re=P.material;if(Array.isArray(re)){const _e=Ie.groups;for(let De=0,Ge=_e.length;De=1):ve.indexOf("OpenGL ES")!==-1&&(ge=parseFloat(/^OpenGL ES (\d)/.exec(ve)[1]),ie=ge>=2);let Ae=null,Ue={};const we=t.getParameter(t.SCISSOR_BOX),K=t.getParameter(t.VIEWPORT),oe=new br().fromArray(we),Y=new br().fromArray(K);function Z(Be,Mt,dt,on){const nn=new Uint8Array(4),rr=t.createTexture();t.bindTexture(Be,rr),t.texParameteri(Be,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(Be,t.TEXTURE_MAG_FILTER,t.NEAREST);for(let or=0;or"u"?!1:/OculusBrowser/g.test(navigator.userAgent),p=new WeakMap;let d;const A=new WeakMap;let y=!1;try{y=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function C(W,$){return y?new OffscreenCanvas(W,$):Jm("canvas")}function x(W,$,Oe,ft){let pt=1;if((W.width>ft||W.height>ft)&&(pt=ft/Math.max(W.width,W.height)),pt<1||$===!0)if(typeof HTMLImageElement<"u"&&W instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&W instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&W instanceof ImageBitmap){const ut=$?kE:Math.floor,Ut=ut(pt*W.width),_t=ut(pt*W.height);d===void 0&&(d=C(Ut,_t));const Ot=Oe?C(Ut,_t):d;return Ot.width=Ut,Ot.height=_t,Ot.getContext("2d").drawImage(W,0,0,Ut,_t),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+W.width+"x"+W.height+") to ("+Ut+"x"+_t+")."),Ot}else return"data"in W&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+W.width+"x"+W.height+")."),W;return W}function D(W){return QS(W.width)&&QS(W.height)}function I(W){return a?!1:W.wrapS!==Ks||W.wrapT!==Ks||W.minFilter!==Ii&&W.minFilter!==Wr}function w(W,$){return W.generateMipmaps&&$&&W.minFilter!==Ii&&W.minFilter!==Wr}function B(W){t.generateMipmap(W)}function _(W,$,Oe,ft,pt=!1){if(a===!1)return $;if(W!==null){if(t[W]!==void 0)return t[W];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+W+"'")}let ut=$;if($===t.RED&&(Oe===t.FLOAT&&(ut=t.R32F),Oe===t.HALF_FLOAT&&(ut=t.R16F),Oe===t.UNSIGNED_BYTE&&(ut=t.R8)),$===t.RED_INTEGER&&(Oe===t.UNSIGNED_BYTE&&(ut=t.R8UI),Oe===t.UNSIGNED_SHORT&&(ut=t.R16UI),Oe===t.UNSIGNED_INT&&(ut=t.R32UI),Oe===t.BYTE&&(ut=t.R8I),Oe===t.SHORT&&(ut=t.R16I),Oe===t.INT&&(ut=t.R32I)),$===t.RG&&(Oe===t.FLOAT&&(ut=t.RG32F),Oe===t.HALF_FLOAT&&(ut=t.RG16F),Oe===t.UNSIGNED_BYTE&&(ut=t.RG8)),$===t.RGBA){const Ut=pt?Hm:Br.getTransfer(ft);Oe===t.FLOAT&&(ut=t.RGBA32F),Oe===t.HALF_FLOAT&&(ut=t.RGBA16F),Oe===t.UNSIGNED_BYTE&&(ut=Ut===Nr?t.SRGB8_ALPHA8:t.RGBA8),Oe===t.UNSIGNED_SHORT_4_4_4_4&&(ut=t.RGBA4),Oe===t.UNSIGNED_SHORT_5_5_5_1&&(ut=t.RGB5_A1)}return(ut===t.R16F||ut===t.R32F||ut===t.RG16F||ut===t.RG32F||ut===t.RGBA16F||ut===t.RGBA32F)&&e.get("EXT_color_buffer_float"),ut}function F(W,$,Oe){return w(W,Oe)===!0||W.isFramebufferTexture&&W.minFilter!==Ii&&W.minFilter!==Wr?Math.log2(Math.max($.width,$.height))+1:W.mipmaps!==void 0&&W.mipmaps.length>0?W.mipmaps.length:W.isCompressedTexture&&Array.isArray(W.image)?$.mipmaps.length:1}function P(W){return W===Ii||W===PE||W===vp?t.NEAREST:t.LINEAR}function N(W){const $=W.target;$.removeEventListener("dispose",N),q($),$.isVideoTexture&&p.delete($)}function U(W){const $=W.target;$.removeEventListener("dispose",U),z($)}function q(W){const $=r.get(W);if($.__webglInit===void 0)return;const Oe=W.source,ft=A.get(Oe);if(ft){const pt=ft[$.__cacheKey];pt.usedTimes--,pt.usedTimes===0&&L(W),Object.keys(ft).length===0&&A.delete(Oe)}r.remove(W)}function L(W){const $=r.get(W);t.deleteTexture($.__webglTexture);const Oe=W.source,ft=A.get(Oe);delete ft[$.__cacheKey],o.memory.textures--}function z(W){const $=W.texture,Oe=r.get(W),ft=r.get($);if(ft.__webglTexture!==void 0&&(t.deleteTexture(ft.__webglTexture),o.memory.textures--),W.depthTexture&&W.depthTexture.dispose(),W.isWebGLCubeRenderTarget)for(let pt=0;pt<6;pt++){if(Array.isArray(Oe.__webglFramebuffer[pt]))for(let ut=0;ut=i.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+W+" texture units while this GPU supports only "+i.maxTextures),he+=1,W}function _e(W){const $=[];return $.push(W.wrapS),$.push(W.wrapT),$.push(W.wrapR||0),$.push(W.magFilter),$.push(W.minFilter),$.push(W.anisotropy),$.push(W.internalFormat),$.push(W.format),$.push(W.type),$.push(W.generateMipmaps),$.push(W.premultiplyAlpha),$.push(W.flipY),$.push(W.unpackAlignment),$.push(W.colorSpace),$.join()}function De(W,$){const Oe=r.get(W);if(W.isVideoTexture&<(W),W.isRenderTargetTexture===!1&&W.version>0&&Oe.__version!==W.version){const ft=W.image;if(ft===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(ft.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{oe(Oe,W,$);return}}n.bindTexture(t.TEXTURE_2D,Oe.__webglTexture,t.TEXTURE0+$)}function Ge(W,$){const Oe=r.get(W);if(W.version>0&&Oe.__version!==W.version){oe(Oe,W,$);return}n.bindTexture(t.TEXTURE_2D_ARRAY,Oe.__webglTexture,t.TEXTURE0+$)}function ie(W,$){const Oe=r.get(W);if(W.version>0&&Oe.__version!==W.version){oe(Oe,W,$);return}n.bindTexture(t.TEXTURE_3D,Oe.__webglTexture,t.TEXTURE0+$)}function ge(W,$){const Oe=r.get(W);if(W.version>0&&Oe.__version!==W.version){Y(Oe,W,$);return}n.bindTexture(t.TEXTURE_CUBE_MAP,Oe.__webglTexture,t.TEXTURE0+$)}const ve={[Lm]:t.REPEAT,[Ks]:t.CLAMP_TO_EDGE,[Nm]:t.MIRRORED_REPEAT},Ae={[Ii]:t.NEAREST,[PE]:t.NEAREST_MIPMAP_NEAREST,[vp]:t.NEAREST_MIPMAP_LINEAR,[Wr]:t.LINEAR,[lm]:t.LINEAR_MIPMAP_NEAREST,[Ml]:t.LINEAR_MIPMAP_LINEAR},Ue={[Fk]:t.NEVER,[Nk]:t.ALWAYS,[Pk]:t.LESS,[Dw]:t.LEQUAL,[Qk]:t.EQUAL,[Lk]:t.GEQUAL,[kk]:t.GREATER,[Rk]:t.NOTEQUAL};function we(W,$,Oe){if($.type===Ea&&e.has("OES_texture_float_linear")===!1&&($.magFilter===Wr||$.magFilter===lm||$.magFilter===vp||$.magFilter===Ml||$.minFilter===Wr||$.minFilter===lm||$.minFilter===vp||$.minFilter===Ml)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),Oe?(t.texParameteri(W,t.TEXTURE_WRAP_S,ve[$.wrapS]),t.texParameteri(W,t.TEXTURE_WRAP_T,ve[$.wrapT]),(W===t.TEXTURE_3D||W===t.TEXTURE_2D_ARRAY)&&t.texParameteri(W,t.TEXTURE_WRAP_R,ve[$.wrapR]),t.texParameteri(W,t.TEXTURE_MAG_FILTER,Ae[$.magFilter]),t.texParameteri(W,t.TEXTURE_MIN_FILTER,Ae[$.minFilter])):(t.texParameteri(W,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(W,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),(W===t.TEXTURE_3D||W===t.TEXTURE_2D_ARRAY)&&t.texParameteri(W,t.TEXTURE_WRAP_R,t.CLAMP_TO_EDGE),($.wrapS!==Ks||$.wrapT!==Ks)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(W,t.TEXTURE_MAG_FILTER,P($.magFilter)),t.texParameteri(W,t.TEXTURE_MIN_FILTER,P($.minFilter)),$.minFilter!==Ii&&$.minFilter!==Wr&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),$.compareFunction&&(t.texParameteri(W,t.TEXTURE_COMPARE_MODE,t.COMPARE_REF_TO_TEXTURE),t.texParameteri(W,t.TEXTURE_COMPARE_FUNC,Ue[$.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const ft=e.get("EXT_texture_filter_anisotropic");if($.magFilter===Ii||$.minFilter!==vp&&$.minFilter!==Ml||$.type===Ea&&e.has("OES_texture_float_linear")===!1||a===!1&&$.type===Jp&&e.has("OES_texture_half_float_linear")===!1)return;($.anisotropy>1||r.get($).__currentAnisotropy)&&(t.texParameterf(W,ft.TEXTURE_MAX_ANISOTROPY_EXT,Math.min($.anisotropy,i.getMaxAnisotropy())),r.get($).__currentAnisotropy=$.anisotropy)}}function K(W,$){let Oe=!1;W.__webglInit===void 0&&(W.__webglInit=!0,$.addEventListener("dispose",N));const ft=$.source;let pt=A.get(ft);pt===void 0&&(pt={},A.set(ft,pt));const ut=_e($);if(ut!==W.__cacheKey){pt[ut]===void 0&&(pt[ut]={texture:t.createTexture(),usedTimes:0},o.memory.textures++,Oe=!0),pt[ut].usedTimes++;const Ut=pt[W.__cacheKey];Ut!==void 0&&(pt[W.__cacheKey].usedTimes--,Ut.usedTimes===0&&L($)),W.__cacheKey=ut,W.__webglTexture=pt[ut].texture}return Oe}function oe(W,$,Oe){let ft=t.TEXTURE_2D;($.isDataArrayTexture||$.isCompressedArrayTexture)&&(ft=t.TEXTURE_2D_ARRAY),$.isData3DTexture&&(ft=t.TEXTURE_3D);const pt=K(W,$),ut=$.source;n.bindTexture(ft,W.__webglTexture,t.TEXTURE0+Oe);const Ut=r.get(ut);if(ut.version!==Ut.__version||pt===!0){n.activeTexture(t.TEXTURE0+Oe);const _t=Br.getPrimaries(Br.workingColorSpace),Ot=$.colorSpace===Ko?null:Br.getPrimaries($.colorSpace),Ft=$.colorSpace===Ko||_t===Ot?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,$.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,$.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,$.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,Ft);const Pt=I($)&&D($.image)===!1;let mt=x($.image,Pt,!1,i.maxTextureSize);mt=Se($,mt);const Rn=D(mt)||a,Sn=s.convert($.format,$.colorSpace);let cn=s.convert($.type),tn=_($.internalFormat,Sn,cn,$.colorSpace,$.isVideoTexture);we(ft,$,Rn);let qt;const xn=$.mipmaps,Vn=a&&$.isVideoTexture!==!0&&tn!==Cw,Tn=Ut.__version===void 0||pt===!0,Pn=ut.dataReady,zn=F($,mt,Rn);if($.isDepthTexture)tn=t.DEPTH_COMPONENT,a?$.type===Ea?tn=t.DEPTH_COMPONENT32F:$.type===Eu?tn=t.DEPTH_COMPONENT24:$.type===Zc?tn=t.DEPTH24_STENCIL8:tn=t.DEPTH_COMPONENT16:$.type===Ea&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),$.format===$c&&tn===t.DEPTH_COMPONENT&&$.type!==cC&&$.type!==Eu&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),$.type=Eu,cn=s.convert($.type)),$.format===Yp&&tn===t.DEPTH_COMPONENT&&(tn=t.DEPTH_STENCIL,$.type!==Zc&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),$.type=Zc,cn=s.convert($.type))),Tn&&(Vn?n.texStorage2D(t.TEXTURE_2D,1,tn,mt.width,mt.height):n.texImage2D(t.TEXTURE_2D,0,tn,mt.width,mt.height,0,Sn,cn,null));else if($.isDataTexture)if(xn.length>0&&Rn){Vn&&Tn&&n.texStorage2D(t.TEXTURE_2D,zn,tn,xn[0].width,xn[0].height);for(let Be=0,Mt=xn.length;Be>=1,Mt>>=1}}else if(xn.length>0&&Rn){Vn&&Tn&&n.texStorage2D(t.TEXTURE_2D,zn,tn,xn[0].width,xn[0].height);for(let Be=0,Mt=xn.length;Be0&&Pn++,n.texStorage2D(t.TEXTURE_CUBE_MAP,Pn,qt,mt[0].width,mt[0].height));for(let Be=0;Be<6;Be++)if(Pt){xn?Tn&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Be,0,0,0,mt[Be].width,mt[Be].height,cn,tn,mt[Be].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Be,0,qt,mt[Be].width,mt[Be].height,0,cn,tn,mt[Be].data);for(let Mt=0;Mt>ut),mt=Math.max(1,$.height>>ut);pt===t.TEXTURE_3D||pt===t.TEXTURE_2D_ARRAY?n.texImage3D(pt,ut,Ot,Pt,mt,$.depth,0,Ut,_t,null):n.texImage2D(pt,ut,Ot,Pt,mt,0,Ut,_t,null)}n.bindFramebuffer(t.FRAMEBUFFER,W),He($)?l.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,ft,pt,r.get(Oe).__webglTexture,0,Ve($)):(pt===t.TEXTURE_2D||pt>=t.TEXTURE_CUBE_MAP_POSITIVE_X&&pt<=t.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&t.framebufferTexture2D(t.FRAMEBUFFER,ft,pt,r.get(Oe).__webglTexture,ut),n.bindFramebuffer(t.FRAMEBUFFER,null)}function Le(W,$,Oe){if(t.bindRenderbuffer(t.RENDERBUFFER,W),$.depthBuffer&&!$.stencilBuffer){let ft=a===!0?t.DEPTH_COMPONENT24:t.DEPTH_COMPONENT16;if(Oe||He($)){const pt=$.depthTexture;pt&&pt.isDepthTexture&&(pt.type===Ea?ft=t.DEPTH_COMPONENT32F:pt.type===Eu&&(ft=t.DEPTH_COMPONENT24));const ut=Ve($);He($)?l.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,ut,ft,$.width,$.height):t.renderbufferStorageMultisample(t.RENDERBUFFER,ut,ft,$.width,$.height)}else t.renderbufferStorage(t.RENDERBUFFER,ft,$.width,$.height);t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,W)}else if($.depthBuffer&&$.stencilBuffer){const ft=Ve($);Oe&&He($)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,ft,t.DEPTH24_STENCIL8,$.width,$.height):He($)?l.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,ft,t.DEPTH24_STENCIL8,$.width,$.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,$.width,$.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,W)}else{const ft=$.isWebGLMultipleRenderTargets===!0?$.texture:[$.texture];for(let pt=0;pt0){Oe.__webglFramebuffer[_t]=[];for(let Ot=0;Ot<$.mipmaps.length;Ot++)Oe.__webglFramebuffer[_t][Ot]=t.createFramebuffer()}else Oe.__webglFramebuffer[_t]=t.createFramebuffer()}else{if(a&&$.mipmaps&&$.mipmaps.length>0){Oe.__webglFramebuffer=[];for(let _t=0;_t<$.mipmaps.length;_t++)Oe.__webglFramebuffer[_t]=t.createFramebuffer()}else Oe.__webglFramebuffer=t.createFramebuffer();if(ut)if(i.drawBuffers){const _t=W.texture;for(let Ot=0,Ft=_t.length;Ot0&&He(W)===!1){const _t=ut?$:[$];Oe.__webglMultisampledFramebuffer=t.createFramebuffer(),Oe.__webglColorRenderbuffer=[],n.bindFramebuffer(t.FRAMEBUFFER,Oe.__webglMultisampledFramebuffer);for(let Ot=0;Ot<_t.length;Ot++){const Ft=_t[Ot];Oe.__webglColorRenderbuffer[Ot]=t.createRenderbuffer(),t.bindRenderbuffer(t.RENDERBUFFER,Oe.__webglColorRenderbuffer[Ot]);const Pt=s.convert(Ft.format,Ft.colorSpace),mt=s.convert(Ft.type),Rn=_(Ft.internalFormat,Pt,mt,Ft.colorSpace,W.isXRRenderTarget===!0),Sn=Ve(W);t.renderbufferStorageMultisample(t.RENDERBUFFER,Sn,Rn,W.width,W.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ot,t.RENDERBUFFER,Oe.__webglColorRenderbuffer[Ot])}t.bindRenderbuffer(t.RENDERBUFFER,null),W.depthBuffer&&(Oe.__webglDepthRenderbuffer=t.createRenderbuffer(),Le(Oe.__webglDepthRenderbuffer,W,!0)),n.bindFramebuffer(t.FRAMEBUFFER,null)}}if(pt){n.bindTexture(t.TEXTURE_CUBE_MAP,ft.__webglTexture),we(t.TEXTURE_CUBE_MAP,$,Ut);for(let _t=0;_t<6;_t++)if(a&&$.mipmaps&&$.mipmaps.length>0)for(let Ot=0;Ot<$.mipmaps.length;Ot++)Z(Oe.__webglFramebuffer[_t][Ot],W,$,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+_t,Ot);else Z(Oe.__webglFramebuffer[_t],W,$,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+_t,0);w($,Ut)&&B(t.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(ut){const _t=W.texture;for(let Ot=0,Ft=_t.length;Ot0)for(let Ot=0;Ot<$.mipmaps.length;Ot++)Z(Oe.__webglFramebuffer[Ot],W,$,t.COLOR_ATTACHMENT0,_t,Ot);else Z(Oe.__webglFramebuffer,W,$,t.COLOR_ATTACHMENT0,_t,0);w($,Ut)&&B(_t),n.unbindTexture()}W.depthBuffer&&Fe(W)}function Ne(W){const $=D(W)||a,Oe=W.isWebGLMultipleRenderTargets===!0?W.texture:[W.texture];for(let ft=0,pt=Oe.length;ft0&&He(W)===!1){const $=W.isWebGLMultipleRenderTargets?W.texture:[W.texture],Oe=W.width,ft=W.height;let pt=t.COLOR_BUFFER_BIT;const ut=[],Ut=W.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,_t=r.get(W),Ot=W.isWebGLMultipleRenderTargets===!0;if(Ot)for(let Ft=0;Ft<$.length;Ft++)n.bindFramebuffer(t.FRAMEBUFFER,_t.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ft,t.RENDERBUFFER,null),n.bindFramebuffer(t.FRAMEBUFFER,_t.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ft,t.TEXTURE_2D,null,0);n.bindFramebuffer(t.READ_FRAMEBUFFER,_t.__webglMultisampledFramebuffer),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,_t.__webglFramebuffer);for(let Ft=0;Ft<$.length;Ft++){ut.push(t.COLOR_ATTACHMENT0+Ft),W.depthBuffer&&ut.push(Ut);const Pt=_t.__ignoreDepthValues!==void 0?_t.__ignoreDepthValues:!1;if(Pt===!1&&(W.depthBuffer&&(pt|=t.DEPTH_BUFFER_BIT),W.stencilBuffer&&(pt|=t.STENCIL_BUFFER_BIT)),Ot&&t.framebufferRenderbuffer(t.READ_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.RENDERBUFFER,_t.__webglColorRenderbuffer[Ft]),Pt===!0&&(t.invalidateFramebuffer(t.READ_FRAMEBUFFER,[Ut]),t.invalidateFramebuffer(t.DRAW_FRAMEBUFFER,[Ut])),Ot){const mt=r.get($[Ft]).__webglTexture;t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,mt,0)}t.blitFramebuffer(0,0,Oe,ft,0,0,Oe,ft,pt,t.NEAREST),c&&t.invalidateFramebuffer(t.READ_FRAMEBUFFER,ut)}if(n.bindFramebuffer(t.READ_FRAMEBUFFER,null),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),Ot)for(let Ft=0;Ft<$.length;Ft++){n.bindFramebuffer(t.FRAMEBUFFER,_t.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ft,t.RENDERBUFFER,_t.__webglColorRenderbuffer[Ft]);const Pt=r.get($[Ft]).__webglTexture;n.bindFramebuffer(t.FRAMEBUFFER,_t.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ft,t.TEXTURE_2D,Pt,0)}n.bindFramebuffer(t.DRAW_FRAMEBUFFER,_t.__webglMultisampledFramebuffer)}}function Ve(W){return Math.min(i.maxSamples,W.samples)}function He(W){const $=r.get(W);return a&&W.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&$.__useRenderToTexture!==!1}function lt(W){const $=o.render.frame;p.get(W)!==$&&(p.set(W,$),W.update())}function Se(W,$){const Oe=W.colorSpace,ft=W.format,pt=W.type;return W.isCompressedTexture===!0||W.isVideoTexture===!0||W.format===QE||Oe!==Ll&&Oe!==Ko&&(Br.getTransfer(Oe)===Nr?a===!1?e.has("EXT_sRGB")===!0&&ft===Ao?(W.format=QE,W.minFilter=Wr,W.generateMipmaps=!1):$=ww.sRGBToLinear($):(ft!==Ao||pt!==Rl)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",Oe)),$}this.allocateTextureUnit=re,this.resetTextureUnits=Ie,this.setTexture2D=De,this.setTexture2DArray=Ge,this.setTexture3D=ie,this.setTextureCube=ge,this.rebindTextures=je,this.setupRenderTarget=le,this.updateRenderTargetMipmap=Ne,this.updateMultisampleRenderTarget=be,this.setupDepthRenderbuffer=Fe,this.setupFrameBufferTexture=Z,this.useMultisampledRTT=He}function $k(t,e,n){const r=n.isWebGL2;function i(s,o=Ko){let a;const l=Br.getTransfer(o);if(s===Rl)return t.UNSIGNED_BYTE;if(s===Aw)return t.UNSIGNED_SHORT_4_4_4_4;if(s===gw)return t.UNSIGNED_SHORT_5_5_5_1;if(s===Ek)return t.BYTE;if(s===Ck)return t.SHORT;if(s===cC)return t.UNSIGNED_SHORT;if(s===fw)return t.INT;if(s===Eu)return t.UNSIGNED_INT;if(s===Ea)return t.FLOAT;if(s===Jp)return r?t.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(s===vk)return t.ALPHA;if(s===Ao)return t.RGBA;if(s===xk)return t.LUMINANCE;if(s===Ik)return t.LUMINANCE_ALPHA;if(s===$c)return t.DEPTH_COMPONENT;if(s===Yp)return t.DEPTH_STENCIL;if(s===QE)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(s===Dk)return t.RED;if(s===mw)return t.RED_INTEGER;if(s===Sk)return t.RG;if(s===yw)return t.RG_INTEGER;if(s===Ew)return t.RGBA_INTEGER;if(s===j1||s===V1||s===J1||s===Y1)if(l===Nr)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(s===j1)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(s===V1)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(s===J1)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(s===Y1)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(s===j1)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(s===V1)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(s===J1)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(s===Y1)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(s===aS||s===lS||s===uS||s===cS)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(s===aS)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(s===lS)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(s===uS)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(s===cS)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(s===Cw)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(s===hS||s===pS)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(s===hS)return l===Nr?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(s===pS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(s===dS||s===fS||s===AS||s===gS||s===mS||s===yS||s===ES||s===CS||s===vS||s===xS||s===IS||s===DS||s===SS||s===wS)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(s===dS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(s===fS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(s===AS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(s===gS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(s===mS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(s===yS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(s===ES)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(s===CS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(s===vS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(s===xS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(s===IS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(s===DS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(s===SS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(s===wS)return l===Nr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(s===X1||s===BS||s===bS)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(s===X1)return l===Nr?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(s===BS)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(s===bS)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(s===wk||s===TS||s===MS||s===_S)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(s===X1)return a.COMPRESSED_RED_RGTC1_EXT;if(s===TS)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(s===MS)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(s===_S)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return s===Zc?r?t.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):t[s]!==void 0?t[s]:null}return{convert:i}}class eR extends ki{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Cu extends ir{constructor(){super(),this.isGroup=!0,this.type="Group"}}const oW={type:"move"};class Vx{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Cu,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Cu,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new ue,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new ue),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Cu,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new ue,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new ue),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const n=this._hand;if(n)for(const r of e.hand.values())this._getHandJoint(n,r)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,n,r){let i=null,s=null,o=null;const a=this._targetRay,l=this._grip,c=this._hand;if(e&&n.session.visibilityState!=="visible-blurred"){if(c&&e.hand){o=!0;for(const x of e.hand.values()){const D=n.getJointPose(x,r),I=this._getHandJoint(c,x);D!==null&&(I.matrix.fromArray(D.transform.matrix),I.matrix.decompose(I.position,I.rotation,I.scale),I.matrixWorldNeedsUpdate=!0,I.jointRadius=D.radius),I.visible=D!==null}const p=c.joints["index-finger-tip"],d=c.joints["thumb-tip"],A=p.position.distanceTo(d.position),y=.02,C=.005;c.inputState.pinching&&A>y+C?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&A<=y-C&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(s=n.getPose(e.gripSpace,r),s!==null&&(l.matrix.fromArray(s.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,s.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(s.linearVelocity)):l.hasLinearVelocity=!1,s.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(s.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(i=n.getPose(e.targetRaySpace,r),i===null&&s!==null&&(i=s),i!==null&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(oW)))}return a!==null&&(a.visible=i!==null),l!==null&&(l.visible=s!==null),c!==null&&(c.visible=o!==null),this}_getHandJoint(e,n){if(e.joints[n.jointName]===void 0){const r=new Cu;r.matrixAutoUpdate=!1,r.visible=!1,e.joints[n.jointName]=r,e.add(r)}return e.joints[n.jointName]}}const aW=` void main() { gl_Position = vec4( position, 1.0 ); @@ -3800,7 +3800,7 @@ void main() { } -}`;class uW{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,n,r){if(this.texture===null){const i=new Zr,s=e.properties.get(i);s.__webglTexture=n.texture,(n.depthNear!=r.depthNear||n.depthFar!=r.depthFar)&&(this.depthNear=n.depthNear,this.depthFar=n.depthFar),this.texture=i}}render(e,n){if(this.texture!==null){if(this.mesh===null){const r=n.cameras[0].viewport,i=new il({extensions:{fragDepth:!0},vertexShader:aW,fragmentShader:lW,uniforms:{depthColor:{value:this.texture},depthWidth:{value:r.z},depthHeight:{value:r.w}}});this.mesh=new gr(new mh(20,20),i)}e.render(this.mesh,n)}}reset(){this.texture=null,this.mesh=null}}class cW extends Mu{constructor(e,n){super();const r=this;let i=null,s=1,o=null,a="local-floor",l=1,c=null,p=null,d=null,A=null,y=null,C=null;const x=new uW,D=n.getContextAttributes();let I=null,w=null;const B=[],_=[],F=new st;let P=null;const N=new ki;N.layers.enable(1),N.viewport=new br;const U=new ki;U.layers.enable(2),U.viewport=new br;const q=[N,U],L=new eR;L.layers.enable(1),L.layers.enable(2);let z=null,he=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(K){let oe=B[K];return oe===void 0&&(oe=new Vx,B[K]=oe),oe.getTargetRaySpace()},this.getControllerGrip=function(K){let oe=B[K];return oe===void 0&&(oe=new Vx,B[K]=oe),oe.getGripSpace()},this.getHand=function(K){let oe=B[K];return oe===void 0&&(oe=new Vx,B[K]=oe),oe.getHandSpace()};function Ie(K){const oe=_.indexOf(K.inputSource);if(oe===-1)return;const Y=B[oe];Y!==void 0&&(Y.update(K.inputSource,K.frame,c||o),Y.dispatchEvent({type:K.type,data:K.inputSource}))}function re(){i.removeEventListener("select",Ie),i.removeEventListener("selectstart",Ie),i.removeEventListener("selectend",Ie),i.removeEventListener("squeeze",Ie),i.removeEventListener("squeezestart",Ie),i.removeEventListener("squeezeend",Ie),i.removeEventListener("end",re),i.removeEventListener("inputsourceschange",_e);for(let K=0;K=0&&(_[Z]=null,B[Z].disconnect(Y))}for(let oe=0;oe=_.length){_.push(Y),Z=ze;break}else if(_[ze]===null){_[ze]=Y,Z=ze;break}if(Z===-1)break}const Le=B[Z];Le&&Le.connect(Y)}}const De=new ue,Ge=new ue;function ie(K,oe,Y){De.setFromMatrixPosition(oe.matrixWorld),Ge.setFromMatrixPosition(Y.matrixWorld);const Z=De.distanceTo(Ge),Le=oe.projectionMatrix.elements,ze=Y.projectionMatrix.elements,Fe=Le[14]/(Le[10]-1),je=Le[14]/(Le[10]+1),ae=(Le[9]+1)/Le[5],Ne=(Le[9]-1)/Le[5],be=(Le[8]-1)/Le[0],Ve=(ze[8]+1)/ze[0],He=Fe*be,lt=Fe*Ve,Se=Z/(-be+Ve),W=Se*-be;oe.matrixWorld.decompose(K.position,K.quaternion,K.scale),K.translateX(W),K.translateZ(Se),K.matrixWorld.compose(K.position,K.quaternion,K.scale),K.matrixWorldInverse.copy(K.matrixWorld).invert();const $=Fe+Se,Oe=je+Se,ft=He-W,pt=lt+(Z-W),ut=ae*je/Oe*$,Ut=Ne*je/Oe*$;K.projectionMatrix.makePerspective(ft,pt,ut,Ut,$,Oe),K.projectionMatrixInverse.copy(K.projectionMatrix).invert()}function ge(K,oe){oe===null?K.matrixWorld.copy(K.matrix):K.matrixWorld.multiplyMatrices(oe.matrixWorld,K.matrix),K.matrixWorldInverse.copy(K.matrixWorld).invert()}this.updateCamera=function(K){if(i===null)return;x.texture!==null&&(K.near=x.depthNear,K.far=x.depthFar),L.near=U.near=N.near=K.near,L.far=U.far=N.far=K.far,(z!==L.near||he!==L.far)&&(i.updateRenderState({depthNear:L.near,depthFar:L.far}),z=L.near,he=L.far,N.near=z,N.far=he,U.near=z,U.far=he,N.updateProjectionMatrix(),U.updateProjectionMatrix(),K.updateProjectionMatrix());const oe=K.parent,Y=L.cameras;ge(L,oe);for(let Z=0;Z0&&(D.alphaTest.value=I.alphaTest);const w=e.get(I).envMap;if(w&&(D.envMap.value=w,D.flipEnvMap.value=w.isCubeTexture&&w.isRenderTargetTexture===!1?-1:1,D.reflectivity.value=I.reflectivity,D.ior.value=I.ior,D.refractionRatio.value=I.refractionRatio),I.lightMap){D.lightMap.value=I.lightMap;const B=t._useLegacyLights===!0?Math.PI:1;D.lightMapIntensity.value=I.lightMapIntensity*B,n(I.lightMap,D.lightMapTransform)}I.aoMap&&(D.aoMap.value=I.aoMap,D.aoMapIntensity.value=I.aoMapIntensity,n(I.aoMap,D.aoMapTransform))}function o(D,I){D.diffuse.value.copy(I.color),D.opacity.value=I.opacity,I.map&&(D.map.value=I.map,n(I.map,D.mapTransform))}function a(D,I){D.dashSize.value=I.dashSize,D.totalSize.value=I.dashSize+I.gapSize,D.scale.value=I.scale}function l(D,I,w,B){D.diffuse.value.copy(I.color),D.opacity.value=I.opacity,D.size.value=I.size*w,D.scale.value=B*.5,I.map&&(D.map.value=I.map,n(I.map,D.uvTransform)),I.alphaMap&&(D.alphaMap.value=I.alphaMap,n(I.alphaMap,D.alphaMapTransform)),I.alphaTest>0&&(D.alphaTest.value=I.alphaTest)}function c(D,I){D.diffuse.value.copy(I.color),D.opacity.value=I.opacity,D.rotation.value=I.rotation,I.map&&(D.map.value=I.map,n(I.map,D.mapTransform)),I.alphaMap&&(D.alphaMap.value=I.alphaMap,n(I.alphaMap,D.alphaMapTransform)),I.alphaTest>0&&(D.alphaTest.value=I.alphaTest)}function p(D,I){D.specular.value.copy(I.specular),D.shininess.value=Math.max(I.shininess,1e-4)}function d(D,I){I.gradientMap&&(D.gradientMap.value=I.gradientMap)}function A(D,I){D.metalness.value=I.metalness,I.metalnessMap&&(D.metalnessMap.value=I.metalnessMap,n(I.metalnessMap,D.metalnessMapTransform)),D.roughness.value=I.roughness,I.roughnessMap&&(D.roughnessMap.value=I.roughnessMap,n(I.roughnessMap,D.roughnessMapTransform)),e.get(I).envMap&&(D.envMapIntensity.value=I.envMapIntensity)}function y(D,I,w){D.ior.value=I.ior,I.sheen>0&&(D.sheenColor.value.copy(I.sheenColor).multiplyScalar(I.sheen),D.sheenRoughness.value=I.sheenRoughness,I.sheenColorMap&&(D.sheenColorMap.value=I.sheenColorMap,n(I.sheenColorMap,D.sheenColorMapTransform)),I.sheenRoughnessMap&&(D.sheenRoughnessMap.value=I.sheenRoughnessMap,n(I.sheenRoughnessMap,D.sheenRoughnessMapTransform))),I.clearcoat>0&&(D.clearcoat.value=I.clearcoat,D.clearcoatRoughness.value=I.clearcoatRoughness,I.clearcoatMap&&(D.clearcoatMap.value=I.clearcoatMap,n(I.clearcoatMap,D.clearcoatMapTransform)),I.clearcoatRoughnessMap&&(D.clearcoatRoughnessMap.value=I.clearcoatRoughnessMap,n(I.clearcoatRoughnessMap,D.clearcoatRoughnessMapTransform)),I.clearcoatNormalMap&&(D.clearcoatNormalMap.value=I.clearcoatNormalMap,n(I.clearcoatNormalMap,D.clearcoatNormalMapTransform),D.clearcoatNormalScale.value.copy(I.clearcoatNormalScale),I.side===yo&&D.clearcoatNormalScale.value.negate())),I.iridescence>0&&(D.iridescence.value=I.iridescence,D.iridescenceIOR.value=I.iridescenceIOR,D.iridescenceThicknessMinimum.value=I.iridescenceThicknessRange[0],D.iridescenceThicknessMaximum.value=I.iridescenceThicknessRange[1],I.iridescenceMap&&(D.iridescenceMap.value=I.iridescenceMap,n(I.iridescenceMap,D.iridescenceMapTransform)),I.iridescenceThicknessMap&&(D.iridescenceThicknessMap.value=I.iridescenceThicknessMap,n(I.iridescenceThicknessMap,D.iridescenceThicknessMapTransform))),I.transmission>0&&(D.transmission.value=I.transmission,D.transmissionSamplerMap.value=w.texture,D.transmissionSamplerSize.value.set(w.width,w.height),I.transmissionMap&&(D.transmissionMap.value=I.transmissionMap,n(I.transmissionMap,D.transmissionMapTransform)),D.thickness.value=I.thickness,I.thicknessMap&&(D.thicknessMap.value=I.thicknessMap,n(I.thicknessMap,D.thicknessMapTransform)),D.attenuationDistance.value=I.attenuationDistance,D.attenuationColor.value.copy(I.attenuationColor)),I.anisotropy>0&&(D.anisotropyVector.value.set(I.anisotropy*Math.cos(I.anisotropyRotation),I.anisotropy*Math.sin(I.anisotropyRotation)),I.anisotropyMap&&(D.anisotropyMap.value=I.anisotropyMap,n(I.anisotropyMap,D.anisotropyMapTransform))),D.specularIntensity.value=I.specularIntensity,D.specularColor.value.copy(I.specularColor),I.specularColorMap&&(D.specularColorMap.value=I.specularColorMap,n(I.specularColorMap,D.specularColorMapTransform)),I.specularIntensityMap&&(D.specularIntensityMap.value=I.specularIntensityMap,n(I.specularIntensityMap,D.specularIntensityMapTransform))}function C(D,I){I.matcap&&(D.matcap.value=I.matcap)}function x(D,I){const w=e.get(I).light;D.referencePosition.value.setFromMatrixPosition(w.matrixWorld),D.nearDistance.value=w.shadow.camera.near,D.farDistance.value=w.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function pW(t,e,n,r){let i={},s={},o=[];const a=n.isWebGL2?t.getParameter(t.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(w,B){const _=B.program;r.uniformBlockBinding(w,_)}function c(w,B){let _=i[w.id];_===void 0&&(C(w),_=p(w),i[w.id]=_,w.addEventListener("dispose",D));const F=B.program;r.updateUBOMapping(w,F);const P=e.render.frame;s[w.id]!==P&&(A(w),s[w.id]=P)}function p(w){const B=d();w.__bindingPointIndex=B;const _=t.createBuffer(),F=w.__size,P=w.usage;return t.bindBuffer(t.UNIFORM_BUFFER,_),t.bufferData(t.UNIFORM_BUFFER,F,P),t.bindBuffer(t.UNIFORM_BUFFER,null),t.bindBufferBase(t.UNIFORM_BUFFER,B,_),_}function d(){for(let w=0;w0&&(_+=F-P),w.__size=_,w.__cache={},this}function x(w){const B={boundary:0,storage:0};return typeof w=="number"||typeof w=="boolean"?(B.boundary=4,B.storage=4):w.isVector2?(B.boundary=8,B.storage=8):w.isVector3||w.isColor?(B.boundary=16,B.storage=12):w.isVector4?(B.boundary=16,B.storage=16):w.isMatrix3?(B.boundary=48,B.storage=48):w.isMatrix4?(B.boundary=64,B.storage=64):w.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",w),B}function D(w){const B=w.target;B.removeEventListener("dispose",D);const _=o.indexOf(B.__bindingPointIndex);o.splice(_,1),t.deleteBuffer(i[B.id]),delete i[B.id],delete s[B.id]}function I(){for(const w in i)t.deleteBuffer(i[w]);o=[],i={},s={}}return{bind:l,update:c,dispose:I}}class Fw{constructor(e={}){const{canvas:n=Uk(),context:r=null,depth:i=!0,stencil:s=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:p="default",failIfMajorPerformanceCaveat:d=!1}=e;this.isWebGLRenderer=!0;let A;r!==null?A=r.getContextAttributes().alpha:A=o;const y=new Uint32Array(4),C=new Int32Array(4);let x=null,D=null;const I=[],w=[];this.domElement=n,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=ri,this._useLegacyLights=!1,this.toneMapping=kl,this.toneMappingExposure=1;const B=this;let _=!1,F=0,P=0,N=null,U=-1,q=null;const L=new br,z=new br;let he=null;const Ie=new Xt(0);let re=0,_e=n.width,De=n.height,Ge=1,ie=null,ge=null;const ve=new br(0,0,_e,De),Ae=new br(0,0,_e,De);let Ue=!1;const we=new f0;let K=!1,oe=!1,Y=null;const Z=new En,Le=new st,ze=new ue,Fe={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function je(){return N===null?Ge:1}let ae=r;function Ne(pe,qe){for(let se=0;se{function $e(){if(me.forEach(function(Ze){Se.get(Ze).currentProgram.isReady()&&me.delete(Ze)}),me.size===0){Me(pe);return}setTimeout($e,10)}be.get("KHR_parallel_shader_compile")!==null?$e():setTimeout($e,10)})};let or=null;function pr(pe){or&&or(pe)}function ai(){dr.stop()}function ar(){dr.start()}const dr=new Jk;dr.setAnimationLoop(pr),typeof self<"u"&&dr.setContext(self),this.setAnimationLoop=function(pe){or=pe,Pn.setAnimationLoop(pe),pe===null?dr.stop():dr.start()},Pn.addEventListener("sessionstart",ai),Pn.addEventListener("sessionend",ar),this.render=function(pe,qe){if(qe!==void 0&&qe.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(_===!0)return;pe.matrixWorldAutoUpdate===!0&&pe.updateMatrixWorld(),qe.parent===null&&qe.matrixWorldAutoUpdate===!0&&qe.updateMatrixWorld(),Pn.enabled===!0&&Pn.isPresenting===!0&&(Pn.cameraAutoUpdate===!0&&Pn.updateCamera(qe),qe=Pn.getCamera()),pe.isScene===!0&&pe.onBeforeRender(B,pe,qe,N),D=Ft.get(pe,w.length),D.init(),w.push(D),Z.multiplyMatrices(qe.projectionMatrix,qe.matrixWorldInverse),we.setFromProjectionMatrix(Z),oe=this.localClippingEnabled,K=Pt.init(this.clippingPlanes,oe),x=Ot.get(pe,I.length),x.init(),I.push(x),gi(pe,qe,0,B.sortObjects),x.finish(),B.sortObjects===!0&&x.sort(ie,ge),this.info.render.frame++,K===!0&&Pt.beginShadows();const se=D.state.shadowsArray;if(mt.render(se,pe,qe),K===!0&&Pt.endShadows(),this.info.autoReset===!0&&this.info.reset(),(Pn.enabled===!1||Pn.isPresenting===!1||Pn.hasDepthSensing()===!1)&&Rn.render(x,pe),D.setupLights(B._useLegacyLights),qe.isArrayCamera){const me=qe.cameras;for(let Me=0,$e=me.length;Me<$e;Me++){const Ze=me[Me];ps(x,pe,Ze,Ze.viewport)}}else ps(x,pe,qe);N!==null&&(W.updateMultisampleRenderTarget(N),W.updateRenderTargetMipmap(N)),pe.isScene===!0&&pe.onAfterRender(B,pe,qe),xn.resetDefaultState(),U=-1,q=null,w.pop(),w.length>0?D=w[w.length-1]:D=null,I.pop(),I.length>0?x=I[I.length-1]:x=null};function gi(pe,qe,se,me){if(pe.visible===!1)return;if(pe.layers.test(qe.layers)){if(pe.isGroup)se=pe.renderOrder;else if(pe.isLOD)pe.autoUpdate===!0&&pe.update(qe);else if(pe.isLight)D.pushLight(pe),pe.castShadow&&D.pushShadow(pe);else if(pe.isSprite){if(!pe.frustumCulled||we.intersectsSprite(pe)){me&&ze.setFromMatrixPosition(pe.matrixWorld).applyMatrix4(Z);const Ze=ut.update(pe),It=pe.material;It.visible&&x.push(pe,Ze,It,se,ze.z,null)}}else if((pe.isMesh||pe.isLine||pe.isPoints)&&(!pe.frustumCulled||we.intersectsObject(pe))){const Ze=ut.update(pe),It=pe.material;if(me&&(pe.boundingSphere!==void 0?(pe.boundingSphere===null&&pe.computeBoundingSphere(),ze.copy(pe.boundingSphere.center)):(Ze.boundingSphere===null&&Ze.computeBoundingSphere(),ze.copy(Ze.boundingSphere.center)),ze.applyMatrix4(pe.matrixWorld).applyMatrix4(Z)),Array.isArray(It)){const At=Ze.groups;for(let Kt=0,en=At.length;Kt0&&Fs(Me,$e,qe,se),me&&He.viewport(L.copy(me)),Me.length>0&&Io(Me,qe,se),$e.length>0&&Io($e,qe,se),Ze.length>0&&Io(Ze,qe,se),He.buffers.depth.setTest(!0),He.buffers.depth.setMask(!0),He.buffers.color.setMask(!0),He.setPolygonOffset(!1)}function Fs(pe,qe,se,me){if((se.isScene===!0?se.overrideMaterial:null)!==null)return;const $e=Ve.isWebGL2;Y===null&&(Y=new wa(1,1,{generateMipmaps:!0,type:be.has("EXT_color_buffer_half_float")?Jp:Rl,minFilter:Ml,samples:$e?4:0})),B.getDrawingBufferSize(Le),$e?Y.setSize(Le.x,Le.y):Y.setSize(kE(Le.x),kE(Le.y));const Ze=B.getRenderTarget();B.setRenderTarget(Y),B.getClearColor(Ie),re=B.getClearAlpha(),re<1&&B.setClearColor(16777215,.5),B.clear();const It=B.toneMapping;B.toneMapping=kl,Io(pe,se,me),W.updateMultisampleRenderTarget(Y),W.updateRenderTargetMipmap(Y);let At=!1;for(let Kt=0,en=qe.length;Kt0),Cn=!!se.morphAttributes.position,Zn=!!se.morphAttributes.normal,Ir=!!se.morphAttributes.color;let fr=kl;me.toneMapped&&(N===null||N.isXRRenderTarget===!0)&&(fr=B.toneMapping);const xr=se.morphAttributes.position||se.morphAttributes.normal||se.morphAttributes.color,hn=xr!==void 0?xr.length:0,zt=Se.get(me),Ln=D.state.lights;if(K===!0&&(oe===!0||pe!==q)){const rt=pe===q&&me.id===U;Pt.setState(me,pe,rt)}let ee=!1;me.version===zt.__version?(zt.needsLights&&zt.lightsStateVersion!==Ln.state.version||zt.outputColorSpace!==It||Me.isBatchedMesh&&zt.batching===!1||!Me.isBatchedMesh&&zt.batching===!0||Me.isInstancedMesh&&zt.instancing===!1||!Me.isInstancedMesh&&zt.instancing===!0||Me.isSkinnedMesh&&zt.skinning===!1||!Me.isSkinnedMesh&&zt.skinning===!0||Me.isInstancedMesh&&zt.instancingColor===!0&&Me.instanceColor===null||Me.isInstancedMesh&&zt.instancingColor===!1&&Me.instanceColor!==null||zt.envMap!==At||me.fog===!0&&zt.fog!==$e||zt.numClippingPlanes!==void 0&&(zt.numClippingPlanes!==Pt.numPlanes||zt.numIntersection!==Pt.numIntersection)||zt.vertexAlphas!==Kt||zt.vertexTangents!==en||zt.morphTargets!==Cn||zt.morphNormals!==Zn||zt.morphColors!==Ir||zt.toneMapping!==fr||Ve.isWebGL2===!0&&zt.morphTargetsCount!==hn)&&(ee=!0):(ee=!0,zt.__version=me.version);let H=zt.currentProgram;ee===!0&&(H=fs(me,qe,Me));let ye=!1,Pe=!1,We=!1;const et=H.getUniforms(),yt=zt.uniforms;if(He.useProgram(H.program)&&(ye=!0,Pe=!0,We=!0),me.id!==U&&(U=me.id,Pe=!0),ye||q!==pe){et.setValue(ae,"projectionMatrix",pe.projectionMatrix),et.setValue(ae,"viewMatrix",pe.matrixWorldInverse);const rt=et.map.cameraPosition;rt!==void 0&&rt.setValue(ae,ze.setFromMatrixPosition(pe.matrixWorld)),Ve.logarithmicDepthBuffer&&et.setValue(ae,"logDepthBufFC",2/(Math.log(pe.far+1)/Math.LN2)),(me.isMeshPhongMaterial||me.isMeshToonMaterial||me.isMeshLambertMaterial||me.isMeshBasicMaterial||me.isMeshStandardMaterial||me.isShaderMaterial)&&et.setValue(ae,"isOrthographic",pe.isOrthographicCamera===!0),q!==pe&&(q=pe,Pe=!0,We=!0)}if(Me.isSkinnedMesh){et.setOptional(ae,Me,"bindMatrix"),et.setOptional(ae,Me,"bindMatrixInverse");const rt=Me.skeleton;rt&&(Ve.floatVertexTextures?(rt.boneTexture===null&&rt.computeBoneTexture(),et.setValue(ae,"boneTexture",rt.boneTexture,W)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}Me.isBatchedMesh&&(et.setOptional(ae,Me,"batchingTexture"),et.setValue(ae,"batchingTexture",Me._matricesTexture,W));const ct=se.morphAttributes;if((ct.position!==void 0||ct.normal!==void 0||ct.color!==void 0&&Ve.isWebGL2===!0)&&Sn.update(Me,se,H),(Pe||zt.receiveShadow!==Me.receiveShadow)&&(zt.receiveShadow=Me.receiveShadow,et.setValue(ae,"receiveShadow",Me.receiveShadow)),me.isMeshGouraudMaterial&&me.envMap!==null&&(yt.envMap.value=At,yt.flipEnvMap.value=At.isCubeTexture&&At.isRenderTargetTexture===!1?-1:1),Pe&&(et.setValue(ae,"toneMappingExposure",B.toneMappingExposure),zt.needsLights&&Ki(yt,We),$e&&me.fog===!0&&_t.refreshFogUniforms(yt,$e),_t.refreshMaterialUniforms(yt,me,Ge,De,Y),K1.upload(ae,Ma(zt),yt,W)),me.isShaderMaterial&&me.uniformsNeedUpdate===!0&&(K1.upload(ae,Ma(zt),yt,W),me.uniformsNeedUpdate=!1),me.isSpriteMaterial&&et.setValue(ae,"center",Me.center),et.setValue(ae,"modelViewMatrix",Me.modelViewMatrix),et.setValue(ae,"normalMatrix",Me.normalMatrix),et.setValue(ae,"modelMatrix",Me.matrixWorld),me.isShaderMaterial||me.isRawShaderMaterial){const rt=me.uniformsGroups;for(let Xe=0,Qt=rt.length;Xe0&&W.useMultisampledRTT(pe)===!1?Me=Se.get(pe).__webglMultisampledFramebuffer:Array.isArray(en)?Me=en[se]:Me=en,L.copy(pe.viewport),z.copy(pe.scissor),he=pe.scissorTest}else L.copy(ve).multiplyScalar(Ge).floor(),z.copy(Ae).multiplyScalar(Ge).floor(),he=Ue;if(He.bindFramebuffer(ae.FRAMEBUFFER,Me)&&Ve.drawBuffers&&me&&He.drawBuffers(pe,Me),He.viewport(L),He.scissor(z),He.setScissorTest(he),$e){const At=Se.get(pe.texture);ae.framebufferTexture2D(ae.FRAMEBUFFER,ae.COLOR_ATTACHMENT0,ae.TEXTURE_CUBE_MAP_POSITIVE_X+qe,At.__webglTexture,se)}else if(Ze){const At=Se.get(pe.texture),Kt=qe||0;ae.framebufferTextureLayer(ae.FRAMEBUFFER,ae.COLOR_ATTACHMENT0,At.__webglTexture,se||0,Kt)}U=-1},this.readRenderTargetPixels=function(pe,qe,se,me,Me,$e,Ze){if(!(pe&&pe.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let It=Se.get(pe).__webglFramebuffer;if(pe.isWebGLCubeRenderTarget&&Ze!==void 0&&(It=It[Ze]),It){He.bindFramebuffer(ae.FRAMEBUFFER,It);try{const At=pe.texture,Kt=At.format,en=At.type;if(Kt!==Ao&&qt.convert(Kt)!==ae.getParameter(ae.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const Cn=en===Jp&&(be.has("EXT_color_buffer_half_float")||Ve.isWebGL2&&be.has("EXT_color_buffer_float"));if(en!==Rl&&qt.convert(en)!==ae.getParameter(ae.IMPLEMENTATION_COLOR_READ_TYPE)&&!(en===Ea&&(Ve.isWebGL2||be.has("OES_texture_float")||be.has("WEBGL_color_buffer_float")))&&!Cn){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}qe>=0&&qe<=pe.width-me&&se>=0&&se<=pe.height-Me&&ae.readPixels(qe,se,me,Me,qt.convert(Kt),qt.convert(en),$e)}finally{const At=N!==null?Se.get(N).__webglFramebuffer:null;He.bindFramebuffer(ae.FRAMEBUFFER,At)}}},this.copyFramebufferToTexture=function(pe,qe,se=0){const me=Math.pow(2,-se),Me=Math.floor(qe.image.width*me),$e=Math.floor(qe.image.height*me);W.setTexture2D(qe,0),ae.copyTexSubImage2D(ae.TEXTURE_2D,se,0,0,pe.x,pe.y,Me,$e),He.unbindTexture()},this.copyTextureToTexture=function(pe,qe,se,me=0){const Me=qe.image.width,$e=qe.image.height,Ze=qt.convert(se.format),It=qt.convert(se.type);W.setTexture2D(se,0),ae.pixelStorei(ae.UNPACK_FLIP_Y_WEBGL,se.flipY),ae.pixelStorei(ae.UNPACK_PREMULTIPLY_ALPHA_WEBGL,se.premultiplyAlpha),ae.pixelStorei(ae.UNPACK_ALIGNMENT,se.unpackAlignment),qe.isDataTexture?ae.texSubImage2D(ae.TEXTURE_2D,me,pe.x,pe.y,Me,$e,Ze,It,qe.image.data):qe.isCompressedTexture?ae.compressedTexSubImage2D(ae.TEXTURE_2D,me,pe.x,pe.y,qe.mipmaps[0].width,qe.mipmaps[0].height,Ze,qe.mipmaps[0].data):ae.texSubImage2D(ae.TEXTURE_2D,me,pe.x,pe.y,Ze,It,qe.image),me===0&&se.generateMipmaps&&ae.generateMipmap(ae.TEXTURE_2D),He.unbindTexture()},this.copyTextureToTexture3D=function(pe,qe,se,me,Me=0){if(B.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const $e=pe.max.x-pe.min.x+1,Ze=pe.max.y-pe.min.y+1,It=pe.max.z-pe.min.z+1,At=qt.convert(me.format),Kt=qt.convert(me.type);let en;if(me.isData3DTexture)W.setTexture3D(me,0),en=ae.TEXTURE_3D;else if(me.isDataArrayTexture||me.isCompressedArrayTexture)W.setTexture2DArray(me,0),en=ae.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}ae.pixelStorei(ae.UNPACK_FLIP_Y_WEBGL,me.flipY),ae.pixelStorei(ae.UNPACK_PREMULTIPLY_ALPHA_WEBGL,me.premultiplyAlpha),ae.pixelStorei(ae.UNPACK_ALIGNMENT,me.unpackAlignment);const Cn=ae.getParameter(ae.UNPACK_ROW_LENGTH),Zn=ae.getParameter(ae.UNPACK_IMAGE_HEIGHT),Ir=ae.getParameter(ae.UNPACK_SKIP_PIXELS),fr=ae.getParameter(ae.UNPACK_SKIP_ROWS),xr=ae.getParameter(ae.UNPACK_SKIP_IMAGES),hn=se.isCompressedTexture?se.mipmaps[Me]:se.image;ae.pixelStorei(ae.UNPACK_ROW_LENGTH,hn.width),ae.pixelStorei(ae.UNPACK_IMAGE_HEIGHT,hn.height),ae.pixelStorei(ae.UNPACK_SKIP_PIXELS,pe.min.x),ae.pixelStorei(ae.UNPACK_SKIP_ROWS,pe.min.y),ae.pixelStorei(ae.UNPACK_SKIP_IMAGES,pe.min.z),se.isDataTexture||se.isData3DTexture?ae.texSubImage3D(en,Me,qe.x,qe.y,qe.z,$e,Ze,It,At,Kt,hn.data):se.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),ae.compressedTexSubImage3D(en,Me,qe.x,qe.y,qe.z,$e,Ze,It,At,hn.data)):ae.texSubImage3D(en,Me,qe.x,qe.y,qe.z,$e,Ze,It,At,Kt,hn),ae.pixelStorei(ae.UNPACK_ROW_LENGTH,Cn),ae.pixelStorei(ae.UNPACK_IMAGE_HEIGHT,Zn),ae.pixelStorei(ae.UNPACK_SKIP_PIXELS,Ir),ae.pixelStorei(ae.UNPACK_SKIP_ROWS,fr),ae.pixelStorei(ae.UNPACK_SKIP_IMAGES,xr),Me===0&&me.generateMipmaps&&ae.generateMipmap(en),He.unbindTexture()},this.initTexture=function(pe){pe.isCubeTexture?W.setTextureCube(pe,0):pe.isData3DTexture?W.setTexture3D(pe,0):pe.isDataArrayTexture||pe.isCompressedArrayTexture?W.setTexture2DArray(pe,0):W.setTexture2D(pe,0),He.unbindTexture()},this.resetState=function(){F=0,P=0,N=null,He.reset(),xn.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return _l}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const n=this.getContext();n.drawingBufferColorSpace=e===pC?"display-p3":"srgb",n.unpackColorSpace=Br.workingColorSpace===h0?"display-p3":"srgb"}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===ri?eh:xw}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===eh?ri:Ll}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class tR extends Fw{}tR.prototype.isWebGL1Renderer=!0;class mC{constructor(e,n=25e-5){this.isFogExp2=!0,this.name="",this.color=new Xt(e),this.density=n}clone(){return new mC(this.color,this.density)}toJSON(){return{type:"FogExp2",name:this.name,color:this.color.getHex(),density:this.density}}}class yC{constructor(e,n=1,r=1e3){this.isFog=!0,this.name="",this.color=new Xt(e),this.near=n,this.far=r}clone(){return new yC(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class Ym extends ir{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,n){return super.copy(e,n),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(n.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(n.object.backgroundIntensity=this.backgroundIntensity),n}}class EC{constructor(e,n){this.isInterleavedBuffer=!0,this.array=e,this.stride=n,this.count=e!==void 0?e.length/n:0,this.usage=jm,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=na()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return Rp("THREE.InterleavedBuffer: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,n){this.updateRanges.push({start:e,count:n})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,n,r){e*=this.stride,r*=n.stride;for(let i=0,s=this.stride;ie.far||n.push({distance:l,point:Fg.clone(),uv:Zo.getInterpolation(Fg,Yy,Qg,Xy,YM,Jx,XM,new st),face:null,object:this})}copy(e,n){return super.copy(e,n),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}}function qy(t,e,n,r,i,s){gf.subVectors(t,n).addScalar(.5).multiply(r),i!==void 0?(Pg.x=s*gf.x-i*gf.y,Pg.y=i*gf.x+s*gf.y):Pg.copy(gf),t.copy(e),t.x+=Pg.x,t.y+=Pg.y,t.applyMatrix4(nR)}const Ky=new ue,qM=new ue;class iR extends ir{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const n=e.levels;for(let r=0,i=n.length;r0){let r,i;for(r=1,i=n.length;r0){Ky.setFromMatrixPosition(this.matrixWorld);const i=e.ray.origin.distanceTo(Ky);this.getObjectForDistance(i).raycast(e,n)}}update(e){const n=this.levels;if(n.length>1){Ky.setFromMatrixPosition(e.matrixWorld),qM.setFromMatrixPosition(this.matrixWorld);const r=Ky.distanceTo(qM)/e.zoom;n[0].object.visible=!0;let i,s;for(i=1,s=n.length;i=o)n[i-1].object.visible=!1,n[i].object.visible=!0;else break}for(this._currentLevel=i-1;i=r.length&&r.push({start:-1,count:-1,z:-1});const s=r[this.index];i.push(s),this.index++,s.start=e.start,s.count=e.count,s.z=n}reset(){this.list.length=0,this.index=0}}const yf="batchId",Pc=new En,s_=new En,EW=new En,o_=new En,qx=new f0,e1=new ji,lp=new Li,Lg=new ue,Kx=new yW,Ys=new gr,t1=[];function CW(t,e,n=0){const r=e.itemSize;if(t.isInterleavedBufferAttribute||t.array.constructor!==e.array.constructor){const i=t.count;for(let s=0;s65536?new Uint32Array(s):new Uint16Array(s);n.setIndex(new Sr(a,1))}const o=i>65536?new Uint32Array(r):new Uint16Array(r);n.setAttribute(yf,new Sr(o,1)),this._geometryInitialized=!0}}_validateGeometry(e){if(e.getAttribute(yf))throw new Error(`BatchedMesh: Geometry cannot use attribute "${yf}"`);const n=this.geometry;if(!!e.getIndex()!=!!n.getIndex())throw new Error('BatchedMesh: All geometries must consistently have "index".');for(const r in n.attributes){if(r===yf)continue;if(!e.hasAttribute(r))throw new Error(`BatchedMesh: Added geometry missing "${r}". All geometries must have consistent attributes.`);const i=e.getAttribute(r),s=n.getAttribute(r);if(i.itemSize!==s.itemSize||i.normalized!==s.normalized)throw new Error("BatchedMesh: All attributes must have a consistent itemSize and normalized value.")}}setCustomSort(e){return this.customSort=e,this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new ji);const e=this._geometryCount,n=this.boundingBox,r=this._active;n.makeEmpty();for(let i=0;i=this._maxGeometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");const i={vertexStart:-1,vertexCount:-1,indexStart:-1,indexCount:-1};let s=null;const o=this._reservedRanges,a=this._drawRanges,l=this._bounds;this._geometryCount!==0&&(s=o[o.length-1]),n===-1?i.vertexCount=e.getAttribute("position").count:i.vertexCount=n,s===null?i.vertexStart=0:i.vertexStart=s.vertexStart+s.vertexCount;const c=e.getIndex(),p=c!==null;if(p&&(r===-1?i.indexCount=c.count:i.indexCount=r,s===null?i.indexStart=0:i.indexStart=s.indexStart+s.indexCount),i.indexStart!==-1&&i.indexStart+i.indexCount>this._maxIndexCount||i.vertexStart+i.vertexCount>this._maxVertexCount)throw new Error("BatchedMesh: Reserved space request exceeds the maximum buffer size.");const d=this._visibility,A=this._active,y=this._matricesTexture,C=this._matricesTexture.image.data;d.push(!0),A.push(!0);const x=this._geometryCount;this._geometryCount++,EW.toArray(C,x*16),y.needsUpdate=!0,o.push(i),a.push({start:p?i.indexStart:i.vertexStart,count:-1}),l.push({boxInitialized:!1,box:new ji,sphereInitialized:!1,sphere:new Li});const D=this.geometry.getAttribute(yf);for(let I=0;I=this._geometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");this._validateGeometry(n);const r=this.geometry,i=r.getIndex()!==null,s=r.getIndex(),o=n.getIndex(),a=this._reservedRanges[e];if(i&&o.count>a.indexCount||n.attributes.position.count>a.vertexCount)throw new Error("BatchedMesh: Reserved space not large enough for provided geometry.");const l=a.vertexStart,c=a.vertexCount;for(const y in r.attributes){if(y===yf)continue;const C=n.getAttribute(y),x=r.getAttribute(y);CW(C,x,l);const D=C.itemSize;for(let I=C.count,w=c;I=n.length||n[e]===!1?this:(n[e]=!1,this._visibilityChanged=!0,this)}getBoundingBoxAt(e,n){if(this._active[e]===!1)return null;const i=this._bounds[e],s=i.box,o=this.geometry;if(i.boxInitialized===!1){s.makeEmpty();const a=o.index,l=o.attributes.position,c=this._drawRanges[e];for(let p=c.start,d=c.start+c.count;p=o||r[e]===!1?this:(n.toArray(s,e*16),i.needsUpdate=!0,this)}getMatrixAt(e,n){const r=this._active,i=this._matricesTexture.image.data,s=this._geometryCount;return e>=s||r[e]===!1?null:n.fromArray(i,e*16)}setVisibleAt(e,n){const r=this._visibility,i=this._active,s=this._geometryCount;return e>=s||i[e]===!1||r[e]===n?this:(r[e]=n,this._visibilityChanged=!0,this)}getVisibleAt(e){const n=this._visibility,r=this._active,i=this._geometryCount;return e>=i||r[e]===!1?!1:n[e]}raycast(e,n){const r=this._visibility,i=this._active,s=this._drawRanges,o=this._geometryCount,a=this.matrixWorld,l=this.geometry;Ys.material=this.material,Ys.geometry.index=l.index,Ys.geometry.attributes=l.attributes,Ys.geometry.boundingBox===null&&(Ys.geometry.boundingBox=new ji),Ys.geometry.boundingSphere===null&&(Ys.geometry.boundingSphere=new Li);for(let c=0;c({...n})),this._reservedRanges=e._reservedRanges.map(n=>({...n})),this._visibility=e._visibility.slice(),this._active=e._active.slice(),this._bounds=e._bounds.map(n=>({boxInitialized:n.boxInitialized,box:n.box.clone(),sphereInitialized:n.sphereInitialized,sphere:n.sphere.clone()})),this._maxGeometryCount=e._maxGeometryCount,this._maxVertexCount=e._maxVertexCount,this._maxIndexCount=e._maxIndexCount,this._geometryInitialized=e._geometryInitialized,this._geometryCount=e._geometryCount,this._multiDrawCounts=e._multiDrawCounts.slice(),this._multiDrawStarts=e._multiDrawStarts.slice(),this._matricesTexture=e._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.slice(),this}dispose(){return this.geometry.dispose(),this._matricesTexture.dispose(),this._matricesTexture=null,this}onBeforeRender(e,n,r,i,s){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;const o=i.getIndex(),a=o===null?1:o.array.BYTES_PER_ELEMENT,l=this._active,c=this._visibility,p=this._multiDrawStarts,d=this._multiDrawCounts,A=this._drawRanges,y=this.perObjectFrustumCulled;y&&(o_.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse).multiply(this.matrixWorld),qx.setFromProjectionMatrix(o_,e.coordinateSystem));let C=0;if(this.sortObjects){s_.copy(this.matrixWorld).invert(),Lg.setFromMatrixPosition(r.matrixWorld).applyMatrix4(s_);for(let I=0,w=c.length;Il)continue;A.applyMatrix4(this.matrixWorld);const U=e.ray.origin.distanceTo(A);Ue.far||n.push({distance:U,point:d.clone().applyMatrix4(this.matrixWorld),index:B,face:null,faceIndex:null,object:this})}}else{const I=Math.max(0,o.start),w=Math.min(D.count,o.start+o.count);for(let B=I,_=w-1;B<_;B+=y){if(c.fromBufferAttribute(D,B),p.fromBufferAttribute(D,B+1),Zx.distanceSqToSegment(c,p,A,d)>l)continue;A.applyMatrix4(this.matrixWorld);const P=e.ray.origin.distanceTo(A);Pe.far||n.push({distance:P,point:d.clone().applyMatrix4(this.matrixWorld),index:B,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const n=this.geometry.morphAttributes,r=Object.keys(n);if(r.length>0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;si.far)return;s.push({distance:c,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:o})}}class hR extends Zr{constructor(e,n,r,i,s,o,a,l,c){super(e,n,r,i,s,o,a,l,c),this.isVideoTexture=!0,this.minFilter=o!==void 0?o:Wr,this.magFilter=s!==void 0?s:Wr,this.generateMipmaps=!1;const p=this;function d(){p.needsUpdate=!0,e.requestVideoFrameCallback(d)}"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(d)}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;"requestVideoFrameCallback"in e===!1&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class vW extends Zr{constructor(e,n){super({width:e,height:n}),this.isFramebufferTexture=!0,this.magFilter=Ii,this.minFilter=Ii,this.generateMipmaps=!1,this.needsUpdate=!0}}class CC extends Zr{constructor(e,n,r,i,s,o,a,l,c,p,d,A){super(null,o,a,l,c,p,i,s,d,A),this.isCompressedTexture=!0,this.image={width:n,height:r},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class xW extends CC{constructor(e,n,r,i,s,o){super(e,n,r,s,o),this.isCompressedArrayTexture=!0,this.image.depth=i,this.wrapR=Ks}}class IW extends CC{constructor(e,n,r){super(void 0,e[0].width,e[0].height,n,r,bu),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}}class DW extends Zr{constructor(e,n,r,i,s,o,a,l,c){super(e,n,r,i,s,o,a,l,c),this.isCanvasTexture=!0,this.needsUpdate=!0}}class sl{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,n){const r=this.getUtoTmapping(e);return this.getPoint(r,n)}getPoints(e=5){const n=[];for(let r=0;r<=e;r++)n.push(this.getPoint(r/e));return n}getSpacedPoints(e=5){const n=[];for(let r=0;r<=e;r++)n.push(this.getPointAt(r/e));return n}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const n=[];let r,i=this.getPoint(0),s=0;n.push(0);for(let o=1;o<=e;o++)r=this.getPoint(o/e),s+=r.distanceTo(i),n.push(s),i=r;return this.cacheArcLengths=n,n}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,n){const r=this.getLengths();let i=0;const s=r.length;let o;n?o=n:o=e*r[s-1];let a=0,l=s-1,c;for(;a<=l;)if(i=Math.floor(a+(l-a)/2),c=r[i]-o,c<0)a=i+1;else if(c>0)l=i-1;else{l=i;break}if(i=l,r[i]===o)return i/(s-1);const p=r[i],A=r[i+1]-p,y=(o-p)/A;return(i+y)/(s-1)}getTangent(e,n){let i=e-1e-4,s=e+1e-4;i<0&&(i=0),s>1&&(s=1);const o=this.getPoint(i),a=this.getPoint(s),l=n||(o.isVector2?new st:new ue);return l.copy(a).sub(o).normalize(),l}getTangentAt(e,n){const r=this.getUtoTmapping(e);return this.getTangent(r,n)}computeFrenetFrames(e,n){const r=new ue,i=[],s=[],o=[],a=new ue,l=new En;for(let y=0;y<=e;y++){const C=y/e;i[y]=this.getTangentAt(C,new ue)}s[0]=new ue,o[0]=new ue;let c=Number.MAX_VALUE;const p=Math.abs(i[0].x),d=Math.abs(i[0].y),A=Math.abs(i[0].z);p<=c&&(c=p,r.set(1,0,0)),d<=c&&(c=d,r.set(0,1,0)),A<=c&&r.set(0,0,1),a.crossVectors(i[0],r).normalize(),s[0].crossVectors(i[0],a),o[0].crossVectors(i[0],s[0]);for(let y=1;y<=e;y++){if(s[y]=s[y-1].clone(),o[y]=o[y-1].clone(),a.crossVectors(i[y-1],i[y]),a.length()>Number.EPSILON){a.normalize();const C=Math.acos(Ai(i[y-1].dot(i[y]),-1,1));s[y].applyMatrix4(l.makeRotationAxis(a,C))}o[y].crossVectors(i[y],s[y])}if(n===!0){let y=Math.acos(Ai(s[0].dot(s[e]),-1,1));y/=e,i[0].dot(a.crossVectors(s[0],s[e]))>0&&(y=-y);for(let C=1;C<=e;C++)s[C].applyMatrix4(l.makeRotationAxis(i[C],y*C)),o[C].crossVectors(i[C],s[C])}return{tangents:i,normals:s,binormals:o}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class vC extends sl{constructor(e=0,n=0,r=1,i=1,s=0,o=Math.PI*2,a=!1,l=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=n,this.xRadius=r,this.yRadius=i,this.aStartAngle=s,this.aEndAngle=o,this.aClockwise=a,this.aRotation=l}getPoint(e,n){const r=n||new st,i=Math.PI*2;let s=this.aEndAngle-this.aStartAngle;const o=Math.abs(s)i;)s-=i;s0?0:(Math.floor(Math.abs(a)/s)+1)*s:l===0&&a===s-1&&(a=s-2,l=1);let c,p;this.closed||a>0?c=i[(a-1)%s]:(s1.subVectors(i[0],i[1]).add(i[0]),c=s1);const d=i[a%s],A=i[(a+1)%s];if(this.closed||a+2i.length-2?i.length-1:o+1],d=i[o>i.length-3?i.length-1:o+2];return r.set(f_(a,l.x,c.x,p.x,d.x),f_(a,l.y,c.y,p.y,d.y)),r}copy(e){super.copy(e),this.points=[];for(let n=0,r=e.points.length;n=r){const o=i[s]-r,a=this.curves[s],l=a.getLength(),c=l===0?0:1-o/l;return a.getPointAt(c,n)}s++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let n=0;for(let r=0,i=this.curves.length;r1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n}copy(e){super.copy(e),this.curves=[];for(let n=0,r=e.curves.length;n0){const d=c.getPoint(0);d.equals(this.currentPoint)||this.lineTo(d.x,d.y)}this.curves.push(c);const p=c.getPoint(1);return this.currentPoint.copy(p),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class A0 extends Hn{constructor(e=[new st(0,-.5),new st(.5,0),new st(0,.5)],n=12,r=0,i=Math.PI*2){super(),this.type="LatheGeometry",this.parameters={points:e,segments:n,phiStart:r,phiLength:i},n=Math.floor(n),i=Ai(i,0,Math.PI*2);const s=[],o=[],a=[],l=[],c=[],p=1/n,d=new ue,A=new st,y=new ue,C=new ue,x=new ue;let D=0,I=0;for(let w=0;w<=e.length-1;w++)switch(w){case 0:D=e[w+1].x-e[w].x,I=e[w+1].y-e[w].y,y.x=I*1,y.y=-D,y.z=I*0,x.copy(y),y.normalize(),l.push(y.x,y.y,y.z);break;case e.length-1:l.push(x.x,x.y,x.z);break;default:D=e[w+1].x-e[w].x,I=e[w+1].y-e[w].y,y.x=I*1,y.y=-D,y.z=I*0,C.copy(y),y.x+=x.x,y.y+=x.y,y.z+=x.z,y.normalize(),l.push(y.x,y.y,y.z),x.copy(C)}for(let w=0;w<=n;w++){const B=r+w*p*i,_=Math.sin(B),F=Math.cos(B);for(let P=0;P<=e.length-1;P++){d.x=e[P].x*_,d.y=e[P].y,d.z=e[P].x*F,o.push(d.x,d.y,d.z),A.x=w/n,A.y=P/(e.length-1),a.push(A.x,A.y);const N=l[3*P+0]*_,U=l[3*P+1],q=l[3*P+0]*F;c.push(N,U,q)}}for(let w=0;w0&&B(!0),n>0&&B(!1)),this.setIndex(p),this.setAttribute("position",new fn(d,3)),this.setAttribute("normal",new fn(A,3)),this.setAttribute("uv",new fn(y,2));function w(){const _=new ue,F=new ue;let P=0;const N=(n-e)/r;for(let U=0;U<=s;U++){const q=[],L=U/s,z=L*(n-e)+e;for(let he=0;he<=i;he++){const Ie=he/i,re=Ie*l+a,_e=Math.sin(re),De=Math.cos(re);F.x=z*_e,F.y=-L*r+D,F.z=z*De,d.push(F.x,F.y,F.z),_.set(_e,N,De).normalize(),A.push(_.x,_.y,_.z),y.push(Ie,1-L),q.push(C++)}x.push(q)}for(let U=0;U.9&&N<.1&&(B<.2&&(o[w+0]+=1),_<.2&&(o[w+2]+=1),F<.2&&(o[w+4]+=1))}}function A(w){s.push(w.x,w.y,w.z)}function y(w,B){const _=w*3;B.x=e[_+0],B.y=e[_+1],B.z=e[_+2]}function C(){const w=new ue,B=new ue,_=new ue,F=new ue,P=new st,N=new st,U=new st;for(let q=0,L=0;q80*n){a=c=t[0],l=p=t[1];for(let C=n;Cc&&(c=d),A>p&&(p=A);y=Math.max(c-a,p-l),y=y!==0?32767/y:0}return Xm(s,o,n,a,l,y,0),o}};function yR(t,e,n,r,i){let s,o;if(i===YW(t,e,n,r)>0)for(s=e;s=e;s-=r)o=A_(s,t[s],t[s+1],o);return o&&wC(o,o.next)&&(Km(o),o=o.next),o}function qp(t,e){if(!t)return t;e||(e=t);let n=t,r;do if(r=!1,!n.steiner&&(wC(n,n.next)||ii(n.prev,n,n.next)===0)){if(Km(n),n=e=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==e);return e}function Xm(t,e,n,r,i,s,o){if(!t)return;!o&&s&&HW(t,r,i,s);let a=t,l,c;for(;t.prev!==t.next;){if(l=t.prev,c=t.next,s?QW(t,r,i,s):PW(t)){e.push(l.i/n|0),e.push(t.i/n|0),e.push(c.i/n|0),Km(t),t=c.next,a=c.next;continue}if(t=c,t===a){o?o===1?(t=kW(qp(t),e,n),Xm(t,e,n,r,i,s,2)):o===2&&RW(t,e,n,r,i,s):Xm(qp(t),e,n,r,i,s,1);break}}}function PW(t){const e=t.prev,n=t,r=t.next;if(ii(e,n,r)>=0)return!1;const i=e.x,s=n.x,o=r.x,a=e.y,l=n.y,c=r.y,p=is?i>o?i:o:s>o?s:o,y=a>l?a>c?a:c:l>c?l:c;let C=r.next;for(;C!==e;){if(C.x>=p&&C.x<=A&&C.y>=d&&C.y<=y&&zf(i,a,s,l,o,c,C.x,C.y)&&ii(C.prev,C,C.next)>=0)return!1;C=C.next}return!0}function QW(t,e,n,r){const i=t.prev,s=t,o=t.next;if(ii(i,s,o)>=0)return!1;const a=i.x,l=s.x,c=o.x,p=i.y,d=s.y,A=o.y,y=al?a>c?a:c:l>c?l:c,D=p>d?p>A?p:A:d>A?d:A,I=NS(y,C,e,n,r),w=NS(x,D,e,n,r);let B=t.prevZ,_=t.nextZ;for(;B&&B.z>=I&&_&&_.z<=w;){if(B.x>=y&&B.x<=x&&B.y>=C&&B.y<=D&&B!==i&&B!==o&&zf(a,p,l,d,c,A,B.x,B.y)&&ii(B.prev,B,B.next)>=0||(B=B.prevZ,_.x>=y&&_.x<=x&&_.y>=C&&_.y<=D&&_!==i&&_!==o&&zf(a,p,l,d,c,A,_.x,_.y)&&ii(_.prev,_,_.next)>=0))return!1;_=_.nextZ}for(;B&&B.z>=I;){if(B.x>=y&&B.x<=x&&B.y>=C&&B.y<=D&&B!==i&&B!==o&&zf(a,p,l,d,c,A,B.x,B.y)&&ii(B.prev,B,B.next)>=0)return!1;B=B.prevZ}for(;_&&_.z<=w;){if(_.x>=y&&_.x<=x&&_.y>=C&&_.y<=D&&_!==i&&_!==o&&zf(a,p,l,d,c,A,_.x,_.y)&&ii(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}function kW(t,e,n){let r=t;do{const i=r.prev,s=r.next.next;!wC(i,s)&&ER(i,r,r.next,s)&&qm(i,s)&&qm(s,i)&&(e.push(i.i/n|0),e.push(r.i/n|0),e.push(s.i/n|0),Km(r),Km(r.next),r=t=s),r=r.next}while(r!==t);return qp(r)}function RW(t,e,n,r,i,s){let o=t;do{let a=o.next.next;for(;a!==o.prev;){if(o.i!==a.i&&jW(o,a)){let l=CR(o,a);o=qp(o,o.next),l=qp(l,l.next),Xm(o,e,n,r,i,s,0),Xm(l,e,n,r,i,s,0);return}a=a.next}o=o.next}while(o!==t)}function LW(t,e,n,r){const i=[];let s,o,a,l,c;for(s=0,o=e.length;s=n.next.y&&n.next.y!==n.y){const A=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(A<=s&&A>r&&(r=A,i=n.x=n.x&&n.x>=l&&s!==n.x&&zf(oi.x||n.x===i.x&&GW(i,n)))&&(i=n,p=d)),n=n.next;while(n!==a);return i}function GW(t,e){return ii(t.prev,t,e.prev)<0&&ii(e.next,t,t.next)<0}function HW(t,e,n,r){let i=t;do i.z===0&&(i.z=NS(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,zW(i)}function zW(t){let e,n,r,i,s,o,a,l,c=1;do{for(n=t,t=null,s=null,o=0;n;){for(o++,r=n,a=0,e=0;e0||l>0&&r;)a!==0&&(l===0||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,l--),s?s.nextZ=i:t=i,i.prevZ=s,s=i;n=r}s.nextZ=null,c*=2}while(o>1);return t}function NS(t,e,n,r,i){return t=(t-n)*i|0,e=(e-r)*i|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function WW(t){let e=t,n=t;do(e.x=(t-o)*(s-a)&&(t-o)*(r-a)>=(n-o)*(e-a)&&(n-o)*(s-a)>=(i-o)*(r-a)}function jW(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!VW(t,e)&&(qm(t,e)&&qm(e,t)&&JW(t,e)&&(ii(t.prev,t,e.prev)||ii(t,e.prev,e))||wC(t,e)&&ii(t.prev,t,t.next)>0&&ii(e.prev,e,e.next)>0)}function ii(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function wC(t,e){return t.x===e.x&&t.y===e.y}function ER(t,e,n,r){const i=c1(ii(t,e,n)),s=c1(ii(t,e,r)),o=c1(ii(n,r,t)),a=c1(ii(n,r,e));return!!(i!==s&&o!==a||i===0&&u1(t,n,e)||s===0&&u1(t,r,e)||o===0&&u1(n,t,r)||a===0&&u1(n,e,r))}function u1(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function c1(t){return t>0?1:t<0?-1:0}function VW(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&ER(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}function qm(t,e){return ii(t.prev,t,t.next)<0?ii(t,e,t.next)>=0&&ii(t,t.prev,e)>=0:ii(t,e,t.prev)<0||ii(t,t.next,e)<0}function JW(t,e){let n=t,r=!1;const i=(t.x+e.x)/2,s=(t.y+e.y)/2;do n.y>s!=n.next.y>s&&n.next.y!==n.y&&i<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==t);return r}function CR(t,e){const n=new OS(t.i,t.x,t.y),r=new OS(e.i,e.x,e.y),i=t.next,s=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,s.next=r,r.prev=s,r}function A_(t,e,n,r){const i=new OS(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Km(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function OS(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function YW(t,e,n,r){let i=0;for(let s=e,o=n-r;s2&&t[e-1].equals(t[0])&&t.pop()}function m_(t,e){for(let n=0;nNumber.EPSILON){const ut=Math.sqrt(ft),Ut=Math.sqrt($*$+Oe*Oe),_t=Ne.x-W/ut,Ot=Ne.y+Se/ut,Ft=be.x-Oe/Ut,Pt=be.y+$/Ut,mt=((Ft-_t)*Oe-(Pt-Ot)*$)/(Se*Oe-W*$);Ve=_t+Se*mt-ae.x,He=Ot+W*mt-ae.y;const Rn=Ve*Ve+He*He;if(Rn<=2)return new st(Ve,He);lt=Math.sqrt(Rn/2)}else{let ut=!1;Se>Number.EPSILON?$>Number.EPSILON&&(ut=!0):Se<-Number.EPSILON?$<-Number.EPSILON&&(ut=!0):Math.sign(W)===Math.sign(Oe)&&(ut=!0),ut?(Ve=-W,He=Se,lt=Math.sqrt(ft)):(Ve=Se,He=W,lt=Math.sqrt(ft/2))}return new st(Ve/lt,He/lt)}const ge=[];for(let ae=0,Ne=re.length,be=Ne-1,Ve=ae+1;ae=0;ae--){const Ne=ae/D,be=y*Math.cos(Ne*Math.PI/2),Ve=C*Math.sin(Ne*Math.PI/2)+x;for(let He=0,lt=re.length;He=0;){const Ve=be;let He=be-1;He<0&&(He=ae.length-1);for(let lt=0,Se=p+D*2;lt0)&&y.push(B,_,P),(I!==r-1||l0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class SR extends Ni{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Xt(16777215),this.specular=new Xt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Xt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ah,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=c0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class wR extends Ni{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Xt(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Xt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ah,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class BR extends Ni{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ah,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}class bR extends Ni{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new Xt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Xt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ah,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=c0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class TR extends Ni{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Xt(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ah,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this.fog=e.fog,this}}class MR extends vo{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}function Mp(t,e,n){return!t||!n&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)}function _R(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function FR(t){function e(i,s){return t[i]-t[s]}const n=t.length,r=new Array(n);for(let i=0;i!==n;++i)r[i]=i;return r.sort(e),r}function US(t,e,n){const r=t.length,i=new t.constructor(r);for(let s=0,o=0;o!==r;++s){const a=n[s]*e;for(let l=0;l!==e;++l)i[o++]=t[a+l]}return i}function Ww(t,e,n,r){let i=1,s=t[0];for(;s!==void 0&&s[r]===void 0;)s=t[i++];if(s===void 0)return;let o=s[r];if(o!==void 0)if(Array.isArray(o))do o=s[r],o!==void 0&&(e.push(s.time),n.push.apply(n,o)),s=t[i++];while(s!==void 0);else if(o.toArray!==void 0)do o=s[r],o!==void 0&&(e.push(s.time),o.toArray(n,n.length)),s=t[i++];while(s!==void 0);else do o=s[r],o!==void 0&&(e.push(s.time),n.push(o)),s=t[i++];while(s!==void 0)}function ZW(t,e,n,r,i=30){const s=t.clone();s.name=e;const o=[];for(let l=0;l=r)){d.push(c.times[y]);for(let x=0;xs.tracks[l].times[0]&&(a=s.tracks[l].times[0]);for(let l=0;l=a.times[C]){const I=C*d+p,w=I+d-p;x=a.values.slice(I,w)}else{const I=a.createInterpolant(),w=p,B=d-p;I.evaluate(s),x=I.resultBuffer.slice(w,B)}l==="quaternion"&&new Si().fromArray(x).normalize().conjugate().toArray(x);const D=c.times.length;for(let I=0;I=s)){const a=n[1];e=s)break t}o=r,r=0;break n}break e}for(;r>>1;en;)--o;if(++o,s!==0||o!==i){s>=o&&(o=Math.max(o,1),s=o-1);const a=this.getValueSize();this.times=r.slice(s,o),this.values=this.values.slice(s*a,o*a)}return this}validate(){let e=!0;const n=this.getValueSize();n-Math.floor(n)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const r=this.times,i=this.values,s=r.length;s===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==s;a++){const l=r[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),e=!1;break}o=l}if(i!==void 0&&_R(i))for(let a=0,l=i.length;a!==l;++a){const c=i[a];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,c),e=!1;break}}return e}optimize(){const e=this.times.slice(),n=this.values.slice(),r=this.getValueSize(),i=this.getInterpolation()===q1,s=e.length-1;let o=1;for(let a=1;a0){e[o]=e[s];for(let a=s*r,l=o*r,c=0;c!==r;++c)n[l+c]=n[a+c];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=n.slice(0,o*r)):(this.times=e,this.values=n),this}clone(){const e=this.times.slice(),n=this.values.slice(),r=this.constructor,i=new r(this.name,e,n);return i.createInterpolant=this.createInterpolant,i}}ol.prototype.TimeBufferType=Float32Array;ol.prototype.ValueBufferType=Float32Array;ol.prototype.DefaultInterpolation=Um;class nd extends ol{}nd.prototype.ValueTypeName="bool";nd.prototype.ValueBufferType=Array;nd.prototype.DefaultInterpolation=Om;nd.prototype.InterpolantFactoryMethodLinear=void 0;nd.prototype.InterpolantFactoryMethodSmooth=void 0;class Vw extends ol{}Vw.prototype.ValueTypeName="color";class Zm extends ol{}Zm.prototype.ValueTypeName="number";class kR extends y0{constructor(e,n,r,i){super(e,n,r,i)}interpolate_(e,n,r,i){const s=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(r-n)/(i-n);let c=e*a;for(let p=c+a;c!==p;c+=4)Si.slerpFlat(s,0,o,c-a,o,c,l);return s}}class TA extends ol{InterpolantFactoryMethodLinear(e){return new kR(this.times,this.values,this.getValueSize(),e)}}TA.prototype.ValueTypeName="quaternion";TA.prototype.DefaultInterpolation=Um;TA.prototype.InterpolantFactoryMethodSmooth=void 0;class rd extends ol{}rd.prototype.ValueTypeName="string";rd.prototype.ValueBufferType=Array;rd.prototype.DefaultInterpolation=Om;rd.prototype.InterpolantFactoryMethodLinear=void 0;rd.prototype.InterpolantFactoryMethodSmooth=void 0;class $m extends ol{}$m.prototype.ValueTypeName="vector";class e0{constructor(e,n=-1,r,i=hC){this.name=e,this.tracks=r,this.duration=n,this.blendMode=i,this.uuid=na(),this.duration<0&&this.resetDuration()}static parse(e){const n=[],r=e.tracks,i=1/(e.fps||1);for(let o=0,a=r.length;o!==a;++o)n.push(nj(r[o]).scale(i));const s=new this(e.name,e.duration,n,e.blendMode);return s.uuid=e.uuid,s}static toJSON(e){const n=[],r=e.tracks,i={name:e.name,duration:e.duration,tracks:n,uuid:e.uuid,blendMode:e.blendMode};for(let s=0,o=r.length;s!==o;++s)n.push(ol.toJSON(r[s]));return i}static CreateFromMorphTargetSequence(e,n,r,i){const s=n.length,o=[];for(let a=0;a1){const d=p[1];let A=i[d];A||(i[d]=A=[]),A.push(c)}}const o=[];for(const a in i)o.push(this.CreateFromMorphTargetSequence(a,i[a],n,r));return o}static parseAnimation(e,n){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const r=function(d,A,y,C,x){if(y.length!==0){const D=[],I=[];Ww(y,D,I,C),D.length!==0&&x.push(new d(A,D,I))}},i=[],s=e.name||"default",o=e.fps||30,a=e.blendMode;let l=e.length||-1;const c=e.hierarchy||[];for(let d=0;d{n&&n(s),this.manager.itemEnd(e)},0),s;if(lu[e]!==void 0){lu[e].push({onLoad:n,onProgress:r,onError:i});return}lu[e]=[],lu[e].push({onLoad:n,onProgress:r,onError:i});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||c.body===void 0||c.body.getReader===void 0)return c;const p=lu[e],d=c.body.getReader(),A=c.headers.get("Content-Length")||c.headers.get("X-File-Size"),y=A?parseInt(A):0,C=y!==0;let x=0;const D=new ReadableStream({start(I){w();function w(){d.read().then(({done:B,value:_})=>{if(B)I.close();else{x+=_.byteLength;const F=new ProgressEvent("progress",{lengthComputable:C,loaded:x,total:y});for(let P=0,N=p.length;P{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(p=>new DOMParser().parseFromString(p,a));case"json":return c.json();default:if(a===void 0)return c.text();{const d=/charset="?([^;"\s]*)"?/i.exec(a),A=d&&d[1]?d[1].toLowerCase():void 0,y=new TextDecoder(A);return c.arrayBuffer().then(C=>y.decode(C))}}}).then(c=>{vu.add(e,c);const p=lu[e];delete lu[e];for(let d=0,A=p.length;d{const p=lu[e];if(p===void 0)throw this.manager.itemError(e),c;delete lu[e];for(let d=0,A=p.length;d{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class ij extends xo{constructor(e){super(e)}load(e,n,r,i){const s=this,o=new Nl(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(a){try{n(s.parse(JSON.parse(a)))}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},r,i)}parse(e){const n=[];for(let r=0;r0:i.vertexColors=e.vertexColors),e.uniforms!==void 0)for(const s in e.uniforms){const o=e.uniforms[s];switch(i.uniforms[s]={},o.type){case"t":i.uniforms[s].value=r(o.value);break;case"c":i.uniforms[s].value=new Xt().setHex(o.value);break;case"v2":i.uniforms[s].value=new st().fromArray(o.value);break;case"v3":i.uniforms[s].value=new ue().fromArray(o.value);break;case"v4":i.uniforms[s].value=new br().fromArray(o.value);break;case"m3":i.uniforms[s].value=new kn().fromArray(o.value);break;case"m4":i.uniforms[s].value=new En().fromArray(o.value);break;default:i.uniforms[s].value=o.value}}if(e.defines!==void 0&&(i.defines=e.defines),e.vertexShader!==void 0&&(i.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(i.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(i.glslVersion=e.glslVersion),e.extensions!==void 0)for(const s in e.extensions)i.extensions[s]=e.extensions[s];if(e.lights!==void 0&&(i.lights=e.lights),e.clipping!==void 0&&(i.clipping=e.clipping),e.size!==void 0&&(i.size=e.size),e.sizeAttenuation!==void 0&&(i.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(i.map=r(e.map)),e.matcap!==void 0&&(i.matcap=r(e.matcap)),e.alphaMap!==void 0&&(i.alphaMap=r(e.alphaMap)),e.bumpMap!==void 0&&(i.bumpMap=r(e.bumpMap)),e.bumpScale!==void 0&&(i.bumpScale=e.bumpScale),e.normalMap!==void 0&&(i.normalMap=r(e.normalMap)),e.normalMapType!==void 0&&(i.normalMapType=e.normalMapType),e.normalScale!==void 0){let s=e.normalScale;Array.isArray(s)===!1&&(s=[s,s]),i.normalScale=new st().fromArray(s)}return e.displacementMap!==void 0&&(i.displacementMap=r(e.displacementMap)),e.displacementScale!==void 0&&(i.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(i.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(i.roughnessMap=r(e.roughnessMap)),e.metalnessMap!==void 0&&(i.metalnessMap=r(e.metalnessMap)),e.emissiveMap!==void 0&&(i.emissiveMap=r(e.emissiveMap)),e.emissiveIntensity!==void 0&&(i.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(i.specularMap=r(e.specularMap)),e.specularIntensityMap!==void 0&&(i.specularIntensityMap=r(e.specularIntensityMap)),e.specularColorMap!==void 0&&(i.specularColorMap=r(e.specularColorMap)),e.envMap!==void 0&&(i.envMap=r(e.envMap)),e.envMapIntensity!==void 0&&(i.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(i.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(i.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(i.lightMap=r(e.lightMap)),e.lightMapIntensity!==void 0&&(i.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(i.aoMap=r(e.aoMap)),e.aoMapIntensity!==void 0&&(i.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(i.gradientMap=r(e.gradientMap)),e.clearcoatMap!==void 0&&(i.clearcoatMap=r(e.clearcoatMap)),e.clearcoatRoughnessMap!==void 0&&(i.clearcoatRoughnessMap=r(e.clearcoatRoughnessMap)),e.clearcoatNormalMap!==void 0&&(i.clearcoatNormalMap=r(e.clearcoatNormalMap)),e.clearcoatNormalScale!==void 0&&(i.clearcoatNormalScale=new st().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(i.iridescenceMap=r(e.iridescenceMap)),e.iridescenceThicknessMap!==void 0&&(i.iridescenceThicknessMap=r(e.iridescenceThicknessMap)),e.transmissionMap!==void 0&&(i.transmissionMap=r(e.transmissionMap)),e.thicknessMap!==void 0&&(i.thicknessMap=r(e.thicknessMap)),e.anisotropyMap!==void 0&&(i.anisotropyMap=r(e.anisotropyMap)),e.sheenColorMap!==void 0&&(i.sheenColorMap=r(e.sheenColorMap)),e.sheenRoughnessMap!==void 0&&(i.sheenRoughnessMap=r(e.sheenRoughnessMap)),i}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){const n={ShadowMaterial:xR,SpriteMaterial:Pw,RawShaderMaterial:IR,ShaderMaterial:il,PointsMaterial:Rw,MeshPhysicalMaterial:DR,MeshStandardMaterial:zw,MeshPhongMaterial:SR,MeshToonMaterial:wR,MeshNormalMaterial:BR,MeshLambertMaterial:bR,MeshDepthMaterial:AC,MeshDistanceMaterial:gC,MeshBasicMaterial:Uo,MeshMatcapMaterial:TR,LineDashedMaterial:MR,LineBasicMaterial:vo,Material:Ni};return new n[e]}}class GS{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let n="";for(let r=0,i=e.length;r0){const l=new Jw(n);s=new t0(l),s.setCrossOrigin(this.crossOrigin);for(let c=0,p=e.length;c0){i=new t0(this.manager),i.setCrossOrigin(this.crossOrigin);for(let o=0,a=e.length;o{const D=new ji;D.min.fromArray(x.boxMin),D.max.fromArray(x.boxMax);const I=new Li;return I.radius=x.sphereRadius,I.center.fromArray(x.sphereCenter),{boxInitialized:x.boxInitialized,box:D,sphereInitialized:x.sphereInitialized,sphere:I}}),o._maxGeometryCount=e.maxGeometryCount,o._maxVertexCount=e.maxVertexCount,o._maxIndexCount=e.maxIndexCount,o._geometryInitialized=e.geometryInitialized,o._geometryCount=e.geometryCount,o._matricesTexture=c(e.matricesTexture.uuid);break;case"LOD":o=new iR;break;case"Line":o=new lh(a(e.geometry),l(e.material));break;case"LineLoop":o=new uR(a(e.geometry),l(e.material));break;case"LineSegments":o=new Ol(a(e.geometry),l(e.material));break;case"PointCloud":case"Points":o=new cR(a(e.geometry),l(e.material));break;case"Sprite":o=new rR(l(e.material));break;case"Group":o=new Cu;break;case"Bone":o=new Qw;break;default:o=new ir}if(o.uuid=e.uuid,e.name!==void 0&&(o.name=e.name),e.matrix!==void 0?(o.matrix.fromArray(e.matrix),e.matrixAutoUpdate!==void 0&&(o.matrixAutoUpdate=e.matrixAutoUpdate),o.matrixAutoUpdate&&o.matrix.decompose(o.position,o.quaternion,o.scale)):(e.position!==void 0&&o.position.fromArray(e.position),e.rotation!==void 0&&o.rotation.fromArray(e.rotation),e.quaternion!==void 0&&o.quaternion.fromArray(e.quaternion),e.scale!==void 0&&o.scale.fromArray(e.scale)),e.up!==void 0&&o.up.fromArray(e.up),e.castShadow!==void 0&&(o.castShadow=e.castShadow),e.receiveShadow!==void 0&&(o.receiveShadow=e.receiveShadow),e.shadow&&(e.shadow.bias!==void 0&&(o.shadow.bias=e.shadow.bias),e.shadow.normalBias!==void 0&&(o.shadow.normalBias=e.shadow.normalBias),e.shadow.radius!==void 0&&(o.shadow.radius=e.shadow.radius),e.shadow.mapSize!==void 0&&o.shadow.mapSize.fromArray(e.shadow.mapSize),e.shadow.camera!==void 0&&(o.shadow.camera=this.parseObject(e.shadow.camera))),e.visible!==void 0&&(o.visible=e.visible),e.frustumCulled!==void 0&&(o.frustumCulled=e.frustumCulled),e.renderOrder!==void 0&&(o.renderOrder=e.renderOrder),e.userData!==void 0&&(o.userData=e.userData),e.layers!==void 0&&(o.layers.mask=e.layers),e.children!==void 0){const A=e.children;for(let y=0;y"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,n,r,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const s=this,o=vu.get(e);if(o!==void 0){if(s.manager.itemStart(e),o.then){o.then(c=>{n&&n(c),s.manager.itemEnd(e)}).catch(c=>{i&&i(c)});return}return setTimeout(function(){n&&n(o),s.manager.itemEnd(e)},0),o}const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader;const l=fetch(e,a).then(function(c){return c.blob()}).then(function(c){return createImageBitmap(c,Object.assign(s.options,{colorSpaceConversion:"none"}))}).then(function(c){return vu.add(e,c),n&&n(c),s.manager.itemEnd(e),c}).catch(function(c){i&&i(c),vu.remove(e),s.manager.itemError(e),s.manager.itemEnd(e)});vu.add(e,l),s.manager.itemStart(e)}}let h1;class Xw{static getContext(){return h1===void 0&&(h1=new(window.AudioContext||window.webkitAudioContext)),h1}static setContext(e){h1=e}}class fj extends xo{constructor(e){super(e)}load(e,n,r,i){const s=this,o=new Nl(this.manager);o.setResponseType("arraybuffer"),o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(l){try{const c=l.slice(0);Xw.getContext().decodeAudioData(c,function(d){n(d)}).catch(a)}catch(c){a(c)}},r,i);function a(l){i?i(l):console.error(l),s.manager.itemError(e)}}}const S_=new En,w_=new En,up=new En;class Aj{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new ki,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new ki,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const n=this._cache;if(n.focus!==e.focus||n.fov!==e.fov||n.aspect!==e.aspect*this.aspect||n.near!==e.near||n.far!==e.far||n.zoom!==e.zoom||n.eyeSep!==this.eyeSep){n.focus=e.focus,n.fov=e.fov,n.aspect=e.aspect*this.aspect,n.near=e.near,n.far=e.far,n.zoom=e.zoom,n.eyeSep=this.eyeSep,up.copy(e.projectionMatrix);const i=n.eyeSep/2,s=i*n.near/n.focus,o=n.near*Math.tan(kp*n.fov*.5)/n.zoom;let a,l;w_.elements[12]=-i,S_.elements[12]=i,a=-o*n.aspect+s,l=o*n.aspect+s,up.elements[0]=2*n.near/(l-a),up.elements[8]=(l+a)/(l-a),this.cameraL.projectionMatrix.copy(up),a=-o*n.aspect-s,l=o*n.aspect-s,up.elements[0]=2*n.near/(l-a),up.elements[8]=(l+a)/(l-a),this.cameraR.projectionMatrix.copy(up)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(w_),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(S_)}}class qw{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=B_(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const n=B_();e=(n-this.oldTime)/1e3,this.oldTime=n,this.elapsedTime+=e}return e}}function B_(){return(typeof performance>"u"?Date:performance).now()}const cp=new ue,b_=new Si,gj=new ue,hp=new ue;class mj extends ir{constructor(){super(),this.type="AudioListener",this.context=Xw.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new qw}getInput(){return this.gain}removeFilter(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);const n=this.context.listener,r=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(cp,b_,gj),hp.set(0,0,-1).applyQuaternion(b_),n.positionX){const i=this.context.currentTime+this.timeDelta;n.positionX.linearRampToValueAtTime(cp.x,i),n.positionY.linearRampToValueAtTime(cp.y,i),n.positionZ.linearRampToValueAtTime(cp.z,i),n.forwardX.linearRampToValueAtTime(hp.x,i),n.forwardY.linearRampToValueAtTime(hp.y,i),n.forwardZ.linearRampToValueAtTime(hp.z,i),n.upX.linearRampToValueAtTime(r.x,i),n.upY.linearRampToValueAtTime(r.y,i),n.upZ.linearRampToValueAtTime(r.z,i)}else n.setPosition(cp.x,cp.y,cp.z),n.setOrientation(hp.x,hp.y,hp.z,r.x,r.y,r.z)}}class JR extends ir{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(this.isPlaying===!0){console.warn("THREE.Audio: Audio is already playing.");return}if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}this._startedAt=this.context.currentTime+e;const n=this.context.createBufferSource();return n.buffer=this.buffer,n.loop=this.loop,n.loopStart=this.loopStart,n.loopEnd=this.loopEnd,n.onended=this.onEnded.bind(this),n.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=n,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this.isPlaying===!0&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,this.loop===!0&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this._progress=0,this.source!==null&&(this.source.stop(),this.source.onended=null),this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,n=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,n=this.filters.length;e0&&this._mixBufferRegionAdditive(r,i,this._addIndex*n,1,n);for(let l=n,c=n+n;l!==c;++l)if(r[l]!==r[l+n]){a.setValue(r,i);break}}saveOriginalState(){const e=this.binding,n=this.buffer,r=this.valueSize,i=r*this._origIndex;e.getValue(n,i);for(let s=r,o=i;s!==o;++s)n[s]=n[i+s%r];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=this.valueSize*3;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,n=e+this.valueSize;for(let r=e;r=.5)for(let o=0;o!==s;++o)e[n+o]=e[r+o]}_slerp(e,n,r,i){Si.slerpFlat(e,n,e,n,e,r,i)}_slerpAdditive(e,n,r,i,s){const o=this._workIndex*s;Si.multiplyQuaternionsFlat(e,o,e,n,e,r),Si.slerpFlat(e,n,e,n,e,o,i)}_lerp(e,n,r,i,s){const o=1-i;for(let a=0;a!==s;++a){const l=n+a;e[l]=e[l]*o+e[r+a]*i}}_lerpAdditive(e,n,r,i,s){for(let o=0;o!==s;++o){const a=n+o;e[a]=e[a]+e[r+o]*i}}}const Kw="\\[\\]\\.:\\/",vj=new RegExp("["+Kw+"]","g"),Zw="[^"+Kw+"]",xj="[^"+Kw.replace("\\.","")+"]",Ij=/((?:WC+[\/:])*)/.source.replace("WC",Zw),Dj=/(WCOD+)?/.source.replace("WCOD",xj),Sj=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Zw),wj=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Zw),Bj=new RegExp("^"+Ij+Dj+Sj+wj+"$"),bj=["material","materials","bones","map"];class Tj{constructor(e,n,r){const i=r||Cr.parseTrackName(n);this._targetGroup=e,this._bindings=e.subscribe_(n,i)}getValue(e,n){this.bind();const r=this._targetGroup.nCachedObjects_,i=this._bindings[r];i!==void 0&&i.getValue(e,n)}setValue(e,n){const r=this._bindings;for(let i=this._targetGroup.nCachedObjects_,s=r.length;i!==s;++i)r[i].setValue(e,n)}bind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=e.length;n!==r;++n)e[n].bind()}unbind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=e.length;n!==r;++n)e[n].unbind()}}class Cr{constructor(e,n,r){this.path=n,this.parsedPath=r||Cr.parseTrackName(n),this.node=Cr.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,n,r){return e&&e.isAnimationObjectGroup?new Cr.Composite(e,n,r):new Cr(e,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(vj,"")}static parseTrackName(e){const n=Bj.exec(e);if(n===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const r={nodeName:n[2],objectName:n[3],objectIndex:n[4],propertyName:n[5],propertyIndex:n[6]},i=r.nodeName&&r.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const s=r.nodeName.substring(i+1);bj.indexOf(s)!==-1&&(r.nodeName=r.nodeName.substring(0,i),r.objectName=s)}if(r.propertyName===null||r.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return r}static findNode(e,n){if(n===void 0||n===""||n==="."||n===-1||n===e.name||n===e.uuid)return e;if(e.skeleton){const r=e.skeleton.getBoneByName(n);if(r!==void 0)return r}if(e.children){const r=function(s){for(let o=0;o=s){const d=s++,A=e[d];n[A.uuid]=p,e[p]=A,n[c]=d,e[d]=l;for(let y=0,C=i;y!==C;++y){const x=r[y],D=x[d],I=x[p];x[p]=D,x[d]=I}}}this.nCachedObjects_=s}uncache(){const e=this._objects,n=this._indicesByUUID,r=this._bindings,i=r.length;let s=this.nCachedObjects_,o=e.length;for(let a=0,l=arguments.length;a!==l;++a){const c=arguments[a],p=c.uuid,d=n[p];if(d!==void 0)if(delete n[p],d0&&(n[y.uuid]=d),e[d]=y,e.pop();for(let C=0,x=i;C!==x;++C){const D=r[C];D[d]=D[A],D.pop()}}}this.nCachedObjects_=s}subscribe_(e,n){const r=this._bindingsIndicesByPath;let i=r[e];const s=this._bindings;if(i!==void 0)return s[i];const o=this._paths,a=this._parsedPaths,l=this._objects,c=l.length,p=this.nCachedObjects_,d=new Array(c);i=s.length,r[e]=i,o.push(e),a.push(n),s.push(d);for(let A=p,y=l.length;A!==y;++A){const C=l[A];d[A]=new Cr(C,e,n)}return d}unsubscribe_(e){const n=this._bindingsIndicesByPath,r=n[e];if(r!==void 0){const i=this._paths,s=this._parsedPaths,o=this._bindings,a=o.length-1,l=o[a],c=e[a];n[c]=r,o[r]=l,o.pop(),s[r]=s[a],s.pop(),i[r]=i[a],i.pop()}}}class XR{constructor(e,n,r=null,i=n.blendMode){this._mixer=e,this._clip=n,this._localRoot=r,this.blendMode=i;const s=n.tracks,o=s.length,a=new Array(o),l={endingStart:Bp,endingEnd:Bp};for(let c=0;c!==o;++c){const p=s[c].createInterpolant(null);a[c]=p,p.settings=l}this._interpolantSettings=l,this._interpolants=a,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=bk,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,n){return this.loop=e,this.repetitions=n,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,n,r){if(e.fadeOut(n),this.fadeIn(n),r){const i=this._clip.duration,s=e._clip.duration,o=s/i,a=i/s;e.warp(1,o,n),this.warp(a,1,n)}return this}crossFadeTo(e,n,r){return e.crossFadeFrom(this,n,r)}stopFading(){const e=this._weightInterpolant;return e!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,n,r){const i=this._mixer,s=i.time,o=this.timeScale;let a=this._timeScaleInterpolant;a===null&&(a=i._lendControlInterpolant(),this._timeScaleInterpolant=a);const l=a.parameterPositions,c=a.sampleValues;return l[0]=s,l[1]=s+r,c[0]=e/o,c[1]=n/o,this}stopWarping(){const e=this._timeScaleInterpolant;return e!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,n,r,i){if(!this.enabled){this._updateWeight(e);return}const s=this._startTime;if(s!==null){const l=(e-s)*r;l<0||r===0?n=0:(this._startTime=null,n=r*l)}n*=this._updateTimeScale(e);const o=this._updateTime(n),a=this._updateWeight(e);if(a>0){const l=this._interpolants,c=this._propertyBindings;switch(this.blendMode){case vw:for(let p=0,d=l.length;p!==d;++p)l[p].evaluate(o),c[p].accumulateAdditive(a);break;case hC:default:for(let p=0,d=l.length;p!==d;++p)l[p].evaluate(o),c[p].accumulate(i,a)}}}_updateWeight(e){let n=0;if(this.enabled){n=this.weight;const r=this._weightInterpolant;if(r!==null){const i=r.evaluate(e)[0];n*=i,e>r.parameterPositions[1]&&(this.stopFading(),i===0&&(this.enabled=!1))}}return this._effectiveWeight=n,n}_updateTimeScale(e){let n=0;if(!this.paused){n=this.timeScale;const r=this._timeScaleInterpolant;if(r!==null){const i=r.evaluate(e)[0];n*=i,e>r.parameterPositions[1]&&(this.stopWarping(),n===0?this.paused=!0:this.timeScale=n)}}return this._effectiveTimeScale=n,n}_updateTime(e){const n=this._clip.duration,r=this.loop;let i=this.time+e,s=this._loopCount;const o=r===Tk;if(e===0)return s===-1?i:o&&(s&1)===1?n-i:i;if(r===Bk){s===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(i>=n)i=n;else if(i<0)i=0;else{this.time=i;break e}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(s===-1&&(e>=0?(s=0,this._setEndings(!0,this.repetitions===0,o)):this._setEndings(this.repetitions===0,!0,o)),i>=n||i<0){const a=Math.floor(i/n);i-=n*a,s+=Math.abs(a);const l=this.repetitions-s;if(l<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=e>0?n:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(l===1){const c=e<0;this._setEndings(c,!c,o)}else this._setEndings(!1,!1,o);this._loopCount=s,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:a})}}else this.time=i;if(o&&(s&1)===1)return n-i}return i}_setEndings(e,n,r){const i=this._interpolantSettings;r?(i.endingStart=bp,i.endingEnd=bp):(e?i.endingStart=this.zeroSlopeAtStart?bp:Bp:i.endingStart=Gm,n?i.endingEnd=this.zeroSlopeAtEnd?bp:Bp:i.endingEnd=Gm)}_scheduleFading(e,n,r){const i=this._mixer,s=i.time;let o=this._weightInterpolant;o===null&&(o=i._lendControlInterpolant(),this._weightInterpolant=o);const a=o.parameterPositions,l=o.sampleValues;return a[0]=s,l[0]=n,a[1]=s+e,l[1]=r,this}}const _j=new Float32Array(1);class Fj extends Mu{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,n){const r=e._localRoot||this._root,i=e._clip.tracks,s=i.length,o=e._propertyBindings,a=e._interpolants,l=r.uuid,c=this._bindingsByRootAndName;let p=c[l];p===void 0&&(p={},c[l]=p);for(let d=0;d!==s;++d){const A=i[d],y=A.name;let C=p[y];if(C!==void 0)++C.referenceCount,o[d]=C;else{if(C=o[d],C!==void 0){C._cacheIndex===null&&(++C.referenceCount,this._addInactiveBinding(C,l,y));continue}const x=n&&n._propertyBindings[d].binding.parsedPath;C=new YR(Cr.create(r,y,x),A.ValueTypeName,A.getValueSize()),++C.referenceCount,this._addInactiveBinding(C,l,y),o[d]=C}a[d].resultBuffer=C.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(e._cacheIndex===null){const r=(e._localRoot||this._root).uuid,i=e._clip.uuid,s=this._actionsByClip[i];this._bindAction(e,s&&s.knownActions[0]),this._addInactiveAction(e,i,r)}const n=e._propertyBindings;for(let r=0,i=n.length;r!==i;++r){const s=n[r];s.useCount++===0&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const n=e._propertyBindings;for(let r=0,i=n.length;r!==i;++r){const s=n[r];--s.useCount===0&&(s.restoreOriginalState(),this._takeBackBinding(s))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const n=e._cacheIndex;return n!==null&&n=0;--r)e[r].stop();return this}update(e){e*=this.timeScale;const n=this._actions,r=this._nActiveActions,i=this.time+=e,s=Math.sign(e),o=this._accuIndex^=1;for(let c=0;c!==r;++c)n[c]._update(i,e,s,o);const a=this._bindings,l=this._nActiveBindings;for(let c=0;c!==l;++c)a[c].apply(o);return this}setTime(e){this.time=0;for(let n=0;nthis.max.x||e.ythis.max.y)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,n){return n.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,__).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const F_=new ue,p1=new ue;class KR{constructor(e=new ue,n=new ue){this.start=e,this.end=n}set(e,n){return this.start.copy(e),this.end.copy(n),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,n){return this.delta(n).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,n){F_.subVectors(e,this.start),p1.subVectors(this.end,this.start);const r=p1.dot(p1);let s=p1.dot(F_)/r;return n&&(s=Ai(s,0,1)),s}closestPointToPoint(e,n,r){const i=this.closestPointToPointParameter(e,n);return this.delta(r).multiplyScalar(i).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return new this.constructor().copy(this)}}const P_=new ue;class Oj extends ir{constructor(e,n){super(),this.light=e,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,this.type="SpotLightHelper";const r=new Hn,i=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let o=0,a=1,l=32;o1)for(let d=0;d.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{N_.set(e.z,0,-e.x).normalize();const n=Math.acos(e.y);this.quaternion.setFromAxisAngle(N_,n)}}setLength(e,n=e*.2,r=n*.2){this.line.scale.set(1,Math.max(1e-4,e-n),1),this.line.updateMatrix(),this.cone.scale.set(r,n,r),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}}class Zj extends Ol{constructor(e=1){const n=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],r=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],i=new Hn;i.setAttribute("position",new fn(n,3)),i.setAttribute("color",new fn(r,3));const s=new vo({vertexColors:!0,toneMapped:!1});super(i,s),this.type="AxesHelper"}setColors(e,n,r){const i=new Xt,s=this.geometry.attributes.color.array;return i.set(e),i.toArray(s,0),i.toArray(s,3),i.set(n),i.toArray(s,6),i.toArray(s,9),i.set(r),i.toArray(s,12),i.toArray(s,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class kc{constructor(){this.type="ShapePath",this.color=new Xt,this.subPaths=[],this.currentPath=null}moveTo(e,n){return this.currentPath=new th,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,n),this}lineTo(e,n){return this.currentPath.lineTo(e,n),this}quadraticCurveTo(e,n,r,i){return this.currentPath.quadraticCurveTo(e,n,r,i),this}bezierCurveTo(e,n,r,i,s,o){return this.currentPath.bezierCurveTo(e,n,r,i,s,o),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function n(I){const w=[];for(let B=0,_=I.length;B<_;B++){const F=I[B],P=new nh;P.curves=F.curves,w.push(P)}return w}function r(I,w){const B=w.length;let _=!1;for(let F=B-1,P=0;PNumber.EPSILON){if(L<0&&(N=w[P],q=-q,U=w[F],L=-L),I.yU.y)continue;if(I.y===N.y){if(I.x===N.x)return!0}else{const z=L*(I.x-N.x)-q*(I.y-N.y);if(z===0)return!0;if(z<0)continue;_=!_}}else{if(I.y!==N.y)continue;if(U.x<=I.x&&I.x<=N.x||N.x<=I.x&&I.x<=U.x)return!0}}return _}const i=nl.isClockWise,s=this.subPaths;if(s.length===0)return[];let o,a,l;const c=[];if(s.length===1)return a=s[0],l=new nh,l.curves=a.curves,c.push(l),c;let p=!i(s[0].getPoints());p=e?!p:p;const d=[],A=[];let y=[],C=0,x;A[C]=void 0,y[C]=[];for(let I=0,w=s.length;I1){let I=!1,w=0;for(let B=0,_=A.length;B<_;B++)d[B]=[];for(let B=0,_=A.length;B<_;B++){const F=y[B];for(let P=0;P0&&I===!1&&(y=d)}let D;for(let I=0,w=A.length;I=0&&(_[Z]=null,B[Z].disconnect(Y))}for(let oe=0;oe=_.length){_.push(Y),Z=ze;break}else if(_[ze]===null){_[ze]=Y,Z=ze;break}if(Z===-1)break}const Le=B[Z];Le&&Le.connect(Y)}}const De=new ue,Ge=new ue;function ie(K,oe,Y){De.setFromMatrixPosition(oe.matrixWorld),Ge.setFromMatrixPosition(Y.matrixWorld);const Z=De.distanceTo(Ge),Le=oe.projectionMatrix.elements,ze=Y.projectionMatrix.elements,Fe=Le[14]/(Le[10]-1),je=Le[14]/(Le[10]+1),le=(Le[9]+1)/Le[5],Ne=(Le[9]-1)/Le[5],be=(Le[8]-1)/Le[0],Ve=(ze[8]+1)/ze[0],He=Fe*be,lt=Fe*Ve,Se=Z/(-be+Ve),W=Se*-be;oe.matrixWorld.decompose(K.position,K.quaternion,K.scale),K.translateX(W),K.translateZ(Se),K.matrixWorld.compose(K.position,K.quaternion,K.scale),K.matrixWorldInverse.copy(K.matrixWorld).invert();const $=Fe+Se,Oe=je+Se,ft=He-W,pt=lt+(Z-W),ut=le*je/Oe*$,Ut=Ne*je/Oe*$;K.projectionMatrix.makePerspective(ft,pt,ut,Ut,$,Oe),K.projectionMatrixInverse.copy(K.projectionMatrix).invert()}function ge(K,oe){oe===null?K.matrixWorld.copy(K.matrix):K.matrixWorld.multiplyMatrices(oe.matrixWorld,K.matrix),K.matrixWorldInverse.copy(K.matrixWorld).invert()}this.updateCamera=function(K){if(i===null)return;x.texture!==null&&(K.near=x.depthNear,K.far=x.depthFar),L.near=U.near=N.near=K.near,L.far=U.far=N.far=K.far,(z!==L.near||he!==L.far)&&(i.updateRenderState({depthNear:L.near,depthFar:L.far}),z=L.near,he=L.far,N.near=z,N.far=he,U.near=z,U.far=he,N.updateProjectionMatrix(),U.updateProjectionMatrix(),K.updateProjectionMatrix());const oe=K.parent,Y=L.cameras;ge(L,oe);for(let Z=0;Z0&&(D.alphaTest.value=I.alphaTest);const w=e.get(I).envMap;if(w&&(D.envMap.value=w,D.flipEnvMap.value=w.isCubeTexture&&w.isRenderTargetTexture===!1?-1:1,D.reflectivity.value=I.reflectivity,D.ior.value=I.ior,D.refractionRatio.value=I.refractionRatio),I.lightMap){D.lightMap.value=I.lightMap;const B=t._useLegacyLights===!0?Math.PI:1;D.lightMapIntensity.value=I.lightMapIntensity*B,n(I.lightMap,D.lightMapTransform)}I.aoMap&&(D.aoMap.value=I.aoMap,D.aoMapIntensity.value=I.aoMapIntensity,n(I.aoMap,D.aoMapTransform))}function o(D,I){D.diffuse.value.copy(I.color),D.opacity.value=I.opacity,I.map&&(D.map.value=I.map,n(I.map,D.mapTransform))}function a(D,I){D.dashSize.value=I.dashSize,D.totalSize.value=I.dashSize+I.gapSize,D.scale.value=I.scale}function l(D,I,w,B){D.diffuse.value.copy(I.color),D.opacity.value=I.opacity,D.size.value=I.size*w,D.scale.value=B*.5,I.map&&(D.map.value=I.map,n(I.map,D.uvTransform)),I.alphaMap&&(D.alphaMap.value=I.alphaMap,n(I.alphaMap,D.alphaMapTransform)),I.alphaTest>0&&(D.alphaTest.value=I.alphaTest)}function c(D,I){D.diffuse.value.copy(I.color),D.opacity.value=I.opacity,D.rotation.value=I.rotation,I.map&&(D.map.value=I.map,n(I.map,D.mapTransform)),I.alphaMap&&(D.alphaMap.value=I.alphaMap,n(I.alphaMap,D.alphaMapTransform)),I.alphaTest>0&&(D.alphaTest.value=I.alphaTest)}function p(D,I){D.specular.value.copy(I.specular),D.shininess.value=Math.max(I.shininess,1e-4)}function d(D,I){I.gradientMap&&(D.gradientMap.value=I.gradientMap)}function A(D,I){D.metalness.value=I.metalness,I.metalnessMap&&(D.metalnessMap.value=I.metalnessMap,n(I.metalnessMap,D.metalnessMapTransform)),D.roughness.value=I.roughness,I.roughnessMap&&(D.roughnessMap.value=I.roughnessMap,n(I.roughnessMap,D.roughnessMapTransform)),e.get(I).envMap&&(D.envMapIntensity.value=I.envMapIntensity)}function y(D,I,w){D.ior.value=I.ior,I.sheen>0&&(D.sheenColor.value.copy(I.sheenColor).multiplyScalar(I.sheen),D.sheenRoughness.value=I.sheenRoughness,I.sheenColorMap&&(D.sheenColorMap.value=I.sheenColorMap,n(I.sheenColorMap,D.sheenColorMapTransform)),I.sheenRoughnessMap&&(D.sheenRoughnessMap.value=I.sheenRoughnessMap,n(I.sheenRoughnessMap,D.sheenRoughnessMapTransform))),I.clearcoat>0&&(D.clearcoat.value=I.clearcoat,D.clearcoatRoughness.value=I.clearcoatRoughness,I.clearcoatMap&&(D.clearcoatMap.value=I.clearcoatMap,n(I.clearcoatMap,D.clearcoatMapTransform)),I.clearcoatRoughnessMap&&(D.clearcoatRoughnessMap.value=I.clearcoatRoughnessMap,n(I.clearcoatRoughnessMap,D.clearcoatRoughnessMapTransform)),I.clearcoatNormalMap&&(D.clearcoatNormalMap.value=I.clearcoatNormalMap,n(I.clearcoatNormalMap,D.clearcoatNormalMapTransform),D.clearcoatNormalScale.value.copy(I.clearcoatNormalScale),I.side===yo&&D.clearcoatNormalScale.value.negate())),I.iridescence>0&&(D.iridescence.value=I.iridescence,D.iridescenceIOR.value=I.iridescenceIOR,D.iridescenceThicknessMinimum.value=I.iridescenceThicknessRange[0],D.iridescenceThicknessMaximum.value=I.iridescenceThicknessRange[1],I.iridescenceMap&&(D.iridescenceMap.value=I.iridescenceMap,n(I.iridescenceMap,D.iridescenceMapTransform)),I.iridescenceThicknessMap&&(D.iridescenceThicknessMap.value=I.iridescenceThicknessMap,n(I.iridescenceThicknessMap,D.iridescenceThicknessMapTransform))),I.transmission>0&&(D.transmission.value=I.transmission,D.transmissionSamplerMap.value=w.texture,D.transmissionSamplerSize.value.set(w.width,w.height),I.transmissionMap&&(D.transmissionMap.value=I.transmissionMap,n(I.transmissionMap,D.transmissionMapTransform)),D.thickness.value=I.thickness,I.thicknessMap&&(D.thicknessMap.value=I.thicknessMap,n(I.thicknessMap,D.thicknessMapTransform)),D.attenuationDistance.value=I.attenuationDistance,D.attenuationColor.value.copy(I.attenuationColor)),I.anisotropy>0&&(D.anisotropyVector.value.set(I.anisotropy*Math.cos(I.anisotropyRotation),I.anisotropy*Math.sin(I.anisotropyRotation)),I.anisotropyMap&&(D.anisotropyMap.value=I.anisotropyMap,n(I.anisotropyMap,D.anisotropyMapTransform))),D.specularIntensity.value=I.specularIntensity,D.specularColor.value.copy(I.specularColor),I.specularColorMap&&(D.specularColorMap.value=I.specularColorMap,n(I.specularColorMap,D.specularColorMapTransform)),I.specularIntensityMap&&(D.specularIntensityMap.value=I.specularIntensityMap,n(I.specularIntensityMap,D.specularIntensityMapTransform))}function C(D,I){I.matcap&&(D.matcap.value=I.matcap)}function x(D,I){const w=e.get(I).light;D.referencePosition.value.setFromMatrixPosition(w.matrixWorld),D.nearDistance.value=w.shadow.camera.near,D.farDistance.value=w.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function pW(t,e,n,r){let i={},s={},o=[];const a=n.isWebGL2?t.getParameter(t.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(w,B){const _=B.program;r.uniformBlockBinding(w,_)}function c(w,B){let _=i[w.id];_===void 0&&(C(w),_=p(w),i[w.id]=_,w.addEventListener("dispose",D));const F=B.program;r.updateUBOMapping(w,F);const P=e.render.frame;s[w.id]!==P&&(A(w),s[w.id]=P)}function p(w){const B=d();w.__bindingPointIndex=B;const _=t.createBuffer(),F=w.__size,P=w.usage;return t.bindBuffer(t.UNIFORM_BUFFER,_),t.bufferData(t.UNIFORM_BUFFER,F,P),t.bindBuffer(t.UNIFORM_BUFFER,null),t.bindBufferBase(t.UNIFORM_BUFFER,B,_),_}function d(){for(let w=0;w0&&(_+=F-P),w.__size=_,w.__cache={},this}function x(w){const B={boundary:0,storage:0};return typeof w=="number"||typeof w=="boolean"?(B.boundary=4,B.storage=4):w.isVector2?(B.boundary=8,B.storage=8):w.isVector3||w.isColor?(B.boundary=16,B.storage=12):w.isVector4?(B.boundary=16,B.storage=16):w.isMatrix3?(B.boundary=48,B.storage=48):w.isMatrix4?(B.boundary=64,B.storage=64):w.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",w),B}function D(w){const B=w.target;B.removeEventListener("dispose",D);const _=o.indexOf(B.__bindingPointIndex);o.splice(_,1),t.deleteBuffer(i[B.id]),delete i[B.id],delete s[B.id]}function I(){for(const w in i)t.deleteBuffer(i[w]);o=[],i={},s={}}return{bind:l,update:c,dispose:I}}class Fw{constructor(e={}){const{canvas:n=Uk(),context:r=null,depth:i=!0,stencil:s=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:p="default",failIfMajorPerformanceCaveat:d=!1}=e;this.isWebGLRenderer=!0;let A;r!==null?A=r.getContextAttributes().alpha:A=o;const y=new Uint32Array(4),C=new Int32Array(4);let x=null,D=null;const I=[],w=[];this.domElement=n,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=ri,this._useLegacyLights=!1,this.toneMapping=kl,this.toneMappingExposure=1;const B=this;let _=!1,F=0,P=0,N=null,U=-1,q=null;const L=new br,z=new br;let he=null;const Ie=new Xt(0);let re=0,_e=n.width,De=n.height,Ge=1,ie=null,ge=null;const ve=new br(0,0,_e,De),Ae=new br(0,0,_e,De);let Ue=!1;const we=new f0;let K=!1,oe=!1,Y=null;const Z=new En,Le=new st,ze=new ue,Fe={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function je(){return N===null?Ge:1}let le=r;function Ne(pe,qe){for(let se=0;se{function $e(){if(me.forEach(function(Ze){Se.get(Ze).currentProgram.isReady()&&me.delete(Ze)}),me.size===0){Me(pe);return}setTimeout($e,10)}be.get("KHR_parallel_shader_compile")!==null?$e():setTimeout($e,10)})};let or=null;function pr(pe){or&&or(pe)}function ai(){dr.stop()}function ar(){dr.start()}const dr=new Jk;dr.setAnimationLoop(pr),typeof self<"u"&&dr.setContext(self),this.setAnimationLoop=function(pe){or=pe,Pn.setAnimationLoop(pe),pe===null?dr.stop():dr.start()},Pn.addEventListener("sessionstart",ai),Pn.addEventListener("sessionend",ar),this.render=function(pe,qe){if(qe!==void 0&&qe.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(_===!0)return;pe.matrixWorldAutoUpdate===!0&&pe.updateMatrixWorld(),qe.parent===null&&qe.matrixWorldAutoUpdate===!0&&qe.updateMatrixWorld(),Pn.enabled===!0&&Pn.isPresenting===!0&&(Pn.cameraAutoUpdate===!0&&Pn.updateCamera(qe),qe=Pn.getCamera()),pe.isScene===!0&&pe.onBeforeRender(B,pe,qe,N),D=Ft.get(pe,w.length),D.init(),w.push(D),Z.multiplyMatrices(qe.projectionMatrix,qe.matrixWorldInverse),we.setFromProjectionMatrix(Z),oe=this.localClippingEnabled,K=Pt.init(this.clippingPlanes,oe),x=Ot.get(pe,I.length),x.init(),I.push(x),gi(pe,qe,0,B.sortObjects),x.finish(),B.sortObjects===!0&&x.sort(ie,ge),this.info.render.frame++,K===!0&&Pt.beginShadows();const se=D.state.shadowsArray;if(mt.render(se,pe,qe),K===!0&&Pt.endShadows(),this.info.autoReset===!0&&this.info.reset(),(Pn.enabled===!1||Pn.isPresenting===!1||Pn.hasDepthSensing()===!1)&&Rn.render(x,pe),D.setupLights(B._useLegacyLights),qe.isArrayCamera){const me=qe.cameras;for(let Me=0,$e=me.length;Me<$e;Me++){const Ze=me[Me];ps(x,pe,Ze,Ze.viewport)}}else ps(x,pe,qe);N!==null&&(W.updateMultisampleRenderTarget(N),W.updateRenderTargetMipmap(N)),pe.isScene===!0&&pe.onAfterRender(B,pe,qe),xn.resetDefaultState(),U=-1,q=null,w.pop(),w.length>0?D=w[w.length-1]:D=null,I.pop(),I.length>0?x=I[I.length-1]:x=null};function gi(pe,qe,se,me){if(pe.visible===!1)return;if(pe.layers.test(qe.layers)){if(pe.isGroup)se=pe.renderOrder;else if(pe.isLOD)pe.autoUpdate===!0&&pe.update(qe);else if(pe.isLight)D.pushLight(pe),pe.castShadow&&D.pushShadow(pe);else if(pe.isSprite){if(!pe.frustumCulled||we.intersectsSprite(pe)){me&&ze.setFromMatrixPosition(pe.matrixWorld).applyMatrix4(Z);const Ze=ut.update(pe),It=pe.material;It.visible&&x.push(pe,Ze,It,se,ze.z,null)}}else if((pe.isMesh||pe.isLine||pe.isPoints)&&(!pe.frustumCulled||we.intersectsObject(pe))){const Ze=ut.update(pe),It=pe.material;if(me&&(pe.boundingSphere!==void 0?(pe.boundingSphere===null&&pe.computeBoundingSphere(),ze.copy(pe.boundingSphere.center)):(Ze.boundingSphere===null&&Ze.computeBoundingSphere(),ze.copy(Ze.boundingSphere.center)),ze.applyMatrix4(pe.matrixWorld).applyMatrix4(Z)),Array.isArray(It)){const At=Ze.groups;for(let Kt=0,en=At.length;Kt0&&Fs(Me,$e,qe,se),me&&He.viewport(L.copy(me)),Me.length>0&&Io(Me,qe,se),$e.length>0&&Io($e,qe,se),Ze.length>0&&Io(Ze,qe,se),He.buffers.depth.setTest(!0),He.buffers.depth.setMask(!0),He.buffers.color.setMask(!0),He.setPolygonOffset(!1)}function Fs(pe,qe,se,me){if((se.isScene===!0?se.overrideMaterial:null)!==null)return;const $e=Ve.isWebGL2;Y===null&&(Y=new wa(1,1,{generateMipmaps:!0,type:be.has("EXT_color_buffer_half_float")?Jp:Rl,minFilter:Ml,samples:$e?4:0})),B.getDrawingBufferSize(Le),$e?Y.setSize(Le.x,Le.y):Y.setSize(kE(Le.x),kE(Le.y));const Ze=B.getRenderTarget();B.setRenderTarget(Y),B.getClearColor(Ie),re=B.getClearAlpha(),re<1&&B.setClearColor(16777215,.5),B.clear();const It=B.toneMapping;B.toneMapping=kl,Io(pe,se,me),W.updateMultisampleRenderTarget(Y),W.updateRenderTargetMipmap(Y);let At=!1;for(let Kt=0,en=qe.length;Kt0),Cn=!!se.morphAttributes.position,Zn=!!se.morphAttributes.normal,Ir=!!se.morphAttributes.color;let fr=kl;me.toneMapped&&(N===null||N.isXRRenderTarget===!0)&&(fr=B.toneMapping);const xr=se.morphAttributes.position||se.morphAttributes.normal||se.morphAttributes.color,hn=xr!==void 0?xr.length:0,zt=Se.get(me),Ln=D.state.lights;if(K===!0&&(oe===!0||pe!==q)){const rt=pe===q&&me.id===U;Pt.setState(me,pe,rt)}let ee=!1;me.version===zt.__version?(zt.needsLights&&zt.lightsStateVersion!==Ln.state.version||zt.outputColorSpace!==It||Me.isBatchedMesh&&zt.batching===!1||!Me.isBatchedMesh&&zt.batching===!0||Me.isInstancedMesh&&zt.instancing===!1||!Me.isInstancedMesh&&zt.instancing===!0||Me.isSkinnedMesh&&zt.skinning===!1||!Me.isSkinnedMesh&&zt.skinning===!0||Me.isInstancedMesh&&zt.instancingColor===!0&&Me.instanceColor===null||Me.isInstancedMesh&&zt.instancingColor===!1&&Me.instanceColor!==null||zt.envMap!==At||me.fog===!0&&zt.fog!==$e||zt.numClippingPlanes!==void 0&&(zt.numClippingPlanes!==Pt.numPlanes||zt.numIntersection!==Pt.numIntersection)||zt.vertexAlphas!==Kt||zt.vertexTangents!==en||zt.morphTargets!==Cn||zt.morphNormals!==Zn||zt.morphColors!==Ir||zt.toneMapping!==fr||Ve.isWebGL2===!0&&zt.morphTargetsCount!==hn)&&(ee=!0):(ee=!0,zt.__version=me.version);let H=zt.currentProgram;ee===!0&&(H=fs(me,qe,Me));let ye=!1,Pe=!1,We=!1;const et=H.getUniforms(),yt=zt.uniforms;if(He.useProgram(H.program)&&(ye=!0,Pe=!0,We=!0),me.id!==U&&(U=me.id,Pe=!0),ye||q!==pe){et.setValue(le,"projectionMatrix",pe.projectionMatrix),et.setValue(le,"viewMatrix",pe.matrixWorldInverse);const rt=et.map.cameraPosition;rt!==void 0&&rt.setValue(le,ze.setFromMatrixPosition(pe.matrixWorld)),Ve.logarithmicDepthBuffer&&et.setValue(le,"logDepthBufFC",2/(Math.log(pe.far+1)/Math.LN2)),(me.isMeshPhongMaterial||me.isMeshToonMaterial||me.isMeshLambertMaterial||me.isMeshBasicMaterial||me.isMeshStandardMaterial||me.isShaderMaterial)&&et.setValue(le,"isOrthographic",pe.isOrthographicCamera===!0),q!==pe&&(q=pe,Pe=!0,We=!0)}if(Me.isSkinnedMesh){et.setOptional(le,Me,"bindMatrix"),et.setOptional(le,Me,"bindMatrixInverse");const rt=Me.skeleton;rt&&(Ve.floatVertexTextures?(rt.boneTexture===null&&rt.computeBoneTexture(),et.setValue(le,"boneTexture",rt.boneTexture,W)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}Me.isBatchedMesh&&(et.setOptional(le,Me,"batchingTexture"),et.setValue(le,"batchingTexture",Me._matricesTexture,W));const ct=se.morphAttributes;if((ct.position!==void 0||ct.normal!==void 0||ct.color!==void 0&&Ve.isWebGL2===!0)&&Sn.update(Me,se,H),(Pe||zt.receiveShadow!==Me.receiveShadow)&&(zt.receiveShadow=Me.receiveShadow,et.setValue(le,"receiveShadow",Me.receiveShadow)),me.isMeshGouraudMaterial&&me.envMap!==null&&(yt.envMap.value=At,yt.flipEnvMap.value=At.isCubeTexture&&At.isRenderTargetTexture===!1?-1:1),Pe&&(et.setValue(le,"toneMappingExposure",B.toneMappingExposure),zt.needsLights&&Ki(yt,We),$e&&me.fog===!0&&_t.refreshFogUniforms(yt,$e),_t.refreshMaterialUniforms(yt,me,Ge,De,Y),K1.upload(le,Ma(zt),yt,W)),me.isShaderMaterial&&me.uniformsNeedUpdate===!0&&(K1.upload(le,Ma(zt),yt,W),me.uniformsNeedUpdate=!1),me.isSpriteMaterial&&et.setValue(le,"center",Me.center),et.setValue(le,"modelViewMatrix",Me.modelViewMatrix),et.setValue(le,"normalMatrix",Me.normalMatrix),et.setValue(le,"modelMatrix",Me.matrixWorld),me.isShaderMaterial||me.isRawShaderMaterial){const rt=me.uniformsGroups;for(let Xe=0,Qt=rt.length;Xe0&&W.useMultisampledRTT(pe)===!1?Me=Se.get(pe).__webglMultisampledFramebuffer:Array.isArray(en)?Me=en[se]:Me=en,L.copy(pe.viewport),z.copy(pe.scissor),he=pe.scissorTest}else L.copy(ve).multiplyScalar(Ge).floor(),z.copy(Ae).multiplyScalar(Ge).floor(),he=Ue;if(He.bindFramebuffer(le.FRAMEBUFFER,Me)&&Ve.drawBuffers&&me&&He.drawBuffers(pe,Me),He.viewport(L),He.scissor(z),He.setScissorTest(he),$e){const At=Se.get(pe.texture);le.framebufferTexture2D(le.FRAMEBUFFER,le.COLOR_ATTACHMENT0,le.TEXTURE_CUBE_MAP_POSITIVE_X+qe,At.__webglTexture,se)}else if(Ze){const At=Se.get(pe.texture),Kt=qe||0;le.framebufferTextureLayer(le.FRAMEBUFFER,le.COLOR_ATTACHMENT0,At.__webglTexture,se||0,Kt)}U=-1},this.readRenderTargetPixels=function(pe,qe,se,me,Me,$e,Ze){if(!(pe&&pe.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let It=Se.get(pe).__webglFramebuffer;if(pe.isWebGLCubeRenderTarget&&Ze!==void 0&&(It=It[Ze]),It){He.bindFramebuffer(le.FRAMEBUFFER,It);try{const At=pe.texture,Kt=At.format,en=At.type;if(Kt!==Ao&&qt.convert(Kt)!==le.getParameter(le.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const Cn=en===Jp&&(be.has("EXT_color_buffer_half_float")||Ve.isWebGL2&&be.has("EXT_color_buffer_float"));if(en!==Rl&&qt.convert(en)!==le.getParameter(le.IMPLEMENTATION_COLOR_READ_TYPE)&&!(en===Ea&&(Ve.isWebGL2||be.has("OES_texture_float")||be.has("WEBGL_color_buffer_float")))&&!Cn){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}qe>=0&&qe<=pe.width-me&&se>=0&&se<=pe.height-Me&&le.readPixels(qe,se,me,Me,qt.convert(Kt),qt.convert(en),$e)}finally{const At=N!==null?Se.get(N).__webglFramebuffer:null;He.bindFramebuffer(le.FRAMEBUFFER,At)}}},this.copyFramebufferToTexture=function(pe,qe,se=0){const me=Math.pow(2,-se),Me=Math.floor(qe.image.width*me),$e=Math.floor(qe.image.height*me);W.setTexture2D(qe,0),le.copyTexSubImage2D(le.TEXTURE_2D,se,0,0,pe.x,pe.y,Me,$e),He.unbindTexture()},this.copyTextureToTexture=function(pe,qe,se,me=0){const Me=qe.image.width,$e=qe.image.height,Ze=qt.convert(se.format),It=qt.convert(se.type);W.setTexture2D(se,0),le.pixelStorei(le.UNPACK_FLIP_Y_WEBGL,se.flipY),le.pixelStorei(le.UNPACK_PREMULTIPLY_ALPHA_WEBGL,se.premultiplyAlpha),le.pixelStorei(le.UNPACK_ALIGNMENT,se.unpackAlignment),qe.isDataTexture?le.texSubImage2D(le.TEXTURE_2D,me,pe.x,pe.y,Me,$e,Ze,It,qe.image.data):qe.isCompressedTexture?le.compressedTexSubImage2D(le.TEXTURE_2D,me,pe.x,pe.y,qe.mipmaps[0].width,qe.mipmaps[0].height,Ze,qe.mipmaps[0].data):le.texSubImage2D(le.TEXTURE_2D,me,pe.x,pe.y,Ze,It,qe.image),me===0&&se.generateMipmaps&&le.generateMipmap(le.TEXTURE_2D),He.unbindTexture()},this.copyTextureToTexture3D=function(pe,qe,se,me,Me=0){if(B.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const $e=pe.max.x-pe.min.x+1,Ze=pe.max.y-pe.min.y+1,It=pe.max.z-pe.min.z+1,At=qt.convert(me.format),Kt=qt.convert(me.type);let en;if(me.isData3DTexture)W.setTexture3D(me,0),en=le.TEXTURE_3D;else if(me.isDataArrayTexture||me.isCompressedArrayTexture)W.setTexture2DArray(me,0),en=le.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}le.pixelStorei(le.UNPACK_FLIP_Y_WEBGL,me.flipY),le.pixelStorei(le.UNPACK_PREMULTIPLY_ALPHA_WEBGL,me.premultiplyAlpha),le.pixelStorei(le.UNPACK_ALIGNMENT,me.unpackAlignment);const Cn=le.getParameter(le.UNPACK_ROW_LENGTH),Zn=le.getParameter(le.UNPACK_IMAGE_HEIGHT),Ir=le.getParameter(le.UNPACK_SKIP_PIXELS),fr=le.getParameter(le.UNPACK_SKIP_ROWS),xr=le.getParameter(le.UNPACK_SKIP_IMAGES),hn=se.isCompressedTexture?se.mipmaps[Me]:se.image;le.pixelStorei(le.UNPACK_ROW_LENGTH,hn.width),le.pixelStorei(le.UNPACK_IMAGE_HEIGHT,hn.height),le.pixelStorei(le.UNPACK_SKIP_PIXELS,pe.min.x),le.pixelStorei(le.UNPACK_SKIP_ROWS,pe.min.y),le.pixelStorei(le.UNPACK_SKIP_IMAGES,pe.min.z),se.isDataTexture||se.isData3DTexture?le.texSubImage3D(en,Me,qe.x,qe.y,qe.z,$e,Ze,It,At,Kt,hn.data):se.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),le.compressedTexSubImage3D(en,Me,qe.x,qe.y,qe.z,$e,Ze,It,At,hn.data)):le.texSubImage3D(en,Me,qe.x,qe.y,qe.z,$e,Ze,It,At,Kt,hn),le.pixelStorei(le.UNPACK_ROW_LENGTH,Cn),le.pixelStorei(le.UNPACK_IMAGE_HEIGHT,Zn),le.pixelStorei(le.UNPACK_SKIP_PIXELS,Ir),le.pixelStorei(le.UNPACK_SKIP_ROWS,fr),le.pixelStorei(le.UNPACK_SKIP_IMAGES,xr),Me===0&&me.generateMipmaps&&le.generateMipmap(en),He.unbindTexture()},this.initTexture=function(pe){pe.isCubeTexture?W.setTextureCube(pe,0):pe.isData3DTexture?W.setTexture3D(pe,0):pe.isDataArrayTexture||pe.isCompressedArrayTexture?W.setTexture2DArray(pe,0):W.setTexture2D(pe,0),He.unbindTexture()},this.resetState=function(){F=0,P=0,N=null,He.reset(),xn.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return _l}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const n=this.getContext();n.drawingBufferColorSpace=e===pC?"display-p3":"srgb",n.unpackColorSpace=Br.workingColorSpace===h0?"display-p3":"srgb"}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===ri?eh:xw}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===eh?ri:Ll}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class tR extends Fw{}tR.prototype.isWebGL1Renderer=!0;class mC{constructor(e,n=25e-5){this.isFogExp2=!0,this.name="",this.color=new Xt(e),this.density=n}clone(){return new mC(this.color,this.density)}toJSON(){return{type:"FogExp2",name:this.name,color:this.color.getHex(),density:this.density}}}class yC{constructor(e,n=1,r=1e3){this.isFog=!0,this.name="",this.color=new Xt(e),this.near=n,this.far=r}clone(){return new yC(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class Ym extends ir{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,n){return super.copy(e,n),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(n.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(n.object.backgroundIntensity=this.backgroundIntensity),n}}class EC{constructor(e,n){this.isInterleavedBuffer=!0,this.array=e,this.stride=n,this.count=e!==void 0?e.length/n:0,this.usage=jm,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=na()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return Rp("THREE.InterleavedBuffer: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,n){this.updateRanges.push({start:e,count:n})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,n,r){e*=this.stride,r*=n.stride;for(let i=0,s=this.stride;ie.far||n.push({distance:l,point:Fg.clone(),uv:Zo.getInterpolation(Fg,Yy,Qg,Xy,YM,Jx,XM,new st),face:null,object:this})}copy(e,n){return super.copy(e,n),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}}function qy(t,e,n,r,i,s){gf.subVectors(t,n).addScalar(.5).multiply(r),i!==void 0?(Pg.x=s*gf.x-i*gf.y,Pg.y=i*gf.x+s*gf.y):Pg.copy(gf),t.copy(e),t.x+=Pg.x,t.y+=Pg.y,t.applyMatrix4(nR)}const Ky=new ue,qM=new ue;class iR extends ir{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const n=e.levels;for(let r=0,i=n.length;r0){let r,i;for(r=1,i=n.length;r0){Ky.setFromMatrixPosition(this.matrixWorld);const i=e.ray.origin.distanceTo(Ky);this.getObjectForDistance(i).raycast(e,n)}}update(e){const n=this.levels;if(n.length>1){Ky.setFromMatrixPosition(e.matrixWorld),qM.setFromMatrixPosition(this.matrixWorld);const r=Ky.distanceTo(qM)/e.zoom;n[0].object.visible=!0;let i,s;for(i=1,s=n.length;i=o)n[i-1].object.visible=!1,n[i].object.visible=!0;else break}for(this._currentLevel=i-1;i=r.length&&r.push({start:-1,count:-1,z:-1});const s=r[this.index];i.push(s),this.index++,s.start=e.start,s.count=e.count,s.z=n}reset(){this.list.length=0,this.index=0}}const yf="batchId",Pc=new En,s_=new En,EW=new En,o_=new En,qx=new f0,e1=new ji,lp=new Li,Lg=new ue,Kx=new yW,Ys=new gr,t1=[];function CW(t,e,n=0){const r=e.itemSize;if(t.isInterleavedBufferAttribute||t.array.constructor!==e.array.constructor){const i=t.count;for(let s=0;s65536?new Uint32Array(s):new Uint16Array(s);n.setIndex(new Sr(a,1))}const o=i>65536?new Uint32Array(r):new Uint16Array(r);n.setAttribute(yf,new Sr(o,1)),this._geometryInitialized=!0}}_validateGeometry(e){if(e.getAttribute(yf))throw new Error(`BatchedMesh: Geometry cannot use attribute "${yf}"`);const n=this.geometry;if(!!e.getIndex()!=!!n.getIndex())throw new Error('BatchedMesh: All geometries must consistently have "index".');for(const r in n.attributes){if(r===yf)continue;if(!e.hasAttribute(r))throw new Error(`BatchedMesh: Added geometry missing "${r}". All geometries must have consistent attributes.`);const i=e.getAttribute(r),s=n.getAttribute(r);if(i.itemSize!==s.itemSize||i.normalized!==s.normalized)throw new Error("BatchedMesh: All attributes must have a consistent itemSize and normalized value.")}}setCustomSort(e){return this.customSort=e,this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new ji);const e=this._geometryCount,n=this.boundingBox,r=this._active;n.makeEmpty();for(let i=0;i=this._maxGeometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");const i={vertexStart:-1,vertexCount:-1,indexStart:-1,indexCount:-1};let s=null;const o=this._reservedRanges,a=this._drawRanges,l=this._bounds;this._geometryCount!==0&&(s=o[o.length-1]),n===-1?i.vertexCount=e.getAttribute("position").count:i.vertexCount=n,s===null?i.vertexStart=0:i.vertexStart=s.vertexStart+s.vertexCount;const c=e.getIndex(),p=c!==null;if(p&&(r===-1?i.indexCount=c.count:i.indexCount=r,s===null?i.indexStart=0:i.indexStart=s.indexStart+s.indexCount),i.indexStart!==-1&&i.indexStart+i.indexCount>this._maxIndexCount||i.vertexStart+i.vertexCount>this._maxVertexCount)throw new Error("BatchedMesh: Reserved space request exceeds the maximum buffer size.");const d=this._visibility,A=this._active,y=this._matricesTexture,C=this._matricesTexture.image.data;d.push(!0),A.push(!0);const x=this._geometryCount;this._geometryCount++,EW.toArray(C,x*16),y.needsUpdate=!0,o.push(i),a.push({start:p?i.indexStart:i.vertexStart,count:-1}),l.push({boxInitialized:!1,box:new ji,sphereInitialized:!1,sphere:new Li});const D=this.geometry.getAttribute(yf);for(let I=0;I=this._geometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");this._validateGeometry(n);const r=this.geometry,i=r.getIndex()!==null,s=r.getIndex(),o=n.getIndex(),a=this._reservedRanges[e];if(i&&o.count>a.indexCount||n.attributes.position.count>a.vertexCount)throw new Error("BatchedMesh: Reserved space not large enough for provided geometry.");const l=a.vertexStart,c=a.vertexCount;for(const y in r.attributes){if(y===yf)continue;const C=n.getAttribute(y),x=r.getAttribute(y);CW(C,x,l);const D=C.itemSize;for(let I=C.count,w=c;I=n.length||n[e]===!1?this:(n[e]=!1,this._visibilityChanged=!0,this)}getBoundingBoxAt(e,n){if(this._active[e]===!1)return null;const i=this._bounds[e],s=i.box,o=this.geometry;if(i.boxInitialized===!1){s.makeEmpty();const a=o.index,l=o.attributes.position,c=this._drawRanges[e];for(let p=c.start,d=c.start+c.count;p=o||r[e]===!1?this:(n.toArray(s,e*16),i.needsUpdate=!0,this)}getMatrixAt(e,n){const r=this._active,i=this._matricesTexture.image.data,s=this._geometryCount;return e>=s||r[e]===!1?null:n.fromArray(i,e*16)}setVisibleAt(e,n){const r=this._visibility,i=this._active,s=this._geometryCount;return e>=s||i[e]===!1||r[e]===n?this:(r[e]=n,this._visibilityChanged=!0,this)}getVisibleAt(e){const n=this._visibility,r=this._active,i=this._geometryCount;return e>=i||r[e]===!1?!1:n[e]}raycast(e,n){const r=this._visibility,i=this._active,s=this._drawRanges,o=this._geometryCount,a=this.matrixWorld,l=this.geometry;Ys.material=this.material,Ys.geometry.index=l.index,Ys.geometry.attributes=l.attributes,Ys.geometry.boundingBox===null&&(Ys.geometry.boundingBox=new ji),Ys.geometry.boundingSphere===null&&(Ys.geometry.boundingSphere=new Li);for(let c=0;c({...n})),this._reservedRanges=e._reservedRanges.map(n=>({...n})),this._visibility=e._visibility.slice(),this._active=e._active.slice(),this._bounds=e._bounds.map(n=>({boxInitialized:n.boxInitialized,box:n.box.clone(),sphereInitialized:n.sphereInitialized,sphere:n.sphere.clone()})),this._maxGeometryCount=e._maxGeometryCount,this._maxVertexCount=e._maxVertexCount,this._maxIndexCount=e._maxIndexCount,this._geometryInitialized=e._geometryInitialized,this._geometryCount=e._geometryCount,this._multiDrawCounts=e._multiDrawCounts.slice(),this._multiDrawStarts=e._multiDrawStarts.slice(),this._matricesTexture=e._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.slice(),this}dispose(){return this.geometry.dispose(),this._matricesTexture.dispose(),this._matricesTexture=null,this}onBeforeRender(e,n,r,i,s){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;const o=i.getIndex(),a=o===null?1:o.array.BYTES_PER_ELEMENT,l=this._active,c=this._visibility,p=this._multiDrawStarts,d=this._multiDrawCounts,A=this._drawRanges,y=this.perObjectFrustumCulled;y&&(o_.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse).multiply(this.matrixWorld),qx.setFromProjectionMatrix(o_,e.coordinateSystem));let C=0;if(this.sortObjects){s_.copy(this.matrixWorld).invert(),Lg.setFromMatrixPosition(r.matrixWorld).applyMatrix4(s_);for(let I=0,w=c.length;Il)continue;A.applyMatrix4(this.matrixWorld);const U=e.ray.origin.distanceTo(A);Ue.far||n.push({distance:U,point:d.clone().applyMatrix4(this.matrixWorld),index:B,face:null,faceIndex:null,object:this})}}else{const I=Math.max(0,o.start),w=Math.min(D.count,o.start+o.count);for(let B=I,_=w-1;B<_;B+=y){if(c.fromBufferAttribute(D,B),p.fromBufferAttribute(D,B+1),Zx.distanceSqToSegment(c,p,A,d)>l)continue;A.applyMatrix4(this.matrixWorld);const P=e.ray.origin.distanceTo(A);Pe.far||n.push({distance:P,point:d.clone().applyMatrix4(this.matrixWorld),index:B,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const n=this.geometry.morphAttributes,r=Object.keys(n);if(r.length>0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;si.far)return;s.push({distance:c,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:o})}}class hR extends Zr{constructor(e,n,r,i,s,o,a,l,c){super(e,n,r,i,s,o,a,l,c),this.isVideoTexture=!0,this.minFilter=o!==void 0?o:Wr,this.magFilter=s!==void 0?s:Wr,this.generateMipmaps=!1;const p=this;function d(){p.needsUpdate=!0,e.requestVideoFrameCallback(d)}"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(d)}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;"requestVideoFrameCallback"in e===!1&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class vW extends Zr{constructor(e,n){super({width:e,height:n}),this.isFramebufferTexture=!0,this.magFilter=Ii,this.minFilter=Ii,this.generateMipmaps=!1,this.needsUpdate=!0}}class CC extends Zr{constructor(e,n,r,i,s,o,a,l,c,p,d,A){super(null,o,a,l,c,p,i,s,d,A),this.isCompressedTexture=!0,this.image={width:n,height:r},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class xW extends CC{constructor(e,n,r,i,s,o){super(e,n,r,s,o),this.isCompressedArrayTexture=!0,this.image.depth=i,this.wrapR=Ks}}class IW extends CC{constructor(e,n,r){super(void 0,e[0].width,e[0].height,n,r,bu),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}}class DW extends Zr{constructor(e,n,r,i,s,o,a,l,c){super(e,n,r,i,s,o,a,l,c),this.isCanvasTexture=!0,this.needsUpdate=!0}}class sl{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,n){const r=this.getUtoTmapping(e);return this.getPoint(r,n)}getPoints(e=5){const n=[];for(let r=0;r<=e;r++)n.push(this.getPoint(r/e));return n}getSpacedPoints(e=5){const n=[];for(let r=0;r<=e;r++)n.push(this.getPointAt(r/e));return n}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const n=[];let r,i=this.getPoint(0),s=0;n.push(0);for(let o=1;o<=e;o++)r=this.getPoint(o/e),s+=r.distanceTo(i),n.push(s),i=r;return this.cacheArcLengths=n,n}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,n){const r=this.getLengths();let i=0;const s=r.length;let o;n?o=n:o=e*r[s-1];let a=0,l=s-1,c;for(;a<=l;)if(i=Math.floor(a+(l-a)/2),c=r[i]-o,c<0)a=i+1;else if(c>0)l=i-1;else{l=i;break}if(i=l,r[i]===o)return i/(s-1);const p=r[i],A=r[i+1]-p,y=(o-p)/A;return(i+y)/(s-1)}getTangent(e,n){let i=e-1e-4,s=e+1e-4;i<0&&(i=0),s>1&&(s=1);const o=this.getPoint(i),a=this.getPoint(s),l=n||(o.isVector2?new st:new ue);return l.copy(a).sub(o).normalize(),l}getTangentAt(e,n){const r=this.getUtoTmapping(e);return this.getTangent(r,n)}computeFrenetFrames(e,n){const r=new ue,i=[],s=[],o=[],a=new ue,l=new En;for(let y=0;y<=e;y++){const C=y/e;i[y]=this.getTangentAt(C,new ue)}s[0]=new ue,o[0]=new ue;let c=Number.MAX_VALUE;const p=Math.abs(i[0].x),d=Math.abs(i[0].y),A=Math.abs(i[0].z);p<=c&&(c=p,r.set(1,0,0)),d<=c&&(c=d,r.set(0,1,0)),A<=c&&r.set(0,0,1),a.crossVectors(i[0],r).normalize(),s[0].crossVectors(i[0],a),o[0].crossVectors(i[0],s[0]);for(let y=1;y<=e;y++){if(s[y]=s[y-1].clone(),o[y]=o[y-1].clone(),a.crossVectors(i[y-1],i[y]),a.length()>Number.EPSILON){a.normalize();const C=Math.acos(Ai(i[y-1].dot(i[y]),-1,1));s[y].applyMatrix4(l.makeRotationAxis(a,C))}o[y].crossVectors(i[y],s[y])}if(n===!0){let y=Math.acos(Ai(s[0].dot(s[e]),-1,1));y/=e,i[0].dot(a.crossVectors(s[0],s[e]))>0&&(y=-y);for(let C=1;C<=e;C++)s[C].applyMatrix4(l.makeRotationAxis(i[C],y*C)),o[C].crossVectors(i[C],s[C])}return{tangents:i,normals:s,binormals:o}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class vC extends sl{constructor(e=0,n=0,r=1,i=1,s=0,o=Math.PI*2,a=!1,l=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=n,this.xRadius=r,this.yRadius=i,this.aStartAngle=s,this.aEndAngle=o,this.aClockwise=a,this.aRotation=l}getPoint(e,n){const r=n||new st,i=Math.PI*2;let s=this.aEndAngle-this.aStartAngle;const o=Math.abs(s)i;)s-=i;s0?0:(Math.floor(Math.abs(a)/s)+1)*s:l===0&&a===s-1&&(a=s-2,l=1);let c,p;this.closed||a>0?c=i[(a-1)%s]:(s1.subVectors(i[0],i[1]).add(i[0]),c=s1);const d=i[a%s],A=i[(a+1)%s];if(this.closed||a+2i.length-2?i.length-1:o+1],d=i[o>i.length-3?i.length-1:o+2];return r.set(f_(a,l.x,c.x,p.x,d.x),f_(a,l.y,c.y,p.y,d.y)),r}copy(e){super.copy(e),this.points=[];for(let n=0,r=e.points.length;n=r){const o=i[s]-r,a=this.curves[s],l=a.getLength(),c=l===0?0:1-o/l;return a.getPointAt(c,n)}s++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let n=0;for(let r=0,i=this.curves.length;r1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n}copy(e){super.copy(e),this.curves=[];for(let n=0,r=e.curves.length;n0){const d=c.getPoint(0);d.equals(this.currentPoint)||this.lineTo(d.x,d.y)}this.curves.push(c);const p=c.getPoint(1);return this.currentPoint.copy(p),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class A0 extends Hn{constructor(e=[new st(0,-.5),new st(.5,0),new st(0,.5)],n=12,r=0,i=Math.PI*2){super(),this.type="LatheGeometry",this.parameters={points:e,segments:n,phiStart:r,phiLength:i},n=Math.floor(n),i=Ai(i,0,Math.PI*2);const s=[],o=[],a=[],l=[],c=[],p=1/n,d=new ue,A=new st,y=new ue,C=new ue,x=new ue;let D=0,I=0;for(let w=0;w<=e.length-1;w++)switch(w){case 0:D=e[w+1].x-e[w].x,I=e[w+1].y-e[w].y,y.x=I*1,y.y=-D,y.z=I*0,x.copy(y),y.normalize(),l.push(y.x,y.y,y.z);break;case e.length-1:l.push(x.x,x.y,x.z);break;default:D=e[w+1].x-e[w].x,I=e[w+1].y-e[w].y,y.x=I*1,y.y=-D,y.z=I*0,C.copy(y),y.x+=x.x,y.y+=x.y,y.z+=x.z,y.normalize(),l.push(y.x,y.y,y.z),x.copy(C)}for(let w=0;w<=n;w++){const B=r+w*p*i,_=Math.sin(B),F=Math.cos(B);for(let P=0;P<=e.length-1;P++){d.x=e[P].x*_,d.y=e[P].y,d.z=e[P].x*F,o.push(d.x,d.y,d.z),A.x=w/n,A.y=P/(e.length-1),a.push(A.x,A.y);const N=l[3*P+0]*_,U=l[3*P+1],q=l[3*P+0]*F;c.push(N,U,q)}}for(let w=0;w0&&B(!0),n>0&&B(!1)),this.setIndex(p),this.setAttribute("position",new fn(d,3)),this.setAttribute("normal",new fn(A,3)),this.setAttribute("uv",new fn(y,2));function w(){const _=new ue,F=new ue;let P=0;const N=(n-e)/r;for(let U=0;U<=s;U++){const q=[],L=U/s,z=L*(n-e)+e;for(let he=0;he<=i;he++){const Ie=he/i,re=Ie*l+a,_e=Math.sin(re),De=Math.cos(re);F.x=z*_e,F.y=-L*r+D,F.z=z*De,d.push(F.x,F.y,F.z),_.set(_e,N,De).normalize(),A.push(_.x,_.y,_.z),y.push(Ie,1-L),q.push(C++)}x.push(q)}for(let U=0;U.9&&N<.1&&(B<.2&&(o[w+0]+=1),_<.2&&(o[w+2]+=1),F<.2&&(o[w+4]+=1))}}function A(w){s.push(w.x,w.y,w.z)}function y(w,B){const _=w*3;B.x=e[_+0],B.y=e[_+1],B.z=e[_+2]}function C(){const w=new ue,B=new ue,_=new ue,F=new ue,P=new st,N=new st,U=new st;for(let q=0,L=0;q80*n){a=c=t[0],l=p=t[1];for(let C=n;Cc&&(c=d),A>p&&(p=A);y=Math.max(c-a,p-l),y=y!==0?32767/y:0}return Xm(s,o,n,a,l,y,0),o}};function yR(t,e,n,r,i){let s,o;if(i===YW(t,e,n,r)>0)for(s=e;s=e;s-=r)o=A_(s,t[s],t[s+1],o);return o&&wC(o,o.next)&&(Km(o),o=o.next),o}function qp(t,e){if(!t)return t;e||(e=t);let n=t,r;do if(r=!1,!n.steiner&&(wC(n,n.next)||ii(n.prev,n,n.next)===0)){if(Km(n),n=e=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==e);return e}function Xm(t,e,n,r,i,s,o){if(!t)return;!o&&s&&HW(t,r,i,s);let a=t,l,c;for(;t.prev!==t.next;){if(l=t.prev,c=t.next,s?QW(t,r,i,s):PW(t)){e.push(l.i/n|0),e.push(t.i/n|0),e.push(c.i/n|0),Km(t),t=c.next,a=c.next;continue}if(t=c,t===a){o?o===1?(t=kW(qp(t),e,n),Xm(t,e,n,r,i,s,2)):o===2&&RW(t,e,n,r,i,s):Xm(qp(t),e,n,r,i,s,1);break}}}function PW(t){const e=t.prev,n=t,r=t.next;if(ii(e,n,r)>=0)return!1;const i=e.x,s=n.x,o=r.x,a=e.y,l=n.y,c=r.y,p=is?i>o?i:o:s>o?s:o,y=a>l?a>c?a:c:l>c?l:c;let C=r.next;for(;C!==e;){if(C.x>=p&&C.x<=A&&C.y>=d&&C.y<=y&&zf(i,a,s,l,o,c,C.x,C.y)&&ii(C.prev,C,C.next)>=0)return!1;C=C.next}return!0}function QW(t,e,n,r){const i=t.prev,s=t,o=t.next;if(ii(i,s,o)>=0)return!1;const a=i.x,l=s.x,c=o.x,p=i.y,d=s.y,A=o.y,y=al?a>c?a:c:l>c?l:c,D=p>d?p>A?p:A:d>A?d:A,I=NS(y,C,e,n,r),w=NS(x,D,e,n,r);let B=t.prevZ,_=t.nextZ;for(;B&&B.z>=I&&_&&_.z<=w;){if(B.x>=y&&B.x<=x&&B.y>=C&&B.y<=D&&B!==i&&B!==o&&zf(a,p,l,d,c,A,B.x,B.y)&&ii(B.prev,B,B.next)>=0||(B=B.prevZ,_.x>=y&&_.x<=x&&_.y>=C&&_.y<=D&&_!==i&&_!==o&&zf(a,p,l,d,c,A,_.x,_.y)&&ii(_.prev,_,_.next)>=0))return!1;_=_.nextZ}for(;B&&B.z>=I;){if(B.x>=y&&B.x<=x&&B.y>=C&&B.y<=D&&B!==i&&B!==o&&zf(a,p,l,d,c,A,B.x,B.y)&&ii(B.prev,B,B.next)>=0)return!1;B=B.prevZ}for(;_&&_.z<=w;){if(_.x>=y&&_.x<=x&&_.y>=C&&_.y<=D&&_!==i&&_!==o&&zf(a,p,l,d,c,A,_.x,_.y)&&ii(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}function kW(t,e,n){let r=t;do{const i=r.prev,s=r.next.next;!wC(i,s)&&ER(i,r,r.next,s)&&qm(i,s)&&qm(s,i)&&(e.push(i.i/n|0),e.push(r.i/n|0),e.push(s.i/n|0),Km(r),Km(r.next),r=t=s),r=r.next}while(r!==t);return qp(r)}function RW(t,e,n,r,i,s){let o=t;do{let a=o.next.next;for(;a!==o.prev;){if(o.i!==a.i&&jW(o,a)){let l=CR(o,a);o=qp(o,o.next),l=qp(l,l.next),Xm(o,e,n,r,i,s,0),Xm(l,e,n,r,i,s,0);return}a=a.next}o=o.next}while(o!==t)}function LW(t,e,n,r){const i=[];let s,o,a,l,c;for(s=0,o=e.length;s=n.next.y&&n.next.y!==n.y){const A=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(A<=s&&A>r&&(r=A,i=n.x=n.x&&n.x>=l&&s!==n.x&&zf(oi.x||n.x===i.x&&GW(i,n)))&&(i=n,p=d)),n=n.next;while(n!==a);return i}function GW(t,e){return ii(t.prev,t,e.prev)<0&&ii(e.next,t,t.next)<0}function HW(t,e,n,r){let i=t;do i.z===0&&(i.z=NS(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,zW(i)}function zW(t){let e,n,r,i,s,o,a,l,c=1;do{for(n=t,t=null,s=null,o=0;n;){for(o++,r=n,a=0,e=0;e0||l>0&&r;)a!==0&&(l===0||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,l--),s?s.nextZ=i:t=i,i.prevZ=s,s=i;n=r}s.nextZ=null,c*=2}while(o>1);return t}function NS(t,e,n,r,i){return t=(t-n)*i|0,e=(e-r)*i|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function WW(t){let e=t,n=t;do(e.x=(t-o)*(s-a)&&(t-o)*(r-a)>=(n-o)*(e-a)&&(n-o)*(s-a)>=(i-o)*(r-a)}function jW(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!VW(t,e)&&(qm(t,e)&&qm(e,t)&&JW(t,e)&&(ii(t.prev,t,e.prev)||ii(t,e.prev,e))||wC(t,e)&&ii(t.prev,t,t.next)>0&&ii(e.prev,e,e.next)>0)}function ii(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function wC(t,e){return t.x===e.x&&t.y===e.y}function ER(t,e,n,r){const i=c1(ii(t,e,n)),s=c1(ii(t,e,r)),o=c1(ii(n,r,t)),a=c1(ii(n,r,e));return!!(i!==s&&o!==a||i===0&&u1(t,n,e)||s===0&&u1(t,r,e)||o===0&&u1(n,t,r)||a===0&&u1(n,e,r))}function u1(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function c1(t){return t>0?1:t<0?-1:0}function VW(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&ER(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}function qm(t,e){return ii(t.prev,t,t.next)<0?ii(t,e,t.next)>=0&&ii(t,t.prev,e)>=0:ii(t,e,t.prev)<0||ii(t,t.next,e)<0}function JW(t,e){let n=t,r=!1;const i=(t.x+e.x)/2,s=(t.y+e.y)/2;do n.y>s!=n.next.y>s&&n.next.y!==n.y&&i<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==t);return r}function CR(t,e){const n=new OS(t.i,t.x,t.y),r=new OS(e.i,e.x,e.y),i=t.next,s=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,s.next=r,r.prev=s,r}function A_(t,e,n,r){const i=new OS(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Km(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function OS(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function YW(t,e,n,r){let i=0;for(let s=e,o=n-r;s2&&t[e-1].equals(t[0])&&t.pop()}function m_(t,e){for(let n=0;nNumber.EPSILON){const ut=Math.sqrt(ft),Ut=Math.sqrt($*$+Oe*Oe),_t=Ne.x-W/ut,Ot=Ne.y+Se/ut,Ft=be.x-Oe/Ut,Pt=be.y+$/Ut,mt=((Ft-_t)*Oe-(Pt-Ot)*$)/(Se*Oe-W*$);Ve=_t+Se*mt-le.x,He=Ot+W*mt-le.y;const Rn=Ve*Ve+He*He;if(Rn<=2)return new st(Ve,He);lt=Math.sqrt(Rn/2)}else{let ut=!1;Se>Number.EPSILON?$>Number.EPSILON&&(ut=!0):Se<-Number.EPSILON?$<-Number.EPSILON&&(ut=!0):Math.sign(W)===Math.sign(Oe)&&(ut=!0),ut?(Ve=-W,He=Se,lt=Math.sqrt(ft)):(Ve=Se,He=W,lt=Math.sqrt(ft/2))}return new st(Ve/lt,He/lt)}const ge=[];for(let le=0,Ne=re.length,be=Ne-1,Ve=le+1;le=0;le--){const Ne=le/D,be=y*Math.cos(Ne*Math.PI/2),Ve=C*Math.sin(Ne*Math.PI/2)+x;for(let He=0,lt=re.length;He=0;){const Ve=be;let He=be-1;He<0&&(He=le.length-1);for(let lt=0,Se=p+D*2;lt0)&&y.push(B,_,P),(I!==r-1||l0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class SR extends Ni{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Xt(16777215),this.specular=new Xt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Xt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ah,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=c0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class wR extends Ni{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Xt(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Xt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ah,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class BR extends Ni{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ah,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}class bR extends Ni{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new Xt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Xt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ah,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=c0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class TR extends Ni{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Xt(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ah,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this.fog=e.fog,this}}class MR extends vo{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}function Mp(t,e,n){return!t||!n&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)}function _R(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function FR(t){function e(i,s){return t[i]-t[s]}const n=t.length,r=new Array(n);for(let i=0;i!==n;++i)r[i]=i;return r.sort(e),r}function US(t,e,n){const r=t.length,i=new t.constructor(r);for(let s=0,o=0;o!==r;++s){const a=n[s]*e;for(let l=0;l!==e;++l)i[o++]=t[a+l]}return i}function Ww(t,e,n,r){let i=1,s=t[0];for(;s!==void 0&&s[r]===void 0;)s=t[i++];if(s===void 0)return;let o=s[r];if(o!==void 0)if(Array.isArray(o))do o=s[r],o!==void 0&&(e.push(s.time),n.push.apply(n,o)),s=t[i++];while(s!==void 0);else if(o.toArray!==void 0)do o=s[r],o!==void 0&&(e.push(s.time),o.toArray(n,n.length)),s=t[i++];while(s!==void 0);else do o=s[r],o!==void 0&&(e.push(s.time),n.push(o)),s=t[i++];while(s!==void 0)}function ZW(t,e,n,r,i=30){const s=t.clone();s.name=e;const o=[];for(let l=0;l=r)){d.push(c.times[y]);for(let x=0;xs.tracks[l].times[0]&&(a=s.tracks[l].times[0]);for(let l=0;l=a.times[C]){const I=C*d+p,w=I+d-p;x=a.values.slice(I,w)}else{const I=a.createInterpolant(),w=p,B=d-p;I.evaluate(s),x=I.resultBuffer.slice(w,B)}l==="quaternion"&&new Si().fromArray(x).normalize().conjugate().toArray(x);const D=c.times.length;for(let I=0;I=s)){const a=n[1];e=s)break t}o=r,r=0;break n}break e}for(;r>>1;en;)--o;if(++o,s!==0||o!==i){s>=o&&(o=Math.max(o,1),s=o-1);const a=this.getValueSize();this.times=r.slice(s,o),this.values=this.values.slice(s*a,o*a)}return this}validate(){let e=!0;const n=this.getValueSize();n-Math.floor(n)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const r=this.times,i=this.values,s=r.length;s===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==s;a++){const l=r[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),e=!1;break}o=l}if(i!==void 0&&_R(i))for(let a=0,l=i.length;a!==l;++a){const c=i[a];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,c),e=!1;break}}return e}optimize(){const e=this.times.slice(),n=this.values.slice(),r=this.getValueSize(),i=this.getInterpolation()===q1,s=e.length-1;let o=1;for(let a=1;a0){e[o]=e[s];for(let a=s*r,l=o*r,c=0;c!==r;++c)n[l+c]=n[a+c];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=n.slice(0,o*r)):(this.times=e,this.values=n),this}clone(){const e=this.times.slice(),n=this.values.slice(),r=this.constructor,i=new r(this.name,e,n);return i.createInterpolant=this.createInterpolant,i}}ol.prototype.TimeBufferType=Float32Array;ol.prototype.ValueBufferType=Float32Array;ol.prototype.DefaultInterpolation=Um;class nd extends ol{}nd.prototype.ValueTypeName="bool";nd.prototype.ValueBufferType=Array;nd.prototype.DefaultInterpolation=Om;nd.prototype.InterpolantFactoryMethodLinear=void 0;nd.prototype.InterpolantFactoryMethodSmooth=void 0;class Vw extends ol{}Vw.prototype.ValueTypeName="color";class Zm extends ol{}Zm.prototype.ValueTypeName="number";class kR extends y0{constructor(e,n,r,i){super(e,n,r,i)}interpolate_(e,n,r,i){const s=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(r-n)/(i-n);let c=e*a;for(let p=c+a;c!==p;c+=4)Si.slerpFlat(s,0,o,c-a,o,c,l);return s}}class TA extends ol{InterpolantFactoryMethodLinear(e){return new kR(this.times,this.values,this.getValueSize(),e)}}TA.prototype.ValueTypeName="quaternion";TA.prototype.DefaultInterpolation=Um;TA.prototype.InterpolantFactoryMethodSmooth=void 0;class rd extends ol{}rd.prototype.ValueTypeName="string";rd.prototype.ValueBufferType=Array;rd.prototype.DefaultInterpolation=Om;rd.prototype.InterpolantFactoryMethodLinear=void 0;rd.prototype.InterpolantFactoryMethodSmooth=void 0;class $m extends ol{}$m.prototype.ValueTypeName="vector";class e0{constructor(e,n=-1,r,i=hC){this.name=e,this.tracks=r,this.duration=n,this.blendMode=i,this.uuid=na(),this.duration<0&&this.resetDuration()}static parse(e){const n=[],r=e.tracks,i=1/(e.fps||1);for(let o=0,a=r.length;o!==a;++o)n.push(nj(r[o]).scale(i));const s=new this(e.name,e.duration,n,e.blendMode);return s.uuid=e.uuid,s}static toJSON(e){const n=[],r=e.tracks,i={name:e.name,duration:e.duration,tracks:n,uuid:e.uuid,blendMode:e.blendMode};for(let s=0,o=r.length;s!==o;++s)n.push(ol.toJSON(r[s]));return i}static CreateFromMorphTargetSequence(e,n,r,i){const s=n.length,o=[];for(let a=0;a1){const d=p[1];let A=i[d];A||(i[d]=A=[]),A.push(c)}}const o=[];for(const a in i)o.push(this.CreateFromMorphTargetSequence(a,i[a],n,r));return o}static parseAnimation(e,n){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const r=function(d,A,y,C,x){if(y.length!==0){const D=[],I=[];Ww(y,D,I,C),D.length!==0&&x.push(new d(A,D,I))}},i=[],s=e.name||"default",o=e.fps||30,a=e.blendMode;let l=e.length||-1;const c=e.hierarchy||[];for(let d=0;d{n&&n(s),this.manager.itemEnd(e)},0),s;if(lu[e]!==void 0){lu[e].push({onLoad:n,onProgress:r,onError:i});return}lu[e]=[],lu[e].push({onLoad:n,onProgress:r,onError:i});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||c.body===void 0||c.body.getReader===void 0)return c;const p=lu[e],d=c.body.getReader(),A=c.headers.get("Content-Length")||c.headers.get("X-File-Size"),y=A?parseInt(A):0,C=y!==0;let x=0;const D=new ReadableStream({start(I){w();function w(){d.read().then(({done:B,value:_})=>{if(B)I.close();else{x+=_.byteLength;const F=new ProgressEvent("progress",{lengthComputable:C,loaded:x,total:y});for(let P=0,N=p.length;P{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(p=>new DOMParser().parseFromString(p,a));case"json":return c.json();default:if(a===void 0)return c.text();{const d=/charset="?([^;"\s]*)"?/i.exec(a),A=d&&d[1]?d[1].toLowerCase():void 0,y=new TextDecoder(A);return c.arrayBuffer().then(C=>y.decode(C))}}}).then(c=>{vu.add(e,c);const p=lu[e];delete lu[e];for(let d=0,A=p.length;d{const p=lu[e];if(p===void 0)throw this.manager.itemError(e),c;delete lu[e];for(let d=0,A=p.length;d{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class ij extends xo{constructor(e){super(e)}load(e,n,r,i){const s=this,o=new Nl(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(a){try{n(s.parse(JSON.parse(a)))}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},r,i)}parse(e){const n=[];for(let r=0;r0:i.vertexColors=e.vertexColors),e.uniforms!==void 0)for(const s in e.uniforms){const o=e.uniforms[s];switch(i.uniforms[s]={},o.type){case"t":i.uniforms[s].value=r(o.value);break;case"c":i.uniforms[s].value=new Xt().setHex(o.value);break;case"v2":i.uniforms[s].value=new st().fromArray(o.value);break;case"v3":i.uniforms[s].value=new ue().fromArray(o.value);break;case"v4":i.uniforms[s].value=new br().fromArray(o.value);break;case"m3":i.uniforms[s].value=new kn().fromArray(o.value);break;case"m4":i.uniforms[s].value=new En().fromArray(o.value);break;default:i.uniforms[s].value=o.value}}if(e.defines!==void 0&&(i.defines=e.defines),e.vertexShader!==void 0&&(i.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(i.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(i.glslVersion=e.glslVersion),e.extensions!==void 0)for(const s in e.extensions)i.extensions[s]=e.extensions[s];if(e.lights!==void 0&&(i.lights=e.lights),e.clipping!==void 0&&(i.clipping=e.clipping),e.size!==void 0&&(i.size=e.size),e.sizeAttenuation!==void 0&&(i.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(i.map=r(e.map)),e.matcap!==void 0&&(i.matcap=r(e.matcap)),e.alphaMap!==void 0&&(i.alphaMap=r(e.alphaMap)),e.bumpMap!==void 0&&(i.bumpMap=r(e.bumpMap)),e.bumpScale!==void 0&&(i.bumpScale=e.bumpScale),e.normalMap!==void 0&&(i.normalMap=r(e.normalMap)),e.normalMapType!==void 0&&(i.normalMapType=e.normalMapType),e.normalScale!==void 0){let s=e.normalScale;Array.isArray(s)===!1&&(s=[s,s]),i.normalScale=new st().fromArray(s)}return e.displacementMap!==void 0&&(i.displacementMap=r(e.displacementMap)),e.displacementScale!==void 0&&(i.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(i.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(i.roughnessMap=r(e.roughnessMap)),e.metalnessMap!==void 0&&(i.metalnessMap=r(e.metalnessMap)),e.emissiveMap!==void 0&&(i.emissiveMap=r(e.emissiveMap)),e.emissiveIntensity!==void 0&&(i.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(i.specularMap=r(e.specularMap)),e.specularIntensityMap!==void 0&&(i.specularIntensityMap=r(e.specularIntensityMap)),e.specularColorMap!==void 0&&(i.specularColorMap=r(e.specularColorMap)),e.envMap!==void 0&&(i.envMap=r(e.envMap)),e.envMapIntensity!==void 0&&(i.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(i.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(i.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(i.lightMap=r(e.lightMap)),e.lightMapIntensity!==void 0&&(i.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(i.aoMap=r(e.aoMap)),e.aoMapIntensity!==void 0&&(i.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(i.gradientMap=r(e.gradientMap)),e.clearcoatMap!==void 0&&(i.clearcoatMap=r(e.clearcoatMap)),e.clearcoatRoughnessMap!==void 0&&(i.clearcoatRoughnessMap=r(e.clearcoatRoughnessMap)),e.clearcoatNormalMap!==void 0&&(i.clearcoatNormalMap=r(e.clearcoatNormalMap)),e.clearcoatNormalScale!==void 0&&(i.clearcoatNormalScale=new st().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(i.iridescenceMap=r(e.iridescenceMap)),e.iridescenceThicknessMap!==void 0&&(i.iridescenceThicknessMap=r(e.iridescenceThicknessMap)),e.transmissionMap!==void 0&&(i.transmissionMap=r(e.transmissionMap)),e.thicknessMap!==void 0&&(i.thicknessMap=r(e.thicknessMap)),e.anisotropyMap!==void 0&&(i.anisotropyMap=r(e.anisotropyMap)),e.sheenColorMap!==void 0&&(i.sheenColorMap=r(e.sheenColorMap)),e.sheenRoughnessMap!==void 0&&(i.sheenRoughnessMap=r(e.sheenRoughnessMap)),i}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){const n={ShadowMaterial:xR,SpriteMaterial:Pw,RawShaderMaterial:IR,ShaderMaterial:il,PointsMaterial:Rw,MeshPhysicalMaterial:DR,MeshStandardMaterial:zw,MeshPhongMaterial:SR,MeshToonMaterial:wR,MeshNormalMaterial:BR,MeshLambertMaterial:bR,MeshDepthMaterial:AC,MeshDistanceMaterial:gC,MeshBasicMaterial:Uo,MeshMatcapMaterial:TR,LineDashedMaterial:MR,LineBasicMaterial:vo,Material:Ni};return new n[e]}}class GS{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let n="";for(let r=0,i=e.length;r0){const l=new Jw(n);s=new t0(l),s.setCrossOrigin(this.crossOrigin);for(let c=0,p=e.length;c0){i=new t0(this.manager),i.setCrossOrigin(this.crossOrigin);for(let o=0,a=e.length;o{const D=new ji;D.min.fromArray(x.boxMin),D.max.fromArray(x.boxMax);const I=new Li;return I.radius=x.sphereRadius,I.center.fromArray(x.sphereCenter),{boxInitialized:x.boxInitialized,box:D,sphereInitialized:x.sphereInitialized,sphere:I}}),o._maxGeometryCount=e.maxGeometryCount,o._maxVertexCount=e.maxVertexCount,o._maxIndexCount=e.maxIndexCount,o._geometryInitialized=e.geometryInitialized,o._geometryCount=e.geometryCount,o._matricesTexture=c(e.matricesTexture.uuid);break;case"LOD":o=new iR;break;case"Line":o=new lh(a(e.geometry),l(e.material));break;case"LineLoop":o=new uR(a(e.geometry),l(e.material));break;case"LineSegments":o=new Ol(a(e.geometry),l(e.material));break;case"PointCloud":case"Points":o=new cR(a(e.geometry),l(e.material));break;case"Sprite":o=new rR(l(e.material));break;case"Group":o=new Cu;break;case"Bone":o=new Qw;break;default:o=new ir}if(o.uuid=e.uuid,e.name!==void 0&&(o.name=e.name),e.matrix!==void 0?(o.matrix.fromArray(e.matrix),e.matrixAutoUpdate!==void 0&&(o.matrixAutoUpdate=e.matrixAutoUpdate),o.matrixAutoUpdate&&o.matrix.decompose(o.position,o.quaternion,o.scale)):(e.position!==void 0&&o.position.fromArray(e.position),e.rotation!==void 0&&o.rotation.fromArray(e.rotation),e.quaternion!==void 0&&o.quaternion.fromArray(e.quaternion),e.scale!==void 0&&o.scale.fromArray(e.scale)),e.up!==void 0&&o.up.fromArray(e.up),e.castShadow!==void 0&&(o.castShadow=e.castShadow),e.receiveShadow!==void 0&&(o.receiveShadow=e.receiveShadow),e.shadow&&(e.shadow.bias!==void 0&&(o.shadow.bias=e.shadow.bias),e.shadow.normalBias!==void 0&&(o.shadow.normalBias=e.shadow.normalBias),e.shadow.radius!==void 0&&(o.shadow.radius=e.shadow.radius),e.shadow.mapSize!==void 0&&o.shadow.mapSize.fromArray(e.shadow.mapSize),e.shadow.camera!==void 0&&(o.shadow.camera=this.parseObject(e.shadow.camera))),e.visible!==void 0&&(o.visible=e.visible),e.frustumCulled!==void 0&&(o.frustumCulled=e.frustumCulled),e.renderOrder!==void 0&&(o.renderOrder=e.renderOrder),e.userData!==void 0&&(o.userData=e.userData),e.layers!==void 0&&(o.layers.mask=e.layers),e.children!==void 0){const A=e.children;for(let y=0;y"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,n,r,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const s=this,o=vu.get(e);if(o!==void 0){if(s.manager.itemStart(e),o.then){o.then(c=>{n&&n(c),s.manager.itemEnd(e)}).catch(c=>{i&&i(c)});return}return setTimeout(function(){n&&n(o),s.manager.itemEnd(e)},0),o}const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader;const l=fetch(e,a).then(function(c){return c.blob()}).then(function(c){return createImageBitmap(c,Object.assign(s.options,{colorSpaceConversion:"none"}))}).then(function(c){return vu.add(e,c),n&&n(c),s.manager.itemEnd(e),c}).catch(function(c){i&&i(c),vu.remove(e),s.manager.itemError(e),s.manager.itemEnd(e)});vu.add(e,l),s.manager.itemStart(e)}}let h1;class Xw{static getContext(){return h1===void 0&&(h1=new(window.AudioContext||window.webkitAudioContext)),h1}static setContext(e){h1=e}}class fj extends xo{constructor(e){super(e)}load(e,n,r,i){const s=this,o=new Nl(this.manager);o.setResponseType("arraybuffer"),o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(l){try{const c=l.slice(0);Xw.getContext().decodeAudioData(c,function(d){n(d)}).catch(a)}catch(c){a(c)}},r,i);function a(l){i?i(l):console.error(l),s.manager.itemError(e)}}}const S_=new En,w_=new En,up=new En;class Aj{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new ki,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new ki,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const n=this._cache;if(n.focus!==e.focus||n.fov!==e.fov||n.aspect!==e.aspect*this.aspect||n.near!==e.near||n.far!==e.far||n.zoom!==e.zoom||n.eyeSep!==this.eyeSep){n.focus=e.focus,n.fov=e.fov,n.aspect=e.aspect*this.aspect,n.near=e.near,n.far=e.far,n.zoom=e.zoom,n.eyeSep=this.eyeSep,up.copy(e.projectionMatrix);const i=n.eyeSep/2,s=i*n.near/n.focus,o=n.near*Math.tan(kp*n.fov*.5)/n.zoom;let a,l;w_.elements[12]=-i,S_.elements[12]=i,a=-o*n.aspect+s,l=o*n.aspect+s,up.elements[0]=2*n.near/(l-a),up.elements[8]=(l+a)/(l-a),this.cameraL.projectionMatrix.copy(up),a=-o*n.aspect-s,l=o*n.aspect-s,up.elements[0]=2*n.near/(l-a),up.elements[8]=(l+a)/(l-a),this.cameraR.projectionMatrix.copy(up)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(w_),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(S_)}}class qw{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=B_(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const n=B_();e=(n-this.oldTime)/1e3,this.oldTime=n,this.elapsedTime+=e}return e}}function B_(){return(typeof performance>"u"?Date:performance).now()}const cp=new ue,b_=new Si,gj=new ue,hp=new ue;class mj extends ir{constructor(){super(),this.type="AudioListener",this.context=Xw.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new qw}getInput(){return this.gain}removeFilter(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);const n=this.context.listener,r=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(cp,b_,gj),hp.set(0,0,-1).applyQuaternion(b_),n.positionX){const i=this.context.currentTime+this.timeDelta;n.positionX.linearRampToValueAtTime(cp.x,i),n.positionY.linearRampToValueAtTime(cp.y,i),n.positionZ.linearRampToValueAtTime(cp.z,i),n.forwardX.linearRampToValueAtTime(hp.x,i),n.forwardY.linearRampToValueAtTime(hp.y,i),n.forwardZ.linearRampToValueAtTime(hp.z,i),n.upX.linearRampToValueAtTime(r.x,i),n.upY.linearRampToValueAtTime(r.y,i),n.upZ.linearRampToValueAtTime(r.z,i)}else n.setPosition(cp.x,cp.y,cp.z),n.setOrientation(hp.x,hp.y,hp.z,r.x,r.y,r.z)}}class JR extends ir{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(this.isPlaying===!0){console.warn("THREE.Audio: Audio is already playing.");return}if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}this._startedAt=this.context.currentTime+e;const n=this.context.createBufferSource();return n.buffer=this.buffer,n.loop=this.loop,n.loopStart=this.loopStart,n.loopEnd=this.loopEnd,n.onended=this.onEnded.bind(this),n.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=n,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this.isPlaying===!0&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,this.loop===!0&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this._progress=0,this.source!==null&&(this.source.stop(),this.source.onended=null),this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,n=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,n=this.filters.length;e0&&this._mixBufferRegionAdditive(r,i,this._addIndex*n,1,n);for(let l=n,c=n+n;l!==c;++l)if(r[l]!==r[l+n]){a.setValue(r,i);break}}saveOriginalState(){const e=this.binding,n=this.buffer,r=this.valueSize,i=r*this._origIndex;e.getValue(n,i);for(let s=r,o=i;s!==o;++s)n[s]=n[i+s%r];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=this.valueSize*3;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,n=e+this.valueSize;for(let r=e;r=.5)for(let o=0;o!==s;++o)e[n+o]=e[r+o]}_slerp(e,n,r,i){Si.slerpFlat(e,n,e,n,e,r,i)}_slerpAdditive(e,n,r,i,s){const o=this._workIndex*s;Si.multiplyQuaternionsFlat(e,o,e,n,e,r),Si.slerpFlat(e,n,e,n,e,o,i)}_lerp(e,n,r,i,s){const o=1-i;for(let a=0;a!==s;++a){const l=n+a;e[l]=e[l]*o+e[r+a]*i}}_lerpAdditive(e,n,r,i,s){for(let o=0;o!==s;++o){const a=n+o;e[a]=e[a]+e[r+o]*i}}}const Kw="\\[\\]\\.:\\/",vj=new RegExp("["+Kw+"]","g"),Zw="[^"+Kw+"]",xj="[^"+Kw.replace("\\.","")+"]",Ij=/((?:WC+[\/:])*)/.source.replace("WC",Zw),Dj=/(WCOD+)?/.source.replace("WCOD",xj),Sj=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Zw),wj=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Zw),Bj=new RegExp("^"+Ij+Dj+Sj+wj+"$"),bj=["material","materials","bones","map"];class Tj{constructor(e,n,r){const i=r||Cr.parseTrackName(n);this._targetGroup=e,this._bindings=e.subscribe_(n,i)}getValue(e,n){this.bind();const r=this._targetGroup.nCachedObjects_,i=this._bindings[r];i!==void 0&&i.getValue(e,n)}setValue(e,n){const r=this._bindings;for(let i=this._targetGroup.nCachedObjects_,s=r.length;i!==s;++i)r[i].setValue(e,n)}bind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=e.length;n!==r;++n)e[n].bind()}unbind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=e.length;n!==r;++n)e[n].unbind()}}class Cr{constructor(e,n,r){this.path=n,this.parsedPath=r||Cr.parseTrackName(n),this.node=Cr.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,n,r){return e&&e.isAnimationObjectGroup?new Cr.Composite(e,n,r):new Cr(e,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(vj,"")}static parseTrackName(e){const n=Bj.exec(e);if(n===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const r={nodeName:n[2],objectName:n[3],objectIndex:n[4],propertyName:n[5],propertyIndex:n[6]},i=r.nodeName&&r.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const s=r.nodeName.substring(i+1);bj.indexOf(s)!==-1&&(r.nodeName=r.nodeName.substring(0,i),r.objectName=s)}if(r.propertyName===null||r.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return r}static findNode(e,n){if(n===void 0||n===""||n==="."||n===-1||n===e.name||n===e.uuid)return e;if(e.skeleton){const r=e.skeleton.getBoneByName(n);if(r!==void 0)return r}if(e.children){const r=function(s){for(let o=0;o=s){const d=s++,A=e[d];n[A.uuid]=p,e[p]=A,n[c]=d,e[d]=l;for(let y=0,C=i;y!==C;++y){const x=r[y],D=x[d],I=x[p];x[p]=D,x[d]=I}}}this.nCachedObjects_=s}uncache(){const e=this._objects,n=this._indicesByUUID,r=this._bindings,i=r.length;let s=this.nCachedObjects_,o=e.length;for(let a=0,l=arguments.length;a!==l;++a){const c=arguments[a],p=c.uuid,d=n[p];if(d!==void 0)if(delete n[p],d0&&(n[y.uuid]=d),e[d]=y,e.pop();for(let C=0,x=i;C!==x;++C){const D=r[C];D[d]=D[A],D.pop()}}}this.nCachedObjects_=s}subscribe_(e,n){const r=this._bindingsIndicesByPath;let i=r[e];const s=this._bindings;if(i!==void 0)return s[i];const o=this._paths,a=this._parsedPaths,l=this._objects,c=l.length,p=this.nCachedObjects_,d=new Array(c);i=s.length,r[e]=i,o.push(e),a.push(n),s.push(d);for(let A=p,y=l.length;A!==y;++A){const C=l[A];d[A]=new Cr(C,e,n)}return d}unsubscribe_(e){const n=this._bindingsIndicesByPath,r=n[e];if(r!==void 0){const i=this._paths,s=this._parsedPaths,o=this._bindings,a=o.length-1,l=o[a],c=e[a];n[c]=r,o[r]=l,o.pop(),s[r]=s[a],s.pop(),i[r]=i[a],i.pop()}}}class XR{constructor(e,n,r=null,i=n.blendMode){this._mixer=e,this._clip=n,this._localRoot=r,this.blendMode=i;const s=n.tracks,o=s.length,a=new Array(o),l={endingStart:Bp,endingEnd:Bp};for(let c=0;c!==o;++c){const p=s[c].createInterpolant(null);a[c]=p,p.settings=l}this._interpolantSettings=l,this._interpolants=a,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=bk,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,n){return this.loop=e,this.repetitions=n,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,n,r){if(e.fadeOut(n),this.fadeIn(n),r){const i=this._clip.duration,s=e._clip.duration,o=s/i,a=i/s;e.warp(1,o,n),this.warp(a,1,n)}return this}crossFadeTo(e,n,r){return e.crossFadeFrom(this,n,r)}stopFading(){const e=this._weightInterpolant;return e!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,n,r){const i=this._mixer,s=i.time,o=this.timeScale;let a=this._timeScaleInterpolant;a===null&&(a=i._lendControlInterpolant(),this._timeScaleInterpolant=a);const l=a.parameterPositions,c=a.sampleValues;return l[0]=s,l[1]=s+r,c[0]=e/o,c[1]=n/o,this}stopWarping(){const e=this._timeScaleInterpolant;return e!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,n,r,i){if(!this.enabled){this._updateWeight(e);return}const s=this._startTime;if(s!==null){const l=(e-s)*r;l<0||r===0?n=0:(this._startTime=null,n=r*l)}n*=this._updateTimeScale(e);const o=this._updateTime(n),a=this._updateWeight(e);if(a>0){const l=this._interpolants,c=this._propertyBindings;switch(this.blendMode){case vw:for(let p=0,d=l.length;p!==d;++p)l[p].evaluate(o),c[p].accumulateAdditive(a);break;case hC:default:for(let p=0,d=l.length;p!==d;++p)l[p].evaluate(o),c[p].accumulate(i,a)}}}_updateWeight(e){let n=0;if(this.enabled){n=this.weight;const r=this._weightInterpolant;if(r!==null){const i=r.evaluate(e)[0];n*=i,e>r.parameterPositions[1]&&(this.stopFading(),i===0&&(this.enabled=!1))}}return this._effectiveWeight=n,n}_updateTimeScale(e){let n=0;if(!this.paused){n=this.timeScale;const r=this._timeScaleInterpolant;if(r!==null){const i=r.evaluate(e)[0];n*=i,e>r.parameterPositions[1]&&(this.stopWarping(),n===0?this.paused=!0:this.timeScale=n)}}return this._effectiveTimeScale=n,n}_updateTime(e){const n=this._clip.duration,r=this.loop;let i=this.time+e,s=this._loopCount;const o=r===Tk;if(e===0)return s===-1?i:o&&(s&1)===1?n-i:i;if(r===Bk){s===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(i>=n)i=n;else if(i<0)i=0;else{this.time=i;break e}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(s===-1&&(e>=0?(s=0,this._setEndings(!0,this.repetitions===0,o)):this._setEndings(this.repetitions===0,!0,o)),i>=n||i<0){const a=Math.floor(i/n);i-=n*a,s+=Math.abs(a);const l=this.repetitions-s;if(l<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=e>0?n:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(l===1){const c=e<0;this._setEndings(c,!c,o)}else this._setEndings(!1,!1,o);this._loopCount=s,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:a})}}else this.time=i;if(o&&(s&1)===1)return n-i}return i}_setEndings(e,n,r){const i=this._interpolantSettings;r?(i.endingStart=bp,i.endingEnd=bp):(e?i.endingStart=this.zeroSlopeAtStart?bp:Bp:i.endingStart=Gm,n?i.endingEnd=this.zeroSlopeAtEnd?bp:Bp:i.endingEnd=Gm)}_scheduleFading(e,n,r){const i=this._mixer,s=i.time;let o=this._weightInterpolant;o===null&&(o=i._lendControlInterpolant(),this._weightInterpolant=o);const a=o.parameterPositions,l=o.sampleValues;return a[0]=s,l[0]=n,a[1]=s+e,l[1]=r,this}}const _j=new Float32Array(1);class Fj extends Mu{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,n){const r=e._localRoot||this._root,i=e._clip.tracks,s=i.length,o=e._propertyBindings,a=e._interpolants,l=r.uuid,c=this._bindingsByRootAndName;let p=c[l];p===void 0&&(p={},c[l]=p);for(let d=0;d!==s;++d){const A=i[d],y=A.name;let C=p[y];if(C!==void 0)++C.referenceCount,o[d]=C;else{if(C=o[d],C!==void 0){C._cacheIndex===null&&(++C.referenceCount,this._addInactiveBinding(C,l,y));continue}const x=n&&n._propertyBindings[d].binding.parsedPath;C=new YR(Cr.create(r,y,x),A.ValueTypeName,A.getValueSize()),++C.referenceCount,this._addInactiveBinding(C,l,y),o[d]=C}a[d].resultBuffer=C.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(e._cacheIndex===null){const r=(e._localRoot||this._root).uuid,i=e._clip.uuid,s=this._actionsByClip[i];this._bindAction(e,s&&s.knownActions[0]),this._addInactiveAction(e,i,r)}const n=e._propertyBindings;for(let r=0,i=n.length;r!==i;++r){const s=n[r];s.useCount++===0&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const n=e._propertyBindings;for(let r=0,i=n.length;r!==i;++r){const s=n[r];--s.useCount===0&&(s.restoreOriginalState(),this._takeBackBinding(s))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const n=e._cacheIndex;return n!==null&&n=0;--r)e[r].stop();return this}update(e){e*=this.timeScale;const n=this._actions,r=this._nActiveActions,i=this.time+=e,s=Math.sign(e),o=this._accuIndex^=1;for(let c=0;c!==r;++c)n[c]._update(i,e,s,o);const a=this._bindings,l=this._nActiveBindings;for(let c=0;c!==l;++c)a[c].apply(o);return this}setTime(e){this.time=0;for(let n=0;nthis.max.x||e.ythis.max.y)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,n){return n.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,__).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const F_=new ue,p1=new ue;class KR{constructor(e=new ue,n=new ue){this.start=e,this.end=n}set(e,n){return this.start.copy(e),this.end.copy(n),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,n){return this.delta(n).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,n){F_.subVectors(e,this.start),p1.subVectors(this.end,this.start);const r=p1.dot(p1);let s=p1.dot(F_)/r;return n&&(s=Ai(s,0,1)),s}closestPointToPoint(e,n,r){const i=this.closestPointToPointParameter(e,n);return this.delta(r).multiplyScalar(i).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return new this.constructor().copy(this)}}const P_=new ue;class Oj extends ir{constructor(e,n){super(),this.light=e,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,this.type="SpotLightHelper";const r=new Hn,i=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let o=0,a=1,l=32;o1)for(let d=0;d.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{N_.set(e.z,0,-e.x).normalize();const n=Math.acos(e.y);this.quaternion.setFromAxisAngle(N_,n)}}setLength(e,n=e*.2,r=n*.2){this.line.scale.set(1,Math.max(1e-4,e-n),1),this.line.updateMatrix(),this.cone.scale.set(r,n,r),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}}class Zj extends Ol{constructor(e=1){const n=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],r=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],i=new Hn;i.setAttribute("position",new fn(n,3)),i.setAttribute("color",new fn(r,3));const s=new vo({vertexColors:!0,toneMapped:!1});super(i,s),this.type="AxesHelper"}setColors(e,n,r){const i=new Xt,s=this.geometry.attributes.color.array;return i.set(e),i.toArray(s,0),i.toArray(s,3),i.set(n),i.toArray(s,6),i.toArray(s,9),i.set(r),i.toArray(s,12),i.toArray(s,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class kc{constructor(){this.type="ShapePath",this.color=new Xt,this.subPaths=[],this.currentPath=null}moveTo(e,n){return this.currentPath=new th,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,n),this}lineTo(e,n){return this.currentPath.lineTo(e,n),this}quadraticCurveTo(e,n,r,i){return this.currentPath.quadraticCurveTo(e,n,r,i),this}bezierCurveTo(e,n,r,i,s,o){return this.currentPath.bezierCurveTo(e,n,r,i,s,o),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function n(I){const w=[];for(let B=0,_=I.length;B<_;B++){const F=I[B],P=new nh;P.curves=F.curves,w.push(P)}return w}function r(I,w){const B=w.length;let _=!1;for(let F=B-1,P=0;PNumber.EPSILON){if(L<0&&(N=w[P],q=-q,U=w[F],L=-L),I.yU.y)continue;if(I.y===N.y){if(I.x===N.x)return!0}else{const z=L*(I.x-N.x)-q*(I.y-N.y);if(z===0)return!0;if(z<0)continue;_=!_}}else{if(I.y!==N.y)continue;if(U.x<=I.x&&I.x<=N.x||N.x<=I.x&&I.x<=U.x)return!0}}return _}const i=nl.isClockWise,s=this.subPaths;if(s.length===0)return[];let o,a,l;const c=[];if(s.length===1)return a=s[0],l=new nh,l.curves=a.curves,c.push(l),c;let p=!i(s[0].getPoints());p=e?!p:p;const d=[],A=[];let y=[],C=0,x;A[C]=void 0,y[C]=[];for(let I=0,w=s.length;I1){let I=!1,w=0;for(let B=0,_=A.length;B<_;B++)d[B]=[];for(let B=0,_=A.length;B<_;B++){const F=y[B];for(let P=0;P0&&I===!1&&(y=d)}let D;for(let I=0,w=A.length;I{const d=typeof c=="function"?c(e):c;if(d!==e){const A=e;e=p?d:Object.assign({},e,d),n.forEach(y=>y(e,A))}},i=()=>e,s=(c,p=i,d=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let A=p(e);function y(){const C=p(e);if(!d(A,C)){const x=A;c(A=C,x)}}return n.add(y),()=>n.delete(y)},l={setState:r,getState:i,subscribe:(c,p,d)=>p||d?s(c,p,d):(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return e=t(r,i,l),l}const tV=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),O_=tV?le.useEffect:le.useLayoutEffect;function eL(t){const e=typeof t=="function"?eV(t):t,n=(r=e.getState,i=Object.is)=>{const[,s]=le.useReducer(D=>D+1,0),o=e.getState(),a=le.useRef(o),l=le.useRef(r),c=le.useRef(i),p=le.useRef(!1),d=le.useRef();d.current===void 0&&(d.current=r(o));let A,y=!1;(a.current!==o||l.current!==r||c.current!==i||p.current)&&(A=r(o),y=!i(d.current,A)),O_(()=>{y&&(d.current=A),a.current=o,l.current=r,c.current=i,p.current=!1});const C=le.useRef(o);O_(()=>{const D=()=>{try{const w=e.getState(),B=l.current(w);c.current(d.current,B)||(a.current=w,d.current=B,s())}catch{p.current=!0,s()}},I=e.subscribe(D);return e.getState()!==C.current&&D(),I},[]);const x=y?A:d.current;return le.useDebugValue(x),x};return Object.assign(n,e),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,e];return{next(){const i=r.length<=0;return{value:r.shift(),done:i}}}},n}var tL={exports:{}},nL={exports:{}},rL={};/** + */id.ConcurrentRoot=1;id.ContinuousEventPriority=4;id.DefaultEventPriority=16;id.DiscreteEventPriority=1;id.IdleEventPriority=536870912;id.LegacyRoot=0;$R.exports=id;var Wf=$R.exports;function eV(t){let e;const n=new Set,r=(c,p)=>{const d=typeof c=="function"?c(e):c;if(d!==e){const A=e;e=p?d:Object.assign({},e,d),n.forEach(y=>y(e,A))}},i=()=>e,s=(c,p=i,d=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let A=p(e);function y(){const C=p(e);if(!d(A,C)){const x=A;c(A=C,x)}}return n.add(y),()=>n.delete(y)},l={setState:r,getState:i,subscribe:(c,p,d)=>p||d?s(c,p,d):(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return e=t(r,i,l),l}const tV=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),O_=tV?ae.useEffect:ae.useLayoutEffect;function eL(t){const e=typeof t=="function"?eV(t):t,n=(r=e.getState,i=Object.is)=>{const[,s]=ae.useReducer(D=>D+1,0),o=e.getState(),a=ae.useRef(o),l=ae.useRef(r),c=ae.useRef(i),p=ae.useRef(!1),d=ae.useRef();d.current===void 0&&(d.current=r(o));let A,y=!1;(a.current!==o||l.current!==r||c.current!==i||p.current)&&(A=r(o),y=!i(d.current,A)),O_(()=>{y&&(d.current=A),a.current=o,l.current=r,c.current=i,p.current=!1});const C=ae.useRef(o);O_(()=>{const D=()=>{try{const w=e.getState(),B=l.current(w);c.current(d.current,B)||(a.current=w,d.current=B,s())}catch{p.current=!0,s()}},I=e.subscribe(D);return e.getState()!==C.current&&D(),I},[]);const x=y?A:d.current;return ae.useDebugValue(x),x};return Object.assign(n,e),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,e];return{next(){const i=r.length<=0;return{value:r.shift(),done:i}}}},n}var tL={exports:{}},nL={exports:{}},rL={};/** * @license React * scheduler.production.min.js * @@ -3824,18 +3824,18 @@ void main() { * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var nV=function(e){var n={},r=le,i=zS,s=Object.assign;function o(g){for(var m="https://reactjs.org/docs/error-decoder.html?invariant="+g,T=1;TJe||G[Ce]!==V[Je]){var ht=` `+G[Ce].replace(" at new "," at ");return g.displayName&&ht.includes("")&&(ht=ht.replace("",g.displayName)),ht}while(1<=Ce&&0<=Je);break}}}finally{en=!1,Error.prepareStackTrace=T}return(g=g?g.displayName||g.name:"")?Kt(g):""}var Zn=Object.prototype.hasOwnProperty,Ir=[],fr=-1;function xr(g){return{current:g}}function hn(g){0>fr||(g.current=Ir[fr],Ir[fr]=null,fr--)}function zt(g,m){fr++,Ir[fr]=g.current,g.current=m}var Ln={},ee=xr(Ln),H=xr(!1),ye=Ln;function Pe(g,m){var T=g.type.contextTypes;if(!T)return Ln;var Q=g.stateNode;if(Q&&Q.__reactInternalMemoizedUnmaskedChildContext===m)return Q.__reactInternalMemoizedMaskedChildContext;var G={},V;for(V in T)G[V]=m[V];return Q&&(g=g.stateNode,g.__reactInternalMemoizedUnmaskedChildContext=m,g.__reactInternalMemoizedMaskedChildContext=G),G}function We(g){return g=g.childContextTypes,g!=null}function et(){hn(H),hn(ee)}function yt(g,m,T){if(ee.current!==Ln)throw Error(o(168));zt(ee,m),zt(H,T)}function ct(g,m,T){var Q=g.stateNode;if(m=m.childContextTypes,typeof Q.getChildContext!="function")return T;Q=Q.getChildContext();for(var G in Q)if(!(G in m))throw Error(o(108,U(g)||"Unknown",G));return s({},T,Q)}function rt(g){return g=(g=g.stateNode)&&g.__reactInternalMemoizedMergedChildContext||Ln,ye=ee.current,zt(ee,g),zt(H,H.current),!0}function Xe(g,m,T){var Q=g.stateNode;if(!Q)throw Error(o(169));T?(g=ct(g,m,ye),Q.__reactInternalMemoizedMergedChildContext=g,hn(H),hn(ee),zt(ee,g)):hn(H),zt(H,T)}var Qt=Math.clz32?Math.clz32:kr,an=Math.log,Qn=Math.LN2;function kr(g){return g>>>=0,g===0?32:31-(an(g)/Qn|0)|0}var Kn=64,Ur=4194304;function vn(g){switch(g&-g){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return g&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return g&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return g}}function _r(g,m){var T=g.pendingLanes;if(T===0)return 0;var Q=0,G=g.suspendedLanes,V=g.pingedLanes,Ce=T&268435455;if(Ce!==0){var Je=Ce&~G;Je!==0?Q=vn(Je):(V&=Ce,V!==0&&(Q=vn(V)))}else Ce=T&~G,Ce!==0?Q=vn(Ce):V!==0&&(Q=vn(V));if(Q===0)return 0;if(m!==0&&m!==Q&&!(m&G)&&(G=Q&-Q,V=m&-m,G>=V||G===16&&(V&4194240)!==0))return m;if(Q&4&&(Q|=T&16),m=g.entangledLanes,m!==0)for(g=g.entanglements,m&=Q;0T;T++)m.push(g);return m}function _a(g,m,T){g.pendingLanes|=m,m!==536870912&&(g.suspendedLanes=0,g.pingedLanes=0),g=g.eventTimes,m=31-Qt(m),g[m]=T}function Do(g,m){var T=g.pendingLanes&~m;g.pendingLanes=m,g.suspendedLanes=0,g.pingedLanes=0,g.expiredLanes&=m,g.mutableReadLanes&=m,g.entangledLanes&=m,m=g.entanglements;var Q=g.eventTimes;for(g=g.expirationTimes;0>=Ce,G-=Ce,nt=1<<32-Qt(m)+G|T<ur?(vi=On,On=null):vi=On.sibling;var cr=In(tt,On,at[ur],Jt);if(cr===null){On===null&&(On=vi);break}g&&On&&cr.alternate===null&&m(tt,On),Ye=V(cr,Ye,ur),Gn===null?yn=cr:Gn.sibling=cr,Gn=cr,On=vi}if(ur===at.length)return T(tt,On),tr&&ha(tt,ur),yn;if(On===null){for(;urur?(vi=On,On=null):vi=On.sibling;var Il=In(tt,On,cr.value,Jt);if(Il===null){On===null&&(On=vi);break}g&&On&&Il.alternate===null&&m(tt,On),Ye=V(Il,Ye,ur),Gn===null?yn=Il:Gn.sibling=Il,Gn=Il,On=vi}if(cr.done)return T(tt,On),tr&&ha(tt,ur),yn;if(On===null){for(;!cr.done;ur++,cr=at.next())cr=Nn(tt,cr.value,Jt),cr!==null&&(Ye=V(cr,Ye,ur),Gn===null?yn=cr:Gn.sibling=cr,Gn=cr);return tr&&ha(tt,ur),yn}for(On=Q(tt,On);!cr.done;ur++,cr=at.next())cr=Er(On,tt,ur,cr.value,Jt),cr!==null&&(g&&cr.alternate!==null&&On.delete(cr.key===null?ur:cr.key),Ye=V(cr,Ye,ur),Gn===null?yn=cr:Gn.sibling=cr,Gn=cr);return g&&On.forEach(function(ny){return m(tt,ny)}),tr&&ha(tt,ur),yn}function vs(tt,Ye,at,Jt){if(typeof at=="object"&&at!==null&&at.type===p&&at.key===null&&(at=at.props.children),typeof at=="object"&&at!==null){switch(at.$$typeof){case l:e:{for(var yn=at.key,Gn=Ye;Gn!==null;){if(Gn.key===yn){if(yn=at.type,yn===p){if(Gn.tag===7){T(tt,Gn.sibling),Ye=G(Gn,at.props.children),Ye.return=tt,tt=Ye;break e}}else if(Gn.elementType===yn||typeof yn=="object"&&yn!==null&&yn.$$typeof===B&&Qa(yn)===Gn.type){T(tt,Gn.sibling),Ye=G(Gn,at.props),Ye.ref=Wo(tt,Gn,at),Ye.return=tt,tt=Ye;break e}T(tt,Gn);break}else m(tt,Gn);Gn=Gn.sibling}at.type===p?(Ye=xl(at.props.children,tt.mode,Jt,at.key),Ye.return=tt,tt=Ye):(Jt=ep(at.type,at.key,at.props,null,tt.mode,Jt),Jt.ref=Wo(tt,Ye,at),Jt.return=tt,tt=Jt)}return Ce(tt);case c:e:{for(Gn=at.key;Ye!==null;){if(Ye.key===Gn)if(Ye.tag===4&&Ye.stateNode.containerInfo===at.containerInfo&&Ye.stateNode.implementation===at.implementation){T(tt,Ye.sibling),Ye=G(Ye,at.children||[]),Ye.return=tt,tt=Ye;break e}else{T(tt,Ye);break}else m(tt,Ye);Ye=Ye.sibling}Ye=dg(at,tt.mode,Jt),Ye.return=tt,tt=Ye}return Ce(tt);case B:return Gn=at._init,vs(tt,Ye,Gn(at._payload),Jt)}if(_e(at))return mn(tt,Ye,at,Jt);if(P(at))return as(tt,Ye,at,Jt);Vl(tt,at)}return typeof at=="string"&&at!==""||typeof at=="number"?(at=""+at,Ye!==null&&Ye.tag===6?(T(tt,Ye.sibling),Ye=G(Ye,at),Ye.return=tt,tt=Ye):(T(tt,Ye),Ye=Jd(at,tt.mode,Jt),Ye.return=tt,tt=Ye),Ce(tt)):T(tt,Ye)}return vs}var ka=Qh(!0),_i=Qh(!1),jo={},Ns=xr(jo),da=xr(jo),ao=xr(jo);function Os(g){if(g===jo)throw Error(o(174));return g}function Jl(g,m){zt(ao,m),zt(da,g),zt(Ns,jo),g=Ge(m),hn(Ns),zt(Ns,g)}function qr(){hn(Ns),hn(da),hn(ao)}function gd(g){var m=Os(ao.current),T=Os(Ns.current);m=ie(T,g.type,m),T!==m&&(zt(da,g),zt(Ns,m))}function kh(g){da.current===g&&(hn(Ns),hn(da))}var wr=xr(0);function An(g){for(var m=g;m!==null;){if(m.tag===13){var T=m.memoizedState;if(T!==null&&(T=T.dehydrated,T===null||ps(T)||Fs(T)))return m}else if(m.tag===19&&m.memoizedProps.revealOrder!==void 0){if(m.flags&128)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===g)break;for(;m.sibling===null;){if(m.return===null||m.return===g)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}var Rh=[];function tc(){for(var g=0;gT?T:4,g(!0);var Q=Es.transition;Es.transition={};try{g(!1),m()}finally{bt=T,Es.transition=Q}}function dc(){return lo().memoizedState}function NA(g,m,T){var Q=yl(g);T={lane:Q,action:T,hasEagerState:!1,eagerState:null,next:null},fc(g)?Hh(m,T):(vd(g,m,T),T=Cs(),g=bo(g,Q,T),g!==null&&zh(g,m,Q))}function Gh(g,m,T){var Q=yl(g),G={lane:Q,action:T,hasEagerState:!1,eagerState:null,next:null};if(fc(g))Hh(m,G);else{vd(g,m,G);var V=g.alternate;if(g.lanes===0&&(V===null||V.lanes===0)&&(V=m.lastRenderedReducer,V!==null))try{var Ce=m.lastRenderedState,Je=V(Ce,T);if(G.hasEagerState=!0,G.eagerState=Je,As(Je,Ce))return}catch{}finally{}T=Cs(),g=bo(g,Q,T),g!==null&&zh(g,m,Q)}}function fc(g){var m=g.alternate;return g===Fr||m!==null&&m===Fr}function Hh(g,m){Yl=yr=!0;var T=g.pending;T===null?m.next=m:(m.next=T.next,T.next=m),g.pending=m}function vd(g,m,T){hi!==null&&g.mode&1&&!(Un&2)?(g=m.interleaved,g===null?(T.next=T,Ti===null?Ti=[m]:Ti.push(m)):(T.next=g.next,g.next=T),m.interleaved=T):(g=m.pending,g===null?T.next=T:(T.next=g.next,g.next=T),m.pending=T)}function zh(g,m,T){if(T&4194240){var Q=m.lanes;Q&=g.pendingLanes,T|=Q,m.lanes=T,$r(g,T)}}var Ac={readContext:ci,useCallback:Pr,useContext:Pr,useEffect:Pr,useImperativeHandle:Pr,useInsertionEffect:Pr,useLayoutEffect:Pr,useMemo:Pr,useReducer:Pr,useRef:Pr,useState:Pr,useDebugValue:Pr,useDeferredValue:Pr,useTransition:Pr,useMutableSource:Pr,useSyncExternalStore:Pr,useId:Pr,unstable_isNewReconciler:!1},OA={readContext:ci,useCallback:function(g,m){return Jo().memoizedState=[g,m===void 0?null:m],g},useContext:ci,useEffect:Bo,useImperativeHandle:function(g,m,T){return T=T!=null?T.concat([g]):null,cc(4194308,4,Cd.bind(null,m,g),T)},useLayoutEffect:function(g,m){return cc(4194308,4,g,m)},useInsertionEffect:function(g,m){return cc(4,2,g,m)},useMemo:function(g,m){var T=Jo();return m=m===void 0?null:m,g=g(),T.memoizedState=[g,m],g},useReducer:function(g,m,T){var Q=Jo();return m=T!==void 0?T(m):m,Q.memoizedState=Q.baseState=m,g={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:g,lastRenderedState:m},Q.queue=g,g=g.dispatch=NA.bind(null,Fr,g),[Q.memoizedState,g]},useRef:function(g){var m=Jo();return g={current:g},m.memoizedState=g},useState:uc,useDebugValue:hc,useDeferredValue:function(g){var m=uc(g),T=m[0],Q=m[1];return Bo(function(){var G=Es.transition;Es.transition={};try{Q(g)}finally{Es.transition=G}},[g]),T},useTransition:function(){var g=uc(!1),m=g[0];return g=LA.bind(null,g[1]),Jo().memoizedState=g,[m,g]},useMutableSource:function(){},useSyncExternalStore:function(g,m,T){var Q=Fr,G=Jo();if(tr){if(T===void 0)throw Error(o(407));T=T()}else{if(T=m(),hi===null)throw Error(o(349));Al&30||oc(Q,m,T)}G.memoizedState=T;var V={value:T,getSnapshot:m};return G.queue=V,Bo(lc.bind(null,Q,V,g),[g]),Q.flags|=2048,Ra(9,ac.bind(null,Q,V,T,m),void 0,null),T},useId:function(){var g=Jo(),m=hi.identifierPrefix;if(tr){var T=Ho,Q=nt;T=(Q&~(1<<32-Qt(Q)-1)).toString(32)+T,m=":"+m+"R"+T,T=Vo++,0ig&&(m.flags|=128,Q=!0,St(G,!1),m.lanes=4194304)}else{if(!Q)if(g=An(V),g!==null){if(m.flags|=128,Q=!0,g=g.updateQueue,g!==null&&(m.updateQueue=g,m.flags|=4),St(G,!0),G.tail===null&&G.tailMode==="hidden"&&!V.alternate&&!tr)return Lt(m),null}else 2*ei()-G.renderingStartTime>ig&&T!==1073741824&&(m.flags|=128,Q=!0,St(G,!1),m.lanes=4194304);G.isBackwards?(V.sibling=m.child,m.child=V):(g=G.last,g!==null?g.sibling=V:m.child=V,G.last=V)}return G.tail!==null?(m=G.tail,G.rendering=m,G.tail=m.sibling,G.renderingStartTime=ei(),m.sibling=null,g=wr.current,zt(wr,Q?g&1|2:g&1),m):(Lt(m),null);case 22:case 23:return Wd(),Q=m.memoizedState!==null,g!==null&&g.memoizedState!==null!==Q&&(m.flags|=8192),Q&&m.mode&1?Us&1073741824&&(Lt(m),je&&m.subtreeFlags&6&&(m.flags|=8192)):Lt(m),null;case 24:return null;case 25:return null}throw Error(o(156,m.tag))}var lr=a.ReactCurrentOwner,Bn=!1;function er(g,m,T,Q){m.child=g===null?_i(m,null,T,Q):ka(m,g.child,T,Q)}function Ei(g,m,T,Q,G){T=T.render;var V=m.ref;return Rs(m,G),Q=wo(g,m,T,Q,V,G),T=Lh(),g!==null&&!Bn?(m.updateQueue=g.updateQueue,m.flags&=-2053,g.lanes&=~G,Oa(g,m,G)):(tr&&T&&pa(m),m.flags|=1,er(g,m,Q,G),m.child)}function ss(g,m,T,Q,G){if(g===null){var V=T.type;return typeof V=="function"&&!$h(V)&&V.defaultProps===void 0&&T.compare===null&&T.defaultProps===void 0?(m.tag=15,m.type=V,gc(g,m,V,Q,G)):(g=ep(T.type,null,Q,m,m.mode,G),g.ref=m.ref,g.return=m,m.child=g)}if(V=g.child,!(g.lanes&G)){var Ce=V.memoizedProps;if(T=T.compare,T=T!==null?T:es,T(Ce,Q)&&g.ref===m.ref)return Oa(g,m,G)}return m.flags|=1,g=vl(V,Q),g.ref=m.ref,g.return=m,m.child=g}function gc(g,m,T,Q,G){if(g!==null&&es(g.memoizedProps,Q)&&g.ref===m.ref)if(Bn=!1,(g.lanes&G)!==0)g.flags&131072&&(Bn=!0);else return m.lanes=g.lanes,Oa(g,m,G);return HA(g,m,T,Q,G)}function mc(g,m,T){var Q=m.pendingProps,G=Q.children,V=g!==null?g.memoizedState:null;if(Q.mode==="hidden")if(!(m.mode&1))m.memoizedState={baseLanes:0,cachePool:null},zt(os,Us),Us|=T;else if(T&1073741824)m.memoizedState={baseLanes:0,cachePool:null},Q=V!==null?V.baseLanes:T,zt(os,Us),Us|=Q;else return g=V!==null?V.baseLanes|T:T,m.lanes=m.childLanes=1073741824,m.memoizedState={baseLanes:g,cachePool:null},m.updateQueue=null,zt(os,Us),Us|=g,null;else V!==null?(Q=V.baseLanes|T,m.memoizedState=null):Q=T,zt(os,Us),Us|=Q;return er(g,m,G,T),m.child}function GA(g,m){var T=m.ref;(g===null&&T!==null||g!==null&&g.ref!==T)&&(m.flags|=512,m.flags|=2097152)}function HA(g,m,T,Q,G){var V=We(T)?ye:ee.current;return V=Pe(m,V),Rs(m,G),T=wo(g,m,T,Q,V,G),Q=Lh(),g!==null&&!Bn?(m.updateQueue=g.updateQueue,m.flags&=-2053,g.lanes&=~G,Oa(g,m,G)):(tr&&Q&&pa(m),m.flags|=1,er(g,m,T,G),m.child)}function F0(g,m,T,Q,G){if(We(T)){var V=!0;rt(m)}else V=!1;if(Rs(m,G),m.stateNode===null)g!==null&&(g.alternate=null,m.alternate=null,m.flags|=2),Ad(m,T,Q),oo(m,T,Q,G),Q=!0;else if(g===null){var Ce=m.stateNode,Je=m.memoizedProps;Ce.props=Je;var ht=Ce.context,kt=T.contextType;typeof kt=="object"&&kt!==null?kt=ci(kt):(kt=We(T)?ye:ee.current,kt=Pe(m,kt));var ln=T.getDerivedStateFromProps,Nn=typeof ln=="function"||typeof Ce.getSnapshotBeforeUpdate=="function";Nn||typeof Ce.UNSAFE_componentWillReceiveProps!="function"&&typeof Ce.componentWillReceiveProps!="function"||(Je!==Q||ht!==kt)&&pl(m,Ce,Q,kt),Xr=!1;var In=m.memoizedState;Ce.state=In,ms(m,Q,Ce,G),ht=m.memoizedState,Je!==Q||In!==ht||H.current||Xr?(typeof ln=="function"&&(_h(m,T,ln,Q),ht=m.memoizedState),(Je=Xr||Fh(m,T,Je,Q,In,ht,kt))?(Nn||typeof Ce.UNSAFE_componentWillMount!="function"&&typeof Ce.componentWillMount!="function"||(typeof Ce.componentWillMount=="function"&&Ce.componentWillMount(),typeof Ce.UNSAFE_componentWillMount=="function"&&Ce.UNSAFE_componentWillMount()),typeof Ce.componentDidMount=="function"&&(m.flags|=4194308)):(typeof Ce.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=Q,m.memoizedState=ht),Ce.props=Q,Ce.state=ht,Ce.context=kt,Q=Je):(typeof Ce.componentDidMount=="function"&&(m.flags|=4194308),Q=!1)}else{Ce=m.stateNode,Ls(g,m),Je=m.memoizedProps,kt=m.type===m.elementType?Je:mi(m.type,Je),Ce.props=kt,Nn=m.pendingProps,In=Ce.context,ht=T.contextType,typeof ht=="object"&&ht!==null?ht=ci(ht):(ht=We(T)?ye:ee.current,ht=Pe(m,ht));var Er=T.getDerivedStateFromProps;(ln=typeof Er=="function"||typeof Ce.getSnapshotBeforeUpdate=="function")||typeof Ce.UNSAFE_componentWillReceiveProps!="function"&&typeof Ce.componentWillReceiveProps!="function"||(Je!==Nn||In!==ht)&&pl(m,Ce,Q,ht),Xr=!1,In=m.memoizedState,Ce.state=In,ms(m,Q,Ce,G);var mn=m.memoizedState;Je!==Nn||In!==mn||H.current||Xr?(typeof Er=="function"&&(_h(m,T,Er,Q),mn=m.memoizedState),(kt=Xr||Fh(m,T,kt,Q,In,mn,ht)||!1)?(ln||typeof Ce.UNSAFE_componentWillUpdate!="function"&&typeof Ce.componentWillUpdate!="function"||(typeof Ce.componentWillUpdate=="function"&&Ce.componentWillUpdate(Q,mn,ht),typeof Ce.UNSAFE_componentWillUpdate=="function"&&Ce.UNSAFE_componentWillUpdate(Q,mn,ht)),typeof Ce.componentDidUpdate=="function"&&(m.flags|=4),typeof Ce.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof Ce.componentDidUpdate!="function"||Je===g.memoizedProps&&In===g.memoizedState||(m.flags|=4),typeof Ce.getSnapshotBeforeUpdate!="function"||Je===g.memoizedProps&&In===g.memoizedState||(m.flags|=1024),m.memoizedProps=Q,m.memoizedState=mn),Ce.props=Q,Ce.state=mn,Ce.context=ht,Q=kt):(typeof Ce.componentDidUpdate!="function"||Je===g.memoizedProps&&In===g.memoizedState||(m.flags|=4),typeof Ce.getSnapshotBeforeUpdate!="function"||Je===g.memoizedProps&&In===g.memoizedState||(m.flags|=1024),Q=!1)}return zA(g,m,T,Q,V,G)}function zA(g,m,T,Q,G,V){GA(g,m);var Ce=(m.flags&128)!==0;if(!Q&&!Ce)return G&&Xe(m,T,!1),Oa(g,m,V);Q=m.stateNode,lr.current=m;var Je=Ce&&typeof T.getDerivedStateFromError!="function"?null:Q.render();return m.flags|=1,g!==null&&Ce?(m.child=ka(m,g.child,null,V),m.child=ka(m,null,Je,V)):er(g,m,Je,V),m.memoizedState=Q.state,G&&Xe(m,T,!0),m.child}function Sd(g){var m=g.stateNode;m.pendingContext?yt(g,m.pendingContext,m.pendingContext!==m.context):m.context&&yt(g,m.context,!1),Jl(g,m.containerInfo)}function WA(g,m,T,Q,G){return Fn(),ec(G),m.flags|=256,er(g,m,T,Q),m.child}var jh={dehydrated:null,treeContext:null,retryLane:0};function wd(g){return{baseLanes:g,cachePool:null}}function Bd(g,m,T){var Q=m.pendingProps,G=wr.current,V=!1,Ce=(m.flags&128)!==0,Je;if((Je=Ce)||(Je=g!==null&&g.memoizedState===null?!1:(G&2)!==0),Je?(V=!0,m.flags&=-129):(g===null||g.memoizedState!==null)&&(G|=1),zt(wr,G&1),g===null)return xt(m),g=m.memoizedState,g!==null&&(g=g.dehydrated,g!==null)?(m.mode&1?Fs(g)?m.lanes=8:m.lanes=1073741824:m.lanes=1,null):(G=Q.children,g=Q.fallback,V?(Q=m.mode,V=m.child,G={mode:"hidden",children:G},!(Q&1)&&V!==null?(V.childLanes=0,V.pendingProps=G):V=Vd(G,Q,0,null),g=xl(g,Q,T,null),V.return=m,g.return=m,V.sibling=g,m.child=V,m.child.memoizedState=wd(T),m.memoizedState=jh,g):jA(m,G));if(G=g.memoizedState,G!==null){if(Je=G.dehydrated,Je!==null){if(Ce)return m.flags&256?(m.flags&=-257,Vh(g,m,T,Error(o(422)))):m.memoizedState!==null?(m.child=g.child,m.flags|=128,null):(V=Q.fallback,G=m.mode,Q=Vd({mode:"visible",children:Q.children},G,0,null),V=xl(V,G,T,null),V.flags|=2,Q.return=m,V.return=m,Q.sibling=V,m.child=Q,m.mode&1&&ka(m,g.child,null,T),m.child.memoizedState=wd(T),m.memoizedState=jh,V);if(!(m.mode&1))m=Vh(g,m,T,null);else if(Fs(Je))m=Vh(g,m,T,Error(o(419)));else if(Q=(T&g.childLanes)!==0,Bn||Q){if(Q=hi,Q!==null){switch(T&-T){case 4:V=2;break;case 16:V=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:V=32;break;case 536870912:V=268435456;break;default:V=0}Q=V&(Q.suspendedLanes|T)?0:V,Q!==0&&Q!==G.retryLane&&(G.retryLane=Q,bo(g,Q,-1))}ug(),m=Vh(g,m,T,Error(o(421)))}else ps(Je)?(m.flags|=128,m.child=g.child,m=_v.bind(null,g),Io(Je,m),m=null):(T=G.treeContext,Ne&&(is=mr(Je),Mi=m,tr=!0,ys=null,Ui=!1,T!==null&&(rs[Et++]=nt,rs[Et++]=Ho,rs[Et++]=yi,nt=T.id,Ho=T.overflow,yi=m)),m=jA(m,m.pendingProps.children),m.flags|=4096);return m}return V?(Q=VA(g,m,Q.children,Q.fallback,T),V=m.child,G=g.child.memoizedState,V.memoizedState=G===null?wd(T):{baseLanes:G.baseLanes|T,cachePool:null},V.childLanes=g.childLanes&~T,m.memoizedState=jh,Q):(T=P0(g,m,Q.children,T),m.memoizedState=null,T)}return V?(Q=VA(g,m,Q.children,Q.fallback,T),V=m.child,G=g.child.memoizedState,V.memoizedState=G===null?wd(T):{baseLanes:G.baseLanes|T,cachePool:null},V.childLanes=g.childLanes&~T,m.memoizedState=jh,Q):(T=P0(g,m,Q.children,T),m.memoizedState=null,T)}function jA(g,m){return m=Vd({mode:"visible",children:m},g.mode,0,null),m.return=g,g.child=m}function P0(g,m,T,Q){var G=g.child;return g=G.sibling,T=vl(G,{mode:"visible",children:T}),!(m.mode&1)&&(T.lanes=Q),T.return=m,T.sibling=null,g!==null&&(Q=m.deletions,Q===null?(m.deletions=[g],m.flags|=16):Q.push(g)),m.child=T}function VA(g,m,T,Q,G){var V=m.mode;g=g.child;var Ce=g.sibling,Je={mode:"hidden",children:T};return!(V&1)&&m.child!==g?(T=m.child,T.childLanes=0,T.pendingProps=Je,m.deletions=null):(T=vl(g,Je),T.subtreeFlags=g.subtreeFlags&14680064),Ce!==null?Q=vl(Ce,Q):(Q=xl(Q,V,G,null),Q.flags|=2),Q.return=m,T.return=m,T.sibling=Q,m.child=T,Q}function Vh(g,m,T,Q){return Q!==null&&ec(Q),ka(m,g.child,null,T),g=jA(m,m.pendingProps.children),g.flags|=2,m.memoizedState=null,g}function Q0(g,m,T){g.lanes|=m;var Q=g.alternate;Q!==null&&(Q.lanes|=m),la(g.return,m,T)}function JA(g,m,T,Q,G){var V=g.memoizedState;V===null?g.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:Q,tail:T,tailMode:G}:(V.isBackwards=m,V.rendering=null,V.renderingStartTime=0,V.last=Q,V.tail=T,V.tailMode=G)}function k0(g,m,T){var Q=m.pendingProps,G=Q.revealOrder,V=Q.tail;if(er(g,m,Q.children,T),Q=wr.current,Q&2)Q=Q&1|2,m.flags|=128;else{if(g!==null&&g.flags&128)e:for(g=m.child;g!==null;){if(g.tag===13)g.memoizedState!==null&&Q0(g,T,m);else if(g.tag===19)Q0(g,T,m);else if(g.child!==null){g.child.return=g,g=g.child;continue}if(g===m)break e;for(;g.sibling===null;){if(g.return===null||g.return===m)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}Q&=1}if(zt(wr,Q),!(m.mode&1))m.memoizedState=null;else switch(G){case"forwards":for(T=m.child,G=null;T!==null;)g=T.alternate,g!==null&&An(g)===null&&(G=T),T=T.sibling;T=G,T===null?(G=m.child,m.child=null):(G=T.sibling,T.sibling=null),JA(m,!1,G,T,V);break;case"backwards":for(T=null,G=m.child,m.child=null;G!==null;){if(g=G.alternate,g!==null&&An(g)===null){m.child=G;break}g=G.sibling,G.sibling=T,T=G,G=g}JA(m,!0,T,null,V);break;case"together":JA(m,!1,null,null,void 0);break;default:m.memoizedState=null}return m.child}function Oa(g,m,T){if(g!==null&&(m.dependencies=g.dependencies),Ec|=m.lanes,!(T&m.childLanes))return null;if(g!==null&&m.child!==g.child)throw Error(o(153));if(m.child!==null){for(g=m.child,T=vl(g,g.pendingProps),m.child=T,T.return=m;g.sibling!==null;)g=g.sibling,T=T.sibling=vl(g,g.pendingProps),T.return=m;T.sibling=null}return m.child}function bd(g,m,T){switch(m.tag){case 3:Sd(m),Fn();break;case 5:gd(m);break;case 1:We(m.type)&&rt(m);break;case 4:Jl(m,m.stateNode.containerInfo);break;case 10:ks(m,m.type._context,m.memoizedProps.value);break;case 13:var Q=m.memoizedState;if(Q!==null)return Q.dehydrated!==null?(zt(wr,wr.current&1),m.flags|=128,null):T&m.child.childLanes?Bd(g,m,T):(zt(wr,wr.current&1),g=Oa(g,m,T),g!==null?g.sibling:null);zt(wr,wr.current&1);break;case 19:if(Q=(T&m.childLanes)!==0,g.flags&128){if(Q)return k0(g,m,T);m.flags|=128}var G=m.memoizedState;if(G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),zt(wr,wr.current),Q)break;return null;case 22:case 23:return m.lanes=0,mc(g,m,T)}return Oa(g,m,T)}function R0(g,m){switch(_n(m),m.tag){case 1:return We(m.type)&&et(),g=m.flags,g&65536?(m.flags=g&-65537|128,m):null;case 3:return qr(),hn(H),hn(ee),tc(),g=m.flags,g&65536&&!(g&128)?(m.flags=g&-65537|128,m):null;case 5:return kh(m),null;case 13:if(hn(wr),g=m.memoizedState,g!==null&&g.dehydrated!==null){if(m.alternate===null)throw Error(o(340));Fn()}return g=m.flags,g&65536?(m.flags=g&-65537|128,m):null;case 19:return hn(wr),null;case 4:return qr(),null;case 10:return io(m.type._context),null;case 22:case 23:return Wd(),null;case 24:return null;default:return null}}var Td=!1,ql=!1,Iv=typeof WeakSet=="function"?WeakSet:Set,jt=null;function Md(g,m){var T=g.ref;if(T!==null)if(typeof T=="function")try{T(null)}catch(Q){Hi(g,m,Q)}else T.current=null}function YA(g,m,T){try{T()}catch(Q){Hi(g,m,Q)}}var L0=!1;function Dv(g,m){for(ge(g.containerInfo),jt=m;jt!==null;)if(g=jt,m=g.child,(g.subtreeFlags&1028)!==0&&m!==null)m.return=g,jt=m;else for(;jt!==null;){g=jt;try{var T=g.alternate;if(g.flags&1024)switch(g.tag){case 0:case 11:case 15:break;case 1:if(T!==null){var Q=T.memoizedProps,G=T.memoizedState,V=g.stateNode,Ce=V.getSnapshotBeforeUpdate(g.elementType===g.type?Q:mi(g.type,Q),G);V.__reactInternalSnapshotBeforeUpdate=Ce}break;case 3:je&&Mt(g.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(Je){Hi(g,g.return,Je)}if(m=g.sibling,m!==null){m.return=g.return,jt=m;break}jt=g.return}return T=L0,L0=!1,T}function Kl(g,m,T){var Q=m.updateQueue;if(Q=Q!==null?Q.lastEffect:null,Q!==null){var G=Q=Q.next;do{if((G.tag&g)===g){var V=G.destroy;G.destroy=void 0,V!==void 0&&YA(m,T,V)}G=G.next}while(G!==Q)}}function Zl(g,m){if(m=m.updateQueue,m=m!==null?m.lastEffect:null,m!==null){var T=m=m.next;do{if((T.tag&g)===g){var Q=T.create;T.destroy=Q()}T=T.next}while(T!==m)}}function _d(g){var m=g.ref;if(m!==null){var T=g.stateNode;switch(g.tag){case 5:g=De(T);break;default:g=T}typeof m=="function"?m(g):m.current=g}}function N0(g,m,T){if(Rr&&typeof Rr.onCommitFiberUnmount=="function")try{Rr.onCommitFiberUnmount(ul,m)}catch{}switch(m.tag){case 0:case 11:case 14:case 15:if(g=m.updateQueue,g!==null&&(g=g.lastEffect,g!==null)){var Q=g=g.next;do{var G=Q,V=G.destroy;G=G.tag,V!==void 0&&(G&2||G&4)&&YA(m,T,V),Q=Q.next}while(Q!==g)}break;case 1:if(Md(m,T),g=m.stateNode,typeof g.componentWillUnmount=="function")try{g.props=m.memoizedProps,g.state=m.memoizedState,g.componentWillUnmount()}catch(Ce){Hi(m,T,Ce)}break;case 5:Md(m,T);break;case 4:je?W0(g,m,T):ae&&ae&&(m=m.stateNode.containerInfo,T=on(m),or(m,T))}}function O0(g,m,T){for(var Q=m;;)if(N0(g,Q,T),Q.child===null||je&&Q.tag===4){if(Q===m)break;for(;Q.sibling===null;){if(Q.return===null||Q.return===m)return;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}else Q.child.return=Q,Q=Q.child}function U0(g){var m=g.alternate;m!==null&&(g.alternate=null,U0(m)),g.child=null,g.deletions=null,g.sibling=null,g.tag===5&&(m=g.stateNode,m!==null&<(m)),g.stateNode=null,g.return=null,g.dependencies=null,g.memoizedProps=null,g.memoizedState=null,g.pendingProps=null,g.stateNode=null,g.updateQueue=null}function G0(g){return g.tag===5||g.tag===3||g.tag===4}function H0(g){e:for(;;){for(;g.sibling===null;){if(g.return===null||G0(g.return))return null;g=g.return}for(g.sibling.return=g.return,g=g.sibling;g.tag!==5&&g.tag!==6&&g.tag!==18;){if(g.flags&2||g.child===null||g.tag===4)continue e;g.child.return=g,g=g.child}if(!(g.flags&2))return g.stateNode}}function z0(g){if(je){e:{for(var m=g.return;m!==null;){if(G0(m))break e;m=m.return}throw Error(o(160))}var T=m;switch(T.tag){case 5:m=T.stateNode,T.flags&32&&(Vn(m),T.flags&=-33),T=H0(g),qA(g,T,m);break;case 3:case 4:m=T.stateNode.containerInfo,T=H0(g),XA(g,T,m);break;default:throw Error(o(161))}}}function XA(g,m,T){var Q=g.tag;if(Q===5||Q===6)g=g.stateNode,m?tn(T,g,m):Pt(T,g);else if(Q!==4&&(g=g.child,g!==null))for(XA(g,m,T),g=g.sibling;g!==null;)XA(g,m,T),g=g.sibling}function qA(g,m,T){var Q=g.tag;if(Q===5||Q===6)g=g.stateNode,m?cn(T,g,m):Ft(T,g);else if(Q!==4&&(g=g.child,g!==null))for(qA(g,m,T),g=g.sibling;g!==null;)qA(g,m,T),g=g.sibling}function W0(g,m,T){for(var Q=m,G=!1,V,Ce;;){if(!G){G=Q.return;e:for(;;){if(G===null)throw Error(o(160));switch(V=G.stateNode,G.tag){case 5:Ce=!1;break e;case 3:V=V.containerInfo,Ce=!0;break e;case 4:V=V.containerInfo,Ce=!0;break e}G=G.return}G=!0}if(Q.tag===5||Q.tag===6)O0(g,Q,T),Ce?xn(V,Q.stateNode):qt(V,Q.stateNode);else if(Q.tag===18)Ce?Me(V,Q.stateNode):me(V,Q.stateNode);else if(Q.tag===4){if(Q.child!==null){V=Q.stateNode.containerInfo,Ce=!0,Q.child.return=Q,Q=Q.child;continue}}else if(N0(g,Q,T),Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===m)break;for(;Q.sibling===null;){if(Q.return===null||Q.return===m)return;Q=Q.return,Q.tag===4&&(G=!1)}Q.sibling.return=Q.return,Q=Q.sibling}}function KA(g,m){if(je){switch(m.tag){case 0:case 11:case 14:case 15:Kl(3,m,m.return),Zl(3,m),Kl(5,m,m.return);return;case 1:return;case 5:var T=m.stateNode;if(T!=null){var Q=m.memoizedProps;g=g!==null?g.memoizedProps:Q;var G=m.type,V=m.updateQueue;m.updateQueue=null,V!==null&&Sn(T,V,G,g,Q,m)}return;case 6:if(m.stateNode===null)throw Error(o(162));T=m.memoizedProps,mt(m.stateNode,g!==null?g.memoizedProps:T,T);return;case 3:Ne&&g!==null&&g.memoizedState.isDehydrated&&qe(m.stateNode.containerInfo);return;case 12:return;case 13:Fd(m);return;case 19:Fd(m);return;case 17:return}throw Error(o(163))}switch(m.tag){case 0:case 11:case 14:case 15:Kl(3,m,m.return),Zl(3,m),Kl(5,m,m.return);return;case 12:return;case 13:Fd(m);return;case 19:Fd(m);return;case 3:Ne&&g!==null&&g.memoizedState.isDehydrated&&qe(m.stateNode.containerInfo);break;case 22:case 23:return}e:if(ae){switch(m.tag){case 1:case 5:case 6:break e;case 3:case 4:m=m.stateNode,or(m.containerInfo,m.pendingChildren);break e}throw Error(o(163))}}function Fd(g){var m=g.updateQueue;if(m!==null){g.updateQueue=null;var T=g.stateNode;T===null&&(T=g.stateNode=new Iv),m.forEach(function(Q){var G=Fv.bind(null,g,Q);T.has(Q)||(T.add(Q),Q.then(G,G))})}}function Sv(g,m){for(jt=m;jt!==null;){m=jt;var T=m.deletions;if(T!==null)for(var Q=0;Q";case Qd:return":has("+($l(g)||"")+")";case kd:return'[role="'+g.value+'"]';case Rd:return'"'+g.value+'"';case yc:return'[data-testname="'+g.value+'"]';default:throw Error(o(365))}}function eg(g,m){var T=[];g=[g,0];for(var Q=0;QG&&(G=Ce),Q&=~V}if(Q=G,Q=ei()-Q,Q=(120>Q?120:480>Q?480:1080>Q?1080:1920>Q?1920:3e3>Q?3e3:4320>Q?4320:1960*eu(Q/1960))-Q,10g?16:g,ml===null)var Q=!1;else{if(g=ml,ml=null,Ud=0,Un&6)throw Error(o(331));var G=Un;for(Un|=4,jt=g.current;jt!==null;){var V=jt,Ce=V.child;if(jt.flags&16){var Je=V.deletions;if(Je!==null){for(var ht=0;htei()-qh?Ua(g,0):rg|=T),Hs(g,m)}function xc(g,m){m===0&&(g.mode&1?(m=Ur,Ur<<=1,!(Ur&130023424)&&(Ur=4194304)):m=1);var T=Cs();g=zd(g,m),g!==null&&(_a(g,m,T),Hs(g,T))}function _v(g){var m=g.memoizedState,T=0;m!==null&&(T=m.retryLane),xc(g,T)}function Fv(g,m){var T=0;switch(g.tag){case 13:var Q=g.stateNode,G=g.memoizedState;G!==null&&(T=G.retryLane);break;case 19:Q=g.stateNode;break;default:throw Error(o(314))}Q!==null&&Q.delete(m),xc(g,T)}var pg;pg=function(g,m,T){if(g!==null)if(g.memoizedProps!==m.pendingProps||H.current)Bn=!0;else{if(!(g.lanes&T)&&!(m.flags&128))return Bn=!1,bd(g,m,T);Bn=!!(g.flags&131072)}else Bn=!1,tr&&m.flags&1048576&&zo(m,ca,m.index);switch(m.lanes=0,m.tag){case 2:var Q=m.type;g!==null&&(g.alternate=null,m.alternate=null,m.flags|=2),g=m.pendingProps;var G=Pe(m,ee.current);Rs(m,T),G=wo(null,m,Q,g,G,T);var V=Lh();return m.flags|=1,typeof G=="object"&&G!==null&&typeof G.render=="function"&&G.$$typeof===void 0?(m.tag=1,m.memoizedState=null,m.updateQueue=null,We(Q)?(V=!0,rt(m)):V=!1,m.memoizedState=G.state!==null&&G.state!==void 0?G.state:null,gs(m),G.updater=Go,m.stateNode=G,G._reactInternals=m,oo(m,Q,g,T),m=zA(null,m,Q,!0,V,T)):(m.tag=0,tr&&V&&pa(m),er(null,m,G,T),m=m.child),m;case 16:Q=m.elementType;e:{switch(g!==null&&(g.alternate=null,m.alternate=null,m.flags|=2),g=m.pendingProps,G=Q._init,Q=G(Q._payload),m.type=Q,G=m.tag=Qv(Q),g=mi(Q,g),G){case 0:m=HA(null,m,Q,g,T);break e;case 1:m=F0(null,m,Q,g,T);break e;case 11:m=Ei(null,m,Q,g,T);break e;case 14:m=ss(null,m,Q,mi(Q.type,g),T);break e}throw Error(o(306,Q,""))}return m;case 0:return Q=m.type,G=m.pendingProps,G=m.elementType===Q?G:mi(Q,G),HA(g,m,Q,G,T);case 1:return Q=m.type,G=m.pendingProps,G=m.elementType===Q?G:mi(Q,G),F0(g,m,Q,G,T);case 3:e:{if(Sd(m),g===null)throw Error(o(387));Q=m.pendingProps,V=m.memoizedState,G=V.element,Ls(g,m),ms(m,Q,null,T);var Ce=m.memoizedState;if(Q=Ce.element,Ne&&V.isDehydrated)if(V={element:Q,isDehydrated:!1,cache:Ce.cache,transitions:Ce.transitions},m.updateQueue.baseState=V,m.memoizedState=V,m.flags&256){G=Error(o(423)),m=WA(g,m,Q,T,G);break e}else if(Q!==G){G=Error(o(424)),m=WA(g,m,Q,T,G);break e}else for(Ne&&(is=Ma(m.stateNode.containerInfo),Mi=m,tr=!0,ys=null,Ui=!1),T=_i(m,null,Q,T),m.child=T;T;)T.flags=T.flags&-3|4096,T=T.sibling;else{if(Fn(),Q===G){m=Oa(g,m,T);break e}er(g,m,Q,T)}m=m.child}return m;case 5:return gd(m),g===null&&xt(m),Q=m.type,G=m.pendingProps,V=g!==null?g.memoizedProps:null,Ce=G.children,oe(Q,G)?Ce=null:V!==null&&oe(Q,V)&&(m.flags|=32),GA(g,m),er(g,m,Ce,T),m.child;case 6:return g===null&&xt(m),null;case 13:return Bd(g,m,T);case 4:return Jl(m,m.stateNode.containerInfo),Q=m.pendingProps,g===null?m.child=ka(m,null,Q,T):er(g,m,Q,T),m.child;case 11:return Q=m.type,G=m.pendingProps,G=m.elementType===Q?G:mi(Q,G),Ei(g,m,Q,G,T);case 7:return er(g,m,m.pendingProps,T),m.child;case 8:return er(g,m,m.pendingProps.children,T),m.child;case 12:return er(g,m,m.pendingProps.children,T),m.child;case 10:e:{if(Q=m.type._context,G=m.pendingProps,V=m.memoizedProps,Ce=G.value,ks(m,Q,Ce),V!==null)if(As(V.value,Ce)){if(V.children===G.children&&!H.current){m=Oa(g,m,T);break e}}else for(V=m.child,V!==null&&(V.return=m);V!==null;){var Je=V.dependencies;if(Je!==null){Ce=V.child;for(var ht=Je.firstContext;ht!==null;){if(ht.context===Q){if(V.tag===1){ht=Oi(-1,T&-T),ht.tag=2;var kt=V.updateQueue;if(kt!==null){kt=kt.shared;var ln=kt.pending;ln===null?ht.next=ht:(ht.next=ln.next,ln.next=ht),kt.pending=ht}}V.lanes|=T,ht=V.alternate,ht!==null&&(ht.lanes|=T),la(V.return,T,m),Je.lanes|=T;break}ht=ht.next}}else if(V.tag===10)Ce=V.type===m.type?null:V.child;else if(V.tag===18){if(Ce=V.return,Ce===null)throw Error(o(341));Ce.lanes|=T,Je=Ce.alternate,Je!==null&&(Je.lanes|=T),la(Ce,T,m),Ce=V.sibling}else Ce=V.child;if(Ce!==null)Ce.return=V;else for(Ce=V;Ce!==null;){if(Ce===m){Ce=null;break}if(V=Ce.sibling,V!==null){V.return=Ce.return,Ce=V;break}Ce=Ce.return}V=Ce}er(g,m,G.children,T),m=m.child}return m;case 9:return G=m.type,Q=m.pendingProps.children,Rs(m,T),G=ci(G),Q=Q(G),m.flags|=1,er(g,m,Q,T),m.child;case 14:return Q=m.type,G=mi(Q,m.pendingProps),G=mi(Q.type,G),ss(g,m,Q,G,T);case 15:return gc(g,m,m.type,m.pendingProps,T);case 17:return Q=m.type,G=m.pendingProps,G=m.elementType===Q?G:mi(Q,G),g!==null&&(g.alternate=null,m.alternate=null,m.flags|=2),m.tag=1,We(Q)?(g=!0,rt(m)):g=!1,Rs(m,T),Ad(m,Q,G),oo(m,Q,G,T),zA(null,m,Q,!0,g,T);case 19:return k0(g,m,T);case 22:return mc(g,m,T)}throw Error(o(156,m.tag))};function Z0(g,m){return Hl(g,m)}function Pv(g,m,T,Q){this.tag=g,this.key=T,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Q,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function To(g,m,T,Q){return new Pv(g,m,T,Q)}function $h(g){return g=g.prototype,!(!g||!g.isReactComponent)}function Qv(g){if(typeof g=="function")return $h(g)?1:0;if(g!=null){if(g=g.$$typeof,g===x)return 11;if(g===w)return 14}return 2}function vl(g,m){var T=g.alternate;return T===null?(T=To(g.tag,m,g.key,g.mode),T.elementType=g.elementType,T.type=g.type,T.stateNode=g.stateNode,T.alternate=g,g.alternate=T):(T.pendingProps=m,T.type=g.type,T.flags=0,T.subtreeFlags=0,T.deletions=null),T.flags=g.flags&14680064,T.childLanes=g.childLanes,T.lanes=g.lanes,T.child=g.child,T.memoizedProps=g.memoizedProps,T.memoizedState=g.memoizedState,T.updateQueue=g.updateQueue,m=g.dependencies,T.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},T.sibling=g.sibling,T.index=g.index,T.ref=g.ref,T}function ep(g,m,T,Q,G,V){var Ce=2;if(Q=g,typeof g=="function")$h(g)&&(Ce=1);else if(typeof g=="string")Ce=5;else e:switch(g){case p:return xl(T.children,G,V,m);case d:Ce=8,G|=8;break;case A:return g=To(12,T,m,G|2),g.elementType=A,g.lanes=V,g;case D:return g=To(13,T,m,G),g.elementType=D,g.lanes=V,g;case I:return g=To(19,T,m,G),g.elementType=I,g.lanes=V,g;case _:return Vd(T,G,V,m);default:if(typeof g=="object"&&g!==null)switch(g.$$typeof){case y:Ce=10;break e;case C:Ce=9;break e;case x:Ce=11;break e;case w:Ce=14;break e;case B:Ce=16,Q=null;break e}throw Error(o(130,g==null?g:typeof g,""))}return m=To(Ce,T,m,G),m.elementType=g,m.type=Q,m.lanes=V,m}function xl(g,m,T,Q){return g=To(7,g,Q,m),g.lanes=T,g}function Vd(g,m,T,Q){return g=To(22,g,Q,m),g.elementType=_,g.lanes=T,g.stateNode={},g}function Jd(g,m,T){return g=To(6,g,null,m),g.lanes=T,g}function dg(g,m,T){return m=To(4,g.children!==null?g.children:[],g.key,m),m.lanes=T,m.stateNode={containerInfo:g.containerInfo,pendingChildren:null,implementation:g.implementation},m}function kv(g,m,T,Q,G){this.tag=m,this.containerInfo=g,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ze,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bi(0),this.expirationTimes=bi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bi(0),this.identifierPrefix=Q,this.onRecoverableError=G,Ne&&(this.mutableSourceEagerHydrationData=null)}function Ic(g,m,T,Q,G,V,Ce,Je,ht){return g=new kv(g,m,T,Je,ht),m===1?(m=1,V===!0&&(m|=8)):m=0,V=To(3,null,null,m),g.current=V,V.stateNode=g,V.memoizedState={element:Q,isDehydrated:T,cache:null,transitions:null},gs(V),g}function $0(g){if(!g)return Ln;g=g._reactInternals;e:{if(q(g)!==g||g.tag!==1)throw Error(o(170));var m=g;do{switch(m.tag){case 3:m=m.stateNode.context;break e;case 1:if(We(m.type)){m=m.stateNode.__reactInternalMemoizedMergedChildContext;break e}}m=m.return}while(m!==null);throw Error(o(171))}if(g.tag===1){var T=g.type;if(We(T))return ct(g,T,m)}return m}function ey(g){var m=g._reactInternals;if(m===void 0)throw typeof g.render=="function"?Error(o(188)):(g=Object.keys(g).join(","),Error(o(268,g)));return g=he(m),g===null?null:g.stateNode}function ty(g,m){if(g=g.memoizedState,g!==null&&g.dehydrated!==null){var T=g.retryLane;g.retryLane=T!==0&&T=kt&&V>=Nn&&G<=ln&&Ce<=In){g.splice(m,1);break}else if(Q!==kt||T.width!==ht.width||InCe){if(!(V!==Nn||T.height!==ht.height||lnG)){kt>Q&&(ht.width+=kt-Q,ht.x=Q),lnV&&(ht.height+=Nn-V,ht.y=V),InT&&(T=Ce)),Ceig&&(m.flags|=128,Q=!0,St(G,!1),m.lanes=4194304)}else{if(!Q)if(g=An(V),g!==null){if(m.flags|=128,Q=!0,g=g.updateQueue,g!==null&&(m.updateQueue=g,m.flags|=4),St(G,!0),G.tail===null&&G.tailMode==="hidden"&&!V.alternate&&!tr)return Lt(m),null}else 2*ei()-G.renderingStartTime>ig&&T!==1073741824&&(m.flags|=128,Q=!0,St(G,!1),m.lanes=4194304);G.isBackwards?(V.sibling=m.child,m.child=V):(g=G.last,g!==null?g.sibling=V:m.child=V,G.last=V)}return G.tail!==null?(m=G.tail,G.rendering=m,G.tail=m.sibling,G.renderingStartTime=ei(),m.sibling=null,g=wr.current,zt(wr,Q?g&1|2:g&1),m):(Lt(m),null);case 22:case 23:return Wd(),Q=m.memoizedState!==null,g!==null&&g.memoizedState!==null!==Q&&(m.flags|=8192),Q&&m.mode&1?Us&1073741824&&(Lt(m),je&&m.subtreeFlags&6&&(m.flags|=8192)):Lt(m),null;case 24:return null;case 25:return null}throw Error(o(156,m.tag))}var lr=a.ReactCurrentOwner,Bn=!1;function er(g,m,T,Q){m.child=g===null?_i(m,null,T,Q):ka(m,g.child,T,Q)}function Ei(g,m,T,Q,G){T=T.render;var V=m.ref;return Rs(m,G),Q=wo(g,m,T,Q,V,G),T=Lh(),g!==null&&!Bn?(m.updateQueue=g.updateQueue,m.flags&=-2053,g.lanes&=~G,Oa(g,m,G)):(tr&&T&&pa(m),m.flags|=1,er(g,m,Q,G),m.child)}function ss(g,m,T,Q,G){if(g===null){var V=T.type;return typeof V=="function"&&!$h(V)&&V.defaultProps===void 0&&T.compare===null&&T.defaultProps===void 0?(m.tag=15,m.type=V,gc(g,m,V,Q,G)):(g=ep(T.type,null,Q,m,m.mode,G),g.ref=m.ref,g.return=m,m.child=g)}if(V=g.child,!(g.lanes&G)){var Ce=V.memoizedProps;if(T=T.compare,T=T!==null?T:es,T(Ce,Q)&&g.ref===m.ref)return Oa(g,m,G)}return m.flags|=1,g=vl(V,Q),g.ref=m.ref,g.return=m,m.child=g}function gc(g,m,T,Q,G){if(g!==null&&es(g.memoizedProps,Q)&&g.ref===m.ref)if(Bn=!1,(g.lanes&G)!==0)g.flags&131072&&(Bn=!0);else return m.lanes=g.lanes,Oa(g,m,G);return HA(g,m,T,Q,G)}function mc(g,m,T){var Q=m.pendingProps,G=Q.children,V=g!==null?g.memoizedState:null;if(Q.mode==="hidden")if(!(m.mode&1))m.memoizedState={baseLanes:0,cachePool:null},zt(os,Us),Us|=T;else if(T&1073741824)m.memoizedState={baseLanes:0,cachePool:null},Q=V!==null?V.baseLanes:T,zt(os,Us),Us|=Q;else return g=V!==null?V.baseLanes|T:T,m.lanes=m.childLanes=1073741824,m.memoizedState={baseLanes:g,cachePool:null},m.updateQueue=null,zt(os,Us),Us|=g,null;else V!==null?(Q=V.baseLanes|T,m.memoizedState=null):Q=T,zt(os,Us),Us|=Q;return er(g,m,G,T),m.child}function GA(g,m){var T=m.ref;(g===null&&T!==null||g!==null&&g.ref!==T)&&(m.flags|=512,m.flags|=2097152)}function HA(g,m,T,Q,G){var V=We(T)?ye:ee.current;return V=Pe(m,V),Rs(m,G),T=wo(g,m,T,Q,V,G),Q=Lh(),g!==null&&!Bn?(m.updateQueue=g.updateQueue,m.flags&=-2053,g.lanes&=~G,Oa(g,m,G)):(tr&&Q&&pa(m),m.flags|=1,er(g,m,T,G),m.child)}function F0(g,m,T,Q,G){if(We(T)){var V=!0;rt(m)}else V=!1;if(Rs(m,G),m.stateNode===null)g!==null&&(g.alternate=null,m.alternate=null,m.flags|=2),Ad(m,T,Q),oo(m,T,Q,G),Q=!0;else if(g===null){var Ce=m.stateNode,Je=m.memoizedProps;Ce.props=Je;var ht=Ce.context,kt=T.contextType;typeof kt=="object"&&kt!==null?kt=ci(kt):(kt=We(T)?ye:ee.current,kt=Pe(m,kt));var ln=T.getDerivedStateFromProps,Nn=typeof ln=="function"||typeof Ce.getSnapshotBeforeUpdate=="function";Nn||typeof Ce.UNSAFE_componentWillReceiveProps!="function"&&typeof Ce.componentWillReceiveProps!="function"||(Je!==Q||ht!==kt)&&pl(m,Ce,Q,kt),Xr=!1;var In=m.memoizedState;Ce.state=In,ms(m,Q,Ce,G),ht=m.memoizedState,Je!==Q||In!==ht||H.current||Xr?(typeof ln=="function"&&(_h(m,T,ln,Q),ht=m.memoizedState),(Je=Xr||Fh(m,T,Je,Q,In,ht,kt))?(Nn||typeof Ce.UNSAFE_componentWillMount!="function"&&typeof Ce.componentWillMount!="function"||(typeof Ce.componentWillMount=="function"&&Ce.componentWillMount(),typeof Ce.UNSAFE_componentWillMount=="function"&&Ce.UNSAFE_componentWillMount()),typeof Ce.componentDidMount=="function"&&(m.flags|=4194308)):(typeof Ce.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=Q,m.memoizedState=ht),Ce.props=Q,Ce.state=ht,Ce.context=kt,Q=Je):(typeof Ce.componentDidMount=="function"&&(m.flags|=4194308),Q=!1)}else{Ce=m.stateNode,Ls(g,m),Je=m.memoizedProps,kt=m.type===m.elementType?Je:mi(m.type,Je),Ce.props=kt,Nn=m.pendingProps,In=Ce.context,ht=T.contextType,typeof ht=="object"&&ht!==null?ht=ci(ht):(ht=We(T)?ye:ee.current,ht=Pe(m,ht));var Er=T.getDerivedStateFromProps;(ln=typeof Er=="function"||typeof Ce.getSnapshotBeforeUpdate=="function")||typeof Ce.UNSAFE_componentWillReceiveProps!="function"&&typeof Ce.componentWillReceiveProps!="function"||(Je!==Nn||In!==ht)&&pl(m,Ce,Q,ht),Xr=!1,In=m.memoizedState,Ce.state=In,ms(m,Q,Ce,G);var mn=m.memoizedState;Je!==Nn||In!==mn||H.current||Xr?(typeof Er=="function"&&(_h(m,T,Er,Q),mn=m.memoizedState),(kt=Xr||Fh(m,T,kt,Q,In,mn,ht)||!1)?(ln||typeof Ce.UNSAFE_componentWillUpdate!="function"&&typeof Ce.componentWillUpdate!="function"||(typeof Ce.componentWillUpdate=="function"&&Ce.componentWillUpdate(Q,mn,ht),typeof Ce.UNSAFE_componentWillUpdate=="function"&&Ce.UNSAFE_componentWillUpdate(Q,mn,ht)),typeof Ce.componentDidUpdate=="function"&&(m.flags|=4),typeof Ce.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof Ce.componentDidUpdate!="function"||Je===g.memoizedProps&&In===g.memoizedState||(m.flags|=4),typeof Ce.getSnapshotBeforeUpdate!="function"||Je===g.memoizedProps&&In===g.memoizedState||(m.flags|=1024),m.memoizedProps=Q,m.memoizedState=mn),Ce.props=Q,Ce.state=mn,Ce.context=ht,Q=kt):(typeof Ce.componentDidUpdate!="function"||Je===g.memoizedProps&&In===g.memoizedState||(m.flags|=4),typeof Ce.getSnapshotBeforeUpdate!="function"||Je===g.memoizedProps&&In===g.memoizedState||(m.flags|=1024),Q=!1)}return zA(g,m,T,Q,V,G)}function zA(g,m,T,Q,G,V){GA(g,m);var Ce=(m.flags&128)!==0;if(!Q&&!Ce)return G&&Xe(m,T,!1),Oa(g,m,V);Q=m.stateNode,lr.current=m;var Je=Ce&&typeof T.getDerivedStateFromError!="function"?null:Q.render();return m.flags|=1,g!==null&&Ce?(m.child=ka(m,g.child,null,V),m.child=ka(m,null,Je,V)):er(g,m,Je,V),m.memoizedState=Q.state,G&&Xe(m,T,!0),m.child}function Sd(g){var m=g.stateNode;m.pendingContext?yt(g,m.pendingContext,m.pendingContext!==m.context):m.context&&yt(g,m.context,!1),Jl(g,m.containerInfo)}function WA(g,m,T,Q,G){return Fn(),ec(G),m.flags|=256,er(g,m,T,Q),m.child}var jh={dehydrated:null,treeContext:null,retryLane:0};function wd(g){return{baseLanes:g,cachePool:null}}function Bd(g,m,T){var Q=m.pendingProps,G=wr.current,V=!1,Ce=(m.flags&128)!==0,Je;if((Je=Ce)||(Je=g!==null&&g.memoizedState===null?!1:(G&2)!==0),Je?(V=!0,m.flags&=-129):(g===null||g.memoizedState!==null)&&(G|=1),zt(wr,G&1),g===null)return xt(m),g=m.memoizedState,g!==null&&(g=g.dehydrated,g!==null)?(m.mode&1?Fs(g)?m.lanes=8:m.lanes=1073741824:m.lanes=1,null):(G=Q.children,g=Q.fallback,V?(Q=m.mode,V=m.child,G={mode:"hidden",children:G},!(Q&1)&&V!==null?(V.childLanes=0,V.pendingProps=G):V=Vd(G,Q,0,null),g=xl(g,Q,T,null),V.return=m,g.return=m,V.sibling=g,m.child=V,m.child.memoizedState=wd(T),m.memoizedState=jh,g):jA(m,G));if(G=g.memoizedState,G!==null){if(Je=G.dehydrated,Je!==null){if(Ce)return m.flags&256?(m.flags&=-257,Vh(g,m,T,Error(o(422)))):m.memoizedState!==null?(m.child=g.child,m.flags|=128,null):(V=Q.fallback,G=m.mode,Q=Vd({mode:"visible",children:Q.children},G,0,null),V=xl(V,G,T,null),V.flags|=2,Q.return=m,V.return=m,Q.sibling=V,m.child=Q,m.mode&1&&ka(m,g.child,null,T),m.child.memoizedState=wd(T),m.memoizedState=jh,V);if(!(m.mode&1))m=Vh(g,m,T,null);else if(Fs(Je))m=Vh(g,m,T,Error(o(419)));else if(Q=(T&g.childLanes)!==0,Bn||Q){if(Q=hi,Q!==null){switch(T&-T){case 4:V=2;break;case 16:V=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:V=32;break;case 536870912:V=268435456;break;default:V=0}Q=V&(Q.suspendedLanes|T)?0:V,Q!==0&&Q!==G.retryLane&&(G.retryLane=Q,bo(g,Q,-1))}ug(),m=Vh(g,m,T,Error(o(421)))}else ps(Je)?(m.flags|=128,m.child=g.child,m=_v.bind(null,g),Io(Je,m),m=null):(T=G.treeContext,Ne&&(is=mr(Je),Mi=m,tr=!0,ys=null,Ui=!1,T!==null&&(rs[Et++]=nt,rs[Et++]=Ho,rs[Et++]=yi,nt=T.id,Ho=T.overflow,yi=m)),m=jA(m,m.pendingProps.children),m.flags|=4096);return m}return V?(Q=VA(g,m,Q.children,Q.fallback,T),V=m.child,G=g.child.memoizedState,V.memoizedState=G===null?wd(T):{baseLanes:G.baseLanes|T,cachePool:null},V.childLanes=g.childLanes&~T,m.memoizedState=jh,Q):(T=P0(g,m,Q.children,T),m.memoizedState=null,T)}return V?(Q=VA(g,m,Q.children,Q.fallback,T),V=m.child,G=g.child.memoizedState,V.memoizedState=G===null?wd(T):{baseLanes:G.baseLanes|T,cachePool:null},V.childLanes=g.childLanes&~T,m.memoizedState=jh,Q):(T=P0(g,m,Q.children,T),m.memoizedState=null,T)}function jA(g,m){return m=Vd({mode:"visible",children:m},g.mode,0,null),m.return=g,g.child=m}function P0(g,m,T,Q){var G=g.child;return g=G.sibling,T=vl(G,{mode:"visible",children:T}),!(m.mode&1)&&(T.lanes=Q),T.return=m,T.sibling=null,g!==null&&(Q=m.deletions,Q===null?(m.deletions=[g],m.flags|=16):Q.push(g)),m.child=T}function VA(g,m,T,Q,G){var V=m.mode;g=g.child;var Ce=g.sibling,Je={mode:"hidden",children:T};return!(V&1)&&m.child!==g?(T=m.child,T.childLanes=0,T.pendingProps=Je,m.deletions=null):(T=vl(g,Je),T.subtreeFlags=g.subtreeFlags&14680064),Ce!==null?Q=vl(Ce,Q):(Q=xl(Q,V,G,null),Q.flags|=2),Q.return=m,T.return=m,T.sibling=Q,m.child=T,Q}function Vh(g,m,T,Q){return Q!==null&&ec(Q),ka(m,g.child,null,T),g=jA(m,m.pendingProps.children),g.flags|=2,m.memoizedState=null,g}function Q0(g,m,T){g.lanes|=m;var Q=g.alternate;Q!==null&&(Q.lanes|=m),la(g.return,m,T)}function JA(g,m,T,Q,G){var V=g.memoizedState;V===null?g.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:Q,tail:T,tailMode:G}:(V.isBackwards=m,V.rendering=null,V.renderingStartTime=0,V.last=Q,V.tail=T,V.tailMode=G)}function k0(g,m,T){var Q=m.pendingProps,G=Q.revealOrder,V=Q.tail;if(er(g,m,Q.children,T),Q=wr.current,Q&2)Q=Q&1|2,m.flags|=128;else{if(g!==null&&g.flags&128)e:for(g=m.child;g!==null;){if(g.tag===13)g.memoizedState!==null&&Q0(g,T,m);else if(g.tag===19)Q0(g,T,m);else if(g.child!==null){g.child.return=g,g=g.child;continue}if(g===m)break e;for(;g.sibling===null;){if(g.return===null||g.return===m)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}Q&=1}if(zt(wr,Q),!(m.mode&1))m.memoizedState=null;else switch(G){case"forwards":for(T=m.child,G=null;T!==null;)g=T.alternate,g!==null&&An(g)===null&&(G=T),T=T.sibling;T=G,T===null?(G=m.child,m.child=null):(G=T.sibling,T.sibling=null),JA(m,!1,G,T,V);break;case"backwards":for(T=null,G=m.child,m.child=null;G!==null;){if(g=G.alternate,g!==null&&An(g)===null){m.child=G;break}g=G.sibling,G.sibling=T,T=G,G=g}JA(m,!0,T,null,V);break;case"together":JA(m,!1,null,null,void 0);break;default:m.memoizedState=null}return m.child}function Oa(g,m,T){if(g!==null&&(m.dependencies=g.dependencies),Ec|=m.lanes,!(T&m.childLanes))return null;if(g!==null&&m.child!==g.child)throw Error(o(153));if(m.child!==null){for(g=m.child,T=vl(g,g.pendingProps),m.child=T,T.return=m;g.sibling!==null;)g=g.sibling,T=T.sibling=vl(g,g.pendingProps),T.return=m;T.sibling=null}return m.child}function bd(g,m,T){switch(m.tag){case 3:Sd(m),Fn();break;case 5:gd(m);break;case 1:We(m.type)&&rt(m);break;case 4:Jl(m,m.stateNode.containerInfo);break;case 10:ks(m,m.type._context,m.memoizedProps.value);break;case 13:var Q=m.memoizedState;if(Q!==null)return Q.dehydrated!==null?(zt(wr,wr.current&1),m.flags|=128,null):T&m.child.childLanes?Bd(g,m,T):(zt(wr,wr.current&1),g=Oa(g,m,T),g!==null?g.sibling:null);zt(wr,wr.current&1);break;case 19:if(Q=(T&m.childLanes)!==0,g.flags&128){if(Q)return k0(g,m,T);m.flags|=128}var G=m.memoizedState;if(G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),zt(wr,wr.current),Q)break;return null;case 22:case 23:return m.lanes=0,mc(g,m,T)}return Oa(g,m,T)}function R0(g,m){switch(_n(m),m.tag){case 1:return We(m.type)&&et(),g=m.flags,g&65536?(m.flags=g&-65537|128,m):null;case 3:return qr(),hn(H),hn(ee),tc(),g=m.flags,g&65536&&!(g&128)?(m.flags=g&-65537|128,m):null;case 5:return kh(m),null;case 13:if(hn(wr),g=m.memoizedState,g!==null&&g.dehydrated!==null){if(m.alternate===null)throw Error(o(340));Fn()}return g=m.flags,g&65536?(m.flags=g&-65537|128,m):null;case 19:return hn(wr),null;case 4:return qr(),null;case 10:return io(m.type._context),null;case 22:case 23:return Wd(),null;case 24:return null;default:return null}}var Td=!1,ql=!1,Iv=typeof WeakSet=="function"?WeakSet:Set,jt=null;function Md(g,m){var T=g.ref;if(T!==null)if(typeof T=="function")try{T(null)}catch(Q){Hi(g,m,Q)}else T.current=null}function YA(g,m,T){try{T()}catch(Q){Hi(g,m,Q)}}var L0=!1;function Dv(g,m){for(ge(g.containerInfo),jt=m;jt!==null;)if(g=jt,m=g.child,(g.subtreeFlags&1028)!==0&&m!==null)m.return=g,jt=m;else for(;jt!==null;){g=jt;try{var T=g.alternate;if(g.flags&1024)switch(g.tag){case 0:case 11:case 15:break;case 1:if(T!==null){var Q=T.memoizedProps,G=T.memoizedState,V=g.stateNode,Ce=V.getSnapshotBeforeUpdate(g.elementType===g.type?Q:mi(g.type,Q),G);V.__reactInternalSnapshotBeforeUpdate=Ce}break;case 3:je&&Mt(g.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(Je){Hi(g,g.return,Je)}if(m=g.sibling,m!==null){m.return=g.return,jt=m;break}jt=g.return}return T=L0,L0=!1,T}function Kl(g,m,T){var Q=m.updateQueue;if(Q=Q!==null?Q.lastEffect:null,Q!==null){var G=Q=Q.next;do{if((G.tag&g)===g){var V=G.destroy;G.destroy=void 0,V!==void 0&&YA(m,T,V)}G=G.next}while(G!==Q)}}function Zl(g,m){if(m=m.updateQueue,m=m!==null?m.lastEffect:null,m!==null){var T=m=m.next;do{if((T.tag&g)===g){var Q=T.create;T.destroy=Q()}T=T.next}while(T!==m)}}function _d(g){var m=g.ref;if(m!==null){var T=g.stateNode;switch(g.tag){case 5:g=De(T);break;default:g=T}typeof m=="function"?m(g):m.current=g}}function N0(g,m,T){if(Rr&&typeof Rr.onCommitFiberUnmount=="function")try{Rr.onCommitFiberUnmount(ul,m)}catch{}switch(m.tag){case 0:case 11:case 14:case 15:if(g=m.updateQueue,g!==null&&(g=g.lastEffect,g!==null)){var Q=g=g.next;do{var G=Q,V=G.destroy;G=G.tag,V!==void 0&&(G&2||G&4)&&YA(m,T,V),Q=Q.next}while(Q!==g)}break;case 1:if(Md(m,T),g=m.stateNode,typeof g.componentWillUnmount=="function")try{g.props=m.memoizedProps,g.state=m.memoizedState,g.componentWillUnmount()}catch(Ce){Hi(m,T,Ce)}break;case 5:Md(m,T);break;case 4:je?W0(g,m,T):le&&le&&(m=m.stateNode.containerInfo,T=on(m),or(m,T))}}function O0(g,m,T){for(var Q=m;;)if(N0(g,Q,T),Q.child===null||je&&Q.tag===4){if(Q===m)break;for(;Q.sibling===null;){if(Q.return===null||Q.return===m)return;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}else Q.child.return=Q,Q=Q.child}function U0(g){var m=g.alternate;m!==null&&(g.alternate=null,U0(m)),g.child=null,g.deletions=null,g.sibling=null,g.tag===5&&(m=g.stateNode,m!==null&<(m)),g.stateNode=null,g.return=null,g.dependencies=null,g.memoizedProps=null,g.memoizedState=null,g.pendingProps=null,g.stateNode=null,g.updateQueue=null}function G0(g){return g.tag===5||g.tag===3||g.tag===4}function H0(g){e:for(;;){for(;g.sibling===null;){if(g.return===null||G0(g.return))return null;g=g.return}for(g.sibling.return=g.return,g=g.sibling;g.tag!==5&&g.tag!==6&&g.tag!==18;){if(g.flags&2||g.child===null||g.tag===4)continue e;g.child.return=g,g=g.child}if(!(g.flags&2))return g.stateNode}}function z0(g){if(je){e:{for(var m=g.return;m!==null;){if(G0(m))break e;m=m.return}throw Error(o(160))}var T=m;switch(T.tag){case 5:m=T.stateNode,T.flags&32&&(Vn(m),T.flags&=-33),T=H0(g),qA(g,T,m);break;case 3:case 4:m=T.stateNode.containerInfo,T=H0(g),XA(g,T,m);break;default:throw Error(o(161))}}}function XA(g,m,T){var Q=g.tag;if(Q===5||Q===6)g=g.stateNode,m?tn(T,g,m):Pt(T,g);else if(Q!==4&&(g=g.child,g!==null))for(XA(g,m,T),g=g.sibling;g!==null;)XA(g,m,T),g=g.sibling}function qA(g,m,T){var Q=g.tag;if(Q===5||Q===6)g=g.stateNode,m?cn(T,g,m):Ft(T,g);else if(Q!==4&&(g=g.child,g!==null))for(qA(g,m,T),g=g.sibling;g!==null;)qA(g,m,T),g=g.sibling}function W0(g,m,T){for(var Q=m,G=!1,V,Ce;;){if(!G){G=Q.return;e:for(;;){if(G===null)throw Error(o(160));switch(V=G.stateNode,G.tag){case 5:Ce=!1;break e;case 3:V=V.containerInfo,Ce=!0;break e;case 4:V=V.containerInfo,Ce=!0;break e}G=G.return}G=!0}if(Q.tag===5||Q.tag===6)O0(g,Q,T),Ce?xn(V,Q.stateNode):qt(V,Q.stateNode);else if(Q.tag===18)Ce?Me(V,Q.stateNode):me(V,Q.stateNode);else if(Q.tag===4){if(Q.child!==null){V=Q.stateNode.containerInfo,Ce=!0,Q.child.return=Q,Q=Q.child;continue}}else if(N0(g,Q,T),Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===m)break;for(;Q.sibling===null;){if(Q.return===null||Q.return===m)return;Q=Q.return,Q.tag===4&&(G=!1)}Q.sibling.return=Q.return,Q=Q.sibling}}function KA(g,m){if(je){switch(m.tag){case 0:case 11:case 14:case 15:Kl(3,m,m.return),Zl(3,m),Kl(5,m,m.return);return;case 1:return;case 5:var T=m.stateNode;if(T!=null){var Q=m.memoizedProps;g=g!==null?g.memoizedProps:Q;var G=m.type,V=m.updateQueue;m.updateQueue=null,V!==null&&Sn(T,V,G,g,Q,m)}return;case 6:if(m.stateNode===null)throw Error(o(162));T=m.memoizedProps,mt(m.stateNode,g!==null?g.memoizedProps:T,T);return;case 3:Ne&&g!==null&&g.memoizedState.isDehydrated&&qe(m.stateNode.containerInfo);return;case 12:return;case 13:Fd(m);return;case 19:Fd(m);return;case 17:return}throw Error(o(163))}switch(m.tag){case 0:case 11:case 14:case 15:Kl(3,m,m.return),Zl(3,m),Kl(5,m,m.return);return;case 12:return;case 13:Fd(m);return;case 19:Fd(m);return;case 3:Ne&&g!==null&&g.memoizedState.isDehydrated&&qe(m.stateNode.containerInfo);break;case 22:case 23:return}e:if(le){switch(m.tag){case 1:case 5:case 6:break e;case 3:case 4:m=m.stateNode,or(m.containerInfo,m.pendingChildren);break e}throw Error(o(163))}}function Fd(g){var m=g.updateQueue;if(m!==null){g.updateQueue=null;var T=g.stateNode;T===null&&(T=g.stateNode=new Iv),m.forEach(function(Q){var G=Fv.bind(null,g,Q);T.has(Q)||(T.add(Q),Q.then(G,G))})}}function Sv(g,m){for(jt=m;jt!==null;){m=jt;var T=m.deletions;if(T!==null)for(var Q=0;Q";case Qd:return":has("+($l(g)||"")+")";case kd:return'[role="'+g.value+'"]';case Rd:return'"'+g.value+'"';case yc:return'[data-testname="'+g.value+'"]';default:throw Error(o(365))}}function eg(g,m){var T=[];g=[g,0];for(var Q=0;QG&&(G=Ce),Q&=~V}if(Q=G,Q=ei()-Q,Q=(120>Q?120:480>Q?480:1080>Q?1080:1920>Q?1920:3e3>Q?3e3:4320>Q?4320:1960*eu(Q/1960))-Q,10g?16:g,ml===null)var Q=!1;else{if(g=ml,ml=null,Ud=0,Un&6)throw Error(o(331));var G=Un;for(Un|=4,jt=g.current;jt!==null;){var V=jt,Ce=V.child;if(jt.flags&16){var Je=V.deletions;if(Je!==null){for(var ht=0;htei()-qh?Ua(g,0):rg|=T),Hs(g,m)}function xc(g,m){m===0&&(g.mode&1?(m=Ur,Ur<<=1,!(Ur&130023424)&&(Ur=4194304)):m=1);var T=Cs();g=zd(g,m),g!==null&&(_a(g,m,T),Hs(g,T))}function _v(g){var m=g.memoizedState,T=0;m!==null&&(T=m.retryLane),xc(g,T)}function Fv(g,m){var T=0;switch(g.tag){case 13:var Q=g.stateNode,G=g.memoizedState;G!==null&&(T=G.retryLane);break;case 19:Q=g.stateNode;break;default:throw Error(o(314))}Q!==null&&Q.delete(m),xc(g,T)}var pg;pg=function(g,m,T){if(g!==null)if(g.memoizedProps!==m.pendingProps||H.current)Bn=!0;else{if(!(g.lanes&T)&&!(m.flags&128))return Bn=!1,bd(g,m,T);Bn=!!(g.flags&131072)}else Bn=!1,tr&&m.flags&1048576&&zo(m,ca,m.index);switch(m.lanes=0,m.tag){case 2:var Q=m.type;g!==null&&(g.alternate=null,m.alternate=null,m.flags|=2),g=m.pendingProps;var G=Pe(m,ee.current);Rs(m,T),G=wo(null,m,Q,g,G,T);var V=Lh();return m.flags|=1,typeof G=="object"&&G!==null&&typeof G.render=="function"&&G.$$typeof===void 0?(m.tag=1,m.memoizedState=null,m.updateQueue=null,We(Q)?(V=!0,rt(m)):V=!1,m.memoizedState=G.state!==null&&G.state!==void 0?G.state:null,gs(m),G.updater=Go,m.stateNode=G,G._reactInternals=m,oo(m,Q,g,T),m=zA(null,m,Q,!0,V,T)):(m.tag=0,tr&&V&&pa(m),er(null,m,G,T),m=m.child),m;case 16:Q=m.elementType;e:{switch(g!==null&&(g.alternate=null,m.alternate=null,m.flags|=2),g=m.pendingProps,G=Q._init,Q=G(Q._payload),m.type=Q,G=m.tag=Qv(Q),g=mi(Q,g),G){case 0:m=HA(null,m,Q,g,T);break e;case 1:m=F0(null,m,Q,g,T);break e;case 11:m=Ei(null,m,Q,g,T);break e;case 14:m=ss(null,m,Q,mi(Q.type,g),T);break e}throw Error(o(306,Q,""))}return m;case 0:return Q=m.type,G=m.pendingProps,G=m.elementType===Q?G:mi(Q,G),HA(g,m,Q,G,T);case 1:return Q=m.type,G=m.pendingProps,G=m.elementType===Q?G:mi(Q,G),F0(g,m,Q,G,T);case 3:e:{if(Sd(m),g===null)throw Error(o(387));Q=m.pendingProps,V=m.memoizedState,G=V.element,Ls(g,m),ms(m,Q,null,T);var Ce=m.memoizedState;if(Q=Ce.element,Ne&&V.isDehydrated)if(V={element:Q,isDehydrated:!1,cache:Ce.cache,transitions:Ce.transitions},m.updateQueue.baseState=V,m.memoizedState=V,m.flags&256){G=Error(o(423)),m=WA(g,m,Q,T,G);break e}else if(Q!==G){G=Error(o(424)),m=WA(g,m,Q,T,G);break e}else for(Ne&&(is=Ma(m.stateNode.containerInfo),Mi=m,tr=!0,ys=null,Ui=!1),T=_i(m,null,Q,T),m.child=T;T;)T.flags=T.flags&-3|4096,T=T.sibling;else{if(Fn(),Q===G){m=Oa(g,m,T);break e}er(g,m,Q,T)}m=m.child}return m;case 5:return gd(m),g===null&&xt(m),Q=m.type,G=m.pendingProps,V=g!==null?g.memoizedProps:null,Ce=G.children,oe(Q,G)?Ce=null:V!==null&&oe(Q,V)&&(m.flags|=32),GA(g,m),er(g,m,Ce,T),m.child;case 6:return g===null&&xt(m),null;case 13:return Bd(g,m,T);case 4:return Jl(m,m.stateNode.containerInfo),Q=m.pendingProps,g===null?m.child=ka(m,null,Q,T):er(g,m,Q,T),m.child;case 11:return Q=m.type,G=m.pendingProps,G=m.elementType===Q?G:mi(Q,G),Ei(g,m,Q,G,T);case 7:return er(g,m,m.pendingProps,T),m.child;case 8:return er(g,m,m.pendingProps.children,T),m.child;case 12:return er(g,m,m.pendingProps.children,T),m.child;case 10:e:{if(Q=m.type._context,G=m.pendingProps,V=m.memoizedProps,Ce=G.value,ks(m,Q,Ce),V!==null)if(As(V.value,Ce)){if(V.children===G.children&&!H.current){m=Oa(g,m,T);break e}}else for(V=m.child,V!==null&&(V.return=m);V!==null;){var Je=V.dependencies;if(Je!==null){Ce=V.child;for(var ht=Je.firstContext;ht!==null;){if(ht.context===Q){if(V.tag===1){ht=Oi(-1,T&-T),ht.tag=2;var kt=V.updateQueue;if(kt!==null){kt=kt.shared;var ln=kt.pending;ln===null?ht.next=ht:(ht.next=ln.next,ln.next=ht),kt.pending=ht}}V.lanes|=T,ht=V.alternate,ht!==null&&(ht.lanes|=T),la(V.return,T,m),Je.lanes|=T;break}ht=ht.next}}else if(V.tag===10)Ce=V.type===m.type?null:V.child;else if(V.tag===18){if(Ce=V.return,Ce===null)throw Error(o(341));Ce.lanes|=T,Je=Ce.alternate,Je!==null&&(Je.lanes|=T),la(Ce,T,m),Ce=V.sibling}else Ce=V.child;if(Ce!==null)Ce.return=V;else for(Ce=V;Ce!==null;){if(Ce===m){Ce=null;break}if(V=Ce.sibling,V!==null){V.return=Ce.return,Ce=V;break}Ce=Ce.return}V=Ce}er(g,m,G.children,T),m=m.child}return m;case 9:return G=m.type,Q=m.pendingProps.children,Rs(m,T),G=ci(G),Q=Q(G),m.flags|=1,er(g,m,Q,T),m.child;case 14:return Q=m.type,G=mi(Q,m.pendingProps),G=mi(Q.type,G),ss(g,m,Q,G,T);case 15:return gc(g,m,m.type,m.pendingProps,T);case 17:return Q=m.type,G=m.pendingProps,G=m.elementType===Q?G:mi(Q,G),g!==null&&(g.alternate=null,m.alternate=null,m.flags|=2),m.tag=1,We(Q)?(g=!0,rt(m)):g=!1,Rs(m,T),Ad(m,Q,G),oo(m,Q,G,T),zA(null,m,Q,!0,g,T);case 19:return k0(g,m,T);case 22:return mc(g,m,T)}throw Error(o(156,m.tag))};function Z0(g,m){return Hl(g,m)}function Pv(g,m,T,Q){this.tag=g,this.key=T,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Q,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function To(g,m,T,Q){return new Pv(g,m,T,Q)}function $h(g){return g=g.prototype,!(!g||!g.isReactComponent)}function Qv(g){if(typeof g=="function")return $h(g)?1:0;if(g!=null){if(g=g.$$typeof,g===x)return 11;if(g===w)return 14}return 2}function vl(g,m){var T=g.alternate;return T===null?(T=To(g.tag,m,g.key,g.mode),T.elementType=g.elementType,T.type=g.type,T.stateNode=g.stateNode,T.alternate=g,g.alternate=T):(T.pendingProps=m,T.type=g.type,T.flags=0,T.subtreeFlags=0,T.deletions=null),T.flags=g.flags&14680064,T.childLanes=g.childLanes,T.lanes=g.lanes,T.child=g.child,T.memoizedProps=g.memoizedProps,T.memoizedState=g.memoizedState,T.updateQueue=g.updateQueue,m=g.dependencies,T.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},T.sibling=g.sibling,T.index=g.index,T.ref=g.ref,T}function ep(g,m,T,Q,G,V){var Ce=2;if(Q=g,typeof g=="function")$h(g)&&(Ce=1);else if(typeof g=="string")Ce=5;else e:switch(g){case p:return xl(T.children,G,V,m);case d:Ce=8,G|=8;break;case A:return g=To(12,T,m,G|2),g.elementType=A,g.lanes=V,g;case D:return g=To(13,T,m,G),g.elementType=D,g.lanes=V,g;case I:return g=To(19,T,m,G),g.elementType=I,g.lanes=V,g;case _:return Vd(T,G,V,m);default:if(typeof g=="object"&&g!==null)switch(g.$$typeof){case y:Ce=10;break e;case C:Ce=9;break e;case x:Ce=11;break e;case w:Ce=14;break e;case B:Ce=16,Q=null;break e}throw Error(o(130,g==null?g:typeof g,""))}return m=To(Ce,T,m,G),m.elementType=g,m.type=Q,m.lanes=V,m}function xl(g,m,T,Q){return g=To(7,g,Q,m),g.lanes=T,g}function Vd(g,m,T,Q){return g=To(22,g,Q,m),g.elementType=_,g.lanes=T,g.stateNode={},g}function Jd(g,m,T){return g=To(6,g,null,m),g.lanes=T,g}function dg(g,m,T){return m=To(4,g.children!==null?g.children:[],g.key,m),m.lanes=T,m.stateNode={containerInfo:g.containerInfo,pendingChildren:null,implementation:g.implementation},m}function kv(g,m,T,Q,G){this.tag=m,this.containerInfo=g,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ze,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bi(0),this.expirationTimes=bi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bi(0),this.identifierPrefix=Q,this.onRecoverableError=G,Ne&&(this.mutableSourceEagerHydrationData=null)}function Ic(g,m,T,Q,G,V,Ce,Je,ht){return g=new kv(g,m,T,Je,ht),m===1?(m=1,V===!0&&(m|=8)):m=0,V=To(3,null,null,m),g.current=V,V.stateNode=g,V.memoizedState={element:Q,isDehydrated:T,cache:null,transitions:null},gs(V),g}function $0(g){if(!g)return Ln;g=g._reactInternals;e:{if(q(g)!==g||g.tag!==1)throw Error(o(170));var m=g;do{switch(m.tag){case 3:m=m.stateNode.context;break e;case 1:if(We(m.type)){m=m.stateNode.__reactInternalMemoizedMergedChildContext;break e}}m=m.return}while(m!==null);throw Error(o(171))}if(g.tag===1){var T=g.type;if(We(T))return ct(g,T,m)}return m}function ey(g){var m=g._reactInternals;if(m===void 0)throw typeof g.render=="function"?Error(o(188)):(g=Object.keys(g).join(","),Error(o(268,g)));return g=he(m),g===null?null:g.stateNode}function ty(g,m){if(g=g.memoizedState,g!==null&&g.dehydrated!==null){var T=g.retryLane;g.retryLane=T!==0&&T=kt&&V>=Nn&&G<=ln&&Ce<=In){g.splice(m,1);break}else if(Q!==kt||T.width!==ht.width||InCe){if(!(V!==Nn||T.height!==ht.height||lnG)){kt>Q&&(ht.width+=kt-Q,ht.x=Q),lnV&&(ht.height+=Nn-V,ht.y=V),InT&&(T=Ce)),Ce ")+` No matching component was found for: - `)+g.join(" > ")}return null},n.getPublicRootInstance=function(g){if(g=g.current,!g.child)return null;switch(g.child.tag){case 5:return De(g.child.stateNode);default:return g.child.stateNode}},n.injectIntoDevTools=function(g){if(g={bundleType:g.bundleType,version:g.version,rendererPackageName:g.rendererPackageName,rendererConfig:g.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:a.ReactCurrentDispatcher,findHostInstanceByFiber:Rv,findFiberByHostInstance:g.findFiberByHostInstance||Yd,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")g=!1;else{var m=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(m.isDisabled||!m.supportsFiber)g=!0;else{try{ul=m.inject(g),Rr=m}catch{}g=!!m.checkDCE}}return g},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(g,m,T,Q){if(!$)throw Error(o(363));g=tg(g,m);var G=Ot(g,T,Q).disconnect;return{disconnect:function(){G()}}},n.registerMutableSourceForHydration=function(g,m){var T=m._getVersion;T=T(m._source),g.mutableSourceEagerHydrationData==null?g.mutableSourceEagerHydrationData=[m,T]:g.mutableSourceEagerHydrationData.push(m,T)},n.runWithPriority=function(g,m){var T=bt;try{return bt=g,m()}finally{bt=T}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(g,m,T,Q){var G=m.current,V=Cs(),Ce=yl(G);return T=$0(T),m.context===null?m.context=T:m.pendingContext=T,m=Oi(V,Ce),m.payload={element:g},Q=Q===void 0?null:Q,Q!==null&&(m.callback=Q),ts(G,m),g=bo(G,Ce,V),g!==null&&So(g,G,Ce),Ce},n};tL.exports=nV;var rV=tL.exports;const iV=zE(rV),sV=t=>typeof t=="object"&&typeof t.then=="function",_p=[];function iL(t,e,n=(r,i)=>r===i){if(t===e)return!0;if(!t||!e)return!1;const r=t.length;if(e.length!==r)return!1;for(let i=0;i0&&(s.timeout&&clearTimeout(s.timeout),s.timeout=setTimeout(s.remove,r.lifespan)),s.response;if(!n)throw s.promise}const i={keys:e,equal:r.equal,remove:()=>{const s=_p.indexOf(i);s!==-1&&_p.splice(s,1)},promise:(sV(t)?t:t(...e)).then(s=>{i.response=s,r.lifespan&&r.lifespan>0&&(i.timeout=setTimeout(i.remove,r.lifespan))}).catch(s=>i.error=s)};if(_p.push(i),!n)throw i.promise}const oV=(t,e,n)=>sL(t,e,!1,n),aV=(t,e,n)=>void sL(t,e,!0,n),lV=t=>{if(t===void 0||t.length===0)_p.splice(0,_p.length);else{const e=_p.find(n=>iL(t,n.keys,n.equal));e&&e.remove()}},eB={},uV=t=>void Object.assign(eB,t);function cV(t,e){function n(p,{args:d=[],attach:A,...y},C){let x=`${p[0].toUpperCase()}${p.slice(1)}`,D;if(p==="primitive"){if(y.object===void 0)throw new Error("R3F: Primitives without 'object' are invalid!");const I=y.object;D=wf(I,{type:p,root:C,attach:A,primitive:!0})}else{const I=eB[x];if(!I)throw new Error(`R3F: ${x} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`);if(!Array.isArray(d))throw new Error("R3F: The args prop must be an array!");D=wf(new I(...d),{type:p,root:C,attach:A,memoizedProps:{args:d}})}return D.__r3f.attach===void 0&&(D instanceof Hn?D.__r3f.attach="geometry":D instanceof Ni&&(D.__r3f.attach="material")),x!=="inject"&&uI(D,y),D}function r(p,d){let A=!1;if(d){var y,C;(y=d.__r3f)!=null&&y.attach?lI(p,d,d.__r3f.attach):d.isObject3D&&p.isObject3D&&(p.add(d),A=!0),A||(C=p.__r3f)==null||C.objects.push(d),d.__r3f||wf(d,{}),d.__r3f.parent=p,jS(d),Bf(d)}}function i(p,d,A){let y=!1;if(d){var C,x;if((C=d.__r3f)!=null&&C.attach)lI(p,d,d.__r3f.attach);else if(d.isObject3D&&p.isObject3D){d.parent=p,d.dispatchEvent({type:"added"}),p.dispatchEvent({type:"childadded",child:d});const D=p.children.filter(w=>w!==d),I=D.indexOf(A);p.children=[...D.slice(0,I),d,...D.slice(I)],y=!0}y||(x=p.__r3f)==null||x.objects.push(d),d.__r3f||wf(d,{}),d.__r3f.parent=p,jS(d),Bf(d)}}function s(p,d,A=!1){p&&[...p].forEach(y=>o(d,y,A))}function o(p,d,A){if(d){var y,C,x;if(d.__r3f&&(d.__r3f.parent=null),(y=p.__r3f)!=null&&y.objects&&(p.__r3f.objects=p.__r3f.objects.filter(_=>_!==d)),(C=d.__r3f)!=null&&C.attach)W_(p,d,d.__r3f.attach);else if(d.isObject3D&&p.isObject3D){var D;p.remove(d),(D=d.__r3f)!=null&&D.root&&yV(Z1(d),d)}const w=(x=d.__r3f)==null?void 0:x.primitive,B=!w&&(A===void 0?d.dispose!==null:A);if(!w){var I;s((I=d.__r3f)==null?void 0:I.objects,d,B),s(d.children,d,B)}if(delete d.__r3f,B&&d.dispose&&d.type!=="Scene"){const _=()=>{try{d.dispose()}catch{}};typeof IS_REACT_ACT_ENVIRONMENT>"u"?zS.unstable_scheduleCallback(zS.unstable_IdlePriority,_):_()}Bf(p)}}function a(p,d,A,y){var C;const x=(C=p.__r3f)==null?void 0:C.parent;if(!x)return;const D=n(d,A,p.__r3f.root);if(p.children){for(const I of p.children)I.__r3f&&r(D,I);p.children=p.children.filter(I=>!I.__r3f)}p.__r3f.objects.forEach(I=>r(D,I)),p.__r3f.objects=[],p.__r3f.autoRemovedBeforeAppend||o(x,p),D.parent&&(D.__r3f.autoRemovedBeforeAppend=!0),r(x,D),D.raycast&&D.__r3f.eventCount&&Z1(D).getState().internal.interaction.push(D),[y,y.alternate].forEach(I=>{I!==null&&(I.stateNode=D,I.ref&&(typeof I.ref=="function"?I.ref(D):I.ref.current=D))})}const l=()=>console.warn("Text is not allowed in the R3F tree! This could be stray whitespace or characters.");return{reconciler:iV({createInstance:n,removeChild:o,appendChild:r,appendInitialChild:r,insertBefore:i,supportsMutation:!0,isPrimaryRenderer:!1,supportsPersistence:!1,supportsHydration:!1,noTimeout:-1,appendChildToContainer:(p,d)=>{if(!d)return;const A=p.getState().scene;A.__r3f&&(A.__r3f.root=p,r(A,d))},removeChildFromContainer:(p,d)=>{d&&o(p.getState().scene,d)},insertInContainerBefore:(p,d,A)=>{if(!d||!A)return;const y=p.getState().scene;y.__r3f&&i(y,d,A)},getRootHostContext:()=>null,getChildHostContext:p=>p,finalizeInitialChildren(p){var d;return!!((d=p==null?void 0:p.__r3f)!=null?d:{}).handlers},prepareUpdate(p,d,A,y){var C;if(((C=p==null?void 0:p.__r3f)!=null?C:{}).primitive&&y.object&&y.object!==p)return[!0];{const{args:D=[],children:I,...w}=y,{args:B=[],children:_,...F}=A;if(!Array.isArray(D))throw new Error("R3F: the args prop must be an array!");if(D.some((N,U)=>N!==B[U]))return[!0];const P=pL(p,w,F,!0);return P.changes.length?[!1,P]:null}},commitUpdate(p,[d,A],y,C,x,D){d?a(p,y,x,D):uI(p,A)},commitMount(p,d,A,y){var C;const x=(C=p.__r3f)!=null?C:{};p.raycast&&x.handlers&&x.eventCount&&Z1(p).getState().internal.interaction.push(p)},getPublicInstance:p=>p,prepareForCommit:()=>null,preparePortalMount:p=>wf(p.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(p){var d;const{attach:A,parent:y}=(d=p.__r3f)!=null?d:{};A&&y&&W_(y,p,A),p.isObject3D&&(p.visible=!1),Bf(p)},unhideInstance(p,d){var A;const{attach:y,parent:C}=(A=p.__r3f)!=null?A:{};y&&C&&lI(C,p,y),(p.isObject3D&&d.visible==null||d.visible)&&(p.visible=!0),Bf(p)},createTextInstance:l,hideTextInstance:l,unhideTextInstance:l,getCurrentEventPriority:()=>e?e():Wf.DefaultEventPriority,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},detachDeletedInstance:()=>{},now:typeof performance<"u"&&zr.fun(performance.now)?performance.now:zr.fun(Date.now)?Date.now:()=>0,scheduleTimeout:zr.fun(setTimeout)?setTimeout:void 0,cancelTimeout:zr.fun(clearTimeout)?clearTimeout:void 0}),applyProps:uI}}var U_,G_;const aI=t=>"colorSpace"in t||"outputColorSpace"in t,oL=()=>{var t;return(t=eB.ColorManagement)!=null?t:null},aL=t=>t&&t.isOrthographicCamera,hV=t=>t&&t.hasOwnProperty("current"),E0=typeof window<"u"&&((U_=window.document)!=null&&U_.createElement||((G_=window.navigator)==null?void 0:G_.product)==="ReactNative")?le.useLayoutEffect:le.useEffect;function lL(t){const e=le.useRef(t);return E0(()=>void(e.current=t),[t]),e}function pV({set:t}){return E0(()=>(t(new Promise(()=>null)),()=>t(!1)),[t]),null}class uL extends le.Component{constructor(...e){super(...e),this.state={error:!1}}componentDidCatch(e){this.props.set(e)}render(){return this.state.error?null:this.props.children}}uL.getDerivedStateFromError=()=>({error:!0});const cL="__default",H_=new Map,dV=t=>t&&!!t.memoized&&!!t.changes;function hL(t){var e;const n=typeof window<"u"?(e=window.devicePixelRatio)!=null?e:2:1;return Array.isArray(t)?Math.min(Math.max(t[0],n),t[1]):t}const Og=t=>{var e;return(e=t.__r3f)==null?void 0:e.root.getState()};function Z1(t){let e=t.__r3f.root;for(;e.getState().previousRoot;)e=e.getState().previousRoot;return e}const zr={obj:t=>t===Object(t)&&!zr.arr(t)&&typeof t!="function",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",boo:t=>typeof t=="boolean",und:t=>t===void 0,arr:t=>Array.isArray(t),equ(t,e,{arrays:n="shallow",objects:r="reference",strict:i=!0}={}){if(typeof t!=typeof e||!!t!=!!e)return!1;if(zr.str(t)||zr.num(t))return t===e;const s=zr.obj(t);if(s&&r==="reference")return t===e;const o=zr.arr(t);if(o&&n==="reference")return t===e;if((o||s)&&t===e)return!0;let a;for(a in t)if(!(a in e))return!1;if(s&&n==="shallow"&&r==="shallow"){for(a in i?e:t)if(!zr.equ(t[a],e[a],{strict:i,objects:"reference"}))return!1}else for(a in i?e:t)if(t[a]!==e[a])return!1;if(zr.und(a)){if(o&&t.length===0&&e.length===0||s&&Object.keys(t).length===0&&Object.keys(e).length===0)return!0;if(t!==e)return!1}return!0}};function fV(t){const e={nodes:{},materials:{}};return t&&t.traverse(n=>{n.name&&(e.nodes[n.name]=n),n.material&&!e.materials[n.material.name]&&(e.materials[n.material.name]=n.material)}),e}function AV(t){t.dispose&&t.type!=="Scene"&&t.dispose();for(const e in t)e.dispose==null||e.dispose(),delete t[e]}function wf(t,e){const n=t;return n.__r3f={type:"",root:null,previousAttach:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null,...e},t}function WS(t,e){let n=t;if(e.includes("-")){const r=e.split("-"),i=r.pop();return n=r.reduce((s,o)=>s[o],t),{target:n,key:i}}else return{target:n,key:e}}const z_=/-\d+$/;function lI(t,e,n){if(zr.str(n)){if(z_.test(n)){const s=n.replace(z_,""),{target:o,key:a}=WS(t,s);Array.isArray(o[a])||(o[a]=[])}const{target:r,key:i}=WS(t,n);e.__r3f.previousAttach=r[i],r[i]=e}else e.__r3f.previousAttach=n(t,e)}function W_(t,e,n){var r,i;if(zr.str(n)){const{target:s,key:o}=WS(t,n),a=e.__r3f.previousAttach;a===void 0?delete s[o]:s[o]=a}else(r=e.__r3f)==null||r.previousAttach==null||r.previousAttach(t,e);(i=e.__r3f)==null||delete i.previousAttach}function pL(t,{children:e,key:n,ref:r,...i},{children:s,key:o,ref:a,...l}={},c=!1){var p;const d=(p=t==null?void 0:t.__r3f)!=null?p:{},A=Object.entries(i),y=[];if(c){const x=Object.keys(l);for(let D=0;D{var I;if((I=t.__r3f)!=null&&I.primitive&&x==="object"||zr.equ(D,l[x]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(x))return y.push([x,D,!0,[]]);let w=[];x.includes("-")&&(w=x.split("-")),y.push([x,D,!1,w]);for(const B in i){const _=i[B];B.startsWith(`${x}-`)&&y.push([B,_,!1,B.split("-")])}});const C={...i};return d.memoizedProps&&d.memoizedProps.args&&(C.args=d.memoizedProps.args),d.memoizedProps&&d.memoizedProps.attach&&(C.attach=d.memoizedProps.attach),{memoized:C,changes:y}}const gV=typeof process<"u"&&!1;function uI(t,e){var n,r,i;const s=(n=t.__r3f)!=null?n:{},o=s.root,a=(r=o==null||o.getState==null?void 0:o.getState())!=null?r:{},{memoized:l,changes:c}=dV(e)?e:pL(t,e),p=s.eventCount;t.__r3f&&(t.__r3f.memoizedProps=l);for(let A=0;AB[_],t),!(w&&w.set))){const[B,..._]=D.reverse();I=_.reverse().reduce((F,P)=>F[P],t),y=B}if(C===cL+"remove")if(I.constructor){let B=H_.get(I.constructor);B||(B=new I.constructor,H_.set(I.constructor,B)),C=B[y]}else C=0;if(x)C?s.handlers[y]=C:delete s.handlers[y],s.eventCount=Object.keys(s.handlers).length;else if(w&&w.set&&(w.copy||w instanceof Lp)){if(Array.isArray(C))w.fromArray?w.fromArray(C):w.set(...C);else if(w.copy&&C&&C.constructor&&(gV?w.constructor.name===C.constructor.name:w.constructor===C.constructor))w.copy(C);else if(C!==void 0){const B=w instanceof Xt;!B&&w.setScalar?w.setScalar(C):w instanceof Lp&&C instanceof Lp?w.mask=C.mask:w.set(C),!oL()&&!a.linear&&B&&w.convertSRGBToLinear()}}else if(I[y]=C,I[y]instanceof Zr&&I[y].format===Ao&&I[y].type===Rl){const B=I[y];aI(B)&&aI(a.gl)?B.colorSpace=a.gl.outputColorSpace:B.encoding=a.gl.outputEncoding}Bf(t)}if(s.parent&&t.raycast&&p!==s.eventCount){const A=Z1(t).getState().internal,y=A.interaction.indexOf(t);y>-1&&A.interaction.splice(y,1),s.eventCount&&A.interaction.push(t)}return!(c.length===1&&c[0][0]==="onUpdate")&&c.length&&(i=t.__r3f)!=null&&i.parent&&jS(t),t}function Bf(t){var e,n;const r=(e=t.__r3f)==null||(n=e.root)==null||n.getState==null?void 0:n.getState();r&&r.internal.frames===0&&r.invalidate()}function jS(t){t.onUpdate==null||t.onUpdate(t)}function dL(t,e){t.manual||(aL(t)?(t.left=e.width/-2,t.right=e.width/2,t.top=e.height/2,t.bottom=e.height/-2):t.aspect=e.width/e.height,t.updateProjectionMatrix(),t.updateMatrixWorld())}function y1(t){return(t.eventObject||t.object).uuid+"/"+t.index+t.instanceId}function mV(){var t;const e=typeof self<"u"&&self||typeof window<"u"&&window;if(!e)return Wf.DefaultEventPriority;switch((t=e.event)==null?void 0:t.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return Wf.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return Wf.ContinuousEventPriority;default:return Wf.DefaultEventPriority}}function fL(t,e,n,r){const i=n.get(e);i&&(n.delete(e),n.size===0&&(t.delete(r),i.target.releasePointerCapture(r)))}function yV(t,e){const{internal:n}=t.getState();n.interaction=n.interaction.filter(r=>r!==e),n.initialHits=n.initialHits.filter(r=>r!==e),n.hovered.forEach((r,i)=>{(r.eventObject===e||r.object===e)&&n.hovered.delete(i)}),n.capturedMap.forEach((r,i)=>{fL(n.capturedMap,e,r,i)})}function EV(t){function e(l){const{internal:c}=t.getState(),p=l.offsetX-c.initialClick[0],d=l.offsetY-c.initialClick[1];return Math.round(Math.sqrt(p*p+d*d))}function n(l){return l.filter(c=>["Move","Over","Enter","Out","Leave"].some(p=>{var d;return(d=c.__r3f)==null?void 0:d.handlers["onPointer"+p]}))}function r(l,c){const p=t.getState(),d=new Set,A=[],y=c?c(p.internal.interaction):p.internal.interaction;for(let I=0;I{const B=Og(I.object),_=Og(w.object);return!B||!_?I.distance-w.distance:_.events.priority-B.events.priority||I.distance-w.distance}).filter(I=>{const w=y1(I);return d.has(w)?!1:(d.add(w),!0)});p.events.filter&&(x=p.events.filter(x,p));for(const I of x){let w=I.object;for(;w;){var D;(D=w.__r3f)!=null&&D.eventCount&&A.push({...I,eventObject:w}),w=w.parent}}if("pointerId"in l&&p.internal.capturedMap.has(l.pointerId))for(let I of p.internal.capturedMap.get(l.pointerId).values())d.has(y1(I.intersection))||A.push(I.intersection);return A}function i(l,c,p,d){const A=t.getState();if(l.length){const y={stopped:!1};for(const C of l){const x=Og(C.object)||A,{raycaster:D,pointer:I,camera:w,internal:B}=x,_=new ue(I.x,I.y,0).unproject(w),F=L=>{var z,he;return(z=(he=B.capturedMap.get(L))==null?void 0:he.has(C.eventObject))!=null?z:!1},P=L=>{const z={intersection:C,target:c.target};B.capturedMap.has(L)?B.capturedMap.get(L).set(C.eventObject,z):B.capturedMap.set(L,new Map([[C.eventObject,z]])),c.target.setPointerCapture(L)},N=L=>{const z=B.capturedMap.get(L);z&&fL(B.capturedMap,C.eventObject,z,L)};let U={};for(let L in c){let z=c[L];typeof z!="function"&&(U[L]=z)}let q={...C,...U,pointer:I,intersections:l,stopped:y.stopped,delta:p,unprojectedPoint:_,ray:D.ray,camera:w,stopPropagation(){const L="pointerId"in c&&B.capturedMap.get(c.pointerId);if((!L||L.has(C.eventObject))&&(q.stopped=y.stopped=!0,B.hovered.size&&Array.from(B.hovered.values()).find(z=>z.eventObject===C.eventObject))){const z=l.slice(0,l.indexOf(C));s([...z,C])}},target:{hasPointerCapture:F,setPointerCapture:P,releasePointerCapture:N},currentTarget:{hasPointerCapture:F,setPointerCapture:P,releasePointerCapture:N},nativeEvent:c};if(d(q),y.stopped===!0)break}}return l}function s(l){const{internal:c}=t.getState();for(const p of c.hovered.values())if(!l.length||!l.find(d=>d.object===p.object&&d.index===p.index&&d.instanceId===p.instanceId)){const A=p.eventObject.__r3f,y=A==null?void 0:A.handlers;if(c.hovered.delete(y1(p)),A!=null&&A.eventCount){const C={...p,intersections:l};y.onPointerOut==null||y.onPointerOut(C),y.onPointerLeave==null||y.onPointerLeave(C)}}}function o(l,c){for(let p=0;ps([]);case"onLostPointerCapture":return c=>{const{internal:p}=t.getState();"pointerId"in c&&p.capturedMap.has(c.pointerId)&&requestAnimationFrame(()=>{p.capturedMap.has(c.pointerId)&&(p.capturedMap.delete(c.pointerId),s([]))})}}return function(p){const{onPointerMissed:d,internal:A}=t.getState();A.lastEvent.current=p;const y=l==="onPointerMove",C=l==="onClick"||l==="onContextMenu"||l==="onDoubleClick",D=r(p,y?n:void 0),I=C?e(p):0;l==="onPointerDown"&&(A.initialClick=[p.offsetX,p.offsetY],A.initialHits=D.map(B=>B.eventObject)),C&&!D.length&&I<=2&&(o(p,A.interaction),d&&d(p)),y&&s(D);function w(B){const _=B.eventObject,F=_.__r3f,P=F==null?void 0:F.handlers;if(F!=null&&F.eventCount)if(y){if(P.onPointerOver||P.onPointerEnter||P.onPointerOut||P.onPointerLeave){const N=y1(B),U=A.hovered.get(N);U?U.stopped&&B.stopPropagation():(A.hovered.set(N,B),P.onPointerOver==null||P.onPointerOver(B),P.onPointerEnter==null||P.onPointerEnter(B))}P.onPointerMove==null||P.onPointerMove(B)}else{const N=P[l];N?(!C||A.initialHits.includes(_))&&(o(p,A.interaction.filter(U=>!A.initialHits.includes(U))),N(B)):C&&A.initialHits.includes(_)&&o(p,A.interaction.filter(U=>!A.initialHits.includes(U)))}}i(D,p,I,w)}}return{handlePointer:a}}const CV=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],AL=t=>!!(t!=null&&t.render),RC=le.createContext(null),vV=(t,e)=>{const n=eL((a,l)=>{const c=new ue,p=new ue,d=new ue;function A(I=l().camera,w=p,B=l().size){const{width:_,height:F,top:P,left:N}=B,U=_/F;w instanceof ue?d.copy(w):d.set(...w);const q=I.getWorldPosition(c).distanceTo(d);if(aL(I))return{width:_/I.zoom,height:F/I.zoom,top:P,left:N,factor:1,distance:q,aspect:U};{const L=I.fov*Math.PI/180,z=2*Math.tan(L/2)*q,he=z*(_/F);return{width:he,height:z,top:P,left:N,factor:_/he,distance:q,aspect:U}}}let y;const C=I=>a(w=>({performance:{...w.performance,current:I}})),x=new st;return{set:a,get:l,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:(I=1)=>t(l(),I),advance:(I,w)=>e(I,w,l()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new qw,pointer:x,mouse:x,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{const I=l();y&&clearTimeout(y),I.performance.current!==I.performance.min&&C(I.performance.min),y=setTimeout(()=>C(l().performance.max),I.performance.debounce)}},size:{width:0,height:0,top:0,left:0,updateStyle:!1},viewport:{initialDpr:0,dpr:0,width:0,height:0,top:0,left:0,aspect:0,distance:0,factor:0,getCurrentViewport:A},setEvents:I=>a(w=>({...w,events:{...w.events,...I}})),setSize:(I,w,B,_,F)=>{const P=l().camera,N={width:I,height:w,top:_||0,left:F||0,updateStyle:B};a(U=>({size:N,viewport:{...U.viewport,...A(P,p,N)}}))},setDpr:I=>a(w=>{const B=hL(I);return{viewport:{...w.viewport,dpr:B,initialDpr:w.viewport.initialDpr||B}}}),setFrameloop:(I="always")=>{const w=l().clock;w.stop(),w.elapsedTime=0,I!=="never"&&(w.start(),w.elapsedTime=0),a(()=>({frameloop:I}))},previousRoot:void 0,internal:{active:!1,priority:0,frames:0,lastEvent:le.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(I,w,B)=>{const _=l().internal;return _.priority=_.priority+(w>0?1:0),_.subscribers.push({ref:I,priority:w,store:B}),_.subscribers=_.subscribers.sort((F,P)=>F.priority-P.priority),()=>{const F=l().internal;F!=null&&F.subscribers&&(F.priority=F.priority-(w>0?1:0),F.subscribers=F.subscribers.filter(P=>P.ref!==I))}}}}}),r=n.getState();let i=r.size,s=r.viewport.dpr,o=r.camera;return n.subscribe(()=>{const{camera:a,size:l,viewport:c,gl:p,set:d}=n.getState();if(l.width!==i.width||l.height!==i.height||c.dpr!==s){var A;i=l,s=c.dpr,dL(a,l),p.setPixelRatio(c.dpr);const y=(A=l.updateStyle)!=null?A:typeof HTMLCanvasElement<"u"&&p.domElement instanceof HTMLCanvasElement;p.setSize(l.width,l.height,y)}a!==o&&(o=a,d(y=>({viewport:{...y.viewport,...y.viewport.getCurrentViewport(a)}})))}),n.subscribe(a=>t(a)),n};let E1,xV=new Set,IV=new Set,DV=new Set;function cI(t,e){if(t.size)for(const{callback:n}of t.values())n(e)}function Ug(t,e){switch(t){case"before":return cI(xV,e);case"after":return cI(IV,e);case"tail":return cI(DV,e)}}let hI,pI;function dI(t,e,n){let r=e.clock.getDelta();for(e.frameloop==="never"&&typeof t=="number"&&(r=t-e.clock.elapsedTime,e.clock.oldTime=e.clock.elapsedTime,e.clock.elapsedTime=t),hI=e.internal.subscribers,E1=0;E10)&&!((p=s.gl.xr)!=null&&p.isPresenting)&&(r+=dI(c,s))}if(n=!1,Ug("after",c),r===0)return Ug("tail",c),e=!1,cancelAnimationFrame(i)}function a(c,p=1){var d;if(!c)return t.forEach(A=>a(A.store.getState(),p));(d=c.gl.xr)!=null&&d.isPresenting||!c.internal.active||c.frameloop==="never"||(p>1?c.internal.frames=Math.min(60,c.internal.frames+p):n?c.internal.frames=2:c.internal.frames=1,e||(e=!0,requestAnimationFrame(o)))}function l(c,p=!0,d,A){if(p&&Ug("before",c),d)dI(c,d,A);else for(const y of t.values())dI(c,y.store.getState());p&&Ug("after",c)}return{loop:o,invalidate:a,advance:l}}function al(){const t=le.useContext(RC);if(!t)throw new Error("R3F: Hooks can only be used within the Canvas component!");return t}function n0(t=n=>n,e){return al()(t,e)}function _A(t,e=0){const n=al(),r=n.getState().internal.subscribe,i=lL(t);return E0(()=>r(i,e,n),[e,r,n]),null}const j_=new WeakMap;function gL(t,e){return function(n,...r){let i=j_.get(n);return i||(i=new n,j_.set(n,i)),t&&t(i),Promise.all(r.map(s=>new Promise((o,a)=>i.load(s,l=>{l.scene&&Object.assign(l,fV(l.scene)),o(l)},e,l=>a(new Error(`Could not load ${s}: ${l==null?void 0:l.message}`))))))}}function tB(t,e,n,r){const i=Array.isArray(e)?e:[e],s=oV(gL(n,r),[t,...i],{equal:zr.equ});return Array.isArray(e)?s:s[0]}tB.preload=function(t,e,n){const r=Array.isArray(e)?e:[e];return aV(gL(n),[t,...r])};tB.clear=function(t,e){const n=Array.isArray(e)?e:[e];return lV([t,...n])};const AA=new Map,{invalidate:V_,advance:J_}=SV(AA),{reconciler:gA,applyProps:Ef}=cV(AA,mV),Cf={objects:"shallow",strict:!1},wV=(t,e)=>{const n=typeof t=="function"?t(e):t;return AL(n)?n:new Fw({powerPreference:"high-performance",canvas:e,antialias:!0,alpha:!0,...t})};function BV(t,e){const n=typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement;if(e){const{width:r,height:i,top:s,left:o,updateStyle:a=n}=e;return{width:r,height:i,top:s,left:o,updateStyle:a}}else if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement&&t.parentElement){const{width:r,height:i,top:s,left:o}=t.parentElement.getBoundingClientRect();return{width:r,height:i,top:s,left:o,updateStyle:n}}else if(typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas)return{width:t.width,height:t.height,top:0,left:0,updateStyle:n};return{width:0,height:0,top:0,left:0}}function bV(t){const e=AA.get(t),n=e==null?void 0:e.fiber,r=e==null?void 0:e.store;e&&console.warn("R3F.createRoot should only be called once!");const i=typeof reportError=="function"?reportError:console.error,s=r||vV(V_,J_),o=n||gA.createContainer(s,Wf.ConcurrentRoot,null,!1,null,"",i,null);e||AA.set(t,{fiber:o,store:s});let a,l=!1,c;return{configure(p={}){let{gl:d,size:A,scene:y,events:C,onCreated:x,shadows:D=!1,linear:I=!1,flat:w=!1,legacy:B=!1,orthographic:_=!1,frameloop:F="always",dpr:P=[1,2],performance:N,raycaster:U,camera:q,onPointerMissed:L}=p,z=s.getState(),he=z.gl;z.gl||z.set({gl:he=wV(d,t)});let Ie=z.raycaster;Ie||z.set({raycaster:Ie=new MA});const{params:re,..._e}=U||{};if(zr.equ(_e,Ie,Cf)||Ef(Ie,{..._e}),zr.equ(re,Ie.params,Cf)||Ef(Ie,{params:{...Ie.params,...re}}),!z.camera||z.camera===c&&!zr.equ(c,q,Cf)){c=q;const ve=q instanceof p0,Ae=ve?q:_?new SA(0,0,0,0,.1,1e3):new ki(75,0,.1,1e3);ve||(Ae.position.z=5,q&&Ef(Ae,q),!z.camera&&!(q!=null&&q.rotation)&&Ae.lookAt(0,0,0)),z.set({camera:Ae}),Ie.camera=Ae}if(!z.scene){let ve;y instanceof Ym?ve=y:(ve=new Ym,y&&Ef(ve,y)),z.set({scene:wf(ve)})}if(!z.xr){var De;const ve=(we,K)=>{const oe=s.getState();oe.frameloop!=="never"&&J_(we,!0,oe,K)},Ae=()=>{const we=s.getState();we.gl.xr.enabled=we.gl.xr.isPresenting,we.gl.xr.setAnimationLoop(we.gl.xr.isPresenting?ve:null),we.gl.xr.isPresenting||V_(we)},Ue={connect(){const we=s.getState().gl;we.xr.addEventListener("sessionstart",Ae),we.xr.addEventListener("sessionend",Ae)},disconnect(){const we=s.getState().gl;we.xr.removeEventListener("sessionstart",Ae),we.xr.removeEventListener("sessionend",Ae)}};typeof((De=he.xr)==null?void 0:De.addEventListener)=="function"&&Ue.connect(),z.set({xr:Ue})}if(he.shadowMap){const ve=he.shadowMap.enabled,Ae=he.shadowMap.type;if(he.shadowMap.enabled=!!D,zr.boo(D))he.shadowMap.type=am;else if(zr.str(D)){var Ge;const Ue={basic:GQ,percentage:lC,soft:am,variance:Ya};he.shadowMap.type=(Ge=Ue[D])!=null?Ge:am}else zr.obj(D)&&Object.assign(he.shadowMap,D);(ve!==he.shadowMap.enabled||Ae!==he.shadowMap.type)&&(he.shadowMap.needsUpdate=!0)}const ie=oL();ie&&("enabled"in ie?ie.enabled=!B:"legacyMode"in ie&&(ie.legacyMode=B)),l||Ef(he,{outputEncoding:I?3e3:3001,toneMapping:w?kl:dw}),z.legacy!==B&&z.set(()=>({legacy:B})),z.linear!==I&&z.set(()=>({linear:I})),z.flat!==w&&z.set(()=>({flat:w})),d&&!zr.fun(d)&&!AL(d)&&!zr.equ(d,he,Cf)&&Ef(he,d),C&&!z.events.handlers&&z.set({events:C(s)});const ge=BV(t,A);return zr.equ(ge,z.size,Cf)||z.setSize(ge.width,ge.height,ge.updateStyle,ge.top,ge.left),P&&z.viewport.dpr!==hL(P)&&z.setDpr(P),z.frameloop!==F&&z.setFrameloop(F),z.onPointerMissed||z.set({onPointerMissed:L}),N&&!zr.equ(N,z.performance,Cf)&&z.set(ve=>({performance:{...ve.performance,...N}})),a=x,l=!0,this},render(p){return l||this.configure(),gA.updateContainer(le.createElement(TV,{store:s,children:p,onCreated:a,rootElement:t}),o,null,()=>{}),s},unmount(){mL(t)}}}function TV({store:t,children:e,onCreated:n,rootElement:r}){return E0(()=>{const i=t.getState();i.set(s=>({internal:{...s.internal,active:!0}})),n&&n(i),t.getState().events.connected||i.events.connect==null||i.events.connect(r)},[]),le.createElement(RC.Provider,{value:t},e)}function mL(t,e){const n=AA.get(t),r=n==null?void 0:n.fiber;if(r){const i=n==null?void 0:n.store.getState();i&&(i.internal.active=!1),gA.updateContainer(null,r,null,()=>{i&&setTimeout(()=>{try{var s,o,a,l;i.events.disconnect==null||i.events.disconnect(),(s=i.gl)==null||(o=s.renderLists)==null||o.dispose==null||o.dispose(),(a=i.gl)==null||a.forceContextLoss==null||a.forceContextLoss(),(l=i.gl)!=null&&l.xr&&i.xr.disconnect(),AV(i),AA.delete(t),e&&e(t)}catch{}},500)})}}function MV(t,e,n){return le.createElement(_V,{key:e.uuid,children:t,container:e,state:n})}function _V({state:t={},children:e,container:n}){const{events:r,size:i,...s}=t,o=al(),[a]=le.useState(()=>new MA),[l]=le.useState(()=>new st),c=le.useCallback((d,A)=>{const y={...d};Object.keys(d).forEach(x=>{(CV.includes(x)||d[x]!==A[x]&&A[x])&&delete y[x]});let C;if(A&&i){const x=A.camera;C=d.viewport.getCurrentViewport(x,new ue,i),x!==d.camera&&dL(x,i)}return{...y,scene:n,raycaster:a,pointer:l,mouse:l,previousRoot:o,events:{...d.events,...A==null?void 0:A.events,...r},size:{...d.size,...i},viewport:{...d.viewport,...C},...s}},[t]),[p]=le.useState(()=>{const d=o.getState();return eL((y,C)=>({...d,scene:n,raycaster:a,pointer:l,mouse:l,previousRoot:o,events:{...d.events,...r},size:{...d.size,...i},...s,set:y,get:C,setEvents:x=>y(D=>({...D,events:{...D.events,...x}}))}))});return le.useEffect(()=>{const d=o.subscribe(A=>p.setState(y=>c(A,y)));return()=>{d(),p.destroy()}},[]),le.useEffect(()=>{p.setState(d=>c(o.getState(),d))},[c]),le.createElement(le.Fragment,null,gA.createPortal(le.createElement(RC.Provider,{value:p},e),p,null))}gA.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:le.version});function LE(){return LE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0?r=setTimeout(l,e-p):(r=null,n||(a=t.apply(s,i),s=i=null))}var c=function(){s=this,i=arguments,o=Date.now();var p=n&&!r;return r||(r=setTimeout(l,e)),p&&(a=t.apply(s,i),s=i=null),a};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(a=t.apply(s,i),s=i=null,clearTimeout(r),r=null)},c}VS.debounce=VS;var FV=VS;const Y_=zE(FV);function PV(t){let{debounce:e,scroll:n,polyfill:r,offsetSize:i}=t===void 0?{debounce:0,scroll:!1,offsetSize:!1}:t;const s=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!s)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[o,a]=le.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=le.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o}),c=e?typeof e=="number"?e:e.scroll:null,p=e?typeof e=="number"?e:e.resize:null,d=le.useRef(!1);le.useEffect(()=>(d.current=!0,()=>void(d.current=!1)));const[A,y,C]=le.useMemo(()=>{const w=()=>{if(!l.current.element)return;const{left:B,top:_,width:F,height:P,bottom:N,right:U,x:q,y:L}=l.current.element.getBoundingClientRect(),z={left:B,top:_,width:F,height:P,bottom:N,right:U,x:q,y:L};l.current.element instanceof HTMLElement&&i&&(z.height=l.current.element.offsetHeight,z.width=l.current.element.offsetWidth),Object.freeze(z),d.current&&!LV(l.current.lastBounds,z)&&a(l.current.lastBounds=z)};return[w,p?Y_(w,p):w,c?Y_(w,c):w]},[a,i,c,p]);function x(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(w=>w.removeEventListener("scroll",C,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null)}function D(){l.current.element&&(l.current.resizeObserver=new s(C),l.current.resizeObserver.observe(l.current.element),n&&l.current.scrollContainers&&l.current.scrollContainers.forEach(w=>w.addEventListener("scroll",C,{capture:!0,passive:!0})))}const I=w=>{!w||w===l.current.element||(x(),l.current.element=w,l.current.scrollContainers=yL(w),D())};return kV(C,!!n),QV(y),le.useEffect(()=>{x(),D()},[n,C,y]),le.useEffect(()=>x,[]),[I,o,A]}function QV(t){le.useEffect(()=>{const e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function kV(t,e){le.useEffect(()=>{if(e){const n=t;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[t,e])}function yL(t){const e=[];if(!t||t===document.body)return e;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(t);return[n,r,i].some(s=>s==="auto"||s==="scroll")&&e.push(t),[...e,...yL(t.parentElement)]}const RV=["x","y","top","bottom","left","right","width","height"],LV=(t,e)=>RV.every(n=>t[n]===e[n]);var NV=Object.defineProperty,OV=Object.defineProperties,UV=Object.getOwnPropertyDescriptors,X_=Object.getOwnPropertySymbols,GV=Object.prototype.hasOwnProperty,HV=Object.prototype.propertyIsEnumerable,q_=(t,e,n)=>e in t?NV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,K_=(t,e)=>{for(var n in e||(e={}))GV.call(e,n)&&q_(t,n,e[n]);if(X_)for(var n of X_(e))HV.call(e,n)&&q_(t,n,e[n]);return t},zV=(t,e)=>OV(t,UV(e));function EL(t,e,n){if(!t)return;if(n(t)===!0)return t;let r=e?t.return:t.child;for(;r;){const i=EL(r,e,n);if(i)return i;r=e?null:r.sibling}}function CL(t){try{return Object.defineProperties(t,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return t}}const nB=CL(le.createContext(null));class vL extends le.Component{render(){return le.createElement(nB.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner:Z_,ReactCurrentDispatcher:$_}=le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function WV(){const t=le.useContext(nB);if(t===null)throw new Error("its-fine: useFiber must be called within a !");const e=le.useId();return le.useMemo(()=>{for(const r of[Z_==null?void 0:Z_.current,t,t==null?void 0:t.alternate]){if(!r)continue;const i=EL(r,!1,s=>{let o=s.memoizedState;for(;o;){if(o.memoizedState===e)return!0;o=o.next}});if(i)return i}},[t,e])}function jV(){var t,e;const n=WV(),[r]=le.useState(()=>new Map);r.clear();let i=n;for(;i;){const s=(t=i.type)==null?void 0:t._context;s&&s!==nB&&!r.has(s)&&r.set(s,(e=$_==null?void 0:$_.current)==null?void 0:e.readContext(CL(s))),i=i.return}return r}function VV(){const t=jV();return le.useMemo(()=>Array.from(t.keys()).reduce((e,n)=>r=>le.createElement(e,null,le.createElement(n.Provider,zV(K_({},r),{value:t.get(n)}))),e=>le.createElement(vL,K_({},e))),[t])}const fI={onClick:["click",!1],onContextMenu:["contextmenu",!1],onDoubleClick:["dblclick",!1],onWheel:["wheel",!0],onPointerDown:["pointerdown",!0],onPointerUp:["pointerup",!0],onPointerLeave:["pointerleave",!0],onPointerMove:["pointermove",!0],onPointerCancel:["pointercancel",!0],onLostPointerCapture:["lostpointercapture",!0]};function JV(t){const{handlePointer:e}=EV(t);return{priority:1,enabled:!0,compute(n,r,i){r.pointer.set(n.offsetX/r.size.width*2-1,-(n.offsetY/r.size.height)*2+1),r.raycaster.setFromCamera(r.pointer,r.camera)},connected:void 0,handlers:Object.keys(fI).reduce((n,r)=>({...n,[r]:e(r)}),{}),update:()=>{var n;const{events:r,internal:i}=t.getState();(n=i.lastEvent)!=null&&n.current&&r.handlers&&r.handlers.onPointerMove(i.lastEvent.current)},connect:n=>{var r;const{set:i,events:s}=t.getState();s.disconnect==null||s.disconnect(),i(o=>({events:{...o.events,connected:n}})),Object.entries((r=s.handlers)!=null?r:[]).forEach(([o,a])=>{const[l,c]=fI[o];n.addEventListener(l,a,{passive:c})})},disconnect:()=>{const{set:n,events:r}=t.getState();if(r.connected){var i;Object.entries((i=r.handlers)!=null?i:[]).forEach(([s,o])=>{if(r&&r.connected instanceof HTMLElement){const[a]=fI[s];r.connected.removeEventListener(a,o)}}),n(s=>({events:{...s.events,connected:void 0}}))}}}}const YV=le.forwardRef(function({children:e,fallback:n,resize:r,style:i,gl:s,events:o=JV,eventSource:a,eventPrefix:l,shadows:c,linear:p,flat:d,legacy:A,orthographic:y,frameloop:C,dpr:x,performance:D,raycaster:I,camera:w,scene:B,onPointerMissed:_,onCreated:F,...P},N){le.useMemo(()=>uV($j),[]);const U=VV(),[q,L]=PV({scroll:!0,debounce:{scroll:50,resize:0},...r}),z=le.useRef(null),he=le.useRef(null);le.useImperativeHandle(N,()=>z.current);const Ie=lL(_),[re,_e]=le.useState(!1),[De,Ge]=le.useState(!1);if(re)throw re;if(De)throw De;const ie=le.useRef(null);E0(()=>{const ve=z.current;L.width>0&&L.height>0&&ve&&(ie.current||(ie.current=bV(ve)),ie.current.configure({gl:s,events:o,shadows:c,linear:p,flat:d,legacy:A,orthographic:y,frameloop:C,dpr:x,performance:D,raycaster:I,camera:w,scene:B,size:L,onPointerMissed:(...Ae)=>Ie.current==null?void 0:Ie.current(...Ae),onCreated:Ae=>{Ae.events.connect==null||Ae.events.connect(a?hV(a)?a.current:a:he.current),l&&Ae.setEvents({compute:(Ue,we)=>{const K=Ue[l+"X"],oe=Ue[l+"Y"];we.pointer.set(K/we.size.width*2-1,-(oe/we.size.height)*2+1),we.raycaster.setFromCamera(we.pointer,we.camera)}}),F==null||F(Ae)}}),ie.current.render(le.createElement(U,null,le.createElement(uL,{set:Ge},le.createElement(le.Suspense,{fallback:le.createElement(pV,{set:_e})},e)))))}),le.useEffect(()=>{const ve=z.current;if(ve)return()=>mL(ve)},[]);const ge=a?"none":"auto";return le.createElement("div",LE({ref:he,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:ge,...i}},P),le.createElement("div",{ref:q,style:{width:"100%",height:"100%"}},le.createElement("canvas",{ref:z,style:{display:"block"}},n)))}),XV=le.forwardRef(function(e,n){return le.createElement(vL,null,le.createElement(YV,LE({},e,{ref:n})))}),qV={borderWidth:["borderBottomWidth","borderTopWidth","borderLeftWidth","borderRightWidth"],borderXWidth:["borderLeftWidth","borderRightWidth"],borderYWidth:["borderTopWidth","borderBottomWidth"]},KV={...qV,inset:["positionTop","positionLeft","positionRight","positionBottom"],padding:["paddingBottom","paddingTop","paddingLeft","paddingRight"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],margin:["marginBottom","marginTop","marginLeft","marginRight"],marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],gap:["gapRow","gapColumn"]},ZV={borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],borderTopRadius:["borderTopLeftRadius","borderTopRightRadius"],borderLeftRadius:["borderTopLeftRadius","borderBottomLeftRadius"],borderRightRadius:["borderTopRightRadius","borderBottomRightRadius"],borderBottomRadius:["borderBottomLeftRadius","borderBottomRightRadius"]},$V={scrollbarBorderRadius:["scrollbarBorderTopLeftRadius","scrollbarBorderTopRightRadius","scrollbarBorderBottomLeftRadius","scrollbarBorderBottomRightRadius"],scrollbarBorderTopRadius:["scrollbarBorderTopLeftRadius","scrollbarBorderTopRightRadius"],scrollbarBorderLeftRadius:["scrollbarBorderTopLeftRadius","scrollbarBorderBottomLeftRadius"],scrollbarBorderRightRadius:["scrollbarBorderTopRightRadius","scrollbarBorderBottomRightRadius"],scrollbarBorderBottomRadius:["scrollbarBorderBottomLeftRadius","scrollbarBorderBottomRightRadius"],scrollbarBorderWidth:["scrollbarBorderBottomWidth","scrollbarBorderTopWidth","scrollbarBorderLeftWidth","scrollbarBorderRightWidth"],scrollbarBorderXWidth:["scrollbarBorderLeftWidth","scrollbarBorderRightWidth"],scrollbarBorderYWidth:["scrollbarBorderTopWidth","scrollbarBorderBottomWidth"]},eJ={caretBorderRadius:["caretBorderTopLeftRadius","caretBorderTopRightRadius","caretBorderBottomLeftRadius","caretBorderBottomRightRadius"],caretBorderTopRadius:["caretBorderTopLeftRadius","caretBorderTopRightRadius"],caretBorderLeftRadius:["caretBorderTopLeftRadius","caretBorderBottomLeftRadius"],caretBorderRightRadius:["caretBorderTopRightRadius","caretBorderBottomRightRadius"],caretBorderBottomRadius:["caretBorderBottomLeftRadius","caretBorderBottomRightRadius"],caretBorderWidth:["caretBorderBottomWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderRightWidth"],caretBorderXWidth:["caretBorderLeftWidth","caretBorderRightWidth"],caretBorderYWidth:["caretBorderTopWidth","caretBorderBottomWidth"]},tJ={selectionBorderRadius:["selectionBorderTopLeftRadius","selectionBorderTopRightRadius","selectionBorderBottomLeftRadius","selectionBorderBottomRightRadius"],selectionBorderTopRadius:["selectionBorderTopLeftRadius","selectionBorderTopRightRadius"],selectionBorderLeftRadius:["selectionBorderTopLeftRadius","selectionBorderBottomLeftRadius"],selectionBorderRightRadius:["selectionBorderTopRightRadius","selectionBorderBottomRightRadius"],selectionBorderBottomRadius:["selectionBorderBottomLeftRadius","selectionBorderBottomRightRadius"],selectionBorderWidth:["selectionBorderBottomWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderRightWidth"],selectionBorderXWidth:["selectionBorderLeftWidth","selectionBorderRightWidth"],selectionBorderYWidth:["selectionBorderTopWidth","selectionBorderBottomWidth"]},nJ={transformScale:["transformScaleX","transformScaleY","transformScaleZ"]},rJ=Object.assign({},KV,ZV,$V,nJ,eJ,tJ);function LC(){throw new Error("Cycle detected")}var iJ=Symbol.for("preact-signals");function NC(){if(rh>1)rh--;else{for(var t,e=!1;dm!==void 0;){var n=dm;for(dm=void 0,JS++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&DL(n))try{n.c()}catch(i){e||(t=i,e=!0)}n=r}}if(JS=0,rh--,e)throw t}}function xL(t){if(rh>0)return t();rh++;try{return t()}finally{NC()}}var Hr=void 0,AI=0;function pm(t){if(AI>0)return t();var e=Hr;Hr=void 0,AI++;try{return t()}finally{AI--,Hr=e}}var dm=void 0,rh=0,JS=0,NE=0;function IL(t){if(Hr!==void 0){var e=t.n;if(e===void 0||e.t!==Hr)return e={i:0,S:t,p:Hr.s,n:void 0,t:Hr,e:void 0,x:void 0,r:e},Hr.s!==void 0&&(Hr.s.n=e),Hr.s=e,t.n=e,32&Hr.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=Hr.s,e.n=void 0,Hr.s.n=e,Hr.s=e),e}}function wi(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}wi.prototype.brand=iJ;wi.prototype.h=function(){return!0};wi.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)};wi.prototype.U=function(t){if(this.t!==void 0){var e=t.e,n=t.x;e!==void 0&&(e.x=n,t.e=void 0),n!==void 0&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}};wi.prototype.subscribe=function(t){var e=this;return sn(function(){var n=e.value,r=32&this.f;this.f&=-33;try{t(n)}finally{this.f|=r}})};wi.prototype.valueOf=function(){return this.value};wi.prototype.toString=function(){return this.value+""};wi.prototype.toJSON=function(){return this.value};wi.prototype.peek=function(){return this.v};Object.defineProperty(wi.prototype,"value",{get:function(){var t=IL(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(Hr instanceof Ch&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){JS>100&&LC(),this.v=t,this.i++,NE++,rh++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{NC()}}}});function Yt(t){return new wi(t)}function DL(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function SL(t){for(var e=t.s;e!==void 0;e=e.n){var n=e.S.n;if(n!==void 0&&(e.r=n),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function wL(t){for(var e=t.s,n=void 0;e!==void 0;){var r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):n=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r}t.s=n}function Ch(t){wi.call(this,void 0),this.x=t,this.s=void 0,this.g=NE-1,this.f=4}(Ch.prototype=new wi).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===NE))return!0;if(this.g=NE,this.f|=1,this.i>0&&!DL(this))return this.f&=-2,!0;var t=Hr;try{SL(this),Hr=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return Hr=t,wL(this),this.f&=-2,!0};Ch.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}wi.prototype.S.call(this,t)};Ch.prototype.U=function(t){if(this.t!==void 0&&(wi.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};Ch.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Ch.prototype.peek=function(){if(this.h()||LC(),16&this.f)throw this.v;return this.v};Object.defineProperty(Ch.prototype,"value",{get:function(){1&this.f&&LC();var t=IL(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function bn(t){return new Ch(t)}function BL(t){var e=t.u;if(t.u=void 0,typeof e=="function"){rh++;var n=Hr;Hr=void 0;try{e()}catch(r){throw t.f&=-2,t.f|=8,rB(t),r}finally{Hr=n,NC()}}}function rB(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,BL(t)}function sJ(t){if(Hr!==this)throw new Error("Out-of-order effect");wL(this),Hr=t,this.f&=-2,8&this.f&&rB(this),NC()}function C0(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}C0.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{t()}};C0.prototype.S=function(){1&this.f&&LC(),this.f|=1,this.f&=-9,BL(this),SL(this),rh++;var t=Hr;return Hr=this,sJ.bind(this,t)};C0.prototype.N=function(){2&this.f||(this.f|=2,this.o=dm,dm=this)};C0.prototype.d=function(){this.f|=8,1&this.f||rB(this)};function sn(t){var e=new C0(t);try{e.c()}catch(n){throw e.d(),n}return e.d.bind(e)}const iB=/(-?\d+(?:\.\d+)?)%/;function sa(t){const e=t.length;for(let n=0;no){e.setScalar(P*s);return}e.setScalar(F*s/o)}function bs(t){return t instanceof wi?t.value:t}function v0(t){const e=new Map;return(n,r)=>{if(typeof n!="object")throw new Error(`Invalid properties "${n}"`);for(const i in n){const s=n[i];if(s===void 0)return;let o=e.get(s);o==null&&e.set(s,o=bn(()=>t()?bs(s):void 0)),r.add(i,o)}}}function sB(t,e){const n=e.map(r=>nr(t,r,0));return bn(()=>n.map(r=>r.value))}function nr(t,e,n){return bn(()=>t.value.read(e,n))}function gI(t,e,n,r){return bn(()=>{var i,s;return bs((i=t.value)==null?void 0:i[n])??bs((s=e.value)==null?void 0:s[n])??r})}function OC(t,e,n,r){n!=null&&(mI(n.classes,r),r(n)),e!=null&&(mI(e.classes,r),r(e)),t!=null&&(mI(t.classes,r),r(t))}function mI(t,e){if(t==null)return;if(!Array.isArray(t)){e(t);return}const n=t.length;for(let r=0;r{const l=t.value;s&&eF(n,l,o,a,r),o=l}),sn(()=>{if(s=e.value,!!s&&o!=null)return eF(n,o,void 0,a,r),()=>{aJ(a),a={}}}))}function eF(t,e,n,r,i){const s=l=>r[l]=sn(()=>i(l,e.read(l,void 0))),o=l=>{var c;(c=r[l])==null||c.call(r),delete r[l],n.read(l,void 0)!==void 0&&i(l,void 0)},a=l=>{var c;(c=r[l])==null||c.call(r),s(l)};pm(()=>e.filterCompare(t,n,s,a,o))}function aJ(t){for(const e in t)t[e]()}class lJ{constructor(e){Ke(this,"preTransformers");Ke(this,"propertyMap",new Map);this.preTransformers=e}add(e,n){var o;if(n===void 0)return;const r=(o=this.preTransformers)==null?void 0:o[e];if(r!=null){r(n,this);return}const i=rJ[e];if(i==null){this.addToMap(e,n);return}const s=i.length;for(let a=0;a=0;s--){const o=r[s],a=o instanceof wi?o.value:o;if(a!==void 0)return a}return n}filterCompare(e,n,r,i,s){for(const o of this.propertyMap.keys()){if(!e(o))continue;if(n==null){r(o);continue}const a=n.propertyMap.get(o);if(a==null){r(o);continue}const l=this.propertyMap.get(o);tF(a,l)||i(o)}if(n!=null)for(const o of n.propertyMap.keys())e(o)&&(this.propertyMap.has(o)||s(o))}isEqual(e,n){const r=this.propertyMap.get(n),i=e.propertyMap.get(n);return r==null||i==null?r===i:tF(r,i)}addAll(e,n,r,i){OC(e,n,r,s=>{for(const o in s)this.add(o,s[o]);for(const o in i){const a=s[o];a!=null&&i[o](a,this)}})}}function tF(t,e){const n=t.length;if(n!=e.length)return!1;for(let r=0;r{let s;if(r==null)s=void 0;else{if(r.value==null)return;s=r.value}const o=i==null?void 0:i.value,a=typeof o=="number"?o:(o==null?void 0:o.major)??0,l=typeof o=="number"?0:(o==null?void 0:o.minor)??0;let c,p;return s==null?(c=0,p=0):e>s.elementType?(c=s.majorIndex,p=0):e!=s.elementType||!hJ(bs(n),bs(s.instancedGroupDependencies))?(c=s.majorIndex+1,p=0):(c=s.majorIndex,p=s.minorIndex+1),a>0&&(c+=a,p=0),p+=l,{instancedGroupDependencies:n,elementType:e,majorIndex:c,minorIndex:p}})}function hJ(t,e){if(t===e)return!0;if(t==null||e==null)return!1;let n=0;for(const r in t){if(t[r]!=e[r])return!1;++n}return n===Object.keys(e).length}function sd(t,e,n){return t[YS]=e,t[XS]=n,t}function Fu(t,e,n,r){r.push(()=>sn(()=>{var s,o,a,l;const i=n.value;i!=null&&((o=(s=t.peek())==null?void 0:s.onSizeChange)==null||o.call(s,...i),(l=(a=e.peek())==null?void 0:a.onSizeChange)==null||l.call(a,...i))}))}function vh(t,e,n,r){let i=!0;r.push(()=>sn(()=>{var o,a,l,c;const s=n.value;if(i){i=!1;return}(a=(o=t.peek())==null?void 0:o.onIsClippedChange)==null||a.call(o,s),(c=(l=e.peek())==null?void 0:l.onIsClippedChange)==null||c.call(l,s)}))}const pJ=new ue,dJ=new ue,C1=new ue,yI=new En,fJ=new DA,AJ=new Si,EI=Math.PI/180;function gJ([t,e,n]){return AJ.setFromEuler(fJ.set(t*EI,e*EI,n*EI))}const mJ="center",yJ="center";function Pu(t,{relativeCenter:e,size:n},r){const i=nr(t,"transformTranslateX",0),s=nr(t,"transformTranslateY",0),o=nr(t,"transformTranslateZ",0),a=nr(t,"transformRotateX",0),l=nr(t,"transformRotateY",0),c=nr(t,"transformRotateZ",0),p=nr(t,"transformScaleX",1),d=nr(t,"transformScaleY",1),A=nr(t,"transformScaleZ",1),y=nr(t,"transformOriginX",mJ),C=nr(t,"transformOriginY",yJ);return bn(()=>{if(e.value==null)return;const[x,D]=e.value,I=r.value,w=new En().makeTranslation(x*I,D*I,0);let B=!0;if(y.value!="center"||C.value!="center"){if(n.value==null)return;const[N,U]=n.value;B=!1,C1.set(-bL[y.value]*N*I,-TL[C.value]*U*I,0),w.multiply(yI.makeTranslation(C1)),C1.negate()}const _=[a.value,l.value,c.value],F=[nF(i.value,n,0),-nF(s.value,n,1),o.value],P=[CI(p.value),CI(d.value),CI(A.value)];return(F.some(N=>N!=0)||_.some(N=>N!=0)||P.some(N=>N!=1))&&w.multiply(yI.compose(pJ.fromArray(F).multiplyScalar(I),gJ(_),dJ.fromArray(P))),B||w.multiply(yI.makeTranslation(C1)),w})}function CI(t){if(typeof t=="number")return t;const e=iB.exec(t);if(e==null)throw new Error(`invalid value "${t}", expected number of percentage`);return parseFloat(e[1])/100}function nF(t,e,n){var s;if(typeof t=="number")return t;const r=iB.exec(t);if(r==null)throw new Error(`invalid value "${t}", expected number of percentage`);return(((s=e.value)==null?void 0:s[n])??0)*parseFloat(r[1])/100}function Qu(t,e,n,r){r.push(()=>sn(()=>{var i,s;if(n.value==null){(i=e.current)==null||i.matrix.elements.fill(0);return}(s=e.current)==null||s.matrix.copy(n.value),t.requestRender()}))}var EJ=(()=>{var t=import.meta.url;return function(e){e=e||{};var n;n||(n=typeof e<"u"?e:{});var r,i;n.ready=new Promise(function(ee,H){r=ee,i=H});var s=Object.assign({},n),o="";typeof document<"u"&&document.currentScript&&(o=document.currentScript.src),t&&(o=t),o.indexOf("blob:")!==0?o=o.substr(0,o.replace(/[?#].*/,"").lastIndexOf("/")+1):o="";var a=n.print||console.log.bind(console),l=n.printErr||console.warn.bind(console);Object.assign(n,s),s=null;var c;n.wasmBinary&&(c=n.wasmBinary),n.noExitRuntime,typeof WebAssembly!="object"&&re("no native wasm support detected");var p,d=!1;function A(ee,H,ye){ye=H+ye;for(var Pe="";!(H>=ye);){var We=ee[H++];if(!We)break;if(We&128){var et=ee[H++]&63;if((We&224)==192)Pe+=String.fromCharCode((We&31)<<6|et);else{var yt=ee[H++]&63;We=(We&240)==224?(We&15)<<12|et<<6|yt:(We&7)<<18|et<<12|yt<<6|ee[H++]&63,65536>We?Pe+=String.fromCharCode(We):(We-=65536,Pe+=String.fromCharCode(55296|We>>10,56320|We&1023))}}else Pe+=String.fromCharCode(We)}return Pe}var y,C,x,D,I,w,B,_,F;function P(){var ee=p.buffer;y=ee,n.HEAP8=C=new Int8Array(ee),n.HEAP16=D=new Int16Array(ee),n.HEAP32=w=new Int32Array(ee),n.HEAPU8=x=new Uint8Array(ee),n.HEAPU16=I=new Uint16Array(ee),n.HEAPU32=B=new Uint32Array(ee),n.HEAPF32=_=new Float32Array(ee),n.HEAPF64=F=new Float64Array(ee)}var N,U=[],q=[],L=[];function z(){var ee=n.preRun.shift();U.unshift(ee)}var he=0,Ie=null;function re(ee){throw n.onAbort&&n.onAbort(ee),ee="Aborted("+ee+")",l(ee),d=!0,ee=new WebAssembly.RuntimeError(ee+". Build with -sASSERTIONS for more info."),i(ee),ee}function _e(ee){return ee.startsWith("data:application/octet-stream;base64,")}var De;if(De="data:application/octet-stream;base64,AGFzbQEAAAABrAM2YAF/AGABfwF/YAJ/fwBgA39/fwBgAn98AGACf38Bf2ADf39/AX9gBH9/f30BfWAAAGADf398AGAEf39/fwBgAX8BfGACf38BfGAFf39/f38Bf2AAAX9gA39/fwF9YAZ/f31/fX8AYAJ/fwF9YAV/f39/fwBgAX8BfWADf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IAAvARgQIIwPC0MAAIA/QwAAAAAgACgC7AMtAAhBAXEbC3ACAX8BfSMAQRBrIgQkACAEQQhqIAAgAUECdEHMJGooAgAgAhAqQwAAwH8hBQJAAkACQCAELQAMQQFrDgIAAQILIAQqAgghBQwBCyAEKgIIIAOUQwrXIzyUIQULIARBEGokACAFQwAAAAAgBSAFWxsLcAIBfwF9IwBBEGsiBCQAIARBCGogACABQQJ0QbwkaigCACACEC5DAADAfyEFAkACQAJAIAQtAAxBAWsOAgABAgsgBCoCCCEFDAELIAQqAgggA5RDCtcjPJQhBQsgBEEQaiQAIAVDAAAAACAFIAVbGwvOAQIDfwJ9IwBBEGsiAyQAQQEhBCADQQhqIABB/ABqIgUgACABQQF0akHuAGoiAS8BABAfAkACQCADKgIIIgcgAioCACIGXARAIAcgB1sEQCACLQAEIQIMAgsgBiAGXCEECyACLQAEIQIgBEUNACADLQAMIAJB/wFxRg0BCyAFIAEgBiACEDQDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALcAyIADQALCyADQRBqJAALhQECA38BfgJAIABCgICAgBBUBEAgACEFDAELA0AgAUEBayIBIABCCoAiBUL2AX4gAHynQTByOgAAIABC/////58BViECIAUhACACDQALCyAFpyICBEADQCABQQFrIgEgAkEKbiIDQfYBbCACakEwcjoAACACQQlLIQQgAyECIAQNAAsLIAELNwECf0EEEB4iAiABNgIAQQQQHiIDIAE2AgBBnTogAEG+OkHaJ0G5ASACQb46Qd4nQboBIAMQBwteAQF/IABBADYCDCAAIAM2AhACQCABBEAgAUGAgICABE8NASABQQJ0EB4hBAsgACAENgIAIAAgBCACQQJ0aiICNgIIIAAgBCABQQJ0ajYCDCAAIAI2AgQgAA8LEFAAC0cBAX8gAi8ABiIDQQdxBEAgACABQegAaiADEB8PCyABQegAaiEBIAIvAA4iA0EHcQRAIAAgASADEB8PCyAAIAEgAi8AEBAfC0cBAX8gAi8AAiIDQQdxBEAgACABQegAai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KgKUAyACKgKUA5MhBkEBIQMCQCAEDgICAAQLQQMhAwwBCyABKgKQAyACKgKQA5MhBkEAIQMLIAIgA0ECdGogBkMAAAA/lDgCmAMMAgsgCkEIaiALIAUgAxAuIAotAAwgCUEBc3INAQJAAkACQAJAIAQOBAEBAgAECyABKgKQAyACKgKQA5MhBkECIQMMAgsgASoClAMgAioClAOTIQZBASEDAkAgBA4CAgADC0EDIQMMAQsgASoCkAMgAioCkAOTIQZBACEDCyACIANBAnRqIAY4ApgDDAELECcACyAKQRBqJAALHAAgACABQQggAqcgAkIgiKcgA6cgA0IgiKcQFQvOAQIDfwJ9IwBBEGsiAyQAQQEhBCADQQhqIABB/ABqIgUgACABQQF0akHEAGoiAS8BABAfAkACQCADKgIIIgcgAioCACIGXARAIAcgB1sEQCACLQAEIQIMAgsgBiAGXCEECyACLQAEIQIgBEUNACADLQAMIAJB/wFxRg0BCyAFIAEgBiACEDQDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALcAyIADQALCyADQRBqJAALBQAQUAALOQAgAEUEQEEADwsCfyABQYB/cUGAvwNGIAFB/wBNckUEQEHYOkEZNgIAQX8MAQsgACABOgAAQQELC8QCAAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAFBCWsOEgAKCwwKCwIDBAUMCwwMCgsHCAkLIAIgAigCACIBQQRqNgIAIAAgASgCADYCAA8LAAsgAiACKAIAIgFBBGo2AgAgACABMgEANwMADwsgAiACKAIAIgFBBGo2AgAgACABMwEANwMADwsgAiACKAIAIgFBBGo2AgAgACABMAAANwMADwsgAiACKAIAIgFBBGo2AgAgACABMQAANwMADwsACyACIAIoAgBBB2pBeHEiAUEIajYCACAAIAErAwA5AwAPCyAAIAIgAxECAAsPCyACIAIoAgAiAUEEajYCACAAIAE0AgA3AwAPCyACIAIoAgAiAUEEajYCACAAIAE1AgA3AwAPCyACIAIoAgBBB2pBeHEiAUEIajYCACAAIAEpAwA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BkIEhiADQjyIhCEEIANC//////////8PgyIDQoGAgICAgICACFoEQCAEQoGAgICAgICAwAB8IQIMAgsgBEKAgICAgICAgEB9IQIgA0KAgICAgICAgAhSDQEgAiAEQgGDfCECDAELIANQIARCgICAgICAwP//AFQgBEKAgICAgIDA//8AURtFBEAgBkIEhiADQjyIhEL/////////A4NCgICAgICAgPz/AIQhAgwBC0KAgICAgICA+P8AIQIgBEL///////+//8MAVg0AQgAhAiAEQjCIpyIAQZH3AEkNACADIQIgBkL///////8/g0KAgICAgIDAAIQiBSEHAkAgAEGB9wBrIgFBwABxBEAgAiABQUBqrYYhB0IAIQIMAQsgAUUNACAHIAGtIgSGIAJBwAAgAWutiIQhByACIASGIQILIAggAjcDECAIIAc3AxgCQEGB+AAgAGsiAEHAAHEEQCAFIABBQGqtiCEDQgAhBQwBCyAARQ0AIAVBwAAgAGuthiADIACtIgKIhCEDIAUgAoghBQsgCCADNwMAIAggBTcDCCAIKQMIQgSGIAgpAwAiA0I8iIQhAiAIKQMQIAgpAxiEQgBSrSADQv//////////D4OEIgNCgYCAgICAgIAIWgRAIAJCAXwhAgwBCyADQoCAgICAgICACFINACACQgGDIAJ8IQILIAhBIGokACAJIAIgBkKAgICAgICAgIB/g4S/OQMAC5kYAxJ/AXwDfiMAQbAEayIMJAAgDEEANgIsAkAgAb0iGUIAUwRAQQEhEUGZCSETIAGaIgG9IRkMAQsgBEGAEHEEQEEBIRFBnAkhEwwBC0GfCUGaCSAEQQFxIhEbIRMgEUUhFQsCQCAZQoCAgICAgID4/wCDQoCAgICAgID4/wBRBEAgAEEgIAIgEUEDaiIDIARB//97cRArIAAgEyARECkgAEG1FUG8HSAFQSBxIgUbQY8aQcAdIAUbIAEgAWIbQQMQKSAAQSAgAiADIARBgMAAcxArIAMgAiACIANIGyEKDAELIAxBEGohEgJAAn8CQCABIAxBLGoQgAEiASABoCIBRAAAAAAAAAAAYgRAIAwgDCgCLCIGQQFrNgIsIAVBIHIiDkHhAEcNAQwDCyAF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yABKAIAIABqKAIABSAACxECAEEQEB4iACACKQMINwMIIAAgAikDADcDACACQRBqJAAgAAtjAQJ/IwBBEGsiAyQAIAEgACgCBCIEQQF1aiEBIAAoAgAhACADIAEgAiAEQQFxBH8gASgCACAAaigCAAUgAAsRAwBBEBAeIgAgAykDCDcDCCAAIAMpAwA3AwAgA0EQaiQAIAALNwEBfyABIAAoAgQiA0EBdWohASAAKAIAIQAgASACIANBAXEEfyABKAIAIABqKAIABSAACxEEAAs5AQF/IAEgACgCBCIEQQF1aiEBIAAoAgAhACABIAIgAyAEQQFxBH8gASgCACAAaigCAAUgAAsRCQALCQAgASAAEQEACwUAQZ86Cw8AIAEgACgCAGogAjYCAAsNACABIAAoAgBqKAIACxgBAX9BEBAeIgBCADcDCCAAQQA2AgAgAAsYAQF/QRAQHiIAQgA3AwAgAEIANwMIIAALDABBMBAeQQBBMBAvCzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRGgALBQBBmjoLIQAgACABKAIAIAEgASwAC0EASBtBlzogAigCABAQNgIACyoBAX9BDBAeIgFBADoABCABIAAoAgA2AgggAEEANgIAIAFBuCY2AgAgAQsFAEGXOgsFAEGUOgshACAAIAEoAgAgASABLAALQQBIG0GAOiACKAIAEBA2AgAL2AEBBH8jAEEgayIDJAAgASgCACIEQfD///8HSQRAAkACQCAEQQtPBEAgBEEPckEBaiIFEB4hBiADIAVBgICAgHhyNgIQIAMgBjYCCCADIAQ2AgwgBCAGaiEFDAELIAMgBDoAEyADQQhqIgYgBGohBSAERQ0BCyAGIAFBBGogBBAsGgsgBUEAOgAAIAMgAjYCACADQRhqIANBCGogAyAAEQMAIAMoAhgQHSADKAIYIgAQBiADKAIAEAYgAywAE0EASARAIAMoAggQKAsgA0EgaiQAIAAPCxACAAsqAQF/QQwQHiIBQQA6AAQgASAAKAIANgIIIABBADYCACABQcAlNgIAIAELBQBBgDoLaQECfyMAQRBrIgYkACABIAAoAgQi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hAiAQRAIAAgAREAAAsgAEGAgID+BzYCnAEgACgC3AMiAA0ACwsgBEHAAmokAAuyBwEIfyMAQdAAayIHJAAgACgCACEAAkACQCABKAIAIggoAtwDRQRAIAAoAggNASAAKALgAyIBIAJBAnRqIQYCQCAAKALkAyIEIABB6ANqIgMoAgAiBUkEQCAEIAZGBEAgBiAINgIAIAAgBkEEajYC5AMMAgsgBCAEIgJBBGsiAUsEQANAIAIgASgCADYCACACQQRqIQIgAUEEaiIBIARJDQALCyAAIAI2AuQDIAZBBGoiASAERwRAIAQgBCABayIBQXxxayAGIAEQMRoLIAYgCDYCAAwBCyAEIAFrQQJ1QQFqIgRBgICAgARPDQMCQCAHQSBqQf////8DIAUgAWsiAUEBdSIFIAQgBCAFSRsgAUH8////B08bIAIgAxBCIgMoAggiAiADKAIMRw0AIAMoAgQiASADKAIAIgRLBEAgAyABIAEgBGtBAnVBAWpBfm1BAnQiBGogASACIAFrIgEQMSABaiICNgIIIAMgAygCBCAEajYCBAwBCyAHQThqQQEgAiAEa0EBdSACIARGGyIBIAFBAnYgAygCEBBCIgUoAgghBAJ/IAMoAggiAiADKAIEIgFGBEAgBCECIAEMAQsgBCACIAFraiECA0AgBCABKAIANgIAIAFBBGohASAEQQRqIgQgAkcNAAsgAygCCCEBIAMoAgQLIQQgAygCACEJIAMgBSgCADYCACAFIAk2AgAgAyAFKAIENgIEIAUgBDYCBCADIAI2AgggBSABNgIIIAMoAgwhCiADIAUoAgw2AgwgBSAKNgIMIAEgBEcEQCAFIAEgBCABa0EDakF8cWo2AggLIAlFDQAgCRAoIAMoAgghAgsgAiAINgIAIAMgAygCCEEEajYCCCADIAMoAgQgBiAAKALgAyIBayICayABIAIQMTYCBCADKAIIIAYgACgC5AMgBmsiBBAxIQYgACgC4AMhASAAIAMoAgQ2AuADIAMgATYCBCAAKALkAyECIAAgBCAGajYC5AMgAyACNgIIIAAoAugDIQQgACADKAIMNgLoAyADIAE2AgAgAyAENgIMIAEgAkcEQCADIAIgASAC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ACAdAAA4HQAAIR0AACAdAAAgHQAAIB0AACAdAAA4HQAAMB0AACAdAAAxHQAAMR0AACAdAAAwHQAAIB0AAP0cAAAwHQAAIB0AABUdAAAxHQAAIR0AAAAAAAAwHQAAIB0AAD4dAAA+HQAANx0AAHZpaWRkaQAAHR0AACEdAEGgKgtBGQAKABkZGQAAAAAFAAAAAAAACQAAAAALAAAAAAAAAAAZABEKGRkZAwoHAAEACQsYAAAJBgsAAAsABhkAAAAZGRkAQfEqCyEOAAAAAAAAAAAZAAoNGRkZAA0AAAIACQ4AAAAJAA4AAA4AQasrCwEMAEG3KwsVEwAAAAATAAAAAAkMAAAAAAAMAAAMAEHlKwsBEABB8SsLFQ8AAAAEDwAAAAAJEAAAAAAAEAAAEABBnywLARIAQassCx4RAAAAABEAAAAACRIAAAAAABIAABIAABoAAAAaGhoAQeIsCw4aAAAAGhoaAAAAAAAACQBBky0LARQAQZ8tCxUXAAAAABcAAAAACRQAAAAAABQAABQAQc0tCwEWAEHZLQsnFQAAAAAVAAAAAAkWAAAAAAAWAAAWAAAwMTIzNDU2Nzg5QUJDREVGAEGkLgsBzABBzC4LCP//////////AEGQLwsJcCEBAAAAAAAFAEGkLwsBxwBBvC8LCsgAAADJAAAAWB0AQdQvCwECAEHkLwsI//////////8AQagwCwEFAEG0MAsBygBBzDALDsgAAADLAAAAaB0AAAAEAEHkMAsBAQBB9DALBf////8KAEG4MQsBzQ==",!_e(De)){var Ge=De;De=n.locateFile?n.locateFile(Ge,o):o+Ge}function ie(){var ee=De;try{if(ee==De&&c)return new Uint8Array(c);if(_e(ee))try{var H=Zn(ee.slice(37)),ye=new Uint8Array(H.length);for(ee=0;ee=H?"_"+ee:ee}function Ue(ee,H){return ee=Ae(ee),function(){return H.apply(this,arguments)}}var we=[{},{value:void 0},{value:null},{value:!0},{value:!1}],K=[];function oe(ee){var H=Error,ye=Ue(ee,function(Pe){this.name=ee,this.message=Pe,Pe=Error(Pe).stack,Pe!==void 0&&(this.stack=this.toString()+` -`+Pe.replace(/^Error(:[^\n]*)?\n/,""))});return ye.prototype=Object.create(H.prototype),ye.prototype.constructor=ye,ye.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},ye}var Y=void 0;function Z(ee){throw new Y(ee)}var Le=ee=>(ee||Z("Cannot use deleted val. handle = "+ee),we[ee].value),ze=ee=>{switch(ee){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var H=K.length?K.pop():we.length;return we[H]={ga:1,value:ee},H}},Fe=void 0,je=void 0;function ae(ee){for(var H="";x[ee];)H+=je[x[ee++]];return H}var Ne=[];function be(){for(;Ne.length;){var ee=Ne.pop();ee.M.$=!1,ee.delete()}}var Ve=void 0,He={};function lt(ee,H){for(H===void 0&&Z("ptr should not be undefined");ee.R;)H=ee.ba(H),ee=ee.R;return H}var Se={};function W(ee){ee=fr(ee);var H=ae(ee);return hn(ee),H}function $(ee,H){var ye=Se[ee];return ye===void 0&&Z(H+" has unknown type "+W(ee)),ye}function Oe(){}var ft=!1;function pt(ee){--ee.count.value,ee.count.value===0&&(ee.T?ee.U.W(ee.T):ee.P.N.W(ee.O))}function ut(ee,H,ye){return H===ye?ee:ye.R===void 0?null:(ee=ut(ee,H,ye.R),ee===null?null:ye.na(ee))}var Ut={};function _t(ee,H){return H=lt(ee,H),He[H]}var Ot=void 0;function Ft(ee){throw new Ot(ee)}function Pt(ee,H){return H.P&&H.O||Ft("makeClassHandle requires ptr and ptrType"),!!H.U!=!!H.T&&Ft("Both smartPtrType and smartPtr must be specified"),H.count={value:1},mt(Object.create(ee,{M:{value:H}}))}function mt(ee){return typeof FinalizationRegistry>"u"?(mt=H=>H,ee):(ft=new FinalizationRegistry(H=>{pt(H.M)}),mt=H=>{var ye=H.M;return ye.T&&ft.register(H,{M:ye},H),H},Oe=H=>{ft.unregister(H)},mt(ee))}var Rn={};function Sn(ee){for(;ee.length;){var H=ee.pop();ee.pop()(H)}}function cn(ee){return this.fromWireType(w[ee>>2])}var tn={},qt={};function xn(ee,H,ye){function Pe(ct){ct=ye(ct),ct.length!==ee.length&&Ft("Mismatched type converter count");for(var rt=0;rt{Se.hasOwnProperty(ct)?We[rt]=Se[ct]:(et.push(ct),tn.hasOwnProperty(ct)||(tn[ct]=[]),tn[ct].push(()=>{We[rt]=Se[ct],++yt,yt===et.length&&Pe(We)}))}),et.length===0&&Pe(We)}function Vn(ee){switch(ee){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+ee)}}function Tn(ee,H,ye={}){if(!("argPackAdvance"in H))throw new TypeError("registerType registeredInstance requires argPackAdvance");var Pe=H.name;if(ee||Z('type "'+Pe+'" must have a positive integer typeid pointer'),Se.hasOwnProperty(ee)){if(ye.ua)return;Z("Cannot register type '"+Pe+"' twice")}Se[ee]=H,delete qt[ee],tn.hasOwnProperty(ee)&&(H=tn[ee],delete tn[ee],H.forEach(We=>We()))}function Pn(ee){Z(ee.M.P.N.name+" instance already deleted")}function zn(){}function Be(ee,H,ye){if(ee[H].S===void 0){var Pe=ee[H];ee[H]=function(){return ee[H].S.hasOwnProperty(arguments.length)||Z("Function '"+ye+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+ee[H].S+")!"),ee[H].S[arguments.length].apply(this,arguments)},ee[H].S=[],ee[H].S[Pe.Z]=Pe}}function Mt(ee,H){n.hasOwnProperty(ee)?(Z("Cannot register public name '"+ee+"' twice"),Be(n,ee,ee),n.hasOwnProperty(void 0)&&Z("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),n[ee].S[void 0]=H):n[ee]=H}function dt(ee,H,ye,Pe,We,et,yt,ct){this.name=ee,this.constructor=H,this.X=ye,this.W=Pe,this.R=We,this.pa=et,this.ba=yt,this.na=ct,this.ja=[]}function on(ee,H,ye){for(;H!==ye;)H.ba||Z("Expected null or instance of "+ye.name+", got an instance of "+H.name),ee=H.ba(ee),H=H.R;return ee}function nn(ee,H){return H===null?(this.ea&&Z("null is not a valid "+this.name),0):(H.M||Z('Cannot pass "'+fs(H)+'" as a '+this.name),H.M.O||Z("Cannot pass deleted object as a pointer of type "+this.name),on(H.M.O,H.M.P.N,this.N))}function rr(ee,H){if(H===null){if(this.ea&&Z("null is not a valid "+this.name),this.da){var ye=this.fa();return ee!==null&&ee.push(this.W,ye),ye}return 0}if(H.M||Z('Cannot pass "'+fs(H)+'" as a '+this.name),H.M.O||Z("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&H.M.P.ca&&Z("Cannot convert argument of type "+(H.M.U?H.M.U.name:H.M.P.name)+" to parameter type "+this.name),ye=on(H.M.O,H.M.P.N,this.N),this.da)switch(H.M.T===void 0&&Z("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:H.M.U===this?ye=H.M.T:Z("Cannot convert argument of type "+(H.M.U?H.M.U.name:H.M.P.name)+" to parameter type "+this.name);break;case 1:ye=H.M.T;break;case 2:if(H.M.U===this)ye=H.M.T;else{var Pe=H.clone();ye=this.xa(ye,ze(function(){Pe.delete()})),ee!==null&&ee.push(this.W,ye)}break;default:Z("Unsupporting sharing policy")}return ye}function or(ee,H){return H===null?(this.ea&&Z("null is not a valid "+this.name),0):(H.M||Z('Cannot pass "'+fs(H)+'" as a '+this.name),H.M.O||Z("Cannot pass deleted object as a pointer of type "+this.name),H.M.P.ca&&Z("Cannot convert argument of type "+H.M.P.name+" to parameter type "+this.name),on(H.M.O,H.M.P.N,this.N))}function pr(ee,H,ye,Pe){this.name=ee,this.N=H,this.ea=ye,this.ca=Pe,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,H.R!==void 0?this.toWireType=rr:(this.toWireType=Pe?nn:or,this.V=null)}function ai(ee,H){n.hasOwnProperty(ee)||Ft("Replacing nonexistant public symbol"),n[ee]=H,n[ee].Z=void 0}function ar(ee,H){var ye=[];return function(){if(ye.length=0,Object.assign(ye,arguments),ee.includes("j")){var Pe=n["dynCall_"+ee];Pe=ye&&ye.length?Pe.apply(null,[H].concat(ye)):Pe.call(null,H)}else Pe=N.get(H).apply(null,ye);return Pe}}function dr(ee,H){ee=ae(ee);var ye=ee.includes("j")?ar(ee,H):N.get(H);return typeof ye!="function"&&Z("unknown function pointer with signature "+ee+": "+H),ye}var gi=void 0;function ps(ee,H){function ye(et){We[et]||Se[et]||(qt[et]?qt[et].forEach(ye):(Pe.push(et),We[et]=!0))}var Pe=[],We={};throw H.forEach(ye),new gi(ee+": "+Pe.map(W).join([", "]))}function Fs(ee,H,ye,Pe,We){var et=H.length;2>et&&Z("argTypes array size mismatch! Must at least get return value and 'this' types!");var yt=H[1]!==null&&ye!==null,ct=!1;for(ye=1;ye>2]);return ye}function ds(ee){4>2])};case 3:return function(ye){return this.fromWireType(F[ye>>3])};default:throw new TypeError("Unknown float type: "+ee)}}function mr(ee,H,ye){switch(H){case 0:return ye?function(Pe){return C[Pe]}:function(Pe){return x[Pe]};case 1:return ye?function(Pe){return D[Pe>>1]}:function(Pe){return I[Pe>>1]};case 2:return ye?function(Pe){return w[Pe>>2]}:function(Pe){return B[Pe>>2]};default:throw new TypeError("Unknown integer type: "+ee)}}function Jr(ee,H){for(var ye="",Pe=0;!(Pe>=H/2);++Pe){var We=D[ee+2*Pe>>1];if(We==0)break;ye+=String.fromCharCode(We)}return ye}function Ki(ee,H,ye){if(ye===void 0&&(ye=2147483647),2>ye)return 0;ye-=2;var Pe=H;ye=ye<2*ee.length?ye/2:ee.length;for(var We=0;We>1]=ee.charCodeAt(We),H+=2;return D[H>>1]=0,H-Pe}function ll(ee){return 2*ee.length}function pe(ee,H){for(var ye=0,Pe="";!(ye>=H/4);){var We=w[ee+4*ye>>2];if(We==0)break;++ye,65536<=We?(We-=65536,Pe+=String.fromCharCode(55296|We>>10,56320|We&1023)):Pe+=String.fromCharCode(We)}return Pe}function qe(ee,H,ye){if(ye===void 0&&(ye=2147483647),4>ye)return 0;var Pe=H;ye=Pe+ye-4;for(var We=0;We=et){var yt=ee.charCodeAt(++We);et=65536+((et&1023)<<10)|yt&1023}if(w[H>>2]=et,H+=4,H+4>ye)break}return w[H>>2]=0,H-Pe}function se(ee){for(var H=0,ye=0;ye=Pe&&++ye,H+=4}return H}var me={};function Me(ee){var H=me[ee];return H===void 0?ae(ee):H}var $e=[];function Ze(ee){var H=$e.length;return $e.push(ee),H}function It(ee,H){for(var ye=Array(ee),Pe=0;Pe>2],"parameter "+Pe);return ye}var At=[],Kt=[null,[],[]];Y=n.BindingError=oe("BindingError"),n.count_emval_handles=function(){for(var ee=0,H=5;HCn;++Cn)en[Cn]=String.fromCharCode(Cn);je=en,n.getInheritedInstanceCount=function(){return Object.keys(He).length},n.getLiveInheritedInstances=function(){var ee=[],H;for(H in He)He.hasOwnProperty(H)&&ee.push(He[H]);return ee},n.flushPendingDeletes=be,n.setDelayFunction=function(ee){Ve=ee,Ne.length&&Ve&&Ve(be)},Ot=n.InternalError=oe("InternalError"),zn.prototype.isAliasOf=function(ee){if(!(this instanceof zn&&ee instanceof zn))return!1;var H=this.M.P.N,ye=this.M.O,Pe=ee.M.P.N;for(ee=ee.M.O;H.R;)ye=H.ba(ye),H=H.R;for(;Pe.R;)ee=Pe.ba(ee),Pe=Pe.R;return H===Pe&&ye===ee},zn.prototype.clone=function(){if(this.M.O||Pn(this),this.M.aa)return this.M.count.value+=1,this;var ee=mt,H=Object,ye=H.create,Pe=Object.getPrototypeOf(this),We=this.M;return ee=ee(ye.call(H,Pe,{M:{value:{count:We.count,$:We.$,aa:We.aa,O:We.O,P:We.P,T:We.T,U:We.U}}})),ee.M.count.value+=1,ee.M.$=!1,ee},zn.prototype.delete=function(){this.M.O||Pn(this),this.M.$&&!this.M.aa&&Z("Object already scheduled for deletion"),Oe(this),pt(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},zn.prototype.isDeleted=function(){return!this.M.O},zn.prototype.deleteLater=function(){return this.M.O||Pn(this),this.M.$&&!this.M.aa&&Z("Object already scheduled for deletion"),Ne.push(this),Ne.length===1&&Ve&&Ve(be),this.M.$=!0,this},pr.prototype.qa=function(ee){return this.ka&&(ee=this.ka(ee)),ee},pr.prototype.ha=function(ee){this.W&&this.W(ee)},pr.prototype.argPackAdvance=8,pr.prototype.readValueFromPointer=cn,pr.prototype.deleteObject=function(ee){ee!==null&&ee.delete()},pr.prototype.fromWireType=function(ee){function H(){return this.da?Pt(this.N.X,{P:this.wa,O:ye,U:this,T:ee}):Pt(this.N.X,{P:this,O:ee})}var ye=this.qa(ee);if(!ye)return this.ha(ee),null;var Pe=_t(this.N,ye);if(Pe!==void 0)return Pe.M.count.value===0?(Pe.M.O=ye,Pe.M.T=ee,Pe.clone()):(Pe=Pe.clone(),this.ha(ee),Pe);if(Pe=this.N.pa(ye),Pe=Ut[Pe],!Pe)return H.call(this);Pe=this.ca?Pe.la:Pe.pointerType;var We=ut(ye,this.N,Pe.N);return We===null?H.call(this):this.da?Pt(Pe.N.X,{P:Pe,O:We,U:this,T:ee}):Pt(Pe.N.X,{P:Pe,O:We})},gi=n.UnboundTypeError=oe("UnboundTypeError");var Zn=typeof atob=="function"?atob:function(ee){var H="",ye=0;ee=ee.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var Pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ee.charAt(ye++)),We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ee.charAt(ye++)),et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ee.charAt(ye++)),yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ee.charAt(ye++));Pe=Pe<<2|We>>4,We=(We&15)<<4|et>>2;var ct=(et&3)<<6|yt;H+=String.fromCharCode(Pe),et!==64&&(H+=String.fromCharCode(We)),yt!==64&&(H+=String.fromCharCode(ct))}while(yeyt.ta).concat(We.map(yt=>yt.za));xn([ee],et,yt=>{var ct={};return We.forEach((rt,Xe)=>{var Qt=yt[Xe],an=rt.ra,Qn=rt.sa,kr=yt[Xe+We.length],Kn=rt.ya,Ur=rt.Aa;ct[rt.oa]={read:vn=>Qt.fromWireType(an(Qn,vn)),write:(vn,_r)=>{var Bi=[];Kn(Ur,vn,kr.toWireType(Bi,_r)),Sn(Bi)}}}),[{name:H.name,fromWireType:function(rt){var Xe={},Qt;for(Qt in ct)Xe[Qt]=ct[Qt].read(rt);return Pe(rt),Xe},toWireType:function(rt,Xe){for(var Qt in ct)if(!(Qt in Xe))throw new TypeError('Missing field: "'+Qt+'"');var an=ye();for(Qt in ct)ct[Qt].write(an,Xe[Qt]);return rt!==null&&rt.push(Pe,an),an},argPackAdvance:8,readValueFromPointer:cn,V:Pe}]})},v:function(){},B:function(ee,H,ye,Pe,We){var et=Vn(ye);H=ae(H),Tn(ee,{name:H,fromWireType:function(yt){return!!yt},toWireType:function(yt,ct){return ct?Pe:We},argPackAdvance:8,readValueFromPointer:function(yt){if(ye===1)var ct=C;else if(ye===2)ct=D;else if(ye===4)ct=w;else throw new TypeError("Unknown boolean type size: "+H);return this.fromWireType(ct[yt>>et])},V:null})},f:function(ee,H,ye,Pe,We,et,yt,ct,rt,Xe,Qt,an,Qn){Qt=ae(Qt),et=dr(We,et),ct&&(ct=dr(yt,ct)),Xe&&(Xe=dr(rt,Xe)),Qn=dr(an,Qn);var kr=Ae(Qt);Mt(kr,function(){ps("Cannot construct "+Qt+" due to unbound types",[Pe])}),xn([ee,H,ye],Pe?[Pe]:[],function(Kn){if(Kn=Kn[0],Pe)var Ur=Kn.N,vn=Ur.X;else vn=zn.prototype;Kn=Ue(kr,function(){if(Object.getPrototypeOf(this)!==_r)throw new Y("Use 'new' to construct "+Qt);if(Bi.Y===void 0)throw new Y(Qt+" has no accessible constructor");var li=Bi.Y[arguments.length];if(li===void 0)throw new Y("Tried to invoke ctor of "+Qt+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Bi.Y).toString()+") parameters instead!");return li.apply(this,arguments)});var _r=Object.create(vn,{constructor:{value:Kn}});Kn.prototype=_r;var Bi=new dt(Qt,Kn,_r,Qn,Ur,et,ct,Xe);Ur=new pr(Qt,Bi,!0,!1),vn=new pr(Qt+"*",Bi,!1,!1);var Ps=new pr(Qt+" const*",Bi,!1,!0);return Ut[ee]={pointerType:vn,la:Ps},ai(kr,Kn),[Ur,vn,Ps]})},d:function(ee,H,ye,Pe,We,et,yt){var ct=Io(ye,Pe);H=ae(H),et=dr(We,et),xn([],[ee],function(rt){function Xe(){ps("Cannot call "+Qt+" due to unbound types",ct)}rt=rt[0];var Qt=rt.name+"."+H;H.startsWith("@@")&&(H=Symbol[H.substring(2)]);var an=rt.N.constructor;return an[H]===void 0?(Xe.Z=ye-1,an[H]=Xe):(Be(an,H,Qt),an[H].S[ye-1]=Xe),xn([],ct,function(Qn){return Qn=Fs(Qt,[Qn[0],null].concat(Qn.slice(1)),null,et,yt),an[H].S===void 0?(Qn.Z=ye-1,an[H]=Qn):an[H].S[ye-1]=Qn,[]}),[]})},p:function(ee,H,ye,Pe,We,et){0{ps("Cannot construct "+ct.name+" due to unbound types",yt)},xn([],yt,function(Xe){return Xe.splice(1,0,null),ct.N.Y[H-1]=Fs(rt,Xe,null,We,et),[]}),[]})},a:function(ee,H,ye,Pe,We,et,yt,ct){var rt=Io(ye,Pe);H=ae(H),et=dr(We,et),xn([],[ee],function(Xe){function Qt(){ps("Cannot call "+an+" due to unbound types",rt)}Xe=Xe[0];var an=Xe.name+"."+H;H.startsWith("@@")&&(H=Symbol[H.substring(2)]),ct&&Xe.N.ja.push(H);var Qn=Xe.N.X,kr=Qn[H];return kr===void 0||kr.S===void 0&&kr.className!==Xe.name&&kr.Z===ye-2?(Qt.Z=ye-2,Qt.className=Xe.name,Qn[H]=Qt):(Be(Qn,H,an),Qn[H].S[ye-2]=Qt),xn([],rt,function(Kn){return Kn=Fs(an,Kn,Xe,et,yt),Qn[H].S===void 0?(Kn.Z=ye-2,Qn[H]=Kn):Qn[H].S[ye-2]=Kn,[]}),[]})},A:function(ee,H){H=ae(H),Tn(ee,{name:H,fromWireType:function(ye){var Pe=Le(ye);return ds(ye),Pe},toWireType:function(ye,Pe){return ze(Pe)},argPackAdvance:8,readValueFromPointer:cn,V:null})},n:function(ee,H,ye){ye=Vn(ye),H=ae(H),Tn(ee,{name:H,fromWireType:function(Pe){return Pe},toWireType:function(Pe,We){return We},argPackAdvance:8,readValueFromPointer:Ma(H,ye),V:null})},e:function(ee,H,ye,Pe,We){H=ae(H),We===-1&&(We=4294967295),We=Vn(ye);var et=ct=>ct;if(Pe===0){var yt=32-8*ye;et=ct=>ct<>>yt}ye=H.includes("unsigned")?function(ct,rt){return rt>>>0}:function(ct,rt){return rt},Tn(ee,{name:H,fromWireType:et,toWireType:ye,argPackAdvance:8,readValueFromPointer:mr(H,We,Pe!==0),V:null})},b:function(ee,H,ye){function Pe(et){et>>=2;var yt=B;return new We(y,yt[et+1],yt[et])}var We=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][H];ye=ae(ye),Tn(ee,{name:ye,fromWireType:Pe,argPackAdvance:8,readValueFromPointer:Pe},{ua:!0})},o:function(ee,H){H=ae(H);var ye=H==="std::string";Tn(ee,{name:H,fromWireType:function(Pe){var We=B[Pe>>2],et=Pe+4;if(ye)for(var yt=et,ct=0;ct<=We;++ct){var rt=et+ct;if(ct==We||x[rt]==0){if(yt=yt?A(x,yt,rt-yt):"",Xe===void 0)var Xe=yt;else Xe+="\0",Xe+=yt;yt=rt+1}}else{for(Xe=Array(We),ct=0;ct=rt?ct++:2047>=rt?ct+=2:55296<=rt&&57343>=rt?(ct+=4,++et):ct+=3}et=ct}else et=We.length;if(ct=xr(4+et+1),rt=ct+4,B[ct>>2]=et,ye&&yt){if(yt=rt,rt=et+1,et=x,0=Qt){var an=We.charCodeAt(++Xe);Qt=65536+((Qt&1023)<<10)|an&1023}if(127>=Qt){if(yt>=rt)break;et[yt++]=Qt}else{if(2047>=Qt){if(yt+1>=rt)break;et[yt++]=192|Qt>>6}else{if(65535>=Qt){if(yt+2>=rt)break;et[yt++]=224|Qt>>12}else{if(yt+3>=rt)break;et[yt++]=240|Qt>>18,et[yt++]=128|Qt>>12&63}et[yt++]=128|Qt>>6&63}et[yt++]=128|Qt&63}}et[yt]=0}}else if(yt)for(yt=0;ytI,ct=1;else H===4&&(Pe=pe,We=qe,et=se,yt=()=>B,ct=2);Tn(ee,{name:ye,fromWireType:function(rt){for(var Xe=B[rt>>2],Qt=yt(),an,Qn=rt+4,kr=0;kr<=Xe;++kr){var Kn=rt+4+kr*H;(kr==Xe||Qt[Kn>>ct]==0)&&(Qn=Pe(Qn,Kn-Qn),an===void 0?an=Qn:(an+="\0",an+=Qn),Qn=Kn+H)}return hn(rt),an},toWireType:function(rt,Xe){typeof Xe!="string"&&Z("Cannot pass non-string to C++ string type "+ye);var Qt=et(Xe),an=xr(4+Qt+H);return B[an>>2]=Qt>>ct,We(Xe,an+4,Qt+H),rt!==null&&rt.push(hn,an),an},argPackAdvance:8,readValueFromPointer:cn,V:function(rt){hn(rt)}})},k:function(ee,H,ye,Pe,We,et){Rn[ee]={name:ae(H),fa:dr(ye,Pe),W:dr(We,et),ia:[]}},h:function(ee,H,ye,Pe,We,et,yt,ct,rt,Xe){Rn[ee].ia.push({oa:ae(H),ta:ye,ra:dr(Pe,We),sa:et,za:yt,ya:dr(ct,rt),Aa:Xe})},C:function(ee,H){H=ae(H),Tn(ee,{va:!0,name:H,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(ee,H,ye,Pe,We){ee=$e[ee],H=Le(H),ye=Me(ye);var et=[];return B[Pe>>2]=ze(et),ee(H,ye,et,We)},t:function(ee,H,ye,Pe){ee=$e[ee],H=Le(H),ye=Me(ye),ee(H,ye,null,Pe)},g:ds,m:function(ee,H){var ye=It(ee,H),Pe=ye[0];H=Pe.name+"_$"+ye.slice(1).map(function(yt){return yt.name}).join("_")+"$";var We=At[H];if(We!==void 0)return We;var et=Array(ee-1);return We=Ze((yt,ct,rt,Xe)=>{for(var Qt=0,an=0;an>>=0,2147483648=ye;ye*=2){var Pe=H*(1+.2/ye);Pe=Math.min(Pe,ee+100663296);var We=Math;Pe=Math.max(ee,Pe),We=We.min.call(We,2147483648,Pe+(65536-Pe%65536)%65536);e:{try{p.grow(We-y.byteLength+65535>>>16),P();var et=1;break e}catch{}et=void 0}if(et)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(ee,H,ye,Pe){for(var We=0,et=0;et>2],ct=B[H+4>>2];H+=8;for(var rt=0;rt>2]=We,0}};(function(){function ee(We){n.asm=We.exports,p=n.asm.E,P(),N=n.asm.J,q.unshift(n.asm.F),he--,n.monitorRunDependencies&&n.monitorRunDependencies(he),he==0&&Ie&&(We=Ie,Ie=null,We())}function H(We){ee(We.instance)}function ye(We){return ge().then(function(et){return WebAssembly.instantiate(et,Pe)}).then(function(et){return et}).then(We,function(et){l("failed to asynchronously prepare wasm: "+et),re(et)})}var Pe={a:Ir};if(he++,n.monitorRunDependencies&&n.monitorRunDependencies(he),n.instantiateWasm)try{return n.instantiateWasm(Pe,ee)}catch(We){l("Module.instantiateWasm callback failed with error: "+We),i(We)}return function(){return c||typeof WebAssembly.instantiateStreaming!="function"||_e(De)||typeof fetch!="function"?ye(H):fetch(De,{credentials:"same-origin"}).then(function(We){return WebAssembly.instantiateStreaming(We,Pe).then(H,function(et){return l("wasm streaming compile failed: "+et),l("falling back to ArrayBuffer instantiation"),ye(H)})})}().catch(i),{}})(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.F).apply(null,arguments)};var fr=n.___getTypeName=function(){return(fr=n.___getTypeName=n.asm.G).apply(null,arguments)};n.__embind_initialize_bindings=function(){return(n.__embind_initialize_bindings=n.asm.H).apply(null,arguments)};var xr=n._malloc=function(){return(xr=n._malloc=n.asm.I).apply(null,arguments)},hn=n._free=function(){return(hn=n._free=n.asm.K).apply(null,arguments)};n.dynCall_jiji=function(){return(n.dynCall_jiji=n.asm.L).apply(null,arguments)};var zt;Ie=function ee(){zt||Ln(),zt||(Ie=ee)};function Ln(){function ee(){if(!zt&&(zt=!0,n.calledRun=!0,!d)){if(ve(q),r(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),n.postRun)for(typeof n.postRun=="function"&&(n.postRun=[n.postRun]);n.postRun.length;){var H=n.postRun.shift();L.unshift(H)}ve(L)}}if(!(01?a-1:0),c=1;cs?t.Node.createWithConfig(s):t.Node.createDefault()),e(t.Node.prototype,"free",function(){t.Node.destroy(this)}),e(t.Node.prototype,"freeRecursive",function(){for(let i=0,s=this.getChildCount();i1&&arguments[1]!==void 0?arguments[1]:NaN,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:$1.LTR;return i.call(this,s,o,a)}),{Config:t.Config,Node:t.Node,...CJ}}async function xJ(){return vJ(await EJ())}const IJ=Math.cos(45/180*Math.PI),DI=[new Tr,new Tr,new Tr,new Tr],sF=new ue;class DJ{constructor(e,n,r,i,s){Ke(this,"planes");Ke(this,"facePlane");Ke(this,"originalCenter");this.originalCenter=new ue(n,r,0).applyMatrix4(e),this.facePlane=new Tr(new ue(0,0,1),0).applyMatrix4(e);const o=i/2,a=s/2,l=r+a,c=n+o,p=-r+a,d=-n+o;this.planes=[new Tr(new ue(0,-1,0),p).applyMatrix4(e),new Tr(new ue(-1,0,0),d).applyMatrix4(e),new Tr(new ue(0,1,0),l).applyMatrix4(e),new Tr(new ue(1,0,0),c).applyMatrix4(e)]}min({planes:e}){for(let i=0;i<4;i++){const s=this.facePlane,o=e[i],a=s.normal.dot(o.normal);if(Math.abs(a)>.99)return this;const l=DI[i];if(Math.abs(a)<.01){l.copy(o);continue}l.normal.crossVectors(s.normal,o.normal).normalize().cross(s.normal).negate();const c=1-a*a,p=(s.constant-o.constant*a)/c,d=(o.constant-s.constant*a)/c;sF.copy(s.normal).multiplyScalar(p).addScaledVector(o.normal,d),l.constant=-sF.dot(l.normal)}let n=0;const r=this.planes[0].normal;for(;DI[n].normal.dot(r)>IJ;)break;for(let i=0;i<4;i++){const s=this.planes[i],o=(i+n)%4;DI[o].distanceToPoint(this.originalCenter){if(n.value==null)return!0;const i=e.value,s=t==null?void 0:t.value;if(s==null||i==null)return!1;const[o,a]=n.value,l=r.value;for(let d=0;d<4;d++){const[A,y]=SJ[d];oF[d].set(A*l*o,y*l*a,0).applyMatrix4(i)}const{planes:c}=s;let p;for(let d=0;d<4;d++){const A=c[d];p=!0;for(let y=0;y<4;y++){const C=oF[y];A.distanceToPoint(C)>=0&&(p=!1)}if(p)return!0}return!1})}function UC(t,{overflow:e,borderInset:n,size:r},i,s){return bn(()=>{const o=t.value;if(o==null||e.value===Op.Visible)return s==null?void 0:s.value;if(r.value==null||n.value==null)return;const[a,l]=r.value,[c,p,d,A]=n.value,y=i.value,C=new DJ(o,(p-A)*y/2,(c-d)*y/2,(a-A-p)*y,(l-c-d)*y);return(s==null?void 0:s.value)!=null&&C.min(s.value),C})}const KS=new Tr(new ue(-1,0,0),Number.MAX_SAFE_INTEGER),OE=new Float32Array(16);for(let t=0;t<4;t++)KS.normal.toArray(OE,t*4),OE[t*4+3]=KS.constant;function x0(t,e){const n=()=>{var i;return(i=t.object.current)==null?void 0:i.matrixWorld};return new Array(4).fill(void 0).map((i,s)=>new wJ(()=>{var o;return(o=e==null?void 0:e.value)==null?void 0:o.planes[s]},n))}const Mo=new Tr;class wJ{constructor(e,n){Ke(this,"getLocalPlane");Ke(this,"getGlobalMatrix");Ke(this,"isPlane",!0);this.getLocalPlane=e,this.getGlobalMatrix=n}get normal(){return this.computeInto(Mo),Mo.normal}get constant(){return this.computeInto(Mo),Mo.constant}computeInto(e){const n=this.getLocalPlane(),r=this.getGlobalMatrix();return n==null||r==null?e.copy(KS):e.copy(n).applyMatrix4(r)}set(e,n){return this}setComponents(e,n,r,i){return this}setFromNormalAndCoplanarPoint(e,n){return this}setFromCoplanarPoints(e,n,r){return this}clone(){return this.computeInto(new Tr)}copy(e){return this.computeInto(e),this}normalize(){return this}negate(){return this}distanceToPoint(e){return this.computeInto(Mo).distanceToPoint(e)}distanceToSphere(e){return this.computeInto(Mo).distanceToSphere(e)}projectPoint(e,n){return this.computeInto(Mo).projectPoint(e,n)}intersectLine(e,n){return this.computeInto(Mo).intersectLine(e,n)}intersectsLine(e){return this.computeInto(Mo).intersectsLine(e)}intersectsBox(e){return this.computeInto(Mo).intersectsBox(e)}intersectsSphere(e){return this.computeInto(Mo).intersectsSphere(e)}coplanarPoint(e){return this.computeInto(Mo).coplanarPoint(e)}applyMatrix4(e,n){return this}translate(e){return this}equals(e){return this.computeInto(Mo).equals(e)}isIntersectionLine(e){return this.computeInto(Mo).isIntersectionLine(e)}}function FL(t,e){for(;e>=t.length;){let n=0,r=0;if(t.length>0){const i=t[t.length-1];n+=i.offset+i.elements.length,r=Math.min(0,i.missingSpace),i.missingSpace-=r}t.push({add:[],missingSpace:r,offset:n,elements:[]})}}function BJ(t,e,n){FL(t,0);const r=t[t.length-1];r.missingSpace+=e-n}function bJ(t,e,n,r){FL(t,e);const i=t[e];return i.missingSpace+=1,i.missingSpace<=0?(r(n,i,i.elements.length),i.elements.push(n),!1):(i.add.push(n),!0)}function TJ(t,e,n,r,i,s,o,a){if(e>=t.length)throw new Error(`no bucket at index ${e}`);const l=t[e];l.missingSpace-=1;const c=l.add.indexOf(n);if(c!=-1)return l.add.splice(c,1),!1;if(r==null||r>=l.elements.length)throw new Error(`no element at index ${r}`);if(l.add.length>0){const y=l.add.shift();return l.elements[r]=y,i(y,l,r),!1}const p=l.offset,d=l.elements.length-1;if(d!=r){const y=p+d,C=p+r;a(C,y,y+1);const x=l.elements[d];l.elements[r]=x,o(x,r)}if(s(p+d),l.elements.length-=1,e0;){const y=t[e-1];y.missingSpace+=A.missingSpace,A=t[--e]}return t.length=e+1,!1}function MJ(t,e,n){let r=t.length,i=-1;for(let o=0;o0&&(i=o);const l=o===r-1;if(!l&&a.missingSpace===0)continue;const c=a.missingSpace<0;for(let p=o-1;p>=0;p--){const d=t[p];if(d.missingSpace===0)continue;const A=d.missingSpace<0;if(A&&(l||c)){aF(t,n,p,o,Math.abs(d.missingSpace));continue}if(!c&&!A)continue;const y=Math.min(Math.abs(d.missingSpace),Math.abs(a.missingSpace));c?_J(t,n,p,o,y):aF(t,n,p,o,y)}}const s=t[i];for(let o=i+1;ot.setPositionType(cu(FJ,e,1)),positionTop:(t,e)=>t.setPosition(1,e??NaN),positionLeft:(t,e)=>t.setPosition(0,e??NaN),positionRight:(t,e)=>t.setPosition(2,e??NaN),positionBottom:(t,e)=>t.setPosition(3,e??NaN),alignContent:(t,e)=>t.setAlignContent(cu(SI,e,4)),alignItems:(t,e)=>t.setAlignItems(cu(SI,e,4)),alignSelf:(t,e)=>t.setAlignSelf(cu(SI,e,0)),flexDirection:(t,e)=>t.setFlexDirection(cu(PJ,e,2)),flexWrap:(t,e)=>t.setFlexWrap(cu(QJ,e,0)),justifyContent:(t,e)=>t.setJustifyContent(cu(kJ,e,0)),marginTop:(t,e)=>t.setMargin(1,e??NaN),marginLeft:(t,e)=>t.setMargin(0,e??NaN),marginRight:(t,e)=>t.setMargin(2,e??NaN),marginBottom:(t,e)=>t.setMargin(3,e??NaN),flexBasis:(t,e)=>t.setFlexBasis(e??NaN),flexGrow:(t,e)=>t.setFlexGrow(e??0),flexShrink:(t,e)=>t.setFlexShrink(e??1),width:(t,e)=>t.setWidth(e??NaN),height:(t,e)=>t.setHeight(e??NaN),minWidth:(t,e)=>t.setMinWidth(e??NaN),minHeight:(t,e)=>t.setMinHeight(e??NaN),maxWidth:(t,e)=>t.setMaxWidth(e??NaN),maxHeight:(t,e)=>t.setMaxHeight(e??NaN),aspectRatio:(t,e)=>t.setAspectRatio(e??NaN),borderTopWidth:(t,e)=>t.setBorder(1,e??NaN),borderLeftWidth:(t,e)=>t.setBorder(0,e??NaN),borderRightWidth:(t,e)=>t.setBorder(2,e??NaN),borderBottomWidth:(t,e)=>t.setBorder(3,e??NaN),overflow:(t,e)=>t.setOverflow(cu(RJ,e,0)),display:(t,e)=>t.setDisplay(cu(LJ,e,0)),paddingTop:(t,e)=>t.setPadding(1,e??NaN),paddingLeft:(t,e)=>t.setPadding(0,e??NaN),paddingRight:(t,e)=>t.setPadding(2,e??NaN),paddingBottom:(t,e)=>t.setPadding(3,e??NaN),gapRow:(t,e)=>t.setGap(1,e??NaN),gapColumn:(t,e)=>t.setGap(0,e??NaN)},qg=100;function NJ(t){const e=t.create();return e.setUseWebDefaults(!0),e.setPointScaleFactor(qg),e.setExperimentalFeatureEnabled(_L.WebFlexBasis,!0),e}const tE=Yt(void 0);xJ().then(({Node:t,Config:e})=>{const n=NJ(e);tE.value=()=>t.create(n)}).catch(console.error);const OJ=()=>{var t;return(t=tE.value)==null?void 0:t.call(tE)};function UJ(t){return t==="measureFunc"?!0:t in PL}function ku(){const t=Yt([!1,!1]);return{size:Yt(void 0),relativeCenter:Yt(void 0),borderInset:Yt(void 0),overflow:Yt(Op.Visible),displayed:Yt(!1),scrollable:t,paddingInset:Yt(void 0),maxScrollPosition:Yt([void 0,void 0])}}class QL{constructor(e,n,r,i,s,o){Ke(this,"state");Ke(this,"propertiesSignal");Ke(this,"requestCalculateLayout");Ke(this,"object");Ke(this,"objectVisibileDefault");Ke(this,"children",[]);Ke(this,"yogaNode");Ke(this,"layoutChangeListeners",new Set);Ke(this,"customLayouting");Ke(this,"active",Yt(!1));Ke(this,"objectVisible",!1);this.state=e,this.propertiesSignal=n,this.requestCalculateLayout=r,this.object=i,this.objectVisibileDefault=s,o.push(sn(()=>{const a=OJ();if(a!=null)return this.yogaNode=a,this.active.value=!0,this.updateMeasureFunction(),()=>{var l,c,p;(c=(l=this.yogaNode)==null?void 0:l.getParent())==null||c.removeChild(this.yogaNode),(p=this.yogaNode)==null||p.free()}})),oB(n,this.active,UJ,(a,l)=>{PL[a](this.yogaNode,l),this.requestCalculateLayout()},o)}setCustomLayouting(e){this.customLayouting=e,this.updateMeasureFunction()}updateMeasureFunction(){this.customLayouting==null||!this.active.value||(GJ(this.yogaNode,this.customLayouting.measure),this.requestCalculateLayout())}calculateLayout(){this.yogaNode!=null&&(this.commit(this.yogaNode.getFlexDirection()),this.yogaNode.calculateLayout(void 0,void 0),xL(()=>this.updateMeasurements(!0,void 0,void 0)))}addChild(e){this.children.push(e),this.requestCalculateLayout()}removeChild(e){const n=this.children.indexOf(e);n!==-1&&(this.children.splice(n,1),this.requestCalculateLayout())}commit(e){var c;if(this.yogaNode==null)throw new Error("commit cannot be called without a yoga node");const n=e===jf.Column||e===jf.ColumnReverse,r=this.propertiesSignal.peek();if(this.customLayouting!=null&&pm(()=>r.read(n?"minHeight":"minWidth",void 0))===void 0&&this.yogaNode[n?"setMinHeight":"setMinWidth"](n?this.customLayouting.minHeight:this.customLayouting.minWidth),pm(()=>r.read("flexShrink",void 0))==null){const p=pm(()=>r.read("height",void 0))!=null;this.yogaNode.setFlexShrink(p&&n?0:void 0)}let i;this.children.sort((p,d)=>{var D,I;if(i??(i=(I=(D=p.object.current)==null?void 0:D.parent)==null?void 0:I.children),i==null)return 0;const A=p.object.current,y=d.object.current;if(A==null||y==null)return 0;const C=i.indexOf(A);if(C===-1)throw new Error("parent mismatch");const x=i.indexOf(y);if(x===-1)throw new Error("parent mismatch");return C-x});let s=0,o=this.yogaNode.getChild(s),a=this.children[s];for(;a!=null||o!=null;){if(a!=null&&o!=null&&HJ(o,uF(a.yogaNode))){a=this.children[++s],o=this.yogaNode.getChild(s);continue}if(o!=null&&this.yogaNode.removeChild(o),a!=null){const p=uF(a.yogaNode);(c=p.getParent())==null||c.removeChild(p),this.yogaNode.insertChild(p,s),a=this.children[++s]}o=this.yogaNode.getChild(s)}const l=this.children.length;for(let p=0;pp.objectVisible),this.object.current!=null&&(this.object.current.visible=this.objectVisible)}updateMeasurements(e,n,r){if(this.yogaNode==null)throw new Error("update measurements cannot be called without a yoga node");this.state.overflow.value=this.yogaNode.getOverflow(),e&&(e=this.yogaNode.getDisplay()===qS.Flex),this.state.displayed.value=e;const i=this.yogaNode.getComputedWidth(),s=this.yogaNode.getComputedHeight();Df(this.state.size,i,s),n??(n=i),r??(r=s);const o=this.yogaNode.getComputedLeft(),a=this.yogaNode.getComputedTop(),l=o+i*.5-n*.5,c=-(a+s*.5-r*.5);Df(this.state.relativeCenter,l,c);const p=this.yogaNode.getComputedPadding(Ss.Top),d=this.yogaNode.getComputedPadding(Ss.Left),A=this.yogaNode.getComputedPadding(Ss.Right),y=this.yogaNode.getComputedPadding(Ss.Bottom);lF(this.state.paddingInset,p,A,y,d);const C=this.yogaNode.getComputedBorder(Ss.Top),x=this.yogaNode.getComputedBorder(Ss.Right),D=this.yogaNode.getComputedBorder(Ss.Bottom),I=this.yogaNode.getComputedBorder(Ss.Left);lF(this.state.borderInset,C,x,D,I);for(const P of this.layoutChangeListeners)P();const w=this.children.length;let B=0,_=0;for(let P=0;P.5,z=q>.5;Df(this.state.maxScrollPosition,L?U:void 0,z?q:void 0),Df(this.state.scrollable,L,z)}else Df(this.state.maxScrollPosition,void 0,void 0),Df(this.state.scrollable,!1,!1);const F=this.state.overflow.value===Op.Visible;return[o+Math.max(i,F?B:0),a+Math.max(s,F?_:0)]}addLayoutChangeListener(e){return this.layoutChangeListeners.add(e),()=>void this.layoutChangeListeners.delete(e)}}function GJ(t,e){if(e==null){t.setMeasureFunc(null);return}t.setMeasureFunc((n,r,i,s)=>{const o=e(n,r,i,s);return{width:Math.ceil(o.width*qg+1)/qg,height:Math.ceil(o.height*qg+1)/qg}}),t.markDirty()}function Df(t,e,n){if(t.value!=null){const[r,i]=t.value;if(r===e&&i===n)return}t.value=[e,n]}function lF(t,e,n,r,i){if(t.value!=null){const[s,o,a,l]=t.value;if(s==e&&o==n&&a==r&&l==i)return}t.value=[e,n,r,i]}function uF(t){if(t==null)throw new Error("commit cannot be called with a children that miss a yoga node");return t}function HJ(t,e){return t.M.O===e.M.O}function zJ(t,e,n,r,i){let s=!1;if(OC(e,r,n,a=>{"active"in a&&(s=!0)}),!s&&(e==null?void 0:e.onActiveChange)==null&&(n==null?void 0:n.onActiveChange)==null){i.value.length=0;return}const o=({pointerId:a})=>{var l,c;i.value=i.value.filter(p=>p!=a),!(i.value.length>0)&&((l=n==null?void 0:n.onActiveChange)==null||l.call(n,!1),(c=e==null?void 0:e.onActiveChange)==null||c.call(e,!1))};Up("onPointerDown",t,({pointerId:a})=>{var l,c;i.value=[a,...i.value],i.value.length==1&&((l=n==null?void 0:n.onActiveChange)==null||l.call(n,!0),(c=e==null?void 0:e.onActiveChange)==null||c.call(e,!0))}),Up("onPointerUp",t,o),Up("onPointerLeave",t,o)}function Ru(t){return{active:v0(()=>t.value.length>0)}}function WJ(t){t==null||t.traverse(e=>{e instanceof gr&&(e.material instanceof Ni&&e.material.dispose(),e.geometry instanceof Hn&&e.geometry.dispose())})}function Ih(t,e){return bn(()=>{const n=e.value,r=t.value;if(!(n==null||r==null))return r.clone().multiply(n)})}function Lu(t,e,n){return bn(()=>t.displayed.value&&(e==null||!(e!=null&&e.value))&&n.value.read("visibility","visible")==="visible")}function kL(t,e,n,r,i,...s){r.push(o=>{if(!(i instanceof wi)){let a=!1;return e(i,...s).then(l=>a?void 0:t.value=l),o.push(()=>a=!0),o}return o.push(sn(()=>{let a=!1;return e(i.value,...s).then(l=>a?void 0:t.value=l).catch(console.error),()=>a=!0})),n!=null&&o.push(()=>{const{value:a}=t;a!=null&&n(a)}),o})}function Dh(t,e,n,r,i,s,o){o.push(a=>{const l=new QL(e,r,n.root.requestCalculateLayout,i,s,a);return t!=null&&(t.value=l),a.push(sn(()=>{const c=n.node.value;if(c!=null)return c.addChild(l),()=>c.removeChild(l)})),a})}const cF=new Map,GC={keepAspectRatio:(t,e)=>{let n=cF.get(t);n==null&&cF.set(t,n=bn(()=>bs(t)===!1?null:void 0)),e.add("aspectRatio",n)}};function Nu(t,e,n,r,i,s,o){return bn(()=>{const a={};return jJ(a,s==null?void 0:s.value),SX(a,t.value,e.value,n.value,r,o),zJ(a,t.value,e.value,n.value,i),a})}function jJ(t,e){for(const n in e)Up(n,t,e[n])}function Up(t,e,n){if(n==null)return;const r=e[t];if(r==null){e[t]=n;return}e[t]=i=>{r(i),!("stopped"in i&&i.stopped)&&n(i)}}function Ou(t,e,n,r,i,s){return bn(()=>{const o=new lJ(i);return s==null||s(o),o.addAll(t.value,e.value,n.value,r),o})}const hF=new Xt;function RL(t,e,n,r){const i=nr(t,"color",void 0),s=nr(t,"opacity",1);n.push(()=>sn(()=>{var a;let o;Array.isArray(i.value)?o=hF.setRGB(...i.value):i.value!=null&&(o=hF.set(i.value)),(a=bs(e))==null||a.traverse(l=>{if(!(l instanceof gr))return;l.renderOrder=r.renderOrder.value;const c=l.material;c.color.copy(o??l.userData.color),c.opacity=s.value,c.depthTest=r.depthTest.value})}))}function Ul(t,e,n,r,i,s,o,a,l,c,p,d){return d.push(sn(()=>{if(e.value==null)return;const A=[],y=r.getGroup(e.value.majorIndex,n==null?void 0:n.value);return new JJ(t,y,e.value.minorIndex,i,s,o,a,l,c,p,A),()=>sa(A)})),d}const v1=new En,VJ=new En;class JJ{constructor(e,n,r,i,s,o,a,l,c,p,d){Ke(this,"group");Ke(this,"minorIndex");Ke(this,"matrix");Ke(this,"size");Ke(this,"offset");Ke(this,"borderInset");Ke(this,"clippingRect");Ke(this,"materialConfig");Ke(this,"indexInBucket");Ke(this,"bucket");Ke(this,"unsubscribeList",[]);Ke(this,"insertedIntoGroup",!1);Ke(this,"active",Yt(!1));this.group=n,this.minorIndex=r,this.matrix=i,this.size=s,this.offset=o,this.borderInset=a,this.clippingRect=l,this.materialConfig=p;const A=p.setters;oB(e,this.active,p.hasProperty,(C,x)=>{const D=this.getIndexInBuffer();if(D==null)return;const{instanceData:I,instanceDataOnUpdate:w,root:B}=this.group;A[C](I.array,I.itemSize*D,x,s,w),B.requestRender()},d);const y=p.computedIsVisibile(e,a,s,c);d.push(sn(()=>{if(y.value){this.requestShow();return}this.hide()}),()=>this.hide())}setIndexInBucket(e){this.indexInBucket=e}getIndexInBuffer(){if(!(this.bucket==null||this.indexInBucket==null))return this.bucket.offset+this.indexInBucket}activate(e,n){this.bucket=e,this.indexInBucket=n,this.active.value=!0,this.unsubscribeList.push(sn(()=>{if(this.matrix.value==null||this.size.value==null)return;const r=this.getIndexInBuffer();if(r==null)return;const i=r*16,[s,o]=this.size.value,a=this.group.pixelSize.value;if(v1.makeScale(s*a,o*a,1),this.offset!=null){const[p,d]=this.offset.value;v1.premultiply(VJ.makeTranslation(p*a,d*a,0))}v1.premultiply(this.matrix.value);const{instanceMatrix:l,root:c}=this.group;v1.toArray(l.array,i),l.addUpdateRange(i,16),l.needsUpdate=!0,c.requestRender()}),sn(()=>{const r=this.getIndexInBuffer();if(r==null||this.size.value==null)return;const[i,s]=this.size.value,{instanceData:o,root:a}=this.group,{array:l}=o,c=r*16+13;l[c]=i,l[c+1]=s,o.addUpdateRange(c,2),o.needsUpdate=!0,a.requestRender()}),sn(()=>{const r=this.getIndexInBuffer();if(r==null||this.borderInset.value==null)return;const{instanceData:i,root:s}=this.group,o=r*16+0;i.array.set(this.borderInset.value,o),i.addUpdateRange(o,4),i.needsUpdate=!0,s.requestRender()}),sn(()=>{var l;const r=this.getIndexInBuffer();if(r==null)return;const{instanceClipping:i,root:s}=this.group,o=r*16,a=(l=this.clippingRect)==null?void 0:l.value;a!=null?a.toArray(i.array,o):i.array.set(OE,o),i.addUpdateRange(o,16),i.needsUpdate=!0,s.requestRender()}))}requestShow(){this.insertedIntoGroup||(this.insertedIntoGroup=!0,this.group.insert(this.minorIndex,this))}hide(){if(!this.insertedIntoGroup)return;this.active.value=!1,this.group.delete(this.minorIndex,this.indexInBucket,this),this.insertedIntoGroup=!1,this.bucket=void 0,this.indexInBucket=void 0;const e=this.unsubscribeList.length;for(let n=0;no(l,c,p??a,d,A)}const i=new Float32Array(16);return r0(i,4,n.backgroundColor,void 0),r0(i,8,n.borderColor,void 0),i[11]=n.borderBend,i[12]=n.borderOpacity,i[15]=n.backgroundOpacity,{hasProperty:s=>s in r,defaultData:i,setters:r,computedIsVisibile:(s,o,a,l)=>bn(()=>{if(o.value==null||a.value==null)return!0;const c=t.borderOpacity==null?n.borderOpacity:s.value.read(t.borderOpacity,n.borderOpacity),p=t.backgroundOpacity==null?n.backgroundOpacity:s.value.read(t.backgroundOpacity,n.backgroundOpacity),d=t.backgroundColor==null?n.backgroundColor:s.value.read(t.backgroundColor,n.backgroundColor),A=o.value.some(D=>D>0)&&c>0,[y,C]=a.value;return!(y>0&&C>0&&(p===-1||p>0)&&d!=NL)&&!A?!1:l.value})}}const qJ={backgroundColor:(t,e,n,r,i)=>r0(t,e+4,n,i),borderBottomLeftRadius:(t,e,n,{value:r},i)=>r!=null&&x1(t,e+7,0,n,r[1],i),borderBottomRightRadius:(t,e,n,{value:r},i)=>r!=null&&x1(t,e+7,1,n,r[1],i),borderTopRightRadius:(t,e,n,{value:r},i)=>r!=null&&x1(t,e+7,2,n,r[1],i),borderTopLeftRadius:(t,e,n,{value:r},i)=>r!=null&&x1(t,e+7,3,n,r[1],i),borderColor:(t,e,n,r,i)=>r0(t,e+8,n,i),borderBend:(t,e,n,r,i)=>BI(t,e+11,n,i),borderOpacity:(t,e,n,r,i)=>BI(t,e+12,n,i),backgroundOpacity:(t,e,n,r,i)=>BI(t,e+15,n,i)};function x1(t,e,n,r,i,s){XJ(t,e,n,r,i),s==null||s(e,1)}function BI(t,e,n,r){t[e]=n,r==null||r(e,1)}const KJ=new Xt;function r0(t,e,n,r){Array.isArray(n)?t.set(n,e):KJ.set(n).toArray(t,e),r==null||r(e,3)}function UL(t,e){const n=new t;n.defines==null&&(n.defines={}),n.side=Sa,n.clipShadows=!0,n.transparent=!0,n.toneMapped=!1,n.depthWrite=!1,n.shadowSide=Sa,n.defines.USE_UV="",n.defines.USE_TANGENT="";const r=n.onBeforeCompile;return n.onBeforeCompile=(i,s)=>{r.call(n,i,s),e.type==="normal"&&(i.uniforms.data={value:e.data}),eY(i,e.type==="instanced")},n}class GL extends gC{constructor(n){super();Ke(this,"info");this.info=n,this.defines==null&&(this.defines={}),this.defines.USE_UV="",this.clipShadows=!0}onBeforeCompile(n,r){super.onBeforeCompile(n,r),this.info.type==="normal"&&(n.uniforms.data={value:this.info.data}),zL(n,this.info.type==="instanced")}}class HL extends AC{constructor(n){super({depthPacking:Iw});Ke(this,"info");this.info=n,this.defines==null&&(this.defines={}),this.defines.USE_UV="",this.clipShadows=!0}onBeforeCompile(n,r){super.onBeforeCompile(n,r),this.info.type==="normal"&&(n.uniforms.data={value:this.info.data}),zL(n,this.info.type==="instanced")}}const ZJ=new HL({type:"instanced"}),$J=new GL({type:"instanced"});function zL(t,e){WL(t,e),t.fragmentShader=t.fragmentShader.replace("#include ",`#include + `)+g.join(" > ")}return null},n.getPublicRootInstance=function(g){if(g=g.current,!g.child)return null;switch(g.child.tag){case 5:return De(g.child.stateNode);default:return g.child.stateNode}},n.injectIntoDevTools=function(g){if(g={bundleType:g.bundleType,version:g.version,rendererPackageName:g.rendererPackageName,rendererConfig:g.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:a.ReactCurrentDispatcher,findHostInstanceByFiber:Rv,findFiberByHostInstance:g.findFiberByHostInstance||Yd,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")g=!1;else{var m=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(m.isDisabled||!m.supportsFiber)g=!0;else{try{ul=m.inject(g),Rr=m}catch{}g=!!m.checkDCE}}return g},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(g,m,T,Q){if(!$)throw Error(o(363));g=tg(g,m);var G=Ot(g,T,Q).disconnect;return{disconnect:function(){G()}}},n.registerMutableSourceForHydration=function(g,m){var T=m._getVersion;T=T(m._source),g.mutableSourceEagerHydrationData==null?g.mutableSourceEagerHydrationData=[m,T]:g.mutableSourceEagerHydrationData.push(m,T)},n.runWithPriority=function(g,m){var T=bt;try{return bt=g,m()}finally{bt=T}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(g,m,T,Q){var G=m.current,V=Cs(),Ce=yl(G);return T=$0(T),m.context===null?m.context=T:m.pendingContext=T,m=Oi(V,Ce),m.payload={element:g},Q=Q===void 0?null:Q,Q!==null&&(m.callback=Q),ts(G,m),g=bo(G,Ce,V),g!==null&&So(g,G,Ce),Ce},n};tL.exports=nV;var rV=tL.exports;const iV=zE(rV),sV=t=>typeof t=="object"&&typeof t.then=="function",_p=[];function iL(t,e,n=(r,i)=>r===i){if(t===e)return!0;if(!t||!e)return!1;const r=t.length;if(e.length!==r)return!1;for(let i=0;i0&&(s.timeout&&clearTimeout(s.timeout),s.timeout=setTimeout(s.remove,r.lifespan)),s.response;if(!n)throw s.promise}const i={keys:e,equal:r.equal,remove:()=>{const s=_p.indexOf(i);s!==-1&&_p.splice(s,1)},promise:(sV(t)?t:t(...e)).then(s=>{i.response=s,r.lifespan&&r.lifespan>0&&(i.timeout=setTimeout(i.remove,r.lifespan))}).catch(s=>i.error=s)};if(_p.push(i),!n)throw i.promise}const oV=(t,e,n)=>sL(t,e,!1,n),aV=(t,e,n)=>void sL(t,e,!0,n),lV=t=>{if(t===void 0||t.length===0)_p.splice(0,_p.length);else{const e=_p.find(n=>iL(t,n.keys,n.equal));e&&e.remove()}},eB={},uV=t=>void Object.assign(eB,t);function cV(t,e){function n(p,{args:d=[],attach:A,...y},C){let x=`${p[0].toUpperCase()}${p.slice(1)}`,D;if(p==="primitive"){if(y.object===void 0)throw new Error("R3F: Primitives without 'object' are invalid!");const I=y.object;D=wf(I,{type:p,root:C,attach:A,primitive:!0})}else{const I=eB[x];if(!I)throw new Error(`R3F: ${x} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`);if(!Array.isArray(d))throw new Error("R3F: The args prop must be an array!");D=wf(new I(...d),{type:p,root:C,attach:A,memoizedProps:{args:d}})}return D.__r3f.attach===void 0&&(D instanceof Hn?D.__r3f.attach="geometry":D instanceof Ni&&(D.__r3f.attach="material")),x!=="inject"&&uI(D,y),D}function r(p,d){let A=!1;if(d){var y,C;(y=d.__r3f)!=null&&y.attach?lI(p,d,d.__r3f.attach):d.isObject3D&&p.isObject3D&&(p.add(d),A=!0),A||(C=p.__r3f)==null||C.objects.push(d),d.__r3f||wf(d,{}),d.__r3f.parent=p,jS(d),Bf(d)}}function i(p,d,A){let y=!1;if(d){var C,x;if((C=d.__r3f)!=null&&C.attach)lI(p,d,d.__r3f.attach);else if(d.isObject3D&&p.isObject3D){d.parent=p,d.dispatchEvent({type:"added"}),p.dispatchEvent({type:"childadded",child:d});const D=p.children.filter(w=>w!==d),I=D.indexOf(A);p.children=[...D.slice(0,I),d,...D.slice(I)],y=!0}y||(x=p.__r3f)==null||x.objects.push(d),d.__r3f||wf(d,{}),d.__r3f.parent=p,jS(d),Bf(d)}}function s(p,d,A=!1){p&&[...p].forEach(y=>o(d,y,A))}function o(p,d,A){if(d){var y,C,x;if(d.__r3f&&(d.__r3f.parent=null),(y=p.__r3f)!=null&&y.objects&&(p.__r3f.objects=p.__r3f.objects.filter(_=>_!==d)),(C=d.__r3f)!=null&&C.attach)W_(p,d,d.__r3f.attach);else if(d.isObject3D&&p.isObject3D){var D;p.remove(d),(D=d.__r3f)!=null&&D.root&&yV(Z1(d),d)}const w=(x=d.__r3f)==null?void 0:x.primitive,B=!w&&(A===void 0?d.dispose!==null:A);if(!w){var I;s((I=d.__r3f)==null?void 0:I.objects,d,B),s(d.children,d,B)}if(delete d.__r3f,B&&d.dispose&&d.type!=="Scene"){const _=()=>{try{d.dispose()}catch{}};typeof IS_REACT_ACT_ENVIRONMENT>"u"?zS.unstable_scheduleCallback(zS.unstable_IdlePriority,_):_()}Bf(p)}}function a(p,d,A,y){var C;const x=(C=p.__r3f)==null?void 0:C.parent;if(!x)return;const D=n(d,A,p.__r3f.root);if(p.children){for(const I of p.children)I.__r3f&&r(D,I);p.children=p.children.filter(I=>!I.__r3f)}p.__r3f.objects.forEach(I=>r(D,I)),p.__r3f.objects=[],p.__r3f.autoRemovedBeforeAppend||o(x,p),D.parent&&(D.__r3f.autoRemovedBeforeAppend=!0),r(x,D),D.raycast&&D.__r3f.eventCount&&Z1(D).getState().internal.interaction.push(D),[y,y.alternate].forEach(I=>{I!==null&&(I.stateNode=D,I.ref&&(typeof I.ref=="function"?I.ref(D):I.ref.current=D))})}const l=()=>console.warn("Text is not allowed in the R3F tree! This could be stray whitespace or characters.");return{reconciler:iV({createInstance:n,removeChild:o,appendChild:r,appendInitialChild:r,insertBefore:i,supportsMutation:!0,isPrimaryRenderer:!1,supportsPersistence:!1,supportsHydration:!1,noTimeout:-1,appendChildToContainer:(p,d)=>{if(!d)return;const A=p.getState().scene;A.__r3f&&(A.__r3f.root=p,r(A,d))},removeChildFromContainer:(p,d)=>{d&&o(p.getState().scene,d)},insertInContainerBefore:(p,d,A)=>{if(!d||!A)return;const y=p.getState().scene;y.__r3f&&i(y,d,A)},getRootHostContext:()=>null,getChildHostContext:p=>p,finalizeInitialChildren(p){var d;return!!((d=p==null?void 0:p.__r3f)!=null?d:{}).handlers},prepareUpdate(p,d,A,y){var C;if(((C=p==null?void 0:p.__r3f)!=null?C:{}).primitive&&y.object&&y.object!==p)return[!0];{const{args:D=[],children:I,...w}=y,{args:B=[],children:_,...F}=A;if(!Array.isArray(D))throw new Error("R3F: the args prop must be an array!");if(D.some((N,U)=>N!==B[U]))return[!0];const P=pL(p,w,F,!0);return P.changes.length?[!1,P]:null}},commitUpdate(p,[d,A],y,C,x,D){d?a(p,y,x,D):uI(p,A)},commitMount(p,d,A,y){var C;const x=(C=p.__r3f)!=null?C:{};p.raycast&&x.handlers&&x.eventCount&&Z1(p).getState().internal.interaction.push(p)},getPublicInstance:p=>p,prepareForCommit:()=>null,preparePortalMount:p=>wf(p.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(p){var d;const{attach:A,parent:y}=(d=p.__r3f)!=null?d:{};A&&y&&W_(y,p,A),p.isObject3D&&(p.visible=!1),Bf(p)},unhideInstance(p,d){var A;const{attach:y,parent:C}=(A=p.__r3f)!=null?A:{};y&&C&&lI(C,p,y),(p.isObject3D&&d.visible==null||d.visible)&&(p.visible=!0),Bf(p)},createTextInstance:l,hideTextInstance:l,unhideTextInstance:l,getCurrentEventPriority:()=>e?e():Wf.DefaultEventPriority,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},detachDeletedInstance:()=>{},now:typeof performance<"u"&&zr.fun(performance.now)?performance.now:zr.fun(Date.now)?Date.now:()=>0,scheduleTimeout:zr.fun(setTimeout)?setTimeout:void 0,cancelTimeout:zr.fun(clearTimeout)?clearTimeout:void 0}),applyProps:uI}}var U_,G_;const aI=t=>"colorSpace"in t||"outputColorSpace"in t,oL=()=>{var t;return(t=eB.ColorManagement)!=null?t:null},aL=t=>t&&t.isOrthographicCamera,hV=t=>t&&t.hasOwnProperty("current"),E0=typeof window<"u"&&((U_=window.document)!=null&&U_.createElement||((G_=window.navigator)==null?void 0:G_.product)==="ReactNative")?ae.useLayoutEffect:ae.useEffect;function lL(t){const e=ae.useRef(t);return E0(()=>void(e.current=t),[t]),e}function pV({set:t}){return E0(()=>(t(new Promise(()=>null)),()=>t(!1)),[t]),null}class uL extends ae.Component{constructor(...e){super(...e),this.state={error:!1}}componentDidCatch(e){this.props.set(e)}render(){return this.state.error?null:this.props.children}}uL.getDerivedStateFromError=()=>({error:!0});const cL="__default",H_=new Map,dV=t=>t&&!!t.memoized&&!!t.changes;function hL(t){var e;const n=typeof window<"u"?(e=window.devicePixelRatio)!=null?e:2:1;return Array.isArray(t)?Math.min(Math.max(t[0],n),t[1]):t}const Og=t=>{var e;return(e=t.__r3f)==null?void 0:e.root.getState()};function Z1(t){let e=t.__r3f.root;for(;e.getState().previousRoot;)e=e.getState().previousRoot;return e}const zr={obj:t=>t===Object(t)&&!zr.arr(t)&&typeof t!="function",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",boo:t=>typeof t=="boolean",und:t=>t===void 0,arr:t=>Array.isArray(t),equ(t,e,{arrays:n="shallow",objects:r="reference",strict:i=!0}={}){if(typeof t!=typeof e||!!t!=!!e)return!1;if(zr.str(t)||zr.num(t))return t===e;const s=zr.obj(t);if(s&&r==="reference")return t===e;const o=zr.arr(t);if(o&&n==="reference")return t===e;if((o||s)&&t===e)return!0;let a;for(a in t)if(!(a in e))return!1;if(s&&n==="shallow"&&r==="shallow"){for(a in i?e:t)if(!zr.equ(t[a],e[a],{strict:i,objects:"reference"}))return!1}else for(a in i?e:t)if(t[a]!==e[a])return!1;if(zr.und(a)){if(o&&t.length===0&&e.length===0||s&&Object.keys(t).length===0&&Object.keys(e).length===0)return!0;if(t!==e)return!1}return!0}};function fV(t){const e={nodes:{},materials:{}};return t&&t.traverse(n=>{n.name&&(e.nodes[n.name]=n),n.material&&!e.materials[n.material.name]&&(e.materials[n.material.name]=n.material)}),e}function AV(t){t.dispose&&t.type!=="Scene"&&t.dispose();for(const e in t)e.dispose==null||e.dispose(),delete t[e]}function wf(t,e){const n=t;return n.__r3f={type:"",root:null,previousAttach:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null,...e},t}function WS(t,e){let n=t;if(e.includes("-")){const r=e.split("-"),i=r.pop();return n=r.reduce((s,o)=>s[o],t),{target:n,key:i}}else return{target:n,key:e}}const z_=/-\d+$/;function lI(t,e,n){if(zr.str(n)){if(z_.test(n)){const s=n.replace(z_,""),{target:o,key:a}=WS(t,s);Array.isArray(o[a])||(o[a]=[])}const{target:r,key:i}=WS(t,n);e.__r3f.previousAttach=r[i],r[i]=e}else e.__r3f.previousAttach=n(t,e)}function W_(t,e,n){var r,i;if(zr.str(n)){const{target:s,key:o}=WS(t,n),a=e.__r3f.previousAttach;a===void 0?delete s[o]:s[o]=a}else(r=e.__r3f)==null||r.previousAttach==null||r.previousAttach(t,e);(i=e.__r3f)==null||delete i.previousAttach}function pL(t,{children:e,key:n,ref:r,...i},{children:s,key:o,ref:a,...l}={},c=!1){var p;const d=(p=t==null?void 0:t.__r3f)!=null?p:{},A=Object.entries(i),y=[];if(c){const x=Object.keys(l);for(let D=0;D{var I;if((I=t.__r3f)!=null&&I.primitive&&x==="object"||zr.equ(D,l[x]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(x))return y.push([x,D,!0,[]]);let w=[];x.includes("-")&&(w=x.split("-")),y.push([x,D,!1,w]);for(const B in i){const _=i[B];B.startsWith(`${x}-`)&&y.push([B,_,!1,B.split("-")])}});const C={...i};return d.memoizedProps&&d.memoizedProps.args&&(C.args=d.memoizedProps.args),d.memoizedProps&&d.memoizedProps.attach&&(C.attach=d.memoizedProps.attach),{memoized:C,changes:y}}const gV=typeof process<"u"&&!1;function uI(t,e){var n,r,i;const s=(n=t.__r3f)!=null?n:{},o=s.root,a=(r=o==null||o.getState==null?void 0:o.getState())!=null?r:{},{memoized:l,changes:c}=dV(e)?e:pL(t,e),p=s.eventCount;t.__r3f&&(t.__r3f.memoizedProps=l);for(let A=0;AB[_],t),!(w&&w.set))){const[B,..._]=D.reverse();I=_.reverse().reduce((F,P)=>F[P],t),y=B}if(C===cL+"remove")if(I.constructor){let B=H_.get(I.constructor);B||(B=new I.constructor,H_.set(I.constructor,B)),C=B[y]}else C=0;if(x)C?s.handlers[y]=C:delete s.handlers[y],s.eventCount=Object.keys(s.handlers).length;else if(w&&w.set&&(w.copy||w instanceof Lp)){if(Array.isArray(C))w.fromArray?w.fromArray(C):w.set(...C);else if(w.copy&&C&&C.constructor&&(gV?w.constructor.name===C.constructor.name:w.constructor===C.constructor))w.copy(C);else if(C!==void 0){const B=w instanceof Xt;!B&&w.setScalar?w.setScalar(C):w instanceof Lp&&C instanceof Lp?w.mask=C.mask:w.set(C),!oL()&&!a.linear&&B&&w.convertSRGBToLinear()}}else if(I[y]=C,I[y]instanceof Zr&&I[y].format===Ao&&I[y].type===Rl){const B=I[y];aI(B)&&aI(a.gl)?B.colorSpace=a.gl.outputColorSpace:B.encoding=a.gl.outputEncoding}Bf(t)}if(s.parent&&t.raycast&&p!==s.eventCount){const A=Z1(t).getState().internal,y=A.interaction.indexOf(t);y>-1&&A.interaction.splice(y,1),s.eventCount&&A.interaction.push(t)}return!(c.length===1&&c[0][0]==="onUpdate")&&c.length&&(i=t.__r3f)!=null&&i.parent&&jS(t),t}function Bf(t){var e,n;const r=(e=t.__r3f)==null||(n=e.root)==null||n.getState==null?void 0:n.getState();r&&r.internal.frames===0&&r.invalidate()}function jS(t){t.onUpdate==null||t.onUpdate(t)}function dL(t,e){t.manual||(aL(t)?(t.left=e.width/-2,t.right=e.width/2,t.top=e.height/2,t.bottom=e.height/-2):t.aspect=e.width/e.height,t.updateProjectionMatrix(),t.updateMatrixWorld())}function y1(t){return(t.eventObject||t.object).uuid+"/"+t.index+t.instanceId}function mV(){var t;const e=typeof self<"u"&&self||typeof window<"u"&&window;if(!e)return Wf.DefaultEventPriority;switch((t=e.event)==null?void 0:t.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return Wf.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return Wf.ContinuousEventPriority;default:return Wf.DefaultEventPriority}}function fL(t,e,n,r){const i=n.get(e);i&&(n.delete(e),n.size===0&&(t.delete(r),i.target.releasePointerCapture(r)))}function yV(t,e){const{internal:n}=t.getState();n.interaction=n.interaction.filter(r=>r!==e),n.initialHits=n.initialHits.filter(r=>r!==e),n.hovered.forEach((r,i)=>{(r.eventObject===e||r.object===e)&&n.hovered.delete(i)}),n.capturedMap.forEach((r,i)=>{fL(n.capturedMap,e,r,i)})}function EV(t){function e(l){const{internal:c}=t.getState(),p=l.offsetX-c.initialClick[0],d=l.offsetY-c.initialClick[1];return Math.round(Math.sqrt(p*p+d*d))}function n(l){return l.filter(c=>["Move","Over","Enter","Out","Leave"].some(p=>{var d;return(d=c.__r3f)==null?void 0:d.handlers["onPointer"+p]}))}function r(l,c){const p=t.getState(),d=new Set,A=[],y=c?c(p.internal.interaction):p.internal.interaction;for(let I=0;I{const B=Og(I.object),_=Og(w.object);return!B||!_?I.distance-w.distance:_.events.priority-B.events.priority||I.distance-w.distance}).filter(I=>{const w=y1(I);return d.has(w)?!1:(d.add(w),!0)});p.events.filter&&(x=p.events.filter(x,p));for(const I of x){let w=I.object;for(;w;){var D;(D=w.__r3f)!=null&&D.eventCount&&A.push({...I,eventObject:w}),w=w.parent}}if("pointerId"in l&&p.internal.capturedMap.has(l.pointerId))for(let I of p.internal.capturedMap.get(l.pointerId).values())d.has(y1(I.intersection))||A.push(I.intersection);return A}function i(l,c,p,d){const A=t.getState();if(l.length){const y={stopped:!1};for(const C of l){const x=Og(C.object)||A,{raycaster:D,pointer:I,camera:w,internal:B}=x,_=new ue(I.x,I.y,0).unproject(w),F=L=>{var z,he;return(z=(he=B.capturedMap.get(L))==null?void 0:he.has(C.eventObject))!=null?z:!1},P=L=>{const z={intersection:C,target:c.target};B.capturedMap.has(L)?B.capturedMap.get(L).set(C.eventObject,z):B.capturedMap.set(L,new Map([[C.eventObject,z]])),c.target.setPointerCapture(L)},N=L=>{const z=B.capturedMap.get(L);z&&fL(B.capturedMap,C.eventObject,z,L)};let U={};for(let L in c){let z=c[L];typeof z!="function"&&(U[L]=z)}let q={...C,...U,pointer:I,intersections:l,stopped:y.stopped,delta:p,unprojectedPoint:_,ray:D.ray,camera:w,stopPropagation(){const L="pointerId"in c&&B.capturedMap.get(c.pointerId);if((!L||L.has(C.eventObject))&&(q.stopped=y.stopped=!0,B.hovered.size&&Array.from(B.hovered.values()).find(z=>z.eventObject===C.eventObject))){const z=l.slice(0,l.indexOf(C));s([...z,C])}},target:{hasPointerCapture:F,setPointerCapture:P,releasePointerCapture:N},currentTarget:{hasPointerCapture:F,setPointerCapture:P,releasePointerCapture:N},nativeEvent:c};if(d(q),y.stopped===!0)break}}return l}function s(l){const{internal:c}=t.getState();for(const p of c.hovered.values())if(!l.length||!l.find(d=>d.object===p.object&&d.index===p.index&&d.instanceId===p.instanceId)){const A=p.eventObject.__r3f,y=A==null?void 0:A.handlers;if(c.hovered.delete(y1(p)),A!=null&&A.eventCount){const C={...p,intersections:l};y.onPointerOut==null||y.onPointerOut(C),y.onPointerLeave==null||y.onPointerLeave(C)}}}function o(l,c){for(let p=0;ps([]);case"onLostPointerCapture":return c=>{const{internal:p}=t.getState();"pointerId"in c&&p.capturedMap.has(c.pointerId)&&requestAnimationFrame(()=>{p.capturedMap.has(c.pointerId)&&(p.capturedMap.delete(c.pointerId),s([]))})}}return function(p){const{onPointerMissed:d,internal:A}=t.getState();A.lastEvent.current=p;const y=l==="onPointerMove",C=l==="onClick"||l==="onContextMenu"||l==="onDoubleClick",D=r(p,y?n:void 0),I=C?e(p):0;l==="onPointerDown"&&(A.initialClick=[p.offsetX,p.offsetY],A.initialHits=D.map(B=>B.eventObject)),C&&!D.length&&I<=2&&(o(p,A.interaction),d&&d(p)),y&&s(D);function w(B){const _=B.eventObject,F=_.__r3f,P=F==null?void 0:F.handlers;if(F!=null&&F.eventCount)if(y){if(P.onPointerOver||P.onPointerEnter||P.onPointerOut||P.onPointerLeave){const N=y1(B),U=A.hovered.get(N);U?U.stopped&&B.stopPropagation():(A.hovered.set(N,B),P.onPointerOver==null||P.onPointerOver(B),P.onPointerEnter==null||P.onPointerEnter(B))}P.onPointerMove==null||P.onPointerMove(B)}else{const N=P[l];N?(!C||A.initialHits.includes(_))&&(o(p,A.interaction.filter(U=>!A.initialHits.includes(U))),N(B)):C&&A.initialHits.includes(_)&&o(p,A.interaction.filter(U=>!A.initialHits.includes(U)))}}i(D,p,I,w)}}return{handlePointer:a}}const CV=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],AL=t=>!!(t!=null&&t.render),RC=ae.createContext(null),vV=(t,e)=>{const n=eL((a,l)=>{const c=new ue,p=new ue,d=new ue;function A(I=l().camera,w=p,B=l().size){const{width:_,height:F,top:P,left:N}=B,U=_/F;w instanceof ue?d.copy(w):d.set(...w);const q=I.getWorldPosition(c).distanceTo(d);if(aL(I))return{width:_/I.zoom,height:F/I.zoom,top:P,left:N,factor:1,distance:q,aspect:U};{const L=I.fov*Math.PI/180,z=2*Math.tan(L/2)*q,he=z*(_/F);return{width:he,height:z,top:P,left:N,factor:_/he,distance:q,aspect:U}}}let y;const C=I=>a(w=>({performance:{...w.performance,current:I}})),x=new st;return{set:a,get:l,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:(I=1)=>t(l(),I),advance:(I,w)=>e(I,w,l()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new qw,pointer:x,mouse:x,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{const I=l();y&&clearTimeout(y),I.performance.current!==I.performance.min&&C(I.performance.min),y=setTimeout(()=>C(l().performance.max),I.performance.debounce)}},size:{width:0,height:0,top:0,left:0,updateStyle:!1},viewport:{initialDpr:0,dpr:0,width:0,height:0,top:0,left:0,aspect:0,distance:0,factor:0,getCurrentViewport:A},setEvents:I=>a(w=>({...w,events:{...w.events,...I}})),setSize:(I,w,B,_,F)=>{const P=l().camera,N={width:I,height:w,top:_||0,left:F||0,updateStyle:B};a(U=>({size:N,viewport:{...U.viewport,...A(P,p,N)}}))},setDpr:I=>a(w=>{const B=hL(I);return{viewport:{...w.viewport,dpr:B,initialDpr:w.viewport.initialDpr||B}}}),setFrameloop:(I="always")=>{const w=l().clock;w.stop(),w.elapsedTime=0,I!=="never"&&(w.start(),w.elapsedTime=0),a(()=>({frameloop:I}))},previousRoot:void 0,internal:{active:!1,priority:0,frames:0,lastEvent:ae.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(I,w,B)=>{const _=l().internal;return _.priority=_.priority+(w>0?1:0),_.subscribers.push({ref:I,priority:w,store:B}),_.subscribers=_.subscribers.sort((F,P)=>F.priority-P.priority),()=>{const F=l().internal;F!=null&&F.subscribers&&(F.priority=F.priority-(w>0?1:0),F.subscribers=F.subscribers.filter(P=>P.ref!==I))}}}}}),r=n.getState();let i=r.size,s=r.viewport.dpr,o=r.camera;return n.subscribe(()=>{const{camera:a,size:l,viewport:c,gl:p,set:d}=n.getState();if(l.width!==i.width||l.height!==i.height||c.dpr!==s){var A;i=l,s=c.dpr,dL(a,l),p.setPixelRatio(c.dpr);const y=(A=l.updateStyle)!=null?A:typeof HTMLCanvasElement<"u"&&p.domElement instanceof HTMLCanvasElement;p.setSize(l.width,l.height,y)}a!==o&&(o=a,d(y=>({viewport:{...y.viewport,...y.viewport.getCurrentViewport(a)}})))}),n.subscribe(a=>t(a)),n};let E1,xV=new Set,IV=new Set,DV=new Set;function cI(t,e){if(t.size)for(const{callback:n}of t.values())n(e)}function Ug(t,e){switch(t){case"before":return cI(xV,e);case"after":return cI(IV,e);case"tail":return cI(DV,e)}}let hI,pI;function dI(t,e,n){let r=e.clock.getDelta();for(e.frameloop==="never"&&typeof t=="number"&&(r=t-e.clock.elapsedTime,e.clock.oldTime=e.clock.elapsedTime,e.clock.elapsedTime=t),hI=e.internal.subscribers,E1=0;E10)&&!((p=s.gl.xr)!=null&&p.isPresenting)&&(r+=dI(c,s))}if(n=!1,Ug("after",c),r===0)return Ug("tail",c),e=!1,cancelAnimationFrame(i)}function a(c,p=1){var d;if(!c)return t.forEach(A=>a(A.store.getState(),p));(d=c.gl.xr)!=null&&d.isPresenting||!c.internal.active||c.frameloop==="never"||(p>1?c.internal.frames=Math.min(60,c.internal.frames+p):n?c.internal.frames=2:c.internal.frames=1,e||(e=!0,requestAnimationFrame(o)))}function l(c,p=!0,d,A){if(p&&Ug("before",c),d)dI(c,d,A);else for(const y of t.values())dI(c,y.store.getState());p&&Ug("after",c)}return{loop:o,invalidate:a,advance:l}}function al(){const t=ae.useContext(RC);if(!t)throw new Error("R3F: Hooks can only be used within the Canvas component!");return t}function n0(t=n=>n,e){return al()(t,e)}function _A(t,e=0){const n=al(),r=n.getState().internal.subscribe,i=lL(t);return E0(()=>r(i,e,n),[e,r,n]),null}const j_=new WeakMap;function gL(t,e){return function(n,...r){let i=j_.get(n);return i||(i=new n,j_.set(n,i)),t&&t(i),Promise.all(r.map(s=>new Promise((o,a)=>i.load(s,l=>{l.scene&&Object.assign(l,fV(l.scene)),o(l)},e,l=>a(new Error(`Could not load ${s}: ${l==null?void 0:l.message}`))))))}}function tB(t,e,n,r){const i=Array.isArray(e)?e:[e],s=oV(gL(n,r),[t,...i],{equal:zr.equ});return Array.isArray(e)?s:s[0]}tB.preload=function(t,e,n){const r=Array.isArray(e)?e:[e];return aV(gL(n),[t,...r])};tB.clear=function(t,e){const n=Array.isArray(e)?e:[e];return lV([t,...n])};const AA=new Map,{invalidate:V_,advance:J_}=SV(AA),{reconciler:gA,applyProps:Ef}=cV(AA,mV),Cf={objects:"shallow",strict:!1},wV=(t,e)=>{const n=typeof t=="function"?t(e):t;return AL(n)?n:new Fw({powerPreference:"high-performance",canvas:e,antialias:!0,alpha:!0,...t})};function BV(t,e){const n=typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement;if(e){const{width:r,height:i,top:s,left:o,updateStyle:a=n}=e;return{width:r,height:i,top:s,left:o,updateStyle:a}}else if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement&&t.parentElement){const{width:r,height:i,top:s,left:o}=t.parentElement.getBoundingClientRect();return{width:r,height:i,top:s,left:o,updateStyle:n}}else if(typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas)return{width:t.width,height:t.height,top:0,left:0,updateStyle:n};return{width:0,height:0,top:0,left:0}}function bV(t){const e=AA.get(t),n=e==null?void 0:e.fiber,r=e==null?void 0:e.store;e&&console.warn("R3F.createRoot should only be called once!");const i=typeof reportError=="function"?reportError:console.error,s=r||vV(V_,J_),o=n||gA.createContainer(s,Wf.ConcurrentRoot,null,!1,null,"",i,null);e||AA.set(t,{fiber:o,store:s});let a,l=!1,c;return{configure(p={}){let{gl:d,size:A,scene:y,events:C,onCreated:x,shadows:D=!1,linear:I=!1,flat:w=!1,legacy:B=!1,orthographic:_=!1,frameloop:F="always",dpr:P=[1,2],performance:N,raycaster:U,camera:q,onPointerMissed:L}=p,z=s.getState(),he=z.gl;z.gl||z.set({gl:he=wV(d,t)});let Ie=z.raycaster;Ie||z.set({raycaster:Ie=new MA});const{params:re,..._e}=U||{};if(zr.equ(_e,Ie,Cf)||Ef(Ie,{..._e}),zr.equ(re,Ie.params,Cf)||Ef(Ie,{params:{...Ie.params,...re}}),!z.camera||z.camera===c&&!zr.equ(c,q,Cf)){c=q;const ve=q instanceof p0,Ae=ve?q:_?new SA(0,0,0,0,.1,1e3):new ki(75,0,.1,1e3);ve||(Ae.position.z=5,q&&Ef(Ae,q),!z.camera&&!(q!=null&&q.rotation)&&Ae.lookAt(0,0,0)),z.set({camera:Ae}),Ie.camera=Ae}if(!z.scene){let ve;y instanceof Ym?ve=y:(ve=new Ym,y&&Ef(ve,y)),z.set({scene:wf(ve)})}if(!z.xr){var De;const ve=(we,K)=>{const oe=s.getState();oe.frameloop!=="never"&&J_(we,!0,oe,K)},Ae=()=>{const we=s.getState();we.gl.xr.enabled=we.gl.xr.isPresenting,we.gl.xr.setAnimationLoop(we.gl.xr.isPresenting?ve:null),we.gl.xr.isPresenting||V_(we)},Ue={connect(){const we=s.getState().gl;we.xr.addEventListener("sessionstart",Ae),we.xr.addEventListener("sessionend",Ae)},disconnect(){const we=s.getState().gl;we.xr.removeEventListener("sessionstart",Ae),we.xr.removeEventListener("sessionend",Ae)}};typeof((De=he.xr)==null?void 0:De.addEventListener)=="function"&&Ue.connect(),z.set({xr:Ue})}if(he.shadowMap){const ve=he.shadowMap.enabled,Ae=he.shadowMap.type;if(he.shadowMap.enabled=!!D,zr.boo(D))he.shadowMap.type=am;else if(zr.str(D)){var Ge;const Ue={basic:GQ,percentage:lC,soft:am,variance:Ya};he.shadowMap.type=(Ge=Ue[D])!=null?Ge:am}else zr.obj(D)&&Object.assign(he.shadowMap,D);(ve!==he.shadowMap.enabled||Ae!==he.shadowMap.type)&&(he.shadowMap.needsUpdate=!0)}const ie=oL();ie&&("enabled"in ie?ie.enabled=!B:"legacyMode"in ie&&(ie.legacyMode=B)),l||Ef(he,{outputEncoding:I?3e3:3001,toneMapping:w?kl:dw}),z.legacy!==B&&z.set(()=>({legacy:B})),z.linear!==I&&z.set(()=>({linear:I})),z.flat!==w&&z.set(()=>({flat:w})),d&&!zr.fun(d)&&!AL(d)&&!zr.equ(d,he,Cf)&&Ef(he,d),C&&!z.events.handlers&&z.set({events:C(s)});const ge=BV(t,A);return zr.equ(ge,z.size,Cf)||z.setSize(ge.width,ge.height,ge.updateStyle,ge.top,ge.left),P&&z.viewport.dpr!==hL(P)&&z.setDpr(P),z.frameloop!==F&&z.setFrameloop(F),z.onPointerMissed||z.set({onPointerMissed:L}),N&&!zr.equ(N,z.performance,Cf)&&z.set(ve=>({performance:{...ve.performance,...N}})),a=x,l=!0,this},render(p){return l||this.configure(),gA.updateContainer(ae.createElement(TV,{store:s,children:p,onCreated:a,rootElement:t}),o,null,()=>{}),s},unmount(){mL(t)}}}function TV({store:t,children:e,onCreated:n,rootElement:r}){return E0(()=>{const i=t.getState();i.set(s=>({internal:{...s.internal,active:!0}})),n&&n(i),t.getState().events.connected||i.events.connect==null||i.events.connect(r)},[]),ae.createElement(RC.Provider,{value:t},e)}function mL(t,e){const n=AA.get(t),r=n==null?void 0:n.fiber;if(r){const i=n==null?void 0:n.store.getState();i&&(i.internal.active=!1),gA.updateContainer(null,r,null,()=>{i&&setTimeout(()=>{try{var s,o,a,l;i.events.disconnect==null||i.events.disconnect(),(s=i.gl)==null||(o=s.renderLists)==null||o.dispose==null||o.dispose(),(a=i.gl)==null||a.forceContextLoss==null||a.forceContextLoss(),(l=i.gl)!=null&&l.xr&&i.xr.disconnect(),AV(i),AA.delete(t),e&&e(t)}catch{}},500)})}}function MV(t,e,n){return ae.createElement(_V,{key:e.uuid,children:t,container:e,state:n})}function _V({state:t={},children:e,container:n}){const{events:r,size:i,...s}=t,o=al(),[a]=ae.useState(()=>new MA),[l]=ae.useState(()=>new st),c=ae.useCallback((d,A)=>{const y={...d};Object.keys(d).forEach(x=>{(CV.includes(x)||d[x]!==A[x]&&A[x])&&delete y[x]});let C;if(A&&i){const x=A.camera;C=d.viewport.getCurrentViewport(x,new ue,i),x!==d.camera&&dL(x,i)}return{...y,scene:n,raycaster:a,pointer:l,mouse:l,previousRoot:o,events:{...d.events,...A==null?void 0:A.events,...r},size:{...d.size,...i},viewport:{...d.viewport,...C},...s}},[t]),[p]=ae.useState(()=>{const d=o.getState();return eL((y,C)=>({...d,scene:n,raycaster:a,pointer:l,mouse:l,previousRoot:o,events:{...d.events,...r},size:{...d.size,...i},...s,set:y,get:C,setEvents:x=>y(D=>({...D,events:{...D.events,...x}}))}))});return ae.useEffect(()=>{const d=o.subscribe(A=>p.setState(y=>c(A,y)));return()=>{d(),p.destroy()}},[]),ae.useEffect(()=>{p.setState(d=>c(o.getState(),d))},[c]),ae.createElement(ae.Fragment,null,gA.createPortal(ae.createElement(RC.Provider,{value:p},e),p,null))}gA.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:ae.version});function LE(){return LE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0?r=setTimeout(l,e-p):(r=null,n||(a=t.apply(s,i),s=i=null))}var c=function(){s=this,i=arguments,o=Date.now();var p=n&&!r;return r||(r=setTimeout(l,e)),p&&(a=t.apply(s,i),s=i=null),a};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(a=t.apply(s,i),s=i=null,clearTimeout(r),r=null)},c}VS.debounce=VS;var FV=VS;const Y_=zE(FV);function PV(t){let{debounce:e,scroll:n,polyfill:r,offsetSize:i}=t===void 0?{debounce:0,scroll:!1,offsetSize:!1}:t;const s=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!s)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[o,a]=ae.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=ae.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o}),c=e?typeof e=="number"?e:e.scroll:null,p=e?typeof e=="number"?e:e.resize:null,d=ae.useRef(!1);ae.useEffect(()=>(d.current=!0,()=>void(d.current=!1)));const[A,y,C]=ae.useMemo(()=>{const w=()=>{if(!l.current.element)return;const{left:B,top:_,width:F,height:P,bottom:N,right:U,x:q,y:L}=l.current.element.getBoundingClientRect(),z={left:B,top:_,width:F,height:P,bottom:N,right:U,x:q,y:L};l.current.element instanceof HTMLElement&&i&&(z.height=l.current.element.offsetHeight,z.width=l.current.element.offsetWidth),Object.freeze(z),d.current&&!LV(l.current.lastBounds,z)&&a(l.current.lastBounds=z)};return[w,p?Y_(w,p):w,c?Y_(w,c):w]},[a,i,c,p]);function x(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(w=>w.removeEventListener("scroll",C,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null)}function D(){l.current.element&&(l.current.resizeObserver=new s(C),l.current.resizeObserver.observe(l.current.element),n&&l.current.scrollContainers&&l.current.scrollContainers.forEach(w=>w.addEventListener("scroll",C,{capture:!0,passive:!0})))}const I=w=>{!w||w===l.current.element||(x(),l.current.element=w,l.current.scrollContainers=yL(w),D())};return kV(C,!!n),QV(y),ae.useEffect(()=>{x(),D()},[n,C,y]),ae.useEffect(()=>x,[]),[I,o,A]}function QV(t){ae.useEffect(()=>{const e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function kV(t,e){ae.useEffect(()=>{if(e){const n=t;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[t,e])}function yL(t){const e=[];if(!t||t===document.body)return e;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(t);return[n,r,i].some(s=>s==="auto"||s==="scroll")&&e.push(t),[...e,...yL(t.parentElement)]}const RV=["x","y","top","bottom","left","right","width","height"],LV=(t,e)=>RV.every(n=>t[n]===e[n]);var NV=Object.defineProperty,OV=Object.defineProperties,UV=Object.getOwnPropertyDescriptors,X_=Object.getOwnPropertySymbols,GV=Object.prototype.hasOwnProperty,HV=Object.prototype.propertyIsEnumerable,q_=(t,e,n)=>e in t?NV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,K_=(t,e)=>{for(var n in e||(e={}))GV.call(e,n)&&q_(t,n,e[n]);if(X_)for(var n of X_(e))HV.call(e,n)&&q_(t,n,e[n]);return t},zV=(t,e)=>OV(t,UV(e));function EL(t,e,n){if(!t)return;if(n(t)===!0)return t;let r=e?t.return:t.child;for(;r;){const i=EL(r,e,n);if(i)return i;r=e?null:r.sibling}}function CL(t){try{return Object.defineProperties(t,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return t}}const nB=CL(ae.createContext(null));class vL extends ae.Component{render(){return ae.createElement(nB.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner:Z_,ReactCurrentDispatcher:$_}=ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function WV(){const t=ae.useContext(nB);if(t===null)throw new Error("its-fine: useFiber must be called within a !");const e=ae.useId();return ae.useMemo(()=>{for(const r of[Z_==null?void 0:Z_.current,t,t==null?void 0:t.alternate]){if(!r)continue;const i=EL(r,!1,s=>{let o=s.memoizedState;for(;o;){if(o.memoizedState===e)return!0;o=o.next}});if(i)return i}},[t,e])}function jV(){var t,e;const n=WV(),[r]=ae.useState(()=>new Map);r.clear();let i=n;for(;i;){const s=(t=i.type)==null?void 0:t._context;s&&s!==nB&&!r.has(s)&&r.set(s,(e=$_==null?void 0:$_.current)==null?void 0:e.readContext(CL(s))),i=i.return}return r}function VV(){const t=jV();return ae.useMemo(()=>Array.from(t.keys()).reduce((e,n)=>r=>ae.createElement(e,null,ae.createElement(n.Provider,zV(K_({},r),{value:t.get(n)}))),e=>ae.createElement(vL,K_({},e))),[t])}const fI={onClick:["click",!1],onContextMenu:["contextmenu",!1],onDoubleClick:["dblclick",!1],onWheel:["wheel",!0],onPointerDown:["pointerdown",!0],onPointerUp:["pointerup",!0],onPointerLeave:["pointerleave",!0],onPointerMove:["pointermove",!0],onPointerCancel:["pointercancel",!0],onLostPointerCapture:["lostpointercapture",!0]};function JV(t){const{handlePointer:e}=EV(t);return{priority:1,enabled:!0,compute(n,r,i){r.pointer.set(n.offsetX/r.size.width*2-1,-(n.offsetY/r.size.height)*2+1),r.raycaster.setFromCamera(r.pointer,r.camera)},connected:void 0,handlers:Object.keys(fI).reduce((n,r)=>({...n,[r]:e(r)}),{}),update:()=>{var n;const{events:r,internal:i}=t.getState();(n=i.lastEvent)!=null&&n.current&&r.handlers&&r.handlers.onPointerMove(i.lastEvent.current)},connect:n=>{var r;const{set:i,events:s}=t.getState();s.disconnect==null||s.disconnect(),i(o=>({events:{...o.events,connected:n}})),Object.entries((r=s.handlers)!=null?r:[]).forEach(([o,a])=>{const[l,c]=fI[o];n.addEventListener(l,a,{passive:c})})},disconnect:()=>{const{set:n,events:r}=t.getState();if(r.connected){var i;Object.entries((i=r.handlers)!=null?i:[]).forEach(([s,o])=>{if(r&&r.connected instanceof HTMLElement){const[a]=fI[s];r.connected.removeEventListener(a,o)}}),n(s=>({events:{...s.events,connected:void 0}}))}}}}const YV=ae.forwardRef(function({children:e,fallback:n,resize:r,style:i,gl:s,events:o=JV,eventSource:a,eventPrefix:l,shadows:c,linear:p,flat:d,legacy:A,orthographic:y,frameloop:C,dpr:x,performance:D,raycaster:I,camera:w,scene:B,onPointerMissed:_,onCreated:F,...P},N){ae.useMemo(()=>uV($j),[]);const U=VV(),[q,L]=PV({scroll:!0,debounce:{scroll:50,resize:0},...r}),z=ae.useRef(null),he=ae.useRef(null);ae.useImperativeHandle(N,()=>z.current);const Ie=lL(_),[re,_e]=ae.useState(!1),[De,Ge]=ae.useState(!1);if(re)throw re;if(De)throw De;const ie=ae.useRef(null);E0(()=>{const ve=z.current;L.width>0&&L.height>0&&ve&&(ie.current||(ie.current=bV(ve)),ie.current.configure({gl:s,events:o,shadows:c,linear:p,flat:d,legacy:A,orthographic:y,frameloop:C,dpr:x,performance:D,raycaster:I,camera:w,scene:B,size:L,onPointerMissed:(...Ae)=>Ie.current==null?void 0:Ie.current(...Ae),onCreated:Ae=>{Ae.events.connect==null||Ae.events.connect(a?hV(a)?a.current:a:he.current),l&&Ae.setEvents({compute:(Ue,we)=>{const K=Ue[l+"X"],oe=Ue[l+"Y"];we.pointer.set(K/we.size.width*2-1,-(oe/we.size.height)*2+1),we.raycaster.setFromCamera(we.pointer,we.camera)}}),F==null||F(Ae)}}),ie.current.render(ae.createElement(U,null,ae.createElement(uL,{set:Ge},ae.createElement(ae.Suspense,{fallback:ae.createElement(pV,{set:_e})},e)))))}),ae.useEffect(()=>{const ve=z.current;if(ve)return()=>mL(ve)},[]);const ge=a?"none":"auto";return ae.createElement("div",LE({ref:he,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:ge,...i}},P),ae.createElement("div",{ref:q,style:{width:"100%",height:"100%"}},ae.createElement("canvas",{ref:z,style:{display:"block"}},n)))}),XV=ae.forwardRef(function(e,n){return ae.createElement(vL,null,ae.createElement(YV,LE({},e,{ref:n})))}),qV={borderWidth:["borderBottomWidth","borderTopWidth","borderLeftWidth","borderRightWidth"],borderXWidth:["borderLeftWidth","borderRightWidth"],borderYWidth:["borderTopWidth","borderBottomWidth"]},KV={...qV,inset:["positionTop","positionLeft","positionRight","positionBottom"],padding:["paddingBottom","paddingTop","paddingLeft","paddingRight"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],margin:["marginBottom","marginTop","marginLeft","marginRight"],marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],gap:["gapRow","gapColumn"]},ZV={borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],borderTopRadius:["borderTopLeftRadius","borderTopRightRadius"],borderLeftRadius:["borderTopLeftRadius","borderBottomLeftRadius"],borderRightRadius:["borderTopRightRadius","borderBottomRightRadius"],borderBottomRadius:["borderBottomLeftRadius","borderBottomRightRadius"]},$V={scrollbarBorderRadius:["scrollbarBorderTopLeftRadius","scrollbarBorderTopRightRadius","scrollbarBorderBottomLeftRadius","scrollbarBorderBottomRightRadius"],scrollbarBorderTopRadius:["scrollbarBorderTopLeftRadius","scrollbarBorderTopRightRadius"],scrollbarBorderLeftRadius:["scrollbarBorderTopLeftRadius","scrollbarBorderBottomLeftRadius"],scrollbarBorderRightRadius:["scrollbarBorderTopRightRadius","scrollbarBorderBottomRightRadius"],scrollbarBorderBottomRadius:["scrollbarBorderBottomLeftRadius","scrollbarBorderBottomRightRadius"],scrollbarBorderWidth:["scrollbarBorderBottomWidth","scrollbarBorderTopWidth","scrollbarBorderLeftWidth","scrollbarBorderRightWidth"],scrollbarBorderXWidth:["scrollbarBorderLeftWidth","scrollbarBorderRightWidth"],scrollbarBorderYWidth:["scrollbarBorderTopWidth","scrollbarBorderBottomWidth"]},eJ={caretBorderRadius:["caretBorderTopLeftRadius","caretBorderTopRightRadius","caretBorderBottomLeftRadius","caretBorderBottomRightRadius"],caretBorderTopRadius:["caretBorderTopLeftRadius","caretBorderTopRightRadius"],caretBorderLeftRadius:["caretBorderTopLeftRadius","caretBorderBottomLeftRadius"],caretBorderRightRadius:["caretBorderTopRightRadius","caretBorderBottomRightRadius"],caretBorderBottomRadius:["caretBorderBottomLeftRadius","caretBorderBottomRightRadius"],caretBorderWidth:["caretBorderBottomWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderRightWidth"],caretBorderXWidth:["caretBorderLeftWidth","caretBorderRightWidth"],caretBorderYWidth:["caretBorderTopWidth","caretBorderBottomWidth"]},tJ={selectionBorderRadius:["selectionBorderTopLeftRadius","selectionBorderTopRightRadius","selectionBorderBottomLeftRadius","selectionBorderBottomRightRadius"],selectionBorderTopRadius:["selectionBorderTopLeftRadius","selectionBorderTopRightRadius"],selectionBorderLeftRadius:["selectionBorderTopLeftRadius","selectionBorderBottomLeftRadius"],selectionBorderRightRadius:["selectionBorderTopRightRadius","selectionBorderBottomRightRadius"],selectionBorderBottomRadius:["selectionBorderBottomLeftRadius","selectionBorderBottomRightRadius"],selectionBorderWidth:["selectionBorderBottomWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderRightWidth"],selectionBorderXWidth:["selectionBorderLeftWidth","selectionBorderRightWidth"],selectionBorderYWidth:["selectionBorderTopWidth","selectionBorderBottomWidth"]},nJ={transformScale:["transformScaleX","transformScaleY","transformScaleZ"]},rJ=Object.assign({},KV,ZV,$V,nJ,eJ,tJ);function LC(){throw new Error("Cycle detected")}var iJ=Symbol.for("preact-signals");function NC(){if(rh>1)rh--;else{for(var t,e=!1;dm!==void 0;){var n=dm;for(dm=void 0,JS++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&DL(n))try{n.c()}catch(i){e||(t=i,e=!0)}n=r}}if(JS=0,rh--,e)throw t}}function xL(t){if(rh>0)return t();rh++;try{return t()}finally{NC()}}var Hr=void 0,AI=0;function pm(t){if(AI>0)return t();var e=Hr;Hr=void 0,AI++;try{return t()}finally{AI--,Hr=e}}var dm=void 0,rh=0,JS=0,NE=0;function IL(t){if(Hr!==void 0){var e=t.n;if(e===void 0||e.t!==Hr)return e={i:0,S:t,p:Hr.s,n:void 0,t:Hr,e:void 0,x:void 0,r:e},Hr.s!==void 0&&(Hr.s.n=e),Hr.s=e,t.n=e,32&Hr.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=Hr.s,e.n=void 0,Hr.s.n=e,Hr.s=e),e}}function wi(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}wi.prototype.brand=iJ;wi.prototype.h=function(){return!0};wi.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)};wi.prototype.U=function(t){if(this.t!==void 0){var e=t.e,n=t.x;e!==void 0&&(e.x=n,t.e=void 0),n!==void 0&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}};wi.prototype.subscribe=function(t){var e=this;return sn(function(){var n=e.value,r=32&this.f;this.f&=-33;try{t(n)}finally{this.f|=r}})};wi.prototype.valueOf=function(){return this.value};wi.prototype.toString=function(){return this.value+""};wi.prototype.toJSON=function(){return this.value};wi.prototype.peek=function(){return this.v};Object.defineProperty(wi.prototype,"value",{get:function(){var t=IL(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(Hr instanceof Ch&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){JS>100&&LC(),this.v=t,this.i++,NE++,rh++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{NC()}}}});function Yt(t){return new wi(t)}function DL(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function SL(t){for(var e=t.s;e!==void 0;e=e.n){var n=e.S.n;if(n!==void 0&&(e.r=n),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function wL(t){for(var e=t.s,n=void 0;e!==void 0;){var r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):n=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r}t.s=n}function Ch(t){wi.call(this,void 0),this.x=t,this.s=void 0,this.g=NE-1,this.f=4}(Ch.prototype=new wi).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===NE))return!0;if(this.g=NE,this.f|=1,this.i>0&&!DL(this))return this.f&=-2,!0;var t=Hr;try{SL(this),Hr=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return Hr=t,wL(this),this.f&=-2,!0};Ch.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}wi.prototype.S.call(this,t)};Ch.prototype.U=function(t){if(this.t!==void 0&&(wi.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};Ch.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Ch.prototype.peek=function(){if(this.h()||LC(),16&this.f)throw this.v;return this.v};Object.defineProperty(Ch.prototype,"value",{get:function(){1&this.f&&LC();var t=IL(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function bn(t){return new Ch(t)}function BL(t){var e=t.u;if(t.u=void 0,typeof e=="function"){rh++;var n=Hr;Hr=void 0;try{e()}catch(r){throw t.f&=-2,t.f|=8,rB(t),r}finally{Hr=n,NC()}}}function rB(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,BL(t)}function sJ(t){if(Hr!==this)throw new Error("Out-of-order effect");wL(this),Hr=t,this.f&=-2,8&this.f&&rB(this),NC()}function C0(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}C0.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{t()}};C0.prototype.S=function(){1&this.f&&LC(),this.f|=1,this.f&=-9,BL(this),SL(this),rh++;var t=Hr;return Hr=this,sJ.bind(this,t)};C0.prototype.N=function(){2&this.f||(this.f|=2,this.o=dm,dm=this)};C0.prototype.d=function(){this.f|=8,1&this.f||rB(this)};function sn(t){var e=new C0(t);try{e.c()}catch(n){throw e.d(),n}return e.d.bind(e)}const iB=/(-?\d+(?:\.\d+)?)%/;function sa(t){const e=t.length;for(let n=0;no){e.setScalar(P*s);return}e.setScalar(F*s/o)}function bs(t){return t instanceof wi?t.value:t}function v0(t){const e=new Map;return(n,r)=>{if(typeof n!="object")throw new Error(`Invalid properties "${n}"`);for(const i in n){const s=n[i];if(s===void 0)return;let o=e.get(s);o==null&&e.set(s,o=bn(()=>t()?bs(s):void 0)),r.add(i,o)}}}function sB(t,e){const n=e.map(r=>nr(t,r,0));return bn(()=>n.map(r=>r.value))}function nr(t,e,n){return bn(()=>t.value.read(e,n))}function gI(t,e,n,r){return bn(()=>{var i,s;return bs((i=t.value)==null?void 0:i[n])??bs((s=e.value)==null?void 0:s[n])??r})}function OC(t,e,n,r){n!=null&&(mI(n.classes,r),r(n)),e!=null&&(mI(e.classes,r),r(e)),t!=null&&(mI(t.classes,r),r(t))}function mI(t,e){if(t==null)return;if(!Array.isArray(t)){e(t);return}const n=t.length;for(let r=0;r{const l=t.value;s&&eF(n,l,o,a,r),o=l}),sn(()=>{if(s=e.value,!!s&&o!=null)return eF(n,o,void 0,a,r),()=>{aJ(a),a={}}}))}function eF(t,e,n,r,i){const s=l=>r[l]=sn(()=>i(l,e.read(l,void 0))),o=l=>{var c;(c=r[l])==null||c.call(r),delete r[l],n.read(l,void 0)!==void 0&&i(l,void 0)},a=l=>{var c;(c=r[l])==null||c.call(r),s(l)};pm(()=>e.filterCompare(t,n,s,a,o))}function aJ(t){for(const e in t)t[e]()}class lJ{constructor(e){Ke(this,"preTransformers");Ke(this,"propertyMap",new Map);this.preTransformers=e}add(e,n){var o;if(n===void 0)return;const r=(o=this.preTransformers)==null?void 0:o[e];if(r!=null){r(n,this);return}const i=rJ[e];if(i==null){this.addToMap(e,n);return}const s=i.length;for(let a=0;a=0;s--){const o=r[s],a=o instanceof wi?o.value:o;if(a!==void 0)return a}return n}filterCompare(e,n,r,i,s){for(const o of this.propertyMap.keys()){if(!e(o))continue;if(n==null){r(o);continue}const a=n.propertyMap.get(o);if(a==null){r(o);continue}const l=this.propertyMap.get(o);tF(a,l)||i(o)}if(n!=null)for(const o of n.propertyMap.keys())e(o)&&(this.propertyMap.has(o)||s(o))}isEqual(e,n){const r=this.propertyMap.get(n),i=e.propertyMap.get(n);return r==null||i==null?r===i:tF(r,i)}addAll(e,n,r,i){OC(e,n,r,s=>{for(const o in s)this.add(o,s[o]);for(const o in i){const a=s[o];a!=null&&i[o](a,this)}})}}function tF(t,e){const n=t.length;if(n!=e.length)return!1;for(let r=0;r{let s;if(r==null)s=void 0;else{if(r.value==null)return;s=r.value}const o=i==null?void 0:i.value,a=typeof o=="number"?o:(o==null?void 0:o.major)??0,l=typeof o=="number"?0:(o==null?void 0:o.minor)??0;let c,p;return s==null?(c=0,p=0):e>s.elementType?(c=s.majorIndex,p=0):e!=s.elementType||!hJ(bs(n),bs(s.instancedGroupDependencies))?(c=s.majorIndex+1,p=0):(c=s.majorIndex,p=s.minorIndex+1),a>0&&(c+=a,p=0),p+=l,{instancedGroupDependencies:n,elementType:e,majorIndex:c,minorIndex:p}})}function hJ(t,e){if(t===e)return!0;if(t==null||e==null)return!1;let n=0;for(const r in t){if(t[r]!=e[r])return!1;++n}return n===Object.keys(e).length}function sd(t,e,n){return t[YS]=e,t[XS]=n,t}function Fu(t,e,n,r){r.push(()=>sn(()=>{var s,o,a,l;const i=n.value;i!=null&&((o=(s=t.peek())==null?void 0:s.onSizeChange)==null||o.call(s,...i),(l=(a=e.peek())==null?void 0:a.onSizeChange)==null||l.call(a,...i))}))}function vh(t,e,n,r){let i=!0;r.push(()=>sn(()=>{var o,a,l,c;const s=n.value;if(i){i=!1;return}(a=(o=t.peek())==null?void 0:o.onIsClippedChange)==null||a.call(o,s),(c=(l=e.peek())==null?void 0:l.onIsClippedChange)==null||c.call(l,s)}))}const pJ=new ue,dJ=new ue,C1=new ue,yI=new En,fJ=new DA,AJ=new Si,EI=Math.PI/180;function gJ([t,e,n]){return AJ.setFromEuler(fJ.set(t*EI,e*EI,n*EI))}const mJ="center",yJ="center";function Pu(t,{relativeCenter:e,size:n},r){const i=nr(t,"transformTranslateX",0),s=nr(t,"transformTranslateY",0),o=nr(t,"transformTranslateZ",0),a=nr(t,"transformRotateX",0),l=nr(t,"transformRotateY",0),c=nr(t,"transformRotateZ",0),p=nr(t,"transformScaleX",1),d=nr(t,"transformScaleY",1),A=nr(t,"transformScaleZ",1),y=nr(t,"transformOriginX",mJ),C=nr(t,"transformOriginY",yJ);return bn(()=>{if(e.value==null)return;const[x,D]=e.value,I=r.value,w=new En().makeTranslation(x*I,D*I,0);let B=!0;if(y.value!="center"||C.value!="center"){if(n.value==null)return;const[N,U]=n.value;B=!1,C1.set(-bL[y.value]*N*I,-TL[C.value]*U*I,0),w.multiply(yI.makeTranslation(C1)),C1.negate()}const _=[a.value,l.value,c.value],F=[nF(i.value,n,0),-nF(s.value,n,1),o.value],P=[CI(p.value),CI(d.value),CI(A.value)];return(F.some(N=>N!=0)||_.some(N=>N!=0)||P.some(N=>N!=1))&&w.multiply(yI.compose(pJ.fromArray(F).multiplyScalar(I),gJ(_),dJ.fromArray(P))),B||w.multiply(yI.makeTranslation(C1)),w})}function CI(t){if(typeof t=="number")return t;const e=iB.exec(t);if(e==null)throw new Error(`invalid value "${t}", expected number of percentage`);return parseFloat(e[1])/100}function nF(t,e,n){var s;if(typeof t=="number")return t;const r=iB.exec(t);if(r==null)throw new Error(`invalid value "${t}", expected number of percentage`);return(((s=e.value)==null?void 0:s[n])??0)*parseFloat(r[1])/100}function Qu(t,e,n,r){r.push(()=>sn(()=>{var i,s;if(n.value==null){(i=e.current)==null||i.matrix.elements.fill(0);return}(s=e.current)==null||s.matrix.copy(n.value),t.requestRender()}))}var EJ=(()=>{var t=import.meta.url;return function(e){e=e||{};var n;n||(n=typeof e<"u"?e:{});var r,i;n.ready=new Promise(function(ee,H){r=ee,i=H});var s=Object.assign({},n),o="";typeof document<"u"&&document.currentScript&&(o=document.currentScript.src),t&&(o=t),o.indexOf("blob:")!==0?o=o.substr(0,o.replace(/[?#].*/,"").lastIndexOf("/")+1):o="";var a=n.print||console.log.bind(console),l=n.printErr||console.warn.bind(console);Object.assign(n,s),s=null;var c;n.wasmBinary&&(c=n.wasmBinary),n.noExitRuntime,typeof WebAssembly!="object"&&re("no native wasm support detected");var p,d=!1;function A(ee,H,ye){ye=H+ye;for(var Pe="";!(H>=ye);){var We=ee[H++];if(!We)break;if(We&128){var et=ee[H++]&63;if((We&224)==192)Pe+=String.fromCharCode((We&31)<<6|et);else{var yt=ee[H++]&63;We=(We&240)==224?(We&15)<<12|et<<6|yt:(We&7)<<18|et<<12|yt<<6|ee[H++]&63,65536>We?Pe+=String.fromCharCode(We):(We-=65536,Pe+=String.fromCharCode(55296|We>>10,56320|We&1023))}}else Pe+=String.fromCharCode(We)}return Pe}var y,C,x,D,I,w,B,_,F;function P(){var ee=p.buffer;y=ee,n.HEAP8=C=new Int8Array(ee),n.HEAP16=D=new Int16Array(ee),n.HEAP32=w=new Int32Array(ee),n.HEAPU8=x=new Uint8Array(ee),n.HEAPU16=I=new Uint16Array(ee),n.HEAPU32=B=new Uint32Array(ee),n.HEAPF32=_=new Float32Array(ee),n.HEAPF64=F=new Float64Array(ee)}var N,U=[],q=[],L=[];function z(){var ee=n.preRun.shift();U.unshift(ee)}var he=0,Ie=null;function re(ee){throw n.onAbort&&n.onAbort(ee),ee="Aborted("+ee+")",l(ee),d=!0,ee=new WebAssembly.RuntimeError(ee+". Build with -sASSERTIONS for more info."),i(ee),ee}function _e(ee){return ee.startsWith("data:application/octet-stream;base64,")}var De;if(De="data:application/octet-stream;base64,AGFzbQEAAAABrAM2YAF/AGABfwF/YAJ/fwBgA39/fwBgAn98AGACf38Bf2ADf39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AADwsgAEH8AGoiASAALwEcECAiAiACWwRAIAEgAC8BHBAgDwsCQCAAKALsAy0ACEEBcQ0AIAEgAC8BGBAgIgIgAlwNACABIAAvARgQIEMAAAAAXUUNACABIAAvARgQIIwPC0MAAIA/QwAAAAAgACgC7AMtAAhBAXEbC3ACAX8BfSMAQRBrIgQkACAEQQhqIAAgAUECdEHMJGooAgAgAhAqQwAAwH8hBQJAAkACQCAELQAMQQFrDgIAAQILIAQqAgghBQwBCyAEKgIIIAOUQwrXIzyUIQULIARBEGokACAFQwAAAAAgBSAFWxsLcAIBfwF9IwBBEGsiBCQAIARBCGogACABQQJ0QbwkaigCACACEC5DAADAfyEFAkACQAJAIAQtAAxBAWsOAgABAgsgBCoCCCEFDAELIAQqAgggA5RDCtcjPJQhBQsgBEEQaiQAIAVDAAAAACAFIAVbGwvOAQIDfwJ9IwBBEGsiAyQAQQEhBCADQQhqIABB/ABqIgUgACABQQF0akHuAGoiAS8BABAfAkACQCADKgIIIgcgAioCACIGXARAIAcgB1sEQCACLQAEIQIMAgsgBiAGXCEECyACLQAEIQIgBEUNACADLQAMIAJB/wFxRg0BCyAFIAEgBiACEDQDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALcAyIADQALCyADQRBqJAALhQECA38BfgJAIABCgICAgBBUBEAgACEFDAELA0AgAUEBayIBIABCCoAiBUL2AX4gAHynQTByOgAAIABC/////58BViECIAUhACACDQALCyAFpyICBEADQCABQQFrIgEgAkEKbiIDQfYBbCACakEwcjoAACACQQlLIQQgAyECIAQNAAsLIAELNwECf0EEEB4iAiABNgIAQQQQHiIDIAE2AgBBnTogAEG+OkHaJ0G5ASACQb46Qd4nQboBIAMQBwteAQF/IABBADYCDCAAIAM2AhACQCABBEAgAUGAgICABE8NASABQQJ0EB4hBAsgACAENgIAIAAgBCACQQJ0aiICNgIIIAAgBCABQQJ0ajYCDCAAIAI2AgQgAA8LEFAAC0cBAX8gAi8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ZcIQQLIAItAAQhAiAERQ0AIAMtAAwgAkH/AXFGDQELIAUgASAGIAIQNANAIAAtAAAiAUEEcQ0BIAAgAUEEcjoAACAAKAIQIgEEQCAAIAERAAALIABBgICA/gc2ApwBIAAoAtwDIgANAAsLIANBEGokAAvOAQIDfwJ9IwBBEGsiAyQAQQEhBCADQQhqIABB/ABqIgUgACABQQF0akHyAGoiAS8BABAfAkACQCADKgIIIgcgAioCACIGXARAIAcgB1sEQCACLQAEIQIMAgsgBiAGXCEECyACLQAEIQIgBEUNACADLQAMIAJB/wFxRg0BCyAFIAEgBiACEDQDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALcAyIADQALCyADQRBqJAALCgAgAEEwa0EKSQsFABACAAsEACAACxQAIAAEQCAAIAAoAgAoAgQRAAALCysBAX8gACgCDCIBBEAgARAoCyAAKAIAIgEEQCAAIAE2AgQgARAoCyAAECgL8QMBA38jAEEQayIDJAAgAEIANwIEIABBwSA7ABUgAEIANwIMIABCgICAgICAgAI3AhggACAALQAXQfgBcToAFyAAIAAtAABB4AFxQQFyOgAAIAAgAC0AFEGAAXE6ABQgAEEgakEAQc4AEC8aIABCADcCkAEgAEGEgBA2AW4gAEIANwFyIABBADYBeiAAQQA6AKQBIABBADYCoAEgAEKAgICAgICA4P8ANwKYASAAQagBakEAQcQBEC8aIABB7AJqIQQgAEGsAWohAgNAIAJCgICA/IuAgMC/fzcCECACQoGAgIAQNwIIIAJCgICA/IuAgMC/fzcCACACQRhqIgIgBEcNAAsgAEKAgID8i4CAwL9/NwLsAiAAQoCAgPyLgIDAv383AvwCIABCgYCAgBA3AvQCIABCgICA/oeAgOD/ADcCkAMgAEKAgID+h4CA4P8ANwKIAyAAQYQDaiICIAItAABB+AFxOgAAIABBmANqQQBB1AAQLxogAEEAOgD8AyAAQYCAgP4HNgL4AyAAQQA6APQDIABBgICA/gc2AvADIAAgATYC7AMgAQRAIAEtAAhBAXEEQ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BIQQgACECQQEhACACRQ0ACyABQSBqJAALMgACf0EAIAAvABVBgOAAcUGAwABGDQAaQQEgABA3QwAAAABcDQAaIAAQPEMAAAAAXAsLjwICAn8BfSMAQRBrIgUkACACIAOTIgIgAlsEQCAFQQhqIABB/ABqIgYgACABQQF0ai8BchAfAn0CQAJAAn0CQAJAIAUtAAxBAWsOAgABAwsgBSoCCAwBCyAFKgIIIASUQwrXIzyUCyIHIAdbDQELQwAAAAAMAQsgByADkwshByAFQQhqIAYgACABQQF0ai8BdhAfIAcCfQJAAkACfQJAAkAgBS0ADEEBaw4CAAEDCyAFKgIIDAELIAUqAgggBJRDCtcjPJQLIgQgBFsNAQtD//9/fwwBCyAEIAOTCyIDIAIgAiADXhsiAiACIAddGyAHIAIgAiACXBsgAiACWyAHIAdbcRshAgsgBUEQaiQAIAILdgIBfwF9IwBBEGsiBCQAIARBCGogACABQQJ0QbwkaigCACACEEpDAADAfyEFAkACQAJAIAQtAAxBAWsOAgABAgsgBCoCCCEFDAELIAQqAgggA5RDCtcjPJQhBQsgBEEQaiQAIAVDAAAAAJdDAAAAACAFIAVbGwuRAwEIfwJAIAAoAuADIgUgACgC5AMiB0cEQANAIAAgBSgCACICKALcA0cEQAJAIAAoAuwDKAIAIgEEQCACIAAgBiABEQYAIgENAQtBgAQQHiIBIAIoAhA2AhAgASACKQIINwIIIAEgAikCADcCACABQRRqIAJBFGpB6AAQLBogAUIANwKQASABQfwAaiIDQQA7AQAgAyACQfwAahCUASABQZgBaiACQZgBakHIAhAsGiABQQA2AugDIAFCADcC4AMgAigC5AMiAyACKALgAyIERwRAIAMgBGsiBEEASA0FIAEgBBAeIgM2AuQDIAEgAzYC4AMgASADIARqNgLoAyACKALgAyIEIAIoAuQDIghHBEADQCADIAQoAgA2AgAgA0EEaiEDIARBBGoiBCAIRw0ACwsgASADNgLkAwsgASACKQLsAzcC7AMgASACKAL8AzYC/AMgASACKQL0AzcC9AMgAUEANgLcAwsgBSABNgIAIAEgADYC3AMLIA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MgCyAEIAMgBhBZkzgCgAIMAgsgCkEIaiALIAUgAxAuIAhFIAotAAxBAEdyRQRAAkACQAJAAkAgBA4EAQECAAULIAEqApADIAIqApADkyEGQQIhAwwCCyABKgKUAyACKgKUA5MhBkEBIQMCQCAEDgICAAQLQQMhAwwBCyABKgKQAyACKgKQA5MhBkEAIQMLIAIgA0ECdGogBkMAAAA/lDgCmAMMAgsgCkEIaiALIAUgAxAuIAotAAwgCUEBc3INAQJAAkACQAJAIAQOBAEBAgAECyABKgKQAyACKgKQA5MhBkECIQMMAgsgASoClAMgAioClAOTIQZBASEDAkAgBA4CAgADC0EDIQMMAQsgASoCkAMgAioCkAOTIQZBACEDCyACIANBAnRqIAY4ApgDDAELECcACyAKQRBqJAALHAAgACABQQggAqcgAkIgiKcgA6cgA0IgiKcQFQvOAQIDfwJ9IwBBEGsiAyQAQQEhBCADQQhqIABB/ABqIgUgACABQQF0akHEAGoiAS8BABAfAkACQCADKgIIIgcgAioCACIGXARAIAcgB1sEQCACLQAEIQIMAgsgBiAGXCEECyACLQAEIQIgBEUNACADLQAMIAJB/wFxRg0BCyAFIAEgBiACEDQDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALcAyIADQALCyADQRBqJAALBQAQUAALOQAgAEUEQEEADwsCfyABQYB/cUGAvwNGIAFB/wBNckUEQEHYOkEZNgIAQX8MAQsgACABOgAAQQELC8QCAAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAFBCWsOEgAKCwwKCwIDBAUMCwwMCgsHCAkLIAIgAigCACIBQQRqNgIAIAAgASgCADYCAA8LAAsgAiACKAIAIgFBBGo2AgAgACABMgEANwMADwsgAiACKAIAIgFBBGo2AgAgACABMwEANwMADwsgAiACKAIAIgFBBGo2AgAgACABMAAANwMADwsgAiACKAIAIgFBBGo2AgAgACABMQAANwMADwsACyACIAIoAgBBB2pBeHEiAUEIajYCACAAIAErAwA5AwAPCyAAIAIgA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fyABIAEoAgBBB2pBeHEiAUEQajYCACAAIQkgASkDACEDIAEpAwghBiMAQSBrIggkAAJAIAZC////////////AIMiBEKAgICAgIDAgDx9IARCgICAgICAwP/DAH1UBEAgBkIEhiADQjyIhCEEIANC//////////8PgyIDQoGAgICAgICACFoEQCAEQoGAgICAgICAwAB8IQIMAgsgBEKAgICAgICAgEB9IQIgA0KAgICAgICAgAhSDQEgAiAEQgGDfCECDAELIANQIARCgICAgICAwP//AFQgBEKAgICAgIDA//8AURtFBEAgBkIEhiADQjyIhEL/////////A4NCgICAgICAgPz/AIQhAgwBC0KAgICAgICA+P8AIQIgBEL///////+//8MAVg0AQgAhAiAEQjCIpyIAQZH3AEkNACADIQIgBkL///////8/g0KAgICAgIDAAIQiBSEHAkAgAEGB9wBrIgFBwABxBEAgAiABQUBqrYYhB0IAIQIMAQsgAUUNACAHIAGtIgSGIAJBwAAgAWutiIQhByACIASGIQILIAggAjcDECAIIAc3AxgCQEGB+AAgAGsiAEHAAHEEQCAFIABBQGqtiCEDQgAhBQwBCyAARQ0AIAVBwAAgAGuthiADIACtIgKIhCEDIAUgAoghBQsgCCADNwMAIAggBTcDCCAIKQMIQgSGIAgpAwAiA0I8iIQhAiAIKQMQIAgpAxiEQgBSrSADQv//////////D4OEIgNCgYCAgICAgIAIWgRAIAJCAXwhAgwBCyADQoCAgICAgICACFINACACQgGDIAJ8IQILIAhBIGokACAJIAIgBkKAgICAgICAgIB/g4S/OQMAC5kYAxJ/AXwDfiMAQbAEayIMJAAgDEEANgIsAkAgAb0iGUIAUwRAQQEhEUGZCSETIAGaIgG9IRkMAQsgBEGAEHEEQEEBIRFBnAkhEwwBC0GfCUGaCSAEQQFxIhEbIRMgEUUhFQsCQCAZQoCAgICAgID4/wCDQoCAgICAgID4/wBRBEAgAEEgIAIgEUEDaiIDIARB//97cRArIAAgEyARECkgAEG1FUG8HSAFQSBxIgUbQY8aQcAdIAUbIAEgAWIbQQMQKSAAQSAgAiADIARBgMAAcxArIAMgA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AoAgQiAkEBdWohASAAKAIAIQAgASACQQFxBH8gASgCACAAaigCAAUgAAsRCwALYQECfyMAQRBrIgIkACABIAAoAgQiA0EBdWohASAAKAIAIQAgAiABIANBAXEEfyABKAIAIABqKAIABSAACxECAEEQEB4iACACKQMINwMIIAAgAikDADcDACACQRBqJAAgAAtjAQJ/IwBBEGsiAyQAIAEgACgCBCIEQQF1aiEBIAAoAgAhACADIAEgAiAEQQFxBH8gASgCACAAaigCAAUgAAsRAwBBEBAeIgAgAykDCDcDCCAAIAMpAwA3AwAgA0EQaiQAIAALNwEBfyABIAAoAgQiA0EBdWohASAAKAIAIQAgASACIANBAXEEfyABKAIAIABqKAIABSAACxEEAAs5AQF/IAEgACgCBCIEQQF1aiEBIAAoAgAhACABIAIgAyAEQQFxBH8gASgCACAAaigCAAUgAAsRCQALCQAgASAAEQEACwUAQZ86Cw8AIAEgACgCAGogAjYCAAsNACABIAAoAgBqKAIACxgBAX9BEBAeIgBCADcDCCAAQQA2AgAgAAsYAQF/QRAQHiIAQgA3AwAgAEIANwMIIAALDABBMBAeQQBBMBAvCzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRGgALBQBBmjoLIQAgACABKAIAIAEgASwAC0EASBtBlzogAigCABAQNgIACyoBAX9BDBAeIgFBADoABCABIAAoAgA2AgggAEEANgIAIAFBuCY2AgAgAQsFAEGXOgsFAEGUOgshACAAIAEoAgAgASABLAALQQBIG0GAOiACKAIAEBA2AgAL2AEBBH8jAEEgayIDJAAgASgCACIEQfD///8HSQRAAkACQCAEQQtPBEAgBEEPckEBaiIFEB4hBiADIAVBgICAgHhyNgIQIAMgBjYCCCADIAQ2AgwgBCAGaiEFDAELIAMgBDoAEyADQQhqIgYgBGohBSAERQ0BCyAGIAFBBGogBBAsGgsgBUEAOgAAIAMgAjYCACADQRhqIANBCGogAyAAEQMAIAMoAhgQHSADKAIYIgAQBiADKAIAEAYgAywAE0EASARAIAMoAggQKAsgA0EgaiQAIAAPCxACAAsqAQF/QQwQHiIBQQA6AAQgASAAKAIANgIIIABBADYCACABQcAlNgIAIAELBQBBgDoLaQECfyMAQRBrIgYkACABIAAoAgQiB0EBdWohASAAKAIAIQAgBiABIAIgAyAEIAUgB0EBcQR/IAEoAgAgAGooAgAFIAALERAAQRAQHiIAIAYpAwg3AwggACAGKQMANwMAIAZBEGokACAACwUAQfw5Cx0AIAAoAgAiACAALQAAQfcBcUEIQQAgARtyOgAAC6UBAgJ/AX0jAEEQayICJAAgACgCACEAIAFB/wFxIgNBBkkEQAJ/AkACQAJAIANBBGsOAgABAgsgAEHQA2ogAC0AhANBA3FBAkYNAhogAEHIA2oMAgsgAEHIA2ogAC0AhANBA3FBAkYNARogAEHQA2oMAQsgACABQf8BcUECdGpByANqCyoCACEEIAJBEGokACAEuw8LIAJB4BA2AgAgACACEDAQJwALpQECAn8BfSMAQRBrIgIkACAAKAIAIQAgAUH/AXEiA0EGSQRAAn8CQAJAAkAgA0EEaw4CAAECCyAAQcADaiAALQCEA0EDcUECRg0CGiAAQbgDagwCCyAAQbgDaiAALQCEA0EDcUECRg0BGiAAQcADagwBCyAAIAFB/wFxQQJ0akG4A2oLKgIAIQQgAkEQaiQAIAS7DwsgAkHgEDYCACAAIAIQMBAnAAulAQICfwF9IwBBEGsiAiQAIAAoAgAhACABQf8BcSIDQQZJBEACfwJAAkACQCADQQRrDgIAAQILIABBsANqIAAtAIQDQQNxQQJGDQIaIABBqANqDAILIABBqANqIAAtAIQDQQNxQQJGDQEaIABBsANqDAELIAAgAUH/AXFBAnRqQagDagsqAgAhBCACQRBqJAAgBLsPCyACQeAQNgIAIAAgAhAwECcAC08AIAAgASgCACIBKgKYA7s5AwAgACABKgKgA7s5AwggACABKgKcA7s5AxAgACABKgKkA7s5AxggACABKgKIA7s5AyAgACABKgKMA7s5AygLDAAgACgCACoCjAO7CwwAIAAoAgAqAogDuwsMACAAKAIAKgKkA7sLDAAgACgCACoCnAO7CwwA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+h4CA4P8ANwPwASACIAItAOwBQfgBcToA7AEgAkGAAmpBAEHAABAvGiADQZgBaiACQcACECwaIANBADYC3AMLA0AgAC0AACIBQQRxDQEgACABQQRyOgAAIAAoAhAiAQRAIAAgAREAAAsgAEGAgID+BzYCnAEgACgC3AMiAA0ACwsgBEHAAmokAAuyBwEIfyMAQdAAayIHJAAgACgCACEAAkACQCABKAIAIggoAtwDRQRAIAAoAggNASAAKALgAyIBIAJBAnRqIQYCQCAAKALkAyIEIABB6ANqIgMoAgAiBUkEQCAEIAZGBEAgBiAINgIAIAAgBkEEajYC5AMMAgsgBCAEIgJBBGsiAUsEQANAIAIgASgCADYCACACQQRqIQIgAUEEaiIBIARJDQALCyAAIAI2AuQDIAZBBGoiASAERwRAIAQgBCABayIBQXxxayAGIAEQMRoLIAYgCDYCAAwBCyAEIAFrQQJ1QQFqIgRBgICAgARPDQMCQCAHQSBqQf////8DIAUgAWsiAUEBdSIFIAQgBCAFSRsgAUH8////B08bIAIgAxBCIgMoAggiAiADKAIMRw0AIAMoAgQiASADKAIAIgRLBEAgAyABIAEgBGtBAnVBAWpBfm1BAnQiBGogASACIAFrIgEQMSABaiICNgIIIAMgAygCBCAEajYCBAwBCyAHQThqQQEgAiAEa0EBdSACIARGGyIBIAFBAnYgAygCEBBCIgUoAgghBAJ/IAMoAggiAiADKAIEIgFGBEAgBCECIAEMAQsgBCACIAFraiECA0AgBCABKAIANgIAIAFBBGohASAEQQRqIgQgAkcNAAsgAygCCCEBIAMoAgQLIQQgAygCACEJIAMgBSgCADYCACAFIAk2AgAgAyAFKAIENgIEIAUgBDYCBCADIAI2AgggBSABNgIIIAMoAgwhCiADIAUoAgw2AgwgBSAKNgIMIAEgBEcEQCAFIAEgBCABa0EDakF8cWo2AggLIAlFDQAgCRAoIAMoAgghAgsgAiAINgIAIAMgAygCCEEEajYCCCADIAMoAgQgBiAAKALgAyIBayICayABIAIQMTYCBCADKAIIIAYgACgC5AMgBmsiBBAxIQYgACgC4AMhASA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0AADcdAAAeHQAAIR0AAD4dAAAhHQAAPh0AACEdAAA3HQAAZGlpaQAAAAA9HQAAIB0AADcdAABmaWlpAAAAADAdAAAgHQAAIB0AADgdAAAwHQAAIB0AACAdAAA4HQAAIR0AACAdAAAgHQAAIB0AACAdAAA4HQAAMB0AACAdAAAxHQAAMR0AACAdAAAwHQAAIB0AAP0cAAAwHQAAIB0AABUdAAAxHQAAIR0AAAAAAAAwHQAAIB0AAD4dAAA+HQAANx0AAHZpaWRkaQAAHR0AACEdAEGgKgtBGQAKABkZGQAAAAAFAAAAAAAACQAAAAALAAAAAAAAAAAZABEKGRkZAwoHAAEACQsYAAAJBgsAAAsABhkAAAAZGRkAQfEqCyEOAAAAAAAAAAAZAAoNGRkZAA0AAAIACQ4AAAAJAA4AAA4AQasrCwEMAEG3KwsVEwAAAAATAAAAAAkMAAAAAAAMAAAMAEHlKwsBEABB8SsLFQ8AAAAEDwAAAAAJEAAAAAAAEAAAEABBnywLARIAQassCx4RAAAAABEAAAAACRIAAAAAABIAABIAABoAAAAaGhoAQeIsCw4aAAAAGhoaAAAAAAAACQBBky0LARQAQZ8tCxUXAAAAABcAAAAACRQAAAAAABQAABQAQc0tCwEWAEHZLQsnFQAAAAAVAAAAAAkWAAAAAAAWAAAWAAAwMTIzNDU2Nzg5QUJDREVGAEGkLgsBzABBzC4LCP//////////AEGQLwsJcCEBAAAAAAAFAEGkLwsBxwBBvC8LCsgAAADJAAAAWB0AQdQvCwECAEHkLwsI//////////8AQagwCwEFAEG0MAsBygBBzDALDsgAAADLAAAAaB0AAAAEAEHkMAsBAQBB9DALBf////8KAEG4MQsBzQ==",!_e(De)){var Ge=De;De=n.locateFile?n.locateFile(Ge,o):o+Ge}function ie(){var ee=De;try{if(ee==De&&c)return new Uint8Array(c);if(_e(ee))try{var H=Zn(ee.slice(37)),ye=new Uint8Array(H.length);for(ee=0;ee=H?"_"+ee:ee}function Ue(ee,H){return ee=Ae(ee),function(){return H.apply(this,arguments)}}var we=[{},{value:void 0},{value:null},{value:!0},{value:!1}],K=[];function oe(ee){var H=Error,ye=Ue(ee,function(Pe){this.name=ee,this.message=Pe,Pe=Error(Pe).stack,Pe!==void 0&&(this.stack=this.toString()+` +`+Pe.replace(/^Error(:[^\n]*)?\n/,""))});return ye.prototype=Object.create(H.prototype),ye.prototype.constructor=ye,ye.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},ye}var Y=void 0;function Z(ee){throw new Y(ee)}var Le=ee=>(ee||Z("Cannot use deleted val. handle = "+ee),we[ee].value),ze=ee=>{switch(ee){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var H=K.length?K.pop():we.length;return we[H]={ga:1,value:ee},H}},Fe=void 0,je=void 0;function le(ee){for(var H="";x[ee];)H+=je[x[ee++]];return H}var Ne=[];function be(){for(;Ne.length;){var ee=Ne.pop();ee.M.$=!1,ee.delete()}}var Ve=void 0,He={};function lt(ee,H){for(H===void 0&&Z("ptr should not be undefined");ee.R;)H=ee.ba(H),ee=ee.R;return H}var Se={};function W(ee){ee=fr(ee);var H=le(ee);return hn(ee),H}function $(ee,H){var ye=Se[ee];return ye===void 0&&Z(H+" has unknown type "+W(ee)),ye}function Oe(){}var ft=!1;function pt(ee){--ee.count.value,ee.count.value===0&&(ee.T?ee.U.W(ee.T):ee.P.N.W(ee.O))}function ut(ee,H,ye){return H===ye?ee:ye.R===void 0?null:(ee=ut(ee,H,ye.R),ee===null?null:ye.na(ee))}var Ut={};function _t(ee,H){return H=lt(ee,H),He[H]}var Ot=void 0;function Ft(ee){throw new Ot(ee)}function Pt(ee,H){return H.P&&H.O||Ft("makeClassHandle requires ptr and ptrType"),!!H.U!=!!H.T&&Ft("Both smartPtrType and smartPtr must be specified"),H.count={value:1},mt(Object.create(ee,{M:{value:H}}))}function mt(ee){return typeof FinalizationRegistry>"u"?(mt=H=>H,ee):(ft=new FinalizationRegistry(H=>{pt(H.M)}),mt=H=>{var ye=H.M;return ye.T&&ft.register(H,{M:ye},H),H},Oe=H=>{ft.unregister(H)},mt(ee))}var Rn={};function Sn(ee){for(;ee.length;){var H=ee.pop();ee.pop()(H)}}function cn(ee){return this.fromWireType(w[ee>>2])}var tn={},qt={};function xn(ee,H,ye){function Pe(ct){ct=ye(ct),ct.length!==ee.length&&Ft("Mismatched type converter count");for(var rt=0;rt{Se.hasOwnProperty(ct)?We[rt]=Se[ct]:(et.push(ct),tn.hasOwnProperty(ct)||(tn[ct]=[]),tn[ct].push(()=>{We[rt]=Se[ct],++yt,yt===et.length&&Pe(We)}))}),et.length===0&&Pe(We)}function Vn(ee){switch(ee){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+ee)}}function Tn(ee,H,ye={}){if(!("argPackAdvance"in H))throw new TypeError("registerType registeredInstance requires argPackAdvance");var Pe=H.name;if(ee||Z('type "'+Pe+'" must have a positive integer typeid pointer'),Se.hasOwnProperty(ee)){if(ye.ua)return;Z("Cannot register type '"+Pe+"' twice")}Se[ee]=H,delete qt[ee],tn.hasOwnProperty(ee)&&(H=tn[ee],delete tn[ee],H.forEach(We=>We()))}function Pn(ee){Z(ee.M.P.N.name+" instance already deleted")}function zn(){}function Be(ee,H,ye){if(ee[H].S===void 0){var Pe=ee[H];ee[H]=function(){return ee[H].S.hasOwnProperty(arguments.length)||Z("Function '"+ye+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+ee[H].S+")!"),ee[H].S[arguments.length].apply(this,arguments)},ee[H].S=[],ee[H].S[Pe.Z]=Pe}}function Mt(ee,H){n.hasOwnProperty(ee)?(Z("Cannot register public name '"+ee+"' twice"),Be(n,ee,ee),n.hasOwnProperty(void 0)&&Z("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),n[ee].S[void 0]=H):n[ee]=H}function dt(ee,H,ye,Pe,We,et,yt,ct){this.name=ee,this.constructor=H,this.X=ye,this.W=Pe,this.R=We,this.pa=et,this.ba=yt,this.na=ct,this.ja=[]}function on(ee,H,ye){for(;H!==ye;)H.ba||Z("Expected null or instance of "+ye.name+", got an instance of "+H.name),ee=H.ba(ee),H=H.R;return ee}function nn(ee,H){return H===null?(this.ea&&Z("null is not a valid "+this.name),0):(H.M||Z('Cannot pass "'+fs(H)+'" as a '+this.name),H.M.O||Z("Cannot pass deleted object as a pointer of type "+this.name),on(H.M.O,H.M.P.N,this.N))}function rr(ee,H){if(H===null){if(this.ea&&Z("null is not a valid "+this.name),this.da){var ye=this.fa();return ee!==null&&ee.push(this.W,ye),ye}return 0}if(H.M||Z('Cannot pass "'+fs(H)+'" as a '+this.name),H.M.O||Z("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&H.M.P.ca&&Z("Cannot convert argument of type "+(H.M.U?H.M.U.name:H.M.P.name)+" to parameter type "+this.name),ye=on(H.M.O,H.M.P.N,this.N),this.da)switch(H.M.T===void 0&&Z("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:H.M.U===this?ye=H.M.T:Z("Cannot convert argument of type "+(H.M.U?H.M.U.name:H.M.P.name)+" to parameter type "+this.name);break;case 1:ye=H.M.T;break;case 2:if(H.M.U===this)ye=H.M.T;else{var Pe=H.clone();ye=this.xa(ye,ze(function(){Pe.delete()})),ee!==null&&ee.push(this.W,ye)}break;default:Z("Unsupporting sharing policy")}return ye}function or(ee,H){return H===null?(this.ea&&Z("null is not a valid "+this.name),0):(H.M||Z('Cannot pass "'+fs(H)+'" as a '+this.name),H.M.O||Z("Cannot pass deleted object as a pointer of type "+this.name),H.M.P.ca&&Z("Cannot convert argument of type "+H.M.P.name+" to parameter type "+this.name),on(H.M.O,H.M.P.N,this.N))}function pr(ee,H,ye,Pe){this.name=ee,this.N=H,this.ea=ye,this.ca=Pe,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,H.R!==void 0?this.toWireType=rr:(this.toWireType=Pe?nn:or,this.V=null)}function ai(ee,H){n.hasOwnProperty(ee)||Ft("Replacing nonexistant public symbol"),n[ee]=H,n[ee].Z=void 0}function ar(ee,H){var ye=[];return function(){if(ye.length=0,Object.assign(ye,arguments),ee.includes("j")){var Pe=n["dynCall_"+ee];Pe=ye&&ye.length?Pe.apply(null,[H].concat(ye)):Pe.call(null,H)}else Pe=N.get(H).apply(null,ye);return Pe}}function dr(ee,H){ee=le(ee);var ye=ee.includes("j")?ar(ee,H):N.get(H);return typeof ye!="function"&&Z("unknown function pointer with signature "+ee+": "+H),ye}var gi=void 0;function ps(ee,H){function ye(et){We[et]||Se[et]||(qt[et]?qt[et].forEach(ye):(Pe.push(et),We[et]=!0))}var Pe=[],We={};throw H.forEach(ye),new gi(ee+": "+Pe.map(W).join([", "]))}function Fs(ee,H,ye,Pe,We){var et=H.length;2>et&&Z("argTypes array size mismatch! Must at least get return value and 'this' types!");var yt=H[1]!==null&&ye!==null,ct=!1;for(ye=1;ye>2]);return ye}function ds(ee){4>2])};case 3:return function(ye){return this.fromWireType(F[ye>>3])};default:throw new TypeError("Unknown float type: "+ee)}}function mr(ee,H,ye){switch(H){case 0:return ye?function(Pe){return C[Pe]}:function(Pe){return x[Pe]};case 1:return ye?function(Pe){return D[Pe>>1]}:function(Pe){return I[Pe>>1]};case 2:return ye?function(Pe){return w[Pe>>2]}:function(Pe){return B[Pe>>2]};default:throw new TypeError("Unknown integer type: "+ee)}}function Jr(ee,H){for(var ye="",Pe=0;!(Pe>=H/2);++Pe){var We=D[ee+2*Pe>>1];if(We==0)break;ye+=String.fromCharCode(We)}return ye}function Ki(ee,H,ye){if(ye===void 0&&(ye=2147483647),2>ye)return 0;ye-=2;var Pe=H;ye=ye<2*ee.length?ye/2:ee.length;for(var We=0;We>1]=ee.charCodeAt(We),H+=2;return D[H>>1]=0,H-Pe}function ll(ee){return 2*ee.length}function pe(ee,H){for(var ye=0,Pe="";!(ye>=H/4);){var We=w[ee+4*ye>>2];if(We==0)break;++ye,65536<=We?(We-=65536,Pe+=String.fromCharCode(55296|We>>10,56320|We&1023)):Pe+=String.fromCharCode(We)}return Pe}function qe(ee,H,ye){if(ye===void 0&&(ye=2147483647),4>ye)return 0;var Pe=H;ye=Pe+ye-4;for(var We=0;We=et){var yt=ee.charCodeAt(++We);et=65536+((et&1023)<<10)|yt&1023}if(w[H>>2]=et,H+=4,H+4>ye)break}return w[H>>2]=0,H-Pe}function se(ee){for(var H=0,ye=0;ye=Pe&&++ye,H+=4}return H}var me={};function Me(ee){var H=me[ee];return H===void 0?le(ee):H}var $e=[];function Ze(ee){var H=$e.length;return $e.push(ee),H}function It(ee,H){for(var ye=Array(ee),Pe=0;Pe>2],"parameter "+Pe);return ye}var At=[],Kt=[null,[],[]];Y=n.BindingError=oe("BindingError"),n.count_emval_handles=function(){for(var ee=0,H=5;HCn;++Cn)en[Cn]=String.fromCharCode(Cn);je=en,n.getInheritedInstanceCount=function(){return Object.keys(He).length},n.getLiveInheritedInstances=function(){var ee=[],H;for(H in He)He.hasOwnProperty(H)&&ee.push(He[H]);return ee},n.flushPendingDeletes=be,n.setDelayFunction=function(ee){Ve=ee,Ne.length&&Ve&&Ve(be)},Ot=n.InternalError=oe("InternalError"),zn.prototype.isAliasOf=function(ee){if(!(this instanceof zn&&ee instanceof zn))return!1;var H=this.M.P.N,ye=this.M.O,Pe=ee.M.P.N;for(ee=ee.M.O;H.R;)ye=H.ba(ye),H=H.R;for(;Pe.R;)ee=Pe.ba(ee),Pe=Pe.R;return H===Pe&&ye===ee},zn.prototype.clone=function(){if(this.M.O||Pn(this),this.M.aa)return this.M.count.value+=1,this;var ee=mt,H=Object,ye=H.create,Pe=Object.getPrototypeOf(this),We=this.M;return ee=ee(ye.call(H,Pe,{M:{value:{count:We.count,$:We.$,aa:We.aa,O:We.O,P:We.P,T:We.T,U:We.U}}})),ee.M.count.value+=1,ee.M.$=!1,ee},zn.prototype.delete=function(){this.M.O||Pn(this),this.M.$&&!this.M.aa&&Z("Object already scheduled for deletion"),Oe(this),pt(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},zn.prototype.isDeleted=function(){return!this.M.O},zn.prototype.deleteLater=function(){return this.M.O||Pn(this),this.M.$&&!this.M.aa&&Z("Object already scheduled for deletion"),Ne.push(this),Ne.length===1&&Ve&&Ve(be),this.M.$=!0,this},pr.prototype.qa=function(ee){return this.ka&&(ee=this.ka(ee)),ee},pr.prototype.ha=function(ee){this.W&&this.W(ee)},pr.prototype.argPackAdvance=8,pr.prototype.readValueFromPointer=cn,pr.prototype.deleteObject=function(ee){ee!==null&&ee.delete()},pr.prototype.fromWireType=function(ee){function H(){return this.da?Pt(this.N.X,{P:this.wa,O:ye,U:this,T:ee}):Pt(this.N.X,{P:this,O:ee})}var ye=this.qa(ee);if(!ye)return this.ha(ee),null;var Pe=_t(this.N,ye);if(Pe!==void 0)return Pe.M.count.value===0?(Pe.M.O=ye,Pe.M.T=ee,Pe.clone()):(Pe=Pe.clone(),this.ha(ee),Pe);if(Pe=this.N.pa(ye),Pe=Ut[Pe],!Pe)return H.call(this);Pe=this.ca?Pe.la:Pe.pointerType;var We=ut(ye,this.N,Pe.N);return We===null?H.call(this):this.da?Pt(Pe.N.X,{P:Pe,O:We,U:this,T:ee}):Pt(Pe.N.X,{P:Pe,O:We})},gi=n.UnboundTypeError=oe("UnboundTypeError");var Zn=typeof atob=="function"?atob:function(ee){var H="",ye=0;ee=ee.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var Pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ee.charAt(ye++)),We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ee.charAt(ye++)),et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ee.charAt(ye++)),yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ee.charAt(ye++));Pe=Pe<<2|We>>4,We=(We&15)<<4|et>>2;var ct=(et&3)<<6|yt;H+=String.fromCharCode(Pe),et!==64&&(H+=String.fromCharCode(We)),yt!==64&&(H+=String.fromCharCode(ct))}while(yeyt.ta).concat(We.map(yt=>yt.za));xn([ee],et,yt=>{var ct={};return We.forEach((rt,Xe)=>{var Qt=yt[Xe],an=rt.ra,Qn=rt.sa,kr=yt[Xe+We.length],Kn=rt.ya,Ur=rt.Aa;ct[rt.oa]={read:vn=>Qt.fromWireType(an(Qn,vn)),write:(vn,_r)=>{var Bi=[];Kn(Ur,vn,kr.toWireType(Bi,_r)),Sn(Bi)}}}),[{name:H.name,fromWireType:function(rt){var Xe={},Qt;for(Qt in ct)Xe[Qt]=ct[Qt].read(rt);return Pe(rt),Xe},toWireType:function(rt,Xe){for(var Qt in ct)if(!(Qt in Xe))throw new TypeError('Missing field: "'+Qt+'"');var an=ye();for(Qt in ct)ct[Qt].write(an,Xe[Qt]);return rt!==null&&rt.push(Pe,an),an},argPackAdvance:8,readValueFromPointer:cn,V:Pe}]})},v:function(){},B:function(ee,H,ye,Pe,We){var et=Vn(ye);H=le(H),Tn(ee,{name:H,fromWireType:function(yt){return!!yt},toWireType:function(yt,ct){return ct?Pe:We},argPackAdvance:8,readValueFromPointer:function(yt){if(ye===1)var ct=C;else if(ye===2)ct=D;else if(ye===4)ct=w;else throw new TypeError("Unknown boolean type size: "+H);return this.fromWireType(ct[yt>>et])},V:null})},f:function(ee,H,ye,Pe,We,et,yt,ct,rt,Xe,Qt,an,Qn){Qt=le(Qt),et=dr(We,et),ct&&(ct=dr(yt,ct)),Xe&&(Xe=dr(rt,Xe)),Qn=dr(an,Qn);var kr=Ae(Qt);Mt(kr,function(){ps("Cannot construct "+Qt+" due to unbound types",[Pe])}),xn([ee,H,ye],Pe?[Pe]:[],function(Kn){if(Kn=Kn[0],Pe)var Ur=Kn.N,vn=Ur.X;else vn=zn.prototype;Kn=Ue(kr,function(){if(Object.getPrototypeOf(this)!==_r)throw new Y("Use 'new' to construct "+Qt);if(Bi.Y===void 0)throw new Y(Qt+" has no accessible constructor");var li=Bi.Y[arguments.length];if(li===void 0)throw new Y("Tried to invoke ctor of "+Qt+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Bi.Y).toString()+") parameters instead!");return li.apply(this,arguments)});var _r=Object.create(vn,{constructor:{value:Kn}});Kn.prototype=_r;var Bi=new dt(Qt,Kn,_r,Qn,Ur,et,ct,Xe);Ur=new pr(Qt,Bi,!0,!1),vn=new pr(Qt+"*",Bi,!1,!1);var Ps=new pr(Qt+" const*",Bi,!1,!0);return Ut[ee]={pointerType:vn,la:Ps},ai(kr,Kn),[Ur,vn,Ps]})},d:function(ee,H,ye,Pe,We,et,yt){var ct=Io(ye,Pe);H=le(H),et=dr(We,et),xn([],[ee],function(rt){function Xe(){ps("Cannot call "+Qt+" due to unbound types",ct)}rt=rt[0];var Qt=rt.name+"."+H;H.startsWith("@@")&&(H=Symbol[H.substring(2)]);var an=rt.N.constructor;return an[H]===void 0?(Xe.Z=ye-1,an[H]=Xe):(Be(an,H,Qt),an[H].S[ye-1]=Xe),xn([],ct,function(Qn){return Qn=Fs(Qt,[Qn[0],null].concat(Qn.slice(1)),null,et,yt),an[H].S===void 0?(Qn.Z=ye-1,an[H]=Qn):an[H].S[ye-1]=Qn,[]}),[]})},p:function(ee,H,ye,Pe,We,et){0{ps("Cannot construct "+ct.name+" due to unbound types",yt)},xn([],yt,function(Xe){return Xe.splice(1,0,null),ct.N.Y[H-1]=Fs(rt,Xe,null,We,et),[]}),[]})},a:function(ee,H,ye,Pe,We,et,yt,ct){var rt=Io(ye,Pe);H=le(H),et=dr(We,et),xn([],[ee],function(Xe){function Qt(){ps("Cannot call "+an+" due to unbound types",rt)}Xe=Xe[0];var an=Xe.name+"."+H;H.startsWith("@@")&&(H=Symbol[H.substring(2)]),ct&&Xe.N.ja.push(H);var Qn=Xe.N.X,kr=Qn[H];return kr===void 0||kr.S===void 0&&kr.className!==Xe.name&&kr.Z===ye-2?(Qt.Z=ye-2,Qt.className=Xe.name,Qn[H]=Qt):(Be(Qn,H,an),Qn[H].S[ye-2]=Qt),xn([],rt,function(Kn){return Kn=Fs(an,Kn,Xe,et,yt),Qn[H].S===void 0?(Kn.Z=ye-2,Qn[H]=Kn):Qn[H].S[ye-2]=Kn,[]}),[]})},A:function(ee,H){H=le(H),Tn(ee,{name:H,fromWireType:function(ye){var Pe=Le(ye);return ds(ye),Pe},toWireType:function(ye,Pe){return ze(Pe)},argPackAdvance:8,readValueFromPointer:cn,V:null})},n:function(ee,H,ye){ye=Vn(ye),H=le(H),Tn(ee,{name:H,fromWireType:function(Pe){return Pe},toWireType:function(Pe,We){return We},argPackAdvance:8,readValueFromPointer:Ma(H,ye),V:null})},e:function(ee,H,ye,Pe,We){H=le(H),We===-1&&(We=4294967295),We=Vn(ye);var et=ct=>ct;if(Pe===0){var yt=32-8*ye;et=ct=>ct<>>yt}ye=H.includes("unsigned")?function(ct,rt){return rt>>>0}:function(ct,rt){return rt},Tn(ee,{name:H,fromWireType:et,toWireType:ye,argPackAdvance:8,readValueFromPointer:mr(H,We,Pe!==0),V:null})},b:function(ee,H,ye){function Pe(et){et>>=2;var yt=B;return new We(y,yt[et+1],yt[et])}var We=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][H];ye=le(ye),Tn(ee,{name:ye,fromWireType:Pe,argPackAdvance:8,readValueFromPointer:Pe},{ua:!0})},o:function(ee,H){H=le(H);var ye=H==="std::string";Tn(ee,{name:H,fromWireType:function(Pe){var We=B[Pe>>2],et=Pe+4;if(ye)for(var yt=et,ct=0;ct<=We;++ct){var rt=et+ct;if(ct==We||x[rt]==0){if(yt=yt?A(x,yt,rt-yt):"",Xe===void 0)var Xe=yt;else Xe+="\0",Xe+=yt;yt=rt+1}}else{for(Xe=Array(We),ct=0;ct=rt?ct++:2047>=rt?ct+=2:55296<=rt&&57343>=rt?(ct+=4,++et):ct+=3}et=ct}else et=We.length;if(ct=xr(4+et+1),rt=ct+4,B[ct>>2]=et,ye&&yt){if(yt=rt,rt=et+1,et=x,0=Qt){var an=We.charCodeAt(++Xe);Qt=65536+((Qt&1023)<<10)|an&1023}if(127>=Qt){if(yt>=rt)break;et[yt++]=Qt}else{if(2047>=Qt){if(yt+1>=rt)break;et[yt++]=192|Qt>>6}else{if(65535>=Qt){if(yt+2>=rt)break;et[yt++]=224|Qt>>12}else{if(yt+3>=rt)break;et[yt++]=240|Qt>>18,et[yt++]=128|Qt>>12&63}et[yt++]=128|Qt>>6&63}et[yt++]=128|Qt&63}}et[yt]=0}}else if(yt)for(yt=0;ytI,ct=1;else H===4&&(Pe=pe,We=qe,et=se,yt=()=>B,ct=2);Tn(ee,{name:ye,fromWireType:function(rt){for(var Xe=B[rt>>2],Qt=yt(),an,Qn=rt+4,kr=0;kr<=Xe;++kr){var Kn=rt+4+kr*H;(kr==Xe||Qt[Kn>>ct]==0)&&(Qn=Pe(Qn,Kn-Qn),an===void 0?an=Qn:(an+="\0",an+=Qn),Qn=Kn+H)}return hn(rt),an},toWireType:function(rt,Xe){typeof Xe!="string"&&Z("Cannot pass non-string to C++ string type "+ye);var Qt=et(Xe),an=xr(4+Qt+H);return B[an>>2]=Qt>>ct,We(Xe,an+4,Qt+H),rt!==null&&rt.push(hn,an),an},argPackAdvance:8,readValueFromPointer:cn,V:function(rt){hn(rt)}})},k:function(ee,H,ye,Pe,We,et){Rn[ee]={name:le(H),fa:dr(ye,Pe),W:dr(We,et),ia:[]}},h:function(ee,H,ye,Pe,We,et,yt,ct,rt,Xe){Rn[ee].ia.push({oa:le(H),ta:ye,ra:dr(Pe,We),sa:et,za:yt,ya:dr(ct,rt),Aa:Xe})},C:function(ee,H){H=le(H),Tn(ee,{va:!0,name:H,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(ee,H,ye,Pe,We){ee=$e[ee],H=Le(H),ye=Me(ye);var et=[];return B[Pe>>2]=ze(et),ee(H,ye,et,We)},t:function(ee,H,ye,Pe){ee=$e[ee],H=Le(H),ye=Me(ye),ee(H,ye,null,Pe)},g:ds,m:function(ee,H){var ye=It(ee,H),Pe=ye[0];H=Pe.name+"_$"+ye.slice(1).map(function(yt){return yt.name}).join("_")+"$";var We=At[H];if(We!==void 0)return We;var et=Array(ee-1);return We=Ze((yt,ct,rt,Xe)=>{for(var Qt=0,an=0;an>>=0,2147483648=ye;ye*=2){var Pe=H*(1+.2/ye);Pe=Math.min(Pe,ee+100663296);var We=Math;Pe=Math.max(ee,Pe),We=We.min.call(We,2147483648,Pe+(65536-Pe%65536)%65536);e:{try{p.grow(We-y.byteLength+65535>>>16),P();var et=1;break e}catch{}et=void 0}if(et)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(ee,H,ye,Pe){for(var We=0,et=0;et>2],ct=B[H+4>>2];H+=8;for(var rt=0;rt>2]=We,0}};(function(){function ee(We){n.asm=We.exports,p=n.asm.E,P(),N=n.asm.J,q.unshift(n.asm.F),he--,n.monitorRunDependencies&&n.monitorRunDependencies(he),he==0&&Ie&&(We=Ie,Ie=null,We())}function H(We){ee(We.instance)}function ye(We){return ge().then(function(et){return WebAssembly.instantiate(et,Pe)}).then(function(et){return et}).then(We,function(et){l("failed to asynchronously prepare wasm: "+et),re(et)})}var Pe={a:Ir};if(he++,n.monitorRunDependencies&&n.monitorRunDependencies(he),n.instantiateWasm)try{return n.instantiateWasm(Pe,ee)}catch(We){l("Module.instantiateWasm callback failed with error: "+We),i(We)}return function(){return c||typeof WebAssembly.instantiateStreaming!="function"||_e(De)||typeof fetch!="function"?ye(H):fetch(De,{credentials:"same-origin"}).then(function(We){return WebAssembly.instantiateStreaming(We,Pe).then(H,function(et){return l("wasm streaming compile failed: "+et),l("falling back to ArrayBuffer instantiation"),ye(H)})})}().catch(i),{}})(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.F).apply(null,arguments)};var fr=n.___getTypeName=function(){return(fr=n.___getTypeName=n.asm.G).apply(null,arguments)};n.__embind_initialize_bindings=function(){return(n.__embind_initialize_bindings=n.asm.H).apply(null,arguments)};var xr=n._malloc=function(){return(xr=n._malloc=n.asm.I).apply(null,arguments)},hn=n._free=function(){return(hn=n._free=n.asm.K).apply(null,arguments)};n.dynCall_jiji=function(){return(n.dynCall_jiji=n.asm.L).apply(null,arguments)};var zt;Ie=function ee(){zt||Ln(),zt||(Ie=ee)};function Ln(){function ee(){if(!zt&&(zt=!0,n.calledRun=!0,!d)){if(ve(q),r(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),n.postRun)for(typeof n.postRun=="function"&&(n.postRun=[n.postRun]);n.postRun.length;){var H=n.postRun.shift();L.unshift(H)}ve(L)}}if(!(01?a-1:0),c=1;cs?t.Node.createWithConfig(s):t.Node.createDefault()),e(t.Node.prototype,"free",function(){t.Node.destroy(this)}),e(t.Node.prototype,"freeRecursive",function(){for(let i=0,s=this.getChildCount();i1&&arguments[1]!==void 0?arguments[1]:NaN,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:$1.LTR;return i.call(this,s,o,a)}),{Config:t.Config,Node:t.Node,...CJ}}async function xJ(){return vJ(await EJ())}const IJ=Math.cos(45/180*Math.PI),DI=[new Tr,new Tr,new Tr,new Tr],sF=new ue;class DJ{constructor(e,n,r,i,s){Ke(this,"planes");Ke(this,"facePlane");Ke(this,"originalCenter");this.originalCenter=new ue(n,r,0).applyMatrix4(e),this.facePlane=new Tr(new ue(0,0,1),0).applyMatrix4(e);const o=i/2,a=s/2,l=r+a,c=n+o,p=-r+a,d=-n+o;this.planes=[new Tr(new ue(0,-1,0),p).applyMatrix4(e),new Tr(new ue(-1,0,0),d).applyMatrix4(e),new Tr(new ue(0,1,0),l).applyMatrix4(e),new Tr(new ue(1,0,0),c).applyMatrix4(e)]}min({planes:e}){for(let i=0;i<4;i++){const s=this.facePlane,o=e[i],a=s.normal.dot(o.normal);if(Math.abs(a)>.99)return this;const l=DI[i];if(Math.abs(a)<.01){l.copy(o);continue}l.normal.crossVectors(s.normal,o.normal).normalize().cross(s.normal).negate();const c=1-a*a,p=(s.constant-o.constant*a)/c,d=(o.constant-s.constant*a)/c;sF.copy(s.normal).multiplyScalar(p).addScaledVector(o.normal,d),l.constant=-sF.dot(l.normal)}let n=0;const r=this.planes[0].normal;for(;DI[n].normal.dot(r)>IJ;)break;for(let i=0;i<4;i++){const s=this.planes[i],o=(i+n)%4;DI[o].distanceToPoint(this.originalCenter){if(n.value==null)return!0;const i=e.value,s=t==null?void 0:t.value;if(s==null||i==null)return!1;const[o,a]=n.value,l=r.value;for(let d=0;d<4;d++){const[A,y]=SJ[d];oF[d].set(A*l*o,y*l*a,0).applyMatrix4(i)}const{planes:c}=s;let p;for(let d=0;d<4;d++){const A=c[d];p=!0;for(let y=0;y<4;y++){const C=oF[y];A.distanceToPoint(C)>=0&&(p=!1)}if(p)return!0}return!1})}function UC(t,{overflow:e,borderInset:n,size:r},i,s){return bn(()=>{const o=t.value;if(o==null||e.value===Op.Visible)return s==null?void 0:s.value;if(r.value==null||n.value==null)return;const[a,l]=r.value,[c,p,d,A]=n.value,y=i.value,C=new DJ(o,(p-A)*y/2,(c-d)*y/2,(a-A-p)*y,(l-c-d)*y);return(s==null?void 0:s.value)!=null&&C.min(s.value),C})}const KS=new Tr(new ue(-1,0,0),Number.MAX_SAFE_INTEGER),OE=new Float32Array(16);for(let t=0;t<4;t++)KS.normal.toArray(OE,t*4),OE[t*4+3]=KS.constant;function x0(t,e){const n=()=>{var i;return(i=t.object.current)==null?void 0:i.matrixWorld};return new Array(4).fill(void 0).map((i,s)=>new wJ(()=>{var o;return(o=e==null?void 0:e.value)==null?void 0:o.planes[s]},n))}const Mo=new Tr;class wJ{constructor(e,n){Ke(this,"getLocalPlane");Ke(this,"getGlobalMatrix");Ke(this,"isPlane",!0);this.getLocalPlane=e,this.getGlobalMatrix=n}get normal(){return this.computeInto(Mo),Mo.normal}get constant(){return this.computeInto(Mo),Mo.constant}computeInto(e){const n=this.getLocalPlane(),r=this.getGlobalMatrix();return n==null||r==null?e.copy(KS):e.copy(n).applyMatrix4(r)}set(e,n){return this}setComponents(e,n,r,i){return this}setFromNormalAndCoplanarPoint(e,n){return this}setFromCoplanarPoints(e,n,r){return this}clone(){return this.computeInto(new Tr)}copy(e){return this.computeInto(e),this}normalize(){return this}negate(){return this}distanceToPoint(e){return this.computeInto(Mo).distanceToPoint(e)}distanceToSphere(e){return this.computeInto(Mo).distanceToSphere(e)}projectPoint(e,n){return this.computeInto(Mo).projectPoint(e,n)}intersectLine(e,n){return this.computeInto(Mo).intersectLine(e,n)}intersectsLine(e){return this.computeInto(Mo).intersectsLine(e)}intersectsBox(e){return this.computeInto(Mo).intersectsBox(e)}intersectsSphere(e){return this.computeInto(Mo).intersectsSphere(e)}coplanarPoint(e){return this.computeInto(Mo).coplanarPoint(e)}applyMatrix4(e,n){return this}translate(e){return this}equals(e){return this.computeInto(Mo).equals(e)}isIntersectionLine(e){return this.computeInto(Mo).isIntersectionLine(e)}}function FL(t,e){for(;e>=t.length;){let n=0,r=0;if(t.length>0){const i=t[t.length-1];n+=i.offset+i.elements.length,r=Math.min(0,i.missingSpace),i.missingSpace-=r}t.push({add:[],missingSpace:r,offset:n,elements:[]})}}function BJ(t,e,n){FL(t,0);const r=t[t.length-1];r.missingSpace+=e-n}function bJ(t,e,n,r){FL(t,e);const i=t[e];return i.missingSpace+=1,i.missingSpace<=0?(r(n,i,i.elements.length),i.elements.push(n),!1):(i.add.push(n),!0)}function TJ(t,e,n,r,i,s,o,a){if(e>=t.length)throw new Error(`no bucket at index ${e}`);const l=t[e];l.missingSpace-=1;const c=l.add.indexOf(n);if(c!=-1)return l.add.splice(c,1),!1;if(r==null||r>=l.elements.length)throw new Error(`no element at index ${r}`);if(l.add.length>0){const y=l.add.shift();return l.elements[r]=y,i(y,l,r),!1}const p=l.offset,d=l.elements.length-1;if(d!=r){const y=p+d,C=p+r;a(C,y,y+1);const x=l.elements[d];l.elements[r]=x,o(x,r)}if(s(p+d),l.elements.length-=1,e0;){const y=t[e-1];y.missingSpace+=A.missingSpace,A=t[--e]}return t.length=e+1,!1}function MJ(t,e,n){let r=t.length,i=-1;for(let o=0;o0&&(i=o);const l=o===r-1;if(!l&&a.missingSpace===0)continue;const c=a.missingSpace<0;for(let p=o-1;p>=0;p--){const d=t[p];if(d.missingSpace===0)continue;const A=d.missingSpace<0;if(A&&(l||c)){aF(t,n,p,o,Math.abs(d.missingSpace));continue}if(!c&&!A)continue;const y=Math.min(Math.abs(d.missingSpace),Math.abs(a.missingSpace));c?_J(t,n,p,o,y):aF(t,n,p,o,y)}}const s=t[i];for(let o=i+1;ot.setPositionType(cu(FJ,e,1)),positionTop:(t,e)=>t.setPosition(1,e??NaN),positionLeft:(t,e)=>t.setPosition(0,e??NaN),positionRight:(t,e)=>t.setPosition(2,e??NaN),positionBottom:(t,e)=>t.setPosition(3,e??NaN),alignContent:(t,e)=>t.setAlignContent(cu(SI,e,4)),alignItems:(t,e)=>t.setAlignItems(cu(SI,e,4)),alignSelf:(t,e)=>t.setAlignSelf(cu(SI,e,0)),flexDirection:(t,e)=>t.setFlexDirection(cu(PJ,e,2)),flexWrap:(t,e)=>t.setFlexWrap(cu(QJ,e,0)),justifyContent:(t,e)=>t.setJustifyContent(cu(kJ,e,0)),marginTop:(t,e)=>t.setMargin(1,e??NaN),marginLeft:(t,e)=>t.setMargin(0,e??NaN),marginRight:(t,e)=>t.setMargin(2,e??NaN),marginBottom:(t,e)=>t.setMargin(3,e??NaN),flexBasis:(t,e)=>t.setFlexBasis(e??NaN),flexGrow:(t,e)=>t.setFlexGrow(e??0),flexShrink:(t,e)=>t.setFlexShrink(e??1),width:(t,e)=>t.setWidth(e??NaN),height:(t,e)=>t.setHeight(e??NaN),minWidth:(t,e)=>t.setMinWidth(e??NaN),minHeight:(t,e)=>t.setMinHeight(e??NaN),maxWidth:(t,e)=>t.setMaxWidth(e??NaN),maxHeight:(t,e)=>t.setMaxHeight(e??NaN),aspectRatio:(t,e)=>t.setAspectRatio(e??NaN),borderTopWidth:(t,e)=>t.setBorder(1,e??NaN),borderLeftWidth:(t,e)=>t.setBorder(0,e??NaN),borderRightWidth:(t,e)=>t.setBorder(2,e??NaN),borderBottomWidth:(t,e)=>t.setBorder(3,e??NaN),overflow:(t,e)=>t.setOverflow(cu(RJ,e,0)),display:(t,e)=>t.setDisplay(cu(LJ,e,0)),paddingTop:(t,e)=>t.setPadding(1,e??NaN),paddingLeft:(t,e)=>t.setPadding(0,e??NaN),paddingRight:(t,e)=>t.setPadding(2,e??NaN),paddingBottom:(t,e)=>t.setPadding(3,e??NaN),gapRow:(t,e)=>t.setGap(1,e??NaN),gapColumn:(t,e)=>t.setGap(0,e??NaN)},qg=100;function NJ(t){const e=t.create();return e.setUseWebDefaults(!0),e.setPointScaleFactor(qg),e.setExperimentalFeatureEnabled(_L.WebFlexBasis,!0),e}const tE=Yt(void 0);xJ().then(({Node:t,Config:e})=>{const n=NJ(e);tE.value=()=>t.create(n)}).catch(console.error);const OJ=()=>{var t;return(t=tE.value)==null?void 0:t.call(tE)};function UJ(t){return t==="measureFunc"?!0:t in PL}function ku(){const t=Yt([!1,!1]);return{size:Yt(void 0),relativeCenter:Yt(void 0),borderInset:Yt(void 0),overflow:Yt(Op.Visible),displayed:Yt(!1),scrollable:t,paddingInset:Yt(void 0),maxScrollPosition:Yt([void 0,void 0])}}class QL{constructor(e,n,r,i,s,o){Ke(this,"state");Ke(this,"propertiesSignal");Ke(this,"requestCalculateLayout");Ke(this,"object");Ke(this,"objectVisibileDefault");Ke(this,"children",[]);Ke(this,"yogaNode");Ke(this,"layoutChangeListeners",new Set);Ke(this,"customLayouting");Ke(this,"active",Yt(!1));Ke(this,"objectVisible",!1);this.state=e,this.propertiesSignal=n,this.requestCalculateLayout=r,this.object=i,this.objectVisibileDefault=s,o.push(sn(()=>{const a=OJ();if(a!=null)return this.yogaNode=a,this.active.value=!0,this.updateMeasureFunction(),()=>{var l,c,p;(c=(l=this.yogaNode)==null?void 0:l.getParent())==null||c.removeChild(this.yogaNode),(p=this.yogaNode)==null||p.free()}})),oB(n,this.active,UJ,(a,l)=>{PL[a](this.yogaNode,l),this.requestCalculateLayout()},o)}setCustomLayouting(e){this.customLayouting=e,this.updateMeasureFunction()}updateMeasureFunction(){this.customLayouting==null||!this.active.value||(GJ(this.yogaNode,this.customLayouting.measure),this.requestCalculateLayout())}calculateLayout(){this.yogaNode!=null&&(this.commit(this.yogaNode.getFlexDirection()),this.yogaNode.calculateLayout(void 0,void 0),xL(()=>this.updateMeasurements(!0,void 0,void 0)))}addChild(e){this.children.push(e),this.requestCalculateLayout()}removeChild(e){const n=this.children.indexOf(e);n!==-1&&(this.children.splice(n,1),this.requestCalculateLayout())}commit(e){var c;if(this.yogaNode==null)throw new Error("commit cannot be called without a yoga node");const n=e===jf.Column||e===jf.ColumnReverse,r=this.propertiesSignal.peek();if(this.customLayouting!=null&&pm(()=>r.read(n?"minHeight":"minWidth",void 0))===void 0&&this.yogaNode[n?"setMinHeight":"setMinWidth"](n?this.customLayouting.minHeight:this.customLayouting.minWidth),pm(()=>r.read("flexShrink",void 0))==null){const p=pm(()=>r.read("height",void 0))!=null;this.yogaNode.setFlexShrink(p&&n?0:void 0)}let i;this.children.sort((p,d)=>{var D,I;if(i??(i=(I=(D=p.object.current)==null?void 0:D.parent)==null?void 0:I.children),i==null)return 0;const A=p.object.current,y=d.object.current;if(A==null||y==null)return 0;const C=i.indexOf(A);if(C===-1)throw new Error("parent mismatch");const x=i.indexOf(y);if(x===-1)throw new Error("parent mismatch");return C-x});let s=0,o=this.yogaNode.getChild(s),a=this.children[s];for(;a!=null||o!=null;){if(a!=null&&o!=null&&HJ(o,uF(a.yogaNode))){a=this.children[++s],o=this.yogaNode.getChild(s);continue}if(o!=null&&this.yogaNode.removeChild(o),a!=null){const p=uF(a.yogaNode);(c=p.getParent())==null||c.removeChild(p),this.yogaNode.insertChild(p,s),a=this.children[++s]}o=this.yogaNode.getChild(s)}const l=this.children.length;for(let p=0;pp.objectVisible),this.object.current!=null&&(this.object.current.visible=this.objectVisible)}updateMeasurements(e,n,r){if(this.yogaNode==null)throw new Error("update measurements cannot be called without a yoga node");this.state.overflow.value=this.yogaNode.getOverflow(),e&&(e=this.yogaNode.getDisplay()===qS.Flex),this.state.displayed.value=e;const i=this.yogaNode.getComputedWidth(),s=this.yogaNode.getComputedHeight();Df(this.state.size,i,s),n??(n=i),r??(r=s);const o=this.yogaNode.getComputedLeft(),a=this.yogaNode.getComputedTop(),l=o+i*.5-n*.5,c=-(a+s*.5-r*.5);Df(this.state.relativeCenter,l,c);const p=this.yogaNode.getComputedPadding(Ss.Top),d=this.yogaNode.getComputedPadding(Ss.Left),A=this.yogaNode.getComputedPadding(Ss.Right),y=this.yogaNode.getComputedPadding(Ss.Bottom);lF(this.state.paddingInset,p,A,y,d);const C=this.yogaNode.getComputedBorder(Ss.Top),x=this.yogaNode.getComputedBorder(Ss.Right),D=this.yogaNode.getComputedBorder(Ss.Bottom),I=this.yogaNode.getComputedBorder(Ss.Left);lF(this.state.borderInset,C,x,D,I);for(const P of this.layoutChangeListeners)P();const w=this.children.length;let B=0,_=0;for(let P=0;P.5,z=q>.5;Df(this.state.maxScrollPosition,L?U:void 0,z?q:void 0),Df(this.state.scrollable,L,z)}else Df(this.state.maxScrollPosition,void 0,void 0),Df(this.state.scrollable,!1,!1);const F=this.state.overflow.value===Op.Visible;return[o+Math.max(i,F?B:0),a+Math.max(s,F?_:0)]}addLayoutChangeListener(e){return this.layoutChangeListeners.add(e),()=>void this.layoutChangeListeners.delete(e)}}function GJ(t,e){if(e==null){t.setMeasureFunc(null);return}t.setMeasureFunc((n,r,i,s)=>{const o=e(n,r,i,s);return{width:Math.ceil(o.width*qg+1)/qg,height:Math.ceil(o.height*qg+1)/qg}}),t.markDirty()}function Df(t,e,n){if(t.value!=null){const[r,i]=t.value;if(r===e&&i===n)return}t.value=[e,n]}function lF(t,e,n,r,i){if(t.value!=null){const[s,o,a,l]=t.value;if(s==e&&o==n&&a==r&&l==i)return}t.value=[e,n,r,i]}function uF(t){if(t==null)throw new Error("commit cannot be called with a children that miss a yoga node");return t}function HJ(t,e){return t.M.O===e.M.O}function zJ(t,e,n,r,i){let s=!1;if(OC(e,r,n,a=>{"active"in a&&(s=!0)}),!s&&(e==null?void 0:e.onActiveChange)==null&&(n==null?void 0:n.onActiveChange)==null){i.value.length=0;return}const o=({pointerId:a})=>{var l,c;i.value=i.value.filter(p=>p!=a),!(i.value.length>0)&&((l=n==null?void 0:n.onActiveChange)==null||l.call(n,!1),(c=e==null?void 0:e.onActiveChange)==null||c.call(e,!1))};Up("onPointerDown",t,({pointerId:a})=>{var l,c;i.value=[a,...i.value],i.value.length==1&&((l=n==null?void 0:n.onActiveChange)==null||l.call(n,!0),(c=e==null?void 0:e.onActiveChange)==null||c.call(e,!0))}),Up("onPointerUp",t,o),Up("onPointerLeave",t,o)}function Ru(t){return{active:v0(()=>t.value.length>0)}}function WJ(t){t==null||t.traverse(e=>{e instanceof gr&&(e.material instanceof Ni&&e.material.dispose(),e.geometry instanceof Hn&&e.geometry.dispose())})}function Ih(t,e){return bn(()=>{const n=e.value,r=t.value;if(!(n==null||r==null))return r.clone().multiply(n)})}function Lu(t,e,n){return bn(()=>t.displayed.value&&(e==null||!(e!=null&&e.value))&&n.value.read("visibility","visible")==="visible")}function kL(t,e,n,r,i,...s){r.push(o=>{if(!(i instanceof wi)){let a=!1;return e(i,...s).then(l=>a?void 0:t.value=l),o.push(()=>a=!0),o}return o.push(sn(()=>{let a=!1;return e(i.value,...s).then(l=>a?void 0:t.value=l).catch(console.error),()=>a=!0})),n!=null&&o.push(()=>{const{value:a}=t;a!=null&&n(a)}),o})}function Dh(t,e,n,r,i,s,o){o.push(a=>{const l=new QL(e,r,n.root.requestCalculateLayout,i,s,a);return t!=null&&(t.value=l),a.push(sn(()=>{const c=n.node.value;if(c!=null)return c.addChild(l),()=>c.removeChild(l)})),a})}const cF=new Map,GC={keepAspectRatio:(t,e)=>{let n=cF.get(t);n==null&&cF.set(t,n=bn(()=>bs(t)===!1?null:void 0)),e.add("aspectRatio",n)}};function Nu(t,e,n,r,i,s,o){return bn(()=>{const a={};return jJ(a,s==null?void 0:s.value),SX(a,t.value,e.value,n.value,r,o),zJ(a,t.value,e.value,n.value,i),a})}function jJ(t,e){for(const n in e)Up(n,t,e[n])}function Up(t,e,n){if(n==null)return;const r=e[t];if(r==null){e[t]=n;return}e[t]=i=>{r(i),!("stopped"in i&&i.stopped)&&n(i)}}function Ou(t,e,n,r,i,s){return bn(()=>{const o=new lJ(i);return s==null||s(o),o.addAll(t.value,e.value,n.value,r),o})}const hF=new Xt;function RL(t,e,n,r){const i=nr(t,"color",void 0),s=nr(t,"opacity",1);n.push(()=>sn(()=>{var a;let o;Array.isArray(i.value)?o=hF.setRGB(...i.value):i.value!=null&&(o=hF.set(i.value)),(a=bs(e))==null||a.traverse(l=>{if(!(l instanceof gr))return;l.renderOrder=r.renderOrder.value;const c=l.material;c.color.copy(o??l.userData.color),c.opacity=s.value,c.depthTest=r.depthTest.value})}))}function Ul(t,e,n,r,i,s,o,a,l,c,p,d){return d.push(sn(()=>{if(e.value==null)return;const A=[],y=r.getGroup(e.value.majorIndex,n==null?void 0:n.value);return new JJ(t,y,e.value.minorIndex,i,s,o,a,l,c,p,A),()=>sa(A)})),d}const v1=new En,VJ=new En;class JJ{constructor(e,n,r,i,s,o,a,l,c,p,d){Ke(this,"group");Ke(this,"minorIndex");Ke(this,"matrix");Ke(this,"size");Ke(this,"offset");Ke(this,"borderInset");Ke(this,"clippingRect");Ke(this,"materialConfig");Ke(this,"indexInBucket");Ke(this,"bucket");Ke(this,"unsubscribeList",[]);Ke(this,"insertedIntoGroup",!1);Ke(this,"active",Yt(!1));this.group=n,this.minorIndex=r,this.matrix=i,this.size=s,this.offset=o,this.borderInset=a,this.clippingRect=l,this.materialConfig=p;const A=p.setters;oB(e,this.active,p.hasProperty,(C,x)=>{const D=this.getIndexInBuffer();if(D==null)return;const{instanceData:I,instanceDataOnUpdate:w,root:B}=this.group;A[C](I.array,I.itemSize*D,x,s,w),B.requestRender()},d);const y=p.computedIsVisibile(e,a,s,c);d.push(sn(()=>{if(y.value){this.requestShow();return}this.hide()}),()=>this.hide())}setIndexInBucket(e){this.indexInBucket=e}getIndexInBuffer(){if(!(this.bucket==null||this.indexInBucket==null))return this.bucket.offset+this.indexInBucket}activate(e,n){this.bucket=e,this.indexInBucket=n,this.active.value=!0,this.unsubscribeList.push(sn(()=>{if(this.matrix.value==null||this.size.value==null)return;const r=this.getIndexInBuffer();if(r==null)return;const i=r*16,[s,o]=this.size.value,a=this.group.pixelSize.value;if(v1.makeScale(s*a,o*a,1),this.offset!=null){const[p,d]=this.offset.value;v1.premultiply(VJ.makeTranslation(p*a,d*a,0))}v1.premultiply(this.matrix.value);const{instanceMatrix:l,root:c}=this.group;v1.toArray(l.array,i),l.addUpdateRange(i,16),l.needsUpdate=!0,c.requestRender()}),sn(()=>{const r=this.getIndexInBuffer();if(r==null||this.size.value==null)return;const[i,s]=this.size.value,{instanceData:o,root:a}=this.group,{array:l}=o,c=r*16+13;l[c]=i,l[c+1]=s,o.addUpdateRange(c,2),o.needsUpdate=!0,a.requestRender()}),sn(()=>{const r=this.getIndexInBuffer();if(r==null||this.borderInset.value==null)return;const{instanceData:i,root:s}=this.group,o=r*16+0;i.array.set(this.borderInset.value,o),i.addUpdateRange(o,4),i.needsUpdate=!0,s.requestRender()}),sn(()=>{var l;const r=this.getIndexInBuffer();if(r==null)return;const{instanceClipping:i,root:s}=this.group,o=r*16,a=(l=this.clippingRect)==null?void 0:l.value;a!=null?a.toArray(i.array,o):i.array.set(OE,o),i.addUpdateRange(o,16),i.needsUpdate=!0,s.requestRender()}))}requestShow(){this.insertedIntoGroup||(this.insertedIntoGroup=!0,this.group.insert(this.minorIndex,this))}hide(){if(!this.insertedIntoGroup)return;this.active.value=!1,this.group.delete(this.minorIndex,this.indexInBucket,this),this.insertedIntoGroup=!1,this.bucket=void 0,this.indexInBucket=void 0;const e=this.unsubscribeList.length;for(let n=0;no(l,c,p??a,d,A)}const i=new Float32Array(16);return r0(i,4,n.backgroundColor,void 0),r0(i,8,n.borderColor,void 0),i[11]=n.borderBend,i[12]=n.borderOpacity,i[15]=n.backgroundOpacity,{hasProperty:s=>s in r,defaultData:i,setters:r,computedIsVisibile:(s,o,a,l)=>bn(()=>{if(o.value==null||a.value==null)return!0;const c=t.borderOpacity==null?n.borderOpacity:s.value.read(t.borderOpacity,n.borderOpacity),p=t.backgroundOpacity==null?n.backgroundOpacity:s.value.read(t.backgroundOpacity,n.backgroundOpacity),d=t.backgroundColor==null?n.backgroundColor:s.value.read(t.backgroundColor,n.backgroundColor),A=o.value.some(D=>D>0)&&c>0,[y,C]=a.value;return!(y>0&&C>0&&(p===-1||p>0)&&d!=NL)&&!A?!1:l.value})}}const qJ={backgroundColor:(t,e,n,r,i)=>r0(t,e+4,n,i),borderBottomLeftRadius:(t,e,n,{value:r},i)=>r!=null&&x1(t,e+7,0,n,r[1],i),borderBottomRightRadius:(t,e,n,{value:r},i)=>r!=null&&x1(t,e+7,1,n,r[1],i),borderTopRightRadius:(t,e,n,{value:r},i)=>r!=null&&x1(t,e+7,2,n,r[1],i),borderTopLeftRadius:(t,e,n,{value:r},i)=>r!=null&&x1(t,e+7,3,n,r[1],i),borderColor:(t,e,n,r,i)=>r0(t,e+8,n,i),borderBend:(t,e,n,r,i)=>BI(t,e+11,n,i),borderOpacity:(t,e,n,r,i)=>BI(t,e+12,n,i),backgroundOpacity:(t,e,n,r,i)=>BI(t,e+15,n,i)};function x1(t,e,n,r,i,s){XJ(t,e,n,r,i),s==null||s(e,1)}function BI(t,e,n,r){t[e]=n,r==null||r(e,1)}const KJ=new Xt;function r0(t,e,n,r){Array.isArray(n)?t.set(n,e):KJ.set(n).toArray(t,e),r==null||r(e,3)}function UL(t,e){const n=new t;n.defines==null&&(n.defines={}),n.side=Sa,n.clipShadows=!0,n.transparent=!0,n.toneMapped=!1,n.depthWrite=!1,n.shadowSide=Sa,n.defines.USE_UV="",n.defines.USE_TANGENT="";const r=n.onBeforeCompile;return n.onBeforeCompile=(i,s)=>{r.call(n,i,s),e.type==="normal"&&(i.uniforms.data={value:e.data}),eY(i,e.type==="instanced")},n}class GL extends gC{constructor(n){super();Ke(this,"info");this.info=n,this.defines==null&&(this.defines={}),this.defines.USE_UV="",this.clipShadows=!0}onBeforeCompile(n,r){super.onBeforeCompile(n,r),this.info.type==="normal"&&(n.uniforms.data={value:this.info.data}),zL(n,this.info.type==="instanced")}}class HL extends AC{constructor(n){super({depthPacking:Iw});Ke(this,"info");this.info=n,this.defines==null&&(this.defines={}),this.defines.USE_UV="",this.clipShadows=!0}onBeforeCompile(n,r){super.onBeforeCompile(n,r),this.info.type==="normal"&&(n.uniforms.data={value:this.info.data}),zL(n,this.info.type==="instanced")}}const ZJ=new HL({type:"instanced"}),$J=new GL({type:"instanced"});function zL(t,e){WL(t,e),t.fragmentShader=t.fragmentShader.replace("#include ",`#include ${jL(e,void 0)} `)}function WL(t,e){t.vertexShader=t.vertexShader.replace("#include ",` #include out vec4 borderRadius; @@ -4058,7 +4058,7 @@ No matching component was found for: `||d==null)&&(o.charLength=s-a+1,o.nonWhitespaceCharLength=o.charLength,o.nonWhitespaceWidth=l,o.whitespacesBetween=c)}};function pB(t,e){const n=t.length;for(;t[e]===" "&&e{for(const o of i)o(s);FI.set(t,s)}).catch(console.error)}async function kY(t,e){const n=await(await fetch(t)).json();if(n.pages.length!==1)throw new Error("only supporting exactly 1 page");const r=await PY.loadAsync(new URL(n.pages[0],new URL(t,window.location.href)).href);return r.anisotropy=e.capabilities.getMaxAnisotropy(),r.flipY=!1,new OY(n,r)}const e2={thin:100,"extra-light":200,light:300,normal:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800,black:900,"extra-black":950},RY={inter:{light:"https://pmndrs.github.io/uikit/fonts/inter-light.json",normal:"https://pmndrs.github.io/uikit/fonts/inter-normal.json",medium:"https://pmndrs.github.io/uikit/fonts/inter-medium.json","semi-bold":"https://pmndrs.github.io/uikit/fonts/inter-semi-bold.json",bold:"https://pmndrs.github.io/uikit/fonts/inter-bold.json"}};function n4(t,e,n,r){const i=Yt(void 0),s=nr(t,"fontFamily",void 0),o=nr(t,"fontWeight","normal");return r.push(()=>sn(()=>{const a=(e==null?void 0:e.value)??RY;let l=s.value;l==null&&(l=Object.keys(a)[0]);const c=LY(a[l],typeof o.value=="string"?e2[o.value]:o.value);let p=!1;return QY(c,n,d=>p?void 0:i.value=d),()=>p=!0})),i}function LY(t,e){let n=1/0,r;for(const i in t){const s=Math.abs(e-NY(i));if(s===0)return t[i];s{const c=e.value;if(c==null)return;const p=n.value,d={font:c,fontSize:s.value,letterSpacing:o.value,lineHeight:a.value,text:Array.isArray(p)?p.map(C=>bs(C)).join(""):bs(p),wordBreak:l.value};r.current=d;const{width:A}=PI(d,0),{height:y}=PI(d,void 0);return{minHeight:y,minWidth:A,measure:(C,x)=>PI(d,x===eE.Undefined?void 0:C)}})}const r4={"keep-all":_Y,"break-all":MY,"break-word":FY},b1={};function PI(t,e){const n=r4[t.wordBreak],r=t.text;let i=0,s=0,o=0;for(;o({font:t.value}))}class WY{constructor(e,n,r,i,s){Ke(this,"group");Ke(this,"baseMatrix");Ke(this,"color");Ke(this,"opacity");Ke(this,"clippingRect");Ke(this,"index");Ke(this,"hidden",!0);Ke(this,"glyphInfo");Ke(this,"x",0);Ke(this,"y",0);Ke(this,"fontSize",0);Ke(this,"pixelSize",0);this.group=e,this.baseMatrix=n,this.color=r,this.opacity=i,this.clippingRect=s}getX(e){return this.glyphInfo==null?this.x:this.x+e*this.glyphInfo.width*this.fontSize}show(){this.hidden&&(this.hidden=!1,this.group.requestActivate(this))}hide(){this.hidden||(this.hidden=!0,this.group.delete(this))}activate(e){this.index=e,this.writeUpdatedMatrix(),this.writeUV(),this.updateColor(this.color),this.updateOpacity(this.opacity),this.updateClippingRect(this.clippingRect)}setIndex(e){this.index=e}updateClippingRect(e){if(this.clippingRect=e,this.index==null)return;const n=this.index*16,{instanceClipping:r,root:i}=this.group;this.clippingRect==null?r.set(OE,n):this.clippingRect.toArray(r.array,n),r.addUpdateRange(n,16),r.needsUpdate=!0,i.requestRender()}updateColor(e){if(this.color=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=n.itemSize*this.index;r0(n.array,i,e,void 0),n.addUpdateRange(i,3),n.needsUpdate=!0,r.requestRender()}updateOpacity(e){if(this.opacity=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=this.index*4+3;n.array[i]=e,n.addUpdateRange(i,1),n.needsUpdate=!0,r.requestRender()}updateGlyphAndTransformation(e,n,r,i,s){this.glyphInfo===e&&this.x===n&&this.y===r&&this.fontSize===i&&this.pixelSize===s||(this.glyphInfo!=e&&(this.glyphInfo=e,this.writeUV()),this.x=n,this.y=r,this.fontSize=i,this.pixelSize=s,this.writeUpdatedMatrix())}updateBaseMatrix(e){this.baseMatrix!==e&&(this.baseMatrix=e,this.writeUpdatedMatrix())}writeUV(){if(this.index==null||this.glyphInfo==null)return;const e=this.index*4,{instanceUV:n,root:r}=this.group;UY(this.glyphInfo,n.array,e),n.addUpdateRange(e,4),n.needsUpdate=!0,r.requestRender()}writeUpdatedMatrix(){if(this.index==null||this.glyphInfo==null||this.baseMatrix==null)return;const e=this.index*16,{instanceMatrix:n,root:r}=this.group;n.addUpdateRange(e,16),DF.makeTranslation(this.x*this.pixelSize,this.y*this.pixelSize,0).multiply(zY.makeScale(this.fontSize*this.glyphInfo.width*this.pixelSize,this.fontSize*this.glyphInfo.height*this.pixelSize,1)).premultiply(this.baseMatrix),DF.toArray(n.array,e),n.needsUpdate=!0,r.requestRender()}}const jY="middle",VY="left";function s4(t,e,n,r,i,s,o,a,l,c,p,d,A,y,C,x){let D={current:void 0};const I=GY(t,l,e,D,x),w=nr(t,"verticalAlign",jY),B=nr(t,"textAlign",VY),_=nr(t,"color",0),F=nr(t,"opacity",1),P=Yt(void 0);return C.push(()=>sn(()=>{var N;return(N=r.value)==null?void 0:N.addLayoutChangeListener(()=>{const U=D.current,{size:{value:q},paddingInset:{value:L},borderInset:{value:z}}=i;if(U==null||q==null||L==null||z==null)return;const[he,Ie]=q,[re,_e,De,Ge]=L,[ie,ge,ve,Ae]=z,Ue=he-_e-Ge-ge-Ae,we=Ie-re-De-ie-ve;P.value=HY(U,Ue,we)})}),()=>sn(()=>{const N=l.value;if(N==null||a.value==null)return;const U=new YY(c.getGroup(a.value.majorIndex,N),B,w,_,F,P,n,s,o,p,d,A);return y!=null&&(y.current=U),()=>U.destroy()})),I}const JY=[];class YY{constructor(e,n,r,i,s,o,a,l,c,p,d,A){Ke(this,"group");Ke(this,"textAlign");Ke(this,"verticalAlign");Ke(this,"color");Ke(this,"opacity");Ke(this,"layoutSignal");Ke(this,"matrix");Ke(this,"parentClippingRect");Ke(this,"selectionRange");Ke(this,"selectionBoxes");Ke(this,"caretPosition");Ke(this,"glyphLines",[]);Ke(this,"lastLayout");Ke(this,"unsubscribeInitialList",[]);Ke(this,"unsubscribeShowList",[]);this.group=e,this.textAlign=n,this.verticalAlign=r,this.color=i,this.opacity=s,this.layoutSignal=o,this.matrix=a,this.parentClippingRect=c,this.selectionRange=p,this.selectionBoxes=d,this.caretPosition=A,this.unsubscribeInitialList=[sn(()=>{if(!l.value||s.value<.01){this.hide();return}this.show()}),sn(()=>this.updateSelectionBoxes(this.lastLayout,p==null?void 0:p.value,r.peek(),n.peek()))]}getCharIndex(e,n){const r=this.lastLayout;if(r==null)return 0;n-=-T1(r,this.verticalAlign.peek());const i=Math.floor(n/-B1(r.lineHeight,r.fontSize)),s=r.lines;if(i<0||s.length===0)return 0;if(i>=s.length){const p=s[s.length-1];return p.charIndexOffset+p.charLength+1}const o=s[i],a=r.font.getGlyphInfo(" ").xadvance*r.fontSize,l=this.glyphLines[i];let c=l.length;for(let p=0;p=d.charIndexOffset+d.charLength)continue;const A=this.glyphLines[p][Math.max(r-d.charIndexOffset,0)];return{lineIndex:p,x:this.getGlyphX(A,i?0:1,s)}}const l=e[a-1];if(l.charLength===0)return{lineIndex:a-1,x:SF(n,l.nonWhitespaceWidth,o)-n/2};const c=this.glyphLines[a-1][l.charLength-1];return{lineIndex:a-1,x:this.getGlyphX(c,1,s)}}getGlyphX(e,n,r){return typeof e=="number"?e+n*r:e.getX(n)}show(){this.unsubscribeShowList.length>0||(fp(this.glyphLines,e=>e.show()),this.unsubscribeShowList.push(sn(()=>{const e=this.matrix.value;e!=null&&fp(this.glyphLines,n=>n.updateBaseMatrix(e))}),sn(()=>{var n;const e=(n=this.parentClippingRect)==null?void 0:n.value;fp(this.glyphLines,r=>r.updateClippingRect(e))}),sn(()=>{const e=this.color.value;fp(this.glyphLines,n=>n.updateColor(e))}),sn(()=>{const e=this.opacity.value;fp(this.glyphLines,n=>n.updateOpacity(e))}),sn(()=>{var A,y;const e=this.layoutSignal.value;if(e==null)return;const{text:n,font:r,lines:i,letterSpacing:s=0,fontSize:o=16,lineHeight:a=1.2,availableWidth:l}=e;let c=T1(e,this.verticalAlign.value)-e.availableHeight/2;const p=i.length,d=this.group.pixelSize.value;for(let C=0;Cw+I){P=Ie.id;const De=F+xF(r,o,Ie,P);typeof N[z]=="number"?N[z]=F:N.splice(z,0,De),F+=_+i0(o,Ie,s);continue}let re=N[z];for(;zC.hide(),p),this.glyphLines.length=p,this.lastLayout=e,this.updateSelectionBoxes(e,(y=this.selectionRange)==null?void 0:y.peek(),this.verticalAlign.value,this.textAlign.value)})))}hide(){const e=this.unsubscribeShowList.length;if(e!==0){for(let n=0;nn.hide())}}destroy(){this.hide(),this.glyphLines.length=0;const e=this.unsubscribeInitialList.length;for(let n=0;nUl(p,w,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,od(),P));const B=n4(p,n,t.root.renderer,c),_=Ts(void 0,Yi.Text,i4(B),w),F=s4(p,e,C,d,A,D,t.clippingRect,_,B,t.root.gylphGroupManager,void 0,void 0,void 0,void 0,c,"break-word");return c.push(()=>sn(()=>{var P;return(P=d.value)==null?void 0:P.setCustomLayouting(F.value)})),Fu(r,i,A.size,c),vh(r,i,x,c),Object.assign(A,{isClipped:x,mergedProperties:p,interactionPanel:ad(w,t.root,t.clippingRect,A.size,c),handlers:Nu(r,i,s,a,l),initializers:c})}const qY=ri;class FA extends xo{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,n,r,i){const s=this,o=new Nl(s.manager);o.setPath(s.path),o.setRequestHeader(s.requestHeader),o.setWithCredentials(s.withCredentials),o.load(e,function(a){try{n(s.parse(a))}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},r,i)}parse(e){const n=this;function r(K,oe){if(K.nodeType!==1)return;const Y=_(K);let Z=!1,Le=null;switch(K.nodeName){case"svg":oe=C(K,oe);break;case"style":s(K);break;case"g":oe=C(K,oe);break;case"path":oe=C(K,oe),K.hasAttribute("d")&&(Le=i(K));break;case"rect":oe=C(K,oe),Le=l(K);break;case"polygon":oe=C(K,oe),Le=c(K);break;case"polyline":oe=C(K,oe),Le=p(K);break;case"circle":oe=C(K,oe),Le=d(K);break;case"ellipse":oe=C(K,oe),Le=A(K);break;case"line":oe=C(K,oe),Le=y(K);break;case"defs":Z=!0;break;case"use":oe=C(K,oe);const je=(K.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),ae=K.viewportElement.getElementById(je);ae?r(ae,oe):console.warn("SVGLoader: 'use node' references non-existent node id: "+je);break}Le&&(oe.fill!==void 0&&oe.fill!=="none"&&Le.color.setStyle(oe.fill,qY),P(Le,Ae),he.push(Le),Le.userData={node:K,style:oe});const ze=K.childNodes;for(let Fe=0;Fe0?Ae.copy(re[re.length-1]):Ae.identity())}function i(K){const oe=new kc,Y=new st,Z=new st,Le=new st;let ze=!0,Fe=!1;const je=K.getAttribute("d");if(je===""||je==="none")return null;const ae=je.match(/[a-df-z][^a-df-z]*/ig);for(let Ne=0,be=ae.length;Ne0&&(Y.copy(Le),oe.currentPath.currentPoint.copy(Y),ze=!0);break;default:console.warn(Ve)}Fe=!1}return oe}function s(K){if(!(!K.sheet||!K.sheet.cssRules||!K.sheet.cssRules.length))for(let oe=0;oeLe.trim());for(let Le=0;LeFe!==""));Ie[Z[Le]]=Object.assign(Ie[Z[Le]]||{},ze)}}}function o(K,oe,Y,Z,Le,ze,Fe,je){if(oe==0||Y==0){K.lineTo(je.x,je.y);return}Z=Z*Math.PI/180,oe=Math.abs(oe),Y=Math.abs(Y);const ae=(Fe.x-je.x)/2,Ne=(Fe.y-je.y)/2,be=Math.cos(Z)*ae+Math.sin(Z)*Ne,Ve=-Math.sin(Z)*ae+Math.cos(Z)*Ne;let He=oe*oe,lt=Y*Y;const Se=be*be,W=Ve*Ve,$=Se/He+W/lt;if($>1){const mt=Math.sqrt($);oe=mt*oe,Y=mt*Y,He=oe*oe,lt=Y*Y}const Oe=He*W+lt*Se,ft=(He*lt-Oe)/Oe;let pt=Math.sqrt(Math.max(0,ft));Le===ze&&(pt=-pt);const ut=pt*oe*Ve/Y,Ut=-pt*Y*be/oe,_t=Math.cos(Z)*ut-Math.sin(Z)*Ut+(Fe.x+je.x)/2,Ot=Math.sin(Z)*ut+Math.cos(Z)*Ut+(Fe.y+je.y)/2,Ft=a(1,0,(be-ut)/oe,(Ve-Ut)/Y),Pt=a((be-ut)/oe,(Ve-Ut)/Y,(-be-ut)/oe,(-Ve-Ut)/Y)%(Math.PI*2);K.currentPath.absellipse(_t,Ot,oe,Y,Ft,Ft+Pt,ze===0,Z)}function a(K,oe,Y,Z){const Le=K*Y+oe*Z,ze=Math.sqrt(K*K+oe*oe)*Math.sqrt(Y*Y+Z*Z);let Fe=Math.acos(Math.max(-1,Math.min(1,Le/ze)));return K*Z-oe*Y<0&&(Fe=-Fe),Fe}function l(K){const oe=B(K.getAttribute("x")||0),Y=B(K.getAttribute("y")||0),Z=B(K.getAttribute("rx")||K.getAttribute("ry")||0),Le=B(K.getAttribute("ry")||K.getAttribute("rx")||0),ze=B(K.getAttribute("width")),Fe=B(K.getAttribute("height")),je=1-.551915024494,ae=new kc;return ae.moveTo(oe+Z,Y),ae.lineTo(oe+ze-Z,Y),(Z!==0||Le!==0)&&ae.bezierCurveTo(oe+ze-Z*je,Y,oe+ze,Y+Le*je,oe+ze,Y+Le),ae.lineTo(oe+ze,Y+Fe-Le),(Z!==0||Le!==0)&&ae.bezierCurveTo(oe+ze,Y+Fe-Le*je,oe+ze-Z*je,Y+Fe,oe+ze-Z,Y+Fe),ae.lineTo(oe+Z,Y+Fe),(Z!==0||Le!==0)&&ae.bezierCurveTo(oe+Z*je,Y+Fe,oe,Y+Fe-Le*je,oe,Y+Fe-Le),ae.lineTo(oe,Y+Le),(Z!==0||Le!==0)&&ae.bezierCurveTo(oe,Y+Le*je,oe+Z*je,Y,oe+Z,Y),ae}function c(K){function oe(ze,Fe,je){const ae=B(Fe),Ne=B(je);Le===0?Z.moveTo(ae,Ne):Z.lineTo(ae,Ne),Le++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,Z=new kc;let Le=0;return K.getAttribute("points").replace(Y,oe),Z.currentPath.autoClose=!0,Z}function p(K){function oe(ze,Fe,je){const ae=B(Fe),Ne=B(je);Le===0?Z.moveTo(ae,Ne):Z.lineTo(ae,Ne),Le++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,Z=new kc;let Le=0;return K.getAttribute("points").replace(Y,oe),Z.currentPath.autoClose=!1,Z}function d(K){const oe=B(K.getAttribute("cx")||0),Y=B(K.getAttribute("cy")||0),Z=B(K.getAttribute("r")||0),Le=new th;Le.absarc(oe,Y,Z,0,Math.PI*2);const ze=new kc;return ze.subPaths.push(Le),ze}function A(K){const oe=B(K.getAttribute("cx")||0),Y=B(K.getAttribute("cy")||0),Z=B(K.getAttribute("rx")||0),Le=B(K.getAttribute("ry")||0),ze=new th;ze.absellipse(oe,Y,Z,Le,0,Math.PI*2);const Fe=new kc;return Fe.subPaths.push(ze),Fe}function y(K){const oe=B(K.getAttribute("x1")||0),Y=B(K.getAttribute("y1")||0),Z=B(K.getAttribute("x2")||0),Le=B(K.getAttribute("y2")||0),ze=new kc;return ze.moveTo(oe,Y),ze.lineTo(Z,Le),ze.currentPath.autoClose=!1,ze}function C(K,oe){oe=Object.assign({},oe);let Y={};if(K.hasAttribute("class")){const Fe=K.getAttribute("class").split(/\s/).filter(Boolean).map(je=>je.trim());for(let je=0;je0&&oe.premultiply(re[re.length-1]),Ae.copy(oe),re.push(oe),oe}function F(K){const oe=new kn,Y=_e;if(K.nodeName==="use"&&(K.hasAttribute("x")||K.hasAttribute("y"))){const Z=B(K.getAttribute("x")),Le=B(K.getAttribute("y"));oe.translate(Z,Le)}if(K.hasAttribute("transform")){const Z=K.getAttribute("transform").split(")");for(let Le=Z.length-1;Le>=0;Le--){const ze=Z[Le].trim();if(ze==="")continue;const Fe=ze.indexOf("("),je=ze.length;if(Fe>0&&Fe=1){const be=Ne[0];let Ve=0;Ne.length>=2&&(Ve=Ne[1]),Y.translate(be,Ve)}break;case"rotate":if(Ne.length>=1){let be=0,Ve=0,He=0;be=Ne[0]*Math.PI/180,Ne.length>=3&&(Ve=Ne[1],He=Ne[2]),De.makeTranslation(-Ve,-He),Ge.makeRotation(be),ie.multiplyMatrices(Ge,De),De.makeTranslation(Ve,He),Y.multiplyMatrices(De,ie)}break;case"scale":if(Ne.length>=1){const be=Ne[0];let Ve=be;Ne.length>=2&&(Ve=Ne[1]),Y.scale(be,Ve)}break;case"skewX":Ne.length===1&&Y.set(1,Math.tan(Ne[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":Ne.length===1&&Y.set(1,0,0,Math.tan(Ne[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":Ne.length===6&&Y.set(Ne[0],Ne[2],Ne[4],Ne[1],Ne[3],Ne[5],0,0,1);break}}oe.premultiply(Y)}}return oe}function P(K,oe){function Y(Fe){ve.set(Fe.x,Fe.y,1).applyMatrix3(oe),Fe.set(ve.x,ve.y)}function Z(Fe){const je=Fe.xRadius,ae=Fe.yRadius,Ne=Math.cos(Fe.aRotation),be=Math.sin(Fe.aRotation),Ve=new ue(je*Ne,je*be,0),He=new ue(-ae*be,ae*Ne,0),lt=Ve.applyMatrix3(oe),Se=He.applyMatrix3(oe),W=_e.set(lt.x,Se.x,0,lt.y,Se.y,0,0,0,1),$=De.copy(W).invert(),pt=Ge.copy($).transpose().multiply($).elements,ut=z(pt[0],pt[1],pt[4]),Ut=Math.sqrt(ut.rt1),_t=Math.sqrt(ut.rt2);if(Fe.xRadius=1/Ut,Fe.yRadius=1/_t,Fe.aRotation=Math.atan2(ut.sn,ut.cs),!((Fe.aEndAngle-Fe.aStartAngle)%(2*Math.PI){const{x:cn,y:tn}=new ue(Math.cos(Sn),Math.sin(Sn),0).applyMatrix3(mt);return Math.atan2(tn,cn)};Fe.aStartAngle=Rn(Fe.aStartAngle),Fe.aEndAngle=Rn(Fe.aEndAngle),N(oe)&&(Fe.aClockwise=!Fe.aClockwise)}}function Le(Fe){const je=q(oe),ae=L(oe);Fe.xRadius*=je,Fe.yRadius*=ae;const Ne=je>Number.EPSILON?Math.atan2(oe.elements[1],oe.elements[0]):Math.atan2(-oe.elements[3],oe.elements[4]);Fe.aRotation+=Ne,N(oe)&&(Fe.aStartAngle*=-1,Fe.aEndAngle*=-1,Fe.aClockwise=!Fe.aClockwise)}const ze=K.subPaths;for(let Fe=0,je=ze.length;FeNumber.EPSILON}function q(K){const oe=K.elements;return Math.sqrt(oe[0]*oe[0]+oe[1]*oe[1])}function L(K){const oe=K.elements;return Math.sqrt(oe[3]*oe[3]+oe[4]*oe[4])}function z(K,oe,Y){let Z,Le,ze,Fe,je;const ae=K+Y,Ne=K-Y,be=Math.sqrt(Ne*Ne+4*oe*oe);return ae>0?(Z=.5*(ae+be),je=1/Z,Le=K*je*Y-oe*je*oe):ae<0?Le=.5*(ae-be):(Z=.5*be,Le=-.5*be),Ne>0?ze=Ne+be:ze=Ne-be,Math.abs(ze)>2*Math.abs(oe)?(je=-2*oe/ze,Fe=1/Math.sqrt(1+je*je),ze=je*Fe):Math.abs(oe)===0?(ze=1,Fe=0):(je=-.5*ze/oe,ze=1/Math.sqrt(1+je*je),Fe=je*ze),Ne>0&&(je=ze,ze=-Fe,Fe=je),{rt1:Z,rt2:Le,cs:ze,sn:Fe}}const he=[],Ie={},re=[],_e=new kn,De=new kn,Ge=new kn,ie=new kn,ge=new st,ve=new ue,Ae=new kn,Ue=new DOMParser().parseFromString(e,"image/svg+xml");return r(Ue.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:he,xml:Ue.documentElement}}static createShapes(e){const r={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:r.ORIGIN,t:0};function s(x,D,I,w){const B=x.x,_=D.x,F=I.x,P=w.x,N=x.y,U=D.y,q=I.y,L=w.y,z=(P-F)*(N-q)-(L-q)*(B-F),he=(_-B)*(N-q)-(U-N)*(B-F),Ie=(L-q)*(_-B)-(P-F)*(U-N),re=z/Ie,_e=he/Ie;if(Ie===0&&z!==0||re<=0||re>=1||_e<0||_e>1)return null;if(z===0&&Ie===0){for(let De=0;De<2;De++)if(o(De===0?I:w,x,D),i.loc==r.ORIGIN){const Ge=De===0?I:w;return{x:Ge.x,y:Ge.y,t:i.t}}else if(i.loc==r.BETWEEN){const Ge=+(B+i.t*(_-B)).toPrecision(10),ie=+(N+i.t*(U-N)).toPrecision(10);return{x:Ge,y:ie,t:i.t}}return null}else{for(let ie=0;ie<2;ie++)if(o(ie===0?I:w,x,D),i.loc==r.ORIGIN){const ge=ie===0?I:w;return{x:ge.x,y:ge.y,t:i.t}}const De=+(B+re*(_-B)).toPrecision(10),Ge=+(N+re*(U-N)).toPrecision(10);return{x:De,y:Ge,t:re}}}function o(x,D,I){const w=I.x-D.x,B=I.y-D.y,_=x.x-D.x,F=x.y-D.y,P=w*F-_*B;if(x.x===D.x&&x.y===D.y){i.loc=r.ORIGIN,i.t=0;return}if(x.x===I.x&&x.y===I.y){i.loc=r.DESTINATION,i.t=1;return}if(P<-Number.EPSILON){i.loc=r.LEFT;return}if(P>Number.EPSILON){i.loc=r.RIGHT;return}if(w*_<0||B*F<0){i.loc=r.BEHIND;return}if(Math.sqrt(w*w+B*B)L.t<=q.t+Number.EPSILON&&L.t>=q.t-Number.EPSILON)===void 0&&(I.push(q),w.push(new st(q.x,q.y)))}}return w}function l(x,D,I){const w=new st;D.getCenter(w);const B=[];return I.forEach(_=>{_.boundingBox.containsPoint(w)&&a(x,_.points).forEach(P=>{B.push({identifier:_.identifier,isCW:_.isCW,point:P})})}),B.sort((_,F)=>_.point.x-F.point.x),B}function c(x,D,I,w,B){(B==null||B==="")&&(B="nonzero");const _=new st;x.boundingBox.getCenter(_);const F=[new st(I,_.y),new st(w,_.y)],P=l(F,x.boundingBox,D);P.sort((he,Ie)=>he.point.x-Ie.point.x);const N=[],U=[];P.forEach(he=>{he.identifier===x.identifier?N.push(he):U.push(he)});const q=N[0].point.x,L=[];let z=0;for(;z0&&L[L.length-1]===U[z].identifier?L.pop():L.push(U[z].identifier),z++;if(L.push(x.identifier),B==="evenodd"){const he=L.length%2===0,Ie=L[L.length-2];return{identifier:x.identifier,isHole:he,for:Ie}}else if(B==="nonzero"){let he=!0,Ie=null,re=null;for(let _e=0;_e{const D=x.getPoints();let I=-999999999,w=999999999,B=-999999999,_=999999999;for(let F=0;FI&&(I=P.y),P.yB&&(B=P.x),P.x<_&&(_=P.x)}return d<=B&&(d=B+1),p>=_&&(p=_-1),{curves:x.curves,points:D,isCW:nl.isClockWise(D),identifier:-1,boundingBox:new qR(new st(_,w),new st(B,I))}});A=A.filter(x=>x.points.length>1);for(let x=0;xc(x,A,p,d,e.userData?e.userData.style.fillRule:void 0)),C=[];return A.forEach(x=>{if(!y[x.identifier].isHole){const I=new nh;I.curves=x.curves,y.filter(B=>B.isHole&&B.for===x.identifier).forEach(B=>{const _=A[B.identifier],F=new th;F.curves=_.curves,I.holes.push(F)}),C.push(I)}}),C}static getStrokeStyle(e,n,r,i,s){return e=e!==void 0?e:1,n=n!==void 0?n:"#000",r=r!==void 0?r:"miter",i=i!==void 0?i:"butt",s=s!==void 0?s:4,{strokeColor:n,strokeWidth:e,strokeLineJoin:r,strokeLineCap:i,strokeMiterLimit:s}}static pointsToStroke(e,n,r,i){const s=[],o=[],a=[];if(FA.pointsToStrokeWithBuffers(e,n,r,i,s,o,a)===0)return null;const l=new Hn;return l.setAttribute("position",new fn(s,3)),l.setAttribute("normal",new fn(o,3)),l.setAttribute("uv",new fn(a,2)),l}static pointsToStrokeWithBuffers(e,n,r,i,s,o,a,l){const c=new st,p=new st,d=new st,A=new st,y=new st,C=new st,x=new st,D=new st,I=new st,w=new st,B=new st,_=new st,F=new st,P=new st,N=new st,U=new st,q=new st;r=r!==void 0?r:12,i=i!==void 0?i:.001,l=l!==void 0?l:0,e=Ne(e);const L=e.length;if(L<2)return 0;const z=e[0].equals(e[L-1]);let he,Ie=e[0],re;const _e=n.strokeWidth/2,De=1/(L-1);let Ge=0,ie,ge,ve,Ae,Ue=!1,we=0,K=l*3,oe=l*2;Y(e[0],e[1],c).multiplyScalar(_e),D.copy(e[0]).sub(c),I.copy(e[0]).add(c),w.copy(D),B.copy(I);for(let be=1;beNumber.EPSILON){const lt=_e/He;d.multiplyScalar(-lt),A.subVectors(he,Ie),y.copy(A).setLength(lt).add(d),U.copy(y).negate();const Se=y.length(),W=A.length();A.divideScalar(W),C.subVectors(re,he);const $=C.length();switch(C.divideScalar($),A.dot(U)=i&&He.push(be[lt]);return He.push(be[be.length-1]),He}}}function KY(t,e,n,r,i,s){const o=[],a=Yt([]),l=Yt([]);Hu(a,o);const c=Yt(void 0),p=Ou(e,n,r,{...Gu,...Uu(t.root.size),...zu(a),...Ru(l)},GC,he=>he.add("aspectRatio",c)),d=Yt(void 0),A=ku();Dh(d,A,t,p,i,!0,o);const y=Pu(p,A,t.root.pixelSize);Qu(t.root,i,y,o);const C=Ih(t.childrenMatrix,y),x=xh(t.clippingRect,C,A.size,t.root.pixelSize),D=Lu(A,x,p),I=ld(p),w=Ts(p,Yi.Panel,I,t.orderInfo);o.push(he=>Ul(p,w,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,od(),he));const B=Ts(void 0,Yi.Svg,void 0,w),_=bn(()=>{var he,Ie;return bs((he=e.value)==null?void 0:he.src)??bs((Ie=n.value)==null?void 0:Ie.src)}),F=Yt(void 0),P=x0(t.root,t.clippingRect);kL(F,eX,WJ,o,_,t.root,P,t.clippingRect,B,c),RL(p,F,o,t.root);const N=ZY(t.root,A,F,c,D,o),U=zC();jC(s,U,t.root.pixelSize,o);const q=WC(U,C,t.root.pixelSize);JC(p,U,A,C,D,t.clippingRect,B,t.root.panelGroupManager,o);const L=ad(B,t.root,t.clippingRect,A.size,o),z=VC(U,t.anyAncestorScrollable,A,i,L,n,t.root,o);return Fu(e,n,A.size,o),vh(e,n,x,o),Object.assign(A,{scrollPosition:U,isClipped:x,mergedProperties:p,anyAncestorScrollable:uB(A.scrollable,t.anyAncestorScrollable),clippingRect:UC(C,A,t.root.pixelSize,t.clippingRect),childrenMatrix:q,node:d,orderInfo:B,root:t.root,initializers:o,centerGroup:N,handlers:Nu(e,n,r,a,l,z),interactionPanel:L})}function ZY(t,e,n,r,i,s){const o=new Cu;return o.matrixAutoUpdate=!1,s.push(()=>sn(()=>{ML(o.position,o.scale,e.size,e.paddingInset,e.borderInset,t.pixelSize.value,r.value??1),o.updateMatrix(),t.requestRender()}),()=>sn(()=>{const a=n.value;if(a!=null)return o.add(a),t.requestRender(),()=>{o.remove(a),t.requestRender()}}),()=>sn(()=>{o.visible=n.value!=null&&i.value,t.requestRender()})),o}const $Y=new FA,M1=new ji,Ap=new ue,wF=new Map;async function eX(t,e,n,r,i,s){if(t==null)return;const o=new Cu;o.matrixAutoUpdate=!1;let a=wF.get(t);a==null&&wF.set(t,a=await $Y.loadAsync(t)),M1.makeEmpty();for(const c of a.paths){const p=FA.createShapes(c),d=new Uo;d.transparent=!0,d.depthWrite=!1,d.toneMapped=!1,d.clippingPlanes=n;for(const A of p){const y=new bA(A);y.computeBoundingBox(),M1.union(y.boundingBox);const C=new gr(y,d);C.matrixAutoUpdate=!1,C.raycast=uh(C,C.raycast,e.object,r,i),sd(C,e,i),C.userData.color=c.color,C.scale.y=-1,C.updateMatrix(),o.add(C)}}M1.getSize(Ap),s.value=Ap.x/Ap.y;const l=1/Ap.y;return o.scale.set(1,1,1).multiplyScalar(l),M1.getCenter(Ap),Ap.y*=-1,o.position.copy(Ap).negate().multiplyScalar(l),o.updateMatrix(),o}function tX(t,e,n,r,i,s,o,a){const l=[],c=Yt([]),p=Yt([]);Hu(c,l);const d=Ou(i,s,o,{...Gu,...Uu(t.root.size),...zu(c),...Ru(p)},GC,P=>{P.add("aspectRatio",n/r),P.add("width",n),P.add("height",r)}),A=ku();Dh(void 0,A,t,d,a,!0,l);const y=Pu(d,A,t.root.pixelSize);Qu(t.root,a,y,l);const C=Ih(t.childrenMatrix,y),x=xh(t.clippingRect,C,A.size,t.root.pixelSize),D=Lu(A,x,d),I=ld(d),w=Ts(d,Yi.Panel,I,t.orderInfo);l.push(P=>Ul(d,w,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,od(),P));const B=Ts(void 0,Yi.Svg,void 0,w),_=x0(t.root,t.clippingRect),F=rX(d,e,n,r,t,B,A,D,_,l);return Fu(i,s,A.size,l),vh(i,s,x,l),Object.assign(A,{isClipped:x,mergedProperties:d,initializers:l,iconGroup:F,handlers:Nu(i,s,o,c,p),interactionPanel:ad(B,t.root,t.clippingRect,A.size,l)})}const nX=new FA;function rX(t,e,n,r,i,s,o,a,l,c){const p=new Cu;p.matrixAutoUpdate=!1;const d=nX.parse(e);for(const y of d.paths){const C=FA.createShapes(y),x=new Uo;x.transparent=!0,x.depthWrite=!1,x.toneMapped=!1,x.clippingPlanes=l;for(const D of C){const I=new bA(D);I.computeBoundingBox();const w=new gr(I,x);w.matrixAutoUpdate=!1,w.raycast=uh(w,w.raycast,i.root.object,i.clippingRect,s),sd(w,i.root,s),w.userData.color=y.color,w.scale.y=-1,w.updateMatrix(),p.add(w)}}const A=n/r;return c.push(()=>sn(()=>{ML(p.position,p.scale,o.size,o.paddingInset,o.borderInset,i.root.pixelSize.value,A),p.position.x-=p.scale.x*A/2,p.position.y+=p.scale.x/2,p.scale.divideScalar(r),p.updateMatrix(),i.root.requestRender()}),()=>sn(()=>{p.visible=a.value,i.root.requestRender()})),RL(t,p,c,i.root),p}const iX=["caretBorderRightWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderBottomWidth"];let BF;function sX(){return BF??(BF=I0({backgroundColor:"caretColor",backgroundOpacity:"caretOpacity",borderBend:"caretBorderBend",borderBottomLeftRadius:"caretBorderBottomLeftRadius",borderBottomRightRadius:"caretBorderBottomRightRadius",borderColor:"caretBorderColor",borderOpacity:"caretBorderOpacity",borderTopLeftRadius:"caretBorderTopLeftRadius",borderTopRightRadius:"caretBorderTopRightRadius"},{backgroundColor:0,backgroundOpacity:1})),BF}function oX(t,e,n,r,i,s,o,a){const l=Ts(void 0,Yi.Panel,HC,i),c=Yt(void 0);a.push(()=>sn(()=>{const A=n.value;A==null&&(c.value=void 0),c.value=A;const y=setInterval(()=>c.value=c.peek()==null?A:void 0,500);return()=>clearInterval(y)}));const p=sB(t,iX),d=nr(t,"caretWidth",1.5);a.push(A=>Ul(t,l,void 0,o,e,bn(()=>{const y=c.value;return y==null?[0,0]:[d.value,y[2]]}),bn(()=>{const y=c.value;return y==null?[0,0]:[y[0]-d.value/2,y[1]]}),p,s,r,sX(),A))}const aX=["selectionBorderRightWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderBottomWidth"];let bF;function lX(){return bF??(bF=I0({backgroundColor:"selectionColor",backgroundOpacity:"selectionOpacity",borderBend:"selectionBorderBend",borderBottomLeftRadius:"selectionBorderBottomLeftRadius",borderBottomRightRadius:"selectionBorderBottomRightRadius",borderColor:"selectionBorderColor",borderOpacity:"selectionBorderOpacity",borderTopLeftRadius:"selectionBorderTopLeftRadius",borderTopRightRadius:"selectionBorderTopRightRadius"},{backgroundColor:11851775,backgroundOpacity:1})),bF}function uX(t,e,n,r,i,s,o,a){const l=[],c=Ts(void 0,Yi.Panel,HC,i),p=sB(t,aX);return a.push(()=>sn(()=>{const d=n.value,A=d.length;for(let C=0;C()=>{const d=l.length;for(let A=0;At.value)}}const hX=new Set;function pX(t){hX.add(t)}function dX(t,e,n,r,i,s){var Ae,Ue,we,K,oe,Y;const o=Yt([]),a=Yt([]),l=Yt(!1),c=[];Hu(o,c);const p=Ou(n,r,i,{...Gu,...Uu(t.root.size),...zu(o),...Ru(a),...cX(l)},void 0,Z=>{OC(n.value,r.value,i.value,Le=>{Z.add("caretOpacity",Le.opacity),Z.add("caretColor",Le.color)})}),d=ku(),A=Yt(void 0);Dh(A,d,t,p,s,!1,c);const y=Pu(p,d,t.root.pixelSize);Qu(t.root,s,y,c);const C=Ih(t.childrenMatrix,y),x=xh(t.clippingRect,C,d.size,t.root.pixelSize),D=Lu(d,x,p),I=ld(p),w=Ts(p,Yi.Panel,I,t.orderInfo);c.push(Z=>Ul(p,w,I,t.root.panelGroupManager,C,d.size,void 0,d.borderInset,t.clippingRect,D,od(),Z));const B={},_=Yt([]),F=Yt(void 0),P=Yt(void 0);oX(p,C,F,D,w,t.clippingRect,t.root.panelGroupManager,c);const N=uX(p,C,_,D,w,t.clippingRect,t.root.panelGroupManager,c),U=n4(p,e,t.root.renderer,c),q=Ts(void 0,Yi.Text,i4(U),N),L=((Ae=n.peek())==null?void 0:Ae.defaultValue)??((Ue=r.peek())==null?void 0:Ue.defaultValue),z=((we=n.peek())==null?void 0:we.value)==null&&((K=r.peek())==null?void 0:K.value)==null?Yt(L??""):void 0,he=bn(()=>{var Z,Le;return(z==null?void 0:z.value)??bs((Z=n.value)==null?void 0:Z.value)??bs((Le=r.value)==null?void 0:Le.value)??""}),Ie=gI(n,r,"type","text"),re=bn(()=>Ie.value==="text"?he.value:"*".repeat(he.value.length??0)),_e=((oe=n.peek())==null?void 0:oe.multiline)??((Y=r.peek())==null?void 0:Y.multiline)??!1,De=s4(p,re,C,A,d,D,t.clippingRect,q,U,t.root.gylphGroupManager,P,_,F,B,c,_e?"break-word":"keep-all");c.push(()=>sn(()=>{var Z;return(Z=A.value)==null?void 0:Z.setCustomLayouting(De.value)})),Fu(n,r,d.size,c),vh(n,r,x,c);const Ge=gI(n,r,"disabled",!1),ie=AX(he,P,Z=>{var Le,ze,Fe,je;z!=null&&(z.value=Z),(ze=(Le=n.peek())==null?void 0:Le.onValueChange)==null||ze.call(Le,Z),(je=(Fe=r.peek())==null?void 0:Fe.onValueChange)==null||je.call(Fe,Z)},_e,Ie,Ge,gI(n,r,"tabIndex",0),c),ge=(Z,Le,ze)=>{const Fe=ie.peek();Fe!=null&&(l.peek()||Fe.focus(),Z!=null&&Le!=null&&Fe.setSelectionRange(Z,Le,ze),P.value=[Fe.selectionStart??0,Fe.selectionEnd??0])};gX(ie,l,c,Z=>{var Le,ze,Fe,je;(ze=(Le=r.peek())==null?void 0:Le.onFocusChange)==null||ze.call(Le,Z),(je=(Fe=n.peek())==null?void 0:Fe.onFocusChange)==null||je.call(Fe,Z)});const ve=fX(d,B,ge,Ge);return Object.assign(d,{isClipped:x,mergedProperties:p,valueSignal:he,focus:()=>ge(),root:t.root,element:ie,node:A,interactionPanel:ad(w,t.root,t.clippingRect,d.size,c),handlers:Nu(n,r,i,o,a,ve,"text"),initializers:c})}function fX(t,e,n,r){return bn(()=>{if(r.value)return;let i;return{onPointerDown:s=>{var a;if(s.defaultPrevented||s.uv==null||e.current==null)return;pX(s.nativeEvent),(a=s.stopPropagation)==null||a.call(s);const o=TF(t,s.uv,e.current);i=o,setTimeout(()=>n(o,o))},onPointerUp:s=>{i=void 0},onPointerLeave:s=>{i=void 0},onPointerMove:s=>{var p;if(i==null||s.uv==null||e.current==null)return;(p=s.stopPropagation)==null||p.call(s);const o=TF(t,s.uv,e.current),a=Math.min(i,o),l=Math.max(i,o),c=in(a,l,c))}}})}function AX(t,e,n,r,i,s,o,a){const l=Yt(void 0);return a.push(c=>{const p=document.createElement(r?"textarea":"input"),d=p.style;d.setProperty("position","absolute"),d.setProperty("left","-1000vw"),d.setProperty("top","0"),d.setProperty("pointerEvents","none"),d.setProperty("opacity","0"),p.addEventListener("input",()=>{n==null||n(p.value),A()});const A=()=>{const{selectionStart:y,selectionEnd:C}=p;if(y==null||C==null){e.value=void 0;return}const x=e.peek();x!=null&&x[0]===y&&x[1]===C||(e.value=[y,C])};return p.addEventListener("keydown",A),p.addEventListener("keyup",A),p.addEventListener("blur",()=>e.value=void 0),document.body.appendChild(p),l.value=p,c.push(()=>{l.value=void 0,p.remove()},sn(()=>p.value=t.value),sn(()=>p.disabled=s.value),sn(()=>p.tabIndex=o.value),sn(()=>p.setAttribute("type",i.value))),c}),l}function gX(t,e,n,r){n.push(()=>sn(()=>{const i=t.value;if(i==null)return;e.value=document.activeElement===i;const s=()=>{const o=document.activeElement===i;o!=e.value&&(e.value=o,r(o))};return i.addEventListener("focus",s),i.addEventListener("blur",s),()=>{i.removeEventListener("focus",s),i.removeEventListener("blur",s)}}))}function TF({size:t,borderInset:e,paddingInset:n},r,i){const s=t.peek(),o=e.peek(),a=n.peek();if(s==null||o==null||a==null)return 0;const[l,c]=s,[p,,,d]=o,[A,,,y]=a,C=r.x*l-d-y,x=-r.y*c+p+A;return i.getCharIndex(C,x)}function mX(t,e,n,r,i,s){const o=Yt([]),a=Yt([]),l=[];Hu(o,l);const c=Ou(e,n,r,{...Gu,...Uu(t.root.size),...zu(o),...Ru(a)}),p=ku();Dh(void 0,p,t,c,i,!0,l);const d=Pu(c,p,t.root.pixelSize);Qu(t.root,i,d,l);const A=Ih(t.childrenMatrix,d),y=xh(t.clippingRect,A,p.size,t.root.pixelSize),C=Lu(p,y,c),x=Ts(c,Yi.Custom,void 0,t.orderInfo),D=x0(t.root,t.clippingRect);return l.push(I=>{const w=s.current;if(w==null)return I;if(w.matrixAutoUpdate=!1,w.material instanceof Ni){const B=w.material;B.clippingPlanes=D,B.needsUpdate=!0,B.shadowSide=Sa,I.push(()=>sn(()=>{B.depthTest=t.root.depthTest.value,t.root.requestRender()}))}return w.raycast=uh(w,w.raycast,t.root.object,t.clippingRect,x),sd(w,t.root,x),I.push(sn(()=>{w.renderOrder=t.root.renderOrder.value,t.root.requestRender()}),sn(()=>{w.receiveShadow=c.value.read("receiveShadow",!1),t.root.requestRender()}),sn(()=>{w.castShadow=c.value.read("castShadow",!1),t.root.requestRender()}),sn(()=>{if(p.size.value==null)return;const[B,_]=p.size.value,F=t.root.pixelSize.value;w.scale.set(B*F,_*F,1),w.updateMatrix(),t.root.requestRender()}),sn(()=>{w.visible=C.value,t.root.requestRender()})),I}),Fu(e,n,p.size,l),vh(e,n,y,l),Object.assign(p,{isClipped:y,mergedProperties:c,root:t.root,handlers:Nu(e,n,r,o,a),initializers:l})}function yX(t,e,n,r,i,s){const o=Yt([]),a=Yt([]),l=[],c=ku();Hu(o,l);const p=Yt(new ue(1,1,1)),d=bn(()=>p.value.x/p.value.y),A=Ou(e,n,r,{...Gu,...Uu(t.root.size),...zu(o),...Ru(a)},GC,_=>_.add("aspectRatio",d));Dh(void 0,c,t,A,i,!0,l);const y=Pu(A,c,t.root.pixelSize);Qu(t.root,i,y,l);const C=Ih(t.childrenMatrix,y),x=xh(t.clippingRect,C,c.size,t.root.pixelSize),D=Lu(c,x,A),I=ld(A),w=Ts(A,Yi.Panel,I,t.orderInfo);l.push(_=>Ul(A,w,I,t.root.panelGroupManager,C,c.size,void 0,c.borderInset,t.clippingRect,D,od(),_));const B=Ts(void 0,Yi.Object,void 0,w);return Fu(e,n,c.size,l),vh(e,n,x,l),Object.assign(c,{isClipped:x,mergedProperties:A,remeasureContent:vX(A,t.root,c,t.clippingRect,D,B,p,s,l),interactionPanel:ad(w,t.root,t.clippingRect,c.size,l),handlers:Nu(e,n,r,o,a),initializers:l})}const QI=new ji,MF=new ue().setScalar(.001),EX=new ue,CX="back";function vX(t,e,n,r,i,s,o,a,l){const c=x0(e,r),p=nr(t,"depthAlign",CX),d=nr(t,"keepAspectRatio",!0),A=new ue,y=new ue,C=(D,I,w,B)=>{D!=null&&(D.visible=I,D.traverse(_=>{_ instanceof gr&&(_.renderOrder=w,_.material instanceof Ni&&(_.material.depthTest=B))}),e.requestRender())},x=()=>{const D=a.current;if(D==null){A.copy(MF),y.set(0,0,0);return}D.traverse(w=>{w instanceof gr&&(sd(w,e,s),w.material.clippingPlanes=c,w.material.needsUpdate=!0,w.raycast=uh(w,w.raycast,e.object,r,s))});const I=D.parent;D.parent=null,QI.setFromObject(D),QI.getSize(A).max(MF),o.value=A,I!=null&&(D.parent=I),QI.getCenter(y),e.requestRender()};return l.push(()=>sn(()=>{C(a.current,i.value,e.renderOrder.value,e.depthTest.value),e.requestRender()}),D=>{const I=a.current;return I==null||(x(),D.push(sn(()=>{const{size:{value:w},paddingInset:{value:B},borderInset:{value:_}}=n;if(w==null||B==null||_==null)return;const[F,P]=w,[N,U,q,L]=B,[z,he,Ie,re]=_,_e=N+z,De=U+he,Ge=q+Ie,ie=L+re,ge=F-ie-De,ve=P-_e-Ge,Ae=e.pixelSize.value;I.scale.set(ge*Ae,ve*Ae,d.value?ve*Ae*A.z/A.y:A.z).divide(A),I.position.copy(y).negate(),I.position.z-=oJ[p.value]*A.z,I.position.multiply(I.scale),I.position.add(EX.set((ie-De)*.5*Ae,(Ge-_e)*.5*Ae,0)),I.updateMatrix(),e.requestRender()}))),D}),()=>{C(a.current,i.peek(),e.renderOrder.peek(),e.depthTest.peek()),x()}}function xX(t,e,n,r,i,s){if(i instanceof ki){const o=2*Math.tan(Math.PI*i.fov/360)*r;n.value=o/s,e.value=o,t.value=o*i.aspect}if(i instanceof SA){const o=i.top-i.bottom,a=i.right-i.left;n.value=o/s,e.value=o,t.value=a}}function IX(t,{src:e,autoplay:n,loop:r,muted:i,playbackRate:s,preservesPitch:o,volume:a}){if(!(e instanceof HTMLElement)){if(n&&(t.remove(),document.body.append(t),t.style.position="absolute",t.style.width="1px",t.style.zIndex="-1000",t.style.top="0px",t.style.left="0px"),t.playsInline=!0,t.volume=a??1,t.preservesPitch=o??!0,t.playbackRate=s??1,t.muted=i??!1,t.loop=r??!1,t.autoplay=n??!1,e==null){t.removeAttribute("src"),t.removeAttribute("srcObject");return}typeof e=="string"?t.src=e:t.srcObject=e}}function DX(t,e){let n;const r=()=>{e(),n=t.requestVideoFrameCallback(r)};return n=t.requestVideoFrameCallback(r),()=>t.cancelVideoFrameCallback(n)}function Hu(t,e){e.push(()=>()=>o4(t))}function SX(t,e,n,r,i,s){let o=!1;OC(e,n,r,l=>{"hover"in l&&(o=!0)});const a=(e==null?void 0:e.cursor)??(n==null?void 0:n.cursor)??s;if(!o&&(e==null?void 0:e.onHoverChange)==null&&(n==null?void 0:n.onHoverChange)==null&&a==null){i.value.length=0;return}Up("onPointerOver",t,({pointerId:l})=>{var c,p;i.value=[l,...i.value],i.value.length===1&&((c=n==null?void 0:n.onHoverChange)==null||c.call(n,!0),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!0)),a!=null&&wX(i,a)}),Up("onPointerOut",t,({pointerId:l})=>{var c,p;i.value=i.value.filter(d=>d!=l),i.value.length===0&&((c=n==null?void 0:n.onHoverChange)==null||c.call(n,!1),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!1)),o4(i)})}function zu(t){return{hover:v0(()=>t.value.length>0)}}const t2=[],nE=[];function wX(t,e){t2.push(t),nE.push(e),document.body.style.cursor=e}function o4(t){const e=t2.indexOf(t);e!=-1&&(t2.splice(e,1),nE.splice(e,1),document.body.style.cursor=nE[nE.length-1]??"default")}var _F={},BX=Object.create,YC=Object.defineProperty,bX=Object.getOwnPropertyDescriptor,TX=Object.getOwnPropertyNames,MX=Object.getPrototypeOf,_X=Object.prototype.hasOwnProperty,D0=(t,e)=>()=>(t&&(e=t(t=0)),e),Bt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),XC=(t,e)=>{for(var n in e)YC(t,n,{get:e[n],enumerable:!0})},a4=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of TX(e))!_X.call(t,i)&&i!==n&&YC(t,i,{get:()=>e[i],enumerable:!(r=bX(e,i))||r.enumerable});return t},Xi=(t,e,n)=>(n=t!=null?BX(MX(t)):{},a4(e||!t||!t.__esModule?YC(n,"default",{value:t,enumerable:!0}):n,t)),Kp=t=>a4(YC({},"__esModule",{value:!0}),t),l4,FX=D0(()=>{l4=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} +`)&&r.push({charLength:0,nonWhitespaceWidth:0,whitespacesBetween:0,charIndexOffset:s.length,nonWhitespaceCharLength:0}),{lines:r,availableHeight:n,availableWidth:e,...t}}const DF=new En,zY=new En;function i4(t){return bn(()=>({font:t.value}))}class WY{constructor(e,n,r,i,s){Ke(this,"group");Ke(this,"baseMatrix");Ke(this,"color");Ke(this,"opacity");Ke(this,"clippingRect");Ke(this,"index");Ke(this,"hidden",!0);Ke(this,"glyphInfo");Ke(this,"x",0);Ke(this,"y",0);Ke(this,"fontSize",0);Ke(this,"pixelSize",0);this.group=e,this.baseMatrix=n,this.color=r,this.opacity=i,this.clippingRect=s}getX(e){return this.glyphInfo==null?this.x:this.x+e*this.glyphInfo.width*this.fontSize}show(){this.hidden&&(this.hidden=!1,this.group.requestActivate(this))}hide(){this.hidden||(this.hidden=!0,this.group.delete(this))}activate(e){this.index=e,this.writeUpdatedMatrix(),this.writeUV(),this.updateColor(this.color),this.updateOpacity(this.opacity),this.updateClippingRect(this.clippingRect)}setIndex(e){this.index=e}updateClippingRect(e){if(this.clippingRect=e,this.index==null)return;const n=this.index*16,{instanceClipping:r,root:i}=this.group;this.clippingRect==null?r.set(OE,n):this.clippingRect.toArray(r.array,n),r.addUpdateRange(n,16),r.needsUpdate=!0,i.requestRender()}updateColor(e){if(this.color=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=n.itemSize*this.index;r0(n.array,i,e,void 0),n.addUpdateRange(i,3),n.needsUpdate=!0,r.requestRender()}updateOpacity(e){if(this.opacity=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=this.index*4+3;n.array[i]=e,n.addUpdateRange(i,1),n.needsUpdate=!0,r.requestRender()}updateGlyphAndTransformation(e,n,r,i,s){this.glyphInfo===e&&this.x===n&&this.y===r&&this.fontSize===i&&this.pixelSize===s||(this.glyphInfo!=e&&(this.glyphInfo=e,this.writeUV()),this.x=n,this.y=r,this.fontSize=i,this.pixelSize=s,this.writeUpdatedMatrix())}updateBaseMatrix(e){this.baseMatrix!==e&&(this.baseMatrix=e,this.writeUpdatedMatrix())}writeUV(){if(this.index==null||this.glyphInfo==null)return;const e=this.index*4,{instanceUV:n,root:r}=this.group;UY(this.glyphInfo,n.array,e),n.addUpdateRange(e,4),n.needsUpdate=!0,r.requestRender()}writeUpdatedMatrix(){if(this.index==null||this.glyphInfo==null||this.baseMatrix==null)return;const e=this.index*16,{instanceMatrix:n,root:r}=this.group;n.addUpdateRange(e,16),DF.makeTranslation(this.x*this.pixelSize,this.y*this.pixelSize,0).multiply(zY.makeScale(this.fontSize*this.glyphInfo.width*this.pixelSize,this.fontSize*this.glyphInfo.height*this.pixelSize,1)).premultiply(this.baseMatrix),DF.toArray(n.array,e),n.needsUpdate=!0,r.requestRender()}}const jY="middle",VY="left";function s4(t,e,n,r,i,s,o,a,l,c,p,d,A,y,C,x){let D={current:void 0};const I=GY(t,l,e,D,x),w=nr(t,"verticalAlign",jY),B=nr(t,"textAlign",VY),_=nr(t,"color",0),F=nr(t,"opacity",1),P=Yt(void 0);return C.push(()=>sn(()=>{var N;return(N=r.value)==null?void 0:N.addLayoutChangeListener(()=>{const U=D.current,{size:{value:q},paddingInset:{value:L},borderInset:{value:z}}=i;if(U==null||q==null||L==null||z==null)return;const[he,Ie]=q,[re,_e,De,Ge]=L,[ie,ge,ve,Ae]=z,Ue=he-_e-Ge-ge-Ae,we=Ie-re-De-ie-ve;P.value=HY(U,Ue,we)})}),()=>sn(()=>{const N=l.value;if(N==null||a.value==null)return;const U=new YY(c.getGroup(a.value.majorIndex,N),B,w,_,F,P,n,s,o,p,d,A);return y!=null&&(y.current=U),()=>U.destroy()})),I}const JY=[];class YY{constructor(e,n,r,i,s,o,a,l,c,p,d,A){Ke(this,"group");Ke(this,"textAlign");Ke(this,"verticalAlign");Ke(this,"color");Ke(this,"opacity");Ke(this,"layoutSignal");Ke(this,"matrix");Ke(this,"parentClippingRect");Ke(this,"selectionRange");Ke(this,"selectionBoxes");Ke(this,"caretPosition");Ke(this,"glyphLines",[]);Ke(this,"lastLayout");Ke(this,"unsubscribeInitialList",[]);Ke(this,"unsubscribeShowList",[]);this.group=e,this.textAlign=n,this.verticalAlign=r,this.color=i,this.opacity=s,this.layoutSignal=o,this.matrix=a,this.parentClippingRect=c,this.selectionRange=p,this.selectionBoxes=d,this.caretPosition=A,this.unsubscribeInitialList=[sn(()=>{if(!l.value||s.value<.01){this.hide();return}this.show()}),sn(()=>this.updateSelectionBoxes(this.lastLayout,p==null?void 0:p.value,r.peek(),n.peek()))]}getCharIndex(e,n){const r=this.lastLayout;if(r==null)return 0;n-=-T1(r,this.verticalAlign.peek());const i=Math.floor(n/-B1(r.lineHeight,r.fontSize)),s=r.lines;if(i<0||s.length===0)return 0;if(i>=s.length){const p=s[s.length-1];return p.charIndexOffset+p.charLength+1}const o=s[i],a=r.font.getGlyphInfo(" ").xadvance*r.fontSize,l=this.glyphLines[i];let c=l.length;for(let p=0;p=d.charIndexOffset+d.charLength)continue;const A=this.glyphLines[p][Math.max(r-d.charIndexOffset,0)];return{lineIndex:p,x:this.getGlyphX(A,i?0:1,s)}}const l=e[a-1];if(l.charLength===0)return{lineIndex:a-1,x:SF(n,l.nonWhitespaceWidth,o)-n/2};const c=this.glyphLines[a-1][l.charLength-1];return{lineIndex:a-1,x:this.getGlyphX(c,1,s)}}getGlyphX(e,n,r){return typeof e=="number"?e+n*r:e.getX(n)}show(){this.unsubscribeShowList.length>0||(fp(this.glyphLines,e=>e.show()),this.unsubscribeShowList.push(sn(()=>{const e=this.matrix.value;e!=null&&fp(this.glyphLines,n=>n.updateBaseMatrix(e))}),sn(()=>{var n;const e=(n=this.parentClippingRect)==null?void 0:n.value;fp(this.glyphLines,r=>r.updateClippingRect(e))}),sn(()=>{const e=this.color.value;fp(this.glyphLines,n=>n.updateColor(e))}),sn(()=>{const e=this.opacity.value;fp(this.glyphLines,n=>n.updateOpacity(e))}),sn(()=>{var A,y;const e=this.layoutSignal.value;if(e==null)return;const{text:n,font:r,lines:i,letterSpacing:s=0,fontSize:o=16,lineHeight:a=1.2,availableWidth:l}=e;let c=T1(e,this.verticalAlign.value)-e.availableHeight/2;const p=i.length,d=this.group.pixelSize.value;for(let C=0;Cw+I){P=Ie.id;const De=F+xF(r,o,Ie,P);typeof N[z]=="number"?N[z]=F:N.splice(z,0,De),F+=_+i0(o,Ie,s);continue}let re=N[z];for(;zC.hide(),p),this.glyphLines.length=p,this.lastLayout=e,this.updateSelectionBoxes(e,(y=this.selectionRange)==null?void 0:y.peek(),this.verticalAlign.value,this.textAlign.value)})))}hide(){const e=this.unsubscribeShowList.length;if(e!==0){for(let n=0;nn.hide())}}destroy(){this.hide(),this.glyphLines.length=0;const e=this.unsubscribeInitialList.length;for(let n=0;nUl(p,w,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,od(),P));const B=n4(p,n,t.root.renderer,c),_=Ts(void 0,Yi.Text,i4(B),w),F=s4(p,e,C,d,A,D,t.clippingRect,_,B,t.root.gylphGroupManager,void 0,void 0,void 0,void 0,c,"break-word");return c.push(()=>sn(()=>{var P;return(P=d.value)==null?void 0:P.setCustomLayouting(F.value)})),Fu(r,i,A.size,c),vh(r,i,x,c),Object.assign(A,{isClipped:x,mergedProperties:p,interactionPanel:ad(w,t.root,t.clippingRect,A.size,c),handlers:Nu(r,i,s,a,l),initializers:c})}const qY=ri;class FA extends xo{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,n,r,i){const s=this,o=new Nl(s.manager);o.setPath(s.path),o.setRequestHeader(s.requestHeader),o.setWithCredentials(s.withCredentials),o.load(e,function(a){try{n(s.parse(a))}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},r,i)}parse(e){const n=this;function r(K,oe){if(K.nodeType!==1)return;const Y=_(K);let Z=!1,Le=null;switch(K.nodeName){case"svg":oe=C(K,oe);break;case"style":s(K);break;case"g":oe=C(K,oe);break;case"path":oe=C(K,oe),K.hasAttribute("d")&&(Le=i(K));break;case"rect":oe=C(K,oe),Le=l(K);break;case"polygon":oe=C(K,oe),Le=c(K);break;case"polyline":oe=C(K,oe),Le=p(K);break;case"circle":oe=C(K,oe),Le=d(K);break;case"ellipse":oe=C(K,oe),Le=A(K);break;case"line":oe=C(K,oe),Le=y(K);break;case"defs":Z=!0;break;case"use":oe=C(K,oe);const je=(K.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),le=K.viewportElement.getElementById(je);le?r(le,oe):console.warn("SVGLoader: 'use node' references non-existent node id: "+je);break}Le&&(oe.fill!==void 0&&oe.fill!=="none"&&Le.color.setStyle(oe.fill,qY),P(Le,Ae),he.push(Le),Le.userData={node:K,style:oe});const ze=K.childNodes;for(let Fe=0;Fe0?Ae.copy(re[re.length-1]):Ae.identity())}function i(K){const oe=new kc,Y=new st,Z=new st,Le=new st;let ze=!0,Fe=!1;const je=K.getAttribute("d");if(je===""||je==="none")return null;const le=je.match(/[a-df-z][^a-df-z]*/ig);for(let Ne=0,be=le.length;Ne0&&(Y.copy(Le),oe.currentPath.currentPoint.copy(Y),ze=!0);break;default:console.warn(Ve)}Fe=!1}return oe}function s(K){if(!(!K.sheet||!K.sheet.cssRules||!K.sheet.cssRules.length))for(let oe=0;oeLe.trim());for(let Le=0;LeFe!==""));Ie[Z[Le]]=Object.assign(Ie[Z[Le]]||{},ze)}}}function o(K,oe,Y,Z,Le,ze,Fe,je){if(oe==0||Y==0){K.lineTo(je.x,je.y);return}Z=Z*Math.PI/180,oe=Math.abs(oe),Y=Math.abs(Y);const le=(Fe.x-je.x)/2,Ne=(Fe.y-je.y)/2,be=Math.cos(Z)*le+Math.sin(Z)*Ne,Ve=-Math.sin(Z)*le+Math.cos(Z)*Ne;let He=oe*oe,lt=Y*Y;const Se=be*be,W=Ve*Ve,$=Se/He+W/lt;if($>1){const mt=Math.sqrt($);oe=mt*oe,Y=mt*Y,He=oe*oe,lt=Y*Y}const Oe=He*W+lt*Se,ft=(He*lt-Oe)/Oe;let pt=Math.sqrt(Math.max(0,ft));Le===ze&&(pt=-pt);const ut=pt*oe*Ve/Y,Ut=-pt*Y*be/oe,_t=Math.cos(Z)*ut-Math.sin(Z)*Ut+(Fe.x+je.x)/2,Ot=Math.sin(Z)*ut+Math.cos(Z)*Ut+(Fe.y+je.y)/2,Ft=a(1,0,(be-ut)/oe,(Ve-Ut)/Y),Pt=a((be-ut)/oe,(Ve-Ut)/Y,(-be-ut)/oe,(-Ve-Ut)/Y)%(Math.PI*2);K.currentPath.absellipse(_t,Ot,oe,Y,Ft,Ft+Pt,ze===0,Z)}function a(K,oe,Y,Z){const Le=K*Y+oe*Z,ze=Math.sqrt(K*K+oe*oe)*Math.sqrt(Y*Y+Z*Z);let Fe=Math.acos(Math.max(-1,Math.min(1,Le/ze)));return K*Z-oe*Y<0&&(Fe=-Fe),Fe}function l(K){const oe=B(K.getAttribute("x")||0),Y=B(K.getAttribute("y")||0),Z=B(K.getAttribute("rx")||K.getAttribute("ry")||0),Le=B(K.getAttribute("ry")||K.getAttribute("rx")||0),ze=B(K.getAttribute("width")),Fe=B(K.getAttribute("height")),je=1-.551915024494,le=new kc;return le.moveTo(oe+Z,Y),le.lineTo(oe+ze-Z,Y),(Z!==0||Le!==0)&&le.bezierCurveTo(oe+ze-Z*je,Y,oe+ze,Y+Le*je,oe+ze,Y+Le),le.lineTo(oe+ze,Y+Fe-Le),(Z!==0||Le!==0)&&le.bezierCurveTo(oe+ze,Y+Fe-Le*je,oe+ze-Z*je,Y+Fe,oe+ze-Z,Y+Fe),le.lineTo(oe+Z,Y+Fe),(Z!==0||Le!==0)&&le.bezierCurveTo(oe+Z*je,Y+Fe,oe,Y+Fe-Le*je,oe,Y+Fe-Le),le.lineTo(oe,Y+Le),(Z!==0||Le!==0)&&le.bezierCurveTo(oe,Y+Le*je,oe+Z*je,Y,oe+Z,Y),le}function c(K){function oe(ze,Fe,je){const le=B(Fe),Ne=B(je);Le===0?Z.moveTo(le,Ne):Z.lineTo(le,Ne),Le++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,Z=new kc;let Le=0;return K.getAttribute("points").replace(Y,oe),Z.currentPath.autoClose=!0,Z}function p(K){function oe(ze,Fe,je){const le=B(Fe),Ne=B(je);Le===0?Z.moveTo(le,Ne):Z.lineTo(le,Ne),Le++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,Z=new kc;let Le=0;return K.getAttribute("points").replace(Y,oe),Z.currentPath.autoClose=!1,Z}function d(K){const oe=B(K.getAttribute("cx")||0),Y=B(K.getAttribute("cy")||0),Z=B(K.getAttribute("r")||0),Le=new th;Le.absarc(oe,Y,Z,0,Math.PI*2);const ze=new kc;return ze.subPaths.push(Le),ze}function A(K){const oe=B(K.getAttribute("cx")||0),Y=B(K.getAttribute("cy")||0),Z=B(K.getAttribute("rx")||0),Le=B(K.getAttribute("ry")||0),ze=new th;ze.absellipse(oe,Y,Z,Le,0,Math.PI*2);const Fe=new kc;return Fe.subPaths.push(ze),Fe}function y(K){const oe=B(K.getAttribute("x1")||0),Y=B(K.getAttribute("y1")||0),Z=B(K.getAttribute("x2")||0),Le=B(K.getAttribute("y2")||0),ze=new kc;return ze.moveTo(oe,Y),ze.lineTo(Z,Le),ze.currentPath.autoClose=!1,ze}function C(K,oe){oe=Object.assign({},oe);let Y={};if(K.hasAttribute("class")){const Fe=K.getAttribute("class").split(/\s/).filter(Boolean).map(je=>je.trim());for(let je=0;je0&&oe.premultiply(re[re.length-1]),Ae.copy(oe),re.push(oe),oe}function F(K){const oe=new kn,Y=_e;if(K.nodeName==="use"&&(K.hasAttribute("x")||K.hasAttribute("y"))){const Z=B(K.getAttribute("x")),Le=B(K.getAttribute("y"));oe.translate(Z,Le)}if(K.hasAttribute("transform")){const Z=K.getAttribute("transform").split(")");for(let Le=Z.length-1;Le>=0;Le--){const ze=Z[Le].trim();if(ze==="")continue;const Fe=ze.indexOf("("),je=ze.length;if(Fe>0&&Fe=1){const be=Ne[0];let Ve=0;Ne.length>=2&&(Ve=Ne[1]),Y.translate(be,Ve)}break;case"rotate":if(Ne.length>=1){let be=0,Ve=0,He=0;be=Ne[0]*Math.PI/180,Ne.length>=3&&(Ve=Ne[1],He=Ne[2]),De.makeTranslation(-Ve,-He),Ge.makeRotation(be),ie.multiplyMatrices(Ge,De),De.makeTranslation(Ve,He),Y.multiplyMatrices(De,ie)}break;case"scale":if(Ne.length>=1){const be=Ne[0];let Ve=be;Ne.length>=2&&(Ve=Ne[1]),Y.scale(be,Ve)}break;case"skewX":Ne.length===1&&Y.set(1,Math.tan(Ne[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":Ne.length===1&&Y.set(1,0,0,Math.tan(Ne[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":Ne.length===6&&Y.set(Ne[0],Ne[2],Ne[4],Ne[1],Ne[3],Ne[5],0,0,1);break}}oe.premultiply(Y)}}return oe}function P(K,oe){function Y(Fe){ve.set(Fe.x,Fe.y,1).applyMatrix3(oe),Fe.set(ve.x,ve.y)}function Z(Fe){const je=Fe.xRadius,le=Fe.yRadius,Ne=Math.cos(Fe.aRotation),be=Math.sin(Fe.aRotation),Ve=new ue(je*Ne,je*be,0),He=new ue(-le*be,le*Ne,0),lt=Ve.applyMatrix3(oe),Se=He.applyMatrix3(oe),W=_e.set(lt.x,Se.x,0,lt.y,Se.y,0,0,0,1),$=De.copy(W).invert(),pt=Ge.copy($).transpose().multiply($).elements,ut=z(pt[0],pt[1],pt[4]),Ut=Math.sqrt(ut.rt1),_t=Math.sqrt(ut.rt2);if(Fe.xRadius=1/Ut,Fe.yRadius=1/_t,Fe.aRotation=Math.atan2(ut.sn,ut.cs),!((Fe.aEndAngle-Fe.aStartAngle)%(2*Math.PI){const{x:cn,y:tn}=new ue(Math.cos(Sn),Math.sin(Sn),0).applyMatrix3(mt);return Math.atan2(tn,cn)};Fe.aStartAngle=Rn(Fe.aStartAngle),Fe.aEndAngle=Rn(Fe.aEndAngle),N(oe)&&(Fe.aClockwise=!Fe.aClockwise)}}function Le(Fe){const je=q(oe),le=L(oe);Fe.xRadius*=je,Fe.yRadius*=le;const Ne=je>Number.EPSILON?Math.atan2(oe.elements[1],oe.elements[0]):Math.atan2(-oe.elements[3],oe.elements[4]);Fe.aRotation+=Ne,N(oe)&&(Fe.aStartAngle*=-1,Fe.aEndAngle*=-1,Fe.aClockwise=!Fe.aClockwise)}const ze=K.subPaths;for(let Fe=0,je=ze.length;FeNumber.EPSILON}function q(K){const oe=K.elements;return Math.sqrt(oe[0]*oe[0]+oe[1]*oe[1])}function L(K){const oe=K.elements;return Math.sqrt(oe[3]*oe[3]+oe[4]*oe[4])}function z(K,oe,Y){let Z,Le,ze,Fe,je;const le=K+Y,Ne=K-Y,be=Math.sqrt(Ne*Ne+4*oe*oe);return le>0?(Z=.5*(le+be),je=1/Z,Le=K*je*Y-oe*je*oe):le<0?Le=.5*(le-be):(Z=.5*be,Le=-.5*be),Ne>0?ze=Ne+be:ze=Ne-be,Math.abs(ze)>2*Math.abs(oe)?(je=-2*oe/ze,Fe=1/Math.sqrt(1+je*je),ze=je*Fe):Math.abs(oe)===0?(ze=1,Fe=0):(je=-.5*ze/oe,ze=1/Math.sqrt(1+je*je),Fe=je*ze),Ne>0&&(je=ze,ze=-Fe,Fe=je),{rt1:Z,rt2:Le,cs:ze,sn:Fe}}const he=[],Ie={},re=[],_e=new kn,De=new kn,Ge=new kn,ie=new kn,ge=new st,ve=new ue,Ae=new kn,Ue=new DOMParser().parseFromString(e,"image/svg+xml");return r(Ue.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:he,xml:Ue.documentElement}}static createShapes(e){const r={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:r.ORIGIN,t:0};function s(x,D,I,w){const B=x.x,_=D.x,F=I.x,P=w.x,N=x.y,U=D.y,q=I.y,L=w.y,z=(P-F)*(N-q)-(L-q)*(B-F),he=(_-B)*(N-q)-(U-N)*(B-F),Ie=(L-q)*(_-B)-(P-F)*(U-N),re=z/Ie,_e=he/Ie;if(Ie===0&&z!==0||re<=0||re>=1||_e<0||_e>1)return null;if(z===0&&Ie===0){for(let De=0;De<2;De++)if(o(De===0?I:w,x,D),i.loc==r.ORIGIN){const Ge=De===0?I:w;return{x:Ge.x,y:Ge.y,t:i.t}}else if(i.loc==r.BETWEEN){const Ge=+(B+i.t*(_-B)).toPrecision(10),ie=+(N+i.t*(U-N)).toPrecision(10);return{x:Ge,y:ie,t:i.t}}return null}else{for(let ie=0;ie<2;ie++)if(o(ie===0?I:w,x,D),i.loc==r.ORIGIN){const ge=ie===0?I:w;return{x:ge.x,y:ge.y,t:i.t}}const De=+(B+re*(_-B)).toPrecision(10),Ge=+(N+re*(U-N)).toPrecision(10);return{x:De,y:Ge,t:re}}}function o(x,D,I){const w=I.x-D.x,B=I.y-D.y,_=x.x-D.x,F=x.y-D.y,P=w*F-_*B;if(x.x===D.x&&x.y===D.y){i.loc=r.ORIGIN,i.t=0;return}if(x.x===I.x&&x.y===I.y){i.loc=r.DESTINATION,i.t=1;return}if(P<-Number.EPSILON){i.loc=r.LEFT;return}if(P>Number.EPSILON){i.loc=r.RIGHT;return}if(w*_<0||B*F<0){i.loc=r.BEHIND;return}if(Math.sqrt(w*w+B*B)L.t<=q.t+Number.EPSILON&&L.t>=q.t-Number.EPSILON)===void 0&&(I.push(q),w.push(new st(q.x,q.y)))}}return w}function l(x,D,I){const w=new st;D.getCenter(w);const B=[];return I.forEach(_=>{_.boundingBox.containsPoint(w)&&a(x,_.points).forEach(P=>{B.push({identifier:_.identifier,isCW:_.isCW,point:P})})}),B.sort((_,F)=>_.point.x-F.point.x),B}function c(x,D,I,w,B){(B==null||B==="")&&(B="nonzero");const _=new st;x.boundingBox.getCenter(_);const F=[new st(I,_.y),new st(w,_.y)],P=l(F,x.boundingBox,D);P.sort((he,Ie)=>he.point.x-Ie.point.x);const N=[],U=[];P.forEach(he=>{he.identifier===x.identifier?N.push(he):U.push(he)});const q=N[0].point.x,L=[];let z=0;for(;z0&&L[L.length-1]===U[z].identifier?L.pop():L.push(U[z].identifier),z++;if(L.push(x.identifier),B==="evenodd"){const he=L.length%2===0,Ie=L[L.length-2];return{identifier:x.identifier,isHole:he,for:Ie}}else if(B==="nonzero"){let he=!0,Ie=null,re=null;for(let _e=0;_e{const D=x.getPoints();let I=-999999999,w=999999999,B=-999999999,_=999999999;for(let F=0;FI&&(I=P.y),P.yB&&(B=P.x),P.x<_&&(_=P.x)}return d<=B&&(d=B+1),p>=_&&(p=_-1),{curves:x.curves,points:D,isCW:nl.isClockWise(D),identifier:-1,boundingBox:new qR(new st(_,w),new st(B,I))}});A=A.filter(x=>x.points.length>1);for(let x=0;xc(x,A,p,d,e.userData?e.userData.style.fillRule:void 0)),C=[];return A.forEach(x=>{if(!y[x.identifier].isHole){const I=new nh;I.curves=x.curves,y.filter(B=>B.isHole&&B.for===x.identifier).forEach(B=>{const _=A[B.identifier],F=new th;F.curves=_.curves,I.holes.push(F)}),C.push(I)}}),C}static getStrokeStyle(e,n,r,i,s){return e=e!==void 0?e:1,n=n!==void 0?n:"#000",r=r!==void 0?r:"miter",i=i!==void 0?i:"butt",s=s!==void 0?s:4,{strokeColor:n,strokeWidth:e,strokeLineJoin:r,strokeLineCap:i,strokeMiterLimit:s}}static pointsToStroke(e,n,r,i){const s=[],o=[],a=[];if(FA.pointsToStrokeWithBuffers(e,n,r,i,s,o,a)===0)return null;const l=new Hn;return l.setAttribute("position",new fn(s,3)),l.setAttribute("normal",new fn(o,3)),l.setAttribute("uv",new fn(a,2)),l}static pointsToStrokeWithBuffers(e,n,r,i,s,o,a,l){const c=new st,p=new st,d=new st,A=new st,y=new st,C=new st,x=new st,D=new st,I=new st,w=new st,B=new st,_=new st,F=new st,P=new st,N=new st,U=new st,q=new st;r=r!==void 0?r:12,i=i!==void 0?i:.001,l=l!==void 0?l:0,e=Ne(e);const L=e.length;if(L<2)return 0;const z=e[0].equals(e[L-1]);let he,Ie=e[0],re;const _e=n.strokeWidth/2,De=1/(L-1);let Ge=0,ie,ge,ve,Ae,Ue=!1,we=0,K=l*3,oe=l*2;Y(e[0],e[1],c).multiplyScalar(_e),D.copy(e[0]).sub(c),I.copy(e[0]).add(c),w.copy(D),B.copy(I);for(let be=1;beNumber.EPSILON){const lt=_e/He;d.multiplyScalar(-lt),A.subVectors(he,Ie),y.copy(A).setLength(lt).add(d),U.copy(y).negate();const Se=y.length(),W=A.length();A.divideScalar(W),C.subVectors(re,he);const $=C.length();switch(C.divideScalar($),A.dot(U)=i&&He.push(be[lt]);return He.push(be[be.length-1]),He}}}function KY(t,e,n,r,i,s){const o=[],a=Yt([]),l=Yt([]);Hu(a,o);const c=Yt(void 0),p=Ou(e,n,r,{...Gu,...Uu(t.root.size),...zu(a),...Ru(l)},GC,he=>he.add("aspectRatio",c)),d=Yt(void 0),A=ku();Dh(d,A,t,p,i,!0,o);const y=Pu(p,A,t.root.pixelSize);Qu(t.root,i,y,o);const C=Ih(t.childrenMatrix,y),x=xh(t.clippingRect,C,A.size,t.root.pixelSize),D=Lu(A,x,p),I=ld(p),w=Ts(p,Yi.Panel,I,t.orderInfo);o.push(he=>Ul(p,w,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,od(),he));const B=Ts(void 0,Yi.Svg,void 0,w),_=bn(()=>{var he,Ie;return bs((he=e.value)==null?void 0:he.src)??bs((Ie=n.value)==null?void 0:Ie.src)}),F=Yt(void 0),P=x0(t.root,t.clippingRect);kL(F,eX,WJ,o,_,t.root,P,t.clippingRect,B,c),RL(p,F,o,t.root);const N=ZY(t.root,A,F,c,D,o),U=zC();jC(s,U,t.root.pixelSize,o);const q=WC(U,C,t.root.pixelSize);JC(p,U,A,C,D,t.clippingRect,B,t.root.panelGroupManager,o);const L=ad(B,t.root,t.clippingRect,A.size,o),z=VC(U,t.anyAncestorScrollable,A,i,L,n,t.root,o);return Fu(e,n,A.size,o),vh(e,n,x,o),Object.assign(A,{scrollPosition:U,isClipped:x,mergedProperties:p,anyAncestorScrollable:uB(A.scrollable,t.anyAncestorScrollable),clippingRect:UC(C,A,t.root.pixelSize,t.clippingRect),childrenMatrix:q,node:d,orderInfo:B,root:t.root,initializers:o,centerGroup:N,handlers:Nu(e,n,r,a,l,z),interactionPanel:L})}function ZY(t,e,n,r,i,s){const o=new Cu;return o.matrixAutoUpdate=!1,s.push(()=>sn(()=>{ML(o.position,o.scale,e.size,e.paddingInset,e.borderInset,t.pixelSize.value,r.value??1),o.updateMatrix(),t.requestRender()}),()=>sn(()=>{const a=n.value;if(a!=null)return o.add(a),t.requestRender(),()=>{o.remove(a),t.requestRender()}}),()=>sn(()=>{o.visible=n.value!=null&&i.value,t.requestRender()})),o}const $Y=new FA,M1=new ji,Ap=new ue,wF=new Map;async function eX(t,e,n,r,i,s){if(t==null)return;const o=new Cu;o.matrixAutoUpdate=!1;let a=wF.get(t);a==null&&wF.set(t,a=await $Y.loadAsync(t)),M1.makeEmpty();for(const c of a.paths){const p=FA.createShapes(c),d=new Uo;d.transparent=!0,d.depthWrite=!1,d.toneMapped=!1,d.clippingPlanes=n;for(const A of p){const y=new bA(A);y.computeBoundingBox(),M1.union(y.boundingBox);const C=new gr(y,d);C.matrixAutoUpdate=!1,C.raycast=uh(C,C.raycast,e.object,r,i),sd(C,e,i),C.userData.color=c.color,C.scale.y=-1,C.updateMatrix(),o.add(C)}}M1.getSize(Ap),s.value=Ap.x/Ap.y;const l=1/Ap.y;return o.scale.set(1,1,1).multiplyScalar(l),M1.getCenter(Ap),Ap.y*=-1,o.position.copy(Ap).negate().multiplyScalar(l),o.updateMatrix(),o}function tX(t,e,n,r,i,s,o,a){const l=[],c=Yt([]),p=Yt([]);Hu(c,l);const d=Ou(i,s,o,{...Gu,...Uu(t.root.size),...zu(c),...Ru(p)},GC,P=>{P.add("aspectRatio",n/r),P.add("width",n),P.add("height",r)}),A=ku();Dh(void 0,A,t,d,a,!0,l);const y=Pu(d,A,t.root.pixelSize);Qu(t.root,a,y,l);const C=Ih(t.childrenMatrix,y),x=xh(t.clippingRect,C,A.size,t.root.pixelSize),D=Lu(A,x,d),I=ld(d),w=Ts(d,Yi.Panel,I,t.orderInfo);l.push(P=>Ul(d,w,I,t.root.panelGroupManager,C,A.size,void 0,A.borderInset,t.clippingRect,D,od(),P));const B=Ts(void 0,Yi.Svg,void 0,w),_=x0(t.root,t.clippingRect),F=rX(d,e,n,r,t,B,A,D,_,l);return Fu(i,s,A.size,l),vh(i,s,x,l),Object.assign(A,{isClipped:x,mergedProperties:d,initializers:l,iconGroup:F,handlers:Nu(i,s,o,c,p),interactionPanel:ad(B,t.root,t.clippingRect,A.size,l)})}const nX=new FA;function rX(t,e,n,r,i,s,o,a,l,c){const p=new Cu;p.matrixAutoUpdate=!1;const d=nX.parse(e);for(const y of d.paths){const C=FA.createShapes(y),x=new Uo;x.transparent=!0,x.depthWrite=!1,x.toneMapped=!1,x.clippingPlanes=l;for(const D of C){const I=new bA(D);I.computeBoundingBox();const w=new gr(I,x);w.matrixAutoUpdate=!1,w.raycast=uh(w,w.raycast,i.root.object,i.clippingRect,s),sd(w,i.root,s),w.userData.color=y.color,w.scale.y=-1,w.updateMatrix(),p.add(w)}}const A=n/r;return c.push(()=>sn(()=>{ML(p.position,p.scale,o.size,o.paddingInset,o.borderInset,i.root.pixelSize.value,A),p.position.x-=p.scale.x*A/2,p.position.y+=p.scale.x/2,p.scale.divideScalar(r),p.updateMatrix(),i.root.requestRender()}),()=>sn(()=>{p.visible=a.value,i.root.requestRender()})),RL(t,p,c,i.root),p}const iX=["caretBorderRightWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderBottomWidth"];let BF;function sX(){return BF??(BF=I0({backgroundColor:"caretColor",backgroundOpacity:"caretOpacity",borderBend:"caretBorderBend",borderBottomLeftRadius:"caretBorderBottomLeftRadius",borderBottomRightRadius:"caretBorderBottomRightRadius",borderColor:"caretBorderColor",borderOpacity:"caretBorderOpacity",borderTopLeftRadius:"caretBorderTopLeftRadius",borderTopRightRadius:"caretBorderTopRightRadius"},{backgroundColor:0,backgroundOpacity:1})),BF}function oX(t,e,n,r,i,s,o,a){const l=Ts(void 0,Yi.Panel,HC,i),c=Yt(void 0);a.push(()=>sn(()=>{const A=n.value;A==null&&(c.value=void 0),c.value=A;const y=setInterval(()=>c.value=c.peek()==null?A:void 0,500);return()=>clearInterval(y)}));const p=sB(t,iX),d=nr(t,"caretWidth",1.5);a.push(A=>Ul(t,l,void 0,o,e,bn(()=>{const y=c.value;return y==null?[0,0]:[d.value,y[2]]}),bn(()=>{const y=c.value;return y==null?[0,0]:[y[0]-d.value/2,y[1]]}),p,s,r,sX(),A))}const aX=["selectionBorderRightWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderBottomWidth"];let bF;function lX(){return bF??(bF=I0({backgroundColor:"selectionColor",backgroundOpacity:"selectionOpacity",borderBend:"selectionBorderBend",borderBottomLeftRadius:"selectionBorderBottomLeftRadius",borderBottomRightRadius:"selectionBorderBottomRightRadius",borderColor:"selectionBorderColor",borderOpacity:"selectionBorderOpacity",borderTopLeftRadius:"selectionBorderTopLeftRadius",borderTopRightRadius:"selectionBorderTopRightRadius"},{backgroundColor:11851775,backgroundOpacity:1})),bF}function uX(t,e,n,r,i,s,o,a){const l=[],c=Ts(void 0,Yi.Panel,HC,i),p=sB(t,aX);return a.push(()=>sn(()=>{const d=n.value,A=d.length;for(let C=0;C()=>{const d=l.length;for(let A=0;At.value)}}const hX=new Set;function pX(t){hX.add(t)}function dX(t,e,n,r,i,s){var Ae,Ue,we,K,oe,Y;const o=Yt([]),a=Yt([]),l=Yt(!1),c=[];Hu(o,c);const p=Ou(n,r,i,{...Gu,...Uu(t.root.size),...zu(o),...Ru(a),...cX(l)},void 0,Z=>{OC(n.value,r.value,i.value,Le=>{Z.add("caretOpacity",Le.opacity),Z.add("caretColor",Le.color)})}),d=ku(),A=Yt(void 0);Dh(A,d,t,p,s,!1,c);const y=Pu(p,d,t.root.pixelSize);Qu(t.root,s,y,c);const C=Ih(t.childrenMatrix,y),x=xh(t.clippingRect,C,d.size,t.root.pixelSize),D=Lu(d,x,p),I=ld(p),w=Ts(p,Yi.Panel,I,t.orderInfo);c.push(Z=>Ul(p,w,I,t.root.panelGroupManager,C,d.size,void 0,d.borderInset,t.clippingRect,D,od(),Z));const B={},_=Yt([]),F=Yt(void 0),P=Yt(void 0);oX(p,C,F,D,w,t.clippingRect,t.root.panelGroupManager,c);const N=uX(p,C,_,D,w,t.clippingRect,t.root.panelGroupManager,c),U=n4(p,e,t.root.renderer,c),q=Ts(void 0,Yi.Text,i4(U),N),L=((Ae=n.peek())==null?void 0:Ae.defaultValue)??((Ue=r.peek())==null?void 0:Ue.defaultValue),z=((we=n.peek())==null?void 0:we.value)==null&&((K=r.peek())==null?void 0:K.value)==null?Yt(L??""):void 0,he=bn(()=>{var Z,Le;return(z==null?void 0:z.value)??bs((Z=n.value)==null?void 0:Z.value)??bs((Le=r.value)==null?void 0:Le.value)??""}),Ie=gI(n,r,"type","text"),re=bn(()=>Ie.value==="text"?he.value:"*".repeat(he.value.length??0)),_e=((oe=n.peek())==null?void 0:oe.multiline)??((Y=r.peek())==null?void 0:Y.multiline)??!1,De=s4(p,re,C,A,d,D,t.clippingRect,q,U,t.root.gylphGroupManager,P,_,F,B,c,_e?"break-word":"keep-all");c.push(()=>sn(()=>{var Z;return(Z=A.value)==null?void 0:Z.setCustomLayouting(De.value)})),Fu(n,r,d.size,c),vh(n,r,x,c);const Ge=gI(n,r,"disabled",!1),ie=AX(he,P,Z=>{var Le,ze,Fe,je;z!=null&&(z.value=Z),(ze=(Le=n.peek())==null?void 0:Le.onValueChange)==null||ze.call(Le,Z),(je=(Fe=r.peek())==null?void 0:Fe.onValueChange)==null||je.call(Fe,Z)},_e,Ie,Ge,gI(n,r,"tabIndex",0),c),ge=(Z,Le,ze)=>{const Fe=ie.peek();Fe!=null&&(l.peek()||Fe.focus(),Z!=null&&Le!=null&&Fe.setSelectionRange(Z,Le,ze),P.value=[Fe.selectionStart??0,Fe.selectionEnd??0])};gX(ie,l,c,Z=>{var Le,ze,Fe,je;(ze=(Le=r.peek())==null?void 0:Le.onFocusChange)==null||ze.call(Le,Z),(je=(Fe=n.peek())==null?void 0:Fe.onFocusChange)==null||je.call(Fe,Z)});const ve=fX(d,B,ge,Ge);return Object.assign(d,{isClipped:x,mergedProperties:p,valueSignal:he,focus:()=>ge(),root:t.root,element:ie,node:A,interactionPanel:ad(w,t.root,t.clippingRect,d.size,c),handlers:Nu(n,r,i,o,a,ve,"text"),initializers:c})}function fX(t,e,n,r){return bn(()=>{if(r.value)return;let i;return{onPointerDown:s=>{var a;if(s.defaultPrevented||s.uv==null||e.current==null)return;pX(s.nativeEvent),(a=s.stopPropagation)==null||a.call(s);const o=TF(t,s.uv,e.current);i=o,setTimeout(()=>n(o,o))},onPointerUp:s=>{i=void 0},onPointerLeave:s=>{i=void 0},onPointerMove:s=>{var p;if(i==null||s.uv==null||e.current==null)return;(p=s.stopPropagation)==null||p.call(s);const o=TF(t,s.uv,e.current),a=Math.min(i,o),l=Math.max(i,o),c=in(a,l,c))}}})}function AX(t,e,n,r,i,s,o,a){const l=Yt(void 0);return a.push(c=>{const p=document.createElement(r?"textarea":"input"),d=p.style;d.setProperty("position","absolute"),d.setProperty("left","-1000vw"),d.setProperty("top","0"),d.setProperty("pointerEvents","none"),d.setProperty("opacity","0"),p.addEventListener("input",()=>{n==null||n(p.value),A()});const A=()=>{const{selectionStart:y,selectionEnd:C}=p;if(y==null||C==null){e.value=void 0;return}const x=e.peek();x!=null&&x[0]===y&&x[1]===C||(e.value=[y,C])};return p.addEventListener("keydown",A),p.addEventListener("keyup",A),p.addEventListener("blur",()=>e.value=void 0),document.body.appendChild(p),l.value=p,c.push(()=>{l.value=void 0,p.remove()},sn(()=>p.value=t.value),sn(()=>p.disabled=s.value),sn(()=>p.tabIndex=o.value),sn(()=>p.setAttribute("type",i.value))),c}),l}function gX(t,e,n,r){n.push(()=>sn(()=>{const i=t.value;if(i==null)return;e.value=document.activeElement===i;const s=()=>{const o=document.activeElement===i;o!=e.value&&(e.value=o,r(o))};return i.addEventListener("focus",s),i.addEventListener("blur",s),()=>{i.removeEventListener("focus",s),i.removeEventListener("blur",s)}}))}function TF({size:t,borderInset:e,paddingInset:n},r,i){const s=t.peek(),o=e.peek(),a=n.peek();if(s==null||o==null||a==null)return 0;const[l,c]=s,[p,,,d]=o,[A,,,y]=a,C=r.x*l-d-y,x=-r.y*c+p+A;return i.getCharIndex(C,x)}function mX(t,e,n,r,i,s){const o=Yt([]),a=Yt([]),l=[];Hu(o,l);const c=Ou(e,n,r,{...Gu,...Uu(t.root.size),...zu(o),...Ru(a)}),p=ku();Dh(void 0,p,t,c,i,!0,l);const d=Pu(c,p,t.root.pixelSize);Qu(t.root,i,d,l);const A=Ih(t.childrenMatrix,d),y=xh(t.clippingRect,A,p.size,t.root.pixelSize),C=Lu(p,y,c),x=Ts(c,Yi.Custom,void 0,t.orderInfo),D=x0(t.root,t.clippingRect);return l.push(I=>{const w=s.current;if(w==null)return I;if(w.matrixAutoUpdate=!1,w.material instanceof Ni){const B=w.material;B.clippingPlanes=D,B.needsUpdate=!0,B.shadowSide=Sa,I.push(()=>sn(()=>{B.depthTest=t.root.depthTest.value,t.root.requestRender()}))}return w.raycast=uh(w,w.raycast,t.root.object,t.clippingRect,x),sd(w,t.root,x),I.push(sn(()=>{w.renderOrder=t.root.renderOrder.value,t.root.requestRender()}),sn(()=>{w.receiveShadow=c.value.read("receiveShadow",!1),t.root.requestRender()}),sn(()=>{w.castShadow=c.value.read("castShadow",!1),t.root.requestRender()}),sn(()=>{if(p.size.value==null)return;const[B,_]=p.size.value,F=t.root.pixelSize.value;w.scale.set(B*F,_*F,1),w.updateMatrix(),t.root.requestRender()}),sn(()=>{w.visible=C.value,t.root.requestRender()})),I}),Fu(e,n,p.size,l),vh(e,n,y,l),Object.assign(p,{isClipped:y,mergedProperties:c,root:t.root,handlers:Nu(e,n,r,o,a),initializers:l})}function yX(t,e,n,r,i,s){const o=Yt([]),a=Yt([]),l=[],c=ku();Hu(o,l);const p=Yt(new ue(1,1,1)),d=bn(()=>p.value.x/p.value.y),A=Ou(e,n,r,{...Gu,...Uu(t.root.size),...zu(o),...Ru(a)},GC,_=>_.add("aspectRatio",d));Dh(void 0,c,t,A,i,!0,l);const y=Pu(A,c,t.root.pixelSize);Qu(t.root,i,y,l);const C=Ih(t.childrenMatrix,y),x=xh(t.clippingRect,C,c.size,t.root.pixelSize),D=Lu(c,x,A),I=ld(A),w=Ts(A,Yi.Panel,I,t.orderInfo);l.push(_=>Ul(A,w,I,t.root.panelGroupManager,C,c.size,void 0,c.borderInset,t.clippingRect,D,od(),_));const B=Ts(void 0,Yi.Object,void 0,w);return Fu(e,n,c.size,l),vh(e,n,x,l),Object.assign(c,{isClipped:x,mergedProperties:A,remeasureContent:vX(A,t.root,c,t.clippingRect,D,B,p,s,l),interactionPanel:ad(w,t.root,t.clippingRect,c.size,l),handlers:Nu(e,n,r,o,a),initializers:l})}const QI=new ji,MF=new ue().setScalar(.001),EX=new ue,CX="back";function vX(t,e,n,r,i,s,o,a,l){const c=x0(e,r),p=nr(t,"depthAlign",CX),d=nr(t,"keepAspectRatio",!0),A=new ue,y=new ue,C=(D,I,w,B)=>{D!=null&&(D.visible=I,D.traverse(_=>{_ instanceof gr&&(_.renderOrder=w,_.material instanceof Ni&&(_.material.depthTest=B))}),e.requestRender())},x=()=>{const D=a.current;if(D==null){A.copy(MF),y.set(0,0,0);return}D.traverse(w=>{w instanceof gr&&(sd(w,e,s),w.material.clippingPlanes=c,w.material.needsUpdate=!0,w.raycast=uh(w,w.raycast,e.object,r,s))});const I=D.parent;D.parent=null,QI.setFromObject(D),QI.getSize(A).max(MF),o.value=A,I!=null&&(D.parent=I),QI.getCenter(y),e.requestRender()};return l.push(()=>sn(()=>{C(a.current,i.value,e.renderOrder.value,e.depthTest.value),e.requestRender()}),D=>{const I=a.current;return I==null||(x(),D.push(sn(()=>{const{size:{value:w},paddingInset:{value:B},borderInset:{value:_}}=n;if(w==null||B==null||_==null)return;const[F,P]=w,[N,U,q,L]=B,[z,he,Ie,re]=_,_e=N+z,De=U+he,Ge=q+Ie,ie=L+re,ge=F-ie-De,ve=P-_e-Ge,Ae=e.pixelSize.value;I.scale.set(ge*Ae,ve*Ae,d.value?ve*Ae*A.z/A.y:A.z).divide(A),I.position.copy(y).negate(),I.position.z-=oJ[p.value]*A.z,I.position.multiply(I.scale),I.position.add(EX.set((ie-De)*.5*Ae,(Ge-_e)*.5*Ae,0)),I.updateMatrix(),e.requestRender()}))),D}),()=>{C(a.current,i.peek(),e.renderOrder.peek(),e.depthTest.peek()),x()}}function xX(t,e,n,r,i,s){if(i instanceof ki){const o=2*Math.tan(Math.PI*i.fov/360)*r;n.value=o/s,e.value=o,t.value=o*i.aspect}if(i instanceof SA){const o=i.top-i.bottom,a=i.right-i.left;n.value=o/s,e.value=o,t.value=a}}function IX(t,{src:e,autoplay:n,loop:r,muted:i,playbackRate:s,preservesPitch:o,volume:a}){if(!(e instanceof HTMLElement)){if(t.playsInline=!0,t.volume=a??1,t.preservesPitch=o??!0,t.playbackRate=s??1,t.muted=i??!1,t.loop=r??!1,t.autoplay=n??!1,e==null){t.removeAttribute("src"),t.removeAttribute("srcObject");return}typeof e=="string"?t.src=e:t.srcObject=e}}function DX(t,e){let n;const r=()=>{e(),n=t.requestVideoFrameCallback(r)};return n=t.requestVideoFrameCallback(r),()=>t.cancelVideoFrameCallback(n)}function Hu(t,e){e.push(()=>()=>o4(t))}function SX(t,e,n,r,i,s){let o=!1;OC(e,n,r,l=>{"hover"in l&&(o=!0)});const a=(e==null?void 0:e.cursor)??(n==null?void 0:n.cursor)??s;if(!o&&(e==null?void 0:e.onHoverChange)==null&&(n==null?void 0:n.onHoverChange)==null&&a==null){i.value.length=0;return}Up("onPointerOver",t,({pointerId:l})=>{var c,p;i.value=[l,...i.value],i.value.length===1&&((c=n==null?void 0:n.onHoverChange)==null||c.call(n,!0),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!0)),a!=null&&wX(i,a)}),Up("onPointerOut",t,({pointerId:l})=>{var c,p;i.value=i.value.filter(d=>d!=l),i.value.length===0&&((c=n==null?void 0:n.onHoverChange)==null||c.call(n,!1),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!1)),o4(i)})}function zu(t){return{hover:v0(()=>t.value.length>0)}}const t2=[],nE=[];function wX(t,e){t2.push(t),nE.push(e),document.body.style.cursor=e}function o4(t){const e=t2.indexOf(t);e!=-1&&(t2.splice(e,1),nE.splice(e,1),document.body.style.cursor=nE[nE.length-1]??"default")}var _F={},BX=Object.create,YC=Object.defineProperty,bX=Object.getOwnPropertyDescriptor,TX=Object.getOwnPropertyNames,MX=Object.getPrototypeOf,_X=Object.prototype.hasOwnProperty,D0=(t,e)=>()=>(t&&(e=t(t=0)),e),Bt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),XC=(t,e)=>{for(var n in e)YC(t,n,{get:e[n],enumerable:!0})},a4=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of TX(e))!_X.call(t,i)&&i!==n&&YC(t,i,{get:()=>e[i],enumerable:!(r=bX(e,i))||r.enumerable});return t},Xi=(t,e,n)=>(n=t!=null?BX(MX(t)):{},a4(e||!t||!t.__esModule?YC(n,"default",{value:t,enumerable:!0}):n,t)),Kp=t=>a4(YC({},"__esModule",{value:!0}),t),l4,FX=D0(()=>{l4=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} `}),u4={};XC(u4,{default:()=>c4});var c4,dB=D0(()=>{FX(),c4={readFileSync:()=>l4}}),PX=Bt((t,e)=>{var n=class{constructor(r={}){if(!(r.maxSize&&r.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof r.maxAge=="number"&&r.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=r.maxSize,this.maxAge=r.maxAge||1/0,this.onEviction=r.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(r){if(typeof this.onEviction=="function")for(let[i,s]of r)this.onEviction(i,s.value)}_deleteIfExpired(r,i){return typeof i.expiry=="number"&&i.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(r,i.value),this.delete(r)):!1}_getOrDeleteIfExpired(r,i){if(this._deleteIfExpired(r,i)===!1)return i.value}_getItemValue(r,i){return i.expiry?this._getOrDeleteIfExpired(r,i):i.value}_peek(r,i){let s=i.get(r);return this._getItemValue(r,s)}_set(r,i){this.cache.set(r,i),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(r,i){this.oldCache.delete(r),this._set(r,i)}*_entriesAscending(){for(let r of this.oldCache){let[i,s]=r;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield r)}for(let r of this.cache){let[i,s]=r;this._deleteIfExpired(i,s)===!1&&(yield r)}}get(r){if(this.cache.has(r)){let i=this.cache.get(r);return this._getItemValue(r,i)}if(this.oldCache.has(r)){let i=this.oldCache.get(r);if(this._deleteIfExpired(r,i)===!1)return this._moveToRecent(r,i),i.value}}set(r,i,{maxAge:s=this.maxAge===1/0?void 0:Date.now()+this.maxAge}={}){this.cache.has(r)?this.cache.set(r,{value:i,maxAge:s}):this._set(r,{value:i,expiry:s})}has(r){return this.cache.has(r)?!this._deleteIfExpired(r,this.cache.get(r)):this.oldCache.has(r)?!this._deleteIfExpired(r,this.oldCache.get(r)):!1}peek(r){if(this.cache.has(r))return this._peek(r,this.cache);if(this.oldCache.has(r))return this._peek(r,this.oldCache)}delete(r){let i=this.cache.delete(r);return i&&this._size--,this.oldCache.delete(r)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(r){if(!(r&&r>0))throw new TypeError("`maxSize` must be a number greater than 0");let i=[...this._entriesAscending()],s=i.length-r;s<0?(this.cache=new Map(i),this.oldCache=new Map,this._size=i.length):(s>0&&this._emitEvictions(i.slice(0,s)),this.oldCache=new Map(i.slice(s)),this.cache=new Map,this._size=0),this.maxSize=r}*keys(){for(let[r]of this)yield r}*values(){for(let[,r]of this)yield r}*[Symbol.iterator](){for(let r of this.cache){let[i,s]=r;this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}for(let r of this.oldCache){let[i,s]=r;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}}*entriesDescending(){let r=[...this.cache];for(let i=r.length-1;i>=0;--i){let s=r[i],[o,a]=s;this._deleteIfExpired(o,a)===!1&&(yield[o,a.value])}r=[...this.oldCache];for(let i=r.length-1;i>=0;--i){let s=r[i],[o,a]=s;this.cache.has(o)||this._deleteIfExpired(o,a)===!1&&(yield[o,a.value])}}*entriesAscending(){for(let[r,i]of this._entriesAscending())yield[r,i.value]}get size(){if(!this._size)return this.oldCache.size;let r=0;for(let i of this.oldCache.keys())this.cache.has(i)||r++;return Math.min(this._size+r,this.maxSize)}};e.exports=n}),h4={};XC(h4,{default:()=>p4});var p4,d4=D0(()=>{p4={yellow:t=>t}}),f4=Bt(()=>{}),fB=Bt((t,e)=>{var n=(d4(),Kp(h4)),r=f4(),i=class extends Error{constructor(s,o,a,l,c,p){super(s),this.name="CssSyntaxError",this.reason=s,c&&(this.file=c),l&&(this.source=l),p&&(this.plugin=p),typeof o<"u"&&typeof a<"u"&&(typeof o=="number"?(this.line=o,this.column=a):(this.line=o.line,this.column=o.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let o=this.source;s==null&&(s=n.isColorSupported),r&&s&&(o=r(o));let a=o.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),p=String(c).length,d,A;if(s){let{bold:y,gray:C,red:x}=n.createColors(!0);d=D=>y(x(D)),A=D=>C(D)}else d=A=y=>y;return a.slice(l,c).map((y,C)=>{let x=l+1+C,D=" "+(" "+x).slice(-p)+" | ";if(x===this.line){let I=A(D.replace(/\d/g," "))+y.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+A(D)+y+` `+I+d("^")}return" "+A(D)+y}).join(` `)}toString(){let s=this.showSourceCode();return s&&(s=` @@ -4081,12 +4081,12 @@ No matching component was found for: `;this.css.includes(`\r `)&&(C=`\r `),this.css+=C+"/*# sourceMappingURL="+y+" */"}applyPrevMaps(){for(let y of this.previous()){let C=this.toUrl(this.path(y.file)),x=y.root||i(y.file),D;this.mapOpts.sourcesContent===!1?(D=new n(y.text),D.sourcesContent&&(D.sourcesContent=D.sourcesContent.map(()=>null))):D=y.consumer(),this.map.applySourceMap(D,C,this.toUrl(this.path(x)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let y;for(let C=this.root.nodes.length-1;C>=0;C--)y=this.root.nodes[C],y.type==="comment"&&y.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(C)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&p&&this.isMap())return this.generateMap();{let y="";return this.stringify(this.root,C=>{y+=C}),[y]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let y=this.previous()[0].consumer();y.file=this.outputFile(),this.map=r.fromSourceMap(y)}else this.map=new r({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new r({file:this.outputFile()});let y=1,C=1,x="",D={generated:{column:0,line:0},original:{column:0,line:0},source:""},I,w;this.stringify(this.root,(B,_,F)=>{if(this.css+=B,_&&F!=="end"&&(D.generated.line=y,D.generated.column=C-1,_.source&&_.source.start?(D.source=this.sourcePath(_),D.original.line=_.source.start.line,D.original.column=_.source.start.column-1,this.map.addMapping(D)):(D.source=x,D.original.line=1,D.original.column=0,this.map.addMapping(D))),I=B.match(/\n/g),I?(y+=I.length,w=B.lastIndexOf(` -`),C=B.length-w):C+=B.length,_&&F!=="start"){let P=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==P.last||P.raws.semicolon)&&(_.source&&_.source.end?(D.source=this.sourcePath(_),D.original.line=_.source.end.line,D.original.column=_.source.end.column-1,D.generated.line=y,D.generated.column=C-2,this.map.addMapping(D)):(D.source=x,D.original.line=1,D.original.column=0,D.generated.line=y,D.generated.column=C-1,this.map.addMapping(D)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(y=>y.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let y=this.mapOpts.annotation;return typeof y<"u"&&y!==!0?!1:this.previous().length?this.previous().some(C=>C.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(y=>y.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(y){if(this.mapOpts.absolute||y.charCodeAt(0)===60||/^\w+:\/\//.test(y))return y;let C=this.memoizedPaths.get(y);if(C)return C;let x=this.opts.to?i(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(x=i(o(x,this.mapOpts.annotation)));let D=s(x,y);return this.memoizedPaths.set(y,D),D}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(y=>{if(y.source&&y.source.input.map){let C=y.source.input.map;this.previousMaps.includes(C)||this.previousMaps.push(C)}});else{let y=new c(this.css,this.opts);y.map&&this.previousMaps.push(y.map)}return this.previousMaps}setSourcesContent(){let y={};if(this.root)this.root.walk(C=>{if(C.source){let x=C.source.input.from;if(x&&!y[x]){y[x]=!0;let D=this.usesFileUrls?this.toFileUrl(x):this.toUrl(this.path(x));this.map.setSourceContent(D,C.source.input.css)}}});else if(this.css){let C=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(C,this.css)}}sourcePath(y){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(y.source.input.from):this.toUrl(this.path(y.source.input.from))}toBase64(y){return Buffer?Buffer.from(y).toString("base64"):window.btoa(unescape(encodeURIComponent(y)))}toFileUrl(y){let C=this.memoizedFileURLs.get(y);if(C)return C;if(l){let x=l(y).toString();return this.memoizedFileURLs.set(y,x),x}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(y){let C=this.memoizedURLs.get(y);if(C)return C;a==="\\"&&(y=y.replace(/\\/g,"/"));let x=encodeURI(y).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(y,x),x}};e.exports=A}),nv=Bt((t,e)=>{var n=KC(),r=class extends n{constructor(i){super(i),this.type="comment"}};e.exports=r,r.default=r}),ud=Bt((t,e)=>{var{isClean:n,my:r}=AB(),i=ZC(),s=nv(),o=KC(),a,l,c,p;function d(C){return C.map(x=>(x.nodes&&(x.nodes=d(x.nodes)),delete x.source,x))}function A(C){if(C[n]=!1,C.proxyOf.nodes)for(let x of C.proxyOf.nodes)A(x)}var y=class extends o{append(...C){for(let x of C){let D=this.normalize(x,this.last);for(let I of D)this.proxyOf.nodes.push(I)}return this.markDirty(),this}cleanRaws(C){if(super.cleanRaws(C),this.nodes)for(let x of this.nodes)x.cleanRaws(C)}each(C){if(!this.proxyOf.nodes)return;let x=this.getIterator(),D,I;for(;this.indexes[x]C[x](...D.map(I=>typeof I=="function"?(w,B)=>I(w.toProxy(),B):I)):x==="every"||x==="some"?D=>C[x]((I,...w)=>D(I.toProxy(),...w)):x==="root"?()=>C.root().toProxy():x==="nodes"?C.nodes.map(D=>D.toProxy()):x==="first"||x==="last"?C[x].toProxy():C[x]:C[x]},set(C,x,D){return C[x]===D||(C[x]=D,(x==="name"||x==="params"||x==="selector")&&C.markDirty()),!0}}}index(C){return typeof C=="number"?C:(C.proxyOf&&(C=C.proxyOf),this.proxyOf.nodes.indexOf(C))}insertAfter(C,x){let D=this.index(C),I=this.normalize(x,this.proxyOf.nodes[D]).reverse();D=this.index(C);for(let B of I)this.proxyOf.nodes.splice(D+1,0,B);let w;for(let B in this.indexes)w=this.indexes[B],D"u")throw new Error("Value field is missed in node creation");typeof C.value!="string"&&(C.value=String(C.value)),C=[new i(C)]}else if(C.selector)C=[new l(C)];else if(C.name)C=[new c(C)];else if(C.text)C=[new s(C)];else throw new Error("Unknown node type in node creation");return C.map(D=>(D[r]||y.rebuild(D),D=D.proxyOf,D.parent&&D.parent.removeChild(D),D[n]&&A(D),typeof D.raws.before>"u"&&x&&typeof x.raws.before<"u"&&(D.raws.before=x.raws.before.replace(/\S/g,"")),D.parent=this.proxyOf,D))}prepend(...C){C=C.reverse();for(let x of C){let D=this.normalize(x,this.first,"prepend").reverse();for(let I of D)this.proxyOf.nodes.unshift(I);for(let I in this.indexes)this.indexes[I]=this.indexes[I]+D.length}return this.markDirty(),this}push(C){return C.parent=this,this.proxyOf.nodes.push(C),this}removeAll(){for(let C of this.proxyOf.nodes)C.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(C){C=this.index(C),this.proxyOf.nodes[C].parent=void 0,this.proxyOf.nodes.splice(C,1);let x;for(let D in this.indexes)x=this.indexes[D],x>=C&&(this.indexes[D]=x-1);return this.markDirty(),this}replaceValues(C,x,D){return D||(D=x,x={}),this.walkDecls(I=>{x.props&&!x.props.includes(I.prop)||x.fast&&!I.value.includes(x.fast)||(I.value=I.value.replace(C,D))}),this.markDirty(),this}some(C){return this.nodes.some(C)}walk(C){return this.each((x,D)=>{let I;try{I=C(x,D)}catch(w){throw x.addToError(w)}return I!==!1&&x.walk&&(I=x.walk(C)),I})}walkAtRules(C,x){return x?C instanceof RegExp?this.walk((D,I)=>{if(D.type==="atrule"&&C.test(D.name))return x(D,I)}):this.walk((D,I)=>{if(D.type==="atrule"&&D.name===C)return x(D,I)}):(x=C,this.walk((D,I)=>{if(D.type==="atrule")return x(D,I)}))}walkComments(C){return this.walk((x,D)=>{if(x.type==="comment")return C(x,D)})}walkDecls(C,x){return x?C instanceof RegExp?this.walk((D,I)=>{if(D.type==="decl"&&C.test(D.prop))return x(D,I)}):this.walk((D,I)=>{if(D.type==="decl"&&D.prop===C)return x(D,I)}):(x=C,this.walk((D,I)=>{if(D.type==="decl")return x(D,I)}))}walkRules(C,x){return x?C instanceof RegExp?this.walk((D,I)=>{if(D.type==="rule"&&C.test(D.selector))return x(D,I)}):this.walk((D,I)=>{if(D.type==="rule"&&D.selector===C)return x(D,I)}):(x=C,this.walk((D,I)=>{if(D.type==="rule")return x(D,I)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};y.registerParse=C=>{a=C},y.registerRule=C=>{l=C},y.registerAtRule=C=>{c=C},y.registerRoot=C=>{p=C},e.exports=y,y.default=y,y.rebuild=C=>{C.type==="atrule"?Object.setPrototypeOf(C,c.prototype):C.type==="rule"?Object.setPrototypeOf(C,l.prototype):C.type==="decl"?Object.setPrototypeOf(C,i.prototype):C.type==="comment"?Object.setPrototypeOf(C,s.prototype):C.type==="root"&&Object.setPrototypeOf(C,p.prototype),C[r]=!0,C.nodes&&C.nodes.forEach(x=>{y.rebuild(x)})}}),yB=Bt((t,e)=>{var n=ud(),r,i,s=class extends n{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new r(new i,this,o).stringify()}};s.registerLazyResult=o=>{r=o},s.registerProcessor=o=>{i=o},e.exports=s,s.default=s}),v4=Bt((t,e)=>{var n={};e.exports=function(r){n[r]||(n[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))}}),x4=Bt((t,e)=>{var n=class{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};e.exports=n,n.default=n}),EB=Bt((t,e)=>{var n=x4(),r=class{constructor(i,s,o){this.processor=i,this.messages=[],this.root=s,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let o=new n(i,s);return this.messages.push(o),o}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}};e.exports=r,r.default=r}),kX=Bt((t,e)=>{var n=39,r=34,i=92,s=47,o=10,a=32,l=12,c=9,p=13,d=91,A=93,y=40,C=41,x=123,D=125,I=59,w=42,B=58,_=64,F=/[\t\n\f\r "#'()/;[\\\]{}]/g,P=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,N=/.[\r\n"'(/\\]/,U=/[\da-f]/i;e.exports=function(q,L={}){let z=q.css.valueOf(),he=L.ignoreErrors,Ie,re,_e,De,Ge,ie,ge,ve,Ae,Ue,we=z.length,K=0,oe=[],Y=[];function Z(){return K}function Le(ae){throw q.error("Unclosed "+ae,K)}function ze(){return Y.length===0&&K>=we}function Fe(ae){if(Y.length)return Y.pop();if(K>=we)return;let Ne=ae?ae.ignoreUnclosed:!1;switch(Ie=z.charCodeAt(K),Ie){case o:case a:case c:case p:case l:{re=K;do re+=1,Ie=z.charCodeAt(re);while(Ie===a||Ie===o||Ie===c||Ie===p||Ie===l);Ue=["space",z.slice(K,re)],K=re-1;break}case d:case A:case x:case D:case B:case I:case C:{let be=String.fromCharCode(Ie);Ue=[be,be,K];break}case y:{if(ve=oe.length?oe.pop()[1]:"",Ae=z.charCodeAt(K+1),ve==="url"&&Ae!==n&&Ae!==r&&Ae!==a&&Ae!==o&&Ae!==c&&Ae!==l&&Ae!==p){re=K;do{if(ie=!1,re=z.indexOf(")",re+1),re===-1)if(he||Ne){re=K;break}else Le("bracket");for(ge=re;z.charCodeAt(ge-1)===i;)ge-=1,ie=!ie}while(ie);Ue=["brackets",z.slice(K,re+1),K,re],K=re}else re=z.indexOf(")",K+1),De=z.slice(K,re+1),re===-1||N.test(De)?Ue=["(","(",K]:(Ue=["brackets",De,K,re],K=re);break}case n:case r:{_e=Ie===n?"'":'"',re=K;do{if(ie=!1,re=z.indexOf(_e,re+1),re===-1)if(he||Ne){re=K+1;break}else Le("string");for(ge=re;z.charCodeAt(ge-1)===i;)ge-=1,ie=!ie}while(ie);Ue=["string",z.slice(K,re+1),K,re],K=re;break}case _:{F.lastIndex=K+1,F.test(z),F.lastIndex===0?re=z.length-1:re=F.lastIndex-2,Ue=["at-word",z.slice(K,re+1),K,re],K=re;break}case i:{for(re=K,Ge=!0;z.charCodeAt(re+1)===i;)re+=1,Ge=!Ge;if(Ie=z.charCodeAt(re+1),Ge&&Ie!==s&&Ie!==a&&Ie!==o&&Ie!==c&&Ie!==p&&Ie!==l&&(re+=1,U.test(z.charAt(re)))){for(;U.test(z.charAt(re+1));)re+=1;z.charCodeAt(re+1)===a&&(re+=1)}Ue=["word",z.slice(K,re+1),K,re],K=re;break}default:{Ie===s&&z.charCodeAt(K+1)===w?(re=z.indexOf("*/",K+2)+1,re===0&&(he||Ne?re=z.length:Le("comment")),Ue=["comment",z.slice(K,re+1),K,re],K=re):(P.lastIndex=K+1,P.test(z),P.lastIndex===0?re=z.length-1:re=P.lastIndex-2,Ue=["word",z.slice(K,re+1),K,re],oe.push(Ue),K=re);break}}return K++,Ue}function je(ae){Y.push(ae)}return{back:je,endOfFile:ze,nextToken:Fe,position:Z}}}),CB=Bt((t,e)=>{var n=ud(),r=class extends n{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}};e.exports=r,r.default=r,n.registerAtRule(r)}),S0=Bt((t,e)=>{var n=ud(),r,i,s=class extends n{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,a,l){let c=super.normalize(o);if(a){if(l==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let p of c)p.raws.before=a.raws.before}return c}removeChild(o,a){let l=this.index(o);return!a&&l===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[l].raws.before),super.removeChild(o)}toResult(o={}){return new r(new i,this,o).stringify()}};s.registerLazyResult=o=>{r=o},s.registerProcessor=o=>{i=o},e.exports=s,s.default=s,n.registerRoot(s)}),I4=Bt((t,e)=>{var n={comma(r){return n.split(r,[","],!0)},space(r){let i=[" ",` +`),C=B.length-w):C+=B.length,_&&F!=="start"){let P=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==P.last||P.raws.semicolon)&&(_.source&&_.source.end?(D.source=this.sourcePath(_),D.original.line=_.source.end.line,D.original.column=_.source.end.column-1,D.generated.line=y,D.generated.column=C-2,this.map.addMapping(D)):(D.source=x,D.original.line=1,D.original.column=0,D.generated.line=y,D.generated.column=C-1,this.map.addMapping(D)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(y=>y.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let y=this.mapOpts.annotation;return typeof y<"u"&&y!==!0?!1:this.previous().length?this.previous().some(C=>C.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(y=>y.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(y){if(this.mapOpts.absolute||y.charCodeAt(0)===60||/^\w+:\/\//.test(y))return y;let C=this.memoizedPaths.get(y);if(C)return C;let x=this.opts.to?i(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(x=i(o(x,this.mapOpts.annotation)));let D=s(x,y);return this.memoizedPaths.set(y,D),D}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(y=>{if(y.source&&y.source.input.map){let C=y.source.input.map;this.previousMaps.includes(C)||this.previousMaps.push(C)}});else{let y=new c(this.css,this.opts);y.map&&this.previousMaps.push(y.map)}return this.previousMaps}setSourcesContent(){let y={};if(this.root)this.root.walk(C=>{if(C.source){let x=C.source.input.from;if(x&&!y[x]){y[x]=!0;let D=this.usesFileUrls?this.toFileUrl(x):this.toUrl(this.path(x));this.map.setSourceContent(D,C.source.input.css)}}});else if(this.css){let C=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(C,this.css)}}sourcePath(y){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(y.source.input.from):this.toUrl(this.path(y.source.input.from))}toBase64(y){return Buffer?Buffer.from(y).toString("base64"):window.btoa(unescape(encodeURIComponent(y)))}toFileUrl(y){let C=this.memoizedFileURLs.get(y);if(C)return C;if(l){let x=l(y).toString();return this.memoizedFileURLs.set(y,x),x}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(y){let C=this.memoizedURLs.get(y);if(C)return C;a==="\\"&&(y=y.replace(/\\/g,"/"));let x=encodeURI(y).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(y,x),x}};e.exports=A}),nv=Bt((t,e)=>{var n=KC(),r=class extends n{constructor(i){super(i),this.type="comment"}};e.exports=r,r.default=r}),ud=Bt((t,e)=>{var{isClean:n,my:r}=AB(),i=ZC(),s=nv(),o=KC(),a,l,c,p;function d(C){return C.map(x=>(x.nodes&&(x.nodes=d(x.nodes)),delete x.source,x))}function A(C){if(C[n]=!1,C.proxyOf.nodes)for(let x of C.proxyOf.nodes)A(x)}var y=class extends o{append(...C){for(let x of C){let D=this.normalize(x,this.last);for(let I of D)this.proxyOf.nodes.push(I)}return this.markDirty(),this}cleanRaws(C){if(super.cleanRaws(C),this.nodes)for(let x of this.nodes)x.cleanRaws(C)}each(C){if(!this.proxyOf.nodes)return;let x=this.getIterator(),D,I;for(;this.indexes[x]C[x](...D.map(I=>typeof I=="function"?(w,B)=>I(w.toProxy(),B):I)):x==="every"||x==="some"?D=>C[x]((I,...w)=>D(I.toProxy(),...w)):x==="root"?()=>C.root().toProxy():x==="nodes"?C.nodes.map(D=>D.toProxy()):x==="first"||x==="last"?C[x].toProxy():C[x]:C[x]},set(C,x,D){return C[x]===D||(C[x]=D,(x==="name"||x==="params"||x==="selector")&&C.markDirty()),!0}}}index(C){return typeof C=="number"?C:(C.proxyOf&&(C=C.proxyOf),this.proxyOf.nodes.indexOf(C))}insertAfter(C,x){let D=this.index(C),I=this.normalize(x,this.proxyOf.nodes[D]).reverse();D=this.index(C);for(let B of I)this.proxyOf.nodes.splice(D+1,0,B);let w;for(let B in this.indexes)w=this.indexes[B],D"u")throw new Error("Value field is missed in node creation");typeof C.value!="string"&&(C.value=String(C.value)),C=[new i(C)]}else if(C.selector)C=[new l(C)];else if(C.name)C=[new c(C)];else if(C.text)C=[new s(C)];else throw new Error("Unknown node type in node creation");return C.map(D=>(D[r]||y.rebuild(D),D=D.proxyOf,D.parent&&D.parent.removeChild(D),D[n]&&A(D),typeof D.raws.before>"u"&&x&&typeof x.raws.before<"u"&&(D.raws.before=x.raws.before.replace(/\S/g,"")),D.parent=this.proxyOf,D))}prepend(...C){C=C.reverse();for(let x of C){let D=this.normalize(x,this.first,"prepend").reverse();for(let I of D)this.proxyOf.nodes.unshift(I);for(let I in this.indexes)this.indexes[I]=this.indexes[I]+D.length}return this.markDirty(),this}push(C){return C.parent=this,this.proxyOf.nodes.push(C),this}removeAll(){for(let C of this.proxyOf.nodes)C.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(C){C=this.index(C),this.proxyOf.nodes[C].parent=void 0,this.proxyOf.nodes.splice(C,1);let x;for(let D in this.indexes)x=this.indexes[D],x>=C&&(this.indexes[D]=x-1);return this.markDirty(),this}replaceValues(C,x,D){return D||(D=x,x={}),this.walkDecls(I=>{x.props&&!x.props.includes(I.prop)||x.fast&&!I.value.includes(x.fast)||(I.value=I.value.replace(C,D))}),this.markDirty(),this}some(C){return this.nodes.some(C)}walk(C){return this.each((x,D)=>{let I;try{I=C(x,D)}catch(w){throw x.addToError(w)}return I!==!1&&x.walk&&(I=x.walk(C)),I})}walkAtRules(C,x){return x?C instanceof RegExp?this.walk((D,I)=>{if(D.type==="atrule"&&C.test(D.name))return x(D,I)}):this.walk((D,I)=>{if(D.type==="atrule"&&D.name===C)return x(D,I)}):(x=C,this.walk((D,I)=>{if(D.type==="atrule")return x(D,I)}))}walkComments(C){return this.walk((x,D)=>{if(x.type==="comment")return C(x,D)})}walkDecls(C,x){return x?C instanceof RegExp?this.walk((D,I)=>{if(D.type==="decl"&&C.test(D.prop))return x(D,I)}):this.walk((D,I)=>{if(D.type==="decl"&&D.prop===C)return x(D,I)}):(x=C,this.walk((D,I)=>{if(D.type==="decl")return x(D,I)}))}walkRules(C,x){return x?C instanceof RegExp?this.walk((D,I)=>{if(D.type==="rule"&&C.test(D.selector))return x(D,I)}):this.walk((D,I)=>{if(D.type==="rule"&&D.selector===C)return x(D,I)}):(x=C,this.walk((D,I)=>{if(D.type==="rule")return x(D,I)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};y.registerParse=C=>{a=C},y.registerRule=C=>{l=C},y.registerAtRule=C=>{c=C},y.registerRoot=C=>{p=C},e.exports=y,y.default=y,y.rebuild=C=>{C.type==="atrule"?Object.setPrototypeOf(C,c.prototype):C.type==="rule"?Object.setPrototypeOf(C,l.prototype):C.type==="decl"?Object.setPrototypeOf(C,i.prototype):C.type==="comment"?Object.setPrototypeOf(C,s.prototype):C.type==="root"&&Object.setPrototypeOf(C,p.prototype),C[r]=!0,C.nodes&&C.nodes.forEach(x=>{y.rebuild(x)})}}),yB=Bt((t,e)=>{var n=ud(),r,i,s=class extends n{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new r(new i,this,o).stringify()}};s.registerLazyResult=o=>{r=o},s.registerProcessor=o=>{i=o},e.exports=s,s.default=s}),v4=Bt((t,e)=>{var n={};e.exports=function(r){n[r]||(n[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))}}),x4=Bt((t,e)=>{var n=class{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};e.exports=n,n.default=n}),EB=Bt((t,e)=>{var n=x4(),r=class{constructor(i,s,o){this.processor=i,this.messages=[],this.root=s,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let o=new n(i,s);return this.messages.push(o),o}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}};e.exports=r,r.default=r}),kX=Bt((t,e)=>{var n=39,r=34,i=92,s=47,o=10,a=32,l=12,c=9,p=13,d=91,A=93,y=40,C=41,x=123,D=125,I=59,w=42,B=58,_=64,F=/[\t\n\f\r "#'()/;[\\\]{}]/g,P=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,N=/.[\r\n"'(/\\]/,U=/[\da-f]/i;e.exports=function(q,L={}){let z=q.css.valueOf(),he=L.ignoreErrors,Ie,re,_e,De,Ge,ie,ge,ve,Ae,Ue,we=z.length,K=0,oe=[],Y=[];function Z(){return K}function Le(le){throw q.error("Unclosed "+le,K)}function ze(){return Y.length===0&&K>=we}function Fe(le){if(Y.length)return Y.pop();if(K>=we)return;let Ne=le?le.ignoreUnclosed:!1;switch(Ie=z.charCodeAt(K),Ie){case o:case a:case c:case p:case l:{re=K;do re+=1,Ie=z.charCodeAt(re);while(Ie===a||Ie===o||Ie===c||Ie===p||Ie===l);Ue=["space",z.slice(K,re)],K=re-1;break}case d:case A:case x:case D:case B:case I:case C:{let be=String.fromCharCode(Ie);Ue=[be,be,K];break}case y:{if(ve=oe.length?oe.pop()[1]:"",Ae=z.charCodeAt(K+1),ve==="url"&&Ae!==n&&Ae!==r&&Ae!==a&&Ae!==o&&Ae!==c&&Ae!==l&&Ae!==p){re=K;do{if(ie=!1,re=z.indexOf(")",re+1),re===-1)if(he||Ne){re=K;break}else Le("bracket");for(ge=re;z.charCodeAt(ge-1)===i;)ge-=1,ie=!ie}while(ie);Ue=["brackets",z.slice(K,re+1),K,re],K=re}else re=z.indexOf(")",K+1),De=z.slice(K,re+1),re===-1||N.test(De)?Ue=["(","(",K]:(Ue=["brackets",De,K,re],K=re);break}case n:case r:{_e=Ie===n?"'":'"',re=K;do{if(ie=!1,re=z.indexOf(_e,re+1),re===-1)if(he||Ne){re=K+1;break}else Le("string");for(ge=re;z.charCodeAt(ge-1)===i;)ge-=1,ie=!ie}while(ie);Ue=["string",z.slice(K,re+1),K,re],K=re;break}case _:{F.lastIndex=K+1,F.test(z),F.lastIndex===0?re=z.length-1:re=F.lastIndex-2,Ue=["at-word",z.slice(K,re+1),K,re],K=re;break}case i:{for(re=K,Ge=!0;z.charCodeAt(re+1)===i;)re+=1,Ge=!Ge;if(Ie=z.charCodeAt(re+1),Ge&&Ie!==s&&Ie!==a&&Ie!==o&&Ie!==c&&Ie!==p&&Ie!==l&&(re+=1,U.test(z.charAt(re)))){for(;U.test(z.charAt(re+1));)re+=1;z.charCodeAt(re+1)===a&&(re+=1)}Ue=["word",z.slice(K,re+1),K,re],K=re;break}default:{Ie===s&&z.charCodeAt(K+1)===w?(re=z.indexOf("*/",K+2)+1,re===0&&(he||Ne?re=z.length:Le("comment")),Ue=["comment",z.slice(K,re+1),K,re],K=re):(P.lastIndex=K+1,P.test(z),P.lastIndex===0?re=z.length-1:re=P.lastIndex-2,Ue=["word",z.slice(K,re+1),K,re],oe.push(Ue),K=re);break}}return K++,Ue}function je(le){Y.push(le)}return{back:je,endOfFile:ze,nextToken:Fe,position:Z}}}),CB=Bt((t,e)=>{var n=ud(),r=class extends n{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}};e.exports=r,r.default=r,n.registerAtRule(r)}),S0=Bt((t,e)=>{var n=ud(),r,i,s=class extends n{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,a,l){let c=super.normalize(o);if(a){if(l==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let p of c)p.raws.before=a.raws.before}return c}removeChild(o,a){let l=this.index(o);return!a&&l===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[l].raws.before),super.removeChild(o)}toResult(o={}){return new r(new i,this,o).stringify()}};s.registerLazyResult=o=>{r=o},s.registerProcessor=o=>{i=o},e.exports=s,s.default=s,n.registerRoot(s)}),I4=Bt((t,e)=>{var n={comma(r){return n.split(r,[","],!0)},space(r){let i=[" ",` `," "];return n.split(r,i)},split(r,i,s){let o=[],a="",l=!1,c=0,p=!1,d="",A=!1;for(let y of r)A?A=!1:y==="\\"?A=!0:p?y===d&&(p=!1):y==='"'||y==="'"?(p=!0,d=y):y==="("?c+=1:y===")"?c>0&&(c-=1):c===0&&i.includes(y)&&(l=!0),l?(a!==""&&o.push(a.trim()),a="",l=!1):a+=y;return(s||a!=="")&&o.push(a.trim()),o}};e.exports=n,n.default=n}),vB=Bt((t,e)=>{var n=ud(),r=I4(),i=class extends n{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(s){let o=this.selector?this.selector.match(/,\s*/):null,a=o?o[0]:","+this.raw("between","beforeOpen");this.selector=s.join(a)}};e.exports=i,i.default=i,n.registerRule(i)}),RX=Bt((t,e)=>{var n=ZC(),r=kX(),i=nv(),s=CB(),o=S0(),a=vB(),l={empty:!0,space:!0};function c(d){for(let A=d.length-1;A>=0;A--){let y=d[A],C=y[3]||y[2];if(C)return C}}var p=class{constructor(d){this.input=d,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:d,start:{column:1,line:1,offset:0}}}atrule(d){let A=new s;A.name=d[1].slice(1),A.name===""&&this.unnamedAtrule(A,d),this.init(A,d[2]);let y,C,x,D=!1,I=!1,w=[],B=[];for(;!this.tokenizer.endOfFile();){if(d=this.tokenizer.nextToken(),y=d[0],y==="("||y==="["?B.push(y==="("?")":"]"):y==="{"&&B.length>0?B.push("}"):y===B[B.length-1]&&B.pop(),B.length===0)if(y===";"){A.source.end=this.getPosition(d[2]),A.source.end.offset++,this.semicolon=!0;break}else if(y==="{"){I=!0;break}else if(y==="}"){if(w.length>0){for(x=w.length-1,C=w[x];C&&C[0]==="space";)C=w[--x];C&&(A.source.end=this.getPosition(C[3]||C[2]),A.source.end.offset++)}this.end(d);break}else w.push(d);else w.push(d);if(this.tokenizer.endOfFile()){D=!0;break}}A.raws.between=this.spacesAndCommentsFromEnd(w),w.length?(A.raws.afterName=this.spacesAndCommentsFromStart(w),this.raw(A,"params",w),D&&(d=w[w.length-1],A.source.end=this.getPosition(d[3]||d[2]),A.source.end.offset++,this.spaces=A.raws.between,A.raws.between="")):(A.raws.afterName="",A.params=""),I&&(A.nodes=[],this.current=A)}checkMissedSemicolon(d){let A=this.colon(d);if(A===!1)return;let y=0,C;for(let x=A-1;x>=0&&(C=d[x],!(C[0]!=="space"&&(y+=1,y===2)));x--);throw this.input.error("Missed semicolon",C[0]==="word"?C[3]+1:C[2])}colon(d){let A=0,y,C,x;for(let[D,I]of d.entries()){if(y=I,C=y[0],C==="("&&(A+=1),C===")"&&(A-=1),A===0&&C===":")if(!x)this.doubleColon(y);else{if(x[0]==="word"&&x[1]==="progid")continue;return D}x=y}return!1}comment(d){let A=new i;this.init(A,d[2]),A.source.end=this.getPosition(d[3]||d[2]),A.source.end.offset++;let y=d[1].slice(2,-2);if(/^\s*$/.test(y))A.text="",A.raws.left=y,A.raws.right="";else{let C=y.match(/^(\s*)([^]*\S)(\s*)$/);A.text=C[2],A.raws.left=C[1],A.raws.right=C[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(d,A){let y=new n;this.init(y,d[0][2]);let C=d[d.length-1];for(C[0]===";"&&(this.semicolon=!0,d.pop()),y.source.end=this.getPosition(C[3]||C[2]||c(d)),y.source.end.offset++;d[0][0]!=="word";)d.length===1&&this.unknownWord(d),y.raws.before+=d.shift()[1];for(y.source.start=this.getPosition(d[0][2]),y.prop="";d.length;){let w=d[0][0];if(w===":"||w==="space"||w==="comment")break;y.prop+=d.shift()[1]}y.raws.between="";let x;for(;d.length;)if(x=d.shift(),x[0]===":"){y.raws.between+=x[1];break}else x[0]==="word"&&/\w/.test(x[1])&&this.unknownWord([x]),y.raws.between+=x[1];(y.prop[0]==="_"||y.prop[0]==="*")&&(y.raws.before+=y.prop[0],y.prop=y.prop.slice(1));let D=[],I;for(;d.length&&(I=d[0][0],!(I!=="space"&&I!=="comment"));)D.push(d.shift());this.precheckMissedSemicolon(d);for(let w=d.length-1;w>=0;w--){if(x=d[w],x[1].toLowerCase()==="!important"){y.important=!0;let B=this.stringFrom(d,w);B=this.spacesFromEnd(d)+B,B!==" !important"&&(y.raws.important=B);break}else if(x[1].toLowerCase()==="important"){let B=d.slice(0),_="";for(let F=w;F>0;F--){let P=B[F][0];if(_.trim().indexOf("!")===0&&P!=="space")break;_=B.pop()[1]+_}_.trim().indexOf("!")===0&&(y.important=!0,y.raws.important=_,d=B)}if(x[0]!=="space"&&x[0]!=="comment")break}d.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(y.raws.between+=D.map(w=>w[1]).join(""),D=[]),this.raw(y,"value",D.concat(d),A),y.value.includes(":")&&!A&&this.checkMissedSemicolon(d)}doubleColon(d){throw this.input.error("Double colon",{offset:d[2]},{offset:d[2]+d[1].length})}emptyRule(d){let A=new a;this.init(A,d[2]),A.selector="",A.raws.between="",this.current=A}end(d){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(d[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(d)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(d){if(this.spaces+=d[1],this.current.nodes){let A=this.current.nodes[this.current.nodes.length-1];A&&A.type==="rule"&&!A.raws.ownSemicolon&&(A.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(d){let A=this.input.fromOffset(d);return{column:A.col,line:A.line,offset:d}}init(d,A){this.current.push(d),d.source={input:this.input,start:this.getPosition(A)},d.raws.before=this.spaces,this.spaces="",d.type!=="comment"&&(this.semicolon=!1)}other(d){let A=!1,y=null,C=!1,x=null,D=[],I=d[1].startsWith("--"),w=[],B=d;for(;B;){if(y=B[0],w.push(B),y==="("||y==="[")x||(x=B),D.push(y==="("?")":"]");else if(I&&C&&y==="{")x||(x=B),D.push("}");else if(D.length===0)if(y===";")if(C){this.decl(w,I);return}else break;else if(y==="{"){this.rule(w);return}else if(y==="}"){this.tokenizer.back(w.pop()),A=!0;break}else y===":"&&(C=!0);else y===D[D.length-1]&&(D.pop(),D.length===0&&(x=null));B=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(A=!0),D.length>0&&this.unclosedBracket(x),A&&C){if(!I)for(;w.length&&(B=w[w.length-1][0],!(B!=="space"&&B!=="comment"));)this.tokenizer.back(w.pop());this.decl(w,I)}else this.unknownWord(w)}parse(){let d;for(;!this.tokenizer.endOfFile();)switch(d=this.tokenizer.nextToken(),d[0]){case"space":this.spaces+=d[1];break;case";":this.freeSemicolon(d);break;case"}":this.end(d);break;case"comment":this.comment(d);break;case"at-word":this.atrule(d);break;case"{":this.emptyRule(d);break;default:this.other(d);break}this.endFile()}precheckMissedSemicolon(){}raw(d,A,y,C){let x,D,I=y.length,w="",B=!0,_,F;for(let P=0;PN+U[1],"");d.raws[A]={raw:P,value:w}}d[A]=w}rule(d){d.pop();let A=new a;this.init(A,d[0][2]),A.raws.between=this.spacesAndCommentsFromEnd(d),this.raw(A,"selector",d),this.current=A}spacesAndCommentsFromEnd(d){let A,y="";for(;d.length&&(A=d[d.length-1][0],!(A!=="space"&&A!=="comment"));)y=d.pop()[1]+y;return y}spacesAndCommentsFromStart(d){let A,y="";for(;d.length&&(A=d[0][0],!(A!=="space"&&A!=="comment"));)y+=d.shift()[1];return y}spacesFromEnd(d){let A,y="";for(;d.length&&(A=d[d.length-1][0],A==="space");)y=d.pop()[1]+y;return y}stringFrom(d,A){let y="";for(let C=A;C{var n=ud(),r=RX(),i=tv();function s(o,a){let l=new i(o,a),c=new r(l);try{c.parse()}catch(p){throw p}return c.root}e.exports=s,s.default=s,n.registerParse(s)}),D4=Bt((t,e)=>{var{isClean:n,my:r}=AB(),i=C4(),s=qC(),o=ud(),a=yB();v4();var l=EB(),c=xB(),p=S0(),d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},A={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},y={Once:!0,postcssPlugin:!0,prepare:!0},C=0;function x(F){return typeof F=="object"&&typeof F.then=="function"}function D(F){let P=!1,N=d[F.type];return F.type==="decl"?P=F.prop.toLowerCase():F.type==="atrule"&&(P=F.name.toLowerCase()),P&&F.append?[N,N+"-"+P,C,N+"Exit",N+"Exit-"+P]:P?[N,N+"-"+P,N+"Exit",N+"Exit-"+P]:F.append?[N,C,N+"Exit"]:[N,N+"Exit"]}function I(F){let P;return F.type==="document"?P=["Document",C,"DocumentExit"]:F.type==="root"?P=["Root",C,"RootExit"]:P=D(F),{eventIndex:0,events:P,iterator:0,node:F,visitorIndex:0,visitors:[]}}function w(F){return F[n]=!1,F.nodes&&F.nodes.forEach(P=>w(P)),F}var B={},_=class{constructor(F,P,N){this.stringified=!1,this.processed=!1;let U;if(typeof P=="object"&&P!==null&&(P.type==="root"||P.type==="document"))U=w(P);else if(P instanceof _||P instanceof l)U=w(P.root),P.map&&(typeof N.map>"u"&&(N.map={}),N.map.inline||(N.map.inline=!1),N.map.prev=P.map);else{let q=c;N.syntax&&(q=N.syntax.parse),N.parser&&(q=N.parser),q.parse&&(q=q.parse);try{U=q(P,N)}catch(L){this.processed=!0,this.error=L}U&&!U[r]&&o.rebuild(U)}this.result=new l(F,U,N),this.helpers={...B,postcss:B,result:this.result},this.plugins=this.processor.plugins.map(q=>typeof q=="object"&&q.prepare?{...q,...q.prepare(this.result)}:q)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(F){return this.async().catch(F)}finally(F){return this.async().then(F,F)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(F,P){let N=this.result.lastPlugin;try{P&&P.addToError(F),this.error=F,F.name==="CssSyntaxError"&&!F.plugin?(F.plugin=N.postcssPlugin,F.setMessage()):N.postcssVersion}catch(U){console&&console.error&&console.error(U)}return F}prepareVisitors(){this.listeners={};let F=(P,N,U)=>{this.listeners[N]||(this.listeners[N]=[]),this.listeners[N].push([P,U])};for(let P of this.plugins)if(typeof P=="object")for(let N in P){if(!A[N]&&/^[A-Z]/.test(N))throw new Error(`Unknown event ${N} in ${P.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!y[N])if(typeof P[N]=="object")for(let U in P[N])U==="*"?F(P,N,P[N][U]):F(P,N+"-"+U.toLowerCase(),P[N][U]);else typeof P[N]=="function"&&F(P,N,P[N])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let F=0;F0;){let N=this.visitTick(P);if(x(N))try{await N}catch(U){let q=P[P.length-1].node;throw this.handleError(U,q)}}}if(this.listeners.OnceExit)for(let[P,N]of this.listeners.OnceExit){this.result.lastPlugin=P;try{if(F.type==="document"){let U=F.nodes.map(q=>N(q,this.helpers));await Promise.all(U)}else await N(F,this.helpers)}catch(U){throw this.handleError(U)}}}return this.processed=!0,this.stringify()}runOnRoot(F){this.result.lastPlugin=F;try{if(typeof F=="object"&&F.Once){if(this.result.root.type==="document"){let P=this.result.root.nodes.map(N=>F.Once(N,this.helpers));return x(P[0])?Promise.all(P):P}return F.Once(this.result.root,this.helpers)}else if(typeof F=="function")return F(this.result.root,this.result)}catch(P){throw this.handleError(P)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let F=this.result.opts,P=s;F.syntax&&(P=F.syntax.stringify),F.stringifier&&(P=F.stringifier),P.stringify&&(P=P.stringify);let N=new i(P,this.result.root,this.result.opts).generate();return this.result.css=N[0],this.result.map=N[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let F of this.plugins){let P=this.runOnRoot(F);if(x(P))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let F=this.result.root;for(;!F[n];)F[n]=!0,this.walkSync(F);if(this.listeners.OnceExit)if(F.type==="document")for(let P of F.nodes)this.visitSync(this.listeners.OnceExit,P);else this.visitSync(this.listeners.OnceExit,F)}return this.result}then(F,P){return this.async().then(F,P)}toString(){return this.css}visitSync(F,P){for(let[N,U]of F){this.result.lastPlugin=N;let q;try{q=U(P,this.helpers)}catch(L){throw this.handleError(L,P.proxyOf)}if(P.type!=="root"&&P.type!=="document"&&!P.parent)return!0;if(x(q))throw this.getAsyncError()}}visitTick(F){let P=F[F.length-1],{node:N,visitors:U}=P;if(N.type!=="root"&&N.type!=="document"&&!N.parent){F.pop();return}if(U.length>0&&P.visitorIndex{U[n]||this.walkSync(U)});else{let U=this.listeners[N];if(U&&this.visitSync(U,F.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};_.registerPostcss=F=>{B=F},e.exports=_,_.default=_,p.registerLazyResult(_),a.registerLazyResult(_)}),LX=Bt((t,e)=>{var n=C4(),r=qC();v4();var i=xB(),s=EB(),o=class{constructor(a,l,c){l=l.toString(),this.stringified=!1,this._processor=a,this._css=l,this._opts=c,this._map=void 0;let p,d=r;this.result=new s(this._processor,p,this._opts),this.result.css=l;let A=this;Object.defineProperty(this.result,"root",{get(){return A.root}});let y=new n(d,p,this._opts,l);if(y.isMap()){let[C,x]=y.generate();C&&(this.result.css=C),x&&(this.result.map=x)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,l){return this.async().then(a,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,l=i;try{a=l(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}};e.exports=o,o.default=o}),NX=Bt((t,e)=>{var n=LX(),r=D4(),i=yB(),s=S0(),o=class{constructor(a=[]){this.version="8.4.31",this.plugins=this.normalize(a)}normalize(a){let l=[];for(let c of a)if(c.postcss===!0?c=c():c.postcss&&(c=c.postcss),typeof c=="object"&&Array.isArray(c.plugins))l=l.concat(c.plugins);else if(typeof c=="object"&&c.postcssPlugin)l.push(c);else if(typeof c=="function")l.push(c);else if(!(typeof c=="object"&&(c.parse||c.stringify)))throw new Error(c+" is not a PostCSS plugin");return l}process(a,l={}){return this.plugins.length===0&&typeof l.parser>"u"&&typeof l.stringifier>"u"&&typeof l.syntax>"u"?new n(this,a,l):new r(this,a,l)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}};e.exports=o,o.default=o,s.registerProcessor(o),i.registerProcessor(o)}),OX=Bt((t,e)=>{var n=ZC(),r=E4(),i=nv(),s=CB(),o=tv(),a=S0(),l=vB();function c(p,d){if(Array.isArray(p))return p.map(C=>c(C));let{inputs:A,...y}=p;if(A){d=[];for(let C of A){let x={...C,__proto__:o.prototype};x.map&&(x.map={...x.map,__proto__:r.prototype}),d.push(x)}}if(y.nodes&&(y.nodes=p.nodes.map(C=>c(C,d))),y.source){let{inputId:C,...x}=y.source;y.source=x,C!=null&&(y.source.input=d[C])}if(y.type==="root")return new a(y);if(y.type==="decl")return new n(y);if(y.type==="rule")return new l(y);if(y.type==="comment")return new i(y);if(y.type==="atrule")return new s(y);throw new Error("Unknown node type: "+p.type)}e.exports=c,c.default=c}),w0=Bt((t,e)=>{var n=fB(),r=ZC(),i=D4(),s=ud(),o=NX(),a=qC(),l=OX(),c=yB(),p=x4(),d=nv(),A=CB(),y=EB(),C=tv(),x=xB(),D=I4(),I=vB(),w=S0(),B=KC();function _(...F){return F.length===1&&Array.isArray(F[0])&&(F=F[0]),new o(F)}_.plugin=function(F,P){let N=!1;function U(...L){console&&console.warn&&!N&&(N=!0,console.warn(F+`: postcss.plugin was deprecated. Migration guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration`),_F.LANG&&_F.LANG.startsWith("cn")&&console.warn(F+`: 里面 postcss.plugin 被弃用. 迁移指南: https://www.w3ctech.com/topic/2226`));let z=P(...L);return z.postcssPlugin=F,z.postcssVersion=new o().version,z}let q;return Object.defineProperty(U,"postcss",{get(){return q||(q=U()),q}}),U.process=function(L,z,he){return _([U(he)]).process(L,z)},U},_.stringify=a,_.parse=x,_.fromJSON=l,_.list=D,_.comment=F=>new d(F),_.atRule=F=>new A(F),_.decl=F=>new r(F),_.rule=F=>new I(F),_.root=F=>new w(F),_.document=F=>new c(F),_.CssSyntaxError=n,_.Declaration=r,_.Container=s,_.Processor=o,_.Document=c,_.Comment=d,_.Warning=p,_.AtRule=A,_.Result=y,_.Input=C,_.Rule=I,_.Root=w,_.Node=B,i.registerPostcss(_),e.exports=_,_.default=_}),IB=Bt((t,e)=>{t.__esModule=!0,t.default=i;function n(s){for(var o=s.toLowerCase(),a="",l=!1,c=0;c<6&&o[c]!==void 0;c++){var p=o.charCodeAt(c),d=p>=97&&p<=102||p>=48&&p<=57;if(l=p===32,!d)break;a+=o[c]}if(a.length!==0){var A=parseInt(a,16),y=A>=55296&&A<=57343;return y||A===0||A>1114111?["�",a.length+(l?1:0)]:[String.fromCodePoint(A),a.length+(l?1:0)]}}var r=/\\/;function i(s){var o=r.test(s);if(!o)return s;for(var a="",l=0;l{t.__esModule=!0,t.default=n;function n(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o0;){var a=s.shift();if(!r[a])return;r=r[a]}return r}e.exports=t.default}),GX=Bt((t,e)=>{t.__esModule=!0,t.default=n;function n(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o0;){var a=s.shift();r[a]||(r[a]={}),r=r[a]}}e.exports=t.default}),HX=Bt((t,e)=>{t.__esModule=!0,t.default=n;function n(r){for(var i="",s=r.indexOf("/*"),o=0;s>=0;){i=i+r.slice(o,s);var a=r.indexOf("*/",s+2);if(a<0)return i;o=a+2,s=r.indexOf("/*",o)}return i=i+r.slice(o),i}e.exports=t.default}),rv=Bt(t=>{t.__esModule=!0,t.unesc=t.stripComments=t.getProp=t.ensureObject=void 0;var e=s(IB());t.unesc=e.default;var n=s(UX());t.getProp=n.default;var r=s(GX());t.ensureObject=r.default;var i=s(HX());t.stripComments=i.default;function s(o){return o&&o.__esModule?o:{default:o}}}),Sh=Bt((t,e)=>{t.__esModule=!0,t.default=void 0;var n=rv();function r(a,l){for(var c=0;cc||this.source.end.linep||this.source.end.line===c&&this.source.end.column{t.__esModule=!0,t.UNIVERSAL=t.TAG=t.STRING=t.SELECTOR=t.ROOT=t.PSEUDO=t.NESTING=t.ID=t.COMMENT=t.COMBINATOR=t.CLASS=t.ATTRIBUTE=void 0;var e="tag";t.TAG=e;var n="string";t.STRING=n;var r="selector";t.SELECTOR=r;var i="root";t.ROOT=i;var s="pseudo";t.PSEUDO=s;var o="nesting";t.NESTING=o;var a="id";t.ID=a;var l="comment";t.COMMENT=l;var c="combinator";t.COMBINATOR=c;var p="class";t.CLASS=p;var d="attribute";t.ATTRIBUTE=d;var A="universal";t.UNIVERSAL=A}),DB=Bt((t,e)=>{t.__esModule=!0,t.default=void 0;var n=o(Sh()),r=s($s());function i(x){if(typeof WeakMap!="function")return null;var D=new WeakMap,I=new WeakMap;return(i=function(w){return w?I:D})(x)}function s(x,D){if(!D&&x&&x.__esModule)return x;if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var I=i(D);if(I&&I.has(x))return I.get(x);var w={},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in x)if(_!=="default"&&Object.prototype.hasOwnProperty.call(x,_)){var F=B?Object.getOwnPropertyDescriptor(x,_):null;F&&(F.get||F.set)?Object.defineProperty(w,_,F):w[_]=x[_]}return w.default=x,I&&I.set(x,w),w}function o(x){return x&&x.__esModule?x:{default:x}}function a(x,D){var I=typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(I)return(I=I.call(x)).next.bind(I);if(Array.isArray(x)||(I=l(x))||D&&x&&typeof x.length=="number"){I&&(x=I);var w=0;return function(){return w>=x.length?{done:!0}:{done:!1,value:x[w++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(x,D){if(x){if(typeof x=="string")return c(x,D);var I=Object.prototype.toString.call(x).slice(8,-1);if(I==="Object"&&x.constructor&&(I=x.constructor.name),I==="Map"||I==="Set")return Array.from(x);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return c(x,D)}}function c(x,D){(D==null||D>x.length)&&(D=x.length);for(var I=0,w=new Array(D);I=w&&(this.indexes[_]=B-1);return this},I.removeAll=function(){for(var w=a(this.nodes),B;!(B=w()).done;){var _=B.value;_.parent=void 0}return this.nodes=[],this},I.empty=function(){return this.removeAll()},I.insertAfter=function(w,B){B.parent=this;var _=this.index(w);this.nodes.splice(_+1,0,B),B.parent=this;var F;for(var P in this.indexes)F=this.indexes[P],_<=F&&(this.indexes[P]=F+1);return this},I.insertBefore=function(w,B){B.parent=this;var _=this.index(w);this.nodes.splice(_,0,B),B.parent=this;var F;for(var P in this.indexes)F=this.indexes[P],F<=_&&(this.indexes[P]=F+1);return this},I._findChildAtPosition=function(w,B){var _=void 0;return this.each(function(F){if(F.atPosition){var P=F.atPosition(w,B);if(P)return _=P,!1}else if(F.isAtPosition(w,B))return _=F,!1}),_},I.atPosition=function(w,B){if(this.isAtPosition(w,B))return this._findChildAtPosition(w,B)||this},I._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},I.each=function(w){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var B=this.lastEach;if(this.indexes[B]=0,!!this.length){for(var _,F;this.indexes[B]{t.__esModule=!0,t.default=void 0;var n=i(DB()),r=$s();function i(p){return p&&p.__esModule?p:{default:p}}function s(p,d){for(var A=0;A{t.__esModule=!0,t.default=void 0;var n=i(DB()),r=$s();function i(l){return l&&l.__esModule?l:{default:l}}function s(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,d){return p.__proto__=d,p},o(l,c)}var a=function(l){s(c,l);function c(p){var d;return d=l.call(this,p)||this,d.type=r.SELECTOR,d}return c}(n.default);t.default=a,e.exports=t.default}),SB=Bt((t,e)=>{var n={},r=n.hasOwnProperty,i=function(c,p){if(!c)return p;var d={};for(var A in p)d[A]=r.call(c,A)?c[A]:p[A];return d},s=/[ -,\.\/:-@\[-\^`\{-~]/,o=/[ -,\.\/:-@\[\]\^`\{-~]/,a=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,l=function c(p,d){d=i(d,c.options),d.quotes!="single"&&d.quotes!="double"&&(d.quotes="single");for(var A=d.quotes=="double"?'"':"'",y=d.isIdentifier,C=p.charAt(0),x="",D=0,I=p.length;D126){if(B>=55296&&B<=56319&&D{t.__esModule=!0,t.default=void 0;var n=o(SB()),r=rv(),i=o(Sh()),s=$s();function o(A){return A&&A.__esModule?A:{default:A}}function a(A,y){for(var C=0;C{t.__esModule=!0,t.default=void 0;var n=i(Sh()),r=$s();function i(l){return l&&l.__esModule?l:{default:l}}function s(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,d){return p.__proto__=d,p},o(l,c)}var a=function(l){s(c,l);function c(p){var d;return d=l.call(this,p)||this,d.type=r.COMMENT,d}return c}(n.default);t.default=a,e.exports=t.default}),T4=Bt((t,e)=>{t.__esModule=!0,t.default=void 0;var n=i(Sh()),r=$s();function i(l){return l&&l.__esModule?l:{default:l}}function s(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,d){return p.__proto__=d,p},o(l,c)}var a=function(l){s(c,l);function c(d){var A;return A=l.call(this,d)||this,A.type=r.ID,A}var p=c.prototype;return p.valueToString=function(){return"#"+l.prototype.valueToString.call(this)},c}(n.default);t.default=a,e.exports=t.default}),wB=Bt((t,e)=>{t.__esModule=!0,t.default=void 0;var n=s(SB()),r=rv(),i=s(Sh());function s(d){return d&&d.__esModule?d:{default:d}}function o(d,A){for(var y=0;y{t.__esModule=!0,t.default=void 0;var n=i(wB()),r=$s();function i(l){return l&&l.__esModule?l:{default:l}}function s(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,d){return p.__proto__=d,p},o(l,c)}var a=function(l){s(c,l);function c(p){var d;return d=l.call(this,p)||this,d.type=r.TAG,d}return c}(n.default);t.default=a,e.exports=t.default}),_4=Bt((t,e)=>{t.__esModule=!0,t.default=void 0;var n=i(Sh()),r=$s();function i(l){return l&&l.__esModule?l:{default:l}}function s(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,d){return p.__proto__=d,p},o(l,c)}var a=function(l){s(c,l);function c(p){var d;return d=l.call(this,p)||this,d.type=r.STRING,d}return c}(n.default);t.default=a,e.exports=t.default}),F4=Bt((t,e)=>{t.__esModule=!0,t.default=void 0;var n=i(DB()),r=$s();function i(l){return l&&l.__esModule?l:{default:l}}function s(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,d){return p.__proto__=d,p},o(l,c)}var a=function(l){s(c,l);function c(d){var A;return A=l.call(this,d)||this,A.type=r.PSEUDO,A}var p=c.prototype;return p.toString=function(){var d=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),d,this.rawSpaceAfter].join("")},c}(n.default);t.default=a,e.exports=t.default}),zX=Bt((t,e)=>{e.exports=n;function n(i,s){if(r("noDeprecation"))return i;var o=!1;function a(){if(!o){if(r("throwDeprecation"))throw new Error(s);r("traceDeprecation")?console.trace(s):console.warn(s),o=!0}return i.apply(this,arguments)}return a}function r(i){try{if(!global.localStorage)return!1}catch{return!1}var s=global.localStorage[i];return s==null?!1:String(s).toLowerCase()==="true"}}),P4=Bt(t=>{t.__esModule=!0,t.default=void 0,t.unescapeValue=D;var e=o(SB()),n=o(IB()),r=o(wB()),i=$s(),s;function o(F){return F&&F.__esModule?F:{default:F}}function a(F,P){for(var N=0;N0&&!U.quoted&&z.before.length===0&&!(U.spaces.value&&U.spaces.value.after)&&(z.before=" "),_(L,z)}))),q.push("]"),q.push(this.rawSpaceAfter),q.join("")},l(P,[{key:"quoted",get:function(){var U=this.quoteMark;return U==="'"||U==='"'},set:function(U){C()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(U){if(!this._constructed){this._quoteMark=U;return}this._quoteMark!==U&&(this._quoteMark=U,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(U){if(this._constructed){var q=D(U),L=q.deprecatedUsage,z=q.unescaped,he=q.quoteMark;if(L&&y(),z===this._value&&he===this._quoteMark)return;this._value=z,this._quoteMark=he,this._syncRawValue()}else this._value=U}},{key:"insensitive",get:function(){return this._insensitive},set:function(U){U||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0)),this._insensitive=U}},{key:"attribute",get:function(){return this._attribute},set:function(U){this._handleEscapes("attribute",U),this._attribute=U}}]),P}(r.default);t.default=w,w.NO_QUOTE=null,w.SINGLE_QUOTE="'",w.DOUBLE_QUOTE='"';var B=(s={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},s[null]={isIdentifier:!0},s);function _(F,P){return""+P.before+F+P.after}}),Q4=Bt((t,e)=>{t.__esModule=!0,t.default=void 0;var n=i(wB()),r=$s();function i(l){return l&&l.__esModule?l:{default:l}}function s(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,d){return p.__proto__=d,p},o(l,c)}var a=function(l){s(c,l);function c(p){var d;return d=l.call(this,p)||this,d.type=r.UNIVERSAL,d.value="*",d}return c}(n.default);t.default=a,e.exports=t.default}),k4=Bt((t,e)=>{t.__esModule=!0,t.default=void 0;var n=i(Sh()),r=$s();function i(l){return l&&l.__esModule?l:{default:l}}function s(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,d){return p.__proto__=d,p},o(l,c)}var a=function(l){s(c,l);function c(p){var d;return d=l.call(this,p)||this,d.type=r.COMBINATOR,d}return c}(n.default);t.default=a,e.exports=t.default}),R4=Bt((t,e)=>{t.__esModule=!0,t.default=void 0;var n=i(Sh()),r=$s();function i(l){return l&&l.__esModule?l:{default:l}}function s(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,d){return p.__proto__=d,p},o(l,c)}var a=function(l){s(c,l);function c(p){var d;return d=l.call(this,p)||this,d.type=r.NESTING,d.value="&",d}return c}(n.default);t.default=a,e.exports=t.default}),WX=Bt((t,e)=>{t.__esModule=!0,t.default=n;function n(r){return r.sort(function(i,s){return i-s})}e.exports=t.default}),L4=Bt(t=>{t.__esModule=!0,t.word=t.tilde=t.tab=t.str=t.space=t.slash=t.singleQuote=t.semicolon=t.plus=t.pipe=t.openSquare=t.openParenthesis=t.newline=t.greaterThan=t.feed=t.equals=t.doubleQuote=t.dollar=t.cr=t.comment=t.comma=t.combinator=t.colon=t.closeSquare=t.closeParenthesis=t.caret=t.bang=t.backslash=t.at=t.asterisk=t.ampersand=void 0;var e=38;t.ampersand=e;var n=42;t.asterisk=n;var r=64;t.at=r;var i=44;t.comma=i;var s=58;t.colon=s;var o=59;t.semicolon=o;var a=40;t.openParenthesis=a;var l=41;t.closeParenthesis=l;var c=91;t.openSquare=c;var p=93;t.closeSquare=p;var d=36;t.dollar=d;var A=126;t.tilde=A;var y=94;t.caret=y;var C=43;t.plus=C;var x=61;t.equals=x;var D=124;t.pipe=D;var I=62;t.greaterThan=I;var w=32;t.space=w;var B=39;t.singleQuote=B;var _=34;t.doubleQuote=_;var F=47;t.slash=F;var P=33;t.bang=P;var N=92;t.backslash=N;var U=13;t.cr=U;var q=12;t.feed=q;var L=10;t.newline=L;var z=9;t.tab=z;var he=B;t.str=he;var Ie=-1;t.comment=Ie;var re=-2;t.word=re;var _e=-3;t.combinator=_e}),jX=Bt(t=>{t.__esModule=!0,t.FIELDS=void 0,t.default=C;var e=s(L4()),n,r;function i(x){if(typeof WeakMap!="function")return null;var D=new WeakMap,I=new WeakMap;return(i=function(w){return w?I:D})(x)}function s(x,D){if(!D&&x&&x.__esModule)return x;if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var I=i(D);if(I&&I.has(x))return I.get(x);var w={},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in x)if(_!=="default"&&Object.prototype.hasOwnProperty.call(x,_)){var F=B?Object.getOwnPropertyDescriptor(x,_):null;F&&(F.get||F.set)?Object.defineProperty(w,_,F):w[_]=x[_]}return w.default=x,I&&I.set(x,w),w}var o=(n={},n[e.tab]=!0,n[e.newline]=!0,n[e.cr]=!0,n[e.feed]=!0,n),a=(r={},r[e.space]=!0,r[e.tab]=!0,r[e.newline]=!0,r[e.cr]=!0,r[e.feed]=!0,r[e.ampersand]=!0,r[e.asterisk]=!0,r[e.bang]=!0,r[e.comma]=!0,r[e.colon]=!0,r[e.semicolon]=!0,r[e.openParenthesis]=!0,r[e.closeParenthesis]=!0,r[e.openSquare]=!0,r[e.closeSquare]=!0,r[e.singleQuote]=!0,r[e.doubleQuote]=!0,r[e.plus]=!0,r[e.pipe]=!0,r[e.tilde]=!0,r[e.greaterThan]=!0,r[e.equals]=!0,r[e.dollar]=!0,r[e.caret]=!0,r[e.slash]=!0,r),l={},c="0123456789abcdefABCDEF";for(p=0;p0?(Ge=F+re,ie=De-_e[re].length):(Ge=F,ie=_),ve=e.comment,F=Ge,z=Ge,L=De-ie):U===e.slash?(De=P,ve=U,z=F,L=P-_,N=De+1):(De=d(I,P),ve=e.word,z=F,L=De-_),N=De+1;break}D.push([ve,F,P-_,z,L,P,N]),ie&&(_=ie,ie=null),P=N}return D}}),VX=Bt((t,e)=>{t.__esModule=!0,t.default=void 0;var n=N(S4()),r=N(w4()),i=N(B4()),s=N(b4()),o=N(T4()),a=N(M4()),l=N(_4()),c=N(F4()),p=P(P4()),d=N(Q4()),A=N(k4()),y=N(R4()),C=N(WX()),x=P(jX()),D=P(L4()),I=P($s()),w=rv(),B,_;function F(Ae){if(typeof WeakMap!="function")return null;var Ue=new WeakMap,we=new WeakMap;return(F=function(K){return K?we:Ue})(Ae)}function P(Ae,Ue){if(!Ue&&Ae&&Ae.__esModule)return Ae;if(Ae===null||typeof Ae!="object"&&typeof Ae!="function")return{default:Ae};var we=F(Ue);if(we&&we.has(Ae))return we.get(Ae);var K={},oe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in Ae)if(Y!=="default"&&Object.prototype.hasOwnProperty.call(Ae,Y)){var Z=oe?Object.getOwnPropertyDescriptor(Ae,Y):null;Z&&(Z.get||Z.set)?Object.defineProperty(K,Y,Z):K[Y]=Ae[Y]}return K.default=Ae,we&&we.set(Ae,K),K}function N(Ae){return Ae&&Ae.__esModule?Ae:{default:Ae}}function U(Ae,Ue){for(var we=0;we0){var Y=this.current.last;if(Y){var Z=this.convertWhitespaceNodesToSpace(oe),Le=Z.space,ze=Z.rawSpace;ze!==void 0&&(Y.rawSpaceAfter+=ze),Y.spaces.after+=Le}else oe.forEach(function(Oe){return we.newNode(Oe)})}return}var Fe=this.currToken,je=void 0;K>this.position&&(je=this.parseWhitespaceEquivalentTokens(K));var ae;if(this.isNamedCombinator()?ae=this.namedCombinator():this.currToken[x.FIELDS.TYPE]===D.combinator?(ae=new A.default({value:this.content(),source:_e(this.currToken),sourceIndex:this.currToken[x.FIELDS.START_POS]}),this.position++):L[this.currToken[x.FIELDS.TYPE]]||je||this.unexpected(),ae){if(je){var Ne=this.convertWhitespaceNodesToSpace(je),be=Ne.space,Ve=Ne.rawSpace;ae.spaces.before=be,ae.rawSpaceBefore=Ve}}else{var He=this.convertWhitespaceNodesToSpace(je,!0),lt=He.space,Se=He.rawSpace;Se||(Se=lt);var W={},$={spaces:{}};lt.endsWith(" ")&&Se.endsWith(" ")?(W.before=lt.slice(0,lt.length-1),$.spaces.before=Se.slice(0,Se.length-1)):lt.startsWith(" ")&&Se.startsWith(" ")?(W.after=lt.slice(1),$.spaces.after=Se.slice(1)):$.value=Se,ae=new A.default({value:" ",source:De(Fe,this.tokens[this.position-1]),sourceIndex:Fe[x.FIELDS.START_POS],spaces:W,raws:$})}return this.currToken&&this.currToken[x.FIELDS.TYPE]===D.space&&(ae.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(ae)},Ue.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var we=new r.default({source:{start:he(this.tokens[this.position+1])}});this.current.parent.append(we),this.current=we,this.position++},Ue.comment=function(){var we=this.currToken;this.newNode(new s.default({value:this.content(),source:_e(we),sourceIndex:we[x.FIELDS.START_POS]})),this.position++},Ue.error=function(we,K){throw this.root.error(we,K)},Ue.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[x.FIELDS.START_POS]})},Ue.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[x.FIELDS.START_POS])},Ue.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[x.FIELDS.START_POS])},Ue.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[x.FIELDS.START_POS])},Ue.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[x.FIELDS.START_POS])},Ue.namespace=function(){var we=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[x.FIELDS.TYPE]===D.word)return this.position++,this.word(we);if(this.nextToken[x.FIELDS.TYPE]===D.asterisk)return this.position++,this.universal(we);this.unexpectedPipe()},Ue.nesting=function(){if(this.nextToken){var we=this.content(this.nextToken);if(we==="|"){this.position++;return}}var K=this.currToken;this.newNode(new y.default({value:this.content(),source:_e(K),sourceIndex:K[x.FIELDS.START_POS]})),this.position++},Ue.parentheses=function(){var we=this.current.last,K=1;if(this.position++,we&&we.type===I.PSEUDO){var oe=new r.default({source:{start:he(this.tokens[this.position-1])}}),Y=this.current;for(we.append(oe),this.current=oe;this.position1&&we.nextToken&&we.nextToken[x.FIELDS.TYPE]===D.openParenthesis&&we.error("Misplaced parenthesis.",{index:we.nextToken[x.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[x.FIELDS.START_POS])},Ue.space=function(){var we=this.content();this.position===0||this.prevToken[x.FIELDS.TYPE]===D.comma||this.prevToken[x.FIELDS.TYPE]===D.openParenthesis||this.current.nodes.every(function(K){return K.type==="comment"})?(this.spaces=this.optionalSpace(we),this.position++):this.position===this.tokens.length-1||this.nextToken[x.FIELDS.TYPE]===D.comma||this.nextToken[x.FIELDS.TYPE]===D.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(we),this.position++):this.combinator()},Ue.string=function(){var we=this.currToken;this.newNode(new l.default({value:this.content(),source:_e(we),sourceIndex:we[x.FIELDS.START_POS]})),this.position++},Ue.universal=function(we){var K=this.nextToken;if(K&&this.content(K)==="|")return this.position++,this.namespace();var oe=this.currToken;this.newNode(new d.default({value:this.content(),source:_e(oe),sourceIndex:oe[x.FIELDS.START_POS]}),we),this.position++},Ue.splitWord=function(we,K){for(var oe=this,Y=this.nextToken,Z=this.content();Y&&~[D.dollar,D.caret,D.equals,D.word].indexOf(Y[x.FIELDS.TYPE]);){this.position++;var Le=this.content();if(Z+=Le,Le.lastIndexOf("\\")===Le.length-1){var ze=this.nextToken;ze&&ze[x.FIELDS.TYPE]===D.space&&(Z+=this.requiredSpace(this.content(ze)),this.position++)}Y=this.nextToken}var Fe=ie(Z,".").filter(function(be){var Ve=Z[be-1]==="\\",He=/^\d+\.\d+%$/.test(Z);return!Ve&&!He}),je=ie(Z,"#").filter(function(be){return Z[be-1]!=="\\"}),ae=ie(Z,"#{");ae.length&&(je=je.filter(function(be){return!~ae.indexOf(be)}));var Ne=(0,C.default)(ge([0].concat(Fe,je)));Ne.forEach(function(be,Ve){var He=Ne[Ve+1]||Z.length,lt=Z.slice(be,He);if(Ve===0&&K)return K.call(oe,lt,Ne.length);var Se,W=oe.currToken,$=W[x.FIELDS.START_POS]+Ne[Ve],Oe=re(W[1],W[2]+be,W[3],W[2]+(He-1));if(~Fe.indexOf(be)){var ft={value:lt.slice(1),source:Oe,sourceIndex:$};Se=new i.default(Ge(ft,"value"))}else if(~je.indexOf(be)){var pt={value:lt.slice(1),source:Oe,sourceIndex:$};Se=new o.default(Ge(pt,"value"))}else{var ut={value:lt,source:Oe,sourceIndex:$};Ge(ut,"value"),Se=new a.default(ut)}oe.newNode(Se,we),we=null}),this.position++},Ue.word=function(we){var K=this.nextToken;return K&&this.content(K)==="|"?(this.position++,this.namespace()):this.splitWord(we)},Ue.loop=function(){for(;this.position{t.__esModule=!0,t.default=void 0;var n=r(VX());function r(s){return s&&s.__esModule?s:{default:s}}var i=function(){function s(a,l){this.func=a||function(){},this.funcRes=null,this.options=l}var o=s.prototype;return o._shouldUpdateSelector=function(a,l){l===void 0&&(l={});var c=Object.assign({},this.options,l);return c.updateSelector===!1?!1:typeof a!="string"},o._isLossy=function(a){a===void 0&&(a={});var l=Object.assign({},this.options,a);return l.lossless===!1},o._root=function(a,l){l===void 0&&(l={});var c=new n.default(a,this._parseOptions(l));return c.root},o._parseOptions=function(a){return{lossy:this._isLossy(a)}},o._run=function(a,l){var c=this;return l===void 0&&(l={}),new Promise(function(p,d){try{var A=c._root(a,l);Promise.resolve(c.func(A)).then(function(y){var C=void 0;return c._shouldUpdateSelector(a,l)&&(C=A.toString(),a.selector=C),{transform:y,root:A,string:C}}).then(p,d)}catch(y){d(y);return}})},o._runSync=function(a,l){l===void 0&&(l={});var c=this._root(a,l),p=this.func(c);if(p&&typeof p.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var d=void 0;return l.updateSelector&&typeof a!="string"&&(d=c.toString(),a.selector=d),{transform:p,root:c,string:d}},o.ast=function(a,l){return this._run(a,l).then(function(c){return c.root})},o.astSync=function(a,l){return this._runSync(a,l).root},o.transform=function(a,l){return this._run(a,l).then(function(c){return c.transform})},o.transformSync=function(a,l){return this._runSync(a,l).transform},o.process=function(a,l){return this._run(a,l).then(function(c){return c.string||c.root.toString()})},o.processSync=function(a,l){var c=this._runSync(a,l);return c.string||c.root.toString()},s}();t.default=i,e.exports=t.default}),YX=Bt(t=>{t.__esModule=!0,t.universal=t.tag=t.string=t.selector=t.root=t.pseudo=t.nesting=t.id=t.comment=t.combinator=t.className=t.attribute=void 0;var e=y(P4()),n=y(B4()),r=y(k4()),i=y(b4()),s=y(T4()),o=y(R4()),a=y(F4()),l=y(S4()),c=y(w4()),p=y(_4()),d=y(M4()),A=y(Q4());function y(L){return L&&L.__esModule?L:{default:L}}var C=function(L){return new e.default(L)};t.attribute=C;var x=function(L){return new n.default(L)};t.className=x;var D=function(L){return new r.default(L)};t.combinator=D;var I=function(L){return new i.default(L)};t.comment=I;var w=function(L){return new s.default(L)};t.id=w;var B=function(L){return new o.default(L)};t.nesting=B;var _=function(L){return new a.default(L)};t.pseudo=_;var F=function(L){return new l.default(L)};t.root=F;var P=function(L){return new c.default(L)};t.selector=P;var N=function(L){return new p.default(L)};t.string=N;var U=function(L){return new d.default(L)};t.tag=U;var q=function(L){return new A.default(L)};t.universal=q}),XX=Bt(t=>{t.__esModule=!0,t.isComment=t.isCombinator=t.isClassName=t.isAttribute=void 0,t.isContainer=_,t.isIdentifier=void 0,t.isNamespace=F,t.isNesting=void 0,t.isNode=i,t.isPseudo=void 0,t.isPseudoClass=B,t.isPseudoElement=w,t.isUniversal=t.isTag=t.isString=t.isSelector=t.isRoot=void 0;var e=$s(),n,r=(n={},n[e.ATTRIBUTE]=!0,n[e.CLASS]=!0,n[e.COMBINATOR]=!0,n[e.COMMENT]=!0,n[e.ID]=!0,n[e.NESTING]=!0,n[e.PSEUDO]=!0,n[e.ROOT]=!0,n[e.SELECTOR]=!0,n[e.STRING]=!0,n[e.TAG]=!0,n[e.UNIVERSAL]=!0,n);function i(P){return typeof P=="object"&&r[P.type]}function s(P,N){return i(N)&&N.type===P}var o=s.bind(null,e.ATTRIBUTE);t.isAttribute=o;var a=s.bind(null,e.CLASS);t.isClassName=a;var l=s.bind(null,e.COMBINATOR);t.isCombinator=l;var c=s.bind(null,e.COMMENT);t.isComment=c;var p=s.bind(null,e.ID);t.isIdentifier=p;var d=s.bind(null,e.NESTING);t.isNesting=d;var A=s.bind(null,e.PSEUDO);t.isPseudo=A;var y=s.bind(null,e.ROOT);t.isRoot=y;var C=s.bind(null,e.SELECTOR);t.isSelector=C;var x=s.bind(null,e.STRING);t.isString=x;var D=s.bind(null,e.TAG);t.isTag=D;var I=s.bind(null,e.UNIVERSAL);t.isUniversal=I;function w(P){return A(P)&&P.value&&(P.value.startsWith("::")||P.value.toLowerCase()===":before"||P.value.toLowerCase()===":after"||P.value.toLowerCase()===":first-letter"||P.value.toLowerCase()===":first-line")}function B(P){return A(P)&&!w(P)}function _(P){return!!(i(P)&&P.walk)}function F(P){return o(P)||D(P)}}),qX=Bt(t=>{t.__esModule=!0;var e=$s();Object.keys(e).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===e[i]||(t[i]=e[i])});var n=YX();Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===n[i]||(t[i]=n[i])});var r=XX();Object.keys(r).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===r[i]||(t[i]=r[i])})}),Wu=Bt((t,e)=>{t.__esModule=!0,t.default=void 0;var n=o(JX()),r=s(qX());function i(c){if(typeof WeakMap!="function")return null;var p=new WeakMap,d=new WeakMap;return(i=function(A){return A?d:p})(c)}function s(c,p){if(!p&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var d=i(p);if(d&&d.has(c))return d.get(c);var A={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in c)if(C!=="default"&&Object.prototype.hasOwnProperty.call(c,C)){var x=y?Object.getOwnPropertyDescriptor(c,C):null;x&&(x.get||x.set)?Object.defineProperty(A,C,x):A[C]=c[C]}return A.default=c,d&&d.set(c,A),A}function o(c){return c&&c.__esModule?c:{default:c}}var a=function(c){return new n.default(c)};Object.assign(a,r),delete a.__esModule;var l=a;t.default=l,e.exports=t.default}),KX=Bt((t,e)=>{var{Rule:n,AtRule:r}=w0(),i=Wu();function s(B,_){let F;try{i(P=>{F=P}).processSync(B)}catch(P){throw B.includes(":")?_?_.error("Missed semicolon"):P:_?_.error(P.message):P}return F.at(0)}function o(B,_){let F=!1;return B.each(P=>{if(P.type==="nesting"){let N=_.clone({});P.value!=="&"?P.replaceWith(s(P.value.replace("&",N.toString()))):P.replaceWith(N),F=!0}else"nodes"in P&&P.nodes&&o(P,_)&&(F=!0)}),F}function a(B,_){let F=[];return B.selectors.forEach(P=>{let N=s(P,B);_.selectors.forEach(U=>{if(!U)return;let q=s(U,_);o(q,N)||(q.prepend(i.combinator({value:" "})),q.prepend(N.clone({}))),F.push(q.toString())})}),F}function l(B,_){let F=B.prev();for(_.after(B);F&&F.type==="comment";){let P=F.prev();_.after(F),F=P}return B}function c(B){return function _(F,P,N,U=N){let q=[];if(P.each(L=>{L.type==="rule"&&N?U&&(L.selectors=a(F,L)):L.type==="atrule"&&L.nodes?B[L.name]?_(F,L,U):P[x]!==!1&&q.push(L):q.push(L)}),N&&q.length){let L=F.clone({nodes:[]});for(let z of q)L.append(z);P.prepend(L)}}}function p(B,_,F){let P=new n({selector:B,nodes:[]});return P.append(_),F.after(P),P}function d(B,_){let F={};for(let P of B)F[P]=!0;if(_)for(let P of _)F[P.replace(/^@/,"")]=!0;return F}function A(B){B=B.trim();let _=B.match(/^\((.*)\)$/);if(!_)return{type:"basic",selector:B};let F=_[1].match(/^(with(?:out)?):(.+)$/);if(F){let P=F[1]==="with",N=Object.fromEntries(F[2].trim().split(/\s+/).map(q=>[q,!0]));if(P&&N.all)return{type:"noop"};let U=q=>!!N[q];return N.all?U=()=>!0:P&&(U=q=>q==="all"?!1:!N[q]),{type:"withrules",escapes:U}}return{type:"unknown"}}function y(B){let _=[],F=B.parent;for(;F&&F instanceof r;)_.push(F),F=F.parent;return _}function C(B){let _=B[D];if(!_)B.after(B.nodes);else{let F=B.nodes,P,N=-1,U,q,L,z=y(B);if(z.forEach((he,Ie)=>{if(_(he.name))P=he,N=Ie,q=L;else{let re=L;L=he.clone({nodes:[]}),re&&L.append(re),U=U||L}}),P?q?(U.append(F),P.after(q)):P.after(F):B.after(F),B.next()&&P){let he;z.slice(0,N+1).forEach((Ie,re,_e)=>{let De=he;he=Ie.clone({nodes:[]}),De&&he.append(De);let Ge=[],ie=(_e[re-1]||B).next();for(;ie;)Ge.push(ie),ie=ie.next();he.append(Ge)}),he&&(q||F[F.length-1]).after(he)}}B.remove()}var x=Symbol("rootRuleMergeSel"),D=Symbol("rootRuleEscapes");function I(B){let{params:_}=B,{type:F,selector:P,escapes:N}=A(_);if(F==="unknown")throw B.error(`Unknown @${B.name} parameter ${JSON.stringify(_)}`);if(F==="basic"&&P){let U=new n({selector:P,nodes:B.nodes});B.removeAll(),B.append(U)}B[D]=N,B[x]=N?!N("all"):F==="noop"}var w=Symbol("hasRootRule");e.exports=(B={})=>{let _=d(["media","supports","layer","container"],B.bubble),F=c(_),P=d(["document","font-face","keyframes","-webkit-keyframes","-moz-keyframes"],B.unwrap),N=(B.rootRuleName||"at-root").replace(/^@/,""),U=B.preserveEmpty;return{postcssPlugin:"postcss-nested",Once(q){q.walkAtRules(N,L=>{I(L),q[w]=!0})},Rule(q){let L=!1,z=q,he=!1,Ie=[];q.each(re=>{re.type==="rule"?(Ie.length&&(z=p(q.selector,Ie,z),Ie=[]),he=!0,L=!0,re.selectors=a(q,re),z=l(re,z)):re.type==="atrule"?(Ie.length&&(z=p(q.selector,Ie,z),Ie=[]),re.name===N?(L=!0,F(q,re,!0,re[x]),z=l(re,z)):_[re.name]?(he=!0,L=!0,F(q,re,!0),z=l(re,z)):P[re.name]?(he=!0,L=!0,F(q,re,!1),z=l(re,z)):he&&Ie.push(re)):re.type==="decl"&&he&&Ie.push(re)}),Ie.length&&(z=p(q.selector,Ie,z)),L&&U!==!0&&(q.raws.semicolon=!0,q.nodes.length===0&&q.remove())},RootExit(q){q[w]&&(q.walkAtRules(N,C),q[w]=!1)}}},e.exports.postcss=!0}),ZX=Bt((t,e)=>{var n=/-(\w|$)/g,r=function(s,o){return o.toUpperCase()},i=function(s){return s=s.toLowerCase(),s==="float"?"cssFloat":s.charCodeAt(0)===45&&s.charCodeAt(1)===109&&s.charCodeAt(2)===115&&s.charCodeAt(3)===45?s.substr(1).replace(n,r):s.replace(n,r)};e.exports=i}),N4=Bt((t,e)=>{var n=ZX(),r={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};function i(o){return typeof o.nodes>"u"?!0:s(o)}function s(o){let a,l={};return o.each(c=>{if(c.type==="atrule")a="@"+c.name,c.params&&(a+=" "+c.params),typeof l[a]>"u"?l[a]=i(c):Array.isArray(l[a])?l[a].push(i(c)):l[a]=[l[a],i(c)];else if(c.type==="rule"){let p=s(c);if(l[c.selector])for(let d in p)l[c.selector][d]=p[d];else l[c.selector]=p}else if(c.type==="decl"){c.prop[0]==="-"&&c.prop[1]==="-"||c.parent&&c.parent.selector===":export"?a=c.prop:a=n(c.prop);let p=c.value;!isNaN(c.value)&&r[a]&&(p=parseFloat(c.value)),c.important&&(p+=" !important"),typeof l[a]>"u"?l[a]=p:Array.isArray(l[a])?l[a].push(p):l[a]=[l[a],p]}}),l}e.exports=s}),BB=Bt((t,e)=>{var n=w0(),r=/\s*!important\s*$/i,i={"box-flex":!0,"box-flex-group":!0,"column-count":!0,flex:!0,"flex-grow":!0,"flex-positive":!0,"flex-shrink":!0,"flex-negative":!0,"font-weight":!0,"line-clamp":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"tab-size":!0,widows:!0,"z-index":!0,zoom:!0,"fill-opacity":!0,"stroke-dashoffset":!0,"stroke-opacity":!0,"stroke-width":!0};function s(c){return c.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()}function o(c,p,d){d===!1||d===null||(p.startsWith("--")||(p=s(p)),typeof d=="number"&&(d===0||i[p]?d=d.toString():d+="px"),p==="css-float"&&(p="float"),r.test(d)?(d=d.replace(r,""),c.push(n.decl({prop:p,value:d,important:!0}))):c.push(n.decl({prop:p,value:d})))}function a(c,p,d){let A=n.atRule({name:p[1],params:p[3]||""});typeof d=="object"&&(A.nodes=[],l(d,A)),c.push(A)}function l(c,p){let d,A,y;for(d in c)if(A=c[d],!(A===null||typeof A>"u"))if(d[0]==="@"){let C=d.match(/@(\S+)(\s+([\W\w]*)\s*)?/);if(Array.isArray(A))for(let x of A)a(p,C,x);else a(p,C,A)}else if(Array.isArray(A))for(let C of A)o(p,d,C);else typeof A=="object"?(y=n.rule({selector:d}),l(A,y),p.push(y)):o(p,d,A)}e.exports=function(c){let p=n.root();return l(c,p),p}}),O4=Bt((t,e)=>{var n=N4();e.exports=function(r){return console&&console.warn&&r.warnings().forEach(i=>{let s=i.plugin||"PostCSS";console.warn(s+": "+i.text)}),n(r.root)}}),$X=Bt((t,e)=>{var n=w0(),r=O4(),i=BB();e.exports=function(s){let o=n(s);return async a=>{let l=await o.process(a,{parser:i,from:void 0});return r(l)}}}),eq=Bt((t,e)=>{var n=w0(),r=O4(),i=BB();e.exports=function(s){let o=n(s);return a=>{let l=o.process(a,{parser:i,from:void 0});return r(l)}}}),tq=Bt((t,e)=>{var n=N4(),r=BB(),i=$X(),s=eq();e.exports={objectify:n,parse:r,async:i,sync:s}}),U4=Bt((t,e)=>{(function(n,r){typeof t=="object"&&typeof e<"u"?e.exports=function(i,s,o,a,l){for(s=s.split?s.split("."):s,a=0;a{(function(){function n(s,o,a){if(!s)return null;n.caseSensitive||(s=s.toLowerCase());var l=n.threshold===null?null:n.threshold*s.length,c=n.thresholdAbsolute,p;l!==null&&c!==null?p=Math.min(l,c):l!==null?p=l:c!==null?p=c:p=null;var d,A,y,C,x,D=o.length;for(x=0;xa)return a+1;var p=[],d,A,y,C,x;for(d=0;d<=c;d++)p[d]=[d];for(A=0;A<=l;A++)p[0][A]=A;for(d=1;d<=c;d++){for(y=r,C=1,d>a&&(C=d-a),x=c+1,x>a+d&&(x=a+d),A=1;A<=l;A++)Ax?p[d][A]=a+1:o.charAt(d-1)===s.charAt(A-1)?p[d][A]=p[d-1][A-1]:p[d][A]=Math.min(p[d-1][A-1]+1,Math.min(p[d][A-1]+1,p[d-1][A]+1)),p[d][A]a)return a+1}return p[c][l]}})()}),rq=Bt((t,e)=>{var n=40,r=41,i=39,s=34,o=92,a=47,l=44,c=58,p=42,d=117,A=85,y=43,C=/^[a-f0-9?-]+$/i;e.exports=function(x){for(var D=[],I=x,w,B,_,F,P,N,U,q,L=0,z=I.charCodeAt(L),he=I.length,Ie=[{nodes:D}],re=0,_e,De="",Ge="",ie="";L{e.exports=function n(r,i,s){var o,a,l,c;for(o=0,a=r.length;o{function n(i,s){var o=i.type,a=i.value,l,c;return s&&(c=s(i))!==void 0?c:o==="word"||o==="space"?a:o==="string"?(l=i.quote||"",l+a+(i.unclosed?"":l)):o==="comment"?"/*"+a+(i.unclosed?"":"*/"):o==="div"?(i.before||"")+a+(i.after||""):Array.isArray(i.nodes)?(l=r(i.nodes,s),o!=="function"?l:a+"("+(i.before||"")+l+(i.after||"")+(i.unclosed?"":")")):a}function r(i,s){var o,a;if(Array.isArray(i)){for(o="",a=i.length-1;~a;a-=1)o=n(i[a],s)+o;return o}return n(i,s)}e.exports=r}),oq=Bt((t,e)=>{var n=45,r=43,i=46,s=101,o=69;function a(l){var c=l.charCodeAt(0),p;if(c===r||c===n){if(p=l.charCodeAt(1),p>=48&&p<=57)return!0;var d=l.charCodeAt(2);return p===i&&d>=48&&d<=57}return c===i?(p=l.charCodeAt(1),p>=48&&p<=57):c>=48&&c<=57}e.exports=function(l){var c=0,p=l.length,d,A,y;if(p===0||!a(l))return!1;for(d=l.charCodeAt(c),(d===r||d===n)&&c++;c57));)c+=1;if(d=l.charCodeAt(c),A=l.charCodeAt(c+1),d===i&&A>=48&&A<=57)for(c+=2;c57));)c+=1;if(d=l.charCodeAt(c),A=l.charCodeAt(c+1),y=l.charCodeAt(c+2),(d===s||d===o)&&(A>=48&&A<=57||(A===r||A===n)&&y>=48&&y<=57))for(c+=A===r||A===n?3:2;c57));)c+=1;return{number:l.slice(0,c),unit:l.slice(c)}}}),aq=Bt((t,e)=>{var n=rq(),r=iq(),i=sq();function s(o){return this instanceof s?(this.nodes=n(o),this):new s(o)}s.prototype.toString=function(){return Array.isArray(this.nodes)?i(this.nodes):""},s.prototype.walk=function(o,a){return r(this.nodes,o,a),this},s.unit=oq(),s.walk=r,s.stringify=i,e.exports=s}),lq=Bt((t,e)=>{e.exports={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:n})=>({...n("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:n})=>n("blur"),backdropBrightness:({theme:n})=>n("brightness"),backdropContrast:({theme:n})=>n("contrast"),backdropGrayscale:({theme:n})=>n("grayscale"),backdropHueRotate:({theme:n})=>n("hueRotate"),backdropInvert:({theme:n})=>n("invert"),backdropOpacity:({theme:n})=>n("opacity"),backdropSaturate:({theme:n})=>n("saturate"),backdropSepia:({theme:n})=>n("sepia"),backgroundColor:({theme:n})=>n("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:n})=>n("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:n})=>({...n("colors"),DEFAULT:n("colors.gray.200","currentColor")}),borderOpacity:({theme:n})=>n("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:n})=>({...n("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:n})=>n("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:n})=>n("colors"),colors:({colors:n})=>({inherit:n.inherit,current:n.current,transparent:n.transparent,black:n.black,white:n.white,slate:n.slate,gray:n.gray,zinc:n.zinc,neutral:n.neutral,stone:n.stone,red:n.red,orange:n.orange,amber:n.amber,yellow:n.yellow,lime:n.lime,green:n.green,emerald:n.emerald,teal:n.teal,cyan:n.cyan,sky:n.sky,blue:n.blue,indigo:n.indigo,violet:n.violet,purple:n.purple,fuchsia:n.fuchsia,pink:n.pink,rose:n.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:n})=>n("borderColor"),divideOpacity:({theme:n})=>n("borderOpacity"),divideWidth:({theme:n})=>n("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:n})=>({none:"none",...n("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:n})=>({auto:"auto",...n("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:n})=>n("spacing"),gradientColorStops:({theme:n})=>n("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:n})=>({auto:"auto",...n("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:n})=>({auto:"auto",...n("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:n})=>({auto:"auto",...n("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:n})=>({...n("spacing"),none:"none",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:n,breakpoints:r})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...r(n("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:n})=>n("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:n})=>n("spacing"),placeholderColor:({theme:n})=>n("colors"),placeholderOpacity:({theme:n})=>n("opacity"),ringColor:({theme:n})=>({DEFAULT:n("colors.blue.500","#3b82f6"),...n("colors")}),ringOffsetColor:({theme:n})=>n("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:n})=>({DEFAULT:"0.5",...n("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:n})=>({...n("spacing")}),scrollPadding:({theme:n})=>n("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:n})=>({...n("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:n})=>({none:"none",...n("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:n})=>n("colors"),textDecorationColor:({theme:n})=>n("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:n})=>({...n("spacing")}),textOpacity:({theme:n})=>n("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:n})=>({...n("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:n})=>({auto:"auto",...n("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]}}),uq=Bt((t,e)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):r.call(p)==="[object Array]"},a=function(p){if(!p||r.call(p)!=="[object Object]")return!1;var d=n.call(p,"constructor"),A=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!d&&!A)return!1;var y;for(y in p);return typeof y>"u"||n.call(p,y)},l=function(p,d){i&&d.name==="__proto__"?i(p,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):p[d.name]=d.newValue},c=function(p,d){if(d==="__proto__")if(n.call(p,d)){if(s)return s(p,d).value}else return;return p[d]};e.exports=function p(){var d,A,y,C,x,D,I=arguments[0],w=1,B=arguments.length,_=!1;for(typeof I=="boolean"&&(_=I,I=arguments[1]||{},w=2),(I==null||typeof I!="object"&&typeof I!="function")&&(I={});w{var n=function(r,i){var s=new r.constructor;return Object.keys(r).forEach(function(o){if(r.hasOwnProperty(o)){var a=r[o],l=typeof a;o==="parent"&&l==="object"?i&&(s[o]=i):o==="source"?s[o]=a:a instanceof Array?o==="nodes"?s[o]=[]:s[o]=a.map(function(c){n(c,s)}):o!=="before"&&o!=="after"&&o!=="between"&&o!=="semicolon"&&(l==="object"&&(a=n(a)),s[o]=a)}}),s};e.exports=n}),cq=Bt((t,e)=>{e.exports=n;function n(s,o,a){s instanceof RegExp&&(s=r(s,a)),o instanceof RegExp&&(o=r(o,a));var l=i(s,o,a);return l&&{start:l[0],end:l[1],pre:a.slice(0,l[0]),body:a.slice(l[0]+s.length,l[1]),post:a.slice(l[1]+o.length)}}function r(s,o){var a=o.match(s);return a?a[0]:null}n.range=i;function i(s,o,a){var l,c,p,d,A,y=a.indexOf(s),C=a.indexOf(o,y+1),x=y;if(y>=0&&C>0){if(s===o)return[y,C];for(l=[],p=a.length;x>=0&&!A;)x==y?(l.push(x),y=a.indexOf(s,x+1)):l.length==1?A=[l.pop(),C]:(c=l.pop(),c=0?y:C;l.length&&(A=[p,d])}return A}}),hq=Bt((t,e)=>{var n=/(.*?(?:(?:\([^\)]+\)|\[[^\]]+\]|(?![><+~\s]).)+)(?:(?:(?:\s(?!>>))|(?:\t(?!>>))|(?:\s?>>\s?))(?!\s+))(?![><+~][\s]+?))/,r=function(i){return i.split(n).filter(function(s){return s.length>0}).map(function(s){return s.trim().replace(/\s*?>>\s*?/g,"")})};e.exports=r}),iv=Bt((t,e)=>{var n=hq(),r=function(i,s){s=s||!1;for(var o=[[]],a=s?i:i.parent;a;){var l=(a.selectors||[]).map(function(p){return{value:p,type:"selector"}});a.type==="atrule"&&(l=[].concat(a.params).map(function(p){return{value:"@"+a.name+" "+p,type:"atrule"}}));var c=(l.length>0?l:[1]).map(function(){return o.map(function(p){return p.slice(0)})});l.forEach(function(p,d){c[d]=c[d].map(function(A){var y=[p.value];return p.type==="selector"&&(y=n(p.value)),A.unshift.apply(A,y),A})}),o=[],c.forEach(function(p){o=o.concat(p)}),a=a.parent}return o};e.exports=r}),pq=Bt((t,e)=>{var n=/[|\\{}()[\]^$+*?.]/g;e.exports=function(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(n,"\\$&")}}),dq=Bt((t,e)=>{var n={"*":!0,":root":!0,html:!0},r=function(i){return!!n[i]};e.exports=r}),fq=Bt((t,e)=>{var n=/(.*?(?:(?:\([^\)]+\)|\[[^\]]+\]|(?!>>|<|\+|~|\s).)+)(?:(?:(?:>(?!>))|(?:\s?>(?!>)\s?))(?!\s+))(?!(?:>>|<|\+|~)[\s]+?))/,r=function(i){return i.split(n).filter(function(s){return s.length>0}).map(function(s){return s.trim().replace(/\s*?>\s*?/g,"")})};e.exports=r}),G4=Bt((t,e)=>{var n=pq(),r=dq(),i=fq(),s=/^@.*/,o=/([^\s:]+)((?::|::)[^\s]*?)(\s+|$)/;function a(p,d){var A,y,C=d.some(function(x){return p.some(function(D){A=null;var I=!0;for(y=0;y1){var L=[].concat([q]),z=[].concat([x.slice(y).reduce(function(re,_e){return re.concat(i(_e))},[])]),he=a(L,z);(he.doesMatchScope||y+1=B;if(A=_+1,I=I&&Ie,!I)break}return I})});return{doesMatchScope:C,nodeScopePieceIndex:A-1,scopePieceIndex:y}}var l=function(p){return p.map(function(d){return d.map(function(A){return s.test(A)?A:A.replace(new RegExp(o.source,"g"),function(y,C,x,D){return C+D})})})},c=function(p,d,A){return p=l(p),A&&(d=l(d)),a(p,d).doesMatchScope};c.RE_PSEUDO_SELECTOR=o,e.exports=c}),H4=Bt((t,e)=>{var n=G4(),r=iv(),i=function(s,o,a){var l=r(s,!0),c=r(o,!0);return n(l,c,a)};e.exports=i}),z4=Bt((t,e)=>{var n=function(r,i,s){s=s||[];var o=!1;return r&&(s=r.reduce(function(a,l){var c=!!i[l],p=c?a.some(function(d){return i[l].some(function(A){return d===A})}):!1;return o=o||p,c&&!o&&(a=a.concat(i[l]),(i[l]||[]).forEach(function(d){var A=n(d.variablesUsed,i,a);a=A.deps,o=o||A.hasCircularOrSelfReference})),a},s)),{deps:s,hasCircularOrSelfReference:o}};e.exports=n}),W4=Bt((t,e)=>{var n=iv(),r=function(i,s){for(var o,a=s;a.parent&&!o;){var l=n(a.clone(),!0);l.some(function(c){return c.some(function(p){return p===i?(o=a,!0):!1})}),a=a.parent}return o};e.exports=r}),j4=Bt((t,e)=>{var n=bB(),r=function(i,s,o){o=o||function(){return!0};for(var a=[],l=i,c=!1;l&&!c;)l.type==="decl"?a.push(l.clone()):a.push(n(l)),c=o(l),l=l.parent;for(var p=[],d=s;d;)p.push(n(d)),d=d.parent;return p.forEach(function(A,y,C){y+1{var n=cq(),r=iv(),i=H4(),s=z4(),o=W4(),a=j4(),l=/var\(\s*(--[^,\s)]+)/;function c(A){return String(A)}function p(A){var y=n("(",")",A);if(y){if(/(?:^|[^\w-])var$/.test(y.pre))return{pre:y.pre.slice(0,-3),body:y.body,post:y.post};var C=p(y.body);if(C)return{pre:y.pre+"("+C.pre,body:C.body,post:C.post+")"+y.post};var x=p(y.post);if(x)return{pre:y.pre+"("+y.body+")"+x.pre,body:x.body,post:x.post}}}var d=function(A,y,C,x){for(var D=x?" ":"",I=void 0,w=c(A.value),B=[],_={},F=w;I=p(F);){var P=I.body.split(","),N=P[0].trim();_[N]=!0,F=(I.pre||"")+I.body.replace(N,"")+(I.post||"")}F=void 0;for(var U=Object.keys(_),q=!1;I=p(w);){var L=void 0,P=I.body.split(","),N=P[0].trim(),z=P.length>1?P.slice(1).join(",").trim():void 0;(y[N]||[]).forEach(function(ge){ge.parent.type==="root"||ge.parent.selectors[0],i(A.parent,ge.parent);var ve=i(A.parent,ge.parent,C);ve&&(!(L||{}).isImportant||ge.isImportant)&&(L=ge)});var he=(L||{}).calculatedInPlaceValue||function(){var ge=z;if(z){var ve=A.clone({parent:A.parent,value:z});ge=d(ve,y,!1,!0).value}return ge}();if(L!==void 0&&!s(U,y).hasCircularOrSelfReference){var Ie=r(A.parent.parent,!0),re=Ie[0].slice(-1)[0],_e=o(re,L.decl.parent),De=a(L.decl,A.parent.parent,function(ge){return ge===_e});he=d(De,y,!1,!0).value}q=he===void 0,q&&B.push(["variable "+N+" is undefined and used without a fallback",{node:A}]),w=(I.pre||"")+he+(I.post||"")}return{value:q?void 0:w,variablesUsed:U,warnings:B}};d.RE_VAR_FUNC=l,e.exports=d}),Aq=Bt((t,e)=>{var n=V4(),r=iv(),i=z4(),s=G4(),o=H4(),a=bB(),l=W4(),c=j4();function p(A,y,C,x){A.forEach(function(D){i(A,y).deps.forEach(function(I){var w;if(I.isUnderAtRule){var B=r(I.parent,!0),_=B[0].slice(-1)[0],F=l(_,C.parent),P=I.parent.parent;w=c(C,P,function(L){return L===F})}else if(s.RE_PSEUDO_SELECTOR.test(I.parent.selector)){var N=a(C.parent);N.parent=C.parent.parent,w=C.clone(),N.append(w);var U=I.parent.selector.match(new RegExp(s.RE_PSEUDO_SELECTOR.source+"$")),q=U?U[2]:"";N.selector+=q}w&&o(w,I.parent,!0)&&x(w,I)})})}function d(A,y,C,x,D){C=(typeof C=="function"?C(A):C)||!1,x=x||!1;var I=function(_){return D&&D(_),_},w=I(n(A,y)),B;p(w.variablesUsed,y,A,function(_,F){var P=a(A.parent),N=A.clone();P.append(N);let U;if(typeof C=="function"?U=C(A):U=C,U===!0&&N.cloneAfter(),N.value=I(n(_,y,!0)).value,F.isUnderAtRule){var q=a(F.parent.parent);q.append(P);for(var L=q,z=F.parent.parent;z.parent.type==="atrule";){var he=a(z.parent);he.append(L),L=he,z=z.parent}A.parent.parent.insertAfter(x&&B||A.parent,L),B=L}else P.selector=_.parent.selector,A.parent.parent.insertAfter(x&&B||A.parent,P)}),C===!0&&A.value!==w.value&&A.cloneAfter(),w.value===void 0&&(w.value="undefined"),A.value=w.value}e.exports=d}),gq=Bt((t,e)=>{var n=uq(),r=bB(),i=V4(),s=Aq(),o=/(--(.+))/;function a(p,d){p.walkDecls(function(A){o.test(A.prop)&&d(A)})}function l(p){for(var d=p;d&&d.nodes.length<=0;){var A=d.type!=="root"?d:null;A?(d=A.parent,A.remove()):d=null}}var c={preserve:!1,variables:{},preserveInjectedVariables:!0,preserveAtRulesOrder:!1};e.exports=(p={})=>{var d=n({},c,p);return{postcssPlugin:"postcss-css-variables",Once(A,{decl:y,result:C,rule:x}){var D=[],I=[],w={};w=n(w,Object.keys(d.variables).reduce(function(F,P){var N=d.variables[P];P=P.slice(0,2)==="--"?P:"--"+P;var U=(N||{}).value||N,q=(N||{}).isImportant||!1,L=x({selector:":root"});A.root().prepend(L);var z=y({prop:P,value:U,important:q});return L.append(z),d.preserveInjectedVariables||I.push(z),F[P]=(F[P]||[]).concat({decl:z,prop:P,calculatedInPlaceValue:U,isImportant:q,variablesUsed:[],parent:L,isUnderAtRule:!1}),F},{}));var B=function(F){var P=[].concat(F.warnings);return P.forEach(function(N){N=[].concat(N),C.warn.apply(C,N)}),F};a(A,function(F){var P=F.parent,N=B(i(F,w));F.parent.selectors.forEach(function(q){var L=r(F.parent);L.selector=q,L.parent=F.parent.parent;var z=F.clone();L.append(z);var he=F.prop;w[he]=(w[he]||[]).concat({decl:z,prop:he,calculatedInPlaceValue:N.value,isImportant:F.important||!1,variablesUsed:N.variablesUsed,parent:L,isUnderAtRule:L.parent.type==="atrule"})});let U;typeof d.preserve=="function"?U=d.preserve(F):U=d.preserve,U?U==="computed"&&(F.value=N.value):F.remove(),P.nodes.length<=0&&D.push(P)});var _=[];A.walk(function(F){if(F.nodes!==void 0){var P=F.nodes.some(function(N){if(N.type==="decl"){var U=N;if(i.RE_VAR_FUNC.test(U.value)&&!o.test(U.prop))return!0}return!1});P&&_.push(F)}}),_.forEach(function(F){var P=[].concat(F);F.type==="rule"&&F.selectors.length>1&&(P=F.selectors.reverse().map(function(N){var U=F.cloneAfter();return U.selector=N,U}),F.remove()),P.forEach(function(N){N.nodes.slice(0).forEach(function(U){if(U.type==="decl"){var q=U;s(q,w,d.preserve,d.preserveAtRulesOrder,B)}})})}),D.forEach(l),I.forEach(function(F){F.remove()})}}},e.exports.postcss=!0});dB();Xi(PX());var mq="3.3.2",FF={name:"tailwindcss",version:mq,description:"A utility-first CSS framework for rapidly building custom user interfaces.",license:"MIT",main:"lib/index.js",types:"types/index.d.ts",repository:"https://github.com/tailwindlabs/tailwindcss.git",bugs:"https://github.com/tailwindlabs/tailwindcss/issues",homepage:"https://tailwindcss.com",bin:{tailwind:"lib/cli.js",tailwindcss:"lib/cli.js"},tailwindcss:{engine:"stable"},scripts:{prebuild:"npm run generate && rimraf lib",build:`swc src --out-dir lib --copy-files --config jsc.transform.optimizer.globals.vars.__OXIDE__='"false"'`,postbuild:"esbuild lib/cli-peer-dependencies.js --bundle --platform=node --outfile=peers/index.js --define:process.env.CSS_TRANSFORMER_WASM=false","rebuild-fixtures":"npm run build && node -r @swc/register scripts/rebuildFixtures.js",style:"eslint .",pretest:"npm run generate",test:"jest","test:integrations":"npm run test --prefix ./integrations","install:integrations":"node scripts/install-integrations.js","generate:plugin-list":"node -r @swc/register scripts/create-plugin-list.js","generate:types":"node -r @swc/register scripts/generate-types.js",generate:"npm run generate:plugin-list && npm run generate:types","release-channel":"node ./scripts/release-channel.js","release-notes":"node ./scripts/release-notes.js",prepublishOnly:"npm install --force && npm run build"},files:["src/*","cli/*","lib/*","peers/*","scripts/*.js","stubs/*","nesting/*","types/**/*","*.d.ts","*.css","*.js"],devDependencies:{"@swc/cli":"^0.1.62","@swc/core":"^1.3.55","@swc/jest":"^0.2.26","@swc/register":"^0.1.10",autoprefixer:"^10.4.14",browserslist:"^4.21.5",concurrently:"^8.0.1",cssnano:"^6.0.0",esbuild:"^0.17.18",eslint:"^8.39.0","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1",jest:"^29.5.0","jest-diff":"^29.5.0",lightningcss:"1.18.0",prettier:"^2.8.8",rimraf:"^5.0.0","source-map-js":"^1.0.2",turbo:"^1.9.3"},dependencies:{"@alloc/quick-lru":"^5.2.0",arg:"^5.0.2",chokidar:"^3.5.3",didyoumean:"^1.2.2",dlv:"^1.1.3","fast-glob":"^3.2.12","glob-parent":"^6.0.2","is-glob":"^4.0.3",jiti:"^1.18.2",lilconfig:"^2.1.0",micromatch:"^4.0.5","normalize-path":"^3.0.0","object-hash":"^3.0.0",picocolors:"^1.0.0",postcss:"^8.4.23","postcss-import":"^15.1.0","postcss-js":"^4.0.1","postcss-load-config":"^4.0.1","postcss-nested":"^6.0.1","postcss-selector-parser":"^6.0.11","postcss-value-parser":"^4.2.0",resolve:"^1.22.2",sucrase:"^3.32.0"},browserslist:["> 1%","not edge <= 18","not ie 11","not op_mini all"],jest:{testTimeout:3e4,setupFilesAfterEnv:["/jest/customMatchers.js"],testPathIgnorePatterns:["/node_modules/","/integrations/","/standalone-cli/","\\.test\\.skip\\.js$"],transformIgnorePatterns:["node_modules/(?!lightningcss)"],transform:{"\\.js$":"@swc/jest","\\.ts$":"@swc/jest"}},engines:{node:">=14.0.0"}};typeof process<"u"?(yq(void 0),FF.tailwindcss.engine):FF.tailwindcss.engine;function yq(t){if(t===void 0)return!1;if(t==="true"||t==="1")return!0;if(t==="false"||t==="0")return!1;if(t==="*")return!0;let e=t.split(",").map(n=>n.split(":")[0]);return e.includes("-tailwindcss")?!1:!!e.includes("tailwindcss")}var Vr=Xi(w0(),1);Vr.default;Vr.default.stringify;Vr.default.fromJSON;Vr.default.plugin;Vr.default.parse;Vr.default.list;Vr.default.document;Vr.default.comment;Vr.default.atRule;Vr.default.rule;Vr.default.decl;Vr.default.root;Vr.default.CssSyntaxError;Vr.default.Declaration;Vr.default.Container;Vr.default.Processor;Vr.default.Document;Vr.default.Comment;Vr.default.Warning;Vr.default.AtRule;Vr.default.Result;Vr.default.Input;Vr.default.Rule;Vr.default.Root;Vr.default.Node;var Eq=Xi(Wu());Xi(KX());var B0=Xi(tq(),1);B0.default;B0.default.objectify;B0.default.parse;B0.default.async;B0.default.sync;Xi(Wu());d4();Xi(Wu());Xi(IB());Xi(Wu());Xi(U4());Xi(Wu());dB();ev();var Cq=new Map([["{","}"],["[","]"],["(",")"]]);new Map(Array.from(Cq.entries()).map(([t,e])=>[e,t]));Xi(Wu());(0,Eq.default)(t=>t.first.filter(({type:e})=>e==="class").pop().value);var vq=Xi(Wu());(0,vq.default)();Xi(U4());Xi(nq());Xi(aq());var TB=Xi(Wu()),PF={id(t){return TB.default.attribute({attribute:"id",operator:"=",value:t.value,quoteMark:'"'})}};function xq(t){let e=t.filter(a=>a.type!=="pseudo"||a.nodes.length>0?!0:a.value.startsWith("::")||[":before",":after",":first-line",":first-letter"].includes(a.value)).reverse(),n=new Set(["tag","class","id","attribute"]),r=e.findIndex(a=>n.has(a.type));if(r===-1)return e.reverse().join("").trim();let i=e[r],s=PF[i.type]?PF[i.type](i):i;e=e.slice(0,r);let o=e.findIndex(a=>a.type==="combinator"&&a.value===">");return o!==-1&&(e.splice(0,o),e.unshift(TB.default.universal())),[s,...e.reverse()].join("").trim()}(0,TB.default)(t=>t.map(e=>{let n=e.split(r=>r.type==="combinator"&&r.value===" ").pop();return xq(n)}));var Iq={atrule:["name","params"],rule:["selector"]};new Set(Object.keys(Iq));Xi(lq());Xi(gq(),1);/*! https://mths.be/cssesc v3.0.0 by @mathias */const Dq=le.createContext(null);function J4(){return le.useContext(Dq)}const Y4=le.createContext(void 0);function wh(){const t=le.useContext(Y4);if(t==null)throw new Error("Cannot be used outside of a uikit component.");return t}const PA=Y4.Provider,n2=le.createContext(void 0);function Sq(){return le.useContext(n2)}function Lr(t){const n={...le.useContext(n2)};for(const r in t){if(r==="children")continue;const i=t[r];i!=null&&(n[r]=i)}return te.jsx(n2.Provider,{value:n,children:t.children})}const QF=["onClick","onContextMenu","onDoubleClick","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMissed","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onWheel"],ju=le.forwardRef(({handlers:t,allowSkippingChildren:e,properties:n,children:r},i)=>{const[s,o]=le.useState(()=>t.peek());le.useEffect(()=>sn(()=>{const l=t.value,c=void setTimeout(()=>o(l),0);return()=>clearTimeout(c)}),[t]);const a=le.useMemo(()=>{const l={...s},c=QF.length;for(let p=0;p({style:Yt(void 0),properties:Yt(void 0),default:Yt(void 0)}),[]);return e.properties.value=t,e.default.value=Sq(),e}function Ju(t,e,n,r,i,s){le.useImperativeHandle(t,()=>{const{scrollPosition:o,paddingInset:a,borderInset:l,relativeCenter:c,size:p,maxScrollPosition:d}=r;return{setStyle:(A,y)=>n.value=y?A:{...n.value,...A},getStyle:()=>n.peek(),getComputedProperty:A=>pm(()=>r.mergedProperties.value.read(A,void 0)),pixelSize:e,borderInset:l,paddingInset:a,center:c,maxScrollPosition:d,size:p,interactionPanel:i instanceof gr?i:i.current,scrollPosition:o,isClipped:r.isClipped,...s}},[r,e,i,s,n])}const Ht=le.forwardRef((t,e)=>{const n=wh(),r=le.useRef(null),i=le.useRef(null),s=Vu(t),o=le.useMemo(()=>xY(n,s.style,s.properties,s.default,r,i),[n,s]);return o.interactionPanel.name=t.name??"",le.useEffect(()=>{const a=[];return _u(o.initializers,a),()=>sa(a)},[n,s,o]),Ju(e,n.root.pixelSize,s.style,o,o.interactionPanel),te.jsxs(ju,{properties:t,handlers:o.handlers,ref:r,children:[te.jsx("primitive",{object:o.interactionPanel}),te.jsx("object3D",{matrixAutoUpdate:!1,ref:i,children:te.jsx(PA,{value:o,children:t.children})})]})}),wq=le.forwardRef((t,e)=>{const n=n0(A=>A.gl);n.setTransparentSort(uJ);const r=al(),i=le.useRef(null),s=le.useRef(null),o=le.useMemo(()=>Yt(void 0),[]);o.value=t.pixelSize;const a=Vu(t),l=le.useMemo(()=>new Set,[]),c=le.useRef(!1),p=n0(A=>A.invalidate),d=le.useMemo(()=>gY(bn(()=>bs(o.value)??AY),a.style,a.properties,a.default,i,s,()=>r.getState().camera,n,l,()=>{c.current||p()},p),[p]);return d.interactionPanel.name=t.name??"",le.useEffect(()=>{const A=[];return _u(d.initializers,A),()=>sa(A)},[d]),_A((A,y)=>{c.current=!0;for(const C of l)C(y);c.current=!1}),Ju(e,d.root.pixelSize,a.style,d,d.interactionPanel),te.jsxs(ju,{properties:{pointerEvents:"auto",...t},handlers:d.handlers,ref:i,children:[te.jsx("primitive",{object:d.interactionPanel}),te.jsx("object3D",{matrixAutoUpdate:!1,ref:s,children:te.jsx(PA,{value:d,children:t.children})})]})}),sv=le.forwardRef((t,e)=>{const n=wh(),r=le.useRef(null),i=le.useRef(null),s=Vu(t),o=le.useMemo(()=>DY(n,s.style,s.properties,s.default,r,i),[]);return o.interactionPanel.name=t.name??"",le.useEffect(()=>{const a=[];return _u(o.initializers,a),()=>sa(a)},[o]),Ju(e,n.root.pixelSize,s.style,o,o.interactionPanel),te.jsxs(ju,{properties:t,ref:r,handlers:o.handlers,children:[te.jsx("primitive",{object:o.interactionPanel}),te.jsx("object3D",{matrixAutoUpdate:!1,ref:i,children:te.jsx(PA,{value:o,children:t.children})})]})}),pn=le.forwardRef((t,e)=>{const n=wh(),r=le.useRef(null),i=Vu(t),s=le.useMemo(()=>Yt(void 0),[]);s.value=t.children;const o=le.useMemo(()=>Yt(void 0),[]);o.value=J4();const a=le.useMemo(()=>XY(n,s,o,i.style,i.properties,i.default,r),[o,n,i,s]);return a.interactionPanel.name=t.name??"",le.useEffect(()=>{const l=[];return _u(a.initializers,l),()=>sa(l)},[a]),Ju(e,n.root.pixelSize,i.style,a,a.interactionPanel),te.jsx(ju,{allowSkippingChildren:!0,properties:t,handlers:a.handlers,ref:r,children:te.jsx("primitive",{object:a.interactionPanel})})});le.forwardRef((t,e)=>{const n=wh(),r=le.useRef(null),i=le.useRef(null),s=Vu(t),o=le.useMemo(()=>KY(n,s.style,s.properties,s.default,r,i),[n,s]);return o.interactionPanel.name=t.name??"",le.useEffect(()=>{const a=[];return _u(o.initializers,a),()=>sa(a)},[o]),Ju(e,n.root.pixelSize,s.style,o,o.interactionPanel),te.jsxs(ju,{properties:t,ref:r,handlers:o.handlers,children:[te.jsx("primitive",{object:o.interactionPanel}),te.jsx("primitive",{object:o.centerGroup}),te.jsx("object3D",{matrixAutoUpdate:!1,ref:i,children:te.jsx(PA,{value:o,children:t.children})})]})});const qi=le.forwardRef((t,e)=>{const n=wh(),r=le.useRef(null),i=Vu(t),s=le.useMemo(()=>tX(n,t.text,t.svgWidth,t.svgHeight,i.style,i.properties,i.default,r),[n,t.svgHeight,t.svgWidth,t.text,i]);return s.interactionPanel.name=t.name??"",le.useEffect(()=>{const o=[];return _u(s.initializers,o),()=>sa(o)},[s]),Ju(e,n.root.pixelSize,i.style,s,s.interactionPanel),te.jsxs(ju,{properties:t,ref:r,handlers:s.handlers,children:[te.jsx("primitive",{object:s.interactionPanel}),te.jsx("primitive",{object:s.iconGroup})]})}),X4=le.forwardRef((t,e)=>{const n=wh(),r=le.useRef(null),i=Vu(t),s=le.useMemo(()=>Yt(void 0),[]);s.value=J4();const o=le.useMemo(()=>dX(n,s,i.style,i.properties,i.default,r),[]);return o.interactionPanel.name=t.name??"",le.useEffect(()=>{const a=[];return _u(o.initializers,a),()=>sa(a)},[o]),Ju(e,n.root.pixelSize,i.style,o,o.interactionPanel,le.useMemo(()=>({focus:o.focus,current:o.valueSignal}),[o.focus,o.valueSignal])),te.jsx(ju,{allowSkippingChildren:!0,properties:t,handlers:o.handlers,ref:r,children:te.jsx("primitive",{object:o.interactionPanel})})});le.forwardRef((t,e)=>{const n=wh(),r=le.useRef(null),i=le.useRef(null),s=Vu(t),o=le.useMemo(()=>mX(n,s.style,s.properties,s.default,r,i),[n,s]);return le.useEffect(()=>{const a=[];return _u(o.initializers,a),()=>sa(a)},[o]),Ju(e,n.root.pixelSize,s.style,o,i),le.useEffect(()=>{i.current&&t.name&&(i.current.name=t.name)},[t.name]),te.jsx(ju,{properties:t,handlers:o.handlers,ref:r,children:te.jsx(PA,{value:void 0,children:te.jsx("mesh",{ref:i,matrixAutoUpdate:!1,geometry:lB,customDepthMaterial:t.customDepthMaterial,customDistanceMaterial:t.customDistanceMaterial,children:t.children})})})});le.forwardRef((t,e)=>{const n=wh(),r=le.useRef(null),i=le.useRef(null),s=Vu(t),o=le.useMemo(()=>yX(n,s.style,s.properties,s.default,r,i),[n,s]);return o.interactionPanel.name=t.name??"",le.useEffect(()=>{const a=[];return _u(o.initializers,a),()=>sa(a)},[o]),Ju(e,n.root.pixelSize,s.style,o,o.interactionPanel),te.jsxs(ju,{properties:t,handlers:o.handlers,ref:r,children:[te.jsx("primitive",{object:o.interactionPanel}),te.jsx("object3D",{matrixAutoUpdate:!1,ref:i,children:te.jsx(PA,{value:void 0,children:t.children})})]})});const Bq=le.forwardRef((t,e)=>{const n=al(),[r,i,s]=le.useMemo(()=>[Yt(1),Yt(1),Yt(1)],[]),o=n0(c=>c.camera),a=t.distanceToCamera??o.near+.1;le.useEffect(()=>{const c=({camera:p,size:{height:d}})=>xL(()=>xX(r,i,s,a,p,d));return c(n.getState()),n.subscribe(c)},[s,r,i,n,a]);const l=t.attachCamera??!0;return te.jsxs(te.Fragment,{children:[l&&te.jsx("primitive",{object:o}),MV(te.jsx("group",{"position-z":-a,children:te.jsx(wq,{ref:e,...t,sizeX:r,sizeY:i,pixelSize:s,children:t.children})}),o)]})});le.forwardRef(({src:t,...e},n)=>{const r=tB(QC,t);return r.colorSpace=ri,r.matrixAutoUpdate=!1,te.jsx(sv,{ref:n,src:r,...e})});var bq={BASE_URL:"/uikit/examples/default/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const kF=t=>{let e;const n=new Set,r=(p,d)=>{const A=typeof p=="function"?p(e):p;if(!Object.is(A,e)){const y=e;e=d??(typeof A!="object"||A===null)?A:Object.assign({},e,A),n.forEach(C=>C(e,y))}},i=()=>e,l={setState:r,getState:i,getInitialState:()=>c,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(bq?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=e=t(r,i,l);return l},Tq=t=>t?kF(t):kF;var q4={exports:{}},K4={},Z4={exports:{}},$4={};/** +`),re=_e.length-1,re>0?(Ge=F+re,ie=De-_e[re].length):(Ge=F,ie=_),ve=e.comment,F=Ge,z=Ge,L=De-ie):U===e.slash?(De=P,ve=U,z=F,L=P-_,N=De+1):(De=d(I,P),ve=e.word,z=F,L=De-_),N=De+1;break}D.push([ve,F,P-_,z,L,P,N]),ie&&(_=ie,ie=null),P=N}return D}}),VX=Bt((t,e)=>{t.__esModule=!0,t.default=void 0;var n=N(S4()),r=N(w4()),i=N(B4()),s=N(b4()),o=N(T4()),a=N(M4()),l=N(_4()),c=N(F4()),p=P(P4()),d=N(Q4()),A=N(k4()),y=N(R4()),C=N(WX()),x=P(jX()),D=P(L4()),I=P($s()),w=rv(),B,_;function F(Ae){if(typeof WeakMap!="function")return null;var Ue=new WeakMap,we=new WeakMap;return(F=function(K){return K?we:Ue})(Ae)}function P(Ae,Ue){if(!Ue&&Ae&&Ae.__esModule)return Ae;if(Ae===null||typeof Ae!="object"&&typeof Ae!="function")return{default:Ae};var we=F(Ue);if(we&&we.has(Ae))return we.get(Ae);var K={},oe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in Ae)if(Y!=="default"&&Object.prototype.hasOwnProperty.call(Ae,Y)){var Z=oe?Object.getOwnPropertyDescriptor(Ae,Y):null;Z&&(Z.get||Z.set)?Object.defineProperty(K,Y,Z):K[Y]=Ae[Y]}return K.default=Ae,we&&we.set(Ae,K),K}function N(Ae){return Ae&&Ae.__esModule?Ae:{default:Ae}}function U(Ae,Ue){for(var we=0;we0){var Y=this.current.last;if(Y){var Z=this.convertWhitespaceNodesToSpace(oe),Le=Z.space,ze=Z.rawSpace;ze!==void 0&&(Y.rawSpaceAfter+=ze),Y.spaces.after+=Le}else oe.forEach(function(Oe){return we.newNode(Oe)})}return}var Fe=this.currToken,je=void 0;K>this.position&&(je=this.parseWhitespaceEquivalentTokens(K));var le;if(this.isNamedCombinator()?le=this.namedCombinator():this.currToken[x.FIELDS.TYPE]===D.combinator?(le=new A.default({value:this.content(),source:_e(this.currToken),sourceIndex:this.currToken[x.FIELDS.START_POS]}),this.position++):L[this.currToken[x.FIELDS.TYPE]]||je||this.unexpected(),le){if(je){var Ne=this.convertWhitespaceNodesToSpace(je),be=Ne.space,Ve=Ne.rawSpace;le.spaces.before=be,le.rawSpaceBefore=Ve}}else{var He=this.convertWhitespaceNodesToSpace(je,!0),lt=He.space,Se=He.rawSpace;Se||(Se=lt);var W={},$={spaces:{}};lt.endsWith(" ")&&Se.endsWith(" ")?(W.before=lt.slice(0,lt.length-1),$.spaces.before=Se.slice(0,Se.length-1)):lt.startsWith(" ")&&Se.startsWith(" ")?(W.after=lt.slice(1),$.spaces.after=Se.slice(1)):$.value=Se,le=new A.default({value:" ",source:De(Fe,this.tokens[this.position-1]),sourceIndex:Fe[x.FIELDS.START_POS],spaces:W,raws:$})}return this.currToken&&this.currToken[x.FIELDS.TYPE]===D.space&&(le.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(le)},Ue.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var we=new r.default({source:{start:he(this.tokens[this.position+1])}});this.current.parent.append(we),this.current=we,this.position++},Ue.comment=function(){var we=this.currToken;this.newNode(new s.default({value:this.content(),source:_e(we),sourceIndex:we[x.FIELDS.START_POS]})),this.position++},Ue.error=function(we,K){throw this.root.error(we,K)},Ue.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[x.FIELDS.START_POS]})},Ue.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[x.FIELDS.START_POS])},Ue.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[x.FIELDS.START_POS])},Ue.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[x.FIELDS.START_POS])},Ue.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[x.FIELDS.START_POS])},Ue.namespace=function(){var we=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[x.FIELDS.TYPE]===D.word)return this.position++,this.word(we);if(this.nextToken[x.FIELDS.TYPE]===D.asterisk)return this.position++,this.universal(we);this.unexpectedPipe()},Ue.nesting=function(){if(this.nextToken){var we=this.content(this.nextToken);if(we==="|"){this.position++;return}}var K=this.currToken;this.newNode(new y.default({value:this.content(),source:_e(K),sourceIndex:K[x.FIELDS.START_POS]})),this.position++},Ue.parentheses=function(){var we=this.current.last,K=1;if(this.position++,we&&we.type===I.PSEUDO){var oe=new r.default({source:{start:he(this.tokens[this.position-1])}}),Y=this.current;for(we.append(oe),this.current=oe;this.position1&&we.nextToken&&we.nextToken[x.FIELDS.TYPE]===D.openParenthesis&&we.error("Misplaced parenthesis.",{index:we.nextToken[x.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[x.FIELDS.START_POS])},Ue.space=function(){var we=this.content();this.position===0||this.prevToken[x.FIELDS.TYPE]===D.comma||this.prevToken[x.FIELDS.TYPE]===D.openParenthesis||this.current.nodes.every(function(K){return K.type==="comment"})?(this.spaces=this.optionalSpace(we),this.position++):this.position===this.tokens.length-1||this.nextToken[x.FIELDS.TYPE]===D.comma||this.nextToken[x.FIELDS.TYPE]===D.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(we),this.position++):this.combinator()},Ue.string=function(){var we=this.currToken;this.newNode(new l.default({value:this.content(),source:_e(we),sourceIndex:we[x.FIELDS.START_POS]})),this.position++},Ue.universal=function(we){var K=this.nextToken;if(K&&this.content(K)==="|")return this.position++,this.namespace();var oe=this.currToken;this.newNode(new d.default({value:this.content(),source:_e(oe),sourceIndex:oe[x.FIELDS.START_POS]}),we),this.position++},Ue.splitWord=function(we,K){for(var oe=this,Y=this.nextToken,Z=this.content();Y&&~[D.dollar,D.caret,D.equals,D.word].indexOf(Y[x.FIELDS.TYPE]);){this.position++;var Le=this.content();if(Z+=Le,Le.lastIndexOf("\\")===Le.length-1){var ze=this.nextToken;ze&&ze[x.FIELDS.TYPE]===D.space&&(Z+=this.requiredSpace(this.content(ze)),this.position++)}Y=this.nextToken}var Fe=ie(Z,".").filter(function(be){var Ve=Z[be-1]==="\\",He=/^\d+\.\d+%$/.test(Z);return!Ve&&!He}),je=ie(Z,"#").filter(function(be){return Z[be-1]!=="\\"}),le=ie(Z,"#{");le.length&&(je=je.filter(function(be){return!~le.indexOf(be)}));var Ne=(0,C.default)(ge([0].concat(Fe,je)));Ne.forEach(function(be,Ve){var He=Ne[Ve+1]||Z.length,lt=Z.slice(be,He);if(Ve===0&&K)return K.call(oe,lt,Ne.length);var Se,W=oe.currToken,$=W[x.FIELDS.START_POS]+Ne[Ve],Oe=re(W[1],W[2]+be,W[3],W[2]+(He-1));if(~Fe.indexOf(be)){var ft={value:lt.slice(1),source:Oe,sourceIndex:$};Se=new i.default(Ge(ft,"value"))}else if(~je.indexOf(be)){var pt={value:lt.slice(1),source:Oe,sourceIndex:$};Se=new o.default(Ge(pt,"value"))}else{var ut={value:lt,source:Oe,sourceIndex:$};Ge(ut,"value"),Se=new a.default(ut)}oe.newNode(Se,we),we=null}),this.position++},Ue.word=function(we){var K=this.nextToken;return K&&this.content(K)==="|"?(this.position++,this.namespace()):this.splitWord(we)},Ue.loop=function(){for(;this.position{t.__esModule=!0,t.default=void 0;var n=r(VX());function r(s){return s&&s.__esModule?s:{default:s}}var i=function(){function s(a,l){this.func=a||function(){},this.funcRes=null,this.options=l}var o=s.prototype;return o._shouldUpdateSelector=function(a,l){l===void 0&&(l={});var c=Object.assign({},this.options,l);return c.updateSelector===!1?!1:typeof a!="string"},o._isLossy=function(a){a===void 0&&(a={});var l=Object.assign({},this.options,a);return l.lossless===!1},o._root=function(a,l){l===void 0&&(l={});var c=new n.default(a,this._parseOptions(l));return c.root},o._parseOptions=function(a){return{lossy:this._isLossy(a)}},o._run=function(a,l){var c=this;return l===void 0&&(l={}),new Promise(function(p,d){try{var A=c._root(a,l);Promise.resolve(c.func(A)).then(function(y){var C=void 0;return c._shouldUpdateSelector(a,l)&&(C=A.toString(),a.selector=C),{transform:y,root:A,string:C}}).then(p,d)}catch(y){d(y);return}})},o._runSync=function(a,l){l===void 0&&(l={});var c=this._root(a,l),p=this.func(c);if(p&&typeof p.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var d=void 0;return l.updateSelector&&typeof a!="string"&&(d=c.toString(),a.selector=d),{transform:p,root:c,string:d}},o.ast=function(a,l){return this._run(a,l).then(function(c){return c.root})},o.astSync=function(a,l){return this._runSync(a,l).root},o.transform=function(a,l){return this._run(a,l).then(function(c){return c.transform})},o.transformSync=function(a,l){return this._runSync(a,l).transform},o.process=function(a,l){return this._run(a,l).then(function(c){return c.string||c.root.toString()})},o.processSync=function(a,l){var c=this._runSync(a,l);return c.string||c.root.toString()},s}();t.default=i,e.exports=t.default}),YX=Bt(t=>{t.__esModule=!0,t.universal=t.tag=t.string=t.selector=t.root=t.pseudo=t.nesting=t.id=t.comment=t.combinator=t.className=t.attribute=void 0;var e=y(P4()),n=y(B4()),r=y(k4()),i=y(b4()),s=y(T4()),o=y(R4()),a=y(F4()),l=y(S4()),c=y(w4()),p=y(_4()),d=y(M4()),A=y(Q4());function y(L){return L&&L.__esModule?L:{default:L}}var C=function(L){return new e.default(L)};t.attribute=C;var x=function(L){return new n.default(L)};t.className=x;var D=function(L){return new r.default(L)};t.combinator=D;var I=function(L){return new i.default(L)};t.comment=I;var w=function(L){return new s.default(L)};t.id=w;var B=function(L){return new o.default(L)};t.nesting=B;var _=function(L){return new a.default(L)};t.pseudo=_;var F=function(L){return new l.default(L)};t.root=F;var P=function(L){return new c.default(L)};t.selector=P;var N=function(L){return new p.default(L)};t.string=N;var U=function(L){return new d.default(L)};t.tag=U;var q=function(L){return new A.default(L)};t.universal=q}),XX=Bt(t=>{t.__esModule=!0,t.isComment=t.isCombinator=t.isClassName=t.isAttribute=void 0,t.isContainer=_,t.isIdentifier=void 0,t.isNamespace=F,t.isNesting=void 0,t.isNode=i,t.isPseudo=void 0,t.isPseudoClass=B,t.isPseudoElement=w,t.isUniversal=t.isTag=t.isString=t.isSelector=t.isRoot=void 0;var e=$s(),n,r=(n={},n[e.ATTRIBUTE]=!0,n[e.CLASS]=!0,n[e.COMBINATOR]=!0,n[e.COMMENT]=!0,n[e.ID]=!0,n[e.NESTING]=!0,n[e.PSEUDO]=!0,n[e.ROOT]=!0,n[e.SELECTOR]=!0,n[e.STRING]=!0,n[e.TAG]=!0,n[e.UNIVERSAL]=!0,n);function i(P){return typeof P=="object"&&r[P.type]}function s(P,N){return i(N)&&N.type===P}var o=s.bind(null,e.ATTRIBUTE);t.isAttribute=o;var a=s.bind(null,e.CLASS);t.isClassName=a;var l=s.bind(null,e.COMBINATOR);t.isCombinator=l;var c=s.bind(null,e.COMMENT);t.isComment=c;var p=s.bind(null,e.ID);t.isIdentifier=p;var d=s.bind(null,e.NESTING);t.isNesting=d;var A=s.bind(null,e.PSEUDO);t.isPseudo=A;var y=s.bind(null,e.ROOT);t.isRoot=y;var C=s.bind(null,e.SELECTOR);t.isSelector=C;var x=s.bind(null,e.STRING);t.isString=x;var D=s.bind(null,e.TAG);t.isTag=D;var I=s.bind(null,e.UNIVERSAL);t.isUniversal=I;function w(P){return A(P)&&P.value&&(P.value.startsWith("::")||P.value.toLowerCase()===":before"||P.value.toLowerCase()===":after"||P.value.toLowerCase()===":first-letter"||P.value.toLowerCase()===":first-line")}function B(P){return A(P)&&!w(P)}function _(P){return!!(i(P)&&P.walk)}function F(P){return o(P)||D(P)}}),qX=Bt(t=>{t.__esModule=!0;var e=$s();Object.keys(e).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===e[i]||(t[i]=e[i])});var n=YX();Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===n[i]||(t[i]=n[i])});var r=XX();Object.keys(r).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===r[i]||(t[i]=r[i])})}),Wu=Bt((t,e)=>{t.__esModule=!0,t.default=void 0;var n=o(JX()),r=s(qX());function i(c){if(typeof WeakMap!="function")return null;var p=new WeakMap,d=new WeakMap;return(i=function(A){return A?d:p})(c)}function s(c,p){if(!p&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var d=i(p);if(d&&d.has(c))return d.get(c);var A={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in c)if(C!=="default"&&Object.prototype.hasOwnProperty.call(c,C)){var x=y?Object.getOwnPropertyDescriptor(c,C):null;x&&(x.get||x.set)?Object.defineProperty(A,C,x):A[C]=c[C]}return A.default=c,d&&d.set(c,A),A}function o(c){return c&&c.__esModule?c:{default:c}}var a=function(c){return new n.default(c)};Object.assign(a,r),delete a.__esModule;var l=a;t.default=l,e.exports=t.default}),KX=Bt((t,e)=>{var{Rule:n,AtRule:r}=w0(),i=Wu();function s(B,_){let F;try{i(P=>{F=P}).processSync(B)}catch(P){throw B.includes(":")?_?_.error("Missed semicolon"):P:_?_.error(P.message):P}return F.at(0)}function o(B,_){let F=!1;return B.each(P=>{if(P.type==="nesting"){let N=_.clone({});P.value!=="&"?P.replaceWith(s(P.value.replace("&",N.toString()))):P.replaceWith(N),F=!0}else"nodes"in P&&P.nodes&&o(P,_)&&(F=!0)}),F}function a(B,_){let F=[];return B.selectors.forEach(P=>{let N=s(P,B);_.selectors.forEach(U=>{if(!U)return;let q=s(U,_);o(q,N)||(q.prepend(i.combinator({value:" "})),q.prepend(N.clone({}))),F.push(q.toString())})}),F}function l(B,_){let F=B.prev();for(_.after(B);F&&F.type==="comment";){let P=F.prev();_.after(F),F=P}return B}function c(B){return function _(F,P,N,U=N){let q=[];if(P.each(L=>{L.type==="rule"&&N?U&&(L.selectors=a(F,L)):L.type==="atrule"&&L.nodes?B[L.name]?_(F,L,U):P[x]!==!1&&q.push(L):q.push(L)}),N&&q.length){let L=F.clone({nodes:[]});for(let z of q)L.append(z);P.prepend(L)}}}function p(B,_,F){let P=new n({selector:B,nodes:[]});return P.append(_),F.after(P),P}function d(B,_){let F={};for(let P of B)F[P]=!0;if(_)for(let P of _)F[P.replace(/^@/,"")]=!0;return F}function A(B){B=B.trim();let _=B.match(/^\((.*)\)$/);if(!_)return{type:"basic",selector:B};let F=_[1].match(/^(with(?:out)?):(.+)$/);if(F){let P=F[1]==="with",N=Object.fromEntries(F[2].trim().split(/\s+/).map(q=>[q,!0]));if(P&&N.all)return{type:"noop"};let U=q=>!!N[q];return N.all?U=()=>!0:P&&(U=q=>q==="all"?!1:!N[q]),{type:"withrules",escapes:U}}return{type:"unknown"}}function y(B){let _=[],F=B.parent;for(;F&&F instanceof r;)_.push(F),F=F.parent;return _}function C(B){let _=B[D];if(!_)B.after(B.nodes);else{let F=B.nodes,P,N=-1,U,q,L,z=y(B);if(z.forEach((he,Ie)=>{if(_(he.name))P=he,N=Ie,q=L;else{let re=L;L=he.clone({nodes:[]}),re&&L.append(re),U=U||L}}),P?q?(U.append(F),P.after(q)):P.after(F):B.after(F),B.next()&&P){let he;z.slice(0,N+1).forEach((Ie,re,_e)=>{let De=he;he=Ie.clone({nodes:[]}),De&&he.append(De);let Ge=[],ie=(_e[re-1]||B).next();for(;ie;)Ge.push(ie),ie=ie.next();he.append(Ge)}),he&&(q||F[F.length-1]).after(he)}}B.remove()}var x=Symbol("rootRuleMergeSel"),D=Symbol("rootRuleEscapes");function I(B){let{params:_}=B,{type:F,selector:P,escapes:N}=A(_);if(F==="unknown")throw B.error(`Unknown @${B.name} parameter ${JSON.stringify(_)}`);if(F==="basic"&&P){let U=new n({selector:P,nodes:B.nodes});B.removeAll(),B.append(U)}B[D]=N,B[x]=N?!N("all"):F==="noop"}var w=Symbol("hasRootRule");e.exports=(B={})=>{let _=d(["media","supports","layer","container"],B.bubble),F=c(_),P=d(["document","font-face","keyframes","-webkit-keyframes","-moz-keyframes"],B.unwrap),N=(B.rootRuleName||"at-root").replace(/^@/,""),U=B.preserveEmpty;return{postcssPlugin:"postcss-nested",Once(q){q.walkAtRules(N,L=>{I(L),q[w]=!0})},Rule(q){let L=!1,z=q,he=!1,Ie=[];q.each(re=>{re.type==="rule"?(Ie.length&&(z=p(q.selector,Ie,z),Ie=[]),he=!0,L=!0,re.selectors=a(q,re),z=l(re,z)):re.type==="atrule"?(Ie.length&&(z=p(q.selector,Ie,z),Ie=[]),re.name===N?(L=!0,F(q,re,!0,re[x]),z=l(re,z)):_[re.name]?(he=!0,L=!0,F(q,re,!0),z=l(re,z)):P[re.name]?(he=!0,L=!0,F(q,re,!1),z=l(re,z)):he&&Ie.push(re)):re.type==="decl"&&he&&Ie.push(re)}),Ie.length&&(z=p(q.selector,Ie,z)),L&&U!==!0&&(q.raws.semicolon=!0,q.nodes.length===0&&q.remove())},RootExit(q){q[w]&&(q.walkAtRules(N,C),q[w]=!1)}}},e.exports.postcss=!0}),ZX=Bt((t,e)=>{var n=/-(\w|$)/g,r=function(s,o){return o.toUpperCase()},i=function(s){return s=s.toLowerCase(),s==="float"?"cssFloat":s.charCodeAt(0)===45&&s.charCodeAt(1)===109&&s.charCodeAt(2)===115&&s.charCodeAt(3)===45?s.substr(1).replace(n,r):s.replace(n,r)};e.exports=i}),N4=Bt((t,e)=>{var n=ZX(),r={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};function i(o){return typeof o.nodes>"u"?!0:s(o)}function s(o){let a,l={};return o.each(c=>{if(c.type==="atrule")a="@"+c.name,c.params&&(a+=" "+c.params),typeof l[a]>"u"?l[a]=i(c):Array.isArray(l[a])?l[a].push(i(c)):l[a]=[l[a],i(c)];else if(c.type==="rule"){let p=s(c);if(l[c.selector])for(let d in p)l[c.selector][d]=p[d];else l[c.selector]=p}else if(c.type==="decl"){c.prop[0]==="-"&&c.prop[1]==="-"||c.parent&&c.parent.selector===":export"?a=c.prop:a=n(c.prop);let p=c.value;!isNaN(c.value)&&r[a]&&(p=parseFloat(c.value)),c.important&&(p+=" !important"),typeof l[a]>"u"?l[a]=p:Array.isArray(l[a])?l[a].push(p):l[a]=[l[a],p]}}),l}e.exports=s}),BB=Bt((t,e)=>{var n=w0(),r=/\s*!important\s*$/i,i={"box-flex":!0,"box-flex-group":!0,"column-count":!0,flex:!0,"flex-grow":!0,"flex-positive":!0,"flex-shrink":!0,"flex-negative":!0,"font-weight":!0,"line-clamp":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"tab-size":!0,widows:!0,"z-index":!0,zoom:!0,"fill-opacity":!0,"stroke-dashoffset":!0,"stroke-opacity":!0,"stroke-width":!0};function s(c){return c.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()}function o(c,p,d){d===!1||d===null||(p.startsWith("--")||(p=s(p)),typeof d=="number"&&(d===0||i[p]?d=d.toString():d+="px"),p==="css-float"&&(p="float"),r.test(d)?(d=d.replace(r,""),c.push(n.decl({prop:p,value:d,important:!0}))):c.push(n.decl({prop:p,value:d})))}function a(c,p,d){let A=n.atRule({name:p[1],params:p[3]||""});typeof d=="object"&&(A.nodes=[],l(d,A)),c.push(A)}function l(c,p){let d,A,y;for(d in c)if(A=c[d],!(A===null||typeof A>"u"))if(d[0]==="@"){let C=d.match(/@(\S+)(\s+([\W\w]*)\s*)?/);if(Array.isArray(A))for(let x of A)a(p,C,x);else a(p,C,A)}else if(Array.isArray(A))for(let C of A)o(p,d,C);else typeof A=="object"?(y=n.rule({selector:d}),l(A,y),p.push(y)):o(p,d,A)}e.exports=function(c){let p=n.root();return l(c,p),p}}),O4=Bt((t,e)=>{var n=N4();e.exports=function(r){return console&&console.warn&&r.warnings().forEach(i=>{let s=i.plugin||"PostCSS";console.warn(s+": "+i.text)}),n(r.root)}}),$X=Bt((t,e)=>{var n=w0(),r=O4(),i=BB();e.exports=function(s){let o=n(s);return async a=>{let l=await o.process(a,{parser:i,from:void 0});return r(l)}}}),eq=Bt((t,e)=>{var n=w0(),r=O4(),i=BB();e.exports=function(s){let o=n(s);return a=>{let l=o.process(a,{parser:i,from:void 0});return r(l)}}}),tq=Bt((t,e)=>{var n=N4(),r=BB(),i=$X(),s=eq();e.exports={objectify:n,parse:r,async:i,sync:s}}),U4=Bt((t,e)=>{(function(n,r){typeof t=="object"&&typeof e<"u"?e.exports=function(i,s,o,a,l){for(s=s.split?s.split("."):s,a=0;a{(function(){function n(s,o,a){if(!s)return null;n.caseSensitive||(s=s.toLowerCase());var l=n.threshold===null?null:n.threshold*s.length,c=n.thresholdAbsolute,p;l!==null&&c!==null?p=Math.min(l,c):l!==null?p=l:c!==null?p=c:p=null;var d,A,y,C,x,D=o.length;for(x=0;xa)return a+1;var p=[],d,A,y,C,x;for(d=0;d<=c;d++)p[d]=[d];for(A=0;A<=l;A++)p[0][A]=A;for(d=1;d<=c;d++){for(y=r,C=1,d>a&&(C=d-a),x=c+1,x>a+d&&(x=a+d),A=1;A<=l;A++)Ax?p[d][A]=a+1:o.charAt(d-1)===s.charAt(A-1)?p[d][A]=p[d-1][A-1]:p[d][A]=Math.min(p[d-1][A-1]+1,Math.min(p[d][A-1]+1,p[d-1][A]+1)),p[d][A]a)return a+1}return p[c][l]}})()}),rq=Bt((t,e)=>{var n=40,r=41,i=39,s=34,o=92,a=47,l=44,c=58,p=42,d=117,A=85,y=43,C=/^[a-f0-9?-]+$/i;e.exports=function(x){for(var D=[],I=x,w,B,_,F,P,N,U,q,L=0,z=I.charCodeAt(L),he=I.length,Ie=[{nodes:D}],re=0,_e,De="",Ge="",ie="";L{e.exports=function n(r,i,s){var o,a,l,c;for(o=0,a=r.length;o{function n(i,s){var o=i.type,a=i.value,l,c;return s&&(c=s(i))!==void 0?c:o==="word"||o==="space"?a:o==="string"?(l=i.quote||"",l+a+(i.unclosed?"":l)):o==="comment"?"/*"+a+(i.unclosed?"":"*/"):o==="div"?(i.before||"")+a+(i.after||""):Array.isArray(i.nodes)?(l=r(i.nodes,s),o!=="function"?l:a+"("+(i.before||"")+l+(i.after||"")+(i.unclosed?"":")")):a}function r(i,s){var o,a;if(Array.isArray(i)){for(o="",a=i.length-1;~a;a-=1)o=n(i[a],s)+o;return o}return n(i,s)}e.exports=r}),oq=Bt((t,e)=>{var n=45,r=43,i=46,s=101,o=69;function a(l){var c=l.charCodeAt(0),p;if(c===r||c===n){if(p=l.charCodeAt(1),p>=48&&p<=57)return!0;var d=l.charCodeAt(2);return p===i&&d>=48&&d<=57}return c===i?(p=l.charCodeAt(1),p>=48&&p<=57):c>=48&&c<=57}e.exports=function(l){var c=0,p=l.length,d,A,y;if(p===0||!a(l))return!1;for(d=l.charCodeAt(c),(d===r||d===n)&&c++;c57));)c+=1;if(d=l.charCodeAt(c),A=l.charCodeAt(c+1),d===i&&A>=48&&A<=57)for(c+=2;c57));)c+=1;if(d=l.charCodeAt(c),A=l.charCodeAt(c+1),y=l.charCodeAt(c+2),(d===s||d===o)&&(A>=48&&A<=57||(A===r||A===n)&&y>=48&&y<=57))for(c+=A===r||A===n?3:2;c57));)c+=1;return{number:l.slice(0,c),unit:l.slice(c)}}}),aq=Bt((t,e)=>{var n=rq(),r=iq(),i=sq();function s(o){return this instanceof s?(this.nodes=n(o),this):new s(o)}s.prototype.toString=function(){return Array.isArray(this.nodes)?i(this.nodes):""},s.prototype.walk=function(o,a){return r(this.nodes,o,a),this},s.unit=oq(),s.walk=r,s.stringify=i,e.exports=s}),lq=Bt((t,e)=>{e.exports={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:n})=>({...n("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:n})=>n("blur"),backdropBrightness:({theme:n})=>n("brightness"),backdropContrast:({theme:n})=>n("contrast"),backdropGrayscale:({theme:n})=>n("grayscale"),backdropHueRotate:({theme:n})=>n("hueRotate"),backdropInvert:({theme:n})=>n("invert"),backdropOpacity:({theme:n})=>n("opacity"),backdropSaturate:({theme:n})=>n("saturate"),backdropSepia:({theme:n})=>n("sepia"),backgroundColor:({theme:n})=>n("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:n})=>n("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:n})=>({...n("colors"),DEFAULT:n("colors.gray.200","currentColor")}),borderOpacity:({theme:n})=>n("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:n})=>({...n("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:n})=>n("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:n})=>n("colors"),colors:({colors:n})=>({inherit:n.inherit,current:n.current,transparent:n.transparent,black:n.black,white:n.white,slate:n.slate,gray:n.gray,zinc:n.zinc,neutral:n.neutral,stone:n.stone,red:n.red,orange:n.orange,amber:n.amber,yellow:n.yellow,lime:n.lime,green:n.green,emerald:n.emerald,teal:n.teal,cyan:n.cyan,sky:n.sky,blue:n.blue,indigo:n.indigo,violet:n.violet,purple:n.purple,fuchsia:n.fuchsia,pink:n.pink,rose:n.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:n})=>n("borderColor"),divideOpacity:({theme:n})=>n("borderOpacity"),divideWidth:({theme:n})=>n("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:n})=>({none:"none",...n("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:n})=>({auto:"auto",...n("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:n})=>n("spacing"),gradientColorStops:({theme:n})=>n("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:n})=>({auto:"auto",...n("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:n})=>({auto:"auto",...n("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:n})=>({auto:"auto",...n("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:n})=>({...n("spacing"),none:"none",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:n,breakpoints:r})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...r(n("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:n})=>n("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:n})=>n("spacing"),placeholderColor:({theme:n})=>n("colors"),placeholderOpacity:({theme:n})=>n("opacity"),ringColor:({theme:n})=>({DEFAULT:n("colors.blue.500","#3b82f6"),...n("colors")}),ringOffsetColor:({theme:n})=>n("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:n})=>({DEFAULT:"0.5",...n("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:n})=>({...n("spacing")}),scrollPadding:({theme:n})=>n("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:n})=>({...n("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:n})=>({none:"none",...n("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:n})=>n("colors"),textDecorationColor:({theme:n})=>n("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:n})=>({...n("spacing")}),textOpacity:({theme:n})=>n("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:n})=>({...n("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:n})=>({auto:"auto",...n("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]}}),uq=Bt((t,e)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):r.call(p)==="[object Array]"},a=function(p){if(!p||r.call(p)!=="[object Object]")return!1;var d=n.call(p,"constructor"),A=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!d&&!A)return!1;var y;for(y in p);return typeof y>"u"||n.call(p,y)},l=function(p,d){i&&d.name==="__proto__"?i(p,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):p[d.name]=d.newValue},c=function(p,d){if(d==="__proto__")if(n.call(p,d)){if(s)return s(p,d).value}else return;return p[d]};e.exports=function p(){var d,A,y,C,x,D,I=arguments[0],w=1,B=arguments.length,_=!1;for(typeof I=="boolean"&&(_=I,I=arguments[1]||{},w=2),(I==null||typeof I!="object"&&typeof I!="function")&&(I={});w{var n=function(r,i){var s=new r.constructor;return Object.keys(r).forEach(function(o){if(r.hasOwnProperty(o)){var a=r[o],l=typeof a;o==="parent"&&l==="object"?i&&(s[o]=i):o==="source"?s[o]=a:a instanceof Array?o==="nodes"?s[o]=[]:s[o]=a.map(function(c){n(c,s)}):o!=="before"&&o!=="after"&&o!=="between"&&o!=="semicolon"&&(l==="object"&&(a=n(a)),s[o]=a)}}),s};e.exports=n}),cq=Bt((t,e)=>{e.exports=n;function n(s,o,a){s instanceof RegExp&&(s=r(s,a)),o instanceof RegExp&&(o=r(o,a));var l=i(s,o,a);return l&&{start:l[0],end:l[1],pre:a.slice(0,l[0]),body:a.slice(l[0]+s.length,l[1]),post:a.slice(l[1]+o.length)}}function r(s,o){var a=o.match(s);return a?a[0]:null}n.range=i;function i(s,o,a){var l,c,p,d,A,y=a.indexOf(s),C=a.indexOf(o,y+1),x=y;if(y>=0&&C>0){if(s===o)return[y,C];for(l=[],p=a.length;x>=0&&!A;)x==y?(l.push(x),y=a.indexOf(s,x+1)):l.length==1?A=[l.pop(),C]:(c=l.pop(),c=0?y:C;l.length&&(A=[p,d])}return A}}),hq=Bt((t,e)=>{var n=/(.*?(?:(?:\([^\)]+\)|\[[^\]]+\]|(?![><+~\s]).)+)(?:(?:(?:\s(?!>>))|(?:\t(?!>>))|(?:\s?>>\s?))(?!\s+))(?![><+~][\s]+?))/,r=function(i){return i.split(n).filter(function(s){return s.length>0}).map(function(s){return s.trim().replace(/\s*?>>\s*?/g,"")})};e.exports=r}),iv=Bt((t,e)=>{var n=hq(),r=function(i,s){s=s||!1;for(var o=[[]],a=s?i:i.parent;a;){var l=(a.selectors||[]).map(function(p){return{value:p,type:"selector"}});a.type==="atrule"&&(l=[].concat(a.params).map(function(p){return{value:"@"+a.name+" "+p,type:"atrule"}}));var c=(l.length>0?l:[1]).map(function(){return o.map(function(p){return p.slice(0)})});l.forEach(function(p,d){c[d]=c[d].map(function(A){var y=[p.value];return p.type==="selector"&&(y=n(p.value)),A.unshift.apply(A,y),A})}),o=[],c.forEach(function(p){o=o.concat(p)}),a=a.parent}return o};e.exports=r}),pq=Bt((t,e)=>{var n=/[|\\{}()[\]^$+*?.]/g;e.exports=function(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(n,"\\$&")}}),dq=Bt((t,e)=>{var n={"*":!0,":root":!0,html:!0},r=function(i){return!!n[i]};e.exports=r}),fq=Bt((t,e)=>{var n=/(.*?(?:(?:\([^\)]+\)|\[[^\]]+\]|(?!>>|<|\+|~|\s).)+)(?:(?:(?:>(?!>))|(?:\s?>(?!>)\s?))(?!\s+))(?!(?:>>|<|\+|~)[\s]+?))/,r=function(i){return i.split(n).filter(function(s){return s.length>0}).map(function(s){return s.trim().replace(/\s*?>\s*?/g,"")})};e.exports=r}),G4=Bt((t,e)=>{var n=pq(),r=dq(),i=fq(),s=/^@.*/,o=/([^\s:]+)((?::|::)[^\s]*?)(\s+|$)/;function a(p,d){var A,y,C=d.some(function(x){return p.some(function(D){A=null;var I=!0;for(y=0;y1){var L=[].concat([q]),z=[].concat([x.slice(y).reduce(function(re,_e){return re.concat(i(_e))},[])]),he=a(L,z);(he.doesMatchScope||y+1=B;if(A=_+1,I=I&&Ie,!I)break}return I})});return{doesMatchScope:C,nodeScopePieceIndex:A-1,scopePieceIndex:y}}var l=function(p){return p.map(function(d){return d.map(function(A){return s.test(A)?A:A.replace(new RegExp(o.source,"g"),function(y,C,x,D){return C+D})})})},c=function(p,d,A){return p=l(p),A&&(d=l(d)),a(p,d).doesMatchScope};c.RE_PSEUDO_SELECTOR=o,e.exports=c}),H4=Bt((t,e)=>{var n=G4(),r=iv(),i=function(s,o,a){var l=r(s,!0),c=r(o,!0);return n(l,c,a)};e.exports=i}),z4=Bt((t,e)=>{var n=function(r,i,s){s=s||[];var o=!1;return r&&(s=r.reduce(function(a,l){var c=!!i[l],p=c?a.some(function(d){return i[l].some(function(A){return d===A})}):!1;return o=o||p,c&&!o&&(a=a.concat(i[l]),(i[l]||[]).forEach(function(d){var A=n(d.variablesUsed,i,a);a=A.deps,o=o||A.hasCircularOrSelfReference})),a},s)),{deps:s,hasCircularOrSelfReference:o}};e.exports=n}),W4=Bt((t,e)=>{var n=iv(),r=function(i,s){for(var o,a=s;a.parent&&!o;){var l=n(a.clone(),!0);l.some(function(c){return c.some(function(p){return p===i?(o=a,!0):!1})}),a=a.parent}return o};e.exports=r}),j4=Bt((t,e)=>{var n=bB(),r=function(i,s,o){o=o||function(){return!0};for(var a=[],l=i,c=!1;l&&!c;)l.type==="decl"?a.push(l.clone()):a.push(n(l)),c=o(l),l=l.parent;for(var p=[],d=s;d;)p.push(n(d)),d=d.parent;return p.forEach(function(A,y,C){y+1{var n=cq(),r=iv(),i=H4(),s=z4(),o=W4(),a=j4(),l=/var\(\s*(--[^,\s)]+)/;function c(A){return String(A)}function p(A){var y=n("(",")",A);if(y){if(/(?:^|[^\w-])var$/.test(y.pre))return{pre:y.pre.slice(0,-3),body:y.body,post:y.post};var C=p(y.body);if(C)return{pre:y.pre+"("+C.pre,body:C.body,post:C.post+")"+y.post};var x=p(y.post);if(x)return{pre:y.pre+"("+y.body+")"+x.pre,body:x.body,post:x.post}}}var d=function(A,y,C,x){for(var D=x?" ":"",I=void 0,w=c(A.value),B=[],_={},F=w;I=p(F);){var P=I.body.split(","),N=P[0].trim();_[N]=!0,F=(I.pre||"")+I.body.replace(N,"")+(I.post||"")}F=void 0;for(var U=Object.keys(_),q=!1;I=p(w);){var L=void 0,P=I.body.split(","),N=P[0].trim(),z=P.length>1?P.slice(1).join(",").trim():void 0;(y[N]||[]).forEach(function(ge){ge.parent.type==="root"||ge.parent.selectors[0],i(A.parent,ge.parent);var ve=i(A.parent,ge.parent,C);ve&&(!(L||{}).isImportant||ge.isImportant)&&(L=ge)});var he=(L||{}).calculatedInPlaceValue||function(){var ge=z;if(z){var ve=A.clone({parent:A.parent,value:z});ge=d(ve,y,!1,!0).value}return ge}();if(L!==void 0&&!s(U,y).hasCircularOrSelfReference){var Ie=r(A.parent.parent,!0),re=Ie[0].slice(-1)[0],_e=o(re,L.decl.parent),De=a(L.decl,A.parent.parent,function(ge){return ge===_e});he=d(De,y,!1,!0).value}q=he===void 0,q&&B.push(["variable "+N+" is undefined and used without a fallback",{node:A}]),w=(I.pre||"")+he+(I.post||"")}return{value:q?void 0:w,variablesUsed:U,warnings:B}};d.RE_VAR_FUNC=l,e.exports=d}),Aq=Bt((t,e)=>{var n=V4(),r=iv(),i=z4(),s=G4(),o=H4(),a=bB(),l=W4(),c=j4();function p(A,y,C,x){A.forEach(function(D){i(A,y).deps.forEach(function(I){var w;if(I.isUnderAtRule){var B=r(I.parent,!0),_=B[0].slice(-1)[0],F=l(_,C.parent),P=I.parent.parent;w=c(C,P,function(L){return L===F})}else if(s.RE_PSEUDO_SELECTOR.test(I.parent.selector)){var N=a(C.parent);N.parent=C.parent.parent,w=C.clone(),N.append(w);var U=I.parent.selector.match(new RegExp(s.RE_PSEUDO_SELECTOR.source+"$")),q=U?U[2]:"";N.selector+=q}w&&o(w,I.parent,!0)&&x(w,I)})})}function d(A,y,C,x,D){C=(typeof C=="function"?C(A):C)||!1,x=x||!1;var I=function(_){return D&&D(_),_},w=I(n(A,y)),B;p(w.variablesUsed,y,A,function(_,F){var P=a(A.parent),N=A.clone();P.append(N);let U;if(typeof C=="function"?U=C(A):U=C,U===!0&&N.cloneAfter(),N.value=I(n(_,y,!0)).value,F.isUnderAtRule){var q=a(F.parent.parent);q.append(P);for(var L=q,z=F.parent.parent;z.parent.type==="atrule";){var he=a(z.parent);he.append(L),L=he,z=z.parent}A.parent.parent.insertAfter(x&&B||A.parent,L),B=L}else P.selector=_.parent.selector,A.parent.parent.insertAfter(x&&B||A.parent,P)}),C===!0&&A.value!==w.value&&A.cloneAfter(),w.value===void 0&&(w.value="undefined"),A.value=w.value}e.exports=d}),gq=Bt((t,e)=>{var n=uq(),r=bB(),i=V4(),s=Aq(),o=/(--(.+))/;function a(p,d){p.walkDecls(function(A){o.test(A.prop)&&d(A)})}function l(p){for(var d=p;d&&d.nodes.length<=0;){var A=d.type!=="root"?d:null;A?(d=A.parent,A.remove()):d=null}}var c={preserve:!1,variables:{},preserveInjectedVariables:!0,preserveAtRulesOrder:!1};e.exports=(p={})=>{var d=n({},c,p);return{postcssPlugin:"postcss-css-variables",Once(A,{decl:y,result:C,rule:x}){var D=[],I=[],w={};w=n(w,Object.keys(d.variables).reduce(function(F,P){var N=d.variables[P];P=P.slice(0,2)==="--"?P:"--"+P;var U=(N||{}).value||N,q=(N||{}).isImportant||!1,L=x({selector:":root"});A.root().prepend(L);var z=y({prop:P,value:U,important:q});return L.append(z),d.preserveInjectedVariables||I.push(z),F[P]=(F[P]||[]).concat({decl:z,prop:P,calculatedInPlaceValue:U,isImportant:q,variablesUsed:[],parent:L,isUnderAtRule:!1}),F},{}));var B=function(F){var P=[].concat(F.warnings);return P.forEach(function(N){N=[].concat(N),C.warn.apply(C,N)}),F};a(A,function(F){var P=F.parent,N=B(i(F,w));F.parent.selectors.forEach(function(q){var L=r(F.parent);L.selector=q,L.parent=F.parent.parent;var z=F.clone();L.append(z);var he=F.prop;w[he]=(w[he]||[]).concat({decl:z,prop:he,calculatedInPlaceValue:N.value,isImportant:F.important||!1,variablesUsed:N.variablesUsed,parent:L,isUnderAtRule:L.parent.type==="atrule"})});let U;typeof d.preserve=="function"?U=d.preserve(F):U=d.preserve,U?U==="computed"&&(F.value=N.value):F.remove(),P.nodes.length<=0&&D.push(P)});var _=[];A.walk(function(F){if(F.nodes!==void 0){var P=F.nodes.some(function(N){if(N.type==="decl"){var U=N;if(i.RE_VAR_FUNC.test(U.value)&&!o.test(U.prop))return!0}return!1});P&&_.push(F)}}),_.forEach(function(F){var P=[].concat(F);F.type==="rule"&&F.selectors.length>1&&(P=F.selectors.reverse().map(function(N){var U=F.cloneAfter();return U.selector=N,U}),F.remove()),P.forEach(function(N){N.nodes.slice(0).forEach(function(U){if(U.type==="decl"){var q=U;s(q,w,d.preserve,d.preserveAtRulesOrder,B)}})})}),D.forEach(l),I.forEach(function(F){F.remove()})}}},e.exports.postcss=!0});dB();Xi(PX());var mq="3.3.2",FF={name:"tailwindcss",version:mq,description:"A utility-first CSS framework for rapidly building custom user interfaces.",license:"MIT",main:"lib/index.js",types:"types/index.d.ts",repository:"https://github.com/tailwindlabs/tailwindcss.git",bugs:"https://github.com/tailwindlabs/tailwindcss/issues",homepage:"https://tailwindcss.com",bin:{tailwind:"lib/cli.js",tailwindcss:"lib/cli.js"},tailwindcss:{engine:"stable"},scripts:{prebuild:"npm run generate && rimraf lib",build:`swc src --out-dir lib --copy-files --config jsc.transform.optimizer.globals.vars.__OXIDE__='"false"'`,postbuild:"esbuild lib/cli-peer-dependencies.js --bundle --platform=node --outfile=peers/index.js --define:process.env.CSS_TRANSFORMER_WASM=false","rebuild-fixtures":"npm run build && node -r @swc/register scripts/rebuildFixtures.js",style:"eslint .",pretest:"npm run generate",test:"jest","test:integrations":"npm run test --prefix ./integrations","install:integrations":"node scripts/install-integrations.js","generate:plugin-list":"node -r @swc/register scripts/create-plugin-list.js","generate:types":"node -r @swc/register scripts/generate-types.js",generate:"npm run generate:plugin-list && npm run generate:types","release-channel":"node ./scripts/release-channel.js","release-notes":"node ./scripts/release-notes.js",prepublishOnly:"npm install --force && npm run build"},files:["src/*","cli/*","lib/*","peers/*","scripts/*.js","stubs/*","nesting/*","types/**/*","*.d.ts","*.css","*.js"],devDependencies:{"@swc/cli":"^0.1.62","@swc/core":"^1.3.55","@swc/jest":"^0.2.26","@swc/register":"^0.1.10",autoprefixer:"^10.4.14",browserslist:"^4.21.5",concurrently:"^8.0.1",cssnano:"^6.0.0",esbuild:"^0.17.18",eslint:"^8.39.0","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1",jest:"^29.5.0","jest-diff":"^29.5.0",lightningcss:"1.18.0",prettier:"^2.8.8",rimraf:"^5.0.0","source-map-js":"^1.0.2",turbo:"^1.9.3"},dependencies:{"@alloc/quick-lru":"^5.2.0",arg:"^5.0.2",chokidar:"^3.5.3",didyoumean:"^1.2.2",dlv:"^1.1.3","fast-glob":"^3.2.12","glob-parent":"^6.0.2","is-glob":"^4.0.3",jiti:"^1.18.2",lilconfig:"^2.1.0",micromatch:"^4.0.5","normalize-path":"^3.0.0","object-hash":"^3.0.0",picocolors:"^1.0.0",postcss:"^8.4.23","postcss-import":"^15.1.0","postcss-js":"^4.0.1","postcss-load-config":"^4.0.1","postcss-nested":"^6.0.1","postcss-selector-parser":"^6.0.11","postcss-value-parser":"^4.2.0",resolve:"^1.22.2",sucrase:"^3.32.0"},browserslist:["> 1%","not edge <= 18","not ie 11","not op_mini all"],jest:{testTimeout:3e4,setupFilesAfterEnv:["/jest/customMatchers.js"],testPathIgnorePatterns:["/node_modules/","/integrations/","/standalone-cli/","\\.test\\.skip\\.js$"],transformIgnorePatterns:["node_modules/(?!lightningcss)"],transform:{"\\.js$":"@swc/jest","\\.ts$":"@swc/jest"}},engines:{node:">=14.0.0"}};typeof process<"u"?(yq(void 0),FF.tailwindcss.engine):FF.tailwindcss.engine;function yq(t){if(t===void 0)return!1;if(t==="true"||t==="1")return!0;if(t==="false"||t==="0")return!1;if(t==="*")return!0;let e=t.split(",").map(n=>n.split(":")[0]);return e.includes("-tailwindcss")?!1:!!e.includes("tailwindcss")}var Vr=Xi(w0(),1);Vr.default;Vr.default.stringify;Vr.default.fromJSON;Vr.default.plugin;Vr.default.parse;Vr.default.list;Vr.default.document;Vr.default.comment;Vr.default.atRule;Vr.default.rule;Vr.default.decl;Vr.default.root;Vr.default.CssSyntaxError;Vr.default.Declaration;Vr.default.Container;Vr.default.Processor;Vr.default.Document;Vr.default.Comment;Vr.default.Warning;Vr.default.AtRule;Vr.default.Result;Vr.default.Input;Vr.default.Rule;Vr.default.Root;Vr.default.Node;var Eq=Xi(Wu());Xi(KX());var B0=Xi(tq(),1);B0.default;B0.default.objectify;B0.default.parse;B0.default.async;B0.default.sync;Xi(Wu());d4();Xi(Wu());Xi(IB());Xi(Wu());Xi(U4());Xi(Wu());dB();ev();var Cq=new Map([["{","}"],["[","]"],["(",")"]]);new Map(Array.from(Cq.entries()).map(([t,e])=>[e,t]));Xi(Wu());(0,Eq.default)(t=>t.first.filter(({type:e})=>e==="class").pop().value);var vq=Xi(Wu());(0,vq.default)();Xi(U4());Xi(nq());Xi(aq());var TB=Xi(Wu()),PF={id(t){return TB.default.attribute({attribute:"id",operator:"=",value:t.value,quoteMark:'"'})}};function xq(t){let e=t.filter(a=>a.type!=="pseudo"||a.nodes.length>0?!0:a.value.startsWith("::")||[":before",":after",":first-line",":first-letter"].includes(a.value)).reverse(),n=new Set(["tag","class","id","attribute"]),r=e.findIndex(a=>n.has(a.type));if(r===-1)return e.reverse().join("").trim();let i=e[r],s=PF[i.type]?PF[i.type](i):i;e=e.slice(0,r);let o=e.findIndex(a=>a.type==="combinator"&&a.value===">");return o!==-1&&(e.splice(0,o),e.unshift(TB.default.universal())),[s,...e.reverse()].join("").trim()}(0,TB.default)(t=>t.map(e=>{let n=e.split(r=>r.type==="combinator"&&r.value===" ").pop();return xq(n)}));var Iq={atrule:["name","params"],rule:["selector"]};new Set(Object.keys(Iq));Xi(lq());Xi(gq(),1);/*! https://mths.be/cssesc v3.0.0 by @mathias */const Dq=ae.createContext(null);function J4(){return ae.useContext(Dq)}const Y4=ae.createContext(void 0);function wh(){const t=ae.useContext(Y4);if(t==null)throw new Error("Cannot be used outside of a uikit component.");return t}const PA=Y4.Provider,n2=ae.createContext(void 0);function Sq(){return ae.useContext(n2)}function Lr(t){const n={...ae.useContext(n2)};for(const r in t){if(r==="children")continue;const i=t[r];i!=null&&(n[r]=i)}return te.jsx(n2.Provider,{value:n,children:t.children})}const QF=["onClick","onContextMenu","onDoubleClick","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMissed","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onWheel"],ju=ae.forwardRef(({handlers:t,allowSkippingChildren:e,properties:n,children:r},i)=>{const[s,o]=ae.useState(()=>t.peek());ae.useEffect(()=>sn(()=>{const l=t.value,c=void setTimeout(()=>o(l),0);return()=>clearTimeout(c)}),[t]);const a=ae.useMemo(()=>{const l={...s},c=QF.length;for(let p=0;p({style:Yt(void 0),properties:Yt(void 0),default:Yt(void 0)}),[]);return e.properties.value=t,e.default.value=Sq(),e}function Ju(t,e,n,r,i,s){ae.useImperativeHandle(t,()=>{const{scrollPosition:o,paddingInset:a,borderInset:l,relativeCenter:c,size:p,maxScrollPosition:d}=r;return{setStyle:(A,y)=>n.value=y?A:{...n.value,...A},getStyle:()=>n.peek(),getComputedProperty:A=>pm(()=>r.mergedProperties.value.read(A,void 0)),pixelSize:e,borderInset:l,paddingInset:a,center:c,maxScrollPosition:d,size:p,interactionPanel:i instanceof gr?i:i.current,scrollPosition:o,isClipped:r.isClipped,...s}},[r,e,i,s,n])}const Ht=ae.forwardRef((t,e)=>{const n=wh(),r=ae.useRef(null),i=ae.useRef(null),s=Vu(t),o=ae.useMemo(()=>xY(n,s.style,s.properties,s.default,r,i),[n,s]);return o.interactionPanel.name=t.name??"",ae.useEffect(()=>{const a=[];return _u(o.initializers,a),()=>sa(a)},[n,s,o]),Ju(e,n.root.pixelSize,s.style,o,o.interactionPanel),te.jsxs(ju,{properties:t,handlers:o.handlers,ref:r,children:[te.jsx("primitive",{object:o.interactionPanel}),te.jsx("object3D",{matrixAutoUpdate:!1,ref:i,children:te.jsx(PA,{value:o,children:t.children})})]})}),wq=ae.forwardRef((t,e)=>{const n=n0(A=>A.gl);n.setTransparentSort(uJ);const r=al(),i=ae.useRef(null),s=ae.useRef(null),o=ae.useMemo(()=>Yt(void 0),[]);o.value=t.pixelSize;const a=Vu(t),l=ae.useMemo(()=>new Set,[]),c=ae.useRef(!1),p=n0(A=>A.invalidate),d=ae.useMemo(()=>gY(bn(()=>bs(o.value)??AY),a.style,a.properties,a.default,i,s,()=>r.getState().camera,n,l,()=>{c.current||p()},p),[p]);return d.interactionPanel.name=t.name??"",ae.useEffect(()=>{const A=[];return _u(d.initializers,A),()=>sa(A)},[d]),_A((A,y)=>{c.current=!0;for(const C of l)C(y);c.current=!1}),Ju(e,d.root.pixelSize,a.style,d,d.interactionPanel),te.jsxs(ju,{properties:{pointerEvents:"auto",...t},handlers:d.handlers,ref:i,children:[te.jsx("primitive",{object:d.interactionPanel}),te.jsx("object3D",{matrixAutoUpdate:!1,ref:s,children:te.jsx(PA,{value:d,children:t.children})})]})}),sv=ae.forwardRef((t,e)=>{const n=wh(),r=ae.useRef(null),i=ae.useRef(null),s=Vu(t),o=ae.useMemo(()=>DY(n,s.style,s.properties,s.default,r,i),[]);return o.interactionPanel.name=t.name??"",ae.useEffect(()=>{const a=[];return _u(o.initializers,a),()=>sa(a)},[o]),Ju(e,n.root.pixelSize,s.style,o,o.interactionPanel),te.jsxs(ju,{properties:t,ref:r,handlers:o.handlers,children:[te.jsx("primitive",{object:o.interactionPanel}),te.jsx("object3D",{matrixAutoUpdate:!1,ref:i,children:te.jsx(PA,{value:o,children:t.children})})]})}),pn=ae.forwardRef((t,e)=>{const n=wh(),r=ae.useRef(null),i=Vu(t),s=ae.useMemo(()=>Yt(void 0),[]);s.value=t.children;const o=ae.useMemo(()=>Yt(void 0),[]);o.value=J4();const a=ae.useMemo(()=>XY(n,s,o,i.style,i.properties,i.default,r),[o,n,i,s]);return a.interactionPanel.name=t.name??"",ae.useEffect(()=>{const l=[];return _u(a.initializers,l),()=>sa(l)},[a]),Ju(e,n.root.pixelSize,i.style,a,a.interactionPanel),te.jsx(ju,{allowSkippingChildren:!0,properties:t,handlers:a.handlers,ref:r,children:te.jsx("primitive",{object:a.interactionPanel})})});ae.forwardRef((t,e)=>{const n=wh(),r=ae.useRef(null),i=ae.useRef(null),s=Vu(t),o=ae.useMemo(()=>KY(n,s.style,s.properties,s.default,r,i),[n,s]);return o.interactionPanel.name=t.name??"",ae.useEffect(()=>{const a=[];return _u(o.initializers,a),()=>sa(a)},[o]),Ju(e,n.root.pixelSize,s.style,o,o.interactionPanel),te.jsxs(ju,{properties:t,ref:r,handlers:o.handlers,children:[te.jsx("primitive",{object:o.interactionPanel}),te.jsx("primitive",{object:o.centerGroup}),te.jsx("object3D",{matrixAutoUpdate:!1,ref:i,children:te.jsx(PA,{value:o,children:t.children})})]})});const qi=ae.forwardRef((t,e)=>{const n=wh(),r=ae.useRef(null),i=Vu(t),s=ae.useMemo(()=>tX(n,t.text,t.svgWidth,t.svgHeight,i.style,i.properties,i.default,r),[n,t.svgHeight,t.svgWidth,t.text,i]);return s.interactionPanel.name=t.name??"",ae.useEffect(()=>{const o=[];return _u(s.initializers,o),()=>sa(o)},[s]),Ju(e,n.root.pixelSize,i.style,s,s.interactionPanel),te.jsxs(ju,{properties:t,ref:r,handlers:s.handlers,children:[te.jsx("primitive",{object:s.interactionPanel}),te.jsx("primitive",{object:s.iconGroup})]})}),X4=ae.forwardRef((t,e)=>{const n=wh(),r=ae.useRef(null),i=Vu(t),s=ae.useMemo(()=>Yt(void 0),[]);s.value=J4();const o=ae.useMemo(()=>dX(n,s,i.style,i.properties,i.default,r),[]);return o.interactionPanel.name=t.name??"",ae.useEffect(()=>{const a=[];return _u(o.initializers,a),()=>sa(a)},[o]),Ju(e,n.root.pixelSize,i.style,o,o.interactionPanel,ae.useMemo(()=>({focus:o.focus,current:o.valueSignal}),[o.focus,o.valueSignal])),te.jsx(ju,{allowSkippingChildren:!0,properties:t,handlers:o.handlers,ref:r,children:te.jsx("primitive",{object:o.interactionPanel})})});ae.forwardRef((t,e)=>{const n=wh(),r=ae.useRef(null),i=ae.useRef(null),s=Vu(t),o=ae.useMemo(()=>mX(n,s.style,s.properties,s.default,r,i),[n,s]);return ae.useEffect(()=>{const a=[];return _u(o.initializers,a),()=>sa(a)},[o]),Ju(e,n.root.pixelSize,s.style,o,i),ae.useEffect(()=>{i.current&&t.name&&(i.current.name=t.name)},[t.name]),te.jsx(ju,{properties:t,handlers:o.handlers,ref:r,children:te.jsx(PA,{value:void 0,children:te.jsx("mesh",{ref:i,matrixAutoUpdate:!1,geometry:lB,customDepthMaterial:t.customDepthMaterial,customDistanceMaterial:t.customDistanceMaterial,children:t.children})})})});ae.forwardRef((t,e)=>{const n=wh(),r=ae.useRef(null),i=ae.useRef(null),s=Vu(t),o=ae.useMemo(()=>yX(n,s.style,s.properties,s.default,r,i),[n,s]);return o.interactionPanel.name=t.name??"",ae.useEffect(()=>{const a=[];return _u(o.initializers,a),()=>sa(a)},[o]),Ju(e,n.root.pixelSize,s.style,o,o.interactionPanel),te.jsxs(ju,{properties:t,handlers:o.handlers,ref:r,children:[te.jsx("primitive",{object:o.interactionPanel}),te.jsx("object3D",{matrixAutoUpdate:!1,ref:i,children:te.jsx(PA,{value:void 0,children:t.children})})]})});const Bq=ae.forwardRef((t,e)=>{const n=al(),[r,i,s]=ae.useMemo(()=>[Yt(1),Yt(1),Yt(1)],[]),o=n0(c=>c.camera),a=t.distanceToCamera??o.near+.1;ae.useEffect(()=>{const c=({camera:p,size:{height:d}})=>xL(()=>xX(r,i,s,a,p,d));return c(n.getState()),n.subscribe(c)},[s,r,i,n,a]);const l=t.attachCamera??!0;return te.jsxs(te.Fragment,{children:[l&&te.jsx("primitive",{object:o}),MV(te.jsx("group",{"position-z":-a,children:te.jsx(wq,{ref:e,...t,sizeX:r,sizeY:i,pixelSize:s,children:t.children})}),o)]})});ae.forwardRef(({src:t,...e},n)=>{const r=tB(QC,t);return r.colorSpace=ri,r.matrixAutoUpdate=!1,te.jsx(sv,{ref:n,src:r,...e})});var bq={BASE_URL:"/uikit/examples/default/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const kF=t=>{let e;const n=new Set,r=(p,d)=>{const A=typeof p=="function"?p(e):p;if(!Object.is(A,e)){const y=e;e=d??(typeof A!="object"||A===null)?A:Object.assign({},e,A),n.forEach(C=>C(e,y))}},i=()=>e,l={setState:r,getState:i,getInitialState:()=>c,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(bq?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=e=t(r,i,l);return l},Tq=t=>t?kF(t):kF;var q4={exports:{}},K4={},Z4={exports:{}},$4={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -4094,7 +4094,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var mA=le;function Mq(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var _q=typeof Object.is=="function"?Object.is:Mq,Fq=mA.useState,Pq=mA.useEffect,Qq=mA.useLayoutEffect,kq=mA.useDebugValue;function Rq(t,e){var n=e(),r=Fq({inst:{value:n,getSnapshot:e}}),i=r[0].inst,s=r[1];return Qq(function(){i.value=n,i.getSnapshot=e,kI(i)&&s({inst:i})},[t,n,e]),Pq(function(){return kI(i)&&s({inst:i}),t(function(){kI(i)&&s({inst:i})})},[t]),kq(n),n}function kI(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!_q(t,n)}catch{return!0}}function Lq(t,e){return e()}var Nq=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Lq:Rq;$4.useSyncExternalStore=mA.useSyncExternalStore!==void 0?mA.useSyncExternalStore:Nq;Z4.exports=$4;var Oq=Z4.exports;/** + */var mA=ae;function Mq(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var _q=typeof Object.is=="function"?Object.is:Mq,Fq=mA.useState,Pq=mA.useEffect,Qq=mA.useLayoutEffect,kq=mA.useDebugValue;function Rq(t,e){var n=e(),r=Fq({inst:{value:n,getSnapshot:e}}),i=r[0].inst,s=r[1];return Qq(function(){i.value=n,i.getSnapshot=e,kI(i)&&s({inst:i})},[t,n,e]),Pq(function(){return kI(i)&&s({inst:i}),t(function(){kI(i)&&s({inst:i})})},[t]),kq(n),n}function kI(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!_q(t,n)}catch{return!0}}function Lq(t,e){return e()}var Nq=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Lq:Rq;$4.useSyncExternalStore=mA.useSyncExternalStore!==void 0?mA.useSyncExternalStore:Nq;Z4.exports=$4;var Oq=Z4.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -4102,7 +4102,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ov=le,Uq=Oq;function Gq(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Hq=typeof Object.is=="function"?Object.is:Gq,zq=Uq.useSyncExternalStore,Wq=ov.useRef,jq=ov.useEffect,Vq=ov.useMemo,Jq=ov.useDebugValue;K4.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=Wq(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=Vq(function(){function l(y){if(!c){if(c=!0,p=y,y=r(y),i!==void 0&&o.hasValue){var C=o.value;if(i(C,y))return d=C}return d=y}if(C=d,Hq(p,y))return C;var x=r(y);return i!==void 0&&i(C,x)?C:(p=y,d=x)}var c=!1,p,d,A=n===void 0?null:n;return[function(){return l(e())},A===null?void 0:function(){return l(A())}]},[e,n,r,i]);var a=zq(t,s[0],s[1]);return jq(function(){o.hasValue=!0,o.value=a},[a]),Jq(a),a};q4.exports=K4;var Yq=q4.exports;const Xq=zE(Yq);var eN={BASE_URL:"/uikit/examples/default/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:qq}=jE,{useSyncExternalStoreWithSelector:Kq}=Xq;let RF=!1;const Zq=t=>t;function $q(t,e=Zq,n){(eN?"production":void 0)!=="production"&&n&&!RF&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),RF=!0);const r=Kq(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return qq(r),r}const LF=t=>{(eN?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?Tq(t):t,n=(r,i)=>$q(e,r,i);return Object.assign(n,e),n},eK=t=>t?LF(t):LF,tK=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],nK=t=>t&&t.isOrthographicCamera;le.forwardRef(({children:t,dpr:e,frames:n=1/0,renderPriority:r=0,eventPriority:i=0,...s},o)=>{const a=le.useMemo(()=>new wi(void 0),[]),l=le.useRef(null),c=al();e??(e=c.getState().viewport.dpr),le.useImperativeHandle(o,()=>l.current,[]);const p=le.useMemo(()=>bn(()=>{var A;return(A=a.value)==null?void 0:A.texture}),[a]),d=le.useMemo(()=>{let A=c.getState();const y=new ki(50,1,.1,1e3);y.position.set(0,0,5);const C=new st;let x={events:{compute:rK.bind(null,l),priority:i},size:{width:1,height:1,left:0,top:0},camera:y,scene:new Ym,raycaster:new MA,pointer:C,mouse:C,previousRoot:c};const D=eK((I,w)=>{const B=()=>{const F={};for(const P in A)tK.includes(P)||(F[P]=A[P]);return Object.assign(F,x,{events:{...A.events,...x.events},viewport:Object.assign({},A.viewport,A.viewport.getCurrentViewport(y,new ue,x.size))})},_=()=>I(B());return{...A,set(F){typeof F=="function"&&(F=F(w())),Object.assign(x,F),_()},setPreviousState(F){A=F,_()},get:w,setEvents(F){Object.assign(x.events,F),_()},...B()}});return Object.assign(D,{setState(I){D.getState().set(I)}})},[i,c]);return le.useEffect(()=>c.subscribe(d.getState().setPreviousState),[c,d]),le.useEffect(()=>{if(l.current==null)return;const A=a.value=new wa(1,1,{minFilter:Wr,magFilter:Wr,type:Jp}),{size:y}=l.current,C=sn(()=>{if(y.value==null)return;const[x,D]=y.value;A.setSize(x*e,D*e),d.setState({size:{width:x,height:D,top:0,left:0},viewport:{...c.getState().viewport,width:x,height:D,aspect:x/D}})});return()=>{C(),A.dispose()}},[a,c,d,e]),te.jsxs(te.Fragment,{children:[gA.createPortal(te.jsx(RC.Provider,{value:d,children:te.jsxs(iK,{renderPriority:r,frames:n,fbo:a,children:[t,te.jsx("group",{onPointerOver:()=>null})]})}),d,null),te.jsx(sv,{src:p,objectFit:"fill",keepAspectRatio:!1,...s,ref:l})]})});function rK({current:t},e,n,r){var o,a,l;if(t==null||r==null)return!1;r.raycaster.camera||(l=(a=r.events).compute)==null||l.call(a,e,r,(o=r.previousRoot)==null?void 0:o.getState());const[i]=r.raycaster.intersectObject(t.interactionPanel);if(!i)return!1;const s=i.uv;if(!s)return!1;n.raycaster.setFromCamera(n.pointer.set(s.x*2-1,s.y*2-1),n.camera)}function iK({frames:t,renderPriority:e,children:n,fbo:r}){const i=al();le.useEffect(()=>i.subscribe((p,d)=>{const{size:A,camera:y}=p;A&&(nK(y)?(y.left=A.width/-2,y.right=A.width/2,y.top=A.height/2,y.bottom=A.height/-2):y.aspect=A.width/A.height,(A!==d.size||y!==d.camera)&&(y.updateProjectionMatrix(),y.updateMatrixWorld()))}),[i]);let s=0,o,a,l,c;return _A(p=>{const d=r.peek();d!=null&&(t===1/0||s{const n=le.useMemo(()=>Yt(void 0),[]),r=le.useMemo(()=>Yt(1),[]),i=t.src instanceof HTMLVideoElement?t.src:void 0,s=le.useMemo(()=>i??document.createElement("video"),[i]),o=n0(l=>l.invalidate);le.useEffect(()=>DX(s,o),[s,o]),IX(s,t),le.useEffect(()=>{const l=()=>r.value=s.videoWidth/s.videoHeight;return l(),s.addEventListener("resize",l),()=>s.removeEventListener("resize",l)},[r,s]),le.useEffect(()=>{const l=new hR(s);return l.colorSpace=ri,n.value=l,()=>l.dispose()},[n,s]);const a=le.useRef(null);return le.useImperativeHandle(e,()=>({...a.current,element:s}),[s]),te.jsx(tN.Provider,{value:s,children:te.jsx(sv,{aspectRatio:r,...t,ref:a,src:n})})});var aK=Object.create,av=Object.defineProperty,lK=Object.getOwnPropertyDescriptor,uK=Object.getOwnPropertyNames,cK=Object.getPrototypeOf,hK=Object.prototype.hasOwnProperty,pK=(t,e)=>()=>(t&&(e=t(t=0)),e),lv=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),uv=(t,e)=>{for(var n in e)av(t,n,{get:e[n],enumerable:!0})},nN=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of uK(e))!hK.call(t,i)&&i!==n&&av(t,i,{get:()=>e[i],enumerable:!(r=lK(e,i))||r.enumerable});return t},b0=(t,e,n)=>(n=t!=null?aK(cK(t)):{},nN(e||!t||!t.__esModule?av(n,"default",{value:t,enumerable:!0}):n,t)),dK=t=>nN(av({},"__esModule",{value:!0}),t),fK=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},NF=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Gg=(t,e,n)=>(fK(t,e,"access private method"),n),AK=lv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(){}e.prototype={diff:function(i,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var l=this;function c(w){return a?(setTimeout(function(){a(void 0,w)},0),!0):w}i=this.castInput(i),s=this.castInput(s),i=this.removeEmpty(this.tokenize(i)),s=this.removeEmpty(this.tokenize(s));var p=s.length,d=i.length,A=1,y=p+d;o.maxEditLength&&(y=Math.min(y,o.maxEditLength));var C=[{newPos:-1,components:[]}],x=this.extractCommon(C[0],s,i,0);if(C[0].newPos+1>=p&&x+1>=d)return c([{value:this.join(s),count:s.length}]);function D(){for(var w=-1*A;w<=A;w+=2){var B=void 0,_=C[w-1],F=C[w+1],P=(F?F.newPos:0)-w;_&&(C[w-1]=void 0);var N=_&&_.newPos+1=p&&P+1>=d)return c(n(l,B.components,s,i,l.useLongestToken));C[w]=B}A++}if(a)(function w(){setTimeout(function(){if(A>y)return a();D()||w()},0)})();else for(;A<=y;){var I=D();if(I)return I}},pushComponent:function(i,s,o){var a=i[i.length-1];a&&a.added===s&&a.removed===o?i[i.length-1]={count:a.count+1,added:s,removed:o}:i.push({count:1,added:s,removed:o})},extractCommon:function(i,s,o,a){for(var l=s.length,c=o.length,p=i.newPos,d=p-a,A=0;p+1I.length?B:I}),y.value=i.join(x)}else y.value=i.join(o.slice(d,d+y.count));d+=y.count,y.added||(A+=y.count)}}var D=s[p-1];return p>1&&typeof D.value=="string"&&(D.added||D.removed)&&i.equals("",D.value)&&(s[p-2].value+=D.value,s.pop()),s}function r(i){return{newPos:i.newPos,components:i.components.slice(0)}}}),gK=lv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=i,t.arrayDiff=void 0;var e=n(AK());function n(s){return s&&s.__esModule?s:{default:s}}var r=new e.default;t.arrayDiff=r,r.tokenize=function(s){return s.slice()},r.join=r.removeEmpty=function(s){return s};function i(s,o,a){return r.diff(s,o,a)}}),cv=lv((t,e)=>{var n=new Proxy(String,{get:()=>n});e.exports=n}),rN={};uv(rN,{default:()=>sN,shouldHighlight:()=>iN});var iN,sN,mK=pK(()=>{iN=()=>!1,sN=String}),yK=lv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=d,t.default=A;var e=(mK(),dK(rN)),n=i(cv(),!0);function r(y){if(typeof WeakMap!="function")return null;var C=new WeakMap,x=new WeakMap;return(r=function(D){return D?x:C})(y)}function i(y,C){if(!C&&y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var x=r(C);if(x&&x.has(y))return x.get(y);var D={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in y)if(w!=="default"&&Object.prototype.hasOwnProperty.call(y,w)){var B=I?Object.getOwnPropertyDescriptor(y,w):null;B&&(B.get||B.set)?Object.defineProperty(D,w,B):D[w]=y[w]}return D.default=y,x&&x.set(y,D),D}var s;function o(y){return y?(s!=null||(s=new n.default.constructor({enabled:!0,level:1})),s):n.default}var a=!1;function l(y){return{gutter:y.grey,marker:y.red.bold,message:y.red.bold}}var c=/\r\n|[\n\r\u2028\u2029]/;function p(y,C,x){let D=Object.assign({column:0,line:-1},y.start),I=Object.assign({},D,y.end),{linesAbove:w=2,linesBelow:B=3}=x||{},_=D.line,F=D.column,P=I.line,N=I.column,U=Math.max(_-(w+1),0),q=Math.min(C.length,P+B);_===-1&&(U=0),P===-1&&(q=C.length);let L=P-_,z={};if(L)for(let he=0;he<=L;he++){let Ie=he+_;if(!F)z[Ie]=!0;else if(he===0){let re=C[Ie-1].length;z[Ie]=[F,re-F+1]}else if(he===L)z[Ie]=[0,N];else{let re=C[Ie-he].length;z[Ie]=[0,re]}}else F===N?F?z[_]=[F,0]:z[_]=!0:z[_]=[F,N-F];return{start:U,end:q,markerLines:z}}function d(y,C,x={}){let D=(x.highlightCode||x.forceColor)&&(0,e.shouldHighlight)(x),I=o(x.forceColor),w=l(I),B=(z,he)=>D?z(he):he,_=y.split(c),{start:F,end:P,markerLines:N}=p(C,_,x),U=C.start&&typeof C.start.column=="number",q=String(P).length,L=(D?(0,e.default)(y,x):y).split(c,P).slice(F,P).map((z,he)=>{let Ie=F+1+he,re=` ${` ${Ie}`.slice(-q)} |`,_e=N[Ie],De=!N[Ie+1];if(_e){let Ge="";if(Array.isArray(_e)){let ie=z.slice(0,Math.max(_e[0]-1,0)).replace(/[^\t]/g," "),ge=_e[1]||1;Ge=[` + */var ov=ae,Uq=Oq;function Gq(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Hq=typeof Object.is=="function"?Object.is:Gq,zq=Uq.useSyncExternalStore,Wq=ov.useRef,jq=ov.useEffect,Vq=ov.useMemo,Jq=ov.useDebugValue;K4.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=Wq(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=Vq(function(){function l(y){if(!c){if(c=!0,p=y,y=r(y),i!==void 0&&o.hasValue){var C=o.value;if(i(C,y))return d=C}return d=y}if(C=d,Hq(p,y))return C;var x=r(y);return i!==void 0&&i(C,x)?C:(p=y,d=x)}var c=!1,p,d,A=n===void 0?null:n;return[function(){return l(e())},A===null?void 0:function(){return l(A())}]},[e,n,r,i]);var a=zq(t,s[0],s[1]);return jq(function(){o.hasValue=!0,o.value=a},[a]),Jq(a),a};q4.exports=K4;var Yq=q4.exports;const Xq=zE(Yq);var eN={BASE_URL:"/uikit/examples/default/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:qq}=jE,{useSyncExternalStoreWithSelector:Kq}=Xq;let RF=!1;const Zq=t=>t;function $q(t,e=Zq,n){(eN?"production":void 0)!=="production"&&n&&!RF&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),RF=!0);const r=Kq(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return qq(r),r}const LF=t=>{(eN?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?Tq(t):t,n=(r,i)=>$q(e,r,i);return Object.assign(n,e),n},eK=t=>t?LF(t):LF,tK=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],nK=t=>t&&t.isOrthographicCamera;ae.forwardRef(({children:t,dpr:e,frames:n=1/0,renderPriority:r=0,eventPriority:i=0,...s},o)=>{const a=ae.useMemo(()=>new wi(void 0),[]),l=ae.useRef(null),c=al();e??(e=c.getState().viewport.dpr),ae.useImperativeHandle(o,()=>l.current,[]);const p=ae.useMemo(()=>bn(()=>{var A;return(A=a.value)==null?void 0:A.texture}),[a]),d=ae.useMemo(()=>{let A=c.getState();const y=new ki(50,1,.1,1e3);y.position.set(0,0,5);const C=new st;let x={events:{compute:rK.bind(null,l),priority:i},size:{width:1,height:1,left:0,top:0},camera:y,scene:new Ym,raycaster:new MA,pointer:C,mouse:C,previousRoot:c};const D=eK((I,w)=>{const B=()=>{const F={};for(const P in A)tK.includes(P)||(F[P]=A[P]);return Object.assign(F,x,{events:{...A.events,...x.events},viewport:Object.assign({},A.viewport,A.viewport.getCurrentViewport(y,new ue,x.size))})},_=()=>I(B());return{...A,set(F){typeof F=="function"&&(F=F(w())),Object.assign(x,F),_()},setPreviousState(F){A=F,_()},get:w,setEvents(F){Object.assign(x.events,F),_()},...B()}});return Object.assign(D,{setState(I){D.getState().set(I)}})},[i,c]);return ae.useEffect(()=>c.subscribe(d.getState().setPreviousState),[c,d]),ae.useEffect(()=>{if(l.current==null)return;const A=a.value=new wa(1,1,{minFilter:Wr,magFilter:Wr,type:Jp}),{size:y}=l.current,C=sn(()=>{if(y.value==null)return;const[x,D]=y.value;A.setSize(x*e,D*e),d.setState({size:{width:x,height:D,top:0,left:0},viewport:{...c.getState().viewport,width:x,height:D,aspect:x/D}})});return()=>{C(),A.dispose()}},[a,c,d,e]),te.jsxs(te.Fragment,{children:[gA.createPortal(te.jsx(RC.Provider,{value:d,children:te.jsxs(iK,{renderPriority:r,frames:n,fbo:a,children:[t,te.jsx("group",{onPointerOver:()=>null})]})}),d,null),te.jsx(sv,{src:p,objectFit:"fill",keepAspectRatio:!1,...s,ref:l})]})});function rK({current:t},e,n,r){var o,a,l;if(t==null||r==null)return!1;r.raycaster.camera||(l=(a=r.events).compute)==null||l.call(a,e,r,(o=r.previousRoot)==null?void 0:o.getState());const[i]=r.raycaster.intersectObject(t.interactionPanel);if(!i)return!1;const s=i.uv;if(!s)return!1;n.raycaster.setFromCamera(n.pointer.set(s.x*2-1,s.y*2-1),n.camera)}function iK({frames:t,renderPriority:e,children:n,fbo:r}){const i=al();ae.useEffect(()=>i.subscribe((p,d)=>{const{size:A,camera:y}=p;A&&(nK(y)?(y.left=A.width/-2,y.right=A.width/2,y.top=A.height/2,y.bottom=A.height/-2):y.aspect=A.width/A.height,(A!==d.size||y!==d.camera)&&(y.updateProjectionMatrix(),y.updateMatrixWorld()))}),[i]);let s=0,o,a,l,c;return _A(p=>{const d=r.peek();d!=null&&(t===1/0||s{const n=ae.useMemo(()=>Yt(void 0),[]),r=ae.useMemo(()=>Yt(1),[]),i=t.src instanceof HTMLVideoElement?t.src:void 0,s=ae.useMemo(()=>{if(i!=null)return i;const c=document.createElement("video");return c.style.position="absolute",c.style.width="1px",c.style.zIndex="-1000",c.style.top="0px",c.style.left="0px",c},[i]),o=t.src instanceof HTMLVideoElement;ae.useEffect(()=>{if(!o)return document.body.appendChild(s),()=>s.remove()},[s,o]);const a=n0(c=>c.invalidate);ae.useEffect(()=>DX(s,a),[s,a]),IX(s,t),ae.useEffect(()=>{const c=()=>r.value=s.videoWidth/s.videoHeight;return c(),s.addEventListener("resize",c),()=>s.removeEventListener("resize",c)},[r,s]),ae.useEffect(()=>{const c=new hR(s);return c.colorSpace=ri,n.value=c,()=>c.dispose()},[n,s]);const l=ae.useRef(null);return ae.useImperativeHandle(e,()=>({...l.current,element:s}),[s]),te.jsx(tN.Provider,{value:s,children:te.jsx(sv,{aspectRatio:r,...t,ref:l,src:n})})});var aK=Object.create,av=Object.defineProperty,lK=Object.getOwnPropertyDescriptor,uK=Object.getOwnPropertyNames,cK=Object.getPrototypeOf,hK=Object.prototype.hasOwnProperty,pK=(t,e)=>()=>(t&&(e=t(t=0)),e),lv=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),uv=(t,e)=>{for(var n in e)av(t,n,{get:e[n],enumerable:!0})},nN=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of uK(e))!hK.call(t,i)&&i!==n&&av(t,i,{get:()=>e[i],enumerable:!(r=lK(e,i))||r.enumerable});return t},b0=(t,e,n)=>(n=t!=null?aK(cK(t)):{},nN(e||!t||!t.__esModule?av(n,"default",{value:t,enumerable:!0}):n,t)),dK=t=>nN(av({},"__esModule",{value:!0}),t),fK=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},NF=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Gg=(t,e,n)=>(fK(t,e,"access private method"),n),AK=lv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(){}e.prototype={diff:function(i,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var l=this;function c(w){return a?(setTimeout(function(){a(void 0,w)},0),!0):w}i=this.castInput(i),s=this.castInput(s),i=this.removeEmpty(this.tokenize(i)),s=this.removeEmpty(this.tokenize(s));var p=s.length,d=i.length,A=1,y=p+d;o.maxEditLength&&(y=Math.min(y,o.maxEditLength));var C=[{newPos:-1,components:[]}],x=this.extractCommon(C[0],s,i,0);if(C[0].newPos+1>=p&&x+1>=d)return c([{value:this.join(s),count:s.length}]);function D(){for(var w=-1*A;w<=A;w+=2){var B=void 0,_=C[w-1],F=C[w+1],P=(F?F.newPos:0)-w;_&&(C[w-1]=void 0);var N=_&&_.newPos+1=p&&P+1>=d)return c(n(l,B.components,s,i,l.useLongestToken));C[w]=B}A++}if(a)(function w(){setTimeout(function(){if(A>y)return a();D()||w()},0)})();else for(;A<=y;){var I=D();if(I)return I}},pushComponent:function(i,s,o){var a=i[i.length-1];a&&a.added===s&&a.removed===o?i[i.length-1]={count:a.count+1,added:s,removed:o}:i.push({count:1,added:s,removed:o})},extractCommon:function(i,s,o,a){for(var l=s.length,c=o.length,p=i.newPos,d=p-a,A=0;p+1I.length?B:I}),y.value=i.join(x)}else y.value=i.join(o.slice(d,d+y.count));d+=y.count,y.added||(A+=y.count)}}var D=s[p-1];return p>1&&typeof D.value=="string"&&(D.added||D.removed)&&i.equals("",D.value)&&(s[p-2].value+=D.value,s.pop()),s}function r(i){return{newPos:i.newPos,components:i.components.slice(0)}}}),gK=lv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=i,t.arrayDiff=void 0;var e=n(AK());function n(s){return s&&s.__esModule?s:{default:s}}var r=new e.default;t.arrayDiff=r,r.tokenize=function(s){return s.slice()},r.join=r.removeEmpty=function(s){return s};function i(s,o,a){return r.diff(s,o,a)}}),cv=lv((t,e)=>{var n=new Proxy(String,{get:()=>n});e.exports=n}),rN={};uv(rN,{default:()=>sN,shouldHighlight:()=>iN});var iN,sN,mK=pK(()=>{iN=()=>!1,sN=String}),yK=lv(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=d,t.default=A;var e=(mK(),dK(rN)),n=i(cv(),!0);function r(y){if(typeof WeakMap!="function")return null;var C=new WeakMap,x=new WeakMap;return(r=function(D){return D?x:C})(y)}function i(y,C){if(!C&&y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var x=r(C);if(x&&x.has(y))return x.get(y);var D={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in y)if(w!=="default"&&Object.prototype.hasOwnProperty.call(y,w)){var B=I?Object.getOwnPropertyDescriptor(y,w):null;B&&(B.get||B.set)?Object.defineProperty(D,w,B):D[w]=y[w]}return D.default=y,x&&x.set(y,D),D}var s;function o(y){return y?(s!=null||(s=new n.default.constructor({enabled:!0,level:1})),s):n.default}var a=!1;function l(y){return{gutter:y.grey,marker:y.red.bold,message:y.red.bold}}var c=/\r\n|[\n\r\u2028\u2029]/;function p(y,C,x){let D=Object.assign({column:0,line:-1},y.start),I=Object.assign({},D,y.end),{linesAbove:w=2,linesBelow:B=3}=x||{},_=D.line,F=D.column,P=I.line,N=I.column,U=Math.max(_-(w+1),0),q=Math.min(C.length,P+B);_===-1&&(U=0),P===-1&&(q=C.length);let L=P-_,z={};if(L)for(let he=0;he<=L;he++){let Ie=he+_;if(!F)z[Ie]=!0;else if(he===0){let re=C[Ie-1].length;z[Ie]=[F,re-F+1]}else if(he===L)z[Ie]=[0,N];else{let re=C[Ie-he].length;z[Ie]=[0,re]}}else F===N?F?z[_]=[F,0]:z[_]=!0:z[_]=[F,N-F];return{start:U,end:q,markerLines:z}}function d(y,C,x={}){let D=(x.highlightCode||x.forceColor)&&(0,e.shouldHighlight)(x),I=o(x.forceColor),w=l(I),B=(z,he)=>D?z(he):he,_=y.split(c),{start:F,end:P,markerLines:N}=p(C,_,x),U=C.start&&typeof C.start.column=="number",q=String(P).length,L=(D?(0,e.default)(y,x):y).split(c,P).slice(F,P).map((z,he)=>{let Ie=F+1+he,re=` ${` ${Ie}`.slice(-q)} |`,_e=N[Ie],De=!N[Ie+1];if(_e){let Ge="";if(Array.isArray(_e)){let ie=z.slice(0,Math.max(_e[0]-1,0)).replace(/[^\t]/g," "),ge=_e[1]||1;Ge=[` `,B(w.gutter,re.replace(/\d/g," "))," ",ie,B(w.marker,"^").repeat(ge)].join(""),De&&x.message&&(Ge+=" "+B(w.message,x.message))}return[B(w.marker,">"),B(w.gutter,re),z.length>0?` ${z}`:"",Ge].join("")}else return` ${B(w.gutter,re)}${z.length>0?` ${z}`:""}`}).join(` `);return x.message&&!U&&(L=`${" ".repeat(q+1)}${x.message} ${L}`),D?I.reset(L):L}function A(y,C,x,D={}){if(!a){a=!0;let I="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let w=new Error(I);w.name="DeprecationWarning",console.warn(new Error(I))}}return x=Math.max(x,0),d(y,{start:{column:x,line:C}},D)}}),EK={};uv(EK,{__debug:()=>gee,check:()=>fee,doc:()=>zN,format:()=>VN,formatWithCursor:()=>jN,getSupportInfo:()=>Aee,util:()=>WN,version:()=>W$});var CK=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},hv=CK,vK=b0(gK(),1);function xK(t){let e=t.indexOf("\r");return e>=0?t.charAt(e+1)===` @@ -4150,13 +4150,13 @@ in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",cate `)return me+2;if(Ze===` `||Ze==="\r"||Ze==="\u2028"||Ze==="\u2029")return me+1}return me}var N=P;function U(se,me){return me===!1?!1:se.charAt(me)==="/"&&se.charAt(me+1)==="/"?B(se,me):me}var q=U;function L(se,me){let Me=null,$e=me;for(;$e!==Me;)Me=$e,$e=w(se,$e),$e=F(se,$e),$e=q(se,$e),$e=N(se,$e);return $e}var z=L;function he(se){let me=[];for(let Me of se)try{return Me()}catch($e){me.push($e)}throw Object.assign(new Error("All combinations failed"),{errors:me})}var Ie=he;function re(se){if(!se.startsWith("#!"))return"";let me=se.indexOf(` `);return me===-1?se:se.slice(0,me)}var _e=re,De=(se,me,Me)=>{if(!(se&&me==null))return Array.isArray(me)||typeof me=="string"?me[Me<0?me.length+Me:Me]:me.at(Me)},Ge=De;function ie(se){return Array.isArray(se)&&se.length>0}var ge=ie;function ve(se){var me,Me,$e;let Ze=((me=se.range)==null?void 0:me[0])??se.start,It=($e=((Me=se.declaration)==null?void 0:Me.decorators)??se.decorators)==null?void 0:$e[0];return It?Math.min(ve(It),Ze):Ze}function Ae(se){var me;return((me=se.range)==null?void 0:me[1])??se.end}function Ue(se){let me=new Set(se);return Me=>me.has(Me==null?void 0:Me.type)}var we=Ue,K=we(["Block","CommentBlock","MultiLine"]),oe=K;function Y(se){let me=`*${se.value}*`.split(` -`);return me.length>1&&me.every(Me=>Me.trimStart()[0]==="*")}var Z=Y;function Le(se){return oe(se)&&se.value[0]==="*"&&/@(?:type|satisfies)\b/.test(se.value)}var ze=Le,Fe=null;function je(se){if(Fe!==null&&typeof Fe.property){let me=Fe;return Fe=je.prototype=null,me}return Fe=je.prototype=se??Object.create(null),new je}var ae=10;for(let se=0;se<=ae;se++)je();function Ne(se){return je(se)}function be(se,me="type"){Ne(se);function Me($e){let Ze=$e[me],It=se[Ze];if(!Array.isArray(It))throw Object.assign(new Error(`Missing visitor keys for '${Ze}'.`),{node:$e});return It}return Me}var Ve=be,He={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],AsConstExpression:["expression"],SatisfiesExpression:["expression","typeAnnotation"]},lt=Ve(He),Se=lt;function W(se,me){if(!(se!==null&&typeof se=="object"))return se;if(Array.isArray(se)){for(let $e=0;$e{var At;(At=It.leadingComments)!=null&&At.some(ze)&&Ze.add(ve(It))}),se=$(se,It=>{if(It.type==="ParenthesizedExpression"){let{expression:At}=It;if(At.type==="TypeCastExpression")return At.range=[...It.range],At;let Kt=ve(It);if(!Ze.has(Kt))return At.extra={...At.extra,parenthesized:!0},At}})}if(se=$(se,Ze=>{var It;switch(Ze.type){case"LogicalExpression":if(ft(Ze))return pt(Ze);break;case"VariableDeclaration":{let At=Ge(!1,Ze.declarations,-1);At!=null&&At.init&&$e[Ae(At)]!==";"&&(Ze.range=[ve(Ze),Ae(At)]);break}case"TSParenthesizedType":return Ze.typeAnnotation;case"TSTypeParameter":if(typeof Ze.name=="string"){let At=ve(Ze);Ze.name={type:"Identifier",name:Ze.name,range:[At,At+Ze.name.length]}}break;case"TopicReference":se.extra={...se.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":if(Me==="meriyah"&&((It=Ze.exported)==null?void 0:It.type)==="Identifier"){let{exported:At}=Ze,Kt=$e.slice(ve(At),Ae(At));(Kt.startsWith('"')||Kt.startsWith("'"))&&(Ze.exported={...Ze.exported,type:"Literal",value:Ze.exported.name,raw:Kt})}break;case"TSUnionType":case"TSIntersectionType":if(Ze.types.length===1)return Ze.types[0];break}}),ge(se.comments)){let Ze=Ge(!1,se.comments,-1);for(let It=se.comments.length-2;It>=0;It--){let At=se.comments[It];Ae(At)===ve(Ze)&&oe(At)&&oe(Ze)&&Z(At)&&Z(Ze)&&(se.comments.splice(It+1,1),At.value+="*//*"+Ze.value,At.range=[ve(At),Ae(Ze)]),Ze=At}}return se.type==="Program"&&(se.range=[0,$e.length]),se}function ft(se){return se.type==="LogicalExpression"&&se.right.type==="LogicalExpression"&&se.operator===se.right.operator}function pt(se){return ft(se)?pt({type:"LogicalExpression",operator:se.operator,left:pt({type:"LogicalExpression",operator:se.operator,left:se.left,right:se.right.left,range:[ve(se.left),Ae(se.right.left)]}),right:se.right.right,range:[ve(se),Ae(se)]}):se}var ut=Oe;function Ut(se,me){let Me=new SyntaxError(se+" ("+me.loc.start.line+":"+me.loc.start.column+")");return Object.assign(Me,me)}var _t=Ut;function Ot(se){let{message:me,loc:{line:Me,column:$e},reasonCode:Ze}=se,It=se;(Ze==="MissingPlugin"||Ze==="MissingOneOfPlugins")&&(me="Unexpected token.",It=void 0);let At=` (${Me}:${$e})`;return me.endsWith(At)&&(me=me.slice(0,-At.length)),_t(me,{loc:{start:{line:Me,column:$e+1}},cause:It})}var Ft=Ot,Pt=d(C(),1);function mt(se){let me=_e(se);me&&(se=se.slice(me.length+1));let Me=(0,Pt.extract)(se),{pragmas:$e,comments:Ze}=(0,Pt.parseWithComments)(Me);return{shebang:me,text:se,pragmas:$e,comments:Ze}}function Rn(se){let{pragmas:me}=mt(se);return Object.prototype.hasOwnProperty.call(me,"prettier")||Object.prototype.hasOwnProperty.call(me,"format")}function Sn(se){return se=typeof se=="function"?{parse:se}:se,{astFormat:"estree",hasPragma:Rn,locStart:ve,locEnd:Ae,...se}}var cn=Sn;function tn(se){let{filepath:me}=se;if(me){if(me=me.toLowerCase(),me.endsWith(".cjs"))return"script";if(me.endsWith(".mjs"))return"module"}}var qt=tn;function xn(se,me){let{type:Me="JsExpressionRoot",rootMarker:$e,text:Ze}=me,{tokens:It,comments:At}=se;return delete se.tokens,delete se.comments,{tokens:It,comments:At,type:Me,node:se,range:[0,Ze.length],rootMarker:$e}}var Vn=xn,Tn=se=>cn(or(se)),Pn={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors","importReflection","explicitResourceManagement",["importAttributes",{deprecatedAssertSyntax:!0}],"sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}]],tokens:!0,ranges:!0},zn=["recordAndTuple",{syntaxType:"hash"}],Be="v8intrinsic",Mt=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],dt=(se,me=Pn)=>({...me,plugins:[...me.plugins,...se]}),on=/@(?:no)?flow\b/;function nn(se,me){var Me;if((Me=me.filepath)!=null&&Me.endsWith(".js.flow"))return!0;let $e=_e(se);$e&&(se=se.slice($e.length));let Ze=z(se,0);return Ze!==!1&&(se=se.slice(0,Ze)),on.test(se)}function rr(se,me,Me){let $e=se(me,Me),Ze=$e.errors.find(It=>!pr.has(It.reasonCode));if(Ze)throw Ze;return $e}function or({isExpression:se=!1,optionsCombinations:me}){return(Me,$e={})=>{if(($e.parser==="babel"||$e.parser==="__babel_estree")&&nn(Me,$e))return $e.parser="babel-flow",Fs.parse(Me,$e);let Ze=me;($e.__babelSourceType??qt($e))==="script"&&(Ze=Ze.map(en=>({...en,sourceType:"script"}))),/#[[{]/.test(Me)&&(Ze=Ze.map(en=>dt([zn],en)));let It=/%[A-Z]/.test(Me);Me.includes("|>")?Ze=(It?[...Mt,Be]:Mt).flatMap(en=>Ze.map(Cn=>dt([en],Cn))):It&&(Ze=Ze.map(en=>dt([Be],en)));let At=se?D.parseExpression:D.parse,Kt;try{Kt=Ie(Ze.map(en=>()=>rr(At,Me,en)))}catch({errors:[en]}){throw Ft(en)}return se&&(Kt=Vn(Kt,{text:Me,rootMarker:$e.rootMarker})),ut(Kt,{parser:"babel",text:Me})}}var pr=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DuplicateAccessibilityModifier","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),ai=[dt(["jsx"])],ar=Tn({optionsCombinations:ai}),dr=Tn({optionsCombinations:[dt(["jsx","typescript"]),dt(["typescript"])]}),gi=Tn({isExpression:!0,optionsCombinations:[dt(["jsx"])]}),ps=Tn({isExpression:!0,optionsCombinations:[dt(["typescript"])]}),Fs=Tn({optionsCombinations:[dt(["jsx",["flow",{all:!0,enums:!0}],"flowComments"])]}),Io=Tn({optionsCombinations:ai.map(se=>dt(["estree"],se))}),ds={babel:ar,"babel-flow":Fs,"babel-ts":dr,__js_expression:gi,__ts_expression:ps,__vue_expression:gi,__vue_ts_expression:ps,__vue_event_binding:ar,__vue_ts_event_binding:dr,__babel_estree:Io},fs=d(y(),1);function Ma(se={}){let{allowComments:me=!0}=se;return function(Me){let $e;try{$e=(0,fs.parseExpression)(Me,{tokens:!0,ranges:!0,attachComment:!1})}catch(Ze){throw Ft(Ze)}if(!me&&ge($e.comments))throw mr($e.comments[0],"Comment");return Jr($e),Vn($e,{type:"JsonRoot",text:Me})}}function mr(se,me){let[Me,$e]=[se.loc.start,se.loc.end].map(({line:Ze,column:It})=>({line:Ze,column:It+1}));return _t(`${me} is not allowed in JSON.`,{loc:{start:Me,end:$e}})}function Jr(se){switch(se.type){case"ArrayExpression":for(let me of se.elements)me!==null&&Jr(me);return;case"ObjectExpression":for(let me of se.properties)Jr(me);return;case"ObjectProperty":if(se.computed)throw mr(se.key,"Computed key");if(se.shorthand)throw mr(se.key,"Shorthand property");se.key.type!=="Identifier"&&Jr(se.key),Jr(se.value);return;case"UnaryExpression":{let{operator:me,argument:Me}=se;if(me!=="+"&&me!=="-")throw mr(se,`Operator '${se.operator}'`);if(Me.type==="NumericLiteral"||Me.type==="Identifier"&&(Me.name==="Infinity"||Me.name==="NaN"))return;throw mr(Me,`Operator '${me}' before '${Me.type}'`)}case"Identifier":if(se.name!=="Infinity"&&se.name!=="NaN"&&se.name!=="undefined")throw mr(se,`Identifier '${se.name}'`);return;case"TemplateLiteral":if(ge(se.expressions))throw mr(se.expressions[0],"'TemplateLiteral' with expression");for(let me of se.quasis)Jr(me);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw mr(se,`'${se.type}'`)}}var Ki=Ma(),ll={json:cn({parse:Ki,hasPragma(){return!0}}),json5:cn(Ki),jsonc:cn(Ki),"json-stringify":cn({parse:Ma({allowComments:!1}),astFormat:"estree-json"})},pe=ll,qe={...ds,...pe};return A(x)})})(mee);var yee={exports:{}};(function(t,e){(function(n){function r(){var i=n();return i.default||i}t.exports=r()})(function(){var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,l=(h,v)=>()=>(v||h((v={exports:{}}).exports,v),v.exports),c=(h,v)=>{for(var S in v)r(h,S,{get:v[S],enumerable:!0})},p=(h,v,S,M)=>{if(v&&typeof v=="object"||typeof v=="function")for(let R of s(v))!a.call(h,R)&&R!==S&&r(h,R,{get:()=>v[R],enumerable:!(M=i(v,R))||M.enumerable});return h},d=(h,v,S)=>(S=h!=null?n(o(h)):{},p(v||!h||!h.__esModule?r(S,"default",{value:h,enumerable:!0}):S,h)),A=h=>p(r({},"__esModule",{value:!0}),h),y=(h,v,S)=>{if(!v.has(h))throw TypeError("Cannot "+S)},C=(h,v,S)=>(y(h,v,"read from private field"),S?S.call(h):v.get(h)),x=(h,v,S)=>{if(v.has(h))throw TypeError("Cannot add the same private member more than once");v instanceof WeakSet?v.add(h):v.set(h,S)},D=(h,v,S,M)=>(y(h,v,"write to private field"),M?M.call(h,S):v.set(h,S),S),I=l(h=>{Object.defineProperty(h,"__esModule",{value:!0}),h.extract=ke,h.parse=Re,h.parseWithComments=ot,h.print=it,h.strip=Te;var v=/\*\/$/,S=/^\/\*\*?/,M=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,R=/(^|\s+)\/\/([^\r\n]*)/g,O=/^(\r?\n)+/,J=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,ce=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Qe=/(\r?\n|^) *\* ?/g,fe=[];function ke(Dt){let vt=Dt.match(M);return vt?vt[0].trimLeft():""}function Te(Dt){let vt=Dt.match(M);return vt&&vt[0]?Dt.substring(vt[0].length):Dt}function Re(Dt){return ot(Dt).pragmas}function ot(Dt){let vt=` +`);return me.length>1&&me.every(Me=>Me.trimStart()[0]==="*")}var Z=Y;function Le(se){return oe(se)&&se.value[0]==="*"&&/@(?:type|satisfies)\b/.test(se.value)}var ze=Le,Fe=null;function je(se){if(Fe!==null&&typeof Fe.property){let me=Fe;return Fe=je.prototype=null,me}return Fe=je.prototype=se??Object.create(null),new je}var le=10;for(let se=0;se<=le;se++)je();function Ne(se){return je(se)}function be(se,me="type"){Ne(se);function Me($e){let Ze=$e[me],It=se[Ze];if(!Array.isArray(It))throw Object.assign(new Error(`Missing visitor keys for '${Ze}'.`),{node:$e});return It}return Me}var Ve=be,He={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],AsConstExpression:["expression"],SatisfiesExpression:["expression","typeAnnotation"]},lt=Ve(He),Se=lt;function W(se,me){if(!(se!==null&&typeof se=="object"))return se;if(Array.isArray(se)){for(let $e=0;$e{var At;(At=It.leadingComments)!=null&&At.some(ze)&&Ze.add(ve(It))}),se=$(se,It=>{if(It.type==="ParenthesizedExpression"){let{expression:At}=It;if(At.type==="TypeCastExpression")return At.range=[...It.range],At;let Kt=ve(It);if(!Ze.has(Kt))return At.extra={...At.extra,parenthesized:!0},At}})}if(se=$(se,Ze=>{var It;switch(Ze.type){case"LogicalExpression":if(ft(Ze))return pt(Ze);break;case"VariableDeclaration":{let At=Ge(!1,Ze.declarations,-1);At!=null&&At.init&&$e[Ae(At)]!==";"&&(Ze.range=[ve(Ze),Ae(At)]);break}case"TSParenthesizedType":return Ze.typeAnnotation;case"TSTypeParameter":if(typeof Ze.name=="string"){let At=ve(Ze);Ze.name={type:"Identifier",name:Ze.name,range:[At,At+Ze.name.length]}}break;case"TopicReference":se.extra={...se.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":if(Me==="meriyah"&&((It=Ze.exported)==null?void 0:It.type)==="Identifier"){let{exported:At}=Ze,Kt=$e.slice(ve(At),Ae(At));(Kt.startsWith('"')||Kt.startsWith("'"))&&(Ze.exported={...Ze.exported,type:"Literal",value:Ze.exported.name,raw:Kt})}break;case"TSUnionType":case"TSIntersectionType":if(Ze.types.length===1)return Ze.types[0];break}}),ge(se.comments)){let Ze=Ge(!1,se.comments,-1);for(let It=se.comments.length-2;It>=0;It--){let At=se.comments[It];Ae(At)===ve(Ze)&&oe(At)&&oe(Ze)&&Z(At)&&Z(Ze)&&(se.comments.splice(It+1,1),At.value+="*//*"+Ze.value,At.range=[ve(At),Ae(Ze)]),Ze=At}}return se.type==="Program"&&(se.range=[0,$e.length]),se}function ft(se){return se.type==="LogicalExpression"&&se.right.type==="LogicalExpression"&&se.operator===se.right.operator}function pt(se){return ft(se)?pt({type:"LogicalExpression",operator:se.operator,left:pt({type:"LogicalExpression",operator:se.operator,left:se.left,right:se.right.left,range:[ve(se.left),Ae(se.right.left)]}),right:se.right.right,range:[ve(se),Ae(se)]}):se}var ut=Oe;function Ut(se,me){let Me=new SyntaxError(se+" ("+me.loc.start.line+":"+me.loc.start.column+")");return Object.assign(Me,me)}var _t=Ut;function Ot(se){let{message:me,loc:{line:Me,column:$e},reasonCode:Ze}=se,It=se;(Ze==="MissingPlugin"||Ze==="MissingOneOfPlugins")&&(me="Unexpected token.",It=void 0);let At=` (${Me}:${$e})`;return me.endsWith(At)&&(me=me.slice(0,-At.length)),_t(me,{loc:{start:{line:Me,column:$e+1}},cause:It})}var Ft=Ot,Pt=d(C(),1);function mt(se){let me=_e(se);me&&(se=se.slice(me.length+1));let Me=(0,Pt.extract)(se),{pragmas:$e,comments:Ze}=(0,Pt.parseWithComments)(Me);return{shebang:me,text:se,pragmas:$e,comments:Ze}}function Rn(se){let{pragmas:me}=mt(se);return Object.prototype.hasOwnProperty.call(me,"prettier")||Object.prototype.hasOwnProperty.call(me,"format")}function Sn(se){return se=typeof se=="function"?{parse:se}:se,{astFormat:"estree",hasPragma:Rn,locStart:ve,locEnd:Ae,...se}}var cn=Sn;function tn(se){let{filepath:me}=se;if(me){if(me=me.toLowerCase(),me.endsWith(".cjs"))return"script";if(me.endsWith(".mjs"))return"module"}}var qt=tn;function xn(se,me){let{type:Me="JsExpressionRoot",rootMarker:$e,text:Ze}=me,{tokens:It,comments:At}=se;return delete se.tokens,delete se.comments,{tokens:It,comments:At,type:Me,node:se,range:[0,Ze.length],rootMarker:$e}}var Vn=xn,Tn=se=>cn(or(se)),Pn={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors","importReflection","explicitResourceManagement",["importAttributes",{deprecatedAssertSyntax:!0}],"sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}]],tokens:!0,ranges:!0},zn=["recordAndTuple",{syntaxType:"hash"}],Be="v8intrinsic",Mt=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],dt=(se,me=Pn)=>({...me,plugins:[...me.plugins,...se]}),on=/@(?:no)?flow\b/;function nn(se,me){var Me;if((Me=me.filepath)!=null&&Me.endsWith(".js.flow"))return!0;let $e=_e(se);$e&&(se=se.slice($e.length));let Ze=z(se,0);return Ze!==!1&&(se=se.slice(0,Ze)),on.test(se)}function rr(se,me,Me){let $e=se(me,Me),Ze=$e.errors.find(It=>!pr.has(It.reasonCode));if(Ze)throw Ze;return $e}function or({isExpression:se=!1,optionsCombinations:me}){return(Me,$e={})=>{if(($e.parser==="babel"||$e.parser==="__babel_estree")&&nn(Me,$e))return $e.parser="babel-flow",Fs.parse(Me,$e);let Ze=me;($e.__babelSourceType??qt($e))==="script"&&(Ze=Ze.map(en=>({...en,sourceType:"script"}))),/#[[{]/.test(Me)&&(Ze=Ze.map(en=>dt([zn],en)));let It=/%[A-Z]/.test(Me);Me.includes("|>")?Ze=(It?[...Mt,Be]:Mt).flatMap(en=>Ze.map(Cn=>dt([en],Cn))):It&&(Ze=Ze.map(en=>dt([Be],en)));let At=se?D.parseExpression:D.parse,Kt;try{Kt=Ie(Ze.map(en=>()=>rr(At,Me,en)))}catch({errors:[en]}){throw Ft(en)}return se&&(Kt=Vn(Kt,{text:Me,rootMarker:$e.rootMarker})),ut(Kt,{parser:"babel",text:Me})}}var pr=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DuplicateAccessibilityModifier","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),ai=[dt(["jsx"])],ar=Tn({optionsCombinations:ai}),dr=Tn({optionsCombinations:[dt(["jsx","typescript"]),dt(["typescript"])]}),gi=Tn({isExpression:!0,optionsCombinations:[dt(["jsx"])]}),ps=Tn({isExpression:!0,optionsCombinations:[dt(["typescript"])]}),Fs=Tn({optionsCombinations:[dt(["jsx",["flow",{all:!0,enums:!0}],"flowComments"])]}),Io=Tn({optionsCombinations:ai.map(se=>dt(["estree"],se))}),ds={babel:ar,"babel-flow":Fs,"babel-ts":dr,__js_expression:gi,__ts_expression:ps,__vue_expression:gi,__vue_ts_expression:ps,__vue_event_binding:ar,__vue_ts_event_binding:dr,__babel_estree:Io},fs=d(y(),1);function Ma(se={}){let{allowComments:me=!0}=se;return function(Me){let $e;try{$e=(0,fs.parseExpression)(Me,{tokens:!0,ranges:!0,attachComment:!1})}catch(Ze){throw Ft(Ze)}if(!me&&ge($e.comments))throw mr($e.comments[0],"Comment");return Jr($e),Vn($e,{type:"JsonRoot",text:Me})}}function mr(se,me){let[Me,$e]=[se.loc.start,se.loc.end].map(({line:Ze,column:It})=>({line:Ze,column:It+1}));return _t(`${me} is not allowed in JSON.`,{loc:{start:Me,end:$e}})}function Jr(se){switch(se.type){case"ArrayExpression":for(let me of se.elements)me!==null&&Jr(me);return;case"ObjectExpression":for(let me of se.properties)Jr(me);return;case"ObjectProperty":if(se.computed)throw mr(se.key,"Computed key");if(se.shorthand)throw mr(se.key,"Shorthand property");se.key.type!=="Identifier"&&Jr(se.key),Jr(se.value);return;case"UnaryExpression":{let{operator:me,argument:Me}=se;if(me!=="+"&&me!=="-")throw mr(se,`Operator '${se.operator}'`);if(Me.type==="NumericLiteral"||Me.type==="Identifier"&&(Me.name==="Infinity"||Me.name==="NaN"))return;throw mr(Me,`Operator '${me}' before '${Me.type}'`)}case"Identifier":if(se.name!=="Infinity"&&se.name!=="NaN"&&se.name!=="undefined")throw mr(se,`Identifier '${se.name}'`);return;case"TemplateLiteral":if(ge(se.expressions))throw mr(se.expressions[0],"'TemplateLiteral' with expression");for(let me of se.quasis)Jr(me);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw mr(se,`'${se.type}'`)}}var Ki=Ma(),ll={json:cn({parse:Ki,hasPragma(){return!0}}),json5:cn(Ki),jsonc:cn(Ki),"json-stringify":cn({parse:Ma({allowComments:!1}),astFormat:"estree-json"})},pe=ll,qe={...ds,...pe};return A(x)})})(mee);var yee={exports:{}};(function(t,e){(function(n){function r(){var i=n();return i.default||i}t.exports=r()})(function(){var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,l=(h,v)=>()=>(v||h((v={exports:{}}).exports,v),v.exports),c=(h,v)=>{for(var S in v)r(h,S,{get:v[S],enumerable:!0})},p=(h,v,S,M)=>{if(v&&typeof v=="object"||typeof v=="function")for(let R of s(v))!a.call(h,R)&&R!==S&&r(h,R,{get:()=>v[R],enumerable:!(M=i(v,R))||M.enumerable});return h},d=(h,v,S)=>(S=h!=null?n(o(h)):{},p(v||!h||!h.__esModule?r(S,"default",{value:h,enumerable:!0}):S,h)),A=h=>p(r({},"__esModule",{value:!0}),h),y=(h,v,S)=>{if(!v.has(h))throw TypeError("Cannot "+S)},C=(h,v,S)=>(y(h,v,"read from private field"),S?S.call(h):v.get(h)),x=(h,v,S)=>{if(v.has(h))throw TypeError("Cannot add the same private member more than once");v instanceof WeakSet?v.add(h):v.set(h,S)},D=(h,v,S,M)=>(y(h,v,"write to private field"),M?M.call(h,S):v.set(h,S),S),I=l(h=>{Object.defineProperty(h,"__esModule",{value:!0}),h.extract=ke,h.parse=Re,h.parseWithComments=ot,h.print=it,h.strip=Te;var v=/\*\/$/,S=/^\/\*\*?/,M=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,R=/(^|\s+)\/\/([^\r\n]*)/g,O=/^(\r?\n)+/,J=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,ce=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Qe=/(\r?\n|^) *\* ?/g,fe=[];function ke(Dt){let vt=Dt.match(M);return vt?vt[0].trimLeft():""}function Te(Dt){let vt=Dt.match(M);return vt&&vt[0]?Dt.substring(vt[0].length):Dt}function Re(Dt){return ot(Dt).pragmas}function ot(Dt){let vt=` `;Dt=Dt.replace(S,"").replace(v,"").replace(Qe,"$1");let gn="";for(;gn!==Dt;)gn=Dt,Dt=Dt.replace(J,`${vt}$1 $2${vt}`);Dt=Dt.replace(O,"").trimRight();let dn=Object.create(null),Xn=Dt.replace(ce,"").replace(O,"").trimRight(),Dn;for(;Dn=ce.exec(Dt);){let wt=Dn[2].replace(R,"");typeof dn[Dn[1]]=="string"||Array.isArray(dn[Dn[1]])?dn[Dn[1]]=fe.concat(dn[Dn[1]],wt):dn[Dn[1]]=wt}return{comments:Xn,pragmas:dn}}function it({comments:Dt="",pragmas:vt={}}){let gn=` `,dn="/**",Xn=" *",Dn=" */",wt=Object.keys(vt),hr=wt.flatMap(Ar=>rn(Ar,vt[Ar])).map(Ar=>`${Xn} ${Ar}${gn}`).join("");if(!Dt){if(wt.length===0)return"";if(wt.length===1&&!Array.isArray(vt[wt[0]])){let Ar=vt[wt[0]];return`${dn} ${rn(wt[0],Ar)[0]}${Dn}`}}let zs=Dt.split(gn).map(Ar=>`${Xn} ${Ar}`).join(gn)+gn;return dn+gn+(Dt?zs:"")+(Dt&&wt.length?Xn+gn:"")+hr+Dn}function rn(Dt,vt){return fe.concat(vt).map(gn=>`@${Dt} ${gn}`.trim())}}),w={};c(w,{languages:()=>_5,options:()=>T5,printers:()=>M5});var B=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}],_={};c(_,{canAttachComment:()=>E,embed:()=>wv,experimentalFeatures:()=>C5,getCommentChildNodes:()=>b,getVisitorKeys:()=>Be,handleComments:()=>Es,insertPragma:()=>Pd,isBlockComment:()=>nn,isGap:()=>j,massageAstNode:()=>ro,print:()=>E5,printComment:()=>tc,willPrintOwnComments:()=>k});var F=(h,v,S,M)=>{if(!(h&&v==null))return v.replaceAll?v.replaceAll(S,M):S.global?v.replace(S,M):v.split(S).join(M)},P=F,N=(h,v,S)=>{if(!(h&&v==null))return Array.isArray(v)||typeof v=="string"?v[S<0?v.length+S:S]:v.at(S)},U=N,q=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,L=h=>q.test(h),z=L;function he(h){return h!==null&&typeof h=="object"}var Ie=he;function*re(h,v){let{getVisitorKeys:S,filter:M=()=>!0}=v,R=O=>Ie(O)&&M(O);for(let O of S(h)){let J=h[O];if(Array.isArray(J))for(let ce of J)R(ce)&&(yield ce);else R(J)&&(yield J)}}function*_e(h,v){let S=[h];for(let M=0;M/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uD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1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function ie(h){return h===12288||h>=65281&&h<=65376||h>=65504&&h<=65510}function ge(h){return h>=4352&&h<=4447||h===8986||h===8987||h===9001||h===9002||h>=9193&&h<=9196||h===9200||h===9203||h===9725||h===9726||h===9748||h===9749||h>=9800&&h<=9811||h===9855||h===9875||h===9889||h===9898||h===9899||h===9917||h===9918||h===9924||h===9925||h===9934||h===9940||h===9962||h===9970||h===9971||h===9973||h===9978||h===9981||h===9989||h===9994||h===9995||h===10024||h===10060||h===10062||h>=10067&&h<=10069||h===10071||h>=10133&&h<=10135||h===10160||h===10175||h===11035||h===11036||h===11088||h===11093||h>=11904&&h<=11929||h>=11931&&h<=12019||h>=12032&&h<=12245||h>=12272&&h<=12287||h>=12289&&h<=12350||h>=12353&&h<=12438||h>=12441&&h<=12543||h>=12549&&h<=12591||h>=12593&&h<=12686||h>=12688&&h<=12771||h>=12783&&h<=12830||h>=12832&&h<=12871||h>=12880&&h<=19903||h>=19968&&h<=42124||h>=42128&&h<=42182||h>=43360&&h<=43388||h>=44032&&h<=55203||h>=63744&&h<=64255||h>=65040&&h<=65049||h>=65072&&h<=65106||h>=65108&&h<=65126||h>=65128&&h<=65131||h>=94176&&h<=94180||h===94192||h===94193||h>=94208&&h<=100343||h>=100352&&h<=101589||h>=101632&&h<=101640||h>=110576&&h<=110579||h>=110581&&h<=110587||h===110589||h===110590||h>=110592&&h<=110882||h===110898||h>=110928&&h<=110930||h===110933||h>=110948&&h<=110951||h>=110960&&h<=111355||h===126980||h===127183||h===127374||h>=127377&&h<=127386||h>=127488&&h<=127490||h>=127504&&h<=127547||h>=127552&&h<=127560||h===127568||h===127569||h>=127584&&h<=127589||h>=127744&&h<=127776||h>=127789&&h<=127797||h>=127799&&h<=127868||h>=127870&&h<=127891||h>=127904&&h<=127946||h>=127951&&h<=127955||h>=127968&&h<=127984||h===127988||h>=127992&&h<=128062||h===128064||h>=128066&&h<=128252||h>=128255&&h<=128317||h>=128331&&h<=128334||h>=128336&&h<=128359||h===128378||h===128405||h===128406||h===128420||h>=128507&&h<=128591||h>=128640&&h<=128709||h===128716||h>=128720&&h<=128722||h>=128725&&h<=128727||h>=128732&&h<=128735||h===128747||h===128748||h>=128756&&h<=128764||h>=128992&&h<=129003||h===129008||h>=129292&&h<=129338||h>=129340&&h<=129349||h>=129351&&h<=129535||h>=129648&&h<=129660||h>=129664&&h<=129672||h>=129680&&h<=129725||h>=129727&&h<=129733||h>=129742&&h<=129755||h>=129760&&h<=129768||h>=129776&&h<=129784||h>=131072&&h<=196605||h>=196608&&h<=262141}var ve=h=>!(ie(h)||ge(h)),Ae=/[^\x20-\x7F]/;function Ue(h){if(!h)return 0;if(!Ae.test(h))return h.length;h=h.replace(Ge()," ");let v=0;for(let S of h){let M=S.codePointAt(0);M<=31||M>=127&&M<=159||M>=768&&M<=879||(v+=ve(M)?1:2)}return v}var we=Ue;function K(h){return(v,S,M)=>{let R=!!(M!=null&&M.backwards);if(S===!1)return!1;let{length:O}=v,J=S;for(;J>=0&&J0}var W=Se,$="'",Oe='"';function ft(h,v){let S=v===!0||v===$?$:Oe,M=S===$?Oe:$,R=0,O=0;for(let J of h)J===S?R++:J===M&&O++;return R>O?M:S}var pt=ft;function ut(h,v,S){let M=v==='"'?"'":'"',R=P(!1,h,/\\(.)|(["'])/gs,(O,J,ce)=>J===M?J:ce===v?"\\"+ce:ce||(S&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(J)?J:"\\"+J));return v+R+v}var Ut=ut;function _t(h,v){let S=h.slice(1,-1),M=v.parser==="json"||v.parser==="jsonc"||v.parser==="json5"&&v.quoteProps==="preserve"&&!v.singleQuote?'"':v.__isInHtmlAttribute?"'":pt(S,v.singleQuote);return Ut(S,M,!(v.parser==="css"||v.parser==="less"||v.parser==="scss"||v.__embeddedInHtml))}var Ot=_t;function Ft(h){var v,S,M;let R=((v=h.range)==null?void 0:v[0])??h.start,O=(M=((S=h.declaration)==null?void 0:S.decorators)??h.decorators)==null?void 0:M[0];return O?Math.min(Ft(O),R):R}function Pt(h){var v;return((v=h.range)==null?void 0:v[1])??h.end}function mt(h,v){let S=Ft(h);return Number.isInteger(S)&&S===Ft(v)}function Rn(h,v){let S=Pt(h);return Number.isInteger(S)&&S===Pt(v)}function Sn(h,v){return mt(h,v)&&Rn(h,v)}var cn=null;function tn(h){if(cn!==null&&typeof cn.property){let v=cn;return cn=tn.prototype=null,v}return cn=tn.prototype=h??Object.create(null),new tn}var qt=10;for(let h=0;h<=qt;h++)tn();function xn(h){return tn(h)}function Vn(h,v="type"){xn(h);function S(M){let R=M[v],O=h[R];if(!Array.isArray(O))throw Object.assign(new Error(`Missing visitor keys for '${R}'.`),{node:M});return O}return S}var Tn=Vn,Pn={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],AsConstExpression:["expression"],SatisfiesExpression:["expression","typeAnnotation"]},zn=Tn(Pn),Be=zn;function Mt(h){let v=new Set(h);return S=>v.has(S==null?void 0:S.type)}var dt=Mt,on=dt(["Block","CommentBlock","MultiLine"]),nn=on,rr=dt(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),or=rr;function pr(h,v){let S=v.split(".");for(let M=S.length-1;M>=0;M--){let R=S[M];if(M===0)return h.type==="Identifier"&&h.name===R;if(h.type!=="MemberExpression"||h.optional||h.computed||h.property.type!=="Identifier"||h.property.name!==R)return!1;h=h.object}}function ai(h,v){return v.some(S=>pr(h,S))}var ar=ai;function dr({type:h}){return h.startsWith("TS")&&h.endsWith("Keyword")}var gi=dr;function ps(h,v){return v(h)||De(h,{getVisitorKeys:Be,predicate:v})}function Fs(h){return h.type==="AssignmentExpression"||h.type==="BinaryExpression"||h.type==="LogicalExpression"||h.type==="NGPipeExpression"||h.type==="ConditionalExpression"||ye(h)||Pe(h)||h.type==="SequenceExpression"||h.type==="TaggedTemplateExpression"||h.type==="BindExpression"||h.type==="UpdateExpression"&&!h.prefix||to(h)||h.type==="TSNonNullExpression"||h.type==="ChainExpression"}function Io(h){return h.expressions?h.expressions[0]:h.left??h.test??h.callee??h.object??h.tag??h.argument??h.expression}function ds(h){if(h.expressions)return["expressions",0];if(h.left)return["left"];if(h.test)return["test"];if(h.object)return["object"];if(h.callee)return["callee"];if(h.tag)return["tag"];if(h.argument)return["argument"];if(h.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var fs=dt(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Ma=dt(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),mr=dt(["ArrayExpression","TupleExpression"]),Jr=dt(["ObjectExpression","RecordExpression"]);function Ki(h){return h.type==="NumericLiteral"||h.type==="Literal"&&typeof h.value=="number"}function ll(h){return h.type==="UnaryExpression"&&(h.operator==="+"||h.operator==="-")&&Ki(h.argument)}function pe(h){return h.type==="StringLiteral"||h.type==="Literal"&&typeof h.value=="string"}function qe(h){return h.type==="RegExpLiteral"||h.type==="Literal"&&!!h.regex}var se=dt(["Literal","BooleanLiteral","BigIntLiteral","DecimalLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),me=dt(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier","Import"]),Me=dt(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),$e=dt(["FunctionExpression","ArrowFunctionExpression"]);function Ze(h){return h.type==="FunctionExpression"||h.type==="ArrowFunctionExpression"&&h.body.type==="BlockStatement"}function It(h){return ye(h)&&h.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(h.callee.name)}var At=dt(["JSXElement","JSXFragment"]);function Kt(h){return h.method&&h.kind==="init"||h.kind==="get"||h.kind==="set"}function en(h){return(h.type==="ObjectTypeProperty"||h.type==="ObjectTypeInternalSlot")&&!h.static&&!h.method&&h.kind!=="get"&&h.kind!=="set"&&h.value.type==="FunctionTypeAnnotation"}function Cn(h){return(h.type==="TypeAnnotation"||h.type==="TSTypeAnnotation")&&h.typeAnnotation.type==="FunctionTypeAnnotation"&&!h.static&&!mt(h,h.typeAnnotation)}var Zn=dt(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function Ir(h){return Pe(h)||h.type==="BindExpression"&&!!h.object}var fr=dt(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function xr(h){return gi(h)||or(h)||fr(h)||(h.type==="GenericTypeAnnotation"||h.type==="TSTypeReference")&&!h.typeParameters}function hn(h){let v=/^(?:before|after)(?:Each|All)$/;return h.callee.type==="Identifier"&&h.arguments.length===1&&v.test(h.callee.name)}var zt=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function Ln(h){return ar(h,zt)}function ee(h,v){if(h.type!=="CallExpression")return!1;if(h.arguments.length===1){if(It(h)&&v&&ee(v))return $e(h.arguments[0]);if(hn(h))return It(h.arguments[0])}else if((h.arguments.length===2||h.arguments.length===3)&&(h.arguments[0].type==="TemplateLiteral"||pe(h.arguments[0]))&&Ln(h.callee))return h.arguments[2]&&!Ki(h.arguments[2])?!1:(h.arguments.length===2?$e(h.arguments[1]):Ze(h.arguments[1])&&ui(h.arguments[1]).length<=1)||It(h.arguments[1]);return!1}var H=h=>v=>((v==null?void 0:v.type)==="ChainExpression"&&(v=v.expression),h(v)),ye=H(dt(["CallExpression","OptionalCallExpression"])),Pe=H(dt(["MemberExpression","OptionalMemberExpression"]));function We(h){let v="expressions";h.type==="TSTemplateLiteralType"&&(v="types");let S=h[v];return S.length===0?!1:S.every(M=>{if(yt(M)||et(M))return!0})}function et(h,{maxDepth:v=Number.POSITIVE_INFINITY}={}){if(Rt(h))return!1;if(h.type==="ChainExpression")return et(h.expression,{maxDepth:v});if(!Pe(h))return!1;let S=h,M=0;for(;Pe(S)&&M++<=v;)if(!yt(S.property)||(S=S.object,Rt(S)))return!1;return yt(S)}function yt(h){return Rt(h)?!1:se(h)||me(h)}function ct(h,v=5){return rt(h,v)<=v}function rt(h,v){let S=0;for(let M in h){let R=h[M];if(R&&typeof R=="object"&&typeof R.type=="string"&&(S++,S+=rt(R,v-S)),S>v)return S}return S}var Xe=.25;function Qt(h,v){let{printWidth:S}=v;if(Rt(h))return!1;let M=S*Xe;if(h.type==="ThisExpression"||h.type==="Identifier"&&h.name.length<=M||ll(h)&&!Rt(h.argument))return!0;let R=h.type==="Literal"&&"regex"in h&&h.regex.pattern||h.type==="RegExpLiteral"&&h.pattern;return R?R.length<=M:pe(h)?Ot(bi(h),v).length<=M:h.type==="TemplateLiteral"?h.expressions.length===0&&h.quasis[0].value.raw.length<=M&&!h.quasis[0].value.raw.includes(` +`||R==="\r"||R==="\u2028"||R==="\u2029")return v+1}return v}var ze=Le;function Fe(h,v,S={}){let M=oe(h,S.backwards?v-1:v,S),R=ze(h,M,S);return M!==R}var je=Fe;function le(h,v){if(v===!1)return!1;if(h.charAt(v)==="/"&&h.charAt(v+1)==="*"){for(let S=v+2;S0}var W=Se,$="'",Oe='"';function ft(h,v){let S=v===!0||v===$?$:Oe,M=S===$?Oe:$,R=0,O=0;for(let J of h)J===S?R++:J===M&&O++;return R>O?M:S}var pt=ft;function ut(h,v,S){let M=v==='"'?"'":'"',R=P(!1,h,/\\(.)|(["'])/gs,(O,J,ce)=>J===M?J:ce===v?"\\"+ce:ce||(S&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(J)?J:"\\"+J));return v+R+v}var Ut=ut;function _t(h,v){let S=h.slice(1,-1),M=v.parser==="json"||v.parser==="jsonc"||v.parser==="json5"&&v.quoteProps==="preserve"&&!v.singleQuote?'"':v.__isInHtmlAttribute?"'":pt(S,v.singleQuote);return Ut(S,M,!(v.parser==="css"||v.parser==="less"||v.parser==="scss"||v.__embeddedInHtml))}var Ot=_t;function Ft(h){var v,S,M;let R=((v=h.range)==null?void 0:v[0])??h.start,O=(M=((S=h.declaration)==null?void 0:S.decorators)??h.decorators)==null?void 0:M[0];return O?Math.min(Ft(O),R):R}function Pt(h){var v;return((v=h.range)==null?void 0:v[1])??h.end}function mt(h,v){let S=Ft(h);return Number.isInteger(S)&&S===Ft(v)}function Rn(h,v){let S=Pt(h);return Number.isInteger(S)&&S===Pt(v)}function Sn(h,v){return mt(h,v)&&Rn(h,v)}var cn=null;function tn(h){if(cn!==null&&typeof cn.property){let v=cn;return cn=tn.prototype=null,v}return cn=tn.prototype=h??Object.create(null),new tn}var qt=10;for(let h=0;h<=qt;h++)tn();function xn(h){return tn(h)}function Vn(h,v="type"){xn(h);function S(M){let R=M[v],O=h[R];if(!Array.isArray(O))throw Object.assign(new Error(`Missing visitor keys for '${R}'.`),{node:M});return O}return S}var Tn=Vn,Pn={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],AsConstExpression:["expression"],SatisfiesExpression:["expression","typeAnnotation"]},zn=Tn(Pn),Be=zn;function Mt(h){let v=new Set(h);return S=>v.has(S==null?void 0:S.type)}var dt=Mt,on=dt(["Block","CommentBlock","MultiLine"]),nn=on,rr=dt(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),or=rr;function pr(h,v){let S=v.split(".");for(let M=S.length-1;M>=0;M--){let R=S[M];if(M===0)return h.type==="Identifier"&&h.name===R;if(h.type!=="MemberExpression"||h.optional||h.computed||h.property.type!=="Identifier"||h.property.name!==R)return!1;h=h.object}}function ai(h,v){return v.some(S=>pr(h,S))}var ar=ai;function dr({type:h}){return h.startsWith("TS")&&h.endsWith("Keyword")}var gi=dr;function ps(h,v){return v(h)||De(h,{getVisitorKeys:Be,predicate:v})}function Fs(h){return h.type==="AssignmentExpression"||h.type==="BinaryExpression"||h.type==="LogicalExpression"||h.type==="NGPipeExpression"||h.type==="ConditionalExpression"||ye(h)||Pe(h)||h.type==="SequenceExpression"||h.type==="TaggedTemplateExpression"||h.type==="BindExpression"||h.type==="UpdateExpression"&&!h.prefix||to(h)||h.type==="TSNonNullExpression"||h.type==="ChainExpression"}function Io(h){return h.expressions?h.expressions[0]:h.left??h.test??h.callee??h.object??h.tag??h.argument??h.expression}function ds(h){if(h.expressions)return["expressions",0];if(h.left)return["left"];if(h.test)return["test"];if(h.object)return["object"];if(h.callee)return["callee"];if(h.tag)return["tag"];if(h.argument)return["argument"];if(h.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var fs=dt(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Ma=dt(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),mr=dt(["ArrayExpression","TupleExpression"]),Jr=dt(["ObjectExpression","RecordExpression"]);function Ki(h){return h.type==="NumericLiteral"||h.type==="Literal"&&typeof h.value=="number"}function ll(h){return h.type==="UnaryExpression"&&(h.operator==="+"||h.operator==="-")&&Ki(h.argument)}function pe(h){return h.type==="StringLiteral"||h.type==="Literal"&&typeof h.value=="string"}function qe(h){return h.type==="RegExpLiteral"||h.type==="Literal"&&!!h.regex}var se=dt(["Literal","BooleanLiteral","BigIntLiteral","DecimalLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),me=dt(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier","Import"]),Me=dt(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),$e=dt(["FunctionExpression","ArrowFunctionExpression"]);function Ze(h){return h.type==="FunctionExpression"||h.type==="ArrowFunctionExpression"&&h.body.type==="BlockStatement"}function It(h){return ye(h)&&h.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(h.callee.name)}var At=dt(["JSXElement","JSXFragment"]);function Kt(h){return h.method&&h.kind==="init"||h.kind==="get"||h.kind==="set"}function en(h){return(h.type==="ObjectTypeProperty"||h.type==="ObjectTypeInternalSlot")&&!h.static&&!h.method&&h.kind!=="get"&&h.kind!=="set"&&h.value.type==="FunctionTypeAnnotation"}function Cn(h){return(h.type==="TypeAnnotation"||h.type==="TSTypeAnnotation")&&h.typeAnnotation.type==="FunctionTypeAnnotation"&&!h.static&&!mt(h,h.typeAnnotation)}var Zn=dt(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function Ir(h){return Pe(h)||h.type==="BindExpression"&&!!h.object}var fr=dt(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function xr(h){return gi(h)||or(h)||fr(h)||(h.type==="GenericTypeAnnotation"||h.type==="TSTypeReference")&&!h.typeParameters}function hn(h){let v=/^(?:before|after)(?:Each|All)$/;return h.callee.type==="Identifier"&&h.arguments.length===1&&v.test(h.callee.name)}var zt=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function Ln(h){return ar(h,zt)}function ee(h,v){if(h.type!=="CallExpression")return!1;if(h.arguments.length===1){if(It(h)&&v&&ee(v))return $e(h.arguments[0]);if(hn(h))return It(h.arguments[0])}else if((h.arguments.length===2||h.arguments.length===3)&&(h.arguments[0].type==="TemplateLiteral"||pe(h.arguments[0]))&&Ln(h.callee))return h.arguments[2]&&!Ki(h.arguments[2])?!1:(h.arguments.length===2?$e(h.arguments[1]):Ze(h.arguments[1])&&ui(h.arguments[1]).length<=1)||It(h.arguments[1]);return!1}var H=h=>v=>((v==null?void 0:v.type)==="ChainExpression"&&(v=v.expression),h(v)),ye=H(dt(["CallExpression","OptionalCallExpression"])),Pe=H(dt(["MemberExpression","OptionalMemberExpression"]));function We(h){let v="expressions";h.type==="TSTemplateLiteralType"&&(v="types");let S=h[v];return S.length===0?!1:S.every(M=>{if(yt(M)||et(M))return!0})}function et(h,{maxDepth:v=Number.POSITIVE_INFINITY}={}){if(Rt(h))return!1;if(h.type==="ChainExpression")return et(h.expression,{maxDepth:v});if(!Pe(h))return!1;let S=h,M=0;for(;Pe(S)&&M++<=v;)if(!yt(S.property)||(S=S.object,Rt(S)))return!1;return yt(S)}function yt(h){return Rt(h)?!1:se(h)||me(h)}function ct(h,v=5){return rt(h,v)<=v}function rt(h,v){let S=0;for(let M in h){let R=h[M];if(R&&typeof R=="object"&&typeof R.type=="string"&&(S++,S+=rt(R,v-S)),S>v)return S}return S}var Xe=.25;function Qt(h,v){let{printWidth:S}=v;if(Rt(h))return!1;let M=S*Xe;if(h.type==="ThisExpression"||h.type==="Identifier"&&h.name.length<=M||ll(h)&&!Rt(h.argument))return!0;let R=h.type==="Literal"&&"regex"in h&&h.regex.pattern||h.type==="RegExpLiteral"&&h.pattern;return R?R.length<=M:pe(h)?Ot(bi(h),v).length<=M:h.type==="TemplateLiteral"?h.expressions.length===0&&h.quasis[0].value.raw.length<=M&&!h.quasis[0].value.raw.includes(` `):h.type==="UnaryExpression"?Qt(h.argument,{printWidth:S}):h.type==="CallExpression"&&h.arguments.length===0&&h.callee.type==="Identifier"?h.callee.name.length<=M-2:se(h)}function an(h,v){return At(v)?Qs(v):Rt(v,Zt.Leading,S=>je(h,Pt(S)))}function Qn(h,v){return v.parser!=="json"&&v.parser!=="jsonc"&&pe(h.key)&&bi(h.key).slice(1,-1)===h.key.value&&(z(h.key.value)&&!(v.parser==="babel-ts"&&h.type==="ClassProperty"||v.parser==="typescript"&&h.type==="PropertyDefinition")||kr(h.key.value)&&String(Number(h.key.value))===h.key.value&&(v.parser==="babel"||v.parser==="acorn"||v.parser==="espree"||v.parser==="meriyah"||v.parser==="__babel_estree"))}function kr(h){return/^(?:\d+|\d+\.\d+)$/.test(h)}function Kn(h){return h.quasis.some(v=>v.value.raw.includes(` `))}function Ur(h,v){return(h.type==="TemplateLiteral"&&Kn(h)||h.type==="TaggedTemplateExpression"&&Kn(h.quasi))&&!je(v,Ft(h),{backwards:!0})}function vn(h){if(!Rt(h))return!1;let v=U(!1,cl(h,Zt.Dangling),-1);return v&&!nn(v)}function _r(h){if(h.length<=1)return!1;let v=0;for(let S of h)if($e(S)){if(v+=1,v>1)return!0}else if(ye(S)){for(let M of Rr(S))if($e(M))return!0}return!1}function Bi(h){let{node:v,parent:S,key:M}=h;return M==="callee"&&ye(v)&&ye(S)&&S.arguments.length>0&&v.arguments.length>S.arguments.length}var Ps=new Set(["!","-","+","~"]);function li(h,v=2){if(v<=0)return!1;if(h.type==="ChainExpression"||h.type==="TSNonNullExpression")return li(h.expression,v);let S=M=>li(M,v-1);if(qe(h))return we(h.pattern??h.regex.pattern)<=5;if(se(h)||me(h)||h.type==="ArgumentPlaceholder")return!0;if(h.type==="TemplateLiteral")return h.quasis.every(M=>!M.value.raw.includes(` `))&&h.expressions.every(S);if(Jr(h))return h.properties.every(M=>!M.computed&&(M.shorthand||M.value&&S(M.value)));if(mr(h))return h.elements.every(M=>M===null||S(M));if($i(h)){if(h.type==="ImportExpression"||li(h.callee,v)){let M=Rr(h);return M.length<=v&&M.every(S)}return!1}return Pe(h)?li(h.object,v)&&li(h.property,v):h.type==="UnaryExpression"&&Ps.has(h.operator)||h.type==="UpdateExpression"?li(h.argument,v):!1}function bi(h){var v;return((v=h.extra)==null?void 0:v.raw)??h.raw}function _a(h){return h}function Do(h,v="es5"){return h.trailingComma==="es5"&&v==="es5"||h.trailingComma==="all"&&(v==="all"||v==="es5")}function $r(h,v){switch(h.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return $r(h.left,v);case"MemberExpression":case"OptionalMemberExpression":return $r(h.object,v);case"TaggedTemplateExpression":return h.tag.type==="FunctionExpression"?!1:$r(h.tag,v);case"CallExpression":case"OptionalCallExpression":return h.callee.type==="FunctionExpression"?!1:$r(h.callee,v);case"ConditionalExpression":return $r(h.test,v);case"UpdateExpression":return!h.prefix&&$r(h.argument,v);case"BindExpression":return h.object&&$r(h.object,v);case"SequenceExpression":return $r(h.expressions[0],v);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return $r(h.expression,v);default:return v(h)}}var bt={"==":!0,"!=":!0,"===":!0,"!==":!0},Mn={"*":!0,"/":!0,"%":!0},Hl={">>":!0,">>>":!0,"<<":!0};function $n(h,v){return!(Zi(v)!==Zi(h)||h==="**"||bt[h]&&bt[v]||v==="%"&&Mn[h]||h==="%"&&Mn[v]||v!==h&&Mn[v]&&Mn[h]||Hl[h]&&Hl[v])}var kA=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((h,v)=>h.map(S=>[S,v])));function Zi(h){return kA.get(h)}function ei(h){return!!Hl[h]||h==="|"||h==="^"||h==="&"}function bh(h){var v;if(h.rest)return!0;let S=ui(h);return((v=U(!1,S,-1))==null?void 0:v.type)==="RestElement"}var zl=new WeakMap;function ui(h){if(zl.has(h))return zl.get(h);let v=[];return h.this&&v.push(h.this),Array.isArray(h.parameters)?v.push(...h.parameters):Array.isArray(h.params)&&v.push(...h.params),h.rest&&v.push(h.rest),zl.set(h,v),v}function dd(h,v){let{node:S}=h,M=0,R=O=>v(O,M++);S.this&&h.call(R,"this"),Array.isArray(S.parameters)?h.each(R,"parameters"):Array.isArray(S.params)&&h.each(R,"params"),S.rest&&h.call(R,"rest")}var ul=new WeakMap;function Rr(h){if(ul.has(h))return ul.get(h);if(h.type==="ChainExpression")return Rr(h.expression);let v=h.arguments;return h.type==="ImportExpression"&&(v=[h.source],h.attributes&&v.push(h.attributes),h.options&&v.push(h.options)),ul.set(h,v),v}function Th(h,v){let{node:S}=h;if(S.type==="ChainExpression")return h.call(()=>Th(h,v),"expression");S.type==="ImportExpression"?(h.call(M=>v(M,0),"source"),S.attributes&&h.call(M=>v(M,1),"attributes"),S.options&&h.call(M=>v(M,1),"options")):h.each(v,"arguments")}function fd(h,v){let S=[];if(h.type==="ChainExpression"&&S.push("expression"),h.type==="ImportExpression"){if(v===0||v===(h.attributes||h.options?-2:-1))return[...S,"source"];if(h.attributes&&(v===1||v===-1))return[...S,"attributes"];if(h.options&&(v===1||v===-1))return[...S,"options"];throw new RangeError("Invalid argument index")}if(v<0&&(v=h.arguments.length+v),v<0||v>=h.arguments.length)throw new RangeError("Invalid argument index");return[...S,"arguments",v]}function As(h){return h.value.trim()==="prettier-ignore"&&!h.unignore}function Qs(h){return(h==null?void 0:h.prettierIgnore)||Rt(h,Zt.PrettierIgnore)}var Zt={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},eo=(h,v)=>{if(typeof h=="function"&&(v=h,h=0),h||v)return(S,M,R)=>!(h&Zt.Leading&&!S.leading||h&Zt.Trailing&&!S.trailing||h&Zt.Dangling&&(S.leading||S.trailing)||h&Zt.Block&&!nn(S)||h&Zt.Line&&!fs(S)||h&Zt.First&&M!==0||h&Zt.Last&&M!==R.length-1||h&Zt.PrettierIgnore&&!As(S)||v&&!v(S))};function Rt(h,v,S){if(!W(h==null?void 0:h.comments))return!1;let M=eo(v,S);return M?h.comments.some(M):!0}function cl(h,v,S){if(!Array.isArray(h==null?void 0:h.comments))return[];let M=eo(v,S);return M?h.comments.filter(M):h.comments}var Yr=(h,{originalText:v})=>lt(v,Pt(h));function $i(h){return ye(h)||h.type==="NewExpression"||h.type==="ImportExpression"}function es(h){return h&&(h.type==="ObjectProperty"||h.type==="Property"&&!Kt(h))}var to=dt(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),mi=dt(["UnionTypeAnnotation","TSUnionType"]),Wl=dt(["IntersectionTypeAnnotation","TSIntersectionType"]),jl=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),no=h=>{for(let v of h.quasis)delete v.value};function hl(h,v,S){var M,R;if(h.type==="Program"&&delete v.sourceType,(h.type==="BigIntLiteral"||h.type==="BigIntLiteralTypeAnnotation")&&v.value&&(v.value=v.value.toLowerCase()),(h.type==="BigIntLiteral"||h.type==="Literal")&&v.bigint&&(v.bigint=v.bigint.toLowerCase()),h.type==="DecimalLiteral"&&(v.value=Number(v.value)),h.type==="Literal"&&v.decimal&&(v.decimal=Number(v.decimal)),h.type==="EmptyStatement"||h.type==="JSXText"||h.type==="JSXExpressionContainer"&&(h.expression.type==="Literal"||h.expression.type==="StringLiteral")&&h.expression.value===" ")return null;if((h.type==="Property"||h.type==="ObjectProperty"||h.type==="MethodDefinition"||h.type==="ClassProperty"||h.type==="ClassMethod"||h.type==="PropertyDefinition"||h.type==="TSDeclareMethod"||h.type==="TSPropertySignature"||h.type==="ObjectTypeProperty")&&typeof h.key=="object"&&h.key&&(h.key.type==="Literal"||h.key.type==="NumericLiteral"||h.key.type==="StringLiteral"||h.key.type==="Identifier")&&delete v.key,h.type==="JSXElement"&&h.openingElement.name.name==="style"&&h.openingElement.attributes.some(J=>J.type==="JSXAttribute"&&J.name.name==="jsx"))for(let{type:J,expression:ce}of v.children)J==="JSXExpressionContainer"&&ce.type==="TemplateLiteral"&&no(ce);h.type==="JSXAttribute"&&h.name.name==="css"&&h.value.type==="JSXExpressionContainer"&&h.value.expression.type==="TemplateLiteral"&&no(v.value.expression),h.type==="JSXAttribute"&&((M=h.value)==null?void 0:M.type)==="Literal"&&/["']|"|'/.test(h.value.value)&&(v.value.value=P(!1,v.value.value,/["']|"|'/g,'"'));let O=h.expression||h.callee;if(h.type==="Decorator"&&O.type==="CallExpression"&&O.callee.name==="Component"&&O.arguments.length===1){let J=h.expression.arguments[0].properties;for(let[ce,Qe]of v.expression.arguments[0].properties.entries())switch(J[ce].key.name){case"styles":mr(Qe.value)&&no(Qe.value.elements[0]);break;case"template":Qe.value.type==="TemplateLiteral"&&no(Qe.value);break}}if(h.type==="TaggedTemplateExpression"&&(h.tag.type==="MemberExpression"||h.tag.type==="Identifier"&&(h.tag.name==="gql"||h.tag.name==="graphql"||h.tag.name==="css"||h.tag.name==="md"||h.tag.name==="markdown"||h.tag.name==="html")||h.tag.type==="CallExpression")&&no(v.quasi),h.type==="TemplateLiteral"&&((R=h.leadingComments)!=null&&R.some(J=>nn(J)&&["GraphQL","HTML"].some(ce=>J.value===` ${ce} `))||S.type==="CallExpression"&&S.callee.name==="graphql"||!h.leadingComments)&&no(v),(h.type==="TSIntersectionType"||h.type==="TSUnionType")&&h.types.length===1)return v.types[0];h.type==="ChainExpression"&&h.expression.type==="TSNonNullExpression"&&([v.type,v.expression.type]=[v.expression.type,v.type])}hl.ignoredProperties=jl;var ro=hl,ks="string",io="array",la="cursor",Rs="indent",ci="align",Ti="trim",Xr="group",gs="fill",Ls="if-break",Oi="indent-if-break",ts="line-suffix",So="line-suffix-boundary",ns="line",ms="label",so="break-parent",Mh=new Set([la,Rs,ci,Ti,Xr,gs,Ls,Oi,ts,So,ns,ms,so]);function _h(h){if(typeof h=="string")return ks;if(Array.isArray(h))return io;if(!h)return;let{type:v}=h;if(Mh.has(v))return v}var Go=_h,Fh=h=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(h);function Ad(h){let v=h===null?"null":typeof h;if(v!=="string"&&v!=="object")return`Unexpected doc '${v}', @@ -4185,4 +4185,4 @@ Expected it to be ${M}.`}var pl=class extends Error{constructor(v){super(Ad(v)); `)+O}function Qd(h,v){let{originalText:S,[Symbol.for("comments")]:M,locStart:R,locEnd:O,[Symbol.for("printedComments")]:J}=v,{node:ce}=h,Qe=R(ce),fe=O(ce);for(let ke of M)R(ke)>=Qe&&O(ke)<=fe&&J.add(ke);return S.slice(Qe,fe)}var kd=Qd;function yc(h,v){var S,M,R,O,J,ce,Qe;if(h.isRoot)return!1;let{node:fe,key:ke,parent:Te}=h;if(v.__isInHtmlInterpolation&&!v.bracketSpacing&&$A(fe)&&$l(h))return!0;if(Rd(fe))return!1;if(fe.type==="Identifier"){if((S=fe.extra)!=null&&S.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(fe.name)||ke==="left"&&(fe.name==="async"&&!Te.await||fe.name==="let")&&Te.type==="ForOfStatement")return!0;if(fe.name==="let"){let Re=(M=h.findAncestor(ot=>ot.type==="ForOfStatement"))==null?void 0:M.left;if(Re&&$r(Re,ot=>ot===fe))return!0}if(ke==="object"&&fe.name==="let"&&Te.type==="MemberExpression"&&Te.computed&&!Te.optional){let Re=h.findAncestor(it=>it.type==="ExpressionStatement"||it.type==="ForStatement"||it.type==="ForInStatement"),ot=Re?Re.type==="ExpressionStatement"?Re.expression:Re.type==="ForStatement"?Re.init:Re.left:void 0;if(ot&&$r(ot,it=>it===fe))return!0}if(ke==="expression")switch(fe.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"type":{let Re=h.findAncestor(ot=>!to(ot));if(Re!==Te&&Re.type==="ExpressionStatement")return!0}}return!1}if(fe.type==="ObjectExpression"||fe.type==="FunctionExpression"||fe.type==="ClassExpression"||fe.type==="DoExpression"){let Re=(R=h.findAncestor(ot=>ot.type==="ExpressionStatement"))==null?void 0:R.expression;if(Re&&$r(Re,ot=>ot===fe))return!0}if(fe.type==="ObjectExpression"){let Re=(O=h.findAncestor(ot=>ot.type==="ArrowFunctionExpression"))==null?void 0:O.body;if(Re&&Re.type!=="SequenceExpression"&&Re.type!=="AssignmentExpression"&&$r(Re,ot=>ot===fe))return!0}switch(Te.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(ke==="superClass"&&(fe.type==="ArrowFunctionExpression"||fe.type==="AssignmentExpression"||fe.type==="AwaitExpression"||fe.type==="BinaryExpression"||fe.type==="ConditionalExpression"||fe.type==="LogicalExpression"||fe.type==="NewExpression"||fe.type==="ObjectExpression"||fe.type==="SequenceExpression"||fe.type==="TaggedTemplateExpression"||fe.type==="UnaryExpression"||fe.type==="UpdateExpression"||fe.type==="YieldExpression"||fe.type==="TSNonNullExpression"||fe.type==="ClassExpression"&&W(fe.decorators)))return!0;break;case"ExportDefaultDeclaration":return eg(h,v)||fe.type==="SequenceExpression";case"Decorator":if(ke==="expression"){if(Pe(fe)&&fe.computed)return!0;let Re=!1,ot=!1,it=fe;for(;it;)switch(it.type){case"MemberExpression":ot=!0,it=it.object;break;case"CallExpression":if(ot||Re)return v.parser!=="typescript";Re=!0,it=it.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return v.parser!=="typescript";default:return!0}return!0}break;case"TypeAnnotation":if(h.match(void 0,void 0,(Re,ot)=>ot==="returnType"&&Re.type==="ArrowFunctionExpression")&&ZA(fe))return!0;break;case"BinaryExpression":if(ke==="left"&&(Te.operator==="in"||Te.operator==="instanceof")&&fe.type==="UnaryExpression")return!0;break}switch(fe.type){case"UpdateExpression":if(Te.type==="UnaryExpression")return fe.prefix&&(fe.operator==="++"&&Te.operator==="+"||fe.operator==="--"&&Te.operator==="-");case"UnaryExpression":switch(Te.type){case"UnaryExpression":return fe.operator===Te.operator&&(fe.operator==="+"||fe.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return ke==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return ke==="callee";case"BinaryExpression":return ke==="left"&&Te.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(Te.type==="UpdateExpression"||fe.operator==="in"&&Yh(h))return!0;if(fe.operator==="|>"&&(J=fe.extra)!=null&&J.parenthesized){let Re=h.grandparent;if(Re.type==="BinaryExpression"&&Re.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(Te.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!to(fe);case"ConditionalExpression":return to(fe);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return ke==="callee";case"ClassExpression":case"ClassDeclaration":return ke==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return ke==="object";case"AssignmentExpression":case"AssignmentPattern":return ke==="left"&&(fe.type==="TSTypeAssertion"||to(fe));case"LogicalExpression":if(fe.type==="LogicalExpression")return Te.operator!==fe.operator;case"BinaryExpression":{let{operator:Re,type:ot}=fe;if(!Re&&ot!=="TSTypeAssertion")return!0;let it=Zi(Re),rn=Te.operator,Dt=Zi(rn);return Dt>it||ke==="right"&&Dt===it||Dt===it&&!$n(rn,Re)?!0:Dt");default:return!1}case"TSFunctionType":if(h.match(Re=>Re.type==="TSFunctionType",(Re,ot)=>ot==="typeAnnotation"&&Re.type==="TSTypeAnnotation",(Re,ot)=>ot==="returnType"&&Re.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":if(ke==="extendsType"&&Te.type==="TSConditionalType"){if(fe.type==="TSConditionalType")return!0;let{typeAnnotation:Re}=fe.returnType||fe.typeAnnotation;if(Re.type==="TSTypePredicate"&&Re.typeAnnotation&&(Re=Re.typeAnnotation.typeAnnotation),Re.type==="TSInferType"&&Re.typeParameter.constraint)return!0}if(ke==="checkType"&&Te.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((Te.type==="TSUnionType"||Te.type==="TSIntersectionType")&&Te.types.length>1&&(!fe.types||fe.types.length>1))return!0;case"TSInferType":if(fe.type==="TSInferType"&&Te.type==="TSRestType")return!1;case"TSTypeOperator":return Te.type==="TSArrayType"||Te.type==="TSOptionalType"||Te.type==="TSRestType"||ke==="objectType"&&Te.type==="TSIndexedAccessType"||Te.type==="TSTypeOperator"||Te.type==="TSTypeAnnotation"&&h.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return ke==="objectType"&&Te.type==="TSIndexedAccessType"||ke==="elementType"&&Te.type==="TSArrayType";case"TypeofTypeAnnotation":return ke==="objectType"&&(Te.type==="IndexedAccessType"||Te.type==="OptionalIndexedAccessType")||ke==="elementType"&&Te.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return Te.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return Te.type==="ArrayTypeAnnotation"||Te.type==="NullableTypeAnnotation"||Te.type==="IntersectionTypeAnnotation"||Te.type==="UnionTypeAnnotation"||ke==="objectType"&&(Te.type==="IndexedAccessType"||Te.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return Te.type==="ArrayTypeAnnotation"||ke==="objectType"&&(Te.type==="IndexedAccessType"||Te.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{if(h.match(void 0,(ot,it)=>it==="typeAnnotation"&&ot.type==="TypeAnnotation",(ot,it)=>it==="returnType"&&ot.type==="ArrowFunctionExpression")||h.match(void 0,(ot,it)=>it==="typeAnnotation"&&ot.type==="TypePredicate",(ot,it)=>it==="typeAnnotation"&&ot.type==="TypeAnnotation",(ot,it)=>it==="returnType"&&ot.type==="ArrowFunctionExpression"))return!0;let Re=Te.type==="NullableTypeAnnotation"?h.grandparent:Te;return Re.type==="UnionTypeAnnotation"||Re.type==="IntersectionTypeAnnotation"||Re.type==="ArrayTypeAnnotation"||ke==="objectType"&&(Re.type==="IndexedAccessType"||Re.type==="OptionalIndexedAccessType")||ke==="checkType"&&Te.type==="ConditionalTypeAnnotation"||ke==="extendsType"&&Te.type==="ConditionalTypeAnnotation"&&fe.returnType.type==="InferTypeAnnotation"&&fe.returnType.typeParameter.bound||Re.type==="NullableTypeAnnotation"||Te.type==="FunctionTypeParam"&&Te.name===null&&ui(fe).some(ot=>{var it;return((it=ot.typeAnnotation)==null?void 0:it.type)==="NullableTypeAnnotation"})}case"ConditionalTypeAnnotation":if(ke==="extendsType"&&Te.type==="ConditionalTypeAnnotation"&&fe.type==="ConditionalTypeAnnotation"||ke==="checkType"&&Te.type==="ConditionalTypeAnnotation")return!0;case"OptionalIndexedAccessType":return ke==="objectType"&&Te.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof fe.value=="string"&&Te.type==="ExpressionStatement"&&!Te.directive){let Re=h.grandparent;return Re.type==="Program"||Re.type==="BlockStatement"}return ke==="object"&&Te.type==="MemberExpression"&&typeof fe.value=="number";case"AssignmentExpression":{let Re=h.grandparent;return ke==="body"&&Te.type==="ArrowFunctionExpression"?!0:ke==="key"&&(Te.type==="ClassProperty"||Te.type==="PropertyDefinition")&&Te.computed||(ke==="init"||ke==="update")&&Te.type==="ForStatement"?!1:Te.type==="ExpressionStatement"?fe.left.type==="ObjectPattern":!(ke==="key"&&Te.type==="TSPropertySignature"||Te.type==="AssignmentExpression"||Te.type==="SequenceExpression"&&Re.type==="ForStatement"&&(Re.init===Te||Re.update===Te)||ke==="value"&&Te.type==="Property"&&Re.type==="ObjectPattern"&&Re.properties.includes(Te)||Te.type==="NGChainedExpression")}case"ConditionalExpression":switch(Te.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return ke==="callee";case"ConditionalExpression":return v.experimentalTernaries?!1:ke==="test";case"MemberExpression":case"OptionalMemberExpression":return ke==="object";default:return!1}case"FunctionExpression":switch(Te.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return ke==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(Te.type){case"BinaryExpression":return Te.operator!=="|>"||((ce=fe.extra)==null?void 0:ce.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return ke==="callee";case"MemberExpression":case"OptionalMemberExpression":return ke==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return ke==="test";default:return!1}case"ClassExpression":switch(Te.type){case"NewExpression":return ke==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(tg(h))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(ke==="callee"&&(Te.type==="BindExpression"||Te.type==="NewExpression")){let Re=fe;for(;Re;)switch(Re.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":Re=Re.object;break;case"TaggedTemplateExpression":Re=Re.tag;break;case"TSNonNullExpression":Re=Re.expression;break;default:return!1}}return!1;case"BindExpression":return ke==="callee"&&(Te.type==="BindExpression"||Te.type==="NewExpression")||ke==="object"&&Pe(Te);case"NGPipeExpression":return!(Te.type==="NGRoot"||Te.type==="NGMicrosyntaxExpression"||Te.type==="ObjectProperty"&&!((Qe=fe.extra)!=null&&Qe.parenthesized)||mr(Te)||ke==="arguments"&&ye(Te)||ke==="right"&&Te.type==="NGPipeExpression"||ke==="property"&&Te.type==="MemberExpression"||Te.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return ke==="callee"||ke==="left"&&Te.type==="BinaryExpression"&&Te.operator==="<"||!mr(Te)&&Te.type!=="ArrowFunctionExpression"&&Te.type!=="AssignmentExpression"&&Te.type!=="AssignmentPattern"&&Te.type!=="BinaryExpression"&&Te.type!=="NewExpression"&&Te.type!=="ConditionalExpression"&&Te.type!=="ExpressionStatement"&&Te.type!=="JsExpressionRoot"&&Te.type!=="JSXAttribute"&&Te.type!=="JSXElement"&&Te.type!=="JSXExpressionContainer"&&Te.type!=="JSXFragment"&&Te.type!=="LogicalExpression"&&!ye(Te)&&!es(Te)&&Te.type!=="ReturnStatement"&&Te.type!=="ThrowStatement"&&Te.type!=="TypeCastExpression"&&Te.type!=="VariableDeclarator"&&Te.type!=="YieldExpression";case"TSInstantiationExpression":return ke==="object"&&Pe(Te)}return!1}var Rd=dt(["BlockStatement","BreakStatement","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function Yh(h){let v=0,{node:S}=h;for(;S;){let M=h.getParentNode(v++);if((M==null?void 0:M.type)==="ForStatement"&&M.init===S)return!0;S=M}return!1}function ZA(h){return ps(h,v=>v.type==="ObjectTypeAnnotation"&&ps(v,S=>S.type==="FunctionTypeAnnotation"))}function $A(h){return Jr(h)}function $l(h){let{parent:v,key:S}=h;switch(v.type){case"NGPipeExpression":if(S==="arguments"&&h.isLast)return h.callParent($l);break;case"ObjectProperty":if(S==="value")return h.callParent(()=>h.key==="properties"&&h.isLast);break;case"BinaryExpression":case"LogicalExpression":if(S==="right")return h.callParent($l);break;case"ConditionalExpression":if(S==="alternate")return h.callParent($l);break;case"UnaryExpression":if(v.prefix)return h.callParent($l);break}return!1}function eg(h,v){let{node:S,parent:M}=h;return S.type==="FunctionExpression"||S.type==="ClassExpression"?M.type==="ExportDefaultDeclaration"||!yc(h,v):!Fs(S)||M.type!=="ExportDefaultDeclaration"&&yc(h,v)?!1:h.call(()=>eg(h,v),...ds(S))}function tg(h){let{node:v,parent:S,grandparent:M,key:R}=h;return!!((v.type==="OptionalMemberExpression"||v.type==="OptionalCallExpression")&&(R==="object"&&S.type==="MemberExpression"||R==="callee"&&(S.type==="CallExpression"||S.type==="NewExpression")||S.type==="TSNonNullExpression"&&M.type==="MemberExpression"&&M.object===S)||h.match(()=>v.type==="CallExpression"||v.type==="MemberExpression",(O,J)=>J==="expression"&&O.type==="ChainExpression")&&(h.match(void 0,void 0,(O,J)=>J==="callee"&&(O.type==="CallExpression"&&!O.optional||O.type==="NewExpression")||J==="object"&&O.type==="MemberExpression"&&!O.optional)||h.match(void 0,void 0,(O,J)=>J==="expression"&&O.type==="TSNonNullExpression",(O,J)=>J==="object"&&O.type==="MemberExpression"))||h.match(()=>v.type==="CallExpression"||v.type==="MemberExpression",(O,J)=>J==="expression"&&O.type==="TSNonNullExpression",(O,J)=>J==="expression"&&O.type==="ChainExpression",(O,J)=>J==="object"&&O.type==="MemberExpression"))}var eu=yc;function Ld(h,v){let S=v-1;S=oe(h,S,{backwards:!0}),S=ze(h,S,{backwards:!0}),S=oe(h,S,{backwards:!0});let M=ze(h,S,{backwards:!0});return S!==M}var ng=Ld,ti=()=>!0;function Un(h,v){let S=h.node;return S.printed=!0,v.printer.printComment(h,v)}function hi(h,v){var S;let M=h.node,R=[Un(h,v)],{printer:O,originalText:J,locStart:ce,locEnd:Qe}=v;if((S=O.isBlockComment)!=null&&S.call(O,M)){let ke=je(J,Qe(M))?je(J,ce(M),{backwards:!0})?xt:$t:" ";R.push(ke)}else R.push(xt);let fe=ze(J,oe(J,Qe(M)));return fe!==!1&&je(J,fe)&&R.push(xt),R}function pi(h,v,S){var M;let R=h.node,O=Un(h,v),{printer:J,originalText:ce,locStart:Qe}=v,fe=(M=J.isBlockComment)==null?void 0:M.call(J,R);if(S!=null&&S.hasLineSuffix&&!(S!=null&&S.isBlock)||je(ce,Qe(R),{backwards:!0})){let ke=ng(ce,Qe(R));return{doc:is([xt,ke?xt:"",O]),isBlock:fe,hasLineSuffix:!0}}return!fe||S!=null&&S.hasLineSuffix?{doc:[is([" ",O]),Ui],isBlock:fe,hasLineSuffix:!0}:{doc:[" ",O],isBlock:fe,hasLineSuffix:!1}}function Yn(h,v,S={}){let{node:M}=h;if(!W(M==null?void 0:M.comments))return"";let{indent:R=!1,marker:O,filter:J=ti}=S,ce=[];if(h.each(({node:fe})=>{fe.leading||fe.trailing||fe.marker!==O||!J(fe)||ce.push(Un(h,v))},"comments"),ce.length===0)return"";let Qe=Fn(xt,ce);return R?Et([xt,Qe]):Qe}function Us(h,v){let S=h.node;if(!S)return{};let M=v[Symbol.for("printedComments")];if((S.comments||[]).filter(ce=>!M.has(ce)).length===0)return{leading:"",trailing:""};let R=[],O=[],J;return h.each(()=>{let ce=h.node;if(M!=null&&M.has(ce))return;let{leading:Qe,trailing:fe}=ce;Qe?R.push(hi(h,v)):fe&&(J=pi(h,v,J),O.push(J.doc))},"comments"),{leading:R,trailing:O}}function os(h,v,S){let{leading:M,trailing:R}=Us(h,S);return!M&&!R?v:wr(v,O=>[M,O,R])}var Ci=class extends Error{constructor(v,S,M="type"){super(`Unexpected ${S} node ${M}: ${JSON.stringify(v[M])}.`);Ke(this,"name","UnexpectedNodeError");this.node=v}},fa=Ci;function Ec(h){if(typeof h!="string")throw new TypeError("Expected a string");return h.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Gs,rg=class{constructor(h){x(this,Gs,void 0),D(this,Gs,new Set(h))}getLeadingWhitespaceCount(h){let v=C(this,Gs),S=0;for(let M=0;M=0&&v.has(h.charAt(M));M--)S++;return S}getLeadingWhitespace(h){let v=this.getLeadingWhitespaceCount(h);return h.slice(0,v)}getTrailingWhitespace(h){let v=this.getTrailingWhitespaceCount(h);return h.slice(h.length-v)}hasLeadingWhitespace(h){return C(this,Gs).has(h.charAt(0))}hasTrailingWhitespace(h){return C(this,Gs).has(U(!1,h,-1))}trimStart(h){let v=this.getLeadingWhitespaceCount(h);return h.slice(v)}trimEnd(h){let v=this.getTrailingWhitespaceCount(h);return h.slice(0,h.length-v)}trim(h){return this.trimEnd(this.trimStart(h))}split(h,v=!1){let S=`[${Ec([...C(this,Gs)].join(""))}]+`,M=new RegExp(v?`(${S})`:S);return h.split(M)}hasWhitespaceCharacter(h){let v=C(this,Gs);return Array.prototype.some.call(h,S=>v.has(S))}hasNonWhitespaceCharacter(h){let v=C(this,Gs);return Array.prototype.some.call(h,S=>!v.has(S))}isWhitespaceOnly(h){let v=C(this,Gs);return Array.prototype.every.call(h,S=>v.has(S))}};Gs=new WeakMap;var Xh=rg,Gi=new Xh(` \r `),qh=h=>h===""||h===$t||h===xt||h===Ct;function ig(h,v,S){var M,R,O;let{node:J}=h;if(J.type==="JSXElement"&&Y0(J))return[S("openingElement"),S("closingElement")];let ce=J.type==="JSXElement"?S("openingElement"):S("openingFragment"),Qe=J.type==="JSXElement"?S("closingElement"):S("closingFragment");if(J.children.length===1&&J.children[0].type==="JSXExpressionContainer"&&(J.children[0].expression.type==="TemplateLiteral"||J.children[0].expression.type==="TaggedTemplateExpression"))return[ce,...h.map(S,"children"),Qe];J.children=J.children.map(wt=>og(wt)?{type:"JSXText",value:" ",raw:" "}:wt);let fe=J.children.some(At),ke=J.children.filter(wt=>wt.type==="JSXExpressionContainer").length>1,Te=J.type==="JSXElement"&&J.openingElement.attributes.length>1,Re=_i(ce)||fe||Te||ke,ot=h.parent.rootMarker==="mdx",it=v.singleQuote?"{' '}":'{" "}',rn=ot?" ":_n([it,Ct]," "),Dt=((R=(M=J.openingElement)==null?void 0:M.name)==null?void 0:R.name)==="fbt",vt=Cc(h,v,S,rn,Dt),gn=J.children.some(wt=>tu(wt));for(let wt=vt.length-2;wt>=0;wt--){let hr=vt[wt]===""&&vt[wt+1]==="",zs=vt[wt]===xt&&vt[wt+1]===""&&vt[wt+2]===xt,Ar=(vt[wt]===Ct||vt[wt]===xt)&&vt[wt+1]===""&&vt[wt+2]===rn,Is=vt[wt]===rn&&vt[wt+1]===""&&(vt[wt+2]===Ct||vt[wt+2]===xt),Fi=vt[wt]===rn&&vt[wt+1]===""&&vt[wt+2]===rn,Xd=vt[wt]===Ct&&vt[wt+1]===""&&vt[wt+2]===xt||vt[wt]===xt&&vt[wt+1]===""&&vt[wt+2]===Ct;zs&&gn||hr||Ar||Fi||Xd?vt.splice(wt,2):Is&&vt.splice(wt+1,2)}for(;vt.length>0&&qh(U(!1,vt,-1));)vt.pop();for(;vt.length>1&&qh(vt[0])&&qh(vt[1]);)vt.shift(),vt.shift();let dn=[];for(let[wt,hr]of vt.entries()){if(hr===rn){if(wt===1&&vt[wt-1]===""){if(vt.length===2){dn.push(it);continue}dn.push([it,xt]);continue}else if(wt===vt.length-1){dn.push(it);continue}else if(vt[wt-1]===""&&vt[wt-2]===xt){dn.push(it);continue}}dn.push(hr),_i(hr)&&(Re=!0)}let Xn=gn?pa(dn):nt(dn,{shouldBreak:!0});if(((O=v.cursorNode)==null?void 0:O.type)==="JSXText"&&J.children.includes(v.cursorNode)&&(Xn=[fl,Xn,fl]),ot)return Xn;let Dn=nt([ce,Et([xt,Xn]),xt,Qe]);return Re?Dn:zo([nt([ce,...vt,Qe]),Dn])}function Cc(h,v,S,M,R){let O=[];return h.each(({node:J,next:ce})=>{if(J.type==="JSXText"){let Qe=bi(J);if(tu(J)){let fe=Gi.split(Qe,!0);fe[0]===""&&(O.push(""),fe.shift(),/\n/.test(fe[0])?O.push(Nd(R,fe[1],J,ce)):O.push(M),fe.shift());let ke;if(U(!1,fe,-1)===""&&(fe.pop(),ke=fe.pop()),fe.length===0)return;for(let[Te,Re]of fe.entries())Te%2===1?O.push($t):O.push(Re);ke!==void 0?/\n/.test(ke)?O.push(Nd(R,U(!1,O,-1),J,ce)):O.push(M):O.push(Kh(R,U(!1,O,-1),J,ce))}else/\n/.test(Qe)?Qe.match(/\n/g).length>1&&O.push("",xt):O.push("",M)}else{let Qe=S();if(O.push(Qe),ce&&tu(ce)){let fe=Gi.trim(bi(ce)),[ke]=Gi.split(fe);O.push(Kh(R,ke,J,ce))}else O.push(xt)}},"children"),O}function Kh(h,v,S,M){return h?"":S.type==="JSXElement"&&!S.closingElement||(M==null?void 0:M.type)==="JSXElement"&&!M.closingElement?v.length===1?Ct:xt:Ct}function Nd(h,v,S,M){return h?xt:v.length===1?S.type==="JSXElement"&&!S.closingElement||(M==null?void 0:M.type)==="JSXElement"&&!M.closingElement?xt:Ct:xt}var gl=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function Od(h,v,S){let{parent:M}=h;if(gl.has(M.type))return v;let R=h.match(void 0,J=>J.type==="ArrowFunctionExpression",ye,J=>J.type==="JSXExpressionContainer"),O=eu(h,S);return nt([O?"":_n("("),Et([Ct,v]),Ct,O?"":_n(")")],{shouldBreak:R})}function ml(h,v,S){let{node:M}=h,R=[];if(R.push(S("name")),M.value){let O;if(pe(M.value)){let J=bi(M.value),ce=P(!1,P(!1,J.slice(1,-1),"'","'"),""",'"'),Qe=pt(ce,v.jsxSingleQuote);ce=Qe==='"'?P(!1,ce,'"',"""):P(!1,ce,"'","'"),O=h.call(()=>os(h,qr(Qe+ce+Qe),v),"value")}else O=S("value");R.push("=",O)}return R}function Ud(h,v,S){let{node:M}=h,R=(O,J)=>O.type==="JSXEmptyExpression"||!Rt(O)&&(mr(O)||Jr(O)||O.type==="ArrowFunctionExpression"||O.type==="AwaitExpression"&&(R(O.argument,O)||O.argument.type==="JSXElement")||ye(O)||O.type==="ChainExpression"&&ye(O.expression)||O.type==="FunctionExpression"||O.type==="TemplateLiteral"||O.type==="TaggedTemplateExpression"||O.type==="DoExpression"||At(J)&&(O.type==="ConditionalExpression"||Zn(O)));return R(M.expression,h.parent)?nt(["{",S("expression"),tr,"}"]):nt(["{",Et([Ct,S("expression")]),Ct,tr,"}"])}function Zh(h,v,S){var M,R;let{node:O}=h,J=Rt(O.name)||Rt(O.typeParameters)||Rt(O.typeArguments);if(O.selfClosing&&O.attributes.length===0&&!J)return["<",S("name"),O.typeArguments?S("typeArguments"):S("typeParameters")," />"];if(((M=O.attributes)==null?void 0:M.length)===1&&O.attributes[0].value&&pe(O.attributes[0].value)&&!O.attributes[0].value.value.includes(` `)&&!J&&!Rt(O.attributes[0]))return nt(["<",S("name"),O.typeArguments?S("typeArguments"):S("typeParameters")," ",...h.map(S,"attributes"),O.selfClosing?" />":">"]);let ce=(R=O.attributes)==null?void 0:R.some(fe=>fe.value&&pe(fe.value)&&fe.value.value.includes(` -`)),Qe=v.singleAttributePerLine&&O.attributes.length>1?xt:$t;return nt(["<",S("name"),O.typeArguments?S("typeArguments"):S("typeParameters"),Et(h.map(()=>[Qe,S()],"attributes")),...sg(O,v,J)],{shouldBreak:ce})}function sg(h,v,S){return h.selfClosing?[$t,"/>"]:Gd(h,v,S)?[">"]:[Ct,">"]}function Gd(h,v,S){let M=h.attributes.length>0&&Rt(U(!1,h.attributes,-1),Zt.Trailing);return h.attributes.length===0&&!S||(v.bracketSameLine||v.jsxBracketSameLine)&&(!S||h.attributes.length>0)&&!M}function Hd(h,v,S){let{node:M}=h,R=[];R.push(""),R}function Cs(h,v){let{node:S}=h,M=Rt(S),R=Rt(S,Zt.Line),O=S.type==="JSXOpeningFragment";return[O?"<":""]}function yl(h,v,S){let M=os(h,ig(h,v,S),v);return Od(h,M,v)}function bo(h,v){let{node:S}=h,M=Rt(S,Zt.Line);return[Yn(h,v,{indent:M}),M?xt:""]}function zd(h,v,S){let{node:M}=h;return["{",h.call(({node:R})=>{let O=["...",S()];return!Rt(R)||!k(h)?O:[Et([Ct,os(h,O,v)]),Ct]},M.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Hs(h,v,S){let{node:M}=h;if(M.type.startsWith("JSX"))switch(M.type){case"JSXAttribute":return ml(h,v,S);case"JSXIdentifier":return M.name;case"JSXNamespacedName":return Fn(":",[S("namespace"),S("name")]);case"JSXMemberExpression":return Fn(".",[S("object"),S("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return zd(h,v,S);case"JSXExpressionContainer":return Ud(h,v,S);case"JSXFragment":case"JSXElement":return yl(h,v,S);case"JSXOpeningElement":return Zh(h,v,S);case"JSXClosingElement":return Hd(h,v,S);case"JSXOpeningFragment":case"JSXClosingFragment":return Cs(h,v);case"JSXEmptyExpression":return bo(h,v);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new fa(M,"JSX")}}function Y0(h){if(h.children.length===0)return!0;if(h.children.length>1)return!1;let v=h.children[0];return v.type==="JSXText"&&!tu(v)}function tu(h){return h.type==="JSXText"&&(Gi.hasNonWhitespaceCharacter(bi(h))||!/\n/.test(bi(h)))}function og(h){return h.type==="JSXExpressionContainer"&&pe(h.expression)&&h.expression.value===" "&&!Rt(h.expression)}function Bv(h){let{node:v,parent:S}=h;if(!At(v)||!At(S))return!1;let{index:M,siblings:R}=h,O;for(let J=M;J>0;J--){let ce=R[J-1];if(!(ce.type==="JSXText"&&!tu(ce))){O=ce;break}}return(O==null?void 0:O.type)==="JSXExpressionContainer"&&O.expression.type==="JSXEmptyExpression"&&Qs(O.expression)}function El(h){return Qs(h.node)||Bv(h)}var ag=El,X0=0;function Wd(h,v,S){var M;let{node:R,parent:O,grandparent:J,key:ce}=h,Qe=ce!=="body"&&(O.type==="IfStatement"||O.type==="WhileStatement"||O.type==="SwitchStatement"||O.type==="DoWhileStatement"),fe=R.operator==="|>"&&((M=h.root.extra)==null?void 0:M.__isUsingHackPipeline),ke=Ua(h,S,v,!1,Qe);if(Qe)return ke;if(fe)return nt(ke);if(ye(O)&&O.callee===R||O.type==="UnaryExpression"||Pe(O)&&!O.computed)return nt([Et([Ct,...ke]),Ct]);let Te=O.type==="ReturnStatement"||O.type==="ThrowStatement"||O.type==="JSXExpressionContainer"&&J.type==="JSXAttribute"||R.operator!=="|"&&O.type==="JsExpressionRoot"||R.type!=="NGPipeExpression"&&(O.type==="NGRoot"&&v.parser==="__ng_binding"||O.type==="NGMicrosyntaxExpression"&&J.type==="NGMicrosyntax"&&J.body.length===1)||R===O.body&&O.type==="ArrowFunctionExpression"||R!==O.body&&O.type==="ForStatement"||O.type==="ConditionalExpression"&&J.type!=="ReturnStatement"&&J.type!=="ThrowStatement"&&!ye(J)||O.type==="TemplateLiteral",Re=O.type==="AssignmentExpression"||O.type==="VariableDeclarator"||O.type==="ClassProperty"||O.type==="PropertyDefinition"||O.type==="TSAbstractPropertyDefinition"||O.type==="ClassPrivateProperty"||es(O),ot=Zn(R.left)&&$n(R.operator,R.left.operator);if(Te||vc(R)&&!ot||!vc(R)&&Re)return nt(ke);if(ke.length===0)return"";let it=At(R.right),rn=ke.findIndex(Dn=>typeof Dn!="string"&&!Array.isArray(Dn)&&Dn.type===Xr),Dt=ke.slice(0,rn===-1?1:rn+1),vt=ke.slice(Dt.length,it?-1:void 0),gn=Symbol("logicalChain-"+ ++X0),dn=nt([...Dt,Et(vt)],{id:gn});if(!it)return dn;let Xn=U(!1,ke,-1);return nt([dn,Mi(Xn,{groupId:gn})])}function Ua(h,v,S,M,R){var O;let{node:J}=h;if(!Zn(J))return[nt(v())];let ce=[];$n(J.operator,J.left.operator)?ce=h.call(Dt=>Ua(Dt,v,S,!0,R),"left"):ce.push(nt(v("left")));let Qe=vc(J),fe=(J.operator==="|>"||J.type==="NGPipeExpression"||ug(h,S))&&!an(S.originalText,J.right),ke=J.type==="NGPipeExpression"?"|":J.operator,Te=J.type==="NGPipeExpression"&&J.arguments.length>0?nt(Et([Ct,": ",Fn([$t,": "],h.map(()=>yi(2,nt(v())),"arguments"))])):"",Re;if(Qe)Re=[ke," ",v("right"),Te];else{let Dt=ke==="|>"&&((O=h.root.extra)!=null&&O.__isUsingHackPipeline)?h.call(vt=>Ua(vt,v,S,!0,R),"right"):v("right");Re=[fe?$t:"",ke,fe?" ":$t,Dt,Te]}let{parent:ot}=h,it=Rt(J.left,Zt.Trailing|Zt.Line),rn=it||!(R&&J.type==="LogicalExpression")&&ot.type!==J.type&&J.left.type!==J.type&&J.right.type!==J.type;if(ce.push(fe?"":" ",rn?nt(Re,{shouldBreak:it}):Re),M&&Rt(J)){let Dt=Jl(os(h,ce,S));return Array.isArray(Dt)||Dt.type===gs?Vl(Dt):[Dt]}return ce}function vc(h){return h.type!=="LogicalExpression"?!1:!!(Jr(h.right)&&h.right.properties.length>0||mr(h.right)&&h.right.elements.length>0||At(h.right))}var lg=h=>h.type==="BinaryExpression"&&h.operator==="|";function ug(h,v){return(v.parser==="__vue_expression"||v.parser==="__vue_ts_expression")&&lg(h.node)&&!h.hasAncestor(S=>!lg(S)&&S.type!=="JsExpressionRoot")}function jd(h,v,S){let{node:M}=h;if(M.type.startsWith("NG"))switch(M.type){case"NGRoot":return[S("node"),Rt(M.node)?" //"+cl(M.node)[0].value.trimEnd():""];case"NGPipeExpression":return Wd(h,v,S);case"NGChainedExpression":return nt(Fn([";",$t],h.map(()=>K0(h)?S():["(",S(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return h.map(()=>[h.isFirst?"":q0(h)?" ":[";",$t],S()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(M.name)?M.name:JSON.stringify(M.name);case"NGMicrosyntaxExpression":return[S("expression"),M.alias===null?"":[" as ",S("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:R,parent:O}=h,J=q0(h)||(R===1&&(M.key.name==="then"||M.key.name==="else"||M.key.name==="as")||(R===2||R===3)&&(M.key.name==="else"&&O.body[R-1].type==="NGMicrosyntaxKeyedExpression"&&O.body[R-1].key.name==="then"||M.key.name==="track"))&&O.body[0].type==="NGMicrosyntaxExpression";return[S("key"),J?" ":": ",S("expression")]}case"NGMicrosyntaxLet":return["let ",S("key"),M.value===null?"":[" = ",S("value")]];case"NGMicrosyntaxAs":return[S("key")," as ",S("alias")];default:throw new fa(M,"Angular")}}function q0({node:h,index:v}){return h.type==="NGMicrosyntaxKeyedExpression"&&h.key.name==="of"&&v===1}var bv=dt(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function K0({node:h}){return ps(h,bv)}function cg(h,v,S){let{node:M}=h;return nt([Fn($t,h.map(S,"decorators")),Cl(M,v)?xt:$t])}function nu(h,v,S){return hg(h.node)?[Fn(xt,h.map(S,"declaration","decorators")),xt]:""}function Tv(h,v,S){let{node:M,parent:R}=h,{decorators:O}=M;if(!W(O)||hg(R)||ag(h))return"";let J=M.type==="ClassExpression"||M.type==="ClassDeclaration"||Cl(M,v);return[h.key==="declaration"&&Ma(R)?xt:J?Ui:"",Fn($t,h.map(S,"decorators")),$t]}function Cl(h,v){return h.decorators.some(S=>je(v.originalText,Pt(S)))}function hg(h){var v;if(h.type!=="ExportDefaultDeclaration"&&h.type!=="ExportNamedDeclaration"&&h.type!=="DeclareExportDeclaration")return!1;let S=(v=h.declaration)==null?void 0:v.decorators;return W(S)&&mt(h,S[0])}var Hi=class extends Error{constructor(){super(...arguments);Ke(this,"name","ArgExpansionBailout")}};function Mv(h,v,S){let{node:M}=h,R=Rr(M);if(R.length===0)return["(",Yn(h,v),")"];if(Z0(R))return["(",S(["arguments",0]),", ",S(["arguments",1]),")"];let O=!1,J=R.length-1,ce=[];Th(h,({node:Te},Re)=>{let ot=S();Re===J||(Yr(Te,v)?(O=!0,ot=[ot,",",xt,xt]):ot=[ot,",",$t]),ce.push(ot)});let Qe=!(M.type==="ImportExpression"||M.callee.type==="Import")&&Do(v,"all")?",":"";function fe(){return nt(["(",Et([$t,...ce]),Qe,$t,")"],{shouldBreak:!0})}if(O||h.parent.type!=="Decorator"&&_r(R))return fe();if(Fv(R)){let Te=ce.slice(1);if(Te.some(_i))return fe();let Re;try{Re=S(fd(M,0),{expandFirstArg:!0})}catch(ot){if(ot instanceof Hi)return fe();throw ot}return _i(Re)?[Ui,zo([["(",nt(Re,{shouldBreak:!0}),", ",...Te,")"],fe()])]:zo([["(",Re,", ",...Te,")"],["(",nt(Re,{shouldBreak:!0}),", ",...Te,")"],fe()])}if(_v(R,ce,v)){let Te=ce.slice(0,-1);if(Te.some(_i))return fe();let Re;try{Re=S(fd(M,-1),{expandLastArg:!0})}catch(ot){if(ot instanceof Hi)return fe();throw ot}return _i(Re)?[Ui,zo([["(",...Te,nt(Re,{shouldBreak:!0}),")"],fe()])]:zo([["(",...Te,Re,")"],["(",...Te,nt(Re,{shouldBreak:!0}),")"],fe()])}let ke=["(",Et([Ct,...ce]),_n(Qe),Ct,")"];return Bi(h)?ke:nt(ke,{shouldBreak:ce.some(_i)||O})}function xc(h,v=!1){return Jr(h)&&(h.properties.length>0||Rt(h))||mr(h)&&(h.elements.length>0||Rt(h))||h.type==="TSTypeAssertion"&&xc(h.expression)||to(h)&&xc(h.expression)||h.type==="FunctionExpression"||h.type==="ArrowFunctionExpression"&&(!h.returnType||!h.returnType.typeAnnotation||h.returnType.typeAnnotation.type!=="TSTypeReference"||Pv(h.body))&&(h.body.type==="BlockStatement"||h.body.type==="ArrowFunctionExpression"&&xc(h.body,!0)||Jr(h.body)||mr(h.body)||!v&&(ye(h.body)||h.body.type==="ConditionalExpression")||At(h.body))||h.type==="DoExpression"||h.type==="ModuleExpression"}function _v(h,v,S){var M,R;let O=U(!1,h,-1);if(h.length===1){let ce=U(!1,v,-1);if((M=ce.label)!=null&&M.embed&&((R=ce.label)==null?void 0:R.hug)!==!1)return!0}let J=U(!1,h,-2);return!Rt(O,Zt.Leading)&&!Rt(O,Zt.Trailing)&&xc(O)&&(!J||J.type!==O.type)&&(h.length!==2||J.type!=="ArrowFunctionExpression"||!mr(O))&&!(h.length>1&&ob(O,S))}function Fv(h){if(h.length!==2)return!1;let[v,S]=h;return v.type==="ModuleExpression"&&To(S)?!0:!Rt(v)&&(v.type==="FunctionExpression"||v.type==="ArrowFunctionExpression"&&v.body.type==="BlockStatement")&&S.type!=="FunctionExpression"&&S.type!=="ArrowFunctionExpression"&&S.type!=="ConditionalExpression"&&pg(S)&&!xc(S)}function pg(h){var v;if(h.type==="ParenthesizedExpression")return pg(h.expression);if(to(h)||h.type==="TypeCastExpression"){let{typeAnnotation:S}=h;return S.type==="TypeAnnotation"&&(S=S.typeAnnotation),S.type==="TSArrayType"&&(S=S.elementType,S.type==="TSArrayType"&&(S=S.elementType)),(S.type==="GenericTypeAnnotation"||S.type==="TSTypeReference")&&((v=S.typeParameters)==null?void 0:v.params.length)===1&&(S=S.typeParameters.params[0]),xr(S)&&li(h.expression,1)}return $i(h)&&Rr(h).length>1?!1:Zn(h)?li(h.left,1)&&li(h.right,1):qe(h)||li(h)}function Z0(h){return h.length===2&&h[0].type==="ArrowFunctionExpression"&&ui(h[0]).length===0&&h[0].body.type==="BlockStatement"&&h[1].type==="ArrayExpression"&&!h.some(v=>Rt(v))}function Pv(h){return h.type==="BlockStatement"&&(h.body.some(v=>v.type!=="EmptyStatement")||Rt(h,Zt.Dangling))}function To(h){return h.type==="ObjectExpression"&&h.properties.length===1&&es(h.properties[0])&&h.properties[0].key.type==="Identifier"&&h.properties[0].key.name==="type"&&pe(h.properties[0].value)&&h.properties[0].value.value==="module"}var $h=Mv,Qv=h=>((h.type==="ChainExpression"||h.type==="TSNonNullExpression")&&(h=h.expression),ye(h)&&Rr(h).length>0);function vl(h,v,S){var M;let R=S("object"),O=ep(h,v,S),{node:J}=h,ce=h.findAncestor(ke=>!(Pe(ke)||ke.type==="TSNonNullExpression")),Qe=h.findAncestor(ke=>!(ke.type==="ChainExpression"||ke.type==="TSNonNullExpression")),fe=ce&&(ce.type==="NewExpression"||ce.type==="BindExpression"||ce.type==="AssignmentExpression"&&ce.left.type!=="Identifier")||J.computed||J.object.type==="Identifier"&&J.property.type==="Identifier"&&!Pe(Qe)||(Qe.type==="AssignmentExpression"||Qe.type==="VariableDeclarator")&&(Qv(J.object)||((M=R.label)==null?void 0:M.memberChain));return Wo(R.label,[R,fe?O:nt(Et([Ct,O]))])}function ep(h,v,S){let M=S("property"),{node:R}=h,O=co(h);return R.computed?!R.property||Ki(R.property)?[O,"[",M,"]"]:nt([O,"[",Et([Ct,M]),Ct,"]"]):[O,".",M]}function xl(h,v,S){if(h.node.type==="ChainExpression")return h.call(()=>xl(h,v,S),"expression");let{parent:M}=h,R=!M||M.type==="ExpressionStatement",O=[];function J(wn){let{originalText:Dr}=v,Pi=Vo(Dr,Pt(wn));return Dr.charAt(Pi)===")"?Pi!==!1&<(Dr,Pi+1):Yr(wn,v)}function ce(wn){let{node:Dr}=wn;if(Dr.type==="ChainExpression")return wn.call(()=>ce(wn),"expression");if(ye(Dr)&&(Ir(Dr.callee)||ye(Dr.callee))){let Pi=J(Dr);O.unshift({node:Dr,hasTrailingEmptyLine:Pi,printed:[os(wn,[co(wn),tp(wn,v,S),$h(wn,v,S)],v),Pi?xt:""]}),wn.call(Ga=>ce(Ga),"callee")}else Ir(Dr)?(O.unshift({node:Dr,needsParens:eu(wn,v),printed:os(wn,Pe(Dr)?ep(wn,v,S):ib(wn,v,S),v)}),wn.call(Pi=>ce(Pi),"object")):Dr.type==="TSNonNullExpression"?(O.unshift({node:Dr,printed:os(wn,"!",v)}),wn.call(Pi=>ce(Pi),"expression")):O.unshift({node:Dr,printed:S()})}let{node:Qe}=h;O.unshift({node:Qe,printed:[co(h),tp(h,v,S),$h(h,v,S)]}),Qe.callee&&h.call(wn=>ce(wn),"callee");let fe=[],ke=[O[0]],Te=1;for(;Te0&&fe.push(ke);function ot(wn){return/^[A-Z]|^[$_]+$/.test(wn)}function it(wn){return wn.length<=v.tabWidth}function rn(wn){var Dr;let Pi=(Dr=wn[1][0])==null?void 0:Dr.node.computed;if(wn[0].length===1){let rp=wn[0][0].node;return rp.type==="ThisExpression"||rp.type==="Identifier"&&(ot(rp.name)||R&&it(rp.name)||Pi)}let Ga=U(!1,wn[0],-1).node;return Pe(Ga)&&Ga.property.type==="Identifier"&&(ot(Ga.property.name)||Pi)}let Dt=fe.length>=2&&!Rt(fe[1][0].node)&&rn(fe);function vt(wn){let Dr=wn.map(Pi=>Pi.printed);return wn.length>0&&U(!1,wn,-1).needsParens?["(",...Dr,")"]:Dr}function gn(wn){return wn.length===0?"":Et([xt,Fn(xt,wn.map(vt))])}let dn=fe.map(vt),Xn=dn,Dn=Dt?3:2,wt=fe.flat(),hr=wt.slice(1,-1).some(wn=>Rt(wn.node,Zt.Leading))||wt.slice(0,-1).some(wn=>Rt(wn.node,Zt.Trailing))||fe[Dn]&&Rt(fe[Dn][0].node,Zt.Leading);if(fe.length<=Dn&&!hr&&!fe.some(wn=>U(!1,wn,-1).hasTrailingEmptyLine))return Bi(h)?Xn:nt(Xn);let zs=U(!1,fe[Dt?1:0],-1).node,Ar=!ye(zs)&&J(zs),Is=[vt(fe[0]),Dt?fe.slice(1,2).map(vt):"",Ar?xt:"",gn(fe.slice(Dt?2:1))],Fi=O.map(({node:wn})=>wn).filter(ye);function Xd(){let wn=U(!1,U(!1,fe,-1),-1).node,Dr=U(!1,dn,-1);return ye(wn)&&_i(Dr)&&Fi.slice(0,-1).some(Pi=>Pi.arguments.some($e))}let mg;return hr||Fi.length>2&&Fi.some(wn=>!wn.arguments.every(Dr=>li(Dr)))||dn.slice(0,-1).some(_i)||Xd()?mg=nt(Is):mg=[_i(Xn)||Ar?Ui:"",zo([Xn,Is])],Wo({memberChain:!0},mg)}var Vd=xl;function Jd(h,v,S){var M;let{node:R,parent:O}=h,J=R.type==="NewExpression",ce=R.type==="ImportExpression",Qe=co(h),fe=Rr(R),ke=fe.length===1&&Ur(fe[0],v.originalText);if(ke||fe.length>0&&!J&&!ce&&(kv(R,O)||ee(R,O))){let Re=[];if(Th(h,()=>{Re.push(S())}),!(ke&&(M=Re[0].label)!=null&&M.embed))return[J?"new ":"",S("callee"),Qe,tp(h,v,S),"(",Fn(", ",Re),")"]}if(!ce&&!J&&Ir(R.callee)&&!h.call(Re=>eu(Re,v),"callee",...R.callee.type==="ChainExpression"?["expression"]:[]))return Vd(h,v,S);let Te=[J?"new ":"",ce?dg(R):S("callee"),Qe,tp(h,v,S),$h(h,v,S)];return ce||ye(R.callee)?nt(Te):Te}function dg(h){return h.phase?`import.${h.phase}`:"import"}function kv(h,v){if(h.callee.type!=="Identifier")return!1;if(h.callee.name==="require"){let S=Rr(h);return S.length===1&&pe(S[0])||S.length>1}if(h.callee.name==="define"){let S=Rr(h);return v.type==="ExpressionStatement"&&(S.length===1||S.length===2&&S[0].type==="ArrayExpression"||S.length===3&&pe(S[0])&&S[1].type==="ArrayExpression")}return!1}function Ic(h,v,S,M,R,O){let J=ty(h,v,S,M,O),ce=O?S(O,{assignmentLayout:J}):"";switch(J){case"break-after-operator":return nt([nt(M),R,nt(Et([$t,ce]))]);case"never-break-after-operator":return nt([nt(M),R," ",ce]);case"fluid":{let Qe=Symbol("assignment");return nt([nt(M),R,nt(Et($t),{id:Qe}),tr,Mi(ce,{groupId:Qe})])}case"break-lhs":return nt([M,R," ",nt(ce)]);case"chain":return[nt(M),R,$t,ce];case"chain-tail":return[nt(M),R,Et([$t,ce])];case"chain-tail-arrow-chain":return[nt(M),R,ce];case"only-left":return M}}function $0(h,v,S){let{node:M}=h;return Ic(h,v,S,S("left"),[" ",M.operator],"right")}function ey(h,v,S){return Ic(h,v,S,S("id")," =","init")}function ty(h,v,S,M,R){let{node:O}=h,J=O[R];if(!J)return"only-left";let ce=!Yd(J);if(h.match(Yd,g,ke=>!ce||ke.type!=="ExpressionStatement"&&ke.type!=="VariableDeclaration"))return ce?J.type==="ArrowFunctionExpression"&&J.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!ce&&Yd(J.right)||an(v.originalText,J))return"break-after-operator";if(J.type==="CallExpression"&&J.callee.name==="require"||v.parser==="json5"||v.parser==="jsonc"||v.parser==="json")return"never-break-after-operator";let Qe=kh(M);if(Rv(O)||G(O)||V(O)&&Qe)return"break-lhs";let fe=kt(O,M,v);return h.call(()=>fg(h,v,S,fe),R)?"break-after-operator":m(O)?"break-lhs":!Qe&&(fe||J.type==="TemplateLiteral"||J.type==="TaggedTemplateExpression"||J.type==="BooleanLiteral"||Ki(J)||J.type==="ClassExpression")?"never-break-after-operator":"fluid"}function fg(h,v,S,M){let R=h.node;if(Zn(R)&&!vc(R))return!0;switch(R.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!v.experimentalTernaries&&!In(R))break;return!0;case"ConditionalExpression":{if(!v.experimentalTernaries){let{test:fe}=R;return Zn(fe)&&!vc(fe)}let{consequent:ce,alternate:Qe}=R;return ce.type==="ConditionalExpression"||Qe.type==="ConditionalExpression"}case"ClassExpression":return W(R.decorators)}if(M)return!1;let O=R,J=[];for(;;)if(O.type==="UnaryExpression"||O.type==="AwaitExpression"||O.type==="YieldExpression"&&O.argument!==null)O=O.argument,J.push("argument");else if(O.type==="TSNonNullExpression")O=O.expression,J.push("expression");else break;return!!(pe(O)||h.call(()=>ht(h,v,S),...J))}function Rv(h){if(g(h)){let v=h.left||h.id;return v.type==="ObjectPattern"&&v.properties.length>2&&v.properties.some(S=>{var M;return es(S)&&(!S.shorthand||((M=S.value)==null?void 0:M.type)==="AssignmentPattern")})}return!1}function Yd(h){return h.type==="AssignmentExpression"}function g(h){return Yd(h)||h.type==="VariableDeclarator"}function m(h){let v=Q(h);if(W(v)){let S=h.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(v.length>1&&v.some(M=>M[S]||M.default))return!0}return!1}var T=dt(["TSTypeAliasDeclaration","TypeAlias"]);function Q(h){var v;if(T(h))return(v=h.typeParameters)==null?void 0:v.params}function G(h){if(h.type!=="VariableDeclarator")return!1;let{typeAnnotation:v}=h.id;if(!v||!v.typeAnnotation)return!1;let S=Je(v.typeAnnotation);return W(S)&&S.length>1&&S.some(M=>W(Je(M))||M.type==="TSConditionalType")}function V(h){var v;return h.type==="VariableDeclarator"&&((v=h.init)==null?void 0:v.type)==="ArrowFunctionExpression"}var Ce=dt(["TSTypeReference","GenericTypeAnnotation"]);function Je(h){var v;if(Ce(h))return(v=h.typeParameters)==null?void 0:v.params}function ht(h,v,S,M=!1){var R;let{node:O}=h,J=()=>ht(h,v,S,!0);if(O.type==="ChainExpression"||O.type==="TSNonNullExpression")return h.call(J,"expression");if(ye(O)){if((R=Jd(h,v,S).label)!=null&&R.memberChain)return!1;let ce=Rr(O);return!(ce.length===0||ce.length===1&&Qt(ce[0],v))||ln(O,S)?!1:h.call(J,"callee")}return Pe(O)?h.call(J,"object"):M&&(O.type==="Identifier"||O.type==="ThisExpression")}function kt(h,v,S){return es(h)?(v=Jl(v),typeof v=="string"&&we(v)1)return!0;if(S.length===1){let R=S[0];if(mi(R)||Wl(R)||R.type==="TSTypeLiteral"||R.type==="ObjectTypeAnnotation")return!0}let M=h.typeParameters?"typeParameters":"typeArguments";if(_i(v(M)))return!0}return!1}function Nn(h){var v;return(v=h.typeParameters??h.typeArguments)==null?void 0:v.params}function In(h){function v(S){switch(S.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":case"TSTypeReference":return!!S.typeParameters;default:return!1}}return v(h.checkType)||v(h.extendsType)}function Er(h,v,S,M,R){let O=h.node,J=ui(O),ce=R?tp(h,S,v):"";if(J.length===0)return[ce,"(",Yn(h,S,{filter:ot=>Pr(S.originalText,Pt(ot))===")"}),")"];let{parent:Qe}=h,fe=ee(Qe),ke=mn(O),Te=[];if(dd(h,(ot,it)=>{let rn=it===J.length-1;rn&&O.rest&&Te.push("..."),Te.push(v()),!rn&&(Te.push(","),fe||ke?Te.push(" "):Yr(J[it],S)?Te.push(xt,xt):Te.push($t))}),M&&!tt(h)){if(_i(ce)||_i(Te))throw new Hi;return nt([ao(ce),"(",ao(Te),")"])}let Re=J.every(ot=>!W(ot.decorators));return ke&&Re?[ce,"(",...Te,")"]:fe?[ce,"(",...Te,")"]:(en(Qe)||Cn(Qe)||Qe.type==="TypeAlias"||Qe.type==="UnionTypeAnnotation"||Qe.type==="IntersectionTypeAnnotation"||Qe.type==="FunctionTypeAnnotation"&&Qe.returnType===O)&&J.length===1&&J[0].name===null&&O.this!==J[0]&&J[0].typeAnnotation&&O.typeParameters===null&&xr(J[0].typeAnnotation)&&!O.rest?S.arrowParens==="always"?["(",...Te,")"]:Te:[ce,"(",Et([Ct,...Te]),_n(!bh(O)&&Do(S,"all")?",":""),Ct,")"]}function mn(h){if(!h)return!1;let v=ui(h);if(v.length!==1)return!1;let[S]=v;return!Rt(S)&&(S.type==="ObjectPattern"||S.type==="ArrayPattern"||S.type==="Identifier"&&S.typeAnnotation&&(S.typeAnnotation.type==="TypeAnnotation"||S.typeAnnotation.type==="TSTypeAnnotation")&&Me(S.typeAnnotation.typeAnnotation)||S.type==="FunctionTypeParam"&&Me(S.typeAnnotation)&&S!==h.rest||S.type==="AssignmentPattern"&&(S.left.type==="ObjectPattern"||S.left.type==="ArrayPattern")&&(S.right.type==="Identifier"||Jr(S.right)&&S.right.properties.length===0||mr(S.right)&&S.right.elements.length===0))}function as(h){let v;return h.returnType?(v=h.returnType,v.typeAnnotation&&(v=v.typeAnnotation)):h.typeAnnotation&&(v=h.typeAnnotation),v}function vs(h,v){var S;let M=as(h);if(!M)return!1;let R=(S=h.typeParameters)==null?void 0:S.params;if(R){if(R.length>1)return!1;if(R.length===1){let O=R[0];if(O.constraint||O.default)return!1}}return ui(h).length===1&&(Me(M)||_i(v))}function tt(h){return h.match(v=>v.type==="ArrowFunctionExpression"&&v.body.type==="BlockStatement",(v,S)=>{if(v.type==="CallExpression"&&S==="arguments"&&v.arguments.length===1&&v.callee.type==="CallExpression"){let M=v.callee.callee;return M.type==="Identifier"||M.type==="MemberExpression"&&!M.computed&&M.object.type==="Identifier"&&M.property.type==="Identifier"}return!1},(v,S)=>v.type==="VariableDeclarator"&&S==="init"||v.type==="ExportDefaultDeclaration"&&S==="declaration"||v.type==="TSExportAssignment"&&S==="expression"||v.type==="AssignmentExpression"&&S==="right"&&v.left.type==="MemberExpression"&&v.left.object.type==="Identifier"&&v.left.object.name==="module"&&v.left.property.type==="Identifier"&&v.left.property.name==="exports",v=>v.type!=="VariableDeclaration"||v.kind==="const"&&v.declarations.length===1)}function Ye(h){let v=ui(h);return v.length>1&&v.some(S=>S.type==="TSParameterProperty")}var at=dt(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),Jt=dt(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function yn(h){let{types:v}=h;if(v.some(M=>Rt(M)))return!1;let S=v.find(M=>Jt(M));return S?v.every(M=>M===S||at(M)):!1}function Gn(h){return xr(h)||Me(h)?!0:mi(h)?yn(h):!1}function On(h,v,S){let M=v.semi?";":"",{node:R}=h,O=[Aa(h),"opaque type ",S("id"),S("typeParameters")];return R.supertype&&O.push(": ",S("supertype")),R.impltype&&O.push(" = ",S("impltype")),O.push(M),O}function ur(h,v,S){let M=v.semi?";":"",{node:R}=h,O=[Aa(h)];O.push("type ",S("id"),S("typeParameters"));let J=R.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[Ic(h,v,S,O," =",J),M]}function vi(h,v,S){let M=!1;return nt(h.map(({isFirst:R,previous:O,node:J,index:ce})=>{let Qe=S();if(R)return Qe;let fe=Me(J),ke=Me(O);return ke&&fe?[" & ",M?Et(Qe):Qe]:!ke&&!fe?Et([" &",$t,Qe]):(ce>1&&(M=!0),[" & ",ce>1?Et(Qe):Qe])},"types"))}function cr(h,v,S){let{node:M}=h,{parent:R}=h,O=R.type!=="TypeParameterInstantiation"&&(R.type!=="TSConditionalType"||!v.experimentalTernaries)&&(R.type!=="ConditionalTypeAnnotation"||!v.experimentalTernaries)&&R.type!=="TSTypeParameterInstantiation"&&R.type!=="GenericTypeAnnotation"&&R.type!=="TSTypeReference"&&R.type!=="TSTypeAssertion"&&R.type!=="TupleTypeAnnotation"&&R.type!=="TSTupleType"&&!(R.type==="FunctionTypeParam"&&!R.name&&h.grandparent.this!==R)&&!((R.type==="TypeAlias"||R.type==="VariableDeclarator"||R.type==="TSTypeAliasDeclaration")&&an(v.originalText,M)),J=Gn(M),ce=h.map(ke=>{let Te=S();return J||(Te=yi(2,Te)),os(ke,Te,v)},"types");if(J)return Fn(" | ",ce);let Qe=O&&!an(v.originalText,M),fe=[_n([Qe?$t:"","| "]),Fn([$t,"| "],ce)];return eu(h,v)?nt([Et(fe),Ct]):(R.type==="TupleTypeAnnotation"||R.type==="TSTupleType")&&R[R.type==="TupleTypeAnnotation"&&R.types?"types":"elementTypes"].length>1?nt([Et([_n(["(",Ct]),fe]),Ct,_n(")")]):nt(O?Et(fe):fe)}function Il(h){var v;let{node:S,parent:M}=h;return S.type==="FunctionTypeAnnotation"&&(en(M)||!((M.type==="ObjectTypeProperty"||M.type==="ObjectTypeInternalSlot")&&!M.variance&&!M.optional&&mt(M,S)||M.type==="ObjectTypeCallProperty"||((v=h.getParentNode(2))==null?void 0:v.type)==="DeclareFunction"))}function ny(h,v,S){let{node:M}=h,R=[ry(h)];(M.type==="TSConstructorType"||M.type==="TSConstructSignatureDeclaration")&&R.push("new ");let O=Er(h,S,v,!1,!0),J=[];return M.type==="FunctionTypeAnnotation"?J.push(Il(h)?" => ":": ",S("returnType")):J.push(xs(h,S,M.returnType?"returnType":"typeAnnotation")),vs(M,J)&&(O=nt(O)),R.push(O,J),nt(R)}function JB(h,v,S){return[S("objectType"),co(h),"[",S("indexType"),"]"]}function YB(h,v,S){return["infer ",S("typeParameter")]}function XB(h,v,S){let{node:M}=h;return[M.postfix?"":S,xs(h,v),M.postfix?S:""]}function qB(h,v,S){let{node:M}=h;return["...",...M.type==="TupleTypeSpreadElement"&&M.label?[S("label"),": "]:[],S("typeAnnotation")]}function KB(h,v,S){let{node:M}=h;return[M.variance?S("variance"):"",S("label"),M.optional?"?":"",": ",S("elementType")]}var A8=new WeakSet;function xs(h,v,S="typeAnnotation"){let{node:{[S]:M}}=h;if(!M)return"";let R=!1;if(M.type==="TSTypeAnnotation"||M.type==="TypeAnnotation"){let O=h.call(ZB,S);(O==="=>"||O===":"&&Rt(M,Zt.Leading))&&(R=!0),A8.add(M)}return R?[" ",v(S)]:v(S)}var ZB=h=>h.match(v=>v.type==="TSTypeAnnotation",(v,S)=>(S==="returnType"||S==="typeAnnotation")&&(v.type==="TSFunctionType"||v.type==="TSConstructorType"))?"=>":h.match(v=>v.type==="TSTypeAnnotation",(v,S)=>S==="typeAnnotation"&&(v.type==="TSJSDocNullableType"||v.type==="TSJSDocNonNullableType"||v.type==="TSTypePredicate"))||h.match(v=>v.type==="TypeAnnotation",(v,S)=>S==="typeAnnotation"&&v.type==="Identifier",(v,S)=>S==="id"&&v.type==="DeclareFunction")||h.match(v=>v.type==="TypeAnnotation",(v,S)=>S==="bound"&&v.type==="TypeParameter"&&v.usesExtendsBound)?"":":";function $B(h,v,S){let M=ZB(h);return M?[M," ",S("typeAnnotation")]:S("typeAnnotation")}function eb(h){return[h("elementType"),"[]"]}function tb({node:h},v){let S=h.type==="TSTypeQuery"?"exprName":"argument",M=h.type==="TSTypeQuery"?"typeParameters":"typeArguments";return["typeof ",v(S),v(M)]}function nb(h,v){let{node:S}=h;return[S.asserts?"asserts ":"",v("parameterName"),S.typeAnnotation?[" is ",xs(h,v)]:""]}function co(h){let{node:v}=h;return!v.optional||v.type==="Identifier"&&v===h.parent.key?"":ye(v)||Pe(v)&&v.computed||v.type==="OptionalIndexedAccessType"?"?.":"?"}function rb(h){return h.node.definite||h.match(void 0,(v,S)=>S==="id"&&v.type==="VariableDeclarator"&&v.definite)?"!":""}var g8=new Set(["DeclareClass","DeclareFunction","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Aa(h){let{node:v}=h;return v.declare||g8.has(v.type)&&h.parent.type!=="DeclareExportDeclaration"?"declare ":""}var m8=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function ry({node:h}){return h.abstract||m8.has(h.type)?"abstract ":""}function tp(h,v,S){let M=h.node;return M.typeArguments?S("typeArguments"):M.typeParameters?S("typeParameters"):""}function ib(h,v,S){return["::",S("callee")]}function Dc(h,v,S){return h.type==="EmptyStatement"?";":h.type==="BlockStatement"||S?[" ",v]:Et([$t,v])}function sb(h,v){return["...",v("argument"),xs(h,v)]}function iy(h){return h.accessibility?h.accessibility+" ":""}function y8(h,v,S,M){let{node:R}=h;return Rt(R,Zt.Dangling)?nt([S,Yn(h,v,{indent:!0}),Ct,M]):[S,M]}function Lv(h,v,S){let{node:M}=h,R=[],O=M.type==="TupleExpression"?"#[":"[",J="]",ce=M.type==="TupleTypeAnnotation"&&M.types?"types":M.type==="TSTupleType"||M.type==="TupleTypeAnnotation"?"elementTypes":"elements",Qe=M[ce];if(Qe.length===0)R.push(y8(h,v,O,J));else{let fe=U(!1,Qe,-1),ke=(fe==null?void 0:fe.type)!=="RestElement",Te=fe===null,Re=Symbol("array"),ot=!v.__inJestEach&&Qe.length>1&&Qe.every((Dt,vt,gn)=>{let dn=Dt==null?void 0:Dt.type;if(!mr(Dt)&&!Jr(Dt))return!1;let Xn=gn[vt+1];if(Xn&&dn!==Xn.type)return!1;let Dn=mr(Dt)?"elements":"properties";return Dt[Dn]&&Dt[Dn].length>1}),it=ob(M,v),rn=ke?Te?",":Do(v)?it?_n(",","",{groupId:Re}):_n(","):"":"";R.push(nt([O,Et([Ct,it?C8(h,v,S,rn):[E8(h,v,ce,S),rn],Yn(h,v)]),Ct,J],{shouldBreak:ot,id:Re}))}return R.push(co(h),xs(h,S)),R}function ob(h,v){return mr(h)&&h.elements.length>1&&h.elements.every(S=>S&&(Ki(S)||ll(S)&&!Rt(S.argument))&&!Rt(S,Zt.Trailing|Zt.Line,M=>!je(v.originalText,Ft(M),{backwards:!0})))}function ab({node:h},{originalText:v}){let S=R=>Ne(v,Ve(v,R)),M=R=>v[R]===","?R:M(S(R+1));return lt(v,M(Pt(h)))}function E8(h,v,S,M){let R=[];return h.each(({node:O,isLast:J})=>{R.push(O?nt(M()):""),J||R.push([",",$t,O&&ab(h,v)?Ct:""])},S),R}function C8(h,v,S,M){let R=[];return h.each(({isLast:O,next:J})=>{R.push([S(),O?M:","]),O||R.push(ab(h,v)?[xt,xt]:Rt(J,Zt.Leading|Zt.Line)?xt:$t)},"elements"),pa(R)}var lb=new Proxy(()=>{},{get:()=>lb}),ub=lb;function v8(h){return h.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var Sc=v8,sy=new WeakMap;function Ag(h,v,S){let{node:M}=h;if(M.computed)return["[",S("key"),"]"];let{parent:R}=h,{key:O}=M;if(v.quoteProps==="consistent"&&!sy.has(R)){let J=(R.properties||R.body||R.members).some(ce=>!ce.computed&&ce.key&&pe(ce.key)&&!Qn(ce,v));sy.set(R,J)}if((O.type==="Identifier"||Ki(O)&&kr(Sc(bi(O)))&&String(O.value)===Sc(bi(O))&&!(v.parser==="typescript"||v.parser==="babel-ts"))&&(v.parser==="json"||v.parser==="jsonc"||v.quoteProps==="consistent"&&sy.get(R))){let J=Ot(JSON.stringify(O.type==="Identifier"?O.name:O.value.toString()),v);return h.call(ce=>os(ce,J,v),"key")}return Qn(M,v)&&(v.quoteProps==="as-needed"||v.quoteProps==="consistent"&&!sy.get(R))?h.call(J=>os(J,/^\d/.test(O.value)?Sc(O.value):O.value,v),"key"):S("key")}function cb(h,v,S){let{node:M}=h;return M.shorthand?S("value"):Ic(h,v,S,Ag(h,v,S),":","value")}var x8=({node:h,key:v,parent:S})=>v==="value"&&h.type==="FunctionExpression"&&(S.type==="ObjectMethod"||S.type==="ClassMethod"||S.type==="ClassPrivateMethod"||S.type==="MethodDefinition"||S.type==="TSAbstractMethodDefinition"||S.type==="TSDeclareMethod"||S.type==="Property"&&Kt(S));function hb(h,v,S,M){if(x8(h))return Ov(h,S,v);let{node:R}=h,O=!1;if((R.type==="FunctionDeclaration"||R.type==="FunctionExpression")&&M!=null&&M.expandLastArg){let{parent:ke}=h;ye(ke)&&(Rr(ke).length>1||ui(R).every(Te=>Te.type==="Identifier"&&!Te.typeAnnotation))&&(O=!0)}let J=[Aa(h),R.async?"async ":"",`function${R.generator?"*":""} `,R.id?v("id"):""],ce=Er(h,v,S,O),Qe=Uv(h,v),fe=vs(R,Qe);return J.push(tp(h,S,v),nt([fe?nt(ce):ce,Qe]),R.body?" ":"",v("body")),S.semi&&(R.declare||!R.body)&&J.push(";"),J}function Nv(h,v,S){let{node:M}=h,{kind:R}=M,O=M.value||M,J=[];return!R||R==="init"||R==="method"||R==="constructor"?O.async&&J.push("async "):(ub.ok(R==="get"||R==="set"),J.push(R," ")),O.generator&&J.push("*"),J.push(Ag(h,v,S),M.optional||M.key.optional?"?":"",M===O?Ov(h,v,S):S("value")),J}function Ov(h,v,S){let{node:M}=h,R=Er(h,S,v),O=Uv(h,S),J=Ye(M),ce=vs(M,O),Qe=[tp(h,v,S),nt([J?nt(R,{shouldBreak:!0}):ce?nt(R):R,O])];return M.body?Qe.push(" ",S("body")):Qe.push(v.semi?";":""),Qe}function I8(h){let v=ui(h);return v.length===1&&!h.typeParameters&&!Rt(h,Zt.Dangling)&&v[0].type==="Identifier"&&!v[0].typeAnnotation&&!Rt(v[0])&&!v[0].optional&&!h.predicate&&!h.returnType}function pb(h,v){if(v.arrowParens==="always")return!1;if(v.arrowParens==="avoid"){let{node:S}=h;return I8(S)}return!1}function Uv(h,v){let{node:S}=h,M=[xs(h,v,"returnType")];return S.predicate&&M.push(v("predicate")),M}function db(h,v,S){let{node:M}=h,R=v.semi?";":"",O=[];if(M.argument){let Qe=S("argument");w8(v,M.argument)?Qe=["(",Et([xt,Qe]),xt,")"]:(Zn(M.argument)||M.argument.type==="SequenceExpression"||v.experimentalTernaries&&M.argument.type==="ConditionalExpression"&&(M.argument.consequent.type==="ConditionalExpression"||M.argument.alternate.type==="ConditionalExpression"))&&(Qe=nt([_n("("),Et([Ct,Qe]),Ct,_n(")")])),O.push(" ",Qe)}let J=Rt(M,Zt.Dangling),ce=R&&J&&Rt(M,Zt.Last|Zt.Line);return ce&&O.push(R),J&&O.push(" ",Yn(h,v)),ce||O.push(R),O}function D8(h,v,S){return["return",db(h,v,S)]}function S8(h,v,S){return["throw",db(h,v,S)]}function w8(h,v){if(an(h.originalText,v)||Rt(v,Zt.Leading,S=>wo(h.originalText,Ft(S),Pt(S)))&&!At(v))return!0;if(Fs(v)){let S=v,M;for(;M=Io(S);)if(S=M,an(h.originalText,S))return!0}return!1}var Gv=new WeakMap;function fb(h){return Gv.has(h)||Gv.set(h,h.type==="ConditionalExpression"&&!$r(h,v=>v.type==="ObjectExpression")),Gv.get(h)}var Ab=h=>h.type==="SequenceExpression";function B8(h,v,S,M={}){let R=[],O,J=[],ce=!1,Qe=!M.expandLastArg&&h.node.body.type==="ArrowFunctionExpression",fe;(function Dt(){let{node:vt}=h,gn=b8(h,v,S,M);if(R.length===0)R.push(gn);else{let{leading:dn,trailing:Xn}=Us(h,v);R.push([dn,gn]),J.unshift(Xn)}Qe&&(ce||(ce=vt.returnType&&ui(vt).length>0||vt.typeParameters||ui(vt).some(dn=>dn.type!=="Identifier"))),!Qe||vt.body.type!=="ArrowFunctionExpression"?(O=S("body",M),fe=vt.body):h.call(Dt,"body")})();let ke=!an(v.originalText,fe)&&(Ab(fe)||T8(fe,O,v)||!ce&&fb(fe)),Te=h.key==="callee"&&$i(h.parent),Re=Symbol("arrow-chain"),ot=M8(h,M,{signatureDocs:R,shouldBreak:ce}),it,rn=!1;return Qe&&(Te||M.assignmentLayout)&&(rn=!0,it=M.assignmentLayout==="chain-tail-arrow-chain"||Te&&!ke),O=_8(h,v,M,{bodyDoc:O,bodyComments:J,functionBody:fe,shouldPutBodyOnSameLine:ke}),nt([nt(rn?Et([Ct,ot]):ot,{shouldBreak:it,id:Re})," =>",Qe?Mi(O,{groupId:Re}):nt(O),Qe&&Te?_n(Ct,"",{groupId:Re}):""])}function b8(h,v,S,M){let{node:R}=h,O=[];if(R.async&&O.push("async "),pb(h,v))O.push(S(["params",0]));else{let ce=M.expandLastArg||M.expandFirstArg,Qe=Uv(h,S);if(ce){if(_i(Qe))throw new Hi;Qe=nt(ao(Qe))}O.push(nt([Er(h,S,v,ce,!0),Qe]))}let J=Yn(h,v,{filter(ce){let Qe=Vo(v.originalText,Pt(ce));return Qe!==!1&&v.originalText.slice(Qe,Qe+2)==="=>"}});return J&&O.push(" ",J),O}function T8(h,v,S){var M,R;return mr(h)||Jr(h)||h.type==="ArrowFunctionExpression"||h.type==="DoExpression"||h.type==="BlockStatement"||At(h)||((M=v.label)==null?void 0:M.hug)!==!1&&(((R=v.label)==null?void 0:R.embed)||Ur(h,S.originalText))}function M8(h,v,{signatureDocs:S,shouldBreak:M}){if(S.length===1)return S[0];let{parent:R,key:O}=h;return O!=="callee"&&$i(R)||Zn(R)?nt([S[0]," =>",Et([$t,Fn([" =>",$t],S.slice(1))])],{shouldBreak:M}):O==="callee"&&$i(R)||v.assignmentLayout?nt(Fn([" =>",$t],S),{shouldBreak:M}):nt(Et(Fn([" =>",$t],S)),{shouldBreak:M})}function _8(h,v,S,{bodyDoc:M,bodyComments:R,functionBody:O,shouldPutBodyOnSameLine:J}){let{node:ce,parent:Qe}=h,fe=S.expandLastArg&&Do(v,"all")?_n(","):"",ke=(S.expandLastArg||Qe.type==="JSXExpressionContainer")&&!Rt(ce)?Ct:"";return J&&fb(O)?[" ",nt([_n("","("),Et([Ct,M]),_n("",")"),fe,ke]),R]:(Ab(O)&&(M=nt(["(",Et([Ct,M]),Ct,")"])),J?[" ",M,R]:[Et([$t,M,R]),fe,ke])}var F8=(h,v,S)=>{if(!(h&&v==null)){if(v.findLast)return v.findLast(S);for(let M=v.length-1;M>=0;M--){let R=v[M];if(S(R,M,v))return R}}},P8=F8;function Hv(h,v,S,M){let{node:R}=h,O=[],J=P8(!1,R[M],ce=>ce.type!=="EmptyStatement");return h.each(({node:ce})=>{ce.type!=="EmptyStatement"&&(O.push(S()),ce!==J&&(O.push(xt),Yr(ce,v)&&O.push(xt)))},M),O}function gb(h,v,S){let{node:M}=h,R=[];M.type==="StaticBlock"&&R.push("static "),R.push("{");let O=mb(h,v,S);if(O)R.push(Et([xt,O]),xt);else{let{parent:J}=h,ce=h.grandparent;J.type==="ArrowFunctionExpression"||J.type==="FunctionExpression"||J.type==="FunctionDeclaration"||J.type==="ObjectMethod"||J.type==="ClassMethod"||J.type==="ClassPrivateMethod"||J.type==="ForStatement"||J.type==="WhileStatement"||J.type==="DoWhileStatement"||J.type==="DoExpression"||J.type==="CatchClause"&&!ce.finalizer||J.type==="TSModuleDeclaration"||J.type==="TSDeclareFunction"||M.type==="StaticBlock"||R.push(xt)}return R.push("}"),R}function mb(h,v,S){var M;let{node:R}=h,O=W(R.directives),J=R.body.some(fe=>fe.type!=="EmptyStatement"),ce=Rt(R,Zt.Dangling);if(!O&&!J&&!ce)return"";let Qe=[];return O&&(Qe.push(Hv(h,v,S,"directives")),(J||ce)&&(Qe.push(xt),Yr(U(!1,R.directives,-1),v)&&Qe.push(xt))),J&&Qe.push(Hv(h,v,S,"body")),ce&&Qe.push(Yn(h,v)),R.type==="Program"&&((M=h.parent)==null?void 0:M.type)!=="ModuleExpression"&&Qe.push(xt),Qe}function Q8(h){let v=new WeakMap;return function(S){return v.has(S)||v.set(S,Symbol(h)),v.get(S)}}var yb=Q8;function k8(h){switch(h){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function R8(h,v,S){let{node:M}=h;return nt([M.variance?S("variance"):"","[",Et([S("keyTparam")," in ",S("sourceType")]),"]",k8(M.optional),": ",S("propType")])}function Eb(h,v){return h==="+"||h==="-"?h+v:v}function L8(h,v,S){let{node:M}=h,R=wo(v.originalText,Ft(M),Ft(M.typeParameter));return nt(["{",Et([v.bracketSpacing?$t:Ct,nt([S("typeParameter"),M.optional?Eb(M.optional,"?"):"",M.typeAnnotation?": ":"",S("typeAnnotation")]),v.semi?_n(";"):""]),Yn(h,v),v.bracketSpacing?$t:Ct,"}"],{shouldBreak:R})}var zv=yb("typeParameters");function N8(h,v,S){let{node:M}=h;return ui(M).length===1&&M.type.startsWith("TS")&&!M[S][0].constraint&&h.parent.type==="ArrowFunctionExpression"&&!(v.filepath&&/\.ts$/.test(v.filepath))}function gg(h,v,S,M){let{node:R}=h;if(!R[M])return"";if(!Array.isArray(R[M]))return S(M);let O=h.getNode(2),J=O&&ee(O),ce=h.match(fe=>!(fe[M].length===1&&Me(fe[M][0])),void 0,(fe,ke)=>ke==="typeAnnotation",fe=>fe.type==="Identifier",V);if(R[M].length===0||!ce&&(J||R[M].length===1&&(R[M][0].type==="NullableTypeAnnotation"||Gn(R[M][0]))))return["<",Fn(", ",h.map(S,M)),O8(h,v),">"];let Qe=R.type==="TSTypeParameterInstantiation"?"":N8(h,v,M)?",":Do(v)?_n(","):"";return nt(["<",Et([Ct,Fn([",",$t],h.map(S,M))]),Qe,Ct,">"],{id:zv(R)})}function O8(h,v){let{node:S}=h;if(!Rt(S,Zt.Dangling))return"";let M=!Rt(S,Zt.Line),R=Yn(h,v,{indent:!M});return M?R:[R,xt]}function Cb(h,v,S){let{node:M,parent:R}=h,O=[M.type==="TSTypeParameter"&&M.const?"const ":""],J=M.type==="TSTypeParameter"?S("name"):M.name;if(R.type==="TSMappedType")return R.readonly&&O.push(Eb(R.readonly,"readonly")," "),O.push("[",J),M.constraint&&O.push(" in ",S("constraint")),R.nameType&&O.push(" as ",h.callParent(()=>S("nameType"))),O.push("]"),O;if(M.variance&&O.push(S("variance")),M.in&&O.push("in "),M.out&&O.push("out "),O.push(J),M.bound&&(M.usesExtendsBound&&O.push(" extends "),O.push(xs(h,S,"bound"))),M.constraint){let ce=Symbol("constraint");O.push(" extends",nt(Et($t),{id:ce}),tr,Mi(S("constraint"),{groupId:ce}))}return M.default&&O.push(" = ",S("default")),nt(O)}var vb=dt(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function xb(h,v,S){let{node:M}=h,R=[Aa(h),ry(h),"class"],O=Rt(M.id,Zt.Trailing)||Rt(M.typeParameters,Zt.Trailing)||Rt(M.superClass)||W(M.extends)||W(M.mixins)||W(M.implements),J=[],ce=[];if(M.id&&J.push(" ",S("id")),J.push(S("typeParameters")),M.superClass){let Qe=[G8(h,v,S),S("superTypeParameters")],fe=h.call(ke=>["extends ",os(ke,Qe,v)],"superClass");O?ce.push($t,nt(fe)):ce.push(" ",fe)}else ce.push(Wv(h,v,S,"extends"));if(ce.push(Wv(h,v,S,"mixins"),Wv(h,v,S,"implements")),O){let Qe;Sb(M)?Qe=[...J,Et(ce)]:Qe=Et([...J,ce]),R.push(nt(Qe,{id:Ib(M)}))}else R.push(...J,...ce);return R.push(" ",S("body")),R}var Ib=yb("heritageGroup");function Db(h){return _n(xt,"",{groupId:Ib(h)})}function U8(h){return["extends","mixins","implements"].reduce((v,S)=>v+(Array.isArray(h[S])?h[S].length:0),h.superClass?1:0)>1}function Sb(h){return h.typeParameters&&!Rt(h.typeParameters,Zt.Trailing|Zt.Line)&&!U8(h)}function Wv(h,v,S,M){let{node:R}=h;if(!W(R[M]))return"";let O=Yn(h,v,{marker:M});return[Sb(R)?_n(" ",$t,{groupId:zv(R.typeParameters)}):$t,O,O&&xt,M,nt(Et([$t,Fn([",",$t],h.map(S,M))]))]}function G8(h,v,S){let M=S("superClass"),{parent:R}=h;return R.type==="AssignmentExpression"?nt(_n(["(",Et([Ct,M]),Ct,")"],M)):M}function wb(h,v,S){let{node:M}=h,R=[];return W(M.decorators)&&R.push(cg(h,v,S)),R.push(iy(M)),M.static&&R.push("static "),R.push(ry(h)),M.override&&R.push("override "),R.push(Nv(h,v,S)),R}function Bb(h,v,S){let{node:M}=h,R=[],O=v.semi?";":"";W(M.decorators)&&R.push(cg(h,v,S)),R.push(iy(M),Aa(h)),M.static&&R.push("static "),R.push(ry(h)),M.override&&R.push("override "),M.readonly&&R.push("readonly "),M.variance&&R.push(S("variance")),(M.type==="ClassAccessorProperty"||M.type==="AccessorProperty"||M.type==="TSAbstractAccessorProperty")&&R.push("accessor "),R.push(Ag(h,v,S),co(h),rb(h),xs(h,S));let J=M.type==="TSAbstractPropertyDefinition"||M.type==="TSAbstractAccessorProperty";return[Ic(h,v,S,R," =",J?void 0:"value"),O]}function H8(h,v,S){let{node:M}=h,R=[];return h.each(({node:O,next:J,isLast:ce})=>{R.push(S()),!v.semi&&vb(O)&&z8(O,J)&&R.push(";"),ce||(R.push(xt),Yr(O,v)&&R.push(xt))},"body"),Rt(M,Zt.Dangling)&&R.push(Yn(h,v)),[W(M.body)?Db(h.parent):"","{",R.length>0?[Et([xt,R]),xt]:"","}"]}function z8(h,v){var S;let{type:M,name:R}=h.key;if(!h.computed&&M==="Identifier"&&(R==="static"||R==="get"||R==="set")&&!h.value&&!h.typeAnnotation)return!0;if(!v||v.static||v.accessibility)return!1;if(!v.computed){let O=(S=v.key)==null?void 0:S.name;if(O==="in"||O==="instanceof")return!0}if(vb(v)&&v.variance&&!v.static&&!v.declare)return!0;switch(v.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return v.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((v.value?v.value.async:v.async)||v.kind==="get"||v.kind==="set")return!1;let O=v.value?v.value.generator:v.generator;return!!(v.computed||O)}case"TSIndexSignature":return!0}return!1}function W8(h,v){if(v.semi||Tb(h,v)||_b(h,v))return!1;let{node:S,key:M,parent:R}=h;return!!(S.type==="ExpressionStatement"&&(M==="body"&&(R.type==="Program"||R.type==="BlockStatement"||R.type==="StaticBlock"||R.type==="TSModuleBlock")||M==="consequent"&&R.type==="SwitchCase")&&h.call(()=>bb(h,v),"expression"))}function bb(h,v){let{node:S}=h;switch(S.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!pb(h,v))return!0;break;case"UnaryExpression":{let{prefix:M,operator:R}=S;if(M&&(R==="+"||R==="-"))return!0;break}case"BindExpression":if(!S.object)return!0;break;case"Literal":if(S.regex)return!0;break;default:if(At(S))return!0}return eu(h,v)?!0:Fs(S)?h.call(()=>bb(h,v),...ds(S)):!1}function Tb({node:h,parent:v},S){return(S.parentParser==="markdown"||S.parentParser==="mdx")&&h.type==="ExpressionStatement"&&At(h.expression)&&v.type==="Program"&&v.body.length===1}function Mb(h){switch(h.type){case"MemberExpression":switch(h.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return Mb(h.object)}return!1;case"Identifier":return!0;default:return!1}}function _b({node:h,parent:v},S){return(S.parser==="__vue_event_binding"||S.parser==="__vue_ts_event_binding")&&h.type==="ExpressionStatement"&&v.type==="Program"&&v.body.length===1}function j8(h,v,S){let M=[S("expression")];return _b(h,v)?Mb(h.node.expression)&&M.push(";"):Tb(h,v)||v.semi&&M.push(";"),M}function V8(h,v,S){if(v.__isVueBindings||v.__isVueForBindingLeft){let M=h.map(S,"program","body",0,"params");if(M.length===1)return M[0];let R=Fn([",",$t],M);return v.__isVueForBindingLeft?["(",Et([Ct,nt(R)]),Ct,")"]:R}if(v.__isEmbeddedTypescriptGenericParameters){let M=h.map(S,"program","body",0,"typeParameters","params");return Fn([",",$t],M)}}function J8(h,v){let{node:S}=h;switch(S.type){case"RegExpLiteral":return Fb(S);case"BigIntLiteral":return jv(S.extra.raw);case"NumericLiteral":return Sc(S.extra.raw);case"StringLiteral":return qr(Ot(S.extra.raw,v));case"NullLiteral":return"null";case"BooleanLiteral":return String(S.value);case"DecimalLiteral":return Sc(S.value)+"m";case"DirectiveLiteral":return Pb(S.extra.raw,v);case"Literal":{if(S.regex)return Fb(S.regex);if(S.bigint)return jv(S.raw);if(S.decimal)return Sc(S.decimal)+"m";let{value:M}=S;return typeof M=="number"?Sc(S.raw):typeof M=="string"?Y8(h)?Pb(S.raw,v):qr(Ot(S.raw,v)):String(M)}}}function Y8(h){if(h.key!=="expression")return;let{parent:v}=h;return v.type==="ExpressionStatement"&&v.directive}function jv(h){return h.toLowerCase()}function Fb({pattern:h,flags:v}){return v=[...v].sort().join(""),`/${h}/${v}`}function Pb(h,v){let S=h.slice(1,-1);if(S.includes('"')||S.includes("'"))return h;let M=v.singleQuote?"'":'"';return M+S+M}function X8(h,v,S){let M=h.originalText.slice(v,S);for(let R of h[Symbol.for("comments")]){let O=Ft(R);if(O>S)break;let J=Pt(R);if(Jh.type==="ExportDefaultDeclaration"||h.type==="DeclareExportDeclaration"&&h.default;function kb(h,v,S){let{node:M}=h,R=[nu(h,v,S),Aa(h),"export",Qb(M)?" default":""],{declaration:O,exported:J}=M;return Rt(M,Zt.Dangling)&&(R.push(" ",Yn(h,v)),vn(M)&&R.push(xt)),O?R.push(" ",S("declaration")):(R.push($8(M)),M.type==="ExportAllDeclaration"||M.type==="DeclareExportAllDeclaration"?(R.push(" *"),J&&R.push(" as ",S("exported"))):R.push(Nb(h,v,S)),R.push(Lb(h,v,S),Ub(h,v,S))),R.push(Z8(M,v)),R}var K8=dt(["ClassDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareFunction","TSDeclareFunction","EnumDeclaration"]);function Z8(h,v){return v.semi&&(!h.declaration||Qb(h)&&!K8(h.declaration))?";":""}function Jv(h,v=!0){return h&&h!=="value"?`${v?" ":""}${h}${v?"":" "}`:""}function Rb(h,v){return Jv(h.importKind,v)}function $8(h){return Jv(h.exportKind)}function Lb(h,v,S){let{node:M}=h;if(!M.source)return"";let R=[];return Ob(M,v)&&R.push(" from"),R.push(" ",S("source")),R}function Nb(h,v,S){let{node:M}=h;if(!Ob(M,v))return"";let R=[" "];if(W(M.specifiers)){let O=[],J=[];h.each(()=>{let ce=h.node.type;if(ce==="ExportNamespaceSpecifier"||ce==="ExportDefaultSpecifier"||ce==="ImportNamespaceSpecifier"||ce==="ImportDefaultSpecifier")O.push(S());else if(ce==="ExportSpecifier"||ce==="ImportSpecifier")J.push(S());else throw new fa(M,"specifier")},"specifiers"),R.push(Fn(", ",O)),J.length>0&&(O.length>0&&R.push(", "),J.length>1||O.length>0||M.specifiers.some(ce=>Rt(ce))?R.push(nt(["{",Et([v.bracketSpacing?$t:Ct,Fn([",",$t],J)]),_n(Do(v)?",":""),v.bracketSpacing?$t:Ct,"}"])):R.push(["{",v.bracketSpacing?" ":"",...J,v.bracketSpacing?" ":"","}"]))}else R.push("{}");return R}function Ob(h,v){return h.type!=="ImportDeclaration"||W(h.specifiers)||h.importKind==="type"?!0:Vv(v,Ft(h),Ft(h.source)).trimEnd().endsWith("from")}function e5(h,v){var S,M;if((S=h.extra)!=null&&S.deprecatedAssertSyntax)return"assert";let R=Vv(v,Pt(h.source),(M=h.attributes)!=null&&M[0]?Ft(h.attributes[0]):Pt(h)).trimStart();return R.startsWith("assert")?"assert":R.startsWith("with")||W(h.attributes)?"with":void 0}function Ub(h,v,S){let{node:M}=h;if(!M.source)return"";let R=e5(M,v);if(!R)return"";let O=[` ${R} {`];return W(M.attributes)&&(v.bracketSpacing&&O.push(" "),O.push(Fn(", ",h.map(S,"attributes"))),v.bracketSpacing&&O.push(" ")),O.push("}"),O}function t5(h,v,S){let{node:M}=h,{type:R}=M,O=R.startsWith("Import"),J=O?"imported":"local",ce=O?"local":"exported",Qe=M[J],fe=M[ce],ke="",Te="";return R==="ExportNamespaceSpecifier"||R==="ImportNamespaceSpecifier"?ke="*":Qe&&(ke=S(J)),fe&&!n5(M)&&(Te=S(ce)),[Jv(R==="ImportSpecifier"?M.importKind:M.exportKind,!1),ke,ke&&Te?" as ":"",Te]}function n5(h){if(h.type!=="ImportSpecifier"&&h.type!=="ExportSpecifier")return!1;let{local:v,[h.type==="ImportSpecifier"?"imported":"exported"]:S}=h;if(v.type!==S.type||!Sn(v,S))return!1;if(pe(v))return v.value===S.value&&bi(v)===bi(S);switch(v.type){case"Identifier":return v.name===S.name;default:return!1}}function oy(h,v,S){var M;let R=v.semi?";":"",{node:O}=h,J=O.type==="ObjectTypeAnnotation",ce=O.type==="TSEnumDeclaration"||O.type==="EnumBooleanBody"||O.type==="EnumNumberBody"||O.type==="EnumStringBody"||O.type==="EnumSymbolBody",Qe=[O.type==="TSTypeLiteral"||ce?"members":O.type==="TSInterfaceBody"?"body":"properties"];J&&Qe.push("indexers","callProperties","internalSlots");let fe=Qe.flatMap(wt=>h.map(({node:hr})=>({node:hr,printed:S(),loc:Ft(hr)}),wt));Qe.length>1&&fe.sort((wt,hr)=>wt.loc-hr.loc);let{parent:ke,key:Te}=h,Re=J&&Te==="body"&&(ke.type==="InterfaceDeclaration"||ke.type==="DeclareInterface"||ke.type==="DeclareClass"),ot=O.type==="TSInterfaceBody"||ce||Re||O.type==="ObjectPattern"&&ke.type!=="FunctionDeclaration"&&ke.type!=="FunctionExpression"&&ke.type!=="ArrowFunctionExpression"&&ke.type!=="ObjectMethod"&&ke.type!=="ClassMethod"&&ke.type!=="ClassPrivateMethod"&&ke.type!=="AssignmentPattern"&&ke.type!=="CatchClause"&&O.properties.some(wt=>wt.value&&(wt.value.type==="ObjectPattern"||wt.value.type==="ArrayPattern"))||O.type!=="ObjectPattern"&&fe.length>0&&wo(v.originalText,Ft(O),fe[0].loc),it=Re?";":O.type==="TSInterfaceBody"||O.type==="TSTypeLiteral"?_n(R,";"):",",rn=O.type==="RecordExpression"?"#{":O.exact?"{|":"{",Dt=O.exact?"|}":"}",vt=[],gn=fe.map(wt=>{let hr=[...vt,nt(wt.printed)];return vt=[it,$t],(wt.node.type==="TSPropertySignature"||wt.node.type==="TSMethodSignature"||wt.node.type==="TSConstructSignatureDeclaration"||wt.node.type==="TSCallSignatureDeclaration")&&Rt(wt.node,Zt.PrettierIgnore)&&vt.shift(),Yr(wt.node,v)&&vt.push(xt),hr});if(O.inexact||O.hasUnknownMembers){let wt;if(Rt(O,Zt.Dangling)){let hr=Rt(O,Zt.Line);wt=[Yn(h,v),hr||je(v.originalText,Pt(U(!1,cl(O),-1)))?xt:$t,"..."]}else wt=["..."];gn.push([...vt,...wt])}let dn=(M=U(!1,fe,-1))==null?void 0:M.node,Xn=!(O.inexact||O.hasUnknownMembers||dn&&(dn.type==="RestElement"||(dn.type==="TSPropertySignature"||dn.type==="TSCallSignatureDeclaration"||dn.type==="TSMethodSignature"||dn.type==="TSConstructSignatureDeclaration")&&Rt(dn,Zt.PrettierIgnore))),Dn;if(gn.length===0){if(!Rt(O,Zt.Dangling))return[rn,Dt,xs(h,S)];Dn=nt([rn,Yn(h,v,{indent:!0}),Ct,Dt,co(h),xs(h,S)])}else Dn=[Re&&W(O.properties)?Db(ke):"",rn,Et([v.bracketSpacing?$t:Ct,...gn]),_n(Xn&&(it!==","||Do(v))?it:""),v.bracketSpacing?$t:Ct,Dt,co(h),xs(h,S)];return h.match(wt=>wt.type==="ObjectPattern"&&!W(wt.decorators),Yv)||Me(O)&&(h.match(void 0,(wt,hr)=>hr==="typeAnnotation",(wt,hr)=>hr==="typeAnnotation",Yv)||h.match(void 0,(wt,hr)=>wt.type==="FunctionTypeParam"&&hr==="typeAnnotation",Yv))||!ot&&h.match(wt=>wt.type==="ObjectPattern",wt=>wt.type==="AssignmentExpression"||wt.type==="VariableDeclarator")?Dn:nt(Dn,{shouldBreak:ot})}function Yv(h,v){return(v==="params"||v==="parameters"||v==="this"||v==="rest")&&mn(h)}function r5(h){let v=[h];for(let S=0;SRe[Ar]===M),it=Re.type===M.type&&!ot,rn,Dt,vt=0;do Dt=rn||M,rn=h.getParentNode(vt),vt++;while(rn&&rn.type===M.type&&ce.every(Ar=>rn[Ar]!==Dt));let gn=rn||Re,dn=Dt;if(R&&(At(M[ce[0]])||At(Qe)||At(fe)||r5(dn))){Te=!0,it=!0;let Ar=Fi=>[_n("("),Et([Ct,Fi]),Ct,_n(")")],Is=Fi=>Fi.type==="NullLiteral"||Fi.type==="Literal"&&Fi.value===null||Fi.type==="Identifier"&&Fi.name==="undefined";ke.push(" ? ",Is(Qe)?S(O):Ar(S(O))," : ",fe.type===M.type||Is(fe)?S(J):Ar(S(J)))}else{let Ar=Fi=>v.useTabs?Et(S(Fi)):yi(2,S(Fi)),Is=[$t,"? ",Qe.type===M.type?_n("","("):"",Ar(O),Qe.type===M.type?_n("",")"):"",$t,": ",Ar(J)];ke.push(Re.type!==M.type||Re[J]===M||ot?Is:v.useTabs?ha(Et(Is)):yi(Math.max(0,v.tabWidth-2),Is))}let Xn=[O,J,...ce].some(Ar=>Rt(M[Ar],Is=>nn(Is)&&wo(v.originalText,Ft(Is),Pt(Is)))),Dn=Ar=>Re===gn?nt(Ar,{shouldBreak:Xn}):Xn?[Ar,Ui]:Ar,wt=!Te&&(Pe(Re)||Re.type==="NGPipeExpression"&&Re.left===M)&&!Re.computed,hr=o5(h),zs=Dn([i5(h,v,S),it?ke:Et(ke),R&&wt&&!hr?Ct:""]);return ot||hr?nt([Et([Ct,zs]),Ct]):zs}function l5(h,v){return(Pe(v)||v.type==="NGPipeExpression"&&v.left===h)&&!v.computed}function u5(h,v,S,M){return[...h.map(R=>cl(R)),cl(v),cl(S)].flat().some(R=>nn(R)&&wo(M.originalText,Ft(R),Pt(R)))}var c5=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function h5(h){let{node:v}=h;if(v.type!=="ConditionalExpression")return!1;let S,M=v;for(let R=0;!S;R++){let O=h.getParentNode(R);if(O.type==="ChainExpression"&&O.expression===M||ye(O)&&O.callee===M||Pe(O)&&O.object===M||O.type==="TSNonNullExpression"&&O.expression===M){M=O;continue}O.type==="NewExpression"&&O.callee===M||to(O)&&O.expression===M?(S=h.getParentNode(R+1),M=O):S=O}return M===v?!1:S[c5.get(S.type)]===M}var Xv=h=>[_n("("),Et([Ct,h]),Ct,_n(")")];function qv(h,v,S,M){if(!v.experimentalTernaries)return a5(h,v,S);let{node:R}=h,O=R.type==="ConditionalExpression",J=R.type==="TSConditionalType"||R.type==="ConditionalTypeAnnotation",ce=O?"consequent":"trueType",Qe=O?"alternate":"falseType",fe=O?["test"]:["checkType","extendsType"],ke=R[ce],Te=R[Qe],Re=fe.map(Ha=>R[Ha]),{parent:ot}=h,it=ot.type===R.type,rn=it&&fe.some(Ha=>ot[Ha]===R),Dt=it&&ot[Qe]===R,vt=ke.type===R.type,gn=Te.type===R.type,dn=gn||Dt,Xn=v.tabWidth>2||v.useTabs,Dn,wt,hr=0;do wt=Dn||R,Dn=h.getParentNode(hr),hr++;while(Dn&&Dn.type===R.type&&fe.every(Ha=>Dn[Ha]!==wt));let zs=Dn||ot,Ar=M&&M.assignmentLayout&&M.assignmentLayout!=="break-after-operator"&&(ot.type==="AssignmentExpression"||ot.type==="VariableDeclarator"||ot.type==="ClassProperty"||ot.type==="PropertyDefinition"||ot.type==="ClassPrivateProperty"||ot.type==="ObjectProperty"||ot.type==="Property"),Is=(ot.type==="ReturnStatement"||ot.type==="ThrowStatement")&&!(vt||gn),Fi=O&&zs.type==="JSXExpressionContainer"&&h.grandparent.type!=="JSXAttribute",Xd=h5(h),mg=l5(R,ot),wn=J&&eu(h,v),Dr=Xn?v.useTabs?" ":" ".repeat(v.tabWidth-1):"",Pi=u5(Re,ke,Te,v)||vt||gn,Ga=!dn&&!it&&!J&&(Fi?ke.type==="NullLiteral"||ke.type==="Literal"&&ke.value===null:Qt(ke,v)&&ct(R.test,3)),rp=dn||Dt||J&&!it||it&&O&&ct(R.test,1)||Ga,Xb=[];!vt&&Rt(ke,Zt.Dangling)&&h.call(Ha=>{Xb.push(Yn(Ha,v),xt)},"consequent");let yg=[];Rt(R.test,Zt.Dangling)&&h.call(Ha=>{yg.push(Yn(Ha,v))},"test"),!gn&&Rt(Te,Zt.Dangling)&&h.call(Ha=>{yg.push(Yn(Ha,v))},"alternate"),Rt(R,Zt.Dangling)&&yg.push(Yn(h,v));let qb=Symbol("test"),F5=Symbol("consequent"),ly=Symbol("test-and-consequent"),P5=O?[Xv(S("test")),R.test.type==="ConditionalExpression"?Ui:""]:[S("checkType")," ","extends"," ",R.extendsType.type==="TSConditionalType"||R.extendsType.type==="ConditionalTypeAnnotation"||R.extendsType.type==="TSMappedType"?S("extendsType"):nt(Xv(S("extendsType")))],Kb=nt([P5," ?"],{id:qb}),Q5=S(ce),uy=Et([vt||Fi&&(At(ke)||it||dn)?xt:$t,Xb,Q5]),k5=rp?nt([Kb,dn?uy:_n(uy,nt(uy,{id:F5}),{groupId:qb})],{id:ly}):[Kb,uy],Kv=S(Qe),Zb=Ga?_n(Kv,ha(Xv(Kv)),{groupId:ly}):Kv,Eg=[k5,yg.length>0?[Et([xt,yg]),xt]:gn?xt:Ga?_n($t," ",{groupId:ly}):$t,":",gn?" ":Xn?rp?_n(Dr,_n(dn||Ga?" ":Dr," "),{groupId:ly}):_n(Dr," "):" ",gn?Zb:nt([Et(Zb),Fi&&!Ga?Ct:""]),mg&&!Xd?Ct:"",Pi?Ui:""];return Ar&&!Pi?nt(Et([Ct,nt(Eg)])):Ar||Is?nt(Et(Eg)):Xd||J&&rn?nt([Et([Ct,Eg]),wn?Ct:""]):ot===zs?nt(Eg):Eg}function p5(h,v,S,M){let{node:R}=h;if(se(R))return J8(h,v);let O=v.semi?";":"",J=[];switch(R.type){case"JsExpressionRoot":return S("node");case"JsonRoot":return[S("node"),xt];case"File":return V8(h,v,S)??S("program");case"Program":return mb(h,v,S);case"EmptyStatement":return"";case"ExpressionStatement":return j8(h,v,S);case"ChainExpression":return S("expression");case"ParenthesizedExpression":return!Rt(R.expression)&&(Jr(R.expression)||mr(R.expression))?["(",S("expression"),")"]:nt(["(",Et([Ct,S("expression")]),Ct,")"]);case"AssignmentExpression":return $0(h,v,S);case"VariableDeclarator":return ey(h,v,S);case"BinaryExpression":case"LogicalExpression":return Wd(h,v,S);case"AssignmentPattern":return[S("left")," = ",S("right")];case"OptionalMemberExpression":case"MemberExpression":return vl(h,v,S);case"MetaProperty":return[S("meta"),".",S("property")];case"BindExpression":return R.object&&J.push(S("object")),J.push(nt(Et([Ct,ib(h,v,S)]))),J;case"Identifier":return[R.name,co(h),rb(h),xs(h,S)];case"V8IntrinsicIdentifier":return["%",R.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return sb(h,S);case"FunctionDeclaration":case"FunctionExpression":return hb(h,S,v,M);case"ArrowFunctionExpression":return B8(h,v,S,M);case"YieldExpression":return J.push("yield"),R.delegate&&J.push("*"),R.argument&&J.push(" ",S("argument")),J;case"AwaitExpression":if(J.push("await"),R.argument){J.push(" ",S("argument"));let{parent:ce}=h;if(ye(ce)&&ce.callee===R||Pe(ce)&&ce.object===R){J=[Et([Ct,...J]),Ct];let Qe=h.findAncestor(fe=>fe.type==="AwaitExpression"||fe.type==="BlockStatement");if((Qe==null?void 0:Qe.type)!=="AwaitExpression"||!$r(Qe.argument,fe=>fe===R))return nt(J)}}return J;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return kb(h,v,S);case"ImportDeclaration":return q8(h,v,S);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return t5(h,v,S);case"ImportAttribute":return[S("key"),": ",S("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":return gb(h,v,S);case"ClassBody":return H8(h,v,S);case"ThrowStatement":return S8(h,v,S);case"ReturnStatement":return D8(h,v,S);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Jd(h,v,S);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return oy(h,v,S);case"Property":return Kt(R)?Nv(h,v,S):cb(h,v,S);case"ObjectProperty":return cb(h,v,S);case"ObjectMethod":return Nv(h,v,S);case"Decorator":return["@",S("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Lv(h,v,S);case"SequenceExpression":{let{parent:ce}=h;if(ce.type==="ExpressionStatement"||ce.type==="ForStatement"){let Qe=[];return h.each(({isFirst:fe})=>{fe?Qe.push(S()):Qe.push(",",Et([$t,S()]))},"expressions"),nt(Qe)}return nt(Fn([",",$t],h.map(S,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[S("value"),O];case"UnaryExpression":return J.push(R.operator),/[a-z]$/.test(R.operator)&&J.push(" "),Rt(R.argument)?J.push(nt(["(",Et([Ct,S("argument")]),Ct,")"])):J.push(S("argument")),J;case"UpdateExpression":return J.push(S("argument"),R.operator),R.prefix&&J.reverse(),J;case"ConditionalExpression":return qv(h,v,S,M);case"VariableDeclaration":{let ce=h.map(S,"declarations"),Qe=h.parent,fe=Qe.type==="ForStatement"||Qe.type==="ForInStatement"||Qe.type==="ForOfStatement",ke=R.declarations.some(Re=>Re.init),Te;return ce.length===1&&!Rt(R.declarations[0])?Te=ce[0]:ce.length>0&&(Te=Et(ce[0])),J=[Aa(h),R.kind,Te?[" ",Te]:"",Et(ce.slice(1).map(Re=>[",",ke&&!fe?xt:$t,Re]))],fe&&Qe.body!==R||J.push(O),nt(J)}case"WithStatement":return nt(["with (",S("object"),")",Dc(R.body,S("body"))]);case"IfStatement":{let ce=Dc(R.consequent,S("consequent")),Qe=nt(["if (",nt([Et([Ct,S("test")]),Ct]),")",ce]);if(J.push(Qe),R.alternate){let fe=Rt(R.consequent,Zt.Trailing|Zt.Line)||vn(R),ke=R.consequent.type==="BlockStatement"&&!fe;J.push(ke?" ":xt),Rt(R,Zt.Dangling)&&J.push(Yn(h,v),fe?xt:" "),J.push("else",nt(Dc(R.alternate,S("alternate"),R.alternate.type==="IfStatement")))}return J}case"ForStatement":{let ce=Dc(R.body,S("body")),Qe=Yn(h,v),fe=Qe?[Qe,Ct]:"";return!R.init&&!R.test&&!R.update?[fe,nt(["for (;;)",ce])]:[fe,nt(["for (",nt([Et([Ct,S("init"),";",$t,S("test"),";",$t,S("update")]),Ct]),")",ce])]}case"WhileStatement":return nt(["while (",nt([Et([Ct,S("test")]),Ct]),")",Dc(R.body,S("body"))]);case"ForInStatement":return nt(["for (",S("left")," in ",S("right"),")",Dc(R.body,S("body"))]);case"ForOfStatement":return nt(["for",R.await?" await":""," (",S("left")," of ",S("right"),")",Dc(R.body,S("body"))]);case"DoWhileStatement":{let ce=Dc(R.body,S("body"));return J=[nt(["do",ce])],R.body.type==="BlockStatement"?J.push(" "):J.push(xt),J.push("while (",nt([Et([Ct,S("test")]),Ct]),")",O),J}case"DoExpression":return[R.async?"async ":"","do ",S("body")];case"BreakStatement":case"ContinueStatement":return J.push(R.type==="BreakStatement"?"break":"continue"),R.label&&J.push(" ",S("label")),J.push(O),J;case"LabeledStatement":return R.body.type==="EmptyStatement"?[S("label"),":;"]:[S("label"),": ",S("body")];case"TryStatement":return["try ",S("block"),R.handler?[" ",S("handler")]:"",R.finalizer?[" finally ",S("finalizer")]:""];case"CatchClause":if(R.param){let ce=Rt(R.param,fe=>!nn(fe)||fe.leading&&je(v.originalText,Pt(fe))||fe.trailing&&je(v.originalText,Ft(fe),{backwards:!0})),Qe=S("param");return["catch ",ce?["(",Et([Ct,Qe]),Ct,") "]:["(",Qe,") "],S("body")]}return["catch ",S("body")];case"SwitchStatement":return[nt(["switch (",Et([Ct,S("discriminant")]),Ct,")"])," {",R.cases.length>0?Et([xt,Fn(xt,h.map(({node:ce,isLast:Qe})=>[S(),!Qe&&Yr(ce,v)?xt:""],"cases"))]):"",xt,"}"];case"SwitchCase":{R.test?J.push("case ",S("test"),":"):J.push("default:"),Rt(R,Zt.Dangling)&&J.push(" ",Yn(h,v));let ce=R.consequent.filter(Qe=>Qe.type!=="EmptyStatement");if(ce.length>0){let Qe=Hv(h,v,S,"consequent");J.push(ce.length===1&&ce[0].type==="BlockStatement"?[" ",Qe]:Et([xt,Qe]))}return J}case"DebuggerStatement":return["debugger",O];case"ClassDeclaration":case"ClassExpression":return xb(h,v,S);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return wb(h,v,S);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return Bb(h,v,S);case"TemplateElement":return qr(R.value.raw);case"TemplateLiteral":return GA(h,S,v);case"TaggedTemplateExpression":return HA(S);case"PrivateIdentifier":return["#",R.name];case"PrivateName":return["#",S("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{J.push("module {");let ce=S("body");return ce&&J.push(Et([xt,ce]),xt),J.push("}"),J}case"InterpreterDirective":default:throw new fa(R,"ESTree")}}function Gb(h,v,S){let{parent:M,node:R,key:O}=h,J=[S("expression")];switch(R.type){case"AsConstExpression":J.push(" as const");break;case"AsExpression":case"TSAsExpression":J.push(" as ",S("typeAnnotation"));break;case"SatisfiesExpression":case"TSSatisfiesExpression":J.push(" satisfies ",S("typeAnnotation"));break}return O==="callee"&&ye(M)||O==="object"&&Pe(M)?nt([Et([Ct,...J]),Ct]):J}function Hb(h,v,S){return oy(h,S,v)}function zb(h,v){let{node:S}=h,M=v("id");S.computed&&(M=["[",M,"]"]);let R="";return S.initializer&&(R=v("initializer")),S.init&&(R=v("init")),R?[M," = ",R]:M}function d5(h,v,S){let{node:M}=h,R;if(M.type==="EnumSymbolBody"||M.explicitType)switch(M.type){case"EnumBooleanBody":R="boolean";break;case"EnumNumberBody":R="number";break;case"EnumStringBody":R="string";break;case"EnumSymbolBody":R="symbol";break}return[R?`of ${R} `:"",Hb(h,v,S)]}function Wb(h,v,S){let{node:M}=h;return[Aa(h),M.const?"const ":"","enum ",v("id")," ",M.type==="TSEnumDeclaration"?Hb(h,v,S):v("body")]}function jb(h,v,S){let{node:M}=h,R=[Aa(h),"interface"],O=[],J=[];M.type!=="InterfaceTypeAnnotation"&&O.push(" ",S("id"),S("typeParameters"));let ce=M.typeParameters&&!Rt(M.typeParameters,Zt.Trailing|Zt.Line);return W(M.extends)&&J.push(ce?_n(" ",$t,{groupId:zv(M.typeParameters)}):$t,"extends ",(M.extends.length===1?_a:Et)(Fn([",",$t],h.map(S,"extends")))),Rt(M.id,Zt.Trailing)||W(M.extends)?ce?R.push(nt([...O,Et(J)])):R.push(nt(Et([...O,...J]))):R.push(...O,...J),R.push(" ",S("body")),nt(R)}function f5(h,v,S){let{node:M}=h;if(or(M))return M.type.slice(0,-14).toLowerCase();let R=v.semi?";":"";switch(M.type){case"DeclareClass":return xb(h,v,S);case"DeclareFunction":return[Aa(h),"function ",S("id"),S("predicate"),R];case"DeclareModule":return["declare module ",S("id")," ",S("body")];case"DeclareModuleExports":return["declare module.exports",xs(h,S),R];case"DeclareVariable":return[Aa(h),M.kind??"var"," ",S("id"),R];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return kb(h,v,S);case"DeclareOpaqueType":case"OpaqueType":return On(h,v,S);case"DeclareTypeAlias":case"TypeAlias":return ur(h,v,S);case"IntersectionTypeAnnotation":return vi(h,v,S);case"UnionTypeAnnotation":return cr(h,v,S);case"ConditionalTypeAnnotation":return qv(h,v,S);case"InferTypeAnnotation":return YB(h,v,S);case"FunctionTypeAnnotation":return ny(h,v,S);case"TupleTypeAnnotation":return Lv(h,v,S);case"TupleTypeLabeledElement":return KB(h,v,S);case"TupleTypeSpreadElement":return qB(h,v,S);case"GenericTypeAnnotation":return[S("id"),gg(h,v,S,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return JB(h,v,S);case"TypeAnnotation":return $B(h,v,S);case"TypeParameter":return Cb(h,v,S);case"TypeofTypeAnnotation":return tb(h,S);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return eb(S);case"DeclareEnum":case"EnumDeclaration":return Wb(h,S,v);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return d5(h,S,v);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":return zb(h,S);case"FunctionTypeParam":{let O=M.name?S("name"):h.parent.this===M?"this":"";return[O,co(h),O?": ":"",S("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return jb(h,v,S);case"ClassImplements":case"InterfaceExtends":return[S("id"),S("typeParameters")];case"NullableTypeAnnotation":return["?",S("typeAnnotation")];case"Variance":{let{kind:O}=M;return ub.ok(O==="plus"||O==="minus"),O==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",S("argument")];case"ObjectTypeCallProperty":return[M.static?"static ":"",S("value")];case"ObjectTypeMappedTypeProperty":return R8(h,v,S);case"ObjectTypeIndexer":return[M.static?"static ":"",M.variance?S("variance"):"","[",S("id"),M.id?": ":"",S("key"),"]: ",S("value")];case"ObjectTypeProperty":{let O="";return M.proto?O="proto ":M.static&&(O="static "),[O,M.kind!=="init"?M.kind+" ":"",M.variance?S("variance"):"",Ag(h,v,S),co(h),Kt(M)?"":": ",S("value")]}case"ObjectTypeAnnotation":return oy(h,v,S);case"ObjectTypeInternalSlot":return[M.static?"static ":"","[[",S("id"),"]]",co(h),M.method?"":": ",S("value")];case"ObjectTypeSpreadProperty":return sb(h,S);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[S("qualification"),".",S("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(M.value);case"StringLiteralTypeAnnotation":return qr(Ot(bi(M),v));case"NumberLiteralTypeAnnotation":return Sc(M.raw??M.extra.raw);case"BigIntLiteralTypeAnnotation":return jv(M.raw??M.extra.raw);case"TypeCastExpression":return["(",S("expression"),xs(h,S),")"];case"TypePredicate":return nb(h,S);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return gg(h,v,S,"params");case"InferredPredicate":case"DeclaredPredicate":return[h.key==="predicate"&&h.parent.type!=="DeclareFunction"&&!h.parent.returnType?": ":" ","%checks",...M.type==="DeclaredPredicate"?["(",S("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Gb(h,v,S)}}function A5(h,v,S){var M;let{node:R}=h;if(!R.type.startsWith("TS"))return;if(gi(R))return R.type.slice(2,-7).toLowerCase();let O=v.semi?";":"",J=[];switch(R.type){case"TSThisType":return"this";case"TSTypeAssertion":{let ce=!(mr(R.expression)||Jr(R.expression)),Qe=nt(["<",Et([Ct,S("typeAnnotation")]),Ct,">"]),fe=[_n("("),Et([Ct,S("expression")]),Ct,_n(")")];return ce?zo([[Qe,S("expression")],[Qe,nt(fe,{shouldBreak:!0})],[Qe,S("expression")]]):nt([Qe,S("expression")])}case"TSDeclareFunction":return hb(h,S,v);case"TSExportAssignment":return["export = ",S("expression"),O];case"TSModuleBlock":return gb(h,v,S);case"TSInterfaceBody":case"TSTypeLiteral":return oy(h,v,S);case"TSTypeAliasDeclaration":return ur(h,v,S);case"TSQualifiedName":return[S("left"),".",S("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return wb(h,v,S);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return Bb(h,v,S);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[S("expression"),S("typeParameters")];case"TSTemplateLiteralType":return GA(h,S,v);case"TSNamedTupleMember":return KB(h,v,S);case"TSRestType":return qB(h,v,S);case"TSOptionalType":return[S("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return jb(h,v,S);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return gg(h,v,S,"params");case"TSTypeParameter":return Cb(h,v,S);case"TSAsExpression":case"TSSatisfiesExpression":return Gb(h,v,S);case"TSArrayType":return eb(S);case"TSPropertySignature":return[R.readonly?"readonly ":"",Ag(h,v,S),co(h),xs(h,S)];case"TSParameterProperty":return[iy(R),R.static?"static ":"",R.override?"override ":"",R.readonly?"readonly ":"",S("parameter")];case"TSTypeQuery":return tb(h,S);case"TSIndexSignature":{let ce=R.parameters.length>1?_n(Do(v)?",":""):"",Qe=nt([Et([Ct,Fn([", ",Ct],h.map(S,"parameters"))]),ce,Ct]),fe=h.parent.type==="ClassBody"&&h.key==="body";return[fe&&R.static?"static ":"",R.readonly?"readonly ":"","[",R.parameters?Qe:"","]",xs(h,S),fe?O:""]}case"TSTypePredicate":return nb(h,S);case"TSNonNullExpression":return[S("expression"),"!"];case"TSImportType":return[R.isTypeOf?"typeof ":"","import(",S("argument"),")",R.qualifier?[".",S("qualifier")]:"",gg(h,v,S,R.typeArguments?"typeArguments":"typeParameters")];case"TSLiteralType":return S("literal");case"TSIndexedAccessType":return JB(h,v,S);case"TSTypeOperator":return[R.operator," ",S("typeAnnotation")];case"TSMappedType":return L8(h,v,S);case"TSMethodSignature":{let ce=R.kind&&R.kind!=="method"?`${R.kind} `:"";J.push(iy(R),ce,R.computed?"[":"",S("key"),R.computed?"]":"",co(h));let Qe=Er(h,S,v,!1,!0),fe=R.returnType?"returnType":"typeAnnotation",ke=R[fe],Te=ke?xs(h,S,fe):"",Re=vs(R,Te);return J.push(Re?nt(Qe):Qe),ke&&J.push(nt(Te)),nt(J)}case"TSNamespaceExportDeclaration":return["export as namespace ",S("id"),v.semi?";":""];case"TSEnumDeclaration":return Wb(h,S,v);case"TSEnumMember":return zb(h,S);case"TSImportEqualsDeclaration":return[R.isExport?"export ":"","import ",Rb(R,!1),S("id")," = ",S("moduleReference"),v.semi?";":""];case"TSExternalModuleReference":return["require(",S("expression"),")"];case"TSModuleDeclaration":{let{parent:ce}=h,Qe=ce.type==="TSModuleDeclaration",fe=((M=R.body)==null?void 0:M.type)==="TSModuleDeclaration";if(Qe)J.push(".");else if(J.push(Aa(h)),!(R.kind==="global"||R.global)){let ke=R.kind??(pe(R.id)||Vv(v,Ft(R),Ft(R.id)).trim().endsWith("module")?"module":"namespace");J.push(ke," ")}return J.push(S("id")),fe?J.push(S("body")):R.body?J.push(" ",nt(S("body"))):J.push(O),J}case"TSConditionalType":return qv(h,v,S);case"TSInferType":return YB(h,v,S);case"TSIntersectionType":return vi(h,v,S);case"TSUnionType":return cr(h,v,S);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return ny(h,v,S);case"TSTupleType":return Lv(h,v,S);case"TSTypeReference":return[S("typeName"),gg(h,v,S,"typeParameters")];case"TSTypeAnnotation":return $B(h,v,S);case"TSEmptyBodyFunctionExpression":return Ov(h,v,S);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return XB(h,S,"?");case"TSJSDocNonNullableType":return XB(h,S,"!");case"TSParenthesizedType":default:throw new fa(R,"TypeScript")}}function g5(h,v,S,M){if(ag(h))return kd(h,v);for(let R of[jd,Hs,f5,A5,p5]){let O=R(h,v,S,M);if(O!==void 0)return O}}var m5=dt(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function y5(h,v,S,M){var R;h.isRoot&&((R=v.__onHtmlBindingRoot)==null||R.call(v,h.node,v));let O=g5(h,v,S,M);if(!O)return"";let{node:J}=h;if(m5(J))return O;let ce=W(J.decorators),Qe=Tv(h,v,S),fe=J.type==="ClassExpression";if(ce&&!fe)return wr(O,Re=>nt([Qe,Re]));let ke=eu(h,v),Te=W8(h,v);return!Qe&&!ke&&!Te?O:wr(O,Re=>[Te?";":"",ke?"(":"",ke&&fe&&ce?[Et([$t,Qe,Re]),$t]:[Qe,Re],ke?")":""])}var E5=y5,C5={avoidAstMutation:!0},v5=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}],Vb={};c(Vb,{getVisitorKeys:()=>S5,massageAstNode:()=>Yb,print:()=>w5});var x5={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},I5=x5,D5=Tn(I5),S5=D5;function w5(h,v,S){let{node:M}=h;switch(M.type){case"JsonRoot":return[S("node"),xt];case"ArrayExpression":{if(M.elements.length===0)return"[]";let R=h.map(()=>h.node===null?"null":S(),"elements");return["[",Et([xt,Fn([",",xt],R)]),xt,"]"]}case"ObjectExpression":return M.properties.length===0?"{}":["{",Et([xt,Fn([",",xt],h.map(S,"properties"))]),xt,"}"];case"ObjectProperty":return[S("key"),": ",S("value")];case"UnaryExpression":return[M.operator==="+"?"":M.operator,S("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return M.value?"true":"false";case"StringLiteral":return JSON.stringify(M.value);case"NumericLiteral":return Jb(h)?JSON.stringify(String(M.value)):JSON.stringify(M.value);case"Identifier":return Jb(h)?JSON.stringify(M.name):M.name;case"TemplateLiteral":return S(["quasis",0]);case"TemplateElement":return JSON.stringify(M.value.cooked);default:throw new fa(M,"JSON")}}function Jb(h){return h.key==="key"&&h.parent.type==="ObjectProperty"}var B5=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Yb(h,v){let{type:S}=h;if(S==="ObjectProperty"){let{key:M}=h;M.type==="Identifier"?v.key={type:"StringLiteral",value:M.name}:M.type==="NumericLiteral"&&(v.key={type:"StringLiteral",value:String(M.value)});return}if(S==="UnaryExpression"&&h.operator==="+")return v.argument;if(S==="ArrayExpression"){for(let[M,R]of h.elements.entries())R===null&&v.elements.splice(M,0,{type:"NullLiteral"});return}if(S==="TemplateLiteral")return{type:"StringLiteral",value:h.quasis[0].value.cooked}}Yb.ignoredProperties=B5;var ay={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},np="JavaScript",b5={arrowParens:{category:np,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:ay.bracketSameLine,bracketSpacing:ay.bracketSpacing,jsxBracketSameLine:{category:np,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:np,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalTernaries:{category:np,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:ay.singleQuote,jsxSingleQuote:{category:np,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:np,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:np,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:ay.singleAttributePerLine},T5=b5,M5={estree:_,"estree-json":Vb},_5=[...B,...v5];return A(w)})})(yee);const Eee='',Cee=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Eee,svgWidth:24,svgHeight:24})),vee=Cee,xee='',Iee=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:xee,svgWidth:24,svgHeight:24})),YN=Iee,Dee='',See=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Dee,svgWidth:24,svgHeight:24})),XN=See,wee='',Bee=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:wee,svgWidth:24,svgHeight:24})),bee=Bee,Tee='',Mee=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Tee,svgWidth:24,svgHeight:24})),_ee=Mee,Fee='',Pee=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Fee,svgWidth:24,svgHeight:24})),qN=Pee,Qee='',kee=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Qee,svgWidth:24,svgHeight:24})),Ree=kee,Lee='',Nee=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Lee,svgWidth:24,svgHeight:24})),Oee=Nee,Uee='',Gee=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Uee,svgWidth:24,svgHeight:24})),Hee=Gee,zee='',Wee=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:zee,svgWidth:24,svgHeight:24})),jee=Wee,Vee='',Jee=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Vee,svgWidth:24,svgHeight:24})),Yee=Jee,Xee='',qee=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Xee,svgWidth:24,svgHeight:24})),Kee=qee,Zee='',$ee=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Zee,svgWidth:24,svgHeight:24})),ete=$ee,tte='',nte=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:tte,svgWidth:24,svgHeight:24})),rte=nte,ite='',ste=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:ite,svgWidth:24,svgHeight:24})),ote=ste,ate='',lte=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:ate,svgWidth:24,svgHeight:24})),ute=lte,cte='',hte=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:cte,svgWidth:24,svgHeight:24})),pte=hte,dte='',fte=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:dte,svgWidth:24,svgHeight:24})),Ate=fte,gte='',mte=le.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:gte,svgWidth:24,svgHeight:24})),yte=mte;function X(t,e,n){return new Xt().setHSL(t/360,e/100,n/100,"srgb")}const c3={zinc:{light:{background:X(0,0,100),foreground:X(240,10,3.9),card:X(0,0,100),cardForeground:X(240,10,3.9),popover:X(0,0,100),popoverForeground:X(240,10,3.9),primary:X(240,5.9,10),primaryForeground:X(0,0,98),secondary:X(240,4.8,95.9),secondaryForeground:X(240,5.9,10),muted:X(240,4.8,95.9),mutedForeground:X(240,3.8,46.1),accent:X(240,4.8,95.9),accentForeground:X(240,5.9,10),destructive:X(0,84.2,60.2),destructiveForeground:X(0,0,98),border:X(240,5.9,90),input:X(240,5.9,90),ring:X(240,5.9,10)},dark:{background:X(240,10,3.9),foreground:X(0,0,98),card:X(240,10,3.9),cardForeground:X(0,0,98),popover:X(240,10,3.9),popoverForeground:X(0,0,98),primary:X(0,0,98),primaryForeground:X(240,5.9,10),secondary:X(240,3.7,15.9),secondaryForeground:X(0,0,98),muted:X(240,3.7,15.9),mutedForeground:X(240,5,64.9),accent:X(240,3.7,15.9),accentForeground:X(0,0,98),destructive:X(0,62.8,30.6),destructiveForeground:X(0,0,98),border:X(240,3.7,15.9),input:X(240,3.7,15.9),ring:X(240,4.9,83.9)}},slate:{light:{background:X(0,0,100),foreground:X(222.2,84,4.9),card:X(0,0,100),cardForeground:X(222.2,84,4.9),popover:X(0,0,100),popoverForeground:X(222.2,84,4.9),primary:X(222.2,47.4,11.2),primaryForeground:X(210,40,98),secondary:X(210,40,96.1),secondaryForeground:X(222.2,47.4,11.2),muted:X(210,40,96.1),mutedForeground:X(215.4,16.3,46.9),accent:X(210,40,96.1),accentForeground:X(222.2,47.4,11.2),destructive:X(0,84.2,60.2),destructiveForeground:X(210,40,98),border:X(214.3,31.8,91.4),input:X(214.3,31.8,91.4),ring:X(222.2,84,4.9)},dark:{background:X(222.2,84,4.9),foreground:X(210,40,98),card:X(222.2,84,4.9),cardForeground:X(210,40,98),popover:X(222.2,84,4.9),popoverForeground:X(210,40,98),primary:X(210,40,98),primaryForeground:X(222.2,47.4,11.2),secondary:X(217.2,32.6,17.5),secondaryForeground:X(210,40,98),muted:X(217.2,32.6,17.5),mutedForeground:X(215,20.2,65.1),accent:X(217.2,32.6,17.5),accentForeground:X(210,40,98),destructive:X(0,62.8,30.6),destructiveForeground:X(210,40,98),border:X(217.2,32.6,17.5),input:X(217.2,32.6,17.5),ring:X(212.7,26.8,83.9)}},stone:{light:{background:X(0,0,100),foreground:X(20,14.3,4.1),card:X(0,0,100),cardForeground:X(20,14.3,4.1),popover:X(0,0,100),popoverForeground:X(20,14.3,4.1),primary:X(24,9.8,10),primaryForeground:X(60,9.1,97.8),secondary:X(60,4.8,95.9),secondaryForeground:X(24,9.8,10),muted:X(60,4.8,95.9),mutedForeground:X(25,5.3,44.7),accent:X(60,4.8,95.9),accentForeground:X(24,9.8,10),destructive:X(0,84.2,60.2),destructiveForeground:X(60,9.1,97.8),border:X(20,5.9,90),input:X(20,5.9,90),ring:X(20,14.3,4.1)},dark:{background:X(20,14.3,4.1),foreground:X(60,9.1,97.8),card:X(20,14.3,4.1),cardForeground:X(60,9.1,97.8),popover:X(20,14.3,4.1),popoverForeground:X(60,9.1,97.8),primary:X(60,9.1,97.8),primaryForeground:X(24,9.8,10),secondary:X(12,6.5,15.1),secondaryForeground:X(60,9.1,97.8),muted:X(12,6.5,15.1),mutedForeground:X(24,5.4,63.9),accent:X(12,6.5,15.1),accentForeground:X(60,9.1,97.8),destructive:X(0,62.8,30.6),destructiveForeground:X(60,9.1,97.8),border:X(12,6.5,15.1),input:X(12,6.5,15.1),ring:X(24,5.7,82.9)}},gray:{light:{background:X(0,0,100),foreground:X(224,71.4,4.1),card:X(0,0,100),cardForeground:X(224,71.4,4.1),popover:X(0,0,100),popoverForeground:X(224,71.4,4.1),primary:X(220.9,39.3,11),primaryForeground:X(210,20,98),secondary:X(220,14.3,95.9),secondaryForeground:X(220.9,39.3,11),muted:X(220,14.3,95.9),mutedForeground:X(220,8.9,46.1),accent:X(220,14.3,95.9),accentForeground:X(220.9,39.3,11),destructive:X(0,84.2,60.2),destructiveForeground:X(210,20,98),border:X(220,13,91),input:X(220,13,91),ring:X(224,71.4,4.1)},dark:{background:X(224,71.4,4.1),foreground:X(210,20,98),card:X(224,71.4,4.1),cardForeground:X(210,20,98),popover:X(224,71.4,4.1),popoverForeground:X(210,20,98),primary:X(210,20,98),primaryForeground:X(220.9,39.3,11),secondary:X(215,27.9,16.9),secondaryForeground:X(210,20,98),muted:X(215,27.9,16.9),mutedForeground:X(217.9,10.6,64.9),accent:X(215,27.9,16.9),accentForeground:X(210,20,98),destructive:X(0,62.8,30.6),destructiveForeground:X(210,20,98),border:X(215,27.9,16.9),input:X(215,27.9,16.9),ring:X(216,12.2,83.9)}},neutral:{light:{background:X(0,0,100),foreground:X(0,0,3.9),card:X(0,0,100),cardForeground:X(0,0,3.9),popover:X(0,0,100),popoverForeground:X(0,0,3.9),primary:X(0,0,9),primaryForeground:X(0,0,98),secondary:X(0,0,96.1),secondaryForeground:X(0,0,9),muted:X(0,0,96.1),mutedForeground:X(0,0,45.1),accent:X(0,0,96.1),accentForeground:X(0,0,9),destructive:X(0,84.2,60.2),destructiveForeground:X(0,0,98),border:X(0,0,89.8),input:X(0,0,89.8),ring:X(0,0,3.9)},dark:{background:X(0,0,3.9),foreground:X(0,0,98),card:X(0,0,3.9),cardForeground:X(0,0,98),popover:X(0,0,3.9),popoverForeground:X(0,0,98),primary:X(0,0,98),primaryForeground:X(0,0,9),secondary:X(0,0,14.9),secondaryForeground:X(0,0,98),muted:X(0,0,14.9),mutedForeground:X(0,0,63.9),accent:X(0,0,14.9),accentForeground:X(0,0,98),destructive:X(0,62.8,30.6),destructiveForeground:X(0,0,98),border:X(0,0,14.9),input:X(0,0,14.9),ring:X(0,0,83.1)}},red:{light:{background:X(0,0,100),foreground:X(0,0,3.9),card:X(0,0,100),cardForeground:X(0,0,3.9),popover:X(0,0,100),popoverForeground:X(0,0,3.9),primary:X(0,72.2,50.6),primaryForeground:X(0,85.7,97.3),secondary:X(0,0,96.1),secondaryForeground:X(0,0,9),muted:X(0,0,96.1),mutedForeground:X(0,0,45.1),accent:X(0,0,96.1),accentForeground:X(0,0,9),destructive:X(0,84.2,60.2),destructiveForeground:X(0,0,98),border:X(0,0,89.8),input:X(0,0,89.8),ring:X(0,72.2,50.6)},dark:{background:X(0,0,3.9),foreground:X(0,0,98),card:X(0,0,3.9),cardForeground:X(0,0,98),popover:X(0,0,3.9),popoverForeground:X(0,0,98),primary:X(0,72.2,50.6),primaryForeground:X(0,85.7,97.3),secondary:X(0,0,14.9),secondaryForeground:X(0,0,98),muted:X(0,0,14.9),mutedForeground:X(0,0,63.9),accent:X(0,0,14.9),accentForeground:X(0,0,98),destructive:X(0,62.8,30.6),destructiveForeground:X(0,0,98),border:X(0,0,14.9),input:X(0,0,14.9),ring:X(0,72.2,50.6)}},rose:{light:{background:X(0,0,100),foreground:X(240,10,3.9),card:X(0,0,100),cardForeground:X(240,10,3.9),popover:X(0,0,100),popoverForeground:X(240,10,3.9),primary:X(346.8,77.2,49.8),primaryForeground:X(355.7,100,97.3),secondary:X(240,4.8,95.9),secondaryForeground:X(240,5.9,10),muted:X(240,4.8,95.9),mutedForeground:X(240,3.8,46.1),accent:X(240,4.8,95.9),accentForeground:X(240,5.9,10),destructive:X(0,84.2,60.2),destructiveForeground:X(0,0,98),border:X(240,5.9,90),input:X(240,5.9,90),ring:X(346.8,77.2,49.8)},dark:{background:X(20,14.3,4.1),foreground:X(0,0,95),popover:X(0,0,9),popoverForeground:X(0,0,95),card:X(24,9.8,10),cardForeground:X(0,0,95),primary:X(346.8,77.2,49.8),primaryForeground:X(355.7,100,97.3),secondary:X(240,3.7,15.9),secondaryForeground:X(0,0,98),muted:X(0,0,15),mutedForeground:X(240,5,64.9),accent:X(12,6.5,15.1),accentForeground:X(0,0,98),destructive:X(0,62.8,30.6),destructiveForeground:X(0,85.7,97.3),border:X(240,3.7,15.9),input:X(240,3.7,15.9),ring:X(346.8,77.2,49.8)}},orange:{light:{background:X(0,0,100),foreground:X(20,14.3,4.1),card:X(0,0,100),cardForeground:X(20,14.3,4.1),popover:X(0,0,100),popoverForeground:X(20,14.3,4.1),primary:X(24.6,95,53.1),primaryForeground:X(60,9.1,97.8),secondary:X(60,4.8,95.9),secondaryForeground:X(24,9.8,10),muted:X(60,4.8,95.9),mutedForeground:X(25,5.3,44.7),accent:X(60,4.8,95.9),accentForeground:X(24,9.8,10),destructive:X(0,84.2,60.2),destructiveForeground:X(60,9.1,97.8),border:X(20,5.9,90),input:X(20,5.9,90),ring:X(24.6,95,53.1)},dark:{background:X(20,14.3,4.1),foreground:X(60,9.1,97.8),card:X(20,14.3,4.1),cardForeground:X(60,9.1,97.8),popover:X(20,14.3,4.1),popoverForeground:X(60,9.1,97.8),primary:X(20.5,90.2,48.2),primaryForeground:X(60,9.1,97.8),secondary:X(12,6.5,15.1),secondaryForeground:X(60,9.1,97.8),muted:X(12,6.5,15.1),mutedForeground:X(24,5.4,63.9),accent:X(12,6.5,15.1),accentForeground:X(60,9.1,97.8),destructive:X(0,72.2,50.6),destructiveForeground:X(60,9.1,97.8),border:X(12,6.5,15.1),input:X(12,6.5,15.1),ring:X(20.5,90.2,48.2)}},green:{light:{background:X(0,0,100),foreground:X(240,10,3.9),card:X(0,0,100),cardForeground:X(240,10,3.9),popover:X(0,0,100),popoverForeground:X(240,10,3.9),primary:X(142.1,76.2,36.3),primaryForeground:X(355.7,100,97.3),secondary:X(240,4.8,95.9),secondaryForeground:X(240,5.9,10),muted:X(240,4.8,95.9),mutedForeground:X(240,3.8,46.1),accent:X(240,4.8,95.9),accentForeground:X(240,5.9,10),destructive:X(0,84.2,60.2),destructiveForeground:X(0,0,98),border:X(240,5.9,90),input:X(240,5.9,90),ring:X(142.1,76.2,36.3)},dark:{background:X(20,14.3,4.1),foreground:X(0,0,95),popover:X(0,0,9),popoverForeground:X(0,0,95),card:X(24,9.8,10),cardForeground:X(0,0,95),primary:X(142.1,70.6,45.3),primaryForeground:X(144.9,80.4,10),secondary:X(240,3.7,15.9),secondaryForeground:X(0,0,98),muted:X(0,0,15),mutedForeground:X(240,5,64.9),accent:X(12,6.5,15.1),accentForeground:X(0,0,98),destructive:X(0,62.8,30.6),destructiveForeground:X(0,85.7,97.3),border:X(240,3.7,15.9),input:X(240,3.7,15.9),ring:X(142.4,71.8,29.2)}},blue:{light:{background:X(0,0,100),foreground:X(222.2,84,4.9),card:X(0,0,100),cardForeground:X(222.2,84,4.9),popover:X(0,0,100),popoverForeground:X(222.2,84,4.9),primary:X(221.2,83.2,53.3),primaryForeground:X(210,40,98),secondary:X(210,40,96.1),secondaryForeground:X(222.2,47.4,11.2),muted:X(210,40,96.1),mutedForeground:X(215.4,16.3,46.9),accent:X(210,40,96.1),accentForeground:X(222.2,47.4,11.2),destructive:X(0,84.2,60.2),destructiveForeground:X(210,40,98),border:X(214.3,31.8,91.4),input:X(214.3,31.8,91.4),ring:X(221.2,83.2,53.3)},dark:{background:X(222.2,84,4.9),foreground:X(210,40,98),card:X(222.2,84,4.9),cardForeground:X(210,40,98),popover:X(222.2,84,4.9),popoverForeground:X(210,40,98),primary:X(217.2,91.2,59.8),primaryForeground:X(222.2,47.4,11.2),secondary:X(217.2,32.6,17.5),secondaryForeground:X(210,40,98),muted:X(217.2,32.6,17.5),mutedForeground:X(215,20.2,65.1),accent:X(217.2,32.6,17.5),accentForeground:X(210,40,98),destructive:X(0,62.8,30.6),destructiveForeground:X(210,40,98),border:X(217.2,32.6,17.5),input:X(217.2,32.6,17.5),ring:X(224.3,76.3,48)}},yellow:{light:{background:X(0,0,100),foreground:X(20,14.3,4.1),card:X(0,0,100),cardForeground:X(20,14.3,4.1),popover:X(0,0,100),popoverForeground:X(20,14.3,4.1),primary:X(47.9,95.8,53.1),primaryForeground:X(26,83.3,14.1),secondary:X(60,4.8,95.9),secondaryForeground:X(24,9.8,10),muted:X(60,4.8,95.9),mutedForeground:X(25,5.3,44.7),accent:X(60,4.8,95.9),accentForeground:X(24,9.8,10),destructive:X(0,84.2,60.2),destructiveForeground:X(60,9.1,97.8),border:X(20,5.9,90),input:X(20,5.9,90),ring:X(20,14.3,4.1)},dark:{background:X(20,14.3,4.1),foreground:X(60,9.1,97.8),card:X(20,14.3,4.1),cardForeground:X(60,9.1,97.8),popover:X(20,14.3,4.1),popoverForeground:X(60,9.1,97.8),primary:X(47.9,95.8,53.1),primaryForeground:X(26,83.3,14.1),secondary:X(12,6.5,15.1),secondaryForeground:X(60,9.1,97.8),muted:X(12,6.5,15.1),mutedForeground:X(24,5.4,63.9),accent:X(12,6.5,15.1),accentForeground:X(60,9.1,97.8),destructive:X(0,62.8,30.6),destructiveForeground:X(60,9.1,97.8),border:X(12,6.5,15.1),input:X(12,6.5,15.1),ring:X(35.5,91.7,32.9)}},violet:{light:{background:X(0,0,100),foreground:X(224,71.4,4.1),card:X(0,0,100),cardForeground:X(224,71.4,4.1),popover:X(0,0,100),popoverForeground:X(224,71.4,4.1),primary:X(262.1,83.3,57.8),primaryForeground:X(210,20,98),secondary:X(220,14.3,95.9),secondaryForeground:X(220.9,39.3,11),muted:X(220,14.3,95.9),mutedForeground:X(220,8.9,46.1),accent:X(220,14.3,95.9),accentForeground:X(220.9,39.3,11),destructive:X(0,84.2,60.2),destructiveForeground:X(210,20,98),border:X(220,13,91),input:X(220,13,91),ring:X(262.1,83.3,57.8)},dark:{background:X(224,71.4,4.1),foreground:X(210,20,98),card:X(224,71.4,4.1),cardForeground:X(210,20,98),popover:X(224,71.4,4.1),popoverForeground:X(210,20,98),primary:X(263.4,70,50.4),primaryForeground:X(210,20,98),secondary:X(215,27.9,16.9),secondaryForeground:X(210,20,98),muted:X(215,27.9,16.9),mutedForeground:X(217.9,10.6,64.9),accent:X(215,27.9,16.9),accentForeground:X(210,20,98),destructive:X(0,62.8,30.6),destructiveForeground:X(210,20,98),border:X(215,27.9,16.9),input:X(215,27.9,16.9),ring:X(263.4,70,50.4)}}},HI=Yt(8),_s={lg:HI,md:bn(()=>HI.value-2),sm:bn(()=>HI.value-4)},Ete=Yt("slate"),Nt={};for(const t in c3.slate.light){const e=t;Nt[e]=bn(()=>c3[Ete.value][e4.value?"dark":"light"][e])}function Cte(t){return te.jsx(Lr,{scrollbarColor:Nt.foreground,scrollbarBorderRadius:4,scrollbarOpacity:.3,lineHeight:"150%",borderColor:Nt.border,color:Nt.foreground,...t})}const vte={default:{containerHoverProps:{backgroundOpacity:.9},containerProps:{backgroundColor:Nt.primary},defaultProps:{color:Nt.primaryForeground}},destructive:{containerHoverProps:{backgroundOpacity:.9},containerProps:{backgroundColor:Nt.destructive},defaultProps:{color:Nt.destructiveForeground}},outline:{containerHoverProps:{backgroundColor:Nt.accent},containerProps:{borderWidth:1,borderColor:Nt.input,backgroundColor:Nt.background}},secondary:{containerHoverProps:{backgroundOpacity:.8},containerProps:{backgroundColor:Nt.secondary},defaultProps:{color:Nt.secondaryForeground}},ghost:{containerHoverProps:{backgroundColor:Nt.accent},defaultProps:{}},link:{containerProps:{},defaultProps:{color:Nt.primary}}},xte={default:{height:40,paddingX:16,paddingY:8},sm:{height:36,paddingX:12},lg:{height:42,paddingX:32},icon:{height:40,width:40}},Ta=le.forwardRef(({children:t,variant:e="default",size:n="default",disabled:r=!1,hover:i,...s},o)=>{const{containerProps:a,defaultProps:l,containerHoverProps:c}=vte[e],p=xte[n];return te.jsx(Ht,{borderRadius:_s.md,alignItems:"center",justifyContent:"center",...a,...p,borderOpacity:r?.5:void 0,backgroundOpacity:r?.5:void 0,cursor:r?void 0:"pointer",flexDirection:"row",hover:{...c,...i},ref:o,...s,children:te.jsx(Lr,{fontSize:14,lineHeight:20,fontWeight:"medium",wordBreak:"keep-all",...l,opacity:r?.5:void 0,children:t})})}),GE=le.forwardRef(({children:t,...e},n)=>te.jsx(Ht,{flexDirection:"column",borderRadius:_s.lg,borderWidth:1,backgroundColor:Nt.card,ref:n,...e,children:te.jsx(Lr,{color:Nt.cardForeground,children:t})})),h2=le.forwardRef((t,e)=>te.jsx(Ht,{padding:24,flexDirection:"column",gap:6,ref:e,...t}));function p2(t){return te.jsx(Lr,{fontWeight:"semi-bold",letterSpacing:-.4,fontSize:24,lineHeight:"100%",...t})}function d2(t){return te.jsx(Lr,{fontSize:14,lineHeight:20,color:Nt.mutedForeground,...t})}const f2=le.forwardRef((t,e)=>te.jsx(Ht,{padding:24,paddingTop:0,ref:e,...t})),A2=le.forwardRef((t,e)=>te.jsx(Ht,{flexDirection:"row",alignItems:"center",padding:24,paddingTop:0,ref:e,...t})),oE=le.forwardRef(({orientation:t="horizontal",...e},n)=>te.jsx(Ht,{flexShrink:0,backgroundColor:Nt.border,width:t==="horizontal"?"100%":1,height:t==="horizontal"?1:"100%",ref:n,...e})),zB=le.createContext({}),KN=le.forwardRef(({value:t,onValueChange:e,defaultValue:n,children:r,...i},s)=>{const[o,a]=le.useState(n),l=le.useMemo(()=>t==null?{value:o,setValue:c=>{a(c),e==null||e(c)}}:{value:t,setValue:e},[o,e,t]);return te.jsx(Ht,{flexDirection:"column",ref:s,...i,children:te.jsx(zB.Provider,{value:l,children:r})})}),ZN=le.forwardRef(({children:t,...e},n)=>te.jsx(Ht,{height:40,flexDirection:"row",alignItems:"center",borderRadius:_s.md,backgroundColor:Nt.muted,padding:4,flexShrink:0,ref:n,...e,children:te.jsx(Lr,{color:Nt.mutedForeground,children:t})})),g2=le.forwardRef(({children:t,value:e,disabled:n=!1,...r},i)=>{const{setValue:s,value:o}=le.useContext(zB),a=e===o;return te.jsx(Ht,{onClick:n?void 0:l=>s==null?void 0:s(e),cursor:n?void 0:"pointer",flexDirection:"row",alignItems:"center",borderRadius:_s.sm,paddingX:12,backgroundOpacity:n?.5:void 0,backgroundColor:a?Nt.background:void 0,paddingY:6,justifyContent:"center",ref:i,...r,children:te.jsx(Lr,{opacity:n?.5:void 0,color:a?Nt.foreground:void 0,fontSize:14,fontWeight:"medium",lineHeight:20,wordBreak:"keep-all",children:t})})}),m2=le.forwardRef(({value:t,...e},n)=>{const{value:r}=le.useContext(zB);return t!=r?null:te.jsx(Ht,{marginTop:8,ref:n,...e})}),$N=le.createContext(void 0);function Ite({children:t}){const[e,n]=le.useState(void 0),r=le.useCallback((i,s)=>n(o=>o===i?s:o),[]);return te.jsxs(te.Fragment,{children:[te.jsx(Dte,{set:r,children:t}),e]})}const Dte=le.memo(({children:t,set:e})=>te.jsx($N.Provider,{value:e,children:t})),WB=le.createContext(void 0);function jB(){const t=le.useContext(WB);if(t==null)throw new Error("Can only be used inside a component.");return t}function e8({children:t,open:e,onOpenChange:n,defaultOpen:r}){const[i,s]=le.useState(r??!1),o=e??i,a=le.useContext($N);if(a==null)throw new Error("Can only be used inside a component.");const l=le.useRef(void 0),c=le.useRef(void 0);le.useEffect(()=>{if(!o){a(c.current,void 0),c.current=void 0;return}l.current!=null&&(a(void 0,l.current),c.current=l.current)},[o,a]);const p=le.useRef(n);p.current=n;const d=e!=null,A=le.useMemo(()=>({setContent(y){c.current!=null&&(a(c.current,y),c.current=y),l.current=y},setOpen(y){var C;d||s(y),(C=p.current)==null||C.call(p,y)}}),[d,a]);return te.jsx(WB.Provider,{value:A,children:t})}const t8=le.forwardRef(({onClick:t,...e},n)=>{const{setOpen:r}=jB();return te.jsx(Ht,{onClick:i=>{r(!0),t==null||t(i)},ref:n,...e})}),n8=le.forwardRef((t,e)=>te.jsx(Ht,{onPointerMove:n=>n.stopPropagation(),onPointerEnter:n=>n.stopPropagation(),onPointerLeave:n=>n.stopPropagation(),onWheel:n=>n.stopPropagation(),positionType:"absolute",inset:0,zIndexOffset:50,backgroundColor:"black",backgroundOpacity:.8,ref:e,...t}));function mv(){const{setOpen:t}=jB();return le.useCallback(()=>t(!1),[t])}function r8({children:t}){const e=jB();return le.useEffect(()=>e.setContent(te.jsx(WB.Provider,{value:e,children:t})),[t,e]),null}const Ste=le.forwardRef(({children:t,sm:e,...n},r)=>{const i=mv();return te.jsx(r8,{children:te.jsx(n8,{onClick:s=>{i(),s.stopPropagation()},alignItems:"center",justifyContent:"center",children:te.jsxs(Ht,{onClick:s=>s.stopPropagation(),positionType:"relative",flexDirection:"column",width:"100%",gap:16,borderWidth:1,backgroundColor:Nt.background,padding:24,sm:{borderRadius:_s.lg,...e},ref:r,...n,children:[t,te.jsx(yte,{color:Nt.mutedForeground,onClick:i,cursor:"pointer",positionType:"absolute",zIndexOffset:50,positionRight:16,positionTop:16,borderRadius:2,opacity:.7,backgroundOpacity:.7,hover:{opacity:1,backgroundOpacity:1},width:16,height:16})]})})})}),i8=le.forwardRef(({children:t,...e},n)=>te.jsx(Ht,{flexDirection:"column",gap:6,ref:n,...e,children:te.jsx(Lr,{textAlign:"center",sm:{textAlign:"left"},children:t})})),s8=le.forwardRef(({sm:t,...e},n)=>te.jsx(Ht,{flexDirection:"column-reverse",sm:{flexDirection:"row",justifyContent:"flex-end",...t},gap:8,ref:n,...e}));function wte(t){return te.jsx(Lr,{fontSize:18,lineHeight:"100%",letterSpacing:-.4,fontWeight:"semi-bold",...t})}function o8(t){return te.jsx(Lr,{fontSize:14,lineHeight:20,color:Nt.mutedForeground,...t})}const pu=new MA,zI=new KR,h3=new Tr;function Bte(t,e,n,r,i){const s=[];for(const[o,a]of i){zI.set(r[a.lineIndex],r[a.lineIndex+1]).applyMatrix4(t.matrixWorld);const l=zI.at(a.distanceOnLine/zI.distance(),new ue);Ev(h3,a,o);const c=bte(t,r,h3)??l;s.push({...a,intersections:s,pointOnFace:c,point:l,inputDevicePosition:e.clone(),inputDeviceRotation:n.clone(),capturedObject:o})}return s}const p3=new ue,WI=new gh;function bte(t,e,n){for(let r=e.length-1;r>0;r--){const i=e[r-1],s=e[r];if(WI.origin.copy(i).applyMatrix4(t.matrixWorld),WI.direction.copy(s).applyMatrix4(t.matrixWorld).sub(pu.ray.origin).normalize(),WI.intersectPlane(n,p3)!=null)return p3.clone()}}const Tte=new En;function Mte(t,e,n,r,i,s,o){const a=[];return _0(i,s.hasEventHandlers.bind(s),l=>{let c=0;for(let p=1;pw===x.object)!=-1)continue;const I=x.distance;x.distance+=c,a.push(Object.assign(x,{intersections:a,inputDevicePosition:e.clone(),inputDeviceRotation:n.clone(),lineIndex:p-1,distanceOnLine:I,pointOnFace:x.point,localPoint:x.point.clone().applyMatrix4(Tte.copy(x.object.matrixWorld).invert())}))}c+=y}}),a.sort((l,c)=>l.distance-c.distance)}const Fl=new MA,iA=new ue,gu=new Tr,d3=new gh;function _te(t,e,n,r){iA.copy(r).applyQuaternion(e);const i=[];for(const[s,o]of n){d3.set(t,iA),Ev(gu,o,s);const a=d3.intersectPlane(gu,new ue)??o.point;i.push({...o,intersections:i,pointOnFace:a,point:iA.clone().multiplyScalar(o.distance).add(t),inputDevicePosition:t.clone(),inputDeviceRotation:e.clone(),capturedObject:s})}return i}function Fte(t,e,n,r,i){Fl.setFromCamera(e,t),t.getWorldPosition(r),t.getWorldQuaternion(i),t.getWorldDirection(iA);const s=[];for(const[o,a]of n){gu.setFromNormalAndCoplanarPoint(iA,Fl.ray.origin),gu.constant-=a.distanceViewPlane;const l=Fl.ray.intersectPlane(gu,new ue);if(l==null)continue;Ev(gu,a,o);const c=Fl.ray.intersectPlane(gu,new ue)??l;s.push({...a,intersections:s,point:l,pointOnFace:c,inputDevicePosition:r.clone(),inputDeviceRotation:i.clone(),capturedObject:o})}return s}const HE=new En;function Pte(t,e,n,r,i,s){Fl.ray.origin.copy(t),Fl.ray.direction.copy(s).applyQuaternion(e);const o=[];return _0(n,r.hasEventHandlers.bind(r),a=>{const l=Fl.intersectObject(a,!0);for(const c of l)i&&!yv(c)||(HE.copy(a.matrixWorld).invert(),o.push(Object.assign(c,{intersections:o,inputDevicePosition:t.clone(),inputDeviceRotation:e.clone(),pointOnFace:c.point,localPoint:c.point.clone().applyMatrix4(HE)})))}),o.sort((a,l)=>a.distance-l.distance)}function Qte(t,e,n,r,i,s,o){Fl.setFromCamera(e,t),t.getWorldPosition(s),t.getWorldQuaternion(o),gu.setFromNormalAndCoplanarPoint(t.getWorldDirection(iA),Fl.ray.origin);const a=[];return _0(n,r.hasEventHandlers.bind(r),l=>{const c=Fl.intersectObject(l,!0);for(const p of c)i&&!yv(p)||(HE.copy(l.matrixWorld).invert(),a.push(Object.assign(p,{intersections:a,pointOnFace:p.point,inputDevicePosition:s.clone(),inputDeviceRotation:o.clone(),distanceViewPlane:gu.distanceToPoint(p.point),localPoint:p.point.clone().applyMatrix4(HE)})))}),a.sort((l,c)=>l.distance-c.distance)}const f3=new ue,A3=new Si,g3=new Tr;function kte(t,e,n){const r=[];for(const[i,s]of n){f3.copy(s.point).sub(s.inputDevicePosition),A3.copy(s.inputDeviceRotation).invert().multiply(e);const o=f3.clone().applyQuaternion(A3).add(t);Ev(g3,s,i);const a=g3.projectPoint(t,new ue);r.push({distance:s.distance,intersections:r,inputDevicePosition:t.clone(),inputDeviceRotation:e.clone(),object:s.object,point:o,pointOnFace:a,face:s.face,capturedObject:i,distanceToFace:a.distanceTo(t),localPoint:s.localPoint})}return r}const va=new Li;function Rte(t,e,n,r,i,s){va.center.copy(t),va.radius=n;const o=[];return _0(r,i.hasEventHandlers.bind(i),a=>a8(a,e,s,o)),o.sort((a,l)=>a.distance-l.distance)}function a8(t,e,n,r){Nte(t,e,n,r);for(const i of t.children)a8(i,e,n,r)}const Hg=new En,zg=new En;function Lte(t){return"spherecast"in t}function Nte(t,e,n,r){if(t.updateWorldMatrix(!0,!1),Lte(t)){const i=[];t.spherecast(va,i);for(const s of i)n&&!yv(s)||r.push({...s,pointOnFace:s.point,intersections:r,inputDevicePosition:va.center.clone(),inputDeviceRotation:e.clone(),localPoint:s.point.clone().applyMatrix4(Hg.copy(s.object.matrixWorld).invert())})}if(t instanceof kw){t.geometry.boundingSphere==null&&t.geometry.computeBoundingSphere(),t.geometry.boundingBox==null&&t.geometry.computeBoundingBox();const i=[];for(let s=0;sva.radius*va.radius)return;jI.max(Ote);const p=sA.center.clone().sub(y3);p.divide(jI),Ute(p);const d=F1.clone();o&&!Gte(t,d)||a.push({intersections:a,distance:Math.sqrt(c),object:t,face:{a:0,b:0,c:0,materialIndex:0,normal:p},pointOnFace:d,point:d,instanceId:l,inputDevicePosition:e.clone(),inputDeviceRotation:n.clone(),localPoint:d.clone().applyMatrix4(i)})}function Ute(t){const e=Math.abs(t.x),n=Math.abs(t.y),r=Math.abs(t.z);if(e>=n&&e>=r){t.set(t.x<0?-1:1,0,0);return}if(n>=e&&n>=r){t.set(0,t.y<0?-1:1,0);return}t.set(0,0,t.z<0?-1:1)}function _0(t,e,n){if(e(t))return n(t);for(const r of t.children)_0(r,e,n)}function yv(t){if(!(t.object instanceof gr)||t.object.material.clippingPlanes==null)return!0;const e=t.object.material.clippingPlanes;for(const n of e)if(n.distanceToPoint(t.point)<0)return!1;return!0}function Gte(t,e){if(!(t instanceof gr)||t.material.clippingPlanes==null)return!0;const n=t.material.clippingPlanes;for(const r of n)if(r.distanceToPoint(e)<0)return!1;return!0}function Ev(t,e,n){return e.face==null?!1:(t.setFromNormalAndCoplanarPoint(e.face.normal,e.localPoint),t.applyMatrix4(n.matrixWorld),!0)}const VI=new ue,C3=new Si,v3=Symbol("traversal-id"),x3=[],y2=new ir;class Cv{constructor(e,n,r,i,s,o,a,l,c,p,d){Ke(this,"inputDeviceId");Ke(this,"dispatchPressAlways");Ke(this,"eventDispatcher");Ke(this,"computeIntersections");Ke(this,"getPressedElementIds");Ke(this,"getInputDeviceTransformation");Ke(this,"wasDragged");Ke(this,"onIntersections");Ke(this,"filterIntersections");Ke(this,"onStartEventCaptures");Ke(this,"onEndEventCaptures");Ke(this,"intersections",[]);Ke(this,"lastPositionChangeTime");Ke(this,"capturedEvents");Ke(this,"objectInteractionStateMap",new Map);this.inputDeviceId=e,this.dispatchPressAlways=n,this.eventDispatcher=r,this.computeIntersections=i,this.getPressedElementIds=s,this.getInputDeviceTransformation=o,this.wasDragged=a,this.onIntersections=l,this.filterIntersections=c,this.onStartEventCaptures=p,this.onEndEventCaptures=d}update(e,n,r,...i){var a;this.eventDispatcher.bind(e,this);const s=performance.now(),o=this.intersections;if(n&&(this.intersections=this.computeIntersections(e,this.capturedEvents),this.capturedEvents==null&&this.filterIntersections!=null&&(this.intersections=this.filterIntersections(this.intersections)),(a=this.onIntersections)==null||a.call(this,this.intersections),this.intersections.length===0&&(this.getInputDeviceTransformation(VI,C3),this.intersections=[{distance:1/0,inputDevicePosition:VI.clone(),inputDeviceRotation:C3.clone(),object:y2,point:VI.clone()}])),this.traverseIntersections(this.intersections,(l,c,p,d,A)=>(n&&(this.dispatchEnterOrMove(l,c,p),c.lastIntersectedTime=s),r&&(this.dispatchPress(l,p,A,i),this.dispatchRelease(e,l,p,c,A),this.updateElementStateMap(p,c,A,i,s)),c.lastPressedElementIds=A,c.blockFollowingIntersections&&(this.intersections.length=d+1),!0),l=>this.getPressedElementIds(l)),n){const l=this.getPressedElementIds();this.traverseIntersections(o,(c,p,d)=>p.lastIntersectedTime===s?!1:(this.dispatchRelease(e,c,d,p,l),this.eventDispatcher.leave(c,d),p.lastLeftTime=s,p.lastPressedElementIds=x3,!0)),this.lastPositionChangeTime=s}}cancel(e){this.eventDispatcher.bind(e,this),this.traverseIntersections(this.intersections,(n,r,i)=>(this.eventDispatcher.cancel(n,i),!0))}wheel(e){this.eventDispatcher.bind(e,this),this.traverseIntersections(this.intersections,(n,r,i)=>(this.eventDispatcher.wheel(n,i),!0))}leave(e){var n;this.eventDispatcher.bind(e,this),this.traverseIntersections(this.intersections,(r,i,s)=>(this.eventDispatcher.leave(r,s),!0)),this.capturedEvents!=null&&((n=this.onEndEventCaptures)==null||n.call(this,e)),this.lastPositionChangeTime=void 0,this.intersections.length=0,this.capturedEvents=void 0}updateElementStateMap(e,n,r,i,s){for(const o of r)(i.includes(o)||this.dispatchPressAlways)&&n.elementStateMap.set(o,{lastPressEventTime:s,lastPressEventIntersection:e})}dispatchPress(e,n,r,i){for(const s of r)(this.dispatchPressAlways||i.includes(s))&&this.eventDispatcher.press(e,n,s)}dispatchRelease(e,n,r,i,s){for(const o of i.lastPressedElementIds){if(s.includes(o))continue;this.eventDispatcher.release(n,r,o),this.removeEventCapture(e,n);const a=i.elementStateMap.get(o);a!=null&&(i.lastLeftTime==null||i.lastLeftTime{}){const i=Math.random();e:for(let s=0;snew Map,[]),d=le.useMemo(()=>new vv,[]);d.onPointerDownMissed=i,d.onPointerUpMissed=s,d.onClickMissed=o;const A=le.useMemo(()=>({filterClipped:c??!0,computeIntersections:t,isDrag:e,onIntersections:n,filterIntersections:r,onStartEventCaptures:a,onEndEventCaptures:l}),[]);A.filterClipped=c??!0,A.computeIntersections=t,A.isDrag=e,A.onIntersections=n,A.filterIntersections=r,A.onStartEventCaptures=a,A.onEndEventCaptures=l;for(const[y,C]of p)l8(C.translator,y,A);return le.useEffect(()=>()=>{for(const{translator:y}of p.values())y.leave({});p.clear()},[]),le.useMemo(()=>{const y=C=>Wte(p,d,A,C);return{cancel:(C,x)=>{const{translator:D}=y(C);D.cancel(x)},enter:(C,x)=>{const{translator:D}=y(C);D.update(x,!0,!0)},leave:(C,x)=>{const{translator:D}=y(C);D.leave(x),p.delete(C)},press:(C,x,...D)=>{const{inputDeviceElementPressMap:I,inputDeviceElementPressSet:w,translator:B}=y(C);for(const _ of D)w.add(_),I.set(_,x);B.update(x,!1,!0,...D)},release:(C,x,...D)=>{const{inputDeviceElementPressMap:I,inputDeviceElementPressSet:w,inputDeviceElementDragSet:B,translator:_}=y(C);for(const F of D)w.delete(F),I.delete(F);_.update(x,!1,!0);for(const F of D)B.delete(F)},move:(C,x)=>{const{translator:D,inputDeviceElementPressMap:I,inputDeviceElementDragSet:w}=y(C);for(const[B,_]of I)A.isDrag(_,x)&&w.add(B);D.update(x,!0,!1)},wheel:C=>{for(const{translator:x}of p.values())x.wheel(C)},blur:C=>{for(const{translator:x}of p.values())x.leave(C);p.clear()}}},[])}function l8(t,e,{filterIntersections:n,onEndEventCaptures:r,onIntersections:i,onStartEventCaptures:s}){t.onIntersections=i==null?void 0:i.bind(null,e),t.filterIntersections=n==null?void 0:n.bind(null,e),t.onStartEventCaptures=s==null?void 0:s.bind(null,e),t.onEndEventCaptures=r==null?void 0:r.bind(null,e)}function Wte(t,e,n,r){let i=t.get(r);if(i==null){const s=new ue,o=new Si,a={inputDeviceElementPressSet:new Set,inputDeviceElementPressMap:new Map,translator:new Cv(r,!1,e,(l,c)=>n.computeIntersections(l,c,n.filterClipped,e,s,o),()=>[...a.inputDeviceElementPressSet],(l,c)=>{l.copy(s),c.copy(o)},l=>a.inputDeviceElementDragSet.has(l)),inputDeviceElementDragSet:new Set};l8(a.translator,r,n),t.set(r,i=a)}return i}new ue;const jte=[];function Vte(t,e,n){if(t.current==null)return!1;const r=t.current*t.current,i=e.offsetX-n.offsetX,s=e.offsetY-n.offsetY;return i*i+s*s>r}function Jte({filterClipped:t,filterIntersections:e,onClickMissed:n,onIntersections:r,onPointerDownMissed:i,onPointerUpMissed:s,dragDistance:o}){const a=al(),l=n0(({gl:A})=>A.domElement),c=le.useMemo(()=>Yte.bind(null,a),[a]),p=le.useRef(o);p.current=o;const d=zte(c,Vte.bind(null,p),r,e,i,s,n,Xte,qte,t);return le.useEffect(()=>{const A=w=>d.cancel(w.pointerId,w),y=w=>d.press(w.pointerId,w,w.button),C=w=>d.release(w.pointerId,w,w.button),x=w=>d.enter(w.pointerId,w),D=w=>d.leave(w.pointerId,w),I=w=>d.move(w.pointerId,w);return l.addEventListener("pointercancel",A),l.addEventListener("pointerdown",y),l.addEventListener("pointerup",C),l.addEventListener("pointerover",x),l.addEventListener("pointerout",D),l.addEventListener("pointermove",I),l.addEventListener("wheel",d.wheel),l.addEventListener("blur",d.blur),()=>{l.removeEventListener("pointercancel",A),l.removeEventListener("pointerdown",y),l.removeEventListener("pointerup",C),l.removeEventListener("pointerover",x),l.removeEventListener("pointerout",D),l.removeEventListener("pointermove",I),l.removeEventListener("wheel",d.wheel),l.removeEventListener("blur",d.blur)}},[l,d]),null}function Yte(t,e,n,r,i,s,o){if(!(e.target instanceof HTMLCanvasElement))return jte;const{camera:a,scene:l,size:c}=t.getState(),p=new st(e.offsetX/c.width*2-1,-(e.offsetY/c.height)*2+1);return n==null?Qte(a,p,l,i,r,s,o):Fte(a,p,n,s,o)}function Xte(t,e){e.target instanceof HTMLCanvasElement&&e.target.setPointerCapture(t)}function qte(t,e){e.target instanceof HTMLCanvasElement&&e.target.releasePointerCapture(t)}const JI=new ue,YI=new Si,Kte=new ue(0,0,1);le.forwardRef(({id:t,onIntersections:e,filterIntersections:n,onClickMissed:r,onPointerDownMissed:i,onPointerUpMissed:s,filterClipped:o=!0,direction:a=Kte,initialPressedElementIds:l},c)=>{const p=al(),d=le.useMemo(()=>new ir,[]),A=le.useMemo(()=>new vv,[]);A.onPointerDownMissed=i,A.onPointerUpMissed=s,A.onClickMissed=r;const y=le.useMemo(()=>new Set(l),[]),C=le.useMemo(()=>({filterClipped:o,direction:a}),[]);C.filterClipped=o,C.direction=a;const x=le.useMemo(()=>new Cv(t,!1,A,(I,w)=>(d.getWorldPosition(JI),d.getWorldQuaternion(YI),w==null?Pte(JI,YI,p.getState().scene,A,C.filterClipped,C.direction):_te(JI,YI,w,C.direction)),()=>[...y],(I,w)=>{d.getWorldPosition(I),d.getWorldQuaternion(w)}),[t,p]);x.onIntersections=e,x.filterIntersections=n,le.useImperativeHandle(c,()=>({press:(I,w)=>{y.add(I),x.update(w,!1,!0,I)},release:(I,w)=>{y.delete(I),x.update(w,!1,!0)},cancel:x.cancel.bind(x),wheel(I){x.wheel(I)}}),[x]),le.useEffect(()=>x.leave.bind(x,{}),[x]);const D=le.useRef(y.size>0);return _A(()=>{x.update({},!0,D.current,...y),D.current=!1}),jE.createElement("primitive",{object:d})});const XI=new ue,qI=new Si;le.forwardRef(({id:t,distanceElement:e,radius:n,onIntersections:r,filterIntersections:i,onClickMissed:s,onPointerDownMissed:o,onPointerUpMissed:a,filterClipped:l=!0,initialPressedElementIds:c},p)=>{const d=le.useMemo(()=>new ir,[]),A=al(),y=le.useMemo(()=>new Set(c),[]),C=le.useMemo(()=>new vv,[]);C.onPointerDownMissed=o,C.onPointerUpMissed=a,C.onClickMissed=s;const x=le.useMemo(()=>({distanceElement:e,radius:n,filterClipped:l}),[]);x.distanceElement=e,x.radius=n,x.filterClipped=l;const D=le.useMemo(()=>new Cv(t,!0,C,(w,B)=>(d.getWorldPosition(XI),d.getWorldQuaternion(qI),B==null?Rte(XI,qI,x.radius,A.getState().scene,C,x.filterClipped):kte(XI,qI,B)),w=>w!=null&&x.distanceElement!=null&&w.distance<=x.distanceElement.downRadius&&(w.distanceToFace==null||w.distanceToFace<2*x.distanceElement.downRadius*2)?[...y,x.distanceElement.id]:[...y],(w,B)=>{d.getWorldPosition(w),d.getWorldQuaternion(B)}),[t,A]);D.onIntersections=r,D.filterIntersections=i,le.useImperativeHandle(p,()=>({press:(w,B)=>{y.add(w),D.update(B,!1,!0,w)},release:(w,B)=>{y.delete(w),D.update(B,!1,!0)},cancel:D.cancel.bind(D),wheel(w){D.wheel(w)}}),[D]),le.useEffect(()=>D.leave.bind(D,{}),[D]);const I=le.useRef(y.size>0);return _A(()=>{D.update({},!0,I.current||e!=null,...y),I.current=!1}),jE.createElement("primitive",{object:d})});const KI=new ue,ZI=new Si;le.forwardRef(({id:t,points:e,onIntersections:n,filterIntersections:r,onClickMissed:i,onPointerDownMissed:s,onPointerUpMissed:o,filterClipped:a=!0,initialPressedElementIds:l},c)=>{const p=le.useMemo(()=>new ir,[]),d=al(),A=le.useMemo(()=>new vv,[]);A.onPointerDownMissed=s,A.onPointerUpMissed=o,A.onClickMissed=i;const y=le.useMemo(()=>new Set(l),[]),C=le.useMemo(()=>({points:e,filterClipped:a}),[]);C.points=e,C.filterClipped=a;const x=le.useMemo(()=>new Cv(t,!1,A,(I,w)=>(p.getWorldPosition(KI),p.getWorldQuaternion(ZI),w==null?Mte(p,KI,ZI,C.points,d.getState().scene,A,C.filterClipped):Bte(p,KI,ZI,C.points,w)),()=>[...y],(I,w)=>{p.getWorldPosition(I),p.getWorldQuaternion(w)}),[t,d]);x.onIntersections=n,x.filterIntersections=r,le.useImperativeHandle(c,()=>({press:(I,w)=>{y.add(I),x.update(w,!1,!0,I)},release:(I,w)=>{y.delete(I),x.update(w,!1,!0)},cancel:x.cancel.bind(x),wheel(I){x.wheel(I)}}),[x]),le.useEffect(()=>x.leave.bind(x,{}),[x]);const D=le.useRef(y.size>0);return _A(()=>{x.update({},!0,D.current,...y),D.current=!1}),jE.createElement("primitive",{object:p})});const Zte=()=>({enabled:!1,priority:0});class vv{constructor(e,n,r){Ke(this,"onPointerDownMissed");Ke(this,"onPointerUpMissed");Ke(this,"onClickMissed");Ke(this,"stoppedEventTypeSet");Ke(this,"event");Ke(this,"translator");Ke(this,"press",this.dispatch.bind(this,["onPointerDown"]));Ke(this,"release",this.dispatch.bind(this,["onPointerUp"]));Ke(this,"cancel",this.dispatch.bind(this,["onPointerCancel"]));Ke(this,"select",this.dispatch.bind(this,["onClick"]));Ke(this,"move",this.dispatch.bind(this,["onPointerMove"]));Ke(this,"enter",this.dispatch.bind(this,["onPointerEnter","onPointerOver"]));Ke(this,"leave",this.dispatch.bind(this,["onPointerLeave","onPointerOut"]));Ke(this,"wheel",this.dispatch.bind(this,["onWheel"]));Ke(this,"losteventcapture",()=>{});this.onPointerDownMissed=e,this.onPointerUpMissed=n,this.onClickMissed=r}dispatch(e,n,r,i){var s,o;for(const a of e){if(this.stoppedEventTypeSet.has(a))return;if(n==y2){switch(a){case"onClick":case"onPointerDown":case"onPointerUp":{const c=this[`${a}Missed`];if(c==null)return;c(this.createEvent(a,n,r,i))}}return}(o=(s=n.__r3f.handlers)[a])==null||o.call(s,this.createEvent(a,n,r,i))}}createEvent(e,n,r,i){const s=this.stoppedEventTypeSet,o=this.translator,a={setPointerCapture:this.translator.addEventCapture.bind(this.translator,this.event,n,r),releasePointerCapture:this.translator.removeEventCapture.bind(this.translator,this.event,n),hasPointerCapture:this.translator.hasEventCapture.bind(this.translator,n)},l={};for(const c in this.event){const p=this.event[c];typeof p!="function"&&(l[c]=p)}return Object.assign(l,r,{eventObject:n,pointer:null,stopped:null,delta:0,unprojectedPoint:null,ray:null,camera:null,stopPropagation(){s.add(e),e=="onPointerEnter"&&o.blockFollowingIntersections(n)},pointerId:this.translator.inputDeviceId,target:a,currentTarget:a,nativeEvent:this.event,inputDeviceElementId:i,inputDeviceId:this.translator.inputDeviceId}),l}bind(e,n){this.stoppedEventTypeSet=new Set,this.event=e,this.translator=n}hasEventHandlers(e){if(e===y2)return!0;const n=e.__r3f;return n!=null&&n.eventCount>0}}const u8=le.createContext(null),$te=le.forwardRef(({children:t,...e},n)=>{const[r,i]=le.useState(!1),s=le.useRef(void 0);return le.useEffect(()=>()=>{s.current!=null&&clearTimeout(s.current)},[]),te.jsx(Ht,{onPointerOver:()=>{s.current==null&&(s.current=setTimeout(()=>{s.current=void 0,i(!0)},1e3))},onPointerOut:()=>{if(s.current!=null){clearTimeout(s.current),s.current=void 0;return}i(!1)},positionType:"relative",flexDirection:"column",alignItems:"center",ref:n,...e,children:te.jsx(u8.Provider,{value:r,children:t})})}),ene=le.forwardRef((t,e)=>te.jsx(Ht,{alignSelf:"stretch",ref:e,...t})),tne=le.forwardRef(({children:t,sideOffset:e=4,...n},r)=>le.useContext(u8)?te.jsx(Ht,{positionType:"absolute",positionBottom:"100%",marginBottom:e,zIndexOffset:50,overflow:"hidden",borderRadius:_s.md,borderWidth:1,backgroundColor:Nt.popover,paddingX:12,paddingY:6,ref:r,...n,children:te.jsx(Lr,{wordBreak:"keep-all",fontSize:14,lineHeight:20,color:Nt.popoverForeground,children:t})}):null);function nne(){return te.jsxs($te,{children:[te.jsx(ene,{children:te.jsx(Ta,{variant:"outline",children:te.jsx(pn,{children:"Hover"})})}),te.jsx(tne,{children:te.jsx(pn,{children:"Add to library"})})]})}const xv=le.createContext(null);function rne({children:t,...e}){const n=le.useState(void 0);return te.jsx(Ht,{flexDirection:"column",...e,children:te.jsx(xv.Provider,{value:n,children:t})})}const VB=le.createContext(""),$I=le.forwardRef(({children:t,...e},n)=>{const[r,i]=le.useContext(xv),s=e.value===r;return te.jsx(Ht,{cursor:"pointer",flexDirection:"column",onClick:()=>i(s?void 0:e.value),borderBottomWidth:1,ref:n,...e,children:te.jsx(VB.Provider,{value:e.value,children:t})})}),eD=le.forwardRef(({children:t,...e},n)=>{const r=le.useContext(VB),[i]=le.useContext(xv),s=r===i;return te.jsxs(Ht,{flexDirection:"row",flexGrow:1,flexShrink:1,alignItems:"center",justifyContent:"space-between",paddingY:16,ref:n,...e,children:[te.jsx(Lr,{fontWeight:"medium",children:t}),te.jsx(bee,{transformRotateZ:s?180:0,width:16,height:16,flexShrink:0})]})}),tD=le.forwardRef(({children:t,...e},n)=>{const r=le.useContext(VB),[i]=le.useContext(xv);return i!=r?null:te.jsx(Ht,{overflow:"hidden",ref:n,...e,children:te.jsx(Ht,{paddingBottom:16,children:te.jsx(Lr,{fontSize:14,children:t})})})});function ine(){return te.jsx(Ht,{flexDirection:"column",width:300,children:te.jsxs(rne,{children:[te.jsxs($I,{value:"item-1",children:[te.jsx(eD,{children:te.jsx(pn,{children:"Is it accessible?"})}),te.jsx(tD,{children:te.jsx(pn,{children:"Yes. It adheres to the WAI-ARIA design pattern."})})]}),te.jsxs($I,{value:"item-2",children:[te.jsx(eD,{children:te.jsx(pn,{children:"Is it styled?"})}),te.jsx(tD,{children:te.jsx(pn,{children:"Yes. It comes with default styles that matches the other components' aesthetic."})})]}),te.jsxs($I,{value:"item-3",children:[te.jsx(eD,{children:te.jsx(pn,{children:"Is it animated?"})}),te.jsx(tD,{children:te.jsx(pn,{children:"Yes. It's animated by default, but you can disable it if you prefer."})})]})]})})}const sne={default:{},destructive:{borderColor:Nt.destructive,borderOpacity:.5,color:Nt.destructive}},one=le.forwardRef((t,e)=>te.jsx(Lr,{...sne[t.variant??"default"],children:te.jsx(Ht,{flexDirection:"column",positionType:"relative",width:"100%",borderRadius:_s.lg,borderWidth:1,padding:16,ref:e,...t})})),ane=le.forwardRef((t,e)=>te.jsx(Ht,{positionLeft:16,positionTop:16,positionType:"absolute",ref:e,...t})),lne=le.forwardRef(({children:t,...e},n)=>te.jsx(Ht,{marginBottom:4,padding:0,paddingLeft:28,ref:n,...e,children:te.jsx(Lr,{fontWeight:"medium",letterSpacing:-.4,lineHeight:"100%",children:t})})),une=le.forwardRef(({children:t,...e},n)=>te.jsx(Ht,{paddingLeft:28,ref:n,...e,children:te.jsx(Lr,{lineHeight:"162.5%",fontSize:14,children:t})}));function cne(){return te.jsxs(one,{maxWidth:500,children:[te.jsx(ane,{children:te.jsx(ote,{width:16,height:16})}),te.jsx(lne,{children:te.jsx(pn,{children:"Error"})}),te.jsx(une,{children:te.jsx(pn,{children:"You can add components to your app using the cli."})})]})}const hne=e8,pne=t8,dne=le.forwardRef(({onClick:t,sm:e,...n},r)=>{const i=mv();return te.jsx(r8,{children:te.jsx(n8,{onClick:s=>{i(),s.stopPropagation()},alignItems:"center",justifyContent:"center",children:te.jsx(Ht,{onClick:s=>{s.stopPropagation(),t==null||t(s)},positionType:"relative",flexDirection:"column",maxWidth:512,width:"100%",gap:16,borderWidth:1,backgroundColor:Nt.background,padding:24,sm:{borderRadius:_s.lg,...e},ref:r,...n})})})}),fne=i8,Ane=s8;function gne(t){return te.jsx(Lr,{fontSize:18,lineHeight:28,fontWeight:"semi-bold",...t})}const mne=o8,yne=le.forwardRef(({children:t,onClick:e,...n},r)=>{const i=mv();return te.jsx(Ht,{borderRadius:_s.md,height:40,paddingX:16,paddingY:8,alignItems:"center",justifyContent:"center",cursor:"pointer",flexDirection:"row",backgroundColor:Nt.primary,onClick:s=>{s.stopPropagation(),i(),e==null||e(s)},hover:{backgroundOpacity:.9},ref:r,...n,children:te.jsx(Lr,{children:te.jsx(Lr,{fontSize:14,lineHeight:20,fontWeight:"medium",wordBreak:"keep-all",color:Nt.primaryForeground,children:t})})})}),Ene=le.forwardRef(({children:t,onClick:e,...n},r)=>{const i=mv();return te.jsx(Ht,{borderRadius:_s.md,height:40,paddingX:16,paddingY:8,alignItems:"center",justifyContent:"center",cursor:"pointer",flexDirection:"row",borderWidth:1,borderColor:Nt.input,backgroundColor:Nt.background,onClick:s=>{s.stopPropagation(),i(),e==null||e(s)},hover:{backgroundColor:Nt.accent},ref:r,...n,children:te.jsx(Lr,{fontSize:14,lineHeight:20,fontWeight:"medium",wordBreak:"keep-all",children:t})})});function Cne(){return te.jsxs(hne,{children:[te.jsx(pne,{children:te.jsx(Ta,{variant:"outline",children:te.jsx(pn,{children:"Show Dialog"})})}),te.jsxs(dne,{children:[te.jsxs(fne,{children:[te.jsx(gne,{children:te.jsx(pn,{children:"Are you absolutely sure?"})}),te.jsx(mne,{children:te.jsx(pn,{children:"This action cannot be undone. This will permanently delete your account and remove your data from our servers."})})]}),te.jsxs(Ane,{children:[te.jsx(Ene,{children:te.jsx(pn,{children:"Cancel"})}),te.jsx(yne,{children:te.jsx(pn,{children:"Continue"})})]})]})]})}const vne=le.forwardRef((t,e)=>te.jsx(sv,{width:40,height:40,flexShrink:0,aspectRatio:1,objectFit:"cover",borderRadius:20,ref:e,...t}));function xne(){return te.jsx(Ht,{alignItems:"center",children:te.jsx(vne,{src:"https://picsum.photos/100/100"})})}const Ine={default:{defaultProps:{color:Nt.primaryForeground},containerProps:{backgroundColor:Nt.primary},containerHoverProps:{backgroundOpacity:.8}},secondary:{defaultProps:{color:Nt.secondaryForeground},containerProps:{backgroundColor:Nt.secondary},containerHoverProps:{backgroundOpacity:.8}},destructive:{defaultProps:{color:Nt.destructiveForeground},containerProps:{backgroundColor:Nt.destructive},containerHoverProps:{backgroundOpacity:.8}},outline:{}},Dne=le.forwardRef(({children:t,variant:e="default",hover:n,...r},i)=>{const{containerProps:s,defaultProps:o,containerHoverProps:a}=Ine[e];return te.jsx(Ht,{borderRadius:1e3,borderWidth:1,paddingX:10,paddingY:2,hover:{...a,...n},ref:i,...s,...r,children:te.jsx(Lr,{fontSize:12,lineHeight:16,fontWeight:"semi-bold",...o,children:t})})});function Sne(){return te.jsx(Dne,{children:te.jsx(pn,{children:"Badge"})})}function wne(){return te.jsx(Ta,{variant:"outline",size:"icon",children:te.jsx(qN,{width:16,height:16})})}const c8=le.forwardRef(({defaultChecked:t,checked:e,disabled:n=!1,onCheckedChange:r,...i},s)=>{const[o,a]=le.useState(t??!1),l=e??o;return te.jsx(Ht,{height:24,width:44,flexShrink:0,flexDirection:"row",padding:2,alignItems:"center",backgroundOpacity:n?.5:void 0,borderRadius:1e3,backgroundColor:l?Nt.primary:Nt.input,cursor:n?void 0:"pointer",onClick:n?void 0:()=>{e==null&&a(!l),r==null||r(!l)},ref:s,...i,children:te.jsx(Ht,{width:20,height:20,borderRadius:1e3,transformTranslateX:l?20:0,backgroundColor:Nt.background})})}),nD=[{title:"Your call has been confirmed.",description:"1 hour ago"},{title:"You have a new message!",description:"1 hour ago"},{title:"Your subscription is expiring soon!",description:"2 hours ago"}];function Bne(){return te.jsxs(GE,{width:380,children:[te.jsxs(h2,{children:[te.jsx(p2,{children:te.jsx(pn,{children:"Notifications"})}),te.jsx(d2,{children:te.jsx(pn,{children:"You have 3 unread messages."})})]}),te.jsxs(f2,{flexDirection:"column",gap:16,children:[te.jsxs(Ht,{flexDirection:"row",alignItems:"center",gap:16,borderRadius:6,borderWidth:1,padding:16,children:[te.jsx(vee,{}),te.jsxs(Ht,{flexDirection:"column",gap:4,children:[te.jsx(pn,{fontSize:14,lineHeight:"100%",children:"Push Notifications"}),te.jsx(pn,{fontSize:14,lineHeight:20,color:Nt.mutedForeground,children:"Send notifications to device."})]}),te.jsx(c8,{})]}),te.jsx(Ht,{flexDirection:"column",children:nD.map((t,e)=>te.jsxs(Ht,{marginBottom:e===nD.length-1?0:16,paddingBottom:e===nD.length-1?0:16,alignItems:"flex-start",flexDirection:"row",gap:17,children:[te.jsx(Ht,{height:8,width:8,transformTranslateY:4,borderRadius:1e3,backgroundColor:959977}),te.jsxs(Ht,{flexDirection:"column",gap:4,children:[te.jsx(pn,{fontSize:14,lineHeight:"100%",children:t.title}),te.jsx(pn,{fontSize:14,lineHeight:20,color:Nt.mutedForeground,children:t.description})]})]},e))})]}),te.jsx(A2,{children:te.jsxs(Ta,{flexDirection:"row",width:"100%",children:[te.jsx(XN,{marginRight:8,height:16,width:16}),te.jsx(pn,{children:"Mark all as read"})]})})]})}const bne=le.forwardRef(({defaultChecked:t,checked:e,disabled:n=!1,onCheckedChange:r,...i},s)=>{const[o,a]=le.useState(t??!1),l=e??o;return te.jsx(Ht,{alignItems:"center",justifyContent:"center",cursor:n?void 0:"pointer",onClick:n?void 0:()=>{e==null&&a(!l),r==null||r(!l)},borderRadius:_s.sm,width:16,height:16,borderWidth:1,borderColor:Nt.primary,backgroundColor:l?Nt.primary:void 0,backgroundOpacity:n?.5:void 0,borderOpacity:n?.5:void 0,ref:s,...i,children:te.jsx(XN,{color:l?Nt.primaryForeground:void 0,opacity:l?n?.5:void 0:0,width:14,height:14})})}),$a=le.forwardRef(({disabled:t,...e},n)=>te.jsx(Lr,{fontWeight:"medium",fontSize:14,lineHeight:"100%",opacity:t?.7:void 0,ref:n,...e}));function Tne(){return te.jsxs(Ht,{flexDirection:"row",gap:8,alignItems:"center",children:[te.jsx(bne,{}),te.jsx($a,{children:te.jsx(pn,{children:"Accept terms and conditions"})})]})}function Mne(){return te.jsxs(e8,{children:[te.jsx(t8,{children:te.jsx(Ta,{variant:"outline",children:te.jsx(pn,{children:"Edit Profile"})})}),te.jsxs(Ste,{sm:{maxWidth:425},children:[te.jsxs(i8,{children:[te.jsx(wte,{children:te.jsx(pn,{children:"Edit profile"})}),te.jsx(o8,{children:te.jsx(pn,{children:"Make changes to your profile here. Click save when you're done."})})]}),te.jsxs(Ht,{flexDirection:"column",alignItems:"center",gap:16,paddingY:16,children:[te.jsx(Ht,{alignItems:"center",gap:16,children:te.jsx($a,{children:te.jsx(pn,{textAlign:"right",children:"Name"})})}),te.jsx(Ht,{alignItems:"center",gap:16,children:te.jsx($a,{children:te.jsx(pn,{textAlign:"right",children:"Username"})})})]}),te.jsx(s8,{children:te.jsx(Ta,{children:te.jsx(pn,{children:"Save changes"})})})]})]})}const _ne=le.forwardRef((t,e)=>te.jsx(Ht,{marginX:"auto",flexDirection:"row",width:"100%",justifyContent:"center",ref:e,...t})),Fne=le.forwardRef((t,e)=>te.jsx(Ht,{flexDirection:"row",alignItems:"center",gap:4,ref:e,...t})),Sf=Ht,Pne={outline:{containerProps:{borderWidth:1,borderColor:Nt.input,backgroundColor:Nt.background},containerHoverProps:{backgroundColor:Nt.accent}},ghost:{containerHoverProps:{backgroundColor:Nt.accent}}},Qne={default:{height:40,paddingX:16,paddingY:8},sm:{height:36,paddingX:12},lg:{height:42,paddingX:32},icon:{height:40,width:40}},gm=le.forwardRef(({isActive:t=!1,size:e="icon",hover:n,...r},i)=>{const{containerProps:s,containerHoverProps:o}=Pne[t?"outline":"ghost"],a=Qne[e];return te.jsx(Ht,{cursor:"pointer",borderRadius:_s.md,alignItems:"center",justifyContent:"center",hover:{...o,...n},ref:i,...s,...a,...r})}),kne=le.forwardRef((t,e)=>te.jsxs(gm,{flexDirection:"row",size:"default",gap:4,paddingLeft:10,ref:e,...t,children:[te.jsx(_ee,{width:16,height:16}),te.jsx(pn,{children:"Previous"})]})),Rne=le.forwardRef((t,e)=>te.jsxs(gm,{flexDirection:"row",size:"default",gap:4,paddingRight:10,ref:e,...t,children:[te.jsx(pn,{children:"Next"}),te.jsx(qN,{width:16,height:16})]})),Lne=le.forwardRef((t,e)=>te.jsx(Ht,{flexDirection:"row",height:36,width:36,alignItems:"center",justifyContent:"center",ref:e,...t,children:te.jsx(jee,{width:16,height:16})}));function Nne(){return te.jsx(_ne,{children:te.jsxs(Fne,{children:[te.jsx(Sf,{children:te.jsx(kne,{})}),te.jsx(Sf,{children:te.jsx(gm,{children:te.jsx(pn,{children:"1"})})}),te.jsx(Sf,{children:te.jsx(gm,{isActive:!0,children:te.jsx(pn,{children:"2"})})}),te.jsx(Sf,{children:te.jsx(gm,{children:te.jsx(pn,{children:"3"})})}),te.jsx(Sf,{children:te.jsx(Lne,{})}),te.jsx(Sf,{children:te.jsx(Rne,{})})]})})}const One=le.forwardRef(({value:t,...e},n)=>{const r=le.useMemo(()=>bn(()=>`${t??0}%`),[t]);return te.jsx(Ht,{height:16,width:"100%",borderRadius:1e3,backgroundColor:Nt.secondary,ref:n,...e,children:te.jsx(Ht,{height:"100%",borderRadius:1e3,backgroundColor:Nt.primary,width:r})})});function Une(){const[t,e]=le.useState(13);return le.useEffect(()=>{const n=setTimeout(()=>e(66),500);return()=>clearTimeout(n)},[]),te.jsx(One,{value:t,width:200})}const h8=le.createContext({}),Gne=le.forwardRef(({defaultValue:t,value:e,onValueChange:n,children:r,...i},s)=>{const[o,a]=le.useState(t),l=le.useMemo(()=>e==null?{value:o,setValue:c=>{a(c),n==null||n(c)}}:{value:e,onValueChange:n},[o,n,e]);return te.jsx(Ht,{flexDirection:"column",gap:8,ref:s,...i,children:te.jsx(h8.Provider,{value:l,children:r})})}),rD=le.forwardRef(({disabled:t=!1,value:e,children:n,...r},i)=>{const{value:s,setValue:o}=le.useContext(h8);return te.jsxs(Ht,{cursor:t?void 0:"pointer",onClick:t?void 0:()=>o==null?void 0:o(e),flexDirection:"row",alignItems:"center",gap:8,children:[te.jsx(Ht,{aspectRatio:1,height:16,width:16,borderRadius:1e3,borderWidth:1,borderOpacity:t?.5:void 0,borderColor:Nt.primary,alignItems:"center",justifyContent:"center",ref:i,...r,children:te.jsx(Ht,{borderRadius:1e3,aspectRatio:1,backgroundColor:Nt.primary,backgroundOpacity:e===s?1:0,height:9,width:9})}),n]})});function Hne(){return te.jsxs(Gne,{defaultValue:"comfortable",children:[te.jsx(rD,{value:"default",children:te.jsx($a,{children:te.jsx(pn,{children:"Default"})})}),te.jsx(rD,{value:"comfortable",children:te.jsx($a,{children:te.jsx(pn,{children:"Comfortable"})})}),te.jsx(rD,{value:"compact",children:te.jsx($a,{children:te.jsx(pn,{children:"Compact"})})})]})}function zne(){return te.jsxs(Ht,{width:300,flexDirection:"column",children:[te.jsxs(Ht,{flexDirection:"column",gap:4,children:[te.jsx(pn,{fontSize:14,lineHeight:"100%",children:"Radix Primitives"}),te.jsx(pn,{fontSize:14,lineHeight:20,color:Nt.mutedForeground,children:"An open-source UI component library."})]}),te.jsx(oE,{marginY:16}),te.jsx(Ht,{flexDirection:"row",height:20,alignItems:"center",gap:16,children:te.jsxs(Lr,{fontSize:14,lineHeight:20,children:[te.jsx(pn,{children:"Blog"}),te.jsx(oE,{orientation:"vertical"}),te.jsx(pn,{children:"Docs"}),te.jsx(oE,{orientation:"vertical"}),te.jsx(pn,{children:"Source"})]})})]})}const iD=le.forwardRef((t,e)=>{const n=le.useMemo(()=>Yt(1),[]),r=le.useRef(0);return _A((i,s)=>{n.value=Math.cos(r.current*Math.PI)*.25+.75,r.current+=s}),te.jsx(Ht,{borderRadius:_s.md,backgroundColor:Nt.muted,backgroundOpacity:n,ref:e,...t})});function Wne(){return te.jsxs(Ht,{flexDirection:"row",alignItems:"center",gap:16,children:[te.jsx(iD,{borderRadius:1e3,height:48,width:48}),te.jsxs(Ht,{flexDirection:"column",gap:8,children:[te.jsx(iD,{height:16,width:250}),te.jsx(iD,{height:16,width:200})]})]})}const sD=new ue,p8=le.forwardRef(({disabled:t=!1,value:e,defaultValue:n,onValueChange:r,min:i=0,max:s=100,step:o=1,...a},l)=>{const[c,p]=le.useState(n),d=e??c??50,A=le.useMemo(()=>bn(()=>{const I=Wg(s)-Wg(i);return`${100*Wg(d)/I}%`}),[i,s,d]),y=le.useRef(null),C=le.useRef(r);C.current=r;const x=e!=null,D=le.useMemo(()=>{let I=!1;function w(B){var N;if(y.current==null)return;sD.copy(B.point),y.current.interactionPanel.worldToLocal(sD);const _=Wg(i),F=Wg(s),P=Math.min(Math.max(Math.round(((sD.x+.5)*(F-_)+_)/o)*o,_),F);x||p(P),(N=C.current)==null||N.call(C,P),B.stopPropagation()}return{onPointerDown(B){I=!0,w(B),B.target.setPointerCapture(B.pointerId)},onPointerMove(B){I&&w(B)},onPointerUp(B){I&&(I=!1,B.stopPropagation())}}},[s,i,x,o]);return le.useImperativeHandle(l,()=>y.current),te.jsxs(Ht,{...t?{}:D,positionType:"relative",flexDirection:"column",height:8,width:"100%",alignItems:"center",ref:y,...a,children:[te.jsx(Ht,{height:8,positionType:"absolute",positionLeft:0,positionRight:0,flexGrow:1,borderRadius:1e3,backgroundColor:Nt.secondary,children:te.jsx(Ht,{height:"100%",width:A,borderRadius:1e3,backgroundColor:Nt.primary})}),te.jsx(Ht,{zIndexOffset:{minor:100},positionType:"absolute",positionLeft:A,transformTranslateX:-10,transformTranslateY:-6,cursor:"pointer",borderOpacity:t?.5:void 0,backgroundOpacity:t?.5:void 0,height:20,width:20,borderWidth:2,borderRadius:1e3,borderColor:Nt.primary,backgroundColor:Nt.background})]})});function Wg(t){return t instanceof wi?t.value:t}function jne(){return te.jsx(p8,{defaultValue:50,max:100,step:1,width:300})}function Vne(){return te.jsxs(Ht,{flexDirection:"row",alignItems:"center",gap:8,children:[te.jsx(c8,{}),te.jsx($a,{children:te.jsx(pn,{children:"Airplane Mode"})})]})}function Jne(){return te.jsxs(KN,{defaultValue:"account",width:400,children:[te.jsxs(ZN,{width:"100%",children:[te.jsx(g2,{flexGrow:1,value:"account",children:te.jsx(pn,{children:"Account"})}),te.jsx(g2,{flexGrow:1,value:"password",children:te.jsx(pn,{children:"Password"})})]}),te.jsx(m2,{value:"account",children:te.jsxs(GE,{children:[te.jsxs(h2,{children:[te.jsx(p2,{children:te.jsx(pn,{children:"Account"})}),te.jsx(d2,{children:te.jsx(pn,{children:"Make changes to your account here. Click save when you're done."})})]}),te.jsxs(f2,{flexDirection:"column",gap:8,children:[te.jsxs(Ht,{flexDirection:"column",gap:4,children:[te.jsx($a,{children:te.jsx(pn,{children:"Name"})}),te.jsx(pn,{children:"Pedro Duarte"})]}),te.jsxs(Ht,{flexDirection:"column",gap:4,children:[te.jsx($a,{children:te.jsx(pn,{children:"Username"})}),te.jsx(pn,{children:"@peduarte"})]})]}),te.jsx(A2,{children:te.jsx(Ta,{children:te.jsx(pn,{children:"Save changes"})})})]})}),te.jsx(m2,{value:"password",children:te.jsxs(GE,{children:[te.jsxs(h2,{children:[te.jsx(p2,{children:te.jsx(pn,{children:"Password"})}),te.jsx(d2,{children:te.jsx(pn,{children:"Change your password here. After saving, you'll be logged out."})})]}),te.jsxs(f2,{flexDirection:"column",gap:8,children:[te.jsxs(Ht,{flexDirection:"column",gap:4,children:[te.jsx($a,{children:te.jsx(pn,{children:"Current password"})}),te.jsx(pn,{children:"password"})]}),te.jsxs(Ht,{flexDirection:"column",gap:4,children:[te.jsx($a,{children:te.jsx(pn,{children:"New password"})}),te.jsx(pn,{children:"password"})]})]}),te.jsx(A2,{children:te.jsx(Ta,{children:te.jsx(pn,{children:"Save password"})})})]})})]})}const Yne={default:{},outline:{containerProps:{borderWidth:1,borderColor:Nt.input},containerHoverProps:{backgroundColor:Nt.accent}}},Xne={default:{height:40,paddingX:12},sm:{height:36,paddingX:10},lg:{height:44,paddingX:20}},qne=le.forwardRef(({children:t,size:e="default",variant:n="default",defaultChecked:r,checked:i,disabled:s=!1,onCheckedChange:o,hover:a,...l},c)=>{const[p,d]=le.useState(r??!1),A=i??p,{containerHoverProps:y,containerProps:C}=Yne[n];return te.jsx(Ht,{onClick:s?void 0:()=>{i==null&&d(!A),o==null||o(!A)},alignItems:"center",justifyContent:"center",borderRadius:_s.md,cursor:s?void 0:"pointer",backgroundOpacity:s?.5:void 0,borderOpacity:s?.5:void 0,backgroundColor:A?Nt.accent:void 0,hover:s?a:{backgroundColor:Nt.muted,...y,...a},ref:c,...C,...Xne[e],...l,children:te.jsx(Lr,{color:A?Nt.accentForeground:void 0,opacity:s?.5:void 0,fontSize:14,lineHeight:20,fontWeight:"medium",children:t})})});function Kne(){return te.jsx(qne,{children:te.jsx(YN,{height:16,width:16})})}const Zne={default:{},outline:{containerProps:{borderWidth:1,borderColor:Nt.input},containerHoverProps:{backgroundColor:Nt.accent}}},$ne={default:{height:40,paddingX:12},sm:{height:36,paddingX:10},lg:{height:44,paddingX:20}},d8=le.createContext({size:"default",variant:"default"}),ere=le.forwardRef(({children:t,size:e="default",variant:n="default",...r},i)=>te.jsx(Ht,{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:4,ref:i,...r,children:te.jsx(d8.Provider,{value:{variant:n,size:e},children:t})})),oD=le.forwardRef(({children:t,defaultChecked:e,checked:n,disabled:r=!1,onCheckedChange:i,hover:s,...o},a)=>{const{size:l,variant:c}=le.useContext(d8),[p,d]=le.useState(e??!1),A=n??p,{containerHoverProps:y,containerProps:C}=Zne[c];return te.jsx(Ht,{onClick:r?void 0:()=>{n==null&&d(!A),i==null||i(!A)},alignItems:"center",justifyContent:"center",borderRadius:_s.md,cursor:r?void 0:"pointer",backgroundOpacity:r?.5:void 0,borderOpacity:r?.5:void 0,backgroundColor:A?Nt.accent:void 0,hover:r?s:{backgroundColor:Nt.muted,...y,...s},ref:a,...C,...$ne[l],...o,children:te.jsx(Lr,{color:A?Nt.accentForeground:void 0,opacity:r?.5:void 0,fontSize:14,lineHeight:20,children:t})})});function tre(){return te.jsxs(ere,{children:[te.jsx(oD,{"aria-label":"Toggle bold",children:te.jsx(YN,{height:16,width:16})}),te.jsx(oD,{"aria-label":"Toggle italic",children:te.jsx(Oee,{height:16,width:16})}),te.jsx(oD,{"aria-label":"Toggle underline",children:te.jsx(ute,{width:16,height:16})})]})}const nre=le.forwardRef(({panelMaterialClass:t,value:e,defaultValue:n,onValueChange:r,tabIndex:i,disabled:s,placeholder:o,type:a,...l},c)=>{const[p,d]=le.useState(null),A=le.useMemo(()=>{if(p!=null)return bn(()=>p.current.value.length>0?0:void 0)},[p]);return te.jsx(Ht,{height:40,positionType:"relative",overflow:"hidden",ref:c,...l,children:te.jsxs(Lr,{fontSize:14,height:"100%",width:"100%",borderWidth:1,paddingX:12,paddingY:8,lineHeight:20,opacity:s?.5:void 0,backgroundOpacity:s?.5:void 0,children:[te.jsx(X4,{ref:d,borderRadius:_s.md,backgroundColor:Nt.background,borderColor:Nt.input,focus:{borderColor:Nt.ring},panelMaterialClass:t,multiline:!1,value:e,defaultValue:n,onValueChange:r,tabIndex:i,disabled:s,type:a}),o!=null&&te.jsx(pn,{color:Nt.mutedForeground,opacity:A,borderOpacity:0,inset:0,positionType:"absolute",children:o})]})})});function rre(){return te.jsx(nre,{width:200,placeholder:"Email"})}const ire=le.forwardRef(({panelMaterialClass:t,value:e,defaultValue:n,onValueChange:r,tabIndex:i,disabled:s,placeholder:o,type:a,...l},c)=>{const[p,d]=le.useState(null),A=le.useMemo(()=>{if(p!=null)return bn(()=>p.current.value.length>0?0:void 0)},[p]);return te.jsx(Ht,{minHeight:80,positionType:"relative",overflow:"hidden",ref:c,...l,children:te.jsxs(Lr,{fontSize:14,height:"100%",width:"100%",borderWidth:1,paddingX:12,paddingY:8,lineHeight:20,opacity:s?.5:void 0,backgroundOpacity:s?.5:void 0,children:[te.jsx(X4,{ref:d,borderRadius:_s.md,backgroundColor:Nt.background,borderColor:Nt.input,focus:{borderColor:Nt.ring},panelMaterialClass:t,multiline:!0,value:e,defaultValue:n,onValueChange:r,tabIndex:i,disabled:s,type:a}),o!=null&&te.jsx(pn,{color:Nt.mutedForeground,opacity:A,borderOpacity:0,inset:0,positionType:"absolute",children:o})]})})});function sre(){return te.jsx(ire,{width:200,placeholder:"Email"})}const f8=le.createContext(void 0),ore=le.forwardRef(({controls:t,children:e,...n},r)=>{const i=le.useMemo(()=>Yt(!1),[]),s=le.useMemo(()=>{let o;const a=()=>{i.value=!0,o!=null&&clearTimeout(o),o=setTimeout(()=>i.value=!1,2e3)};return{onPointerMove:a,onPointerDown:a}},[i]);return te.jsxs(oK,{...n,...s,positionType:"relative",ref:r,children:[te.jsx(f8.Provider,{value:i,children:t&&te.jsx(are,{})}),e]})}),are=le.forwardRef((t,e)=>{const n=sK(),[r,i]=le.useState(n.paused);le.useEffect(()=>{const y=()=>i(n.paused);return n.addEventListener("pause",y),n.addEventListener("play",y),()=>{n.removeEventListener("pause",y),n.removeEventListener("play",y)}},[n]);const[s,o]=le.useState(n.muted);le.useEffect(()=>{const y=()=>o(n.muted);return n.addEventListener("volumechange",y),()=>n.removeEventListener("volumechange",y)},[n]);const a=le.useMemo(()=>Yt(1),[]),l=le.useMemo(()=>Yt(0),[]),c=le.useContext(f8);if(c==null)throw new Error("VideoControls form the default kit can only be used inside a Video from the default kit");const p=le.useMemo(()=>bn(()=>c.value?"flex":"none"),[c]);le.useEffect(()=>{const y=()=>a.value=n.duration,C=()=>l.value=n.currentTime;return isNaN(n.duration)||y(),n.addEventListener("loadedmetadata",y),n.addEventListener("timeupdate",C),()=>{n.removeEventListener("loadedmetadata",y),n.removeEventListener("timeupdate",C)}},[a,l,n]);const d=le.useMemo(()=>bn(()=>`${I3(l.value)} / ${I3(a.value)}`),[a,l]),A=le.useCallback(y=>n.currentTime=y,[n]);return te.jsxs(Ht,{display:p,positionType:"absolute",padding:8,positionBottom:0,positionLeft:0,positionRight:0,flexDirection:"column",backgroundOpacity:.5,backgroundColor:Nt.background,gap:8,...t,ref:e,children:[te.jsxs(Ht,{flexDirection:"row",alignItems:"center",children:[te.jsx(Ta,{size:"icon",variant:"ghost",marginRight:8,onClick:()=>r?n.play():n.pause(),children:r?te.jsx(Kee,{cursor:"pointer",width:16,height:16}):te.jsx(Yee,{cursor:"pointer",width:16,height:16})}),te.jsx(Ta,{size:"icon",variant:"ghost",marginRight:8,onClick:()=>n.muted=!s,children:s?te.jsx(Ate,{cursor:"pointer",width:16,height:16}):te.jsx(pte,{cursor:"pointer",width:16,height:16})}),te.jsx(Ht,{flexGrow:1}),te.jsx(pn,{marginRight:16,fontSize:12,children:d})]}),te.jsx(p8,{min:0,margin:16,marginTop:8,width:void 0,max:a,value:l,onValueChange:A})]})});function I3(t){const e=Math.floor(t/3600),n=Math.floor(t/60%60),r=Math.floor(t%60);return`${e>0?`${e}:`:""}${e>0?n.toString().padStart(2,"0"):n}:${r.toString().padStart(2,"0")}`}function lre(){return te.jsx(ore,{src:"example.mp4",controls:!0,width:500})}const aD={accordion:ine,alert:cne,"alert-dialog":Cne,avatar:xne,badge:Sne,button:wne,card:Bne,checkbox:Tne,dialog:Mne,pagination:Nne,progress:Une,"radio-group":Hne,separator:zne,skeleton:Wne,slider:jne,switch:Vne,tabs:Jne,toggle:Kne,"toggle-group":tre,tooltip:nne,input:rre,textarea:sre,video:lre},ure="card";function cre(){const[t,e]=le.useState(()=>{let o=new URLSearchParams(window.location.search).get("component");return(o==null||!(o in aD))&&(o=ure),o}),n=s=>{const o=new URLSearchParams(window.location.search);o.set("component",s),history.replaceState(null,"","?"+o.toString()),e(s)},[r,i]=le.useState(()=>mF());return te.jsxs(XV,{events:Zte,style:{height:"100dvh",touchAction:"none"},gl:{localClippingEnabled:!0},children:[te.jsx(Jte,{}),te.jsx("color",{attach:"background",args:["black"]}),te.jsx("ambientLight",{intensity:.5}),te.jsx("directionalLight",{intensity:0,position:[5,1,10]}),te.jsx(Cte,{children:te.jsx(Bq,{flexDirection:"column",scrollbarColor:"black",backgroundColor:Nt.background,alignItems:"center",padding:32,children:te.jsxs(Ite,{children:[te.jsxs(KN,{alignSelf:"stretch",flexGrow:1,value:t,onValueChange:n,children:[te.jsx(ZN,{height:55,paddingBottom:10,overflow:"scroll",maxWidth:"100%",children:Object.keys(aD).map(s=>te.jsx(g2,{flexShrink:0,value:s,children:te.jsxs(pn,{children:[s[0].toUpperCase(),s.slice(1)]})},s))}),Object.entries(aD).map(([s,o])=>te.jsx(m2,{flexDirection:"column",flexGrow:1,alignItems:"center",justifyContent:"center",value:s,children:te.jsx(o,{})},s))]}),te.jsxs(GE,{padding:8,flexDirection:"row",gap:8,alignItems:"center",children:[te.jsx(Ta,{size:"icon",variant:"ghost",onClick:()=>{fY(r==="light"?"dark":r==="dark"?"system":"light"),i(mF())},children:r==="dark"?te.jsx(Hee,{}):r==="system"?te.jsx(ete,{}):te.jsx(rte,{})}),te.jsx(oE,{orientation:"vertical"}),te.jsxs(pn,{padding:8,children:["npx uikit component add default ",t]}),te.jsx(Ta,{onClick:()=>navigator.clipboard.writeText(`npx uikit component add apfel ${t}`),size:"icon",variant:"secondary",children:te.jsx(Ree,{})})]})]})})})]})}NQ(document.getElementById("root")).render(te.jsx(le.StrictMode,{children:te.jsx(cre,{})})); +`)),Qe=v.singleAttributePerLine&&O.attributes.length>1?xt:$t;return nt(["<",S("name"),O.typeArguments?S("typeArguments"):S("typeParameters"),Et(h.map(()=>[Qe,S()],"attributes")),...sg(O,v,J)],{shouldBreak:ce})}function sg(h,v,S){return h.selfClosing?[$t,"/>"]:Gd(h,v,S)?[">"]:[Ct,">"]}function Gd(h,v,S){let M=h.attributes.length>0&&Rt(U(!1,h.attributes,-1),Zt.Trailing);return h.attributes.length===0&&!S||(v.bracketSameLine||v.jsxBracketSameLine)&&(!S||h.attributes.length>0)&&!M}function Hd(h,v,S){let{node:M}=h,R=[];R.push(""),R}function Cs(h,v){let{node:S}=h,M=Rt(S),R=Rt(S,Zt.Line),O=S.type==="JSXOpeningFragment";return[O?"<":""]}function yl(h,v,S){let M=os(h,ig(h,v,S),v);return Od(h,M,v)}function bo(h,v){let{node:S}=h,M=Rt(S,Zt.Line);return[Yn(h,v,{indent:M}),M?xt:""]}function zd(h,v,S){let{node:M}=h;return["{",h.call(({node:R})=>{let O=["...",S()];return!Rt(R)||!k(h)?O:[Et([Ct,os(h,O,v)]),Ct]},M.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Hs(h,v,S){let{node:M}=h;if(M.type.startsWith("JSX"))switch(M.type){case"JSXAttribute":return ml(h,v,S);case"JSXIdentifier":return M.name;case"JSXNamespacedName":return Fn(":",[S("namespace"),S("name")]);case"JSXMemberExpression":return Fn(".",[S("object"),S("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return zd(h,v,S);case"JSXExpressionContainer":return Ud(h,v,S);case"JSXFragment":case"JSXElement":return yl(h,v,S);case"JSXOpeningElement":return Zh(h,v,S);case"JSXClosingElement":return Hd(h,v,S);case"JSXOpeningFragment":case"JSXClosingFragment":return Cs(h,v);case"JSXEmptyExpression":return bo(h,v);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new fa(M,"JSX")}}function Y0(h){if(h.children.length===0)return!0;if(h.children.length>1)return!1;let v=h.children[0];return v.type==="JSXText"&&!tu(v)}function tu(h){return h.type==="JSXText"&&(Gi.hasNonWhitespaceCharacter(bi(h))||!/\n/.test(bi(h)))}function og(h){return h.type==="JSXExpressionContainer"&&pe(h.expression)&&h.expression.value===" "&&!Rt(h.expression)}function Bv(h){let{node:v,parent:S}=h;if(!At(v)||!At(S))return!1;let{index:M,siblings:R}=h,O;for(let J=M;J>0;J--){let ce=R[J-1];if(!(ce.type==="JSXText"&&!tu(ce))){O=ce;break}}return(O==null?void 0:O.type)==="JSXExpressionContainer"&&O.expression.type==="JSXEmptyExpression"&&Qs(O.expression)}function El(h){return Qs(h.node)||Bv(h)}var ag=El,X0=0;function Wd(h,v,S){var M;let{node:R,parent:O,grandparent:J,key:ce}=h,Qe=ce!=="body"&&(O.type==="IfStatement"||O.type==="WhileStatement"||O.type==="SwitchStatement"||O.type==="DoWhileStatement"),fe=R.operator==="|>"&&((M=h.root.extra)==null?void 0:M.__isUsingHackPipeline),ke=Ua(h,S,v,!1,Qe);if(Qe)return ke;if(fe)return nt(ke);if(ye(O)&&O.callee===R||O.type==="UnaryExpression"||Pe(O)&&!O.computed)return nt([Et([Ct,...ke]),Ct]);let Te=O.type==="ReturnStatement"||O.type==="ThrowStatement"||O.type==="JSXExpressionContainer"&&J.type==="JSXAttribute"||R.operator!=="|"&&O.type==="JsExpressionRoot"||R.type!=="NGPipeExpression"&&(O.type==="NGRoot"&&v.parser==="__ng_binding"||O.type==="NGMicrosyntaxExpression"&&J.type==="NGMicrosyntax"&&J.body.length===1)||R===O.body&&O.type==="ArrowFunctionExpression"||R!==O.body&&O.type==="ForStatement"||O.type==="ConditionalExpression"&&J.type!=="ReturnStatement"&&J.type!=="ThrowStatement"&&!ye(J)||O.type==="TemplateLiteral",Re=O.type==="AssignmentExpression"||O.type==="VariableDeclarator"||O.type==="ClassProperty"||O.type==="PropertyDefinition"||O.type==="TSAbstractPropertyDefinition"||O.type==="ClassPrivateProperty"||es(O),ot=Zn(R.left)&&$n(R.operator,R.left.operator);if(Te||vc(R)&&!ot||!vc(R)&&Re)return nt(ke);if(ke.length===0)return"";let it=At(R.right),rn=ke.findIndex(Dn=>typeof Dn!="string"&&!Array.isArray(Dn)&&Dn.type===Xr),Dt=ke.slice(0,rn===-1?1:rn+1),vt=ke.slice(Dt.length,it?-1:void 0),gn=Symbol("logicalChain-"+ ++X0),dn=nt([...Dt,Et(vt)],{id:gn});if(!it)return dn;let Xn=U(!1,ke,-1);return nt([dn,Mi(Xn,{groupId:gn})])}function Ua(h,v,S,M,R){var O;let{node:J}=h;if(!Zn(J))return[nt(v())];let ce=[];$n(J.operator,J.left.operator)?ce=h.call(Dt=>Ua(Dt,v,S,!0,R),"left"):ce.push(nt(v("left")));let Qe=vc(J),fe=(J.operator==="|>"||J.type==="NGPipeExpression"||ug(h,S))&&!an(S.originalText,J.right),ke=J.type==="NGPipeExpression"?"|":J.operator,Te=J.type==="NGPipeExpression"&&J.arguments.length>0?nt(Et([Ct,": ",Fn([$t,": "],h.map(()=>yi(2,nt(v())),"arguments"))])):"",Re;if(Qe)Re=[ke," ",v("right"),Te];else{let Dt=ke==="|>"&&((O=h.root.extra)!=null&&O.__isUsingHackPipeline)?h.call(vt=>Ua(vt,v,S,!0,R),"right"):v("right");Re=[fe?$t:"",ke,fe?" ":$t,Dt,Te]}let{parent:ot}=h,it=Rt(J.left,Zt.Trailing|Zt.Line),rn=it||!(R&&J.type==="LogicalExpression")&&ot.type!==J.type&&J.left.type!==J.type&&J.right.type!==J.type;if(ce.push(fe?"":" ",rn?nt(Re,{shouldBreak:it}):Re),M&&Rt(J)){let Dt=Jl(os(h,ce,S));return Array.isArray(Dt)||Dt.type===gs?Vl(Dt):[Dt]}return ce}function vc(h){return h.type!=="LogicalExpression"?!1:!!(Jr(h.right)&&h.right.properties.length>0||mr(h.right)&&h.right.elements.length>0||At(h.right))}var lg=h=>h.type==="BinaryExpression"&&h.operator==="|";function ug(h,v){return(v.parser==="__vue_expression"||v.parser==="__vue_ts_expression")&&lg(h.node)&&!h.hasAncestor(S=>!lg(S)&&S.type!=="JsExpressionRoot")}function jd(h,v,S){let{node:M}=h;if(M.type.startsWith("NG"))switch(M.type){case"NGRoot":return[S("node"),Rt(M.node)?" //"+cl(M.node)[0].value.trimEnd():""];case"NGPipeExpression":return Wd(h,v,S);case"NGChainedExpression":return nt(Fn([";",$t],h.map(()=>K0(h)?S():["(",S(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return h.map(()=>[h.isFirst?"":q0(h)?" ":[";",$t],S()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(M.name)?M.name:JSON.stringify(M.name);case"NGMicrosyntaxExpression":return[S("expression"),M.alias===null?"":[" as ",S("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:R,parent:O}=h,J=q0(h)||(R===1&&(M.key.name==="then"||M.key.name==="else"||M.key.name==="as")||(R===2||R===3)&&(M.key.name==="else"&&O.body[R-1].type==="NGMicrosyntaxKeyedExpression"&&O.body[R-1].key.name==="then"||M.key.name==="track"))&&O.body[0].type==="NGMicrosyntaxExpression";return[S("key"),J?" ":": ",S("expression")]}case"NGMicrosyntaxLet":return["let ",S("key"),M.value===null?"":[" = ",S("value")]];case"NGMicrosyntaxAs":return[S("key")," as ",S("alias")];default:throw new fa(M,"Angular")}}function q0({node:h,index:v}){return h.type==="NGMicrosyntaxKeyedExpression"&&h.key.name==="of"&&v===1}var bv=dt(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function K0({node:h}){return ps(h,bv)}function cg(h,v,S){let{node:M}=h;return nt([Fn($t,h.map(S,"decorators")),Cl(M,v)?xt:$t])}function nu(h,v,S){return hg(h.node)?[Fn(xt,h.map(S,"declaration","decorators")),xt]:""}function Tv(h,v,S){let{node:M,parent:R}=h,{decorators:O}=M;if(!W(O)||hg(R)||ag(h))return"";let J=M.type==="ClassExpression"||M.type==="ClassDeclaration"||Cl(M,v);return[h.key==="declaration"&&Ma(R)?xt:J?Ui:"",Fn($t,h.map(S,"decorators")),$t]}function Cl(h,v){return h.decorators.some(S=>je(v.originalText,Pt(S)))}function hg(h){var v;if(h.type!=="ExportDefaultDeclaration"&&h.type!=="ExportNamedDeclaration"&&h.type!=="DeclareExportDeclaration")return!1;let S=(v=h.declaration)==null?void 0:v.decorators;return W(S)&&mt(h,S[0])}var Hi=class extends Error{constructor(){super(...arguments);Ke(this,"name","ArgExpansionBailout")}};function Mv(h,v,S){let{node:M}=h,R=Rr(M);if(R.length===0)return["(",Yn(h,v),")"];if(Z0(R))return["(",S(["arguments",0]),", ",S(["arguments",1]),")"];let O=!1,J=R.length-1,ce=[];Th(h,({node:Te},Re)=>{let ot=S();Re===J||(Yr(Te,v)?(O=!0,ot=[ot,",",xt,xt]):ot=[ot,",",$t]),ce.push(ot)});let Qe=!(M.type==="ImportExpression"||M.callee.type==="Import")&&Do(v,"all")?",":"";function fe(){return nt(["(",Et([$t,...ce]),Qe,$t,")"],{shouldBreak:!0})}if(O||h.parent.type!=="Decorator"&&_r(R))return fe();if(Fv(R)){let Te=ce.slice(1);if(Te.some(_i))return fe();let Re;try{Re=S(fd(M,0),{expandFirstArg:!0})}catch(ot){if(ot instanceof Hi)return fe();throw ot}return _i(Re)?[Ui,zo([["(",nt(Re,{shouldBreak:!0}),", ",...Te,")"],fe()])]:zo([["(",Re,", ",...Te,")"],["(",nt(Re,{shouldBreak:!0}),", ",...Te,")"],fe()])}if(_v(R,ce,v)){let Te=ce.slice(0,-1);if(Te.some(_i))return fe();let Re;try{Re=S(fd(M,-1),{expandLastArg:!0})}catch(ot){if(ot instanceof Hi)return fe();throw ot}return _i(Re)?[Ui,zo([["(",...Te,nt(Re,{shouldBreak:!0}),")"],fe()])]:zo([["(",...Te,Re,")"],["(",...Te,nt(Re,{shouldBreak:!0}),")"],fe()])}let ke=["(",Et([Ct,...ce]),_n(Qe),Ct,")"];return Bi(h)?ke:nt(ke,{shouldBreak:ce.some(_i)||O})}function xc(h,v=!1){return Jr(h)&&(h.properties.length>0||Rt(h))||mr(h)&&(h.elements.length>0||Rt(h))||h.type==="TSTypeAssertion"&&xc(h.expression)||to(h)&&xc(h.expression)||h.type==="FunctionExpression"||h.type==="ArrowFunctionExpression"&&(!h.returnType||!h.returnType.typeAnnotation||h.returnType.typeAnnotation.type!=="TSTypeReference"||Pv(h.body))&&(h.body.type==="BlockStatement"||h.body.type==="ArrowFunctionExpression"&&xc(h.body,!0)||Jr(h.body)||mr(h.body)||!v&&(ye(h.body)||h.body.type==="ConditionalExpression")||At(h.body))||h.type==="DoExpression"||h.type==="ModuleExpression"}function _v(h,v,S){var M,R;let O=U(!1,h,-1);if(h.length===1){let ce=U(!1,v,-1);if((M=ce.label)!=null&&M.embed&&((R=ce.label)==null?void 0:R.hug)!==!1)return!0}let J=U(!1,h,-2);return!Rt(O,Zt.Leading)&&!Rt(O,Zt.Trailing)&&xc(O)&&(!J||J.type!==O.type)&&(h.length!==2||J.type!=="ArrowFunctionExpression"||!mr(O))&&!(h.length>1&&ob(O,S))}function Fv(h){if(h.length!==2)return!1;let[v,S]=h;return v.type==="ModuleExpression"&&To(S)?!0:!Rt(v)&&(v.type==="FunctionExpression"||v.type==="ArrowFunctionExpression"&&v.body.type==="BlockStatement")&&S.type!=="FunctionExpression"&&S.type!=="ArrowFunctionExpression"&&S.type!=="ConditionalExpression"&&pg(S)&&!xc(S)}function pg(h){var v;if(h.type==="ParenthesizedExpression")return pg(h.expression);if(to(h)||h.type==="TypeCastExpression"){let{typeAnnotation:S}=h;return S.type==="TypeAnnotation"&&(S=S.typeAnnotation),S.type==="TSArrayType"&&(S=S.elementType,S.type==="TSArrayType"&&(S=S.elementType)),(S.type==="GenericTypeAnnotation"||S.type==="TSTypeReference")&&((v=S.typeParameters)==null?void 0:v.params.length)===1&&(S=S.typeParameters.params[0]),xr(S)&&li(h.expression,1)}return $i(h)&&Rr(h).length>1?!1:Zn(h)?li(h.left,1)&&li(h.right,1):qe(h)||li(h)}function Z0(h){return h.length===2&&h[0].type==="ArrowFunctionExpression"&&ui(h[0]).length===0&&h[0].body.type==="BlockStatement"&&h[1].type==="ArrayExpression"&&!h.some(v=>Rt(v))}function Pv(h){return h.type==="BlockStatement"&&(h.body.some(v=>v.type!=="EmptyStatement")||Rt(h,Zt.Dangling))}function To(h){return h.type==="ObjectExpression"&&h.properties.length===1&&es(h.properties[0])&&h.properties[0].key.type==="Identifier"&&h.properties[0].key.name==="type"&&pe(h.properties[0].value)&&h.properties[0].value.value==="module"}var $h=Mv,Qv=h=>((h.type==="ChainExpression"||h.type==="TSNonNullExpression")&&(h=h.expression),ye(h)&&Rr(h).length>0);function vl(h,v,S){var M;let R=S("object"),O=ep(h,v,S),{node:J}=h,ce=h.findAncestor(ke=>!(Pe(ke)||ke.type==="TSNonNullExpression")),Qe=h.findAncestor(ke=>!(ke.type==="ChainExpression"||ke.type==="TSNonNullExpression")),fe=ce&&(ce.type==="NewExpression"||ce.type==="BindExpression"||ce.type==="AssignmentExpression"&&ce.left.type!=="Identifier")||J.computed||J.object.type==="Identifier"&&J.property.type==="Identifier"&&!Pe(Qe)||(Qe.type==="AssignmentExpression"||Qe.type==="VariableDeclarator")&&(Qv(J.object)||((M=R.label)==null?void 0:M.memberChain));return Wo(R.label,[R,fe?O:nt(Et([Ct,O]))])}function ep(h,v,S){let M=S("property"),{node:R}=h,O=co(h);return R.computed?!R.property||Ki(R.property)?[O,"[",M,"]"]:nt([O,"[",Et([Ct,M]),Ct,"]"]):[O,".",M]}function xl(h,v,S){if(h.node.type==="ChainExpression")return h.call(()=>xl(h,v,S),"expression");let{parent:M}=h,R=!M||M.type==="ExpressionStatement",O=[];function J(wn){let{originalText:Dr}=v,Pi=Vo(Dr,Pt(wn));return Dr.charAt(Pi)===")"?Pi!==!1&<(Dr,Pi+1):Yr(wn,v)}function ce(wn){let{node:Dr}=wn;if(Dr.type==="ChainExpression")return wn.call(()=>ce(wn),"expression");if(ye(Dr)&&(Ir(Dr.callee)||ye(Dr.callee))){let Pi=J(Dr);O.unshift({node:Dr,hasTrailingEmptyLine:Pi,printed:[os(wn,[co(wn),tp(wn,v,S),$h(wn,v,S)],v),Pi?xt:""]}),wn.call(Ga=>ce(Ga),"callee")}else Ir(Dr)?(O.unshift({node:Dr,needsParens:eu(wn,v),printed:os(wn,Pe(Dr)?ep(wn,v,S):ib(wn,v,S),v)}),wn.call(Pi=>ce(Pi),"object")):Dr.type==="TSNonNullExpression"?(O.unshift({node:Dr,printed:os(wn,"!",v)}),wn.call(Pi=>ce(Pi),"expression")):O.unshift({node:Dr,printed:S()})}let{node:Qe}=h;O.unshift({node:Qe,printed:[co(h),tp(h,v,S),$h(h,v,S)]}),Qe.callee&&h.call(wn=>ce(wn),"callee");let fe=[],ke=[O[0]],Te=1;for(;Te0&&fe.push(ke);function ot(wn){return/^[A-Z]|^[$_]+$/.test(wn)}function it(wn){return wn.length<=v.tabWidth}function rn(wn){var Dr;let Pi=(Dr=wn[1][0])==null?void 0:Dr.node.computed;if(wn[0].length===1){let rp=wn[0][0].node;return rp.type==="ThisExpression"||rp.type==="Identifier"&&(ot(rp.name)||R&&it(rp.name)||Pi)}let Ga=U(!1,wn[0],-1).node;return Pe(Ga)&&Ga.property.type==="Identifier"&&(ot(Ga.property.name)||Pi)}let Dt=fe.length>=2&&!Rt(fe[1][0].node)&&rn(fe);function vt(wn){let Dr=wn.map(Pi=>Pi.printed);return wn.length>0&&U(!1,wn,-1).needsParens?["(",...Dr,")"]:Dr}function gn(wn){return wn.length===0?"":Et([xt,Fn(xt,wn.map(vt))])}let dn=fe.map(vt),Xn=dn,Dn=Dt?3:2,wt=fe.flat(),hr=wt.slice(1,-1).some(wn=>Rt(wn.node,Zt.Leading))||wt.slice(0,-1).some(wn=>Rt(wn.node,Zt.Trailing))||fe[Dn]&&Rt(fe[Dn][0].node,Zt.Leading);if(fe.length<=Dn&&!hr&&!fe.some(wn=>U(!1,wn,-1).hasTrailingEmptyLine))return Bi(h)?Xn:nt(Xn);let zs=U(!1,fe[Dt?1:0],-1).node,Ar=!ye(zs)&&J(zs),Is=[vt(fe[0]),Dt?fe.slice(1,2).map(vt):"",Ar?xt:"",gn(fe.slice(Dt?2:1))],Fi=O.map(({node:wn})=>wn).filter(ye);function Xd(){let wn=U(!1,U(!1,fe,-1),-1).node,Dr=U(!1,dn,-1);return ye(wn)&&_i(Dr)&&Fi.slice(0,-1).some(Pi=>Pi.arguments.some($e))}let mg;return hr||Fi.length>2&&Fi.some(wn=>!wn.arguments.every(Dr=>li(Dr)))||dn.slice(0,-1).some(_i)||Xd()?mg=nt(Is):mg=[_i(Xn)||Ar?Ui:"",zo([Xn,Is])],Wo({memberChain:!0},mg)}var Vd=xl;function Jd(h,v,S){var M;let{node:R,parent:O}=h,J=R.type==="NewExpression",ce=R.type==="ImportExpression",Qe=co(h),fe=Rr(R),ke=fe.length===1&&Ur(fe[0],v.originalText);if(ke||fe.length>0&&!J&&!ce&&(kv(R,O)||ee(R,O))){let Re=[];if(Th(h,()=>{Re.push(S())}),!(ke&&(M=Re[0].label)!=null&&M.embed))return[J?"new ":"",S("callee"),Qe,tp(h,v,S),"(",Fn(", ",Re),")"]}if(!ce&&!J&&Ir(R.callee)&&!h.call(Re=>eu(Re,v),"callee",...R.callee.type==="ChainExpression"?["expression"]:[]))return Vd(h,v,S);let Te=[J?"new ":"",ce?dg(R):S("callee"),Qe,tp(h,v,S),$h(h,v,S)];return ce||ye(R.callee)?nt(Te):Te}function dg(h){return h.phase?`import.${h.phase}`:"import"}function kv(h,v){if(h.callee.type!=="Identifier")return!1;if(h.callee.name==="require"){let S=Rr(h);return S.length===1&&pe(S[0])||S.length>1}if(h.callee.name==="define"){let S=Rr(h);return v.type==="ExpressionStatement"&&(S.length===1||S.length===2&&S[0].type==="ArrayExpression"||S.length===3&&pe(S[0])&&S[1].type==="ArrayExpression")}return!1}function Ic(h,v,S,M,R,O){let J=ty(h,v,S,M,O),ce=O?S(O,{assignmentLayout:J}):"";switch(J){case"break-after-operator":return nt([nt(M),R,nt(Et([$t,ce]))]);case"never-break-after-operator":return nt([nt(M),R," ",ce]);case"fluid":{let Qe=Symbol("assignment");return nt([nt(M),R,nt(Et($t),{id:Qe}),tr,Mi(ce,{groupId:Qe})])}case"break-lhs":return nt([M,R," ",nt(ce)]);case"chain":return[nt(M),R,$t,ce];case"chain-tail":return[nt(M),R,Et([$t,ce])];case"chain-tail-arrow-chain":return[nt(M),R,ce];case"only-left":return M}}function $0(h,v,S){let{node:M}=h;return Ic(h,v,S,S("left"),[" ",M.operator],"right")}function ey(h,v,S){return Ic(h,v,S,S("id")," =","init")}function ty(h,v,S,M,R){let{node:O}=h,J=O[R];if(!J)return"only-left";let ce=!Yd(J);if(h.match(Yd,g,ke=>!ce||ke.type!=="ExpressionStatement"&&ke.type!=="VariableDeclaration"))return ce?J.type==="ArrowFunctionExpression"&&J.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!ce&&Yd(J.right)||an(v.originalText,J))return"break-after-operator";if(J.type==="CallExpression"&&J.callee.name==="require"||v.parser==="json5"||v.parser==="jsonc"||v.parser==="json")return"never-break-after-operator";let Qe=kh(M);if(Rv(O)||G(O)||V(O)&&Qe)return"break-lhs";let fe=kt(O,M,v);return h.call(()=>fg(h,v,S,fe),R)?"break-after-operator":m(O)?"break-lhs":!Qe&&(fe||J.type==="TemplateLiteral"||J.type==="TaggedTemplateExpression"||J.type==="BooleanLiteral"||Ki(J)||J.type==="ClassExpression")?"never-break-after-operator":"fluid"}function fg(h,v,S,M){let R=h.node;if(Zn(R)&&!vc(R))return!0;switch(R.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!v.experimentalTernaries&&!In(R))break;return!0;case"ConditionalExpression":{if(!v.experimentalTernaries){let{test:fe}=R;return Zn(fe)&&!vc(fe)}let{consequent:ce,alternate:Qe}=R;return ce.type==="ConditionalExpression"||Qe.type==="ConditionalExpression"}case"ClassExpression":return W(R.decorators)}if(M)return!1;let O=R,J=[];for(;;)if(O.type==="UnaryExpression"||O.type==="AwaitExpression"||O.type==="YieldExpression"&&O.argument!==null)O=O.argument,J.push("argument");else if(O.type==="TSNonNullExpression")O=O.expression,J.push("expression");else break;return!!(pe(O)||h.call(()=>ht(h,v,S),...J))}function Rv(h){if(g(h)){let v=h.left||h.id;return v.type==="ObjectPattern"&&v.properties.length>2&&v.properties.some(S=>{var M;return es(S)&&(!S.shorthand||((M=S.value)==null?void 0:M.type)==="AssignmentPattern")})}return!1}function Yd(h){return h.type==="AssignmentExpression"}function g(h){return Yd(h)||h.type==="VariableDeclarator"}function m(h){let v=Q(h);if(W(v)){let S=h.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(v.length>1&&v.some(M=>M[S]||M.default))return!0}return!1}var T=dt(["TSTypeAliasDeclaration","TypeAlias"]);function Q(h){var v;if(T(h))return(v=h.typeParameters)==null?void 0:v.params}function G(h){if(h.type!=="VariableDeclarator")return!1;let{typeAnnotation:v}=h.id;if(!v||!v.typeAnnotation)return!1;let S=Je(v.typeAnnotation);return W(S)&&S.length>1&&S.some(M=>W(Je(M))||M.type==="TSConditionalType")}function V(h){var v;return h.type==="VariableDeclarator"&&((v=h.init)==null?void 0:v.type)==="ArrowFunctionExpression"}var Ce=dt(["TSTypeReference","GenericTypeAnnotation"]);function Je(h){var v;if(Ce(h))return(v=h.typeParameters)==null?void 0:v.params}function ht(h,v,S,M=!1){var R;let{node:O}=h,J=()=>ht(h,v,S,!0);if(O.type==="ChainExpression"||O.type==="TSNonNullExpression")return h.call(J,"expression");if(ye(O)){if((R=Jd(h,v,S).label)!=null&&R.memberChain)return!1;let ce=Rr(O);return!(ce.length===0||ce.length===1&&Qt(ce[0],v))||ln(O,S)?!1:h.call(J,"callee")}return Pe(O)?h.call(J,"object"):M&&(O.type==="Identifier"||O.type==="ThisExpression")}function kt(h,v,S){return es(h)?(v=Jl(v),typeof v=="string"&&we(v)1)return!0;if(S.length===1){let R=S[0];if(mi(R)||Wl(R)||R.type==="TSTypeLiteral"||R.type==="ObjectTypeAnnotation")return!0}let M=h.typeParameters?"typeParameters":"typeArguments";if(_i(v(M)))return!0}return!1}function Nn(h){var v;return(v=h.typeParameters??h.typeArguments)==null?void 0:v.params}function In(h){function v(S){switch(S.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":case"TSTypeReference":return!!S.typeParameters;default:return!1}}return v(h.checkType)||v(h.extendsType)}function Er(h,v,S,M,R){let O=h.node,J=ui(O),ce=R?tp(h,S,v):"";if(J.length===0)return[ce,"(",Yn(h,S,{filter:ot=>Pr(S.originalText,Pt(ot))===")"}),")"];let{parent:Qe}=h,fe=ee(Qe),ke=mn(O),Te=[];if(dd(h,(ot,it)=>{let rn=it===J.length-1;rn&&O.rest&&Te.push("..."),Te.push(v()),!rn&&(Te.push(","),fe||ke?Te.push(" "):Yr(J[it],S)?Te.push(xt,xt):Te.push($t))}),M&&!tt(h)){if(_i(ce)||_i(Te))throw new Hi;return nt([ao(ce),"(",ao(Te),")"])}let Re=J.every(ot=>!W(ot.decorators));return ke&&Re?[ce,"(",...Te,")"]:fe?[ce,"(",...Te,")"]:(en(Qe)||Cn(Qe)||Qe.type==="TypeAlias"||Qe.type==="UnionTypeAnnotation"||Qe.type==="IntersectionTypeAnnotation"||Qe.type==="FunctionTypeAnnotation"&&Qe.returnType===O)&&J.length===1&&J[0].name===null&&O.this!==J[0]&&J[0].typeAnnotation&&O.typeParameters===null&&xr(J[0].typeAnnotation)&&!O.rest?S.arrowParens==="always"?["(",...Te,")"]:Te:[ce,"(",Et([Ct,...Te]),_n(!bh(O)&&Do(S,"all")?",":""),Ct,")"]}function mn(h){if(!h)return!1;let v=ui(h);if(v.length!==1)return!1;let[S]=v;return!Rt(S)&&(S.type==="ObjectPattern"||S.type==="ArrayPattern"||S.type==="Identifier"&&S.typeAnnotation&&(S.typeAnnotation.type==="TypeAnnotation"||S.typeAnnotation.type==="TSTypeAnnotation")&&Me(S.typeAnnotation.typeAnnotation)||S.type==="FunctionTypeParam"&&Me(S.typeAnnotation)&&S!==h.rest||S.type==="AssignmentPattern"&&(S.left.type==="ObjectPattern"||S.left.type==="ArrayPattern")&&(S.right.type==="Identifier"||Jr(S.right)&&S.right.properties.length===0||mr(S.right)&&S.right.elements.length===0))}function as(h){let v;return h.returnType?(v=h.returnType,v.typeAnnotation&&(v=v.typeAnnotation)):h.typeAnnotation&&(v=h.typeAnnotation),v}function vs(h,v){var S;let M=as(h);if(!M)return!1;let R=(S=h.typeParameters)==null?void 0:S.params;if(R){if(R.length>1)return!1;if(R.length===1){let O=R[0];if(O.constraint||O.default)return!1}}return ui(h).length===1&&(Me(M)||_i(v))}function tt(h){return h.match(v=>v.type==="ArrowFunctionExpression"&&v.body.type==="BlockStatement",(v,S)=>{if(v.type==="CallExpression"&&S==="arguments"&&v.arguments.length===1&&v.callee.type==="CallExpression"){let M=v.callee.callee;return M.type==="Identifier"||M.type==="MemberExpression"&&!M.computed&&M.object.type==="Identifier"&&M.property.type==="Identifier"}return!1},(v,S)=>v.type==="VariableDeclarator"&&S==="init"||v.type==="ExportDefaultDeclaration"&&S==="declaration"||v.type==="TSExportAssignment"&&S==="expression"||v.type==="AssignmentExpression"&&S==="right"&&v.left.type==="MemberExpression"&&v.left.object.type==="Identifier"&&v.left.object.name==="module"&&v.left.property.type==="Identifier"&&v.left.property.name==="exports",v=>v.type!=="VariableDeclaration"||v.kind==="const"&&v.declarations.length===1)}function Ye(h){let v=ui(h);return v.length>1&&v.some(S=>S.type==="TSParameterProperty")}var at=dt(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),Jt=dt(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function yn(h){let{types:v}=h;if(v.some(M=>Rt(M)))return!1;let S=v.find(M=>Jt(M));return S?v.every(M=>M===S||at(M)):!1}function Gn(h){return xr(h)||Me(h)?!0:mi(h)?yn(h):!1}function On(h,v,S){let M=v.semi?";":"",{node:R}=h,O=[Aa(h),"opaque type ",S("id"),S("typeParameters")];return R.supertype&&O.push(": ",S("supertype")),R.impltype&&O.push(" = ",S("impltype")),O.push(M),O}function ur(h,v,S){let M=v.semi?";":"",{node:R}=h,O=[Aa(h)];O.push("type ",S("id"),S("typeParameters"));let J=R.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[Ic(h,v,S,O," =",J),M]}function vi(h,v,S){let M=!1;return nt(h.map(({isFirst:R,previous:O,node:J,index:ce})=>{let Qe=S();if(R)return Qe;let fe=Me(J),ke=Me(O);return ke&&fe?[" & ",M?Et(Qe):Qe]:!ke&&!fe?Et([" &",$t,Qe]):(ce>1&&(M=!0),[" & ",ce>1?Et(Qe):Qe])},"types"))}function cr(h,v,S){let{node:M}=h,{parent:R}=h,O=R.type!=="TypeParameterInstantiation"&&(R.type!=="TSConditionalType"||!v.experimentalTernaries)&&(R.type!=="ConditionalTypeAnnotation"||!v.experimentalTernaries)&&R.type!=="TSTypeParameterInstantiation"&&R.type!=="GenericTypeAnnotation"&&R.type!=="TSTypeReference"&&R.type!=="TSTypeAssertion"&&R.type!=="TupleTypeAnnotation"&&R.type!=="TSTupleType"&&!(R.type==="FunctionTypeParam"&&!R.name&&h.grandparent.this!==R)&&!((R.type==="TypeAlias"||R.type==="VariableDeclarator"||R.type==="TSTypeAliasDeclaration")&&an(v.originalText,M)),J=Gn(M),ce=h.map(ke=>{let Te=S();return J||(Te=yi(2,Te)),os(ke,Te,v)},"types");if(J)return Fn(" | ",ce);let Qe=O&&!an(v.originalText,M),fe=[_n([Qe?$t:"","| "]),Fn([$t,"| "],ce)];return eu(h,v)?nt([Et(fe),Ct]):(R.type==="TupleTypeAnnotation"||R.type==="TSTupleType")&&R[R.type==="TupleTypeAnnotation"&&R.types?"types":"elementTypes"].length>1?nt([Et([_n(["(",Ct]),fe]),Ct,_n(")")]):nt(O?Et(fe):fe)}function Il(h){var v;let{node:S,parent:M}=h;return S.type==="FunctionTypeAnnotation"&&(en(M)||!((M.type==="ObjectTypeProperty"||M.type==="ObjectTypeInternalSlot")&&!M.variance&&!M.optional&&mt(M,S)||M.type==="ObjectTypeCallProperty"||((v=h.getParentNode(2))==null?void 0:v.type)==="DeclareFunction"))}function ny(h,v,S){let{node:M}=h,R=[ry(h)];(M.type==="TSConstructorType"||M.type==="TSConstructSignatureDeclaration")&&R.push("new ");let O=Er(h,S,v,!1,!0),J=[];return M.type==="FunctionTypeAnnotation"?J.push(Il(h)?" => ":": ",S("returnType")):J.push(xs(h,S,M.returnType?"returnType":"typeAnnotation")),vs(M,J)&&(O=nt(O)),R.push(O,J),nt(R)}function JB(h,v,S){return[S("objectType"),co(h),"[",S("indexType"),"]"]}function YB(h,v,S){return["infer ",S("typeParameter")]}function XB(h,v,S){let{node:M}=h;return[M.postfix?"":S,xs(h,v),M.postfix?S:""]}function qB(h,v,S){let{node:M}=h;return["...",...M.type==="TupleTypeSpreadElement"&&M.label?[S("label"),": "]:[],S("typeAnnotation")]}function KB(h,v,S){let{node:M}=h;return[M.variance?S("variance"):"",S("label"),M.optional?"?":"",": ",S("elementType")]}var A8=new WeakSet;function xs(h,v,S="typeAnnotation"){let{node:{[S]:M}}=h;if(!M)return"";let R=!1;if(M.type==="TSTypeAnnotation"||M.type==="TypeAnnotation"){let O=h.call(ZB,S);(O==="=>"||O===":"&&Rt(M,Zt.Leading))&&(R=!0),A8.add(M)}return R?[" ",v(S)]:v(S)}var ZB=h=>h.match(v=>v.type==="TSTypeAnnotation",(v,S)=>(S==="returnType"||S==="typeAnnotation")&&(v.type==="TSFunctionType"||v.type==="TSConstructorType"))?"=>":h.match(v=>v.type==="TSTypeAnnotation",(v,S)=>S==="typeAnnotation"&&(v.type==="TSJSDocNullableType"||v.type==="TSJSDocNonNullableType"||v.type==="TSTypePredicate"))||h.match(v=>v.type==="TypeAnnotation",(v,S)=>S==="typeAnnotation"&&v.type==="Identifier",(v,S)=>S==="id"&&v.type==="DeclareFunction")||h.match(v=>v.type==="TypeAnnotation",(v,S)=>S==="bound"&&v.type==="TypeParameter"&&v.usesExtendsBound)?"":":";function $B(h,v,S){let M=ZB(h);return M?[M," ",S("typeAnnotation")]:S("typeAnnotation")}function eb(h){return[h("elementType"),"[]"]}function tb({node:h},v){let S=h.type==="TSTypeQuery"?"exprName":"argument",M=h.type==="TSTypeQuery"?"typeParameters":"typeArguments";return["typeof ",v(S),v(M)]}function nb(h,v){let{node:S}=h;return[S.asserts?"asserts ":"",v("parameterName"),S.typeAnnotation?[" is ",xs(h,v)]:""]}function co(h){let{node:v}=h;return!v.optional||v.type==="Identifier"&&v===h.parent.key?"":ye(v)||Pe(v)&&v.computed||v.type==="OptionalIndexedAccessType"?"?.":"?"}function rb(h){return h.node.definite||h.match(void 0,(v,S)=>S==="id"&&v.type==="VariableDeclarator"&&v.definite)?"!":""}var g8=new Set(["DeclareClass","DeclareFunction","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Aa(h){let{node:v}=h;return v.declare||g8.has(v.type)&&h.parent.type!=="DeclareExportDeclaration"?"declare ":""}var m8=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function ry({node:h}){return h.abstract||m8.has(h.type)?"abstract ":""}function tp(h,v,S){let M=h.node;return M.typeArguments?S("typeArguments"):M.typeParameters?S("typeParameters"):""}function ib(h,v,S){return["::",S("callee")]}function Dc(h,v,S){return h.type==="EmptyStatement"?";":h.type==="BlockStatement"||S?[" ",v]:Et([$t,v])}function sb(h,v){return["...",v("argument"),xs(h,v)]}function iy(h){return h.accessibility?h.accessibility+" ":""}function y8(h,v,S,M){let{node:R}=h;return Rt(R,Zt.Dangling)?nt([S,Yn(h,v,{indent:!0}),Ct,M]):[S,M]}function Lv(h,v,S){let{node:M}=h,R=[],O=M.type==="TupleExpression"?"#[":"[",J="]",ce=M.type==="TupleTypeAnnotation"&&M.types?"types":M.type==="TSTupleType"||M.type==="TupleTypeAnnotation"?"elementTypes":"elements",Qe=M[ce];if(Qe.length===0)R.push(y8(h,v,O,J));else{let fe=U(!1,Qe,-1),ke=(fe==null?void 0:fe.type)!=="RestElement",Te=fe===null,Re=Symbol("array"),ot=!v.__inJestEach&&Qe.length>1&&Qe.every((Dt,vt,gn)=>{let dn=Dt==null?void 0:Dt.type;if(!mr(Dt)&&!Jr(Dt))return!1;let Xn=gn[vt+1];if(Xn&&dn!==Xn.type)return!1;let Dn=mr(Dt)?"elements":"properties";return Dt[Dn]&&Dt[Dn].length>1}),it=ob(M,v),rn=ke?Te?",":Do(v)?it?_n(",","",{groupId:Re}):_n(","):"":"";R.push(nt([O,Et([Ct,it?C8(h,v,S,rn):[E8(h,v,ce,S),rn],Yn(h,v)]),Ct,J],{shouldBreak:ot,id:Re}))}return R.push(co(h),xs(h,S)),R}function ob(h,v){return mr(h)&&h.elements.length>1&&h.elements.every(S=>S&&(Ki(S)||ll(S)&&!Rt(S.argument))&&!Rt(S,Zt.Trailing|Zt.Line,M=>!je(v.originalText,Ft(M),{backwards:!0})))}function ab({node:h},{originalText:v}){let S=R=>Ne(v,Ve(v,R)),M=R=>v[R]===","?R:M(S(R+1));return lt(v,M(Pt(h)))}function E8(h,v,S,M){let R=[];return h.each(({node:O,isLast:J})=>{R.push(O?nt(M()):""),J||R.push([",",$t,O&&ab(h,v)?Ct:""])},S),R}function C8(h,v,S,M){let R=[];return h.each(({isLast:O,next:J})=>{R.push([S(),O?M:","]),O||R.push(ab(h,v)?[xt,xt]:Rt(J,Zt.Leading|Zt.Line)?xt:$t)},"elements"),pa(R)}var lb=new Proxy(()=>{},{get:()=>lb}),ub=lb;function v8(h){return h.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var Sc=v8,sy=new WeakMap;function Ag(h,v,S){let{node:M}=h;if(M.computed)return["[",S("key"),"]"];let{parent:R}=h,{key:O}=M;if(v.quoteProps==="consistent"&&!sy.has(R)){let J=(R.properties||R.body||R.members).some(ce=>!ce.computed&&ce.key&&pe(ce.key)&&!Qn(ce,v));sy.set(R,J)}if((O.type==="Identifier"||Ki(O)&&kr(Sc(bi(O)))&&String(O.value)===Sc(bi(O))&&!(v.parser==="typescript"||v.parser==="babel-ts"))&&(v.parser==="json"||v.parser==="jsonc"||v.quoteProps==="consistent"&&sy.get(R))){let J=Ot(JSON.stringify(O.type==="Identifier"?O.name:O.value.toString()),v);return h.call(ce=>os(ce,J,v),"key")}return Qn(M,v)&&(v.quoteProps==="as-needed"||v.quoteProps==="consistent"&&!sy.get(R))?h.call(J=>os(J,/^\d/.test(O.value)?Sc(O.value):O.value,v),"key"):S("key")}function cb(h,v,S){let{node:M}=h;return M.shorthand?S("value"):Ic(h,v,S,Ag(h,v,S),":","value")}var x8=({node:h,key:v,parent:S})=>v==="value"&&h.type==="FunctionExpression"&&(S.type==="ObjectMethod"||S.type==="ClassMethod"||S.type==="ClassPrivateMethod"||S.type==="MethodDefinition"||S.type==="TSAbstractMethodDefinition"||S.type==="TSDeclareMethod"||S.type==="Property"&&Kt(S));function hb(h,v,S,M){if(x8(h))return Ov(h,S,v);let{node:R}=h,O=!1;if((R.type==="FunctionDeclaration"||R.type==="FunctionExpression")&&M!=null&&M.expandLastArg){let{parent:ke}=h;ye(ke)&&(Rr(ke).length>1||ui(R).every(Te=>Te.type==="Identifier"&&!Te.typeAnnotation))&&(O=!0)}let J=[Aa(h),R.async?"async ":"",`function${R.generator?"*":""} `,R.id?v("id"):""],ce=Er(h,v,S,O),Qe=Uv(h,v),fe=vs(R,Qe);return J.push(tp(h,S,v),nt([fe?nt(ce):ce,Qe]),R.body?" ":"",v("body")),S.semi&&(R.declare||!R.body)&&J.push(";"),J}function Nv(h,v,S){let{node:M}=h,{kind:R}=M,O=M.value||M,J=[];return!R||R==="init"||R==="method"||R==="constructor"?O.async&&J.push("async "):(ub.ok(R==="get"||R==="set"),J.push(R," ")),O.generator&&J.push("*"),J.push(Ag(h,v,S),M.optional||M.key.optional?"?":"",M===O?Ov(h,v,S):S("value")),J}function Ov(h,v,S){let{node:M}=h,R=Er(h,S,v),O=Uv(h,S),J=Ye(M),ce=vs(M,O),Qe=[tp(h,v,S),nt([J?nt(R,{shouldBreak:!0}):ce?nt(R):R,O])];return M.body?Qe.push(" ",S("body")):Qe.push(v.semi?";":""),Qe}function I8(h){let v=ui(h);return v.length===1&&!h.typeParameters&&!Rt(h,Zt.Dangling)&&v[0].type==="Identifier"&&!v[0].typeAnnotation&&!Rt(v[0])&&!v[0].optional&&!h.predicate&&!h.returnType}function pb(h,v){if(v.arrowParens==="always")return!1;if(v.arrowParens==="avoid"){let{node:S}=h;return I8(S)}return!1}function Uv(h,v){let{node:S}=h,M=[xs(h,v,"returnType")];return S.predicate&&M.push(v("predicate")),M}function db(h,v,S){let{node:M}=h,R=v.semi?";":"",O=[];if(M.argument){let Qe=S("argument");w8(v,M.argument)?Qe=["(",Et([xt,Qe]),xt,")"]:(Zn(M.argument)||M.argument.type==="SequenceExpression"||v.experimentalTernaries&&M.argument.type==="ConditionalExpression"&&(M.argument.consequent.type==="ConditionalExpression"||M.argument.alternate.type==="ConditionalExpression"))&&(Qe=nt([_n("("),Et([Ct,Qe]),Ct,_n(")")])),O.push(" ",Qe)}let J=Rt(M,Zt.Dangling),ce=R&&J&&Rt(M,Zt.Last|Zt.Line);return ce&&O.push(R),J&&O.push(" ",Yn(h,v)),ce||O.push(R),O}function D8(h,v,S){return["return",db(h,v,S)]}function S8(h,v,S){return["throw",db(h,v,S)]}function w8(h,v){if(an(h.originalText,v)||Rt(v,Zt.Leading,S=>wo(h.originalText,Ft(S),Pt(S)))&&!At(v))return!0;if(Fs(v)){let S=v,M;for(;M=Io(S);)if(S=M,an(h.originalText,S))return!0}return!1}var Gv=new WeakMap;function fb(h){return Gv.has(h)||Gv.set(h,h.type==="ConditionalExpression"&&!$r(h,v=>v.type==="ObjectExpression")),Gv.get(h)}var Ab=h=>h.type==="SequenceExpression";function B8(h,v,S,M={}){let R=[],O,J=[],ce=!1,Qe=!M.expandLastArg&&h.node.body.type==="ArrowFunctionExpression",fe;(function Dt(){let{node:vt}=h,gn=b8(h,v,S,M);if(R.length===0)R.push(gn);else{let{leading:dn,trailing:Xn}=Us(h,v);R.push([dn,gn]),J.unshift(Xn)}Qe&&(ce||(ce=vt.returnType&&ui(vt).length>0||vt.typeParameters||ui(vt).some(dn=>dn.type!=="Identifier"))),!Qe||vt.body.type!=="ArrowFunctionExpression"?(O=S("body",M),fe=vt.body):h.call(Dt,"body")})();let ke=!an(v.originalText,fe)&&(Ab(fe)||T8(fe,O,v)||!ce&&fb(fe)),Te=h.key==="callee"&&$i(h.parent),Re=Symbol("arrow-chain"),ot=M8(h,M,{signatureDocs:R,shouldBreak:ce}),it,rn=!1;return Qe&&(Te||M.assignmentLayout)&&(rn=!0,it=M.assignmentLayout==="chain-tail-arrow-chain"||Te&&!ke),O=_8(h,v,M,{bodyDoc:O,bodyComments:J,functionBody:fe,shouldPutBodyOnSameLine:ke}),nt([nt(rn?Et([Ct,ot]):ot,{shouldBreak:it,id:Re})," =>",Qe?Mi(O,{groupId:Re}):nt(O),Qe&&Te?_n(Ct,"",{groupId:Re}):""])}function b8(h,v,S,M){let{node:R}=h,O=[];if(R.async&&O.push("async "),pb(h,v))O.push(S(["params",0]));else{let ce=M.expandLastArg||M.expandFirstArg,Qe=Uv(h,S);if(ce){if(_i(Qe))throw new Hi;Qe=nt(ao(Qe))}O.push(nt([Er(h,S,v,ce,!0),Qe]))}let J=Yn(h,v,{filter(ce){let Qe=Vo(v.originalText,Pt(ce));return Qe!==!1&&v.originalText.slice(Qe,Qe+2)==="=>"}});return J&&O.push(" ",J),O}function T8(h,v,S){var M,R;return mr(h)||Jr(h)||h.type==="ArrowFunctionExpression"||h.type==="DoExpression"||h.type==="BlockStatement"||At(h)||((M=v.label)==null?void 0:M.hug)!==!1&&(((R=v.label)==null?void 0:R.embed)||Ur(h,S.originalText))}function M8(h,v,{signatureDocs:S,shouldBreak:M}){if(S.length===1)return S[0];let{parent:R,key:O}=h;return O!=="callee"&&$i(R)||Zn(R)?nt([S[0]," =>",Et([$t,Fn([" =>",$t],S.slice(1))])],{shouldBreak:M}):O==="callee"&&$i(R)||v.assignmentLayout?nt(Fn([" =>",$t],S),{shouldBreak:M}):nt(Et(Fn([" =>",$t],S)),{shouldBreak:M})}function _8(h,v,S,{bodyDoc:M,bodyComments:R,functionBody:O,shouldPutBodyOnSameLine:J}){let{node:ce,parent:Qe}=h,fe=S.expandLastArg&&Do(v,"all")?_n(","):"",ke=(S.expandLastArg||Qe.type==="JSXExpressionContainer")&&!Rt(ce)?Ct:"";return J&&fb(O)?[" ",nt([_n("","("),Et([Ct,M]),_n("",")"),fe,ke]),R]:(Ab(O)&&(M=nt(["(",Et([Ct,M]),Ct,")"])),J?[" ",M,R]:[Et([$t,M,R]),fe,ke])}var F8=(h,v,S)=>{if(!(h&&v==null)){if(v.findLast)return v.findLast(S);for(let M=v.length-1;M>=0;M--){let R=v[M];if(S(R,M,v))return R}}},P8=F8;function Hv(h,v,S,M){let{node:R}=h,O=[],J=P8(!1,R[M],ce=>ce.type!=="EmptyStatement");return h.each(({node:ce})=>{ce.type!=="EmptyStatement"&&(O.push(S()),ce!==J&&(O.push(xt),Yr(ce,v)&&O.push(xt)))},M),O}function gb(h,v,S){let{node:M}=h,R=[];M.type==="StaticBlock"&&R.push("static "),R.push("{");let O=mb(h,v,S);if(O)R.push(Et([xt,O]),xt);else{let{parent:J}=h,ce=h.grandparent;J.type==="ArrowFunctionExpression"||J.type==="FunctionExpression"||J.type==="FunctionDeclaration"||J.type==="ObjectMethod"||J.type==="ClassMethod"||J.type==="ClassPrivateMethod"||J.type==="ForStatement"||J.type==="WhileStatement"||J.type==="DoWhileStatement"||J.type==="DoExpression"||J.type==="CatchClause"&&!ce.finalizer||J.type==="TSModuleDeclaration"||J.type==="TSDeclareFunction"||M.type==="StaticBlock"||R.push(xt)}return R.push("}"),R}function mb(h,v,S){var M;let{node:R}=h,O=W(R.directives),J=R.body.some(fe=>fe.type!=="EmptyStatement"),ce=Rt(R,Zt.Dangling);if(!O&&!J&&!ce)return"";let Qe=[];return O&&(Qe.push(Hv(h,v,S,"directives")),(J||ce)&&(Qe.push(xt),Yr(U(!1,R.directives,-1),v)&&Qe.push(xt))),J&&Qe.push(Hv(h,v,S,"body")),ce&&Qe.push(Yn(h,v)),R.type==="Program"&&((M=h.parent)==null?void 0:M.type)!=="ModuleExpression"&&Qe.push(xt),Qe}function Q8(h){let v=new WeakMap;return function(S){return v.has(S)||v.set(S,Symbol(h)),v.get(S)}}var yb=Q8;function k8(h){switch(h){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function R8(h,v,S){let{node:M}=h;return nt([M.variance?S("variance"):"","[",Et([S("keyTparam")," in ",S("sourceType")]),"]",k8(M.optional),": ",S("propType")])}function Eb(h,v){return h==="+"||h==="-"?h+v:v}function L8(h,v,S){let{node:M}=h,R=wo(v.originalText,Ft(M),Ft(M.typeParameter));return nt(["{",Et([v.bracketSpacing?$t:Ct,nt([S("typeParameter"),M.optional?Eb(M.optional,"?"):"",M.typeAnnotation?": ":"",S("typeAnnotation")]),v.semi?_n(";"):""]),Yn(h,v),v.bracketSpacing?$t:Ct,"}"],{shouldBreak:R})}var zv=yb("typeParameters");function N8(h,v,S){let{node:M}=h;return ui(M).length===1&&M.type.startsWith("TS")&&!M[S][0].constraint&&h.parent.type==="ArrowFunctionExpression"&&!(v.filepath&&/\.ts$/.test(v.filepath))}function gg(h,v,S,M){let{node:R}=h;if(!R[M])return"";if(!Array.isArray(R[M]))return S(M);let O=h.getNode(2),J=O&&ee(O),ce=h.match(fe=>!(fe[M].length===1&&Me(fe[M][0])),void 0,(fe,ke)=>ke==="typeAnnotation",fe=>fe.type==="Identifier",V);if(R[M].length===0||!ce&&(J||R[M].length===1&&(R[M][0].type==="NullableTypeAnnotation"||Gn(R[M][0]))))return["<",Fn(", ",h.map(S,M)),O8(h,v),">"];let Qe=R.type==="TSTypeParameterInstantiation"?"":N8(h,v,M)?",":Do(v)?_n(","):"";return nt(["<",Et([Ct,Fn([",",$t],h.map(S,M))]),Qe,Ct,">"],{id:zv(R)})}function O8(h,v){let{node:S}=h;if(!Rt(S,Zt.Dangling))return"";let M=!Rt(S,Zt.Line),R=Yn(h,v,{indent:!M});return M?R:[R,xt]}function Cb(h,v,S){let{node:M,parent:R}=h,O=[M.type==="TSTypeParameter"&&M.const?"const ":""],J=M.type==="TSTypeParameter"?S("name"):M.name;if(R.type==="TSMappedType")return R.readonly&&O.push(Eb(R.readonly,"readonly")," "),O.push("[",J),M.constraint&&O.push(" in ",S("constraint")),R.nameType&&O.push(" as ",h.callParent(()=>S("nameType"))),O.push("]"),O;if(M.variance&&O.push(S("variance")),M.in&&O.push("in "),M.out&&O.push("out "),O.push(J),M.bound&&(M.usesExtendsBound&&O.push(" extends "),O.push(xs(h,S,"bound"))),M.constraint){let ce=Symbol("constraint");O.push(" extends",nt(Et($t),{id:ce}),tr,Mi(S("constraint"),{groupId:ce}))}return M.default&&O.push(" = ",S("default")),nt(O)}var vb=dt(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function xb(h,v,S){let{node:M}=h,R=[Aa(h),ry(h),"class"],O=Rt(M.id,Zt.Trailing)||Rt(M.typeParameters,Zt.Trailing)||Rt(M.superClass)||W(M.extends)||W(M.mixins)||W(M.implements),J=[],ce=[];if(M.id&&J.push(" ",S("id")),J.push(S("typeParameters")),M.superClass){let Qe=[G8(h,v,S),S("superTypeParameters")],fe=h.call(ke=>["extends ",os(ke,Qe,v)],"superClass");O?ce.push($t,nt(fe)):ce.push(" ",fe)}else ce.push(Wv(h,v,S,"extends"));if(ce.push(Wv(h,v,S,"mixins"),Wv(h,v,S,"implements")),O){let Qe;Sb(M)?Qe=[...J,Et(ce)]:Qe=Et([...J,ce]),R.push(nt(Qe,{id:Ib(M)}))}else R.push(...J,...ce);return R.push(" ",S("body")),R}var Ib=yb("heritageGroup");function Db(h){return _n(xt,"",{groupId:Ib(h)})}function U8(h){return["extends","mixins","implements"].reduce((v,S)=>v+(Array.isArray(h[S])?h[S].length:0),h.superClass?1:0)>1}function Sb(h){return h.typeParameters&&!Rt(h.typeParameters,Zt.Trailing|Zt.Line)&&!U8(h)}function Wv(h,v,S,M){let{node:R}=h;if(!W(R[M]))return"";let O=Yn(h,v,{marker:M});return[Sb(R)?_n(" ",$t,{groupId:zv(R.typeParameters)}):$t,O,O&&xt,M,nt(Et([$t,Fn([",",$t],h.map(S,M))]))]}function G8(h,v,S){let M=S("superClass"),{parent:R}=h;return R.type==="AssignmentExpression"?nt(_n(["(",Et([Ct,M]),Ct,")"],M)):M}function wb(h,v,S){let{node:M}=h,R=[];return W(M.decorators)&&R.push(cg(h,v,S)),R.push(iy(M)),M.static&&R.push("static "),R.push(ry(h)),M.override&&R.push("override "),R.push(Nv(h,v,S)),R}function Bb(h,v,S){let{node:M}=h,R=[],O=v.semi?";":"";W(M.decorators)&&R.push(cg(h,v,S)),R.push(iy(M),Aa(h)),M.static&&R.push("static "),R.push(ry(h)),M.override&&R.push("override "),M.readonly&&R.push("readonly "),M.variance&&R.push(S("variance")),(M.type==="ClassAccessorProperty"||M.type==="AccessorProperty"||M.type==="TSAbstractAccessorProperty")&&R.push("accessor "),R.push(Ag(h,v,S),co(h),rb(h),xs(h,S));let J=M.type==="TSAbstractPropertyDefinition"||M.type==="TSAbstractAccessorProperty";return[Ic(h,v,S,R," =",J?void 0:"value"),O]}function H8(h,v,S){let{node:M}=h,R=[];return h.each(({node:O,next:J,isLast:ce})=>{R.push(S()),!v.semi&&vb(O)&&z8(O,J)&&R.push(";"),ce||(R.push(xt),Yr(O,v)&&R.push(xt))},"body"),Rt(M,Zt.Dangling)&&R.push(Yn(h,v)),[W(M.body)?Db(h.parent):"","{",R.length>0?[Et([xt,R]),xt]:"","}"]}function z8(h,v){var S;let{type:M,name:R}=h.key;if(!h.computed&&M==="Identifier"&&(R==="static"||R==="get"||R==="set")&&!h.value&&!h.typeAnnotation)return!0;if(!v||v.static||v.accessibility)return!1;if(!v.computed){let O=(S=v.key)==null?void 0:S.name;if(O==="in"||O==="instanceof")return!0}if(vb(v)&&v.variance&&!v.static&&!v.declare)return!0;switch(v.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return v.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((v.value?v.value.async:v.async)||v.kind==="get"||v.kind==="set")return!1;let O=v.value?v.value.generator:v.generator;return!!(v.computed||O)}case"TSIndexSignature":return!0}return!1}function W8(h,v){if(v.semi||Tb(h,v)||_b(h,v))return!1;let{node:S,key:M,parent:R}=h;return!!(S.type==="ExpressionStatement"&&(M==="body"&&(R.type==="Program"||R.type==="BlockStatement"||R.type==="StaticBlock"||R.type==="TSModuleBlock")||M==="consequent"&&R.type==="SwitchCase")&&h.call(()=>bb(h,v),"expression"))}function bb(h,v){let{node:S}=h;switch(S.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!pb(h,v))return!0;break;case"UnaryExpression":{let{prefix:M,operator:R}=S;if(M&&(R==="+"||R==="-"))return!0;break}case"BindExpression":if(!S.object)return!0;break;case"Literal":if(S.regex)return!0;break;default:if(At(S))return!0}return eu(h,v)?!0:Fs(S)?h.call(()=>bb(h,v),...ds(S)):!1}function Tb({node:h,parent:v},S){return(S.parentParser==="markdown"||S.parentParser==="mdx")&&h.type==="ExpressionStatement"&&At(h.expression)&&v.type==="Program"&&v.body.length===1}function Mb(h){switch(h.type){case"MemberExpression":switch(h.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return Mb(h.object)}return!1;case"Identifier":return!0;default:return!1}}function _b({node:h,parent:v},S){return(S.parser==="__vue_event_binding"||S.parser==="__vue_ts_event_binding")&&h.type==="ExpressionStatement"&&v.type==="Program"&&v.body.length===1}function j8(h,v,S){let M=[S("expression")];return _b(h,v)?Mb(h.node.expression)&&M.push(";"):Tb(h,v)||v.semi&&M.push(";"),M}function V8(h,v,S){if(v.__isVueBindings||v.__isVueForBindingLeft){let M=h.map(S,"program","body",0,"params");if(M.length===1)return M[0];let R=Fn([",",$t],M);return v.__isVueForBindingLeft?["(",Et([Ct,nt(R)]),Ct,")"]:R}if(v.__isEmbeddedTypescriptGenericParameters){let M=h.map(S,"program","body",0,"typeParameters","params");return Fn([",",$t],M)}}function J8(h,v){let{node:S}=h;switch(S.type){case"RegExpLiteral":return Fb(S);case"BigIntLiteral":return jv(S.extra.raw);case"NumericLiteral":return Sc(S.extra.raw);case"StringLiteral":return qr(Ot(S.extra.raw,v));case"NullLiteral":return"null";case"BooleanLiteral":return String(S.value);case"DecimalLiteral":return Sc(S.value)+"m";case"DirectiveLiteral":return Pb(S.extra.raw,v);case"Literal":{if(S.regex)return Fb(S.regex);if(S.bigint)return jv(S.raw);if(S.decimal)return Sc(S.decimal)+"m";let{value:M}=S;return typeof M=="number"?Sc(S.raw):typeof M=="string"?Y8(h)?Pb(S.raw,v):qr(Ot(S.raw,v)):String(M)}}}function Y8(h){if(h.key!=="expression")return;let{parent:v}=h;return v.type==="ExpressionStatement"&&v.directive}function jv(h){return h.toLowerCase()}function Fb({pattern:h,flags:v}){return v=[...v].sort().join(""),`/${h}/${v}`}function Pb(h,v){let S=h.slice(1,-1);if(S.includes('"')||S.includes("'"))return h;let M=v.singleQuote?"'":'"';return M+S+M}function X8(h,v,S){let M=h.originalText.slice(v,S);for(let R of h[Symbol.for("comments")]){let O=Ft(R);if(O>S)break;let J=Pt(R);if(Jh.type==="ExportDefaultDeclaration"||h.type==="DeclareExportDeclaration"&&h.default;function kb(h,v,S){let{node:M}=h,R=[nu(h,v,S),Aa(h),"export",Qb(M)?" default":""],{declaration:O,exported:J}=M;return Rt(M,Zt.Dangling)&&(R.push(" ",Yn(h,v)),vn(M)&&R.push(xt)),O?R.push(" ",S("declaration")):(R.push($8(M)),M.type==="ExportAllDeclaration"||M.type==="DeclareExportAllDeclaration"?(R.push(" *"),J&&R.push(" as ",S("exported"))):R.push(Nb(h,v,S)),R.push(Lb(h,v,S),Ub(h,v,S))),R.push(Z8(M,v)),R}var K8=dt(["ClassDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareFunction","TSDeclareFunction","EnumDeclaration"]);function Z8(h,v){return v.semi&&(!h.declaration||Qb(h)&&!K8(h.declaration))?";":""}function Jv(h,v=!0){return h&&h!=="value"?`${v?" ":""}${h}${v?"":" "}`:""}function Rb(h,v){return Jv(h.importKind,v)}function $8(h){return Jv(h.exportKind)}function Lb(h,v,S){let{node:M}=h;if(!M.source)return"";let R=[];return Ob(M,v)&&R.push(" from"),R.push(" ",S("source")),R}function Nb(h,v,S){let{node:M}=h;if(!Ob(M,v))return"";let R=[" "];if(W(M.specifiers)){let O=[],J=[];h.each(()=>{let ce=h.node.type;if(ce==="ExportNamespaceSpecifier"||ce==="ExportDefaultSpecifier"||ce==="ImportNamespaceSpecifier"||ce==="ImportDefaultSpecifier")O.push(S());else if(ce==="ExportSpecifier"||ce==="ImportSpecifier")J.push(S());else throw new fa(M,"specifier")},"specifiers"),R.push(Fn(", ",O)),J.length>0&&(O.length>0&&R.push(", "),J.length>1||O.length>0||M.specifiers.some(ce=>Rt(ce))?R.push(nt(["{",Et([v.bracketSpacing?$t:Ct,Fn([",",$t],J)]),_n(Do(v)?",":""),v.bracketSpacing?$t:Ct,"}"])):R.push(["{",v.bracketSpacing?" ":"",...J,v.bracketSpacing?" ":"","}"]))}else R.push("{}");return R}function Ob(h,v){return h.type!=="ImportDeclaration"||W(h.specifiers)||h.importKind==="type"?!0:Vv(v,Ft(h),Ft(h.source)).trimEnd().endsWith("from")}function e5(h,v){var S,M;if((S=h.extra)!=null&&S.deprecatedAssertSyntax)return"assert";let R=Vv(v,Pt(h.source),(M=h.attributes)!=null&&M[0]?Ft(h.attributes[0]):Pt(h)).trimStart();return R.startsWith("assert")?"assert":R.startsWith("with")||W(h.attributes)?"with":void 0}function Ub(h,v,S){let{node:M}=h;if(!M.source)return"";let R=e5(M,v);if(!R)return"";let O=[` ${R} {`];return W(M.attributes)&&(v.bracketSpacing&&O.push(" "),O.push(Fn(", ",h.map(S,"attributes"))),v.bracketSpacing&&O.push(" ")),O.push("}"),O}function t5(h,v,S){let{node:M}=h,{type:R}=M,O=R.startsWith("Import"),J=O?"imported":"local",ce=O?"local":"exported",Qe=M[J],fe=M[ce],ke="",Te="";return R==="ExportNamespaceSpecifier"||R==="ImportNamespaceSpecifier"?ke="*":Qe&&(ke=S(J)),fe&&!n5(M)&&(Te=S(ce)),[Jv(R==="ImportSpecifier"?M.importKind:M.exportKind,!1),ke,ke&&Te?" as ":"",Te]}function n5(h){if(h.type!=="ImportSpecifier"&&h.type!=="ExportSpecifier")return!1;let{local:v,[h.type==="ImportSpecifier"?"imported":"exported"]:S}=h;if(v.type!==S.type||!Sn(v,S))return!1;if(pe(v))return v.value===S.value&&bi(v)===bi(S);switch(v.type){case"Identifier":return v.name===S.name;default:return!1}}function oy(h,v,S){var M;let R=v.semi?";":"",{node:O}=h,J=O.type==="ObjectTypeAnnotation",ce=O.type==="TSEnumDeclaration"||O.type==="EnumBooleanBody"||O.type==="EnumNumberBody"||O.type==="EnumStringBody"||O.type==="EnumSymbolBody",Qe=[O.type==="TSTypeLiteral"||ce?"members":O.type==="TSInterfaceBody"?"body":"properties"];J&&Qe.push("indexers","callProperties","internalSlots");let fe=Qe.flatMap(wt=>h.map(({node:hr})=>({node:hr,printed:S(),loc:Ft(hr)}),wt));Qe.length>1&&fe.sort((wt,hr)=>wt.loc-hr.loc);let{parent:ke,key:Te}=h,Re=J&&Te==="body"&&(ke.type==="InterfaceDeclaration"||ke.type==="DeclareInterface"||ke.type==="DeclareClass"),ot=O.type==="TSInterfaceBody"||ce||Re||O.type==="ObjectPattern"&&ke.type!=="FunctionDeclaration"&&ke.type!=="FunctionExpression"&&ke.type!=="ArrowFunctionExpression"&&ke.type!=="ObjectMethod"&&ke.type!=="ClassMethod"&&ke.type!=="ClassPrivateMethod"&&ke.type!=="AssignmentPattern"&&ke.type!=="CatchClause"&&O.properties.some(wt=>wt.value&&(wt.value.type==="ObjectPattern"||wt.value.type==="ArrayPattern"))||O.type!=="ObjectPattern"&&fe.length>0&&wo(v.originalText,Ft(O),fe[0].loc),it=Re?";":O.type==="TSInterfaceBody"||O.type==="TSTypeLiteral"?_n(R,";"):",",rn=O.type==="RecordExpression"?"#{":O.exact?"{|":"{",Dt=O.exact?"|}":"}",vt=[],gn=fe.map(wt=>{let hr=[...vt,nt(wt.printed)];return vt=[it,$t],(wt.node.type==="TSPropertySignature"||wt.node.type==="TSMethodSignature"||wt.node.type==="TSConstructSignatureDeclaration"||wt.node.type==="TSCallSignatureDeclaration")&&Rt(wt.node,Zt.PrettierIgnore)&&vt.shift(),Yr(wt.node,v)&&vt.push(xt),hr});if(O.inexact||O.hasUnknownMembers){let wt;if(Rt(O,Zt.Dangling)){let hr=Rt(O,Zt.Line);wt=[Yn(h,v),hr||je(v.originalText,Pt(U(!1,cl(O),-1)))?xt:$t,"..."]}else wt=["..."];gn.push([...vt,...wt])}let dn=(M=U(!1,fe,-1))==null?void 0:M.node,Xn=!(O.inexact||O.hasUnknownMembers||dn&&(dn.type==="RestElement"||(dn.type==="TSPropertySignature"||dn.type==="TSCallSignatureDeclaration"||dn.type==="TSMethodSignature"||dn.type==="TSConstructSignatureDeclaration")&&Rt(dn,Zt.PrettierIgnore))),Dn;if(gn.length===0){if(!Rt(O,Zt.Dangling))return[rn,Dt,xs(h,S)];Dn=nt([rn,Yn(h,v,{indent:!0}),Ct,Dt,co(h),xs(h,S)])}else Dn=[Re&&W(O.properties)?Db(ke):"",rn,Et([v.bracketSpacing?$t:Ct,...gn]),_n(Xn&&(it!==","||Do(v))?it:""),v.bracketSpacing?$t:Ct,Dt,co(h),xs(h,S)];return h.match(wt=>wt.type==="ObjectPattern"&&!W(wt.decorators),Yv)||Me(O)&&(h.match(void 0,(wt,hr)=>hr==="typeAnnotation",(wt,hr)=>hr==="typeAnnotation",Yv)||h.match(void 0,(wt,hr)=>wt.type==="FunctionTypeParam"&&hr==="typeAnnotation",Yv))||!ot&&h.match(wt=>wt.type==="ObjectPattern",wt=>wt.type==="AssignmentExpression"||wt.type==="VariableDeclarator")?Dn:nt(Dn,{shouldBreak:ot})}function Yv(h,v){return(v==="params"||v==="parameters"||v==="this"||v==="rest")&&mn(h)}function r5(h){let v=[h];for(let S=0;SRe[Ar]===M),it=Re.type===M.type&&!ot,rn,Dt,vt=0;do Dt=rn||M,rn=h.getParentNode(vt),vt++;while(rn&&rn.type===M.type&&ce.every(Ar=>rn[Ar]!==Dt));let gn=rn||Re,dn=Dt;if(R&&(At(M[ce[0]])||At(Qe)||At(fe)||r5(dn))){Te=!0,it=!0;let Ar=Fi=>[_n("("),Et([Ct,Fi]),Ct,_n(")")],Is=Fi=>Fi.type==="NullLiteral"||Fi.type==="Literal"&&Fi.value===null||Fi.type==="Identifier"&&Fi.name==="undefined";ke.push(" ? ",Is(Qe)?S(O):Ar(S(O))," : ",fe.type===M.type||Is(fe)?S(J):Ar(S(J)))}else{let Ar=Fi=>v.useTabs?Et(S(Fi)):yi(2,S(Fi)),Is=[$t,"? ",Qe.type===M.type?_n("","("):"",Ar(O),Qe.type===M.type?_n("",")"):"",$t,": ",Ar(J)];ke.push(Re.type!==M.type||Re[J]===M||ot?Is:v.useTabs?ha(Et(Is)):yi(Math.max(0,v.tabWidth-2),Is))}let Xn=[O,J,...ce].some(Ar=>Rt(M[Ar],Is=>nn(Is)&&wo(v.originalText,Ft(Is),Pt(Is)))),Dn=Ar=>Re===gn?nt(Ar,{shouldBreak:Xn}):Xn?[Ar,Ui]:Ar,wt=!Te&&(Pe(Re)||Re.type==="NGPipeExpression"&&Re.left===M)&&!Re.computed,hr=o5(h),zs=Dn([i5(h,v,S),it?ke:Et(ke),R&&wt&&!hr?Ct:""]);return ot||hr?nt([Et([Ct,zs]),Ct]):zs}function l5(h,v){return(Pe(v)||v.type==="NGPipeExpression"&&v.left===h)&&!v.computed}function u5(h,v,S,M){return[...h.map(R=>cl(R)),cl(v),cl(S)].flat().some(R=>nn(R)&&wo(M.originalText,Ft(R),Pt(R)))}var c5=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function h5(h){let{node:v}=h;if(v.type!=="ConditionalExpression")return!1;let S,M=v;for(let R=0;!S;R++){let O=h.getParentNode(R);if(O.type==="ChainExpression"&&O.expression===M||ye(O)&&O.callee===M||Pe(O)&&O.object===M||O.type==="TSNonNullExpression"&&O.expression===M){M=O;continue}O.type==="NewExpression"&&O.callee===M||to(O)&&O.expression===M?(S=h.getParentNode(R+1),M=O):S=O}return M===v?!1:S[c5.get(S.type)]===M}var Xv=h=>[_n("("),Et([Ct,h]),Ct,_n(")")];function qv(h,v,S,M){if(!v.experimentalTernaries)return a5(h,v,S);let{node:R}=h,O=R.type==="ConditionalExpression",J=R.type==="TSConditionalType"||R.type==="ConditionalTypeAnnotation",ce=O?"consequent":"trueType",Qe=O?"alternate":"falseType",fe=O?["test"]:["checkType","extendsType"],ke=R[ce],Te=R[Qe],Re=fe.map(Ha=>R[Ha]),{parent:ot}=h,it=ot.type===R.type,rn=it&&fe.some(Ha=>ot[Ha]===R),Dt=it&&ot[Qe]===R,vt=ke.type===R.type,gn=Te.type===R.type,dn=gn||Dt,Xn=v.tabWidth>2||v.useTabs,Dn,wt,hr=0;do wt=Dn||R,Dn=h.getParentNode(hr),hr++;while(Dn&&Dn.type===R.type&&fe.every(Ha=>Dn[Ha]!==wt));let zs=Dn||ot,Ar=M&&M.assignmentLayout&&M.assignmentLayout!=="break-after-operator"&&(ot.type==="AssignmentExpression"||ot.type==="VariableDeclarator"||ot.type==="ClassProperty"||ot.type==="PropertyDefinition"||ot.type==="ClassPrivateProperty"||ot.type==="ObjectProperty"||ot.type==="Property"),Is=(ot.type==="ReturnStatement"||ot.type==="ThrowStatement")&&!(vt||gn),Fi=O&&zs.type==="JSXExpressionContainer"&&h.grandparent.type!=="JSXAttribute",Xd=h5(h),mg=l5(R,ot),wn=J&&eu(h,v),Dr=Xn?v.useTabs?" ":" ".repeat(v.tabWidth-1):"",Pi=u5(Re,ke,Te,v)||vt||gn,Ga=!dn&&!it&&!J&&(Fi?ke.type==="NullLiteral"||ke.type==="Literal"&&ke.value===null:Qt(ke,v)&&ct(R.test,3)),rp=dn||Dt||J&&!it||it&&O&&ct(R.test,1)||Ga,Xb=[];!vt&&Rt(ke,Zt.Dangling)&&h.call(Ha=>{Xb.push(Yn(Ha,v),xt)},"consequent");let yg=[];Rt(R.test,Zt.Dangling)&&h.call(Ha=>{yg.push(Yn(Ha,v))},"test"),!gn&&Rt(Te,Zt.Dangling)&&h.call(Ha=>{yg.push(Yn(Ha,v))},"alternate"),Rt(R,Zt.Dangling)&&yg.push(Yn(h,v));let qb=Symbol("test"),F5=Symbol("consequent"),ly=Symbol("test-and-consequent"),P5=O?[Xv(S("test")),R.test.type==="ConditionalExpression"?Ui:""]:[S("checkType")," ","extends"," ",R.extendsType.type==="TSConditionalType"||R.extendsType.type==="ConditionalTypeAnnotation"||R.extendsType.type==="TSMappedType"?S("extendsType"):nt(Xv(S("extendsType")))],Kb=nt([P5," ?"],{id:qb}),Q5=S(ce),uy=Et([vt||Fi&&(At(ke)||it||dn)?xt:$t,Xb,Q5]),k5=rp?nt([Kb,dn?uy:_n(uy,nt(uy,{id:F5}),{groupId:qb})],{id:ly}):[Kb,uy],Kv=S(Qe),Zb=Ga?_n(Kv,ha(Xv(Kv)),{groupId:ly}):Kv,Eg=[k5,yg.length>0?[Et([xt,yg]),xt]:gn?xt:Ga?_n($t," ",{groupId:ly}):$t,":",gn?" ":Xn?rp?_n(Dr,_n(dn||Ga?" ":Dr," "),{groupId:ly}):_n(Dr," "):" ",gn?Zb:nt([Et(Zb),Fi&&!Ga?Ct:""]),mg&&!Xd?Ct:"",Pi?Ui:""];return Ar&&!Pi?nt(Et([Ct,nt(Eg)])):Ar||Is?nt(Et(Eg)):Xd||J&&rn?nt([Et([Ct,Eg]),wn?Ct:""]):ot===zs?nt(Eg):Eg}function p5(h,v,S,M){let{node:R}=h;if(se(R))return J8(h,v);let O=v.semi?";":"",J=[];switch(R.type){case"JsExpressionRoot":return S("node");case"JsonRoot":return[S("node"),xt];case"File":return V8(h,v,S)??S("program");case"Program":return mb(h,v,S);case"EmptyStatement":return"";case"ExpressionStatement":return j8(h,v,S);case"ChainExpression":return S("expression");case"ParenthesizedExpression":return!Rt(R.expression)&&(Jr(R.expression)||mr(R.expression))?["(",S("expression"),")"]:nt(["(",Et([Ct,S("expression")]),Ct,")"]);case"AssignmentExpression":return $0(h,v,S);case"VariableDeclarator":return ey(h,v,S);case"BinaryExpression":case"LogicalExpression":return Wd(h,v,S);case"AssignmentPattern":return[S("left")," = ",S("right")];case"OptionalMemberExpression":case"MemberExpression":return vl(h,v,S);case"MetaProperty":return[S("meta"),".",S("property")];case"BindExpression":return R.object&&J.push(S("object")),J.push(nt(Et([Ct,ib(h,v,S)]))),J;case"Identifier":return[R.name,co(h),rb(h),xs(h,S)];case"V8IntrinsicIdentifier":return["%",R.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return sb(h,S);case"FunctionDeclaration":case"FunctionExpression":return hb(h,S,v,M);case"ArrowFunctionExpression":return B8(h,v,S,M);case"YieldExpression":return J.push("yield"),R.delegate&&J.push("*"),R.argument&&J.push(" ",S("argument")),J;case"AwaitExpression":if(J.push("await"),R.argument){J.push(" ",S("argument"));let{parent:ce}=h;if(ye(ce)&&ce.callee===R||Pe(ce)&&ce.object===R){J=[Et([Ct,...J]),Ct];let Qe=h.findAncestor(fe=>fe.type==="AwaitExpression"||fe.type==="BlockStatement");if((Qe==null?void 0:Qe.type)!=="AwaitExpression"||!$r(Qe.argument,fe=>fe===R))return nt(J)}}return J;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return kb(h,v,S);case"ImportDeclaration":return q8(h,v,S);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return t5(h,v,S);case"ImportAttribute":return[S("key"),": ",S("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":return gb(h,v,S);case"ClassBody":return H8(h,v,S);case"ThrowStatement":return S8(h,v,S);case"ReturnStatement":return D8(h,v,S);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Jd(h,v,S);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return oy(h,v,S);case"Property":return Kt(R)?Nv(h,v,S):cb(h,v,S);case"ObjectProperty":return cb(h,v,S);case"ObjectMethod":return Nv(h,v,S);case"Decorator":return["@",S("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Lv(h,v,S);case"SequenceExpression":{let{parent:ce}=h;if(ce.type==="ExpressionStatement"||ce.type==="ForStatement"){let Qe=[];return h.each(({isFirst:fe})=>{fe?Qe.push(S()):Qe.push(",",Et([$t,S()]))},"expressions"),nt(Qe)}return nt(Fn([",",$t],h.map(S,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[S("value"),O];case"UnaryExpression":return J.push(R.operator),/[a-z]$/.test(R.operator)&&J.push(" "),Rt(R.argument)?J.push(nt(["(",Et([Ct,S("argument")]),Ct,")"])):J.push(S("argument")),J;case"UpdateExpression":return J.push(S("argument"),R.operator),R.prefix&&J.reverse(),J;case"ConditionalExpression":return qv(h,v,S,M);case"VariableDeclaration":{let ce=h.map(S,"declarations"),Qe=h.parent,fe=Qe.type==="ForStatement"||Qe.type==="ForInStatement"||Qe.type==="ForOfStatement",ke=R.declarations.some(Re=>Re.init),Te;return ce.length===1&&!Rt(R.declarations[0])?Te=ce[0]:ce.length>0&&(Te=Et(ce[0])),J=[Aa(h),R.kind,Te?[" ",Te]:"",Et(ce.slice(1).map(Re=>[",",ke&&!fe?xt:$t,Re]))],fe&&Qe.body!==R||J.push(O),nt(J)}case"WithStatement":return nt(["with (",S("object"),")",Dc(R.body,S("body"))]);case"IfStatement":{let ce=Dc(R.consequent,S("consequent")),Qe=nt(["if (",nt([Et([Ct,S("test")]),Ct]),")",ce]);if(J.push(Qe),R.alternate){let fe=Rt(R.consequent,Zt.Trailing|Zt.Line)||vn(R),ke=R.consequent.type==="BlockStatement"&&!fe;J.push(ke?" ":xt),Rt(R,Zt.Dangling)&&J.push(Yn(h,v),fe?xt:" "),J.push("else",nt(Dc(R.alternate,S("alternate"),R.alternate.type==="IfStatement")))}return J}case"ForStatement":{let ce=Dc(R.body,S("body")),Qe=Yn(h,v),fe=Qe?[Qe,Ct]:"";return!R.init&&!R.test&&!R.update?[fe,nt(["for (;;)",ce])]:[fe,nt(["for (",nt([Et([Ct,S("init"),";",$t,S("test"),";",$t,S("update")]),Ct]),")",ce])]}case"WhileStatement":return nt(["while (",nt([Et([Ct,S("test")]),Ct]),")",Dc(R.body,S("body"))]);case"ForInStatement":return nt(["for (",S("left")," in ",S("right"),")",Dc(R.body,S("body"))]);case"ForOfStatement":return nt(["for",R.await?" await":""," (",S("left")," of ",S("right"),")",Dc(R.body,S("body"))]);case"DoWhileStatement":{let ce=Dc(R.body,S("body"));return J=[nt(["do",ce])],R.body.type==="BlockStatement"?J.push(" "):J.push(xt),J.push("while (",nt([Et([Ct,S("test")]),Ct]),")",O),J}case"DoExpression":return[R.async?"async ":"","do ",S("body")];case"BreakStatement":case"ContinueStatement":return J.push(R.type==="BreakStatement"?"break":"continue"),R.label&&J.push(" ",S("label")),J.push(O),J;case"LabeledStatement":return R.body.type==="EmptyStatement"?[S("label"),":;"]:[S("label"),": ",S("body")];case"TryStatement":return["try ",S("block"),R.handler?[" ",S("handler")]:"",R.finalizer?[" finally ",S("finalizer")]:""];case"CatchClause":if(R.param){let ce=Rt(R.param,fe=>!nn(fe)||fe.leading&&je(v.originalText,Pt(fe))||fe.trailing&&je(v.originalText,Ft(fe),{backwards:!0})),Qe=S("param");return["catch ",ce?["(",Et([Ct,Qe]),Ct,") "]:["(",Qe,") "],S("body")]}return["catch ",S("body")];case"SwitchStatement":return[nt(["switch (",Et([Ct,S("discriminant")]),Ct,")"])," {",R.cases.length>0?Et([xt,Fn(xt,h.map(({node:ce,isLast:Qe})=>[S(),!Qe&&Yr(ce,v)?xt:""],"cases"))]):"",xt,"}"];case"SwitchCase":{R.test?J.push("case ",S("test"),":"):J.push("default:"),Rt(R,Zt.Dangling)&&J.push(" ",Yn(h,v));let ce=R.consequent.filter(Qe=>Qe.type!=="EmptyStatement");if(ce.length>0){let Qe=Hv(h,v,S,"consequent");J.push(ce.length===1&&ce[0].type==="BlockStatement"?[" ",Qe]:Et([xt,Qe]))}return J}case"DebuggerStatement":return["debugger",O];case"ClassDeclaration":case"ClassExpression":return xb(h,v,S);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return wb(h,v,S);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return Bb(h,v,S);case"TemplateElement":return qr(R.value.raw);case"TemplateLiteral":return GA(h,S,v);case"TaggedTemplateExpression":return HA(S);case"PrivateIdentifier":return["#",R.name];case"PrivateName":return["#",S("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{J.push("module {");let ce=S("body");return ce&&J.push(Et([xt,ce]),xt),J.push("}"),J}case"InterpreterDirective":default:throw new fa(R,"ESTree")}}function Gb(h,v,S){let{parent:M,node:R,key:O}=h,J=[S("expression")];switch(R.type){case"AsConstExpression":J.push(" as const");break;case"AsExpression":case"TSAsExpression":J.push(" as ",S("typeAnnotation"));break;case"SatisfiesExpression":case"TSSatisfiesExpression":J.push(" satisfies ",S("typeAnnotation"));break}return O==="callee"&&ye(M)||O==="object"&&Pe(M)?nt([Et([Ct,...J]),Ct]):J}function Hb(h,v,S){return oy(h,S,v)}function zb(h,v){let{node:S}=h,M=v("id");S.computed&&(M=["[",M,"]"]);let R="";return S.initializer&&(R=v("initializer")),S.init&&(R=v("init")),R?[M," = ",R]:M}function d5(h,v,S){let{node:M}=h,R;if(M.type==="EnumSymbolBody"||M.explicitType)switch(M.type){case"EnumBooleanBody":R="boolean";break;case"EnumNumberBody":R="number";break;case"EnumStringBody":R="string";break;case"EnumSymbolBody":R="symbol";break}return[R?`of ${R} `:"",Hb(h,v,S)]}function Wb(h,v,S){let{node:M}=h;return[Aa(h),M.const?"const ":"","enum ",v("id")," ",M.type==="TSEnumDeclaration"?Hb(h,v,S):v("body")]}function jb(h,v,S){let{node:M}=h,R=[Aa(h),"interface"],O=[],J=[];M.type!=="InterfaceTypeAnnotation"&&O.push(" ",S("id"),S("typeParameters"));let ce=M.typeParameters&&!Rt(M.typeParameters,Zt.Trailing|Zt.Line);return W(M.extends)&&J.push(ce?_n(" ",$t,{groupId:zv(M.typeParameters)}):$t,"extends ",(M.extends.length===1?_a:Et)(Fn([",",$t],h.map(S,"extends")))),Rt(M.id,Zt.Trailing)||W(M.extends)?ce?R.push(nt([...O,Et(J)])):R.push(nt(Et([...O,...J]))):R.push(...O,...J),R.push(" ",S("body")),nt(R)}function f5(h,v,S){let{node:M}=h;if(or(M))return M.type.slice(0,-14).toLowerCase();let R=v.semi?";":"";switch(M.type){case"DeclareClass":return xb(h,v,S);case"DeclareFunction":return[Aa(h),"function ",S("id"),S("predicate"),R];case"DeclareModule":return["declare module ",S("id")," ",S("body")];case"DeclareModuleExports":return["declare module.exports",xs(h,S),R];case"DeclareVariable":return[Aa(h),M.kind??"var"," ",S("id"),R];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return kb(h,v,S);case"DeclareOpaqueType":case"OpaqueType":return On(h,v,S);case"DeclareTypeAlias":case"TypeAlias":return ur(h,v,S);case"IntersectionTypeAnnotation":return vi(h,v,S);case"UnionTypeAnnotation":return cr(h,v,S);case"ConditionalTypeAnnotation":return qv(h,v,S);case"InferTypeAnnotation":return YB(h,v,S);case"FunctionTypeAnnotation":return ny(h,v,S);case"TupleTypeAnnotation":return Lv(h,v,S);case"TupleTypeLabeledElement":return KB(h,v,S);case"TupleTypeSpreadElement":return qB(h,v,S);case"GenericTypeAnnotation":return[S("id"),gg(h,v,S,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return JB(h,v,S);case"TypeAnnotation":return $B(h,v,S);case"TypeParameter":return Cb(h,v,S);case"TypeofTypeAnnotation":return tb(h,S);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return eb(S);case"DeclareEnum":case"EnumDeclaration":return Wb(h,S,v);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return d5(h,S,v);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":return zb(h,S);case"FunctionTypeParam":{let O=M.name?S("name"):h.parent.this===M?"this":"";return[O,co(h),O?": ":"",S("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return jb(h,v,S);case"ClassImplements":case"InterfaceExtends":return[S("id"),S("typeParameters")];case"NullableTypeAnnotation":return["?",S("typeAnnotation")];case"Variance":{let{kind:O}=M;return ub.ok(O==="plus"||O==="minus"),O==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",S("argument")];case"ObjectTypeCallProperty":return[M.static?"static ":"",S("value")];case"ObjectTypeMappedTypeProperty":return R8(h,v,S);case"ObjectTypeIndexer":return[M.static?"static ":"",M.variance?S("variance"):"","[",S("id"),M.id?": ":"",S("key"),"]: ",S("value")];case"ObjectTypeProperty":{let O="";return M.proto?O="proto ":M.static&&(O="static "),[O,M.kind!=="init"?M.kind+" ":"",M.variance?S("variance"):"",Ag(h,v,S),co(h),Kt(M)?"":": ",S("value")]}case"ObjectTypeAnnotation":return oy(h,v,S);case"ObjectTypeInternalSlot":return[M.static?"static ":"","[[",S("id"),"]]",co(h),M.method?"":": ",S("value")];case"ObjectTypeSpreadProperty":return sb(h,S);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[S("qualification"),".",S("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(M.value);case"StringLiteralTypeAnnotation":return qr(Ot(bi(M),v));case"NumberLiteralTypeAnnotation":return Sc(M.raw??M.extra.raw);case"BigIntLiteralTypeAnnotation":return jv(M.raw??M.extra.raw);case"TypeCastExpression":return["(",S("expression"),xs(h,S),")"];case"TypePredicate":return nb(h,S);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return gg(h,v,S,"params");case"InferredPredicate":case"DeclaredPredicate":return[h.key==="predicate"&&h.parent.type!=="DeclareFunction"&&!h.parent.returnType?": ":" ","%checks",...M.type==="DeclaredPredicate"?["(",S("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Gb(h,v,S)}}function A5(h,v,S){var M;let{node:R}=h;if(!R.type.startsWith("TS"))return;if(gi(R))return R.type.slice(2,-7).toLowerCase();let O=v.semi?";":"",J=[];switch(R.type){case"TSThisType":return"this";case"TSTypeAssertion":{let ce=!(mr(R.expression)||Jr(R.expression)),Qe=nt(["<",Et([Ct,S("typeAnnotation")]),Ct,">"]),fe=[_n("("),Et([Ct,S("expression")]),Ct,_n(")")];return ce?zo([[Qe,S("expression")],[Qe,nt(fe,{shouldBreak:!0})],[Qe,S("expression")]]):nt([Qe,S("expression")])}case"TSDeclareFunction":return hb(h,S,v);case"TSExportAssignment":return["export = ",S("expression"),O];case"TSModuleBlock":return gb(h,v,S);case"TSInterfaceBody":case"TSTypeLiteral":return oy(h,v,S);case"TSTypeAliasDeclaration":return ur(h,v,S);case"TSQualifiedName":return[S("left"),".",S("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return wb(h,v,S);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return Bb(h,v,S);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[S("expression"),S("typeParameters")];case"TSTemplateLiteralType":return GA(h,S,v);case"TSNamedTupleMember":return KB(h,v,S);case"TSRestType":return qB(h,v,S);case"TSOptionalType":return[S("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return jb(h,v,S);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return gg(h,v,S,"params");case"TSTypeParameter":return Cb(h,v,S);case"TSAsExpression":case"TSSatisfiesExpression":return Gb(h,v,S);case"TSArrayType":return eb(S);case"TSPropertySignature":return[R.readonly?"readonly ":"",Ag(h,v,S),co(h),xs(h,S)];case"TSParameterProperty":return[iy(R),R.static?"static ":"",R.override?"override ":"",R.readonly?"readonly ":"",S("parameter")];case"TSTypeQuery":return tb(h,S);case"TSIndexSignature":{let ce=R.parameters.length>1?_n(Do(v)?",":""):"",Qe=nt([Et([Ct,Fn([", ",Ct],h.map(S,"parameters"))]),ce,Ct]),fe=h.parent.type==="ClassBody"&&h.key==="body";return[fe&&R.static?"static ":"",R.readonly?"readonly ":"","[",R.parameters?Qe:"","]",xs(h,S),fe?O:""]}case"TSTypePredicate":return nb(h,S);case"TSNonNullExpression":return[S("expression"),"!"];case"TSImportType":return[R.isTypeOf?"typeof ":"","import(",S("argument"),")",R.qualifier?[".",S("qualifier")]:"",gg(h,v,S,R.typeArguments?"typeArguments":"typeParameters")];case"TSLiteralType":return S("literal");case"TSIndexedAccessType":return JB(h,v,S);case"TSTypeOperator":return[R.operator," ",S("typeAnnotation")];case"TSMappedType":return L8(h,v,S);case"TSMethodSignature":{let ce=R.kind&&R.kind!=="method"?`${R.kind} `:"";J.push(iy(R),ce,R.computed?"[":"",S("key"),R.computed?"]":"",co(h));let Qe=Er(h,S,v,!1,!0),fe=R.returnType?"returnType":"typeAnnotation",ke=R[fe],Te=ke?xs(h,S,fe):"",Re=vs(R,Te);return J.push(Re?nt(Qe):Qe),ke&&J.push(nt(Te)),nt(J)}case"TSNamespaceExportDeclaration":return["export as namespace ",S("id"),v.semi?";":""];case"TSEnumDeclaration":return Wb(h,S,v);case"TSEnumMember":return zb(h,S);case"TSImportEqualsDeclaration":return[R.isExport?"export ":"","import ",Rb(R,!1),S("id")," = ",S("moduleReference"),v.semi?";":""];case"TSExternalModuleReference":return["require(",S("expression"),")"];case"TSModuleDeclaration":{let{parent:ce}=h,Qe=ce.type==="TSModuleDeclaration",fe=((M=R.body)==null?void 0:M.type)==="TSModuleDeclaration";if(Qe)J.push(".");else if(J.push(Aa(h)),!(R.kind==="global"||R.global)){let ke=R.kind??(pe(R.id)||Vv(v,Ft(R),Ft(R.id)).trim().endsWith("module")?"module":"namespace");J.push(ke," ")}return J.push(S("id")),fe?J.push(S("body")):R.body?J.push(" ",nt(S("body"))):J.push(O),J}case"TSConditionalType":return qv(h,v,S);case"TSInferType":return YB(h,v,S);case"TSIntersectionType":return vi(h,v,S);case"TSUnionType":return cr(h,v,S);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return ny(h,v,S);case"TSTupleType":return Lv(h,v,S);case"TSTypeReference":return[S("typeName"),gg(h,v,S,"typeParameters")];case"TSTypeAnnotation":return $B(h,v,S);case"TSEmptyBodyFunctionExpression":return Ov(h,v,S);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return XB(h,S,"?");case"TSJSDocNonNullableType":return XB(h,S,"!");case"TSParenthesizedType":default:throw new fa(R,"TypeScript")}}function g5(h,v,S,M){if(ag(h))return kd(h,v);for(let R of[jd,Hs,f5,A5,p5]){let O=R(h,v,S,M);if(O!==void 0)return O}}var m5=dt(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function y5(h,v,S,M){var R;h.isRoot&&((R=v.__onHtmlBindingRoot)==null||R.call(v,h.node,v));let O=g5(h,v,S,M);if(!O)return"";let{node:J}=h;if(m5(J))return O;let ce=W(J.decorators),Qe=Tv(h,v,S),fe=J.type==="ClassExpression";if(ce&&!fe)return wr(O,Re=>nt([Qe,Re]));let ke=eu(h,v),Te=W8(h,v);return!Qe&&!ke&&!Te?O:wr(O,Re=>[Te?";":"",ke?"(":"",ke&&fe&&ce?[Et([$t,Qe,Re]),$t]:[Qe,Re],ke?")":""])}var E5=y5,C5={avoidAstMutation:!0},v5=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}],Vb={};c(Vb,{getVisitorKeys:()=>S5,massageAstNode:()=>Yb,print:()=>w5});var x5={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},I5=x5,D5=Tn(I5),S5=D5;function w5(h,v,S){let{node:M}=h;switch(M.type){case"JsonRoot":return[S("node"),xt];case"ArrayExpression":{if(M.elements.length===0)return"[]";let R=h.map(()=>h.node===null?"null":S(),"elements");return["[",Et([xt,Fn([",",xt],R)]),xt,"]"]}case"ObjectExpression":return M.properties.length===0?"{}":["{",Et([xt,Fn([",",xt],h.map(S,"properties"))]),xt,"}"];case"ObjectProperty":return[S("key"),": ",S("value")];case"UnaryExpression":return[M.operator==="+"?"":M.operator,S("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return M.value?"true":"false";case"StringLiteral":return JSON.stringify(M.value);case"NumericLiteral":return Jb(h)?JSON.stringify(String(M.value)):JSON.stringify(M.value);case"Identifier":return Jb(h)?JSON.stringify(M.name):M.name;case"TemplateLiteral":return S(["quasis",0]);case"TemplateElement":return JSON.stringify(M.value.cooked);default:throw new fa(M,"JSON")}}function Jb(h){return h.key==="key"&&h.parent.type==="ObjectProperty"}var B5=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Yb(h,v){let{type:S}=h;if(S==="ObjectProperty"){let{key:M}=h;M.type==="Identifier"?v.key={type:"StringLiteral",value:M.name}:M.type==="NumericLiteral"&&(v.key={type:"StringLiteral",value:String(M.value)});return}if(S==="UnaryExpression"&&h.operator==="+")return v.argument;if(S==="ArrayExpression"){for(let[M,R]of h.elements.entries())R===null&&v.elements.splice(M,0,{type:"NullLiteral"});return}if(S==="TemplateLiteral")return{type:"StringLiteral",value:h.quasis[0].value.cooked}}Yb.ignoredProperties=B5;var ay={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},np="JavaScript",b5={arrowParens:{category:np,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:ay.bracketSameLine,bracketSpacing:ay.bracketSpacing,jsxBracketSameLine:{category:np,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:np,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalTernaries:{category:np,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:ay.singleQuote,jsxSingleQuote:{category:np,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:np,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:np,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:ay.singleAttributePerLine},T5=b5,M5={estree:_,"estree-json":Vb},_5=[...B,...v5];return A(w)})})(yee);const Eee='',Cee=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Eee,svgWidth:24,svgHeight:24})),vee=Cee,xee='',Iee=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:xee,svgWidth:24,svgHeight:24})),YN=Iee,Dee='',See=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Dee,svgWidth:24,svgHeight:24})),XN=See,wee='',Bee=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:wee,svgWidth:24,svgHeight:24})),bee=Bee,Tee='',Mee=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Tee,svgWidth:24,svgHeight:24})),_ee=Mee,Fee='',Pee=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Fee,svgWidth:24,svgHeight:24})),qN=Pee,Qee='',kee=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Qee,svgWidth:24,svgHeight:24})),Ree=kee,Lee='',Nee=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Lee,svgWidth:24,svgHeight:24})),Oee=Nee,Uee='',Gee=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Uee,svgWidth:24,svgHeight:24})),Hee=Gee,zee='',Wee=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:zee,svgWidth:24,svgHeight:24})),jee=Wee,Vee='',Jee=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Vee,svgWidth:24,svgHeight:24})),Yee=Jee,Xee='',qee=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Xee,svgWidth:24,svgHeight:24})),Kee=qee,Zee='',$ee=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:Zee,svgWidth:24,svgHeight:24})),ete=$ee,tte='',nte=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:tte,svgWidth:24,svgHeight:24})),rte=nte,ite='',ste=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:ite,svgWidth:24,svgHeight:24})),ote=ste,ate='',lte=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:ate,svgWidth:24,svgHeight:24})),ute=lte,cte='',hte=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:cte,svgWidth:24,svgHeight:24})),pte=hte,dte='',fte=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:dte,svgWidth:24,svgHeight:24})),Ate=fte,gte='',mte=ae.forwardRef((t,e)=>te.jsx(qi,{...t,ref:e,text:gte,svgWidth:24,svgHeight:24})),yte=mte;function X(t,e,n){return new Xt().setHSL(t/360,e/100,n/100,"srgb")}const c3={zinc:{light:{background:X(0,0,100),foreground:X(240,10,3.9),card:X(0,0,100),cardForeground:X(240,10,3.9),popover:X(0,0,100),popoverForeground:X(240,10,3.9),primary:X(240,5.9,10),primaryForeground:X(0,0,98),secondary:X(240,4.8,95.9),secondaryForeground:X(240,5.9,10),muted:X(240,4.8,95.9),mutedForeground:X(240,3.8,46.1),accent:X(240,4.8,95.9),accentForeground:X(240,5.9,10),destructive:X(0,84.2,60.2),destructiveForeground:X(0,0,98),border:X(240,5.9,90),input:X(240,5.9,90),ring:X(240,5.9,10)},dark:{background:X(240,10,3.9),foreground:X(0,0,98),card:X(240,10,3.9),cardForeground:X(0,0,98),popover:X(240,10,3.9),popoverForeground:X(0,0,98),primary:X(0,0,98),primaryForeground:X(240,5.9,10),secondary:X(240,3.7,15.9),secondaryForeground:X(0,0,98),muted:X(240,3.7,15.9),mutedForeground:X(240,5,64.9),accent:X(240,3.7,15.9),accentForeground:X(0,0,98),destructive:X(0,62.8,30.6),destructiveForeground:X(0,0,98),border:X(240,3.7,15.9),input:X(240,3.7,15.9),ring:X(240,4.9,83.9)}},slate:{light:{background:X(0,0,100),foreground:X(222.2,84,4.9),card:X(0,0,100),cardForeground:X(222.2,84,4.9),popover:X(0,0,100),popoverForeground:X(222.2,84,4.9),primary:X(222.2,47.4,11.2),primaryForeground:X(210,40,98),secondary:X(210,40,96.1),secondaryForeground:X(222.2,47.4,11.2),muted:X(210,40,96.1),mutedForeground:X(215.4,16.3,46.9),accent:X(210,40,96.1),accentForeground:X(222.2,47.4,11.2),destructive:X(0,84.2,60.2),destructiveForeground:X(210,40,98),border:X(214.3,31.8,91.4),input:X(214.3,31.8,91.4),ring:X(222.2,84,4.9)},dark:{background:X(222.2,84,4.9),foreground:X(210,40,98),card:X(222.2,84,4.9),cardForeground:X(210,40,98),popover:X(222.2,84,4.9),popoverForeground:X(210,40,98),primary:X(210,40,98),primaryForeground:X(222.2,47.4,11.2),secondary:X(217.2,32.6,17.5),secondaryForeground:X(210,40,98),muted:X(217.2,32.6,17.5),mutedForeground:X(215,20.2,65.1),accent:X(217.2,32.6,17.5),accentForeground:X(210,40,98),destructive:X(0,62.8,30.6),destructiveForeground:X(210,40,98),border:X(217.2,32.6,17.5),input:X(217.2,32.6,17.5),ring:X(212.7,26.8,83.9)}},stone:{light:{background:X(0,0,100),foreground:X(20,14.3,4.1),card:X(0,0,100),cardForeground:X(20,14.3,4.1),popover:X(0,0,100),popoverForeground:X(20,14.3,4.1),primary:X(24,9.8,10),primaryForeground:X(60,9.1,97.8),secondary:X(60,4.8,95.9),secondaryForeground:X(24,9.8,10),muted:X(60,4.8,95.9),mutedForeground:X(25,5.3,44.7),accent:X(60,4.8,95.9),accentForeground:X(24,9.8,10),destructive:X(0,84.2,60.2),destructiveForeground:X(60,9.1,97.8),border:X(20,5.9,90),input:X(20,5.9,90),ring:X(20,14.3,4.1)},dark:{background:X(20,14.3,4.1),foreground:X(60,9.1,97.8),card:X(20,14.3,4.1),cardForeground:X(60,9.1,97.8),popover:X(20,14.3,4.1),popoverForeground:X(60,9.1,97.8),primary:X(60,9.1,97.8),primaryForeground:X(24,9.8,10),secondary:X(12,6.5,15.1),secondaryForeground:X(60,9.1,97.8),muted:X(12,6.5,15.1),mutedForeground:X(24,5.4,63.9),accent:X(12,6.5,15.1),accentForeground:X(60,9.1,97.8),destructive:X(0,62.8,30.6),destructiveForeground:X(60,9.1,97.8),border:X(12,6.5,15.1),input:X(12,6.5,15.1),ring:X(24,5.7,82.9)}},gray:{light:{background:X(0,0,100),foreground:X(224,71.4,4.1),card:X(0,0,100),cardForeground:X(224,71.4,4.1),popover:X(0,0,100),popoverForeground:X(224,71.4,4.1),primary:X(220.9,39.3,11),primaryForeground:X(210,20,98),secondary:X(220,14.3,95.9),secondaryForeground:X(220.9,39.3,11),muted:X(220,14.3,95.9),mutedForeground:X(220,8.9,46.1),accent:X(220,14.3,95.9),accentForeground:X(220.9,39.3,11),destructive:X(0,84.2,60.2),destructiveForeground:X(210,20,98),border:X(220,13,91),input:X(220,13,91),ring:X(224,71.4,4.1)},dark:{background:X(224,71.4,4.1),foreground:X(210,20,98),card:X(224,71.4,4.1),cardForeground:X(210,20,98),popover:X(224,71.4,4.1),popoverForeground:X(210,20,98),primary:X(210,20,98),primaryForeground:X(220.9,39.3,11),secondary:X(215,27.9,16.9),secondaryForeground:X(210,20,98),muted:X(215,27.9,16.9),mutedForeground:X(217.9,10.6,64.9),accent:X(215,27.9,16.9),accentForeground:X(210,20,98),destructive:X(0,62.8,30.6),destructiveForeground:X(210,20,98),border:X(215,27.9,16.9),input:X(215,27.9,16.9),ring:X(216,12.2,83.9)}},neutral:{light:{background:X(0,0,100),foreground:X(0,0,3.9),card:X(0,0,100),cardForeground:X(0,0,3.9),popover:X(0,0,100),popoverForeground:X(0,0,3.9),primary:X(0,0,9),primaryForeground:X(0,0,98),secondary:X(0,0,96.1),secondaryForeground:X(0,0,9),muted:X(0,0,96.1),mutedForeground:X(0,0,45.1),accent:X(0,0,96.1),accentForeground:X(0,0,9),destructive:X(0,84.2,60.2),destructiveForeground:X(0,0,98),border:X(0,0,89.8),input:X(0,0,89.8),ring:X(0,0,3.9)},dark:{background:X(0,0,3.9),foreground:X(0,0,98),card:X(0,0,3.9),cardForeground:X(0,0,98),popover:X(0,0,3.9),popoverForeground:X(0,0,98),primary:X(0,0,98),primaryForeground:X(0,0,9),secondary:X(0,0,14.9),secondaryForeground:X(0,0,98),muted:X(0,0,14.9),mutedForeground:X(0,0,63.9),accent:X(0,0,14.9),accentForeground:X(0,0,98),destructive:X(0,62.8,30.6),destructiveForeground:X(0,0,98),border:X(0,0,14.9),input:X(0,0,14.9),ring:X(0,0,83.1)}},red:{light:{background:X(0,0,100),foreground:X(0,0,3.9),card:X(0,0,100),cardForeground:X(0,0,3.9),popover:X(0,0,100),popoverForeground:X(0,0,3.9),primary:X(0,72.2,50.6),primaryForeground:X(0,85.7,97.3),secondary:X(0,0,96.1),secondaryForeground:X(0,0,9),muted:X(0,0,96.1),mutedForeground:X(0,0,45.1),accent:X(0,0,96.1),accentForeground:X(0,0,9),destructive:X(0,84.2,60.2),destructiveForeground:X(0,0,98),border:X(0,0,89.8),input:X(0,0,89.8),ring:X(0,72.2,50.6)},dark:{background:X(0,0,3.9),foreground:X(0,0,98),card:X(0,0,3.9),cardForeground:X(0,0,98),popover:X(0,0,3.9),popoverForeground:X(0,0,98),primary:X(0,72.2,50.6),primaryForeground:X(0,85.7,97.3),secondary:X(0,0,14.9),secondaryForeground:X(0,0,98),muted:X(0,0,14.9),mutedForeground:X(0,0,63.9),accent:X(0,0,14.9),accentForeground:X(0,0,98),destructive:X(0,62.8,30.6),destructiveForeground:X(0,0,98),border:X(0,0,14.9),input:X(0,0,14.9),ring:X(0,72.2,50.6)}},rose:{light:{background:X(0,0,100),foreground:X(240,10,3.9),card:X(0,0,100),cardForeground:X(240,10,3.9),popover:X(0,0,100),popoverForeground:X(240,10,3.9),primary:X(346.8,77.2,49.8),primaryForeground:X(355.7,100,97.3),secondary:X(240,4.8,95.9),secondaryForeground:X(240,5.9,10),muted:X(240,4.8,95.9),mutedForeground:X(240,3.8,46.1),accent:X(240,4.8,95.9),accentForeground:X(240,5.9,10),destructive:X(0,84.2,60.2),destructiveForeground:X(0,0,98),border:X(240,5.9,90),input:X(240,5.9,90),ring:X(346.8,77.2,49.8)},dark:{background:X(20,14.3,4.1),foreground:X(0,0,95),popover:X(0,0,9),popoverForeground:X(0,0,95),card:X(24,9.8,10),cardForeground:X(0,0,95),primary:X(346.8,77.2,49.8),primaryForeground:X(355.7,100,97.3),secondary:X(240,3.7,15.9),secondaryForeground:X(0,0,98),muted:X(0,0,15),mutedForeground:X(240,5,64.9),accent:X(12,6.5,15.1),accentForeground:X(0,0,98),destructive:X(0,62.8,30.6),destructiveForeground:X(0,85.7,97.3),border:X(240,3.7,15.9),input:X(240,3.7,15.9),ring:X(346.8,77.2,49.8)}},orange:{light:{background:X(0,0,100),foreground:X(20,14.3,4.1),card:X(0,0,100),cardForeground:X(20,14.3,4.1),popover:X(0,0,100),popoverForeground:X(20,14.3,4.1),primary:X(24.6,95,53.1),primaryForeground:X(60,9.1,97.8),secondary:X(60,4.8,95.9),secondaryForeground:X(24,9.8,10),muted:X(60,4.8,95.9),mutedForeground:X(25,5.3,44.7),accent:X(60,4.8,95.9),accentForeground:X(24,9.8,10),destructive:X(0,84.2,60.2),destructiveForeground:X(60,9.1,97.8),border:X(20,5.9,90),input:X(20,5.9,90),ring:X(24.6,95,53.1)},dark:{background:X(20,14.3,4.1),foreground:X(60,9.1,97.8),card:X(20,14.3,4.1),cardForeground:X(60,9.1,97.8),popover:X(20,14.3,4.1),popoverForeground:X(60,9.1,97.8),primary:X(20.5,90.2,48.2),primaryForeground:X(60,9.1,97.8),secondary:X(12,6.5,15.1),secondaryForeground:X(60,9.1,97.8),muted:X(12,6.5,15.1),mutedForeground:X(24,5.4,63.9),accent:X(12,6.5,15.1),accentForeground:X(60,9.1,97.8),destructive:X(0,72.2,50.6),destructiveForeground:X(60,9.1,97.8),border:X(12,6.5,15.1),input:X(12,6.5,15.1),ring:X(20.5,90.2,48.2)}},green:{light:{background:X(0,0,100),foreground:X(240,10,3.9),card:X(0,0,100),cardForeground:X(240,10,3.9),popover:X(0,0,100),popoverForeground:X(240,10,3.9),primary:X(142.1,76.2,36.3),primaryForeground:X(355.7,100,97.3),secondary:X(240,4.8,95.9),secondaryForeground:X(240,5.9,10),muted:X(240,4.8,95.9),mutedForeground:X(240,3.8,46.1),accent:X(240,4.8,95.9),accentForeground:X(240,5.9,10),destructive:X(0,84.2,60.2),destructiveForeground:X(0,0,98),border:X(240,5.9,90),input:X(240,5.9,90),ring:X(142.1,76.2,36.3)},dark:{background:X(20,14.3,4.1),foreground:X(0,0,95),popover:X(0,0,9),popoverForeground:X(0,0,95),card:X(24,9.8,10),cardForeground:X(0,0,95),primary:X(142.1,70.6,45.3),primaryForeground:X(144.9,80.4,10),secondary:X(240,3.7,15.9),secondaryForeground:X(0,0,98),muted:X(0,0,15),mutedForeground:X(240,5,64.9),accent:X(12,6.5,15.1),accentForeground:X(0,0,98),destructive:X(0,62.8,30.6),destructiveForeground:X(0,85.7,97.3),border:X(240,3.7,15.9),input:X(240,3.7,15.9),ring:X(142.4,71.8,29.2)}},blue:{light:{background:X(0,0,100),foreground:X(222.2,84,4.9),card:X(0,0,100),cardForeground:X(222.2,84,4.9),popover:X(0,0,100),popoverForeground:X(222.2,84,4.9),primary:X(221.2,83.2,53.3),primaryForeground:X(210,40,98),secondary:X(210,40,96.1),secondaryForeground:X(222.2,47.4,11.2),muted:X(210,40,96.1),mutedForeground:X(215.4,16.3,46.9),accent:X(210,40,96.1),accentForeground:X(222.2,47.4,11.2),destructive:X(0,84.2,60.2),destructiveForeground:X(210,40,98),border:X(214.3,31.8,91.4),input:X(214.3,31.8,91.4),ring:X(221.2,83.2,53.3)},dark:{background:X(222.2,84,4.9),foreground:X(210,40,98),card:X(222.2,84,4.9),cardForeground:X(210,40,98),popover:X(222.2,84,4.9),popoverForeground:X(210,40,98),primary:X(217.2,91.2,59.8),primaryForeground:X(222.2,47.4,11.2),secondary:X(217.2,32.6,17.5),secondaryForeground:X(210,40,98),muted:X(217.2,32.6,17.5),mutedForeground:X(215,20.2,65.1),accent:X(217.2,32.6,17.5),accentForeground:X(210,40,98),destructive:X(0,62.8,30.6),destructiveForeground:X(210,40,98),border:X(217.2,32.6,17.5),input:X(217.2,32.6,17.5),ring:X(224.3,76.3,48)}},yellow:{light:{background:X(0,0,100),foreground:X(20,14.3,4.1),card:X(0,0,100),cardForeground:X(20,14.3,4.1),popover:X(0,0,100),popoverForeground:X(20,14.3,4.1),primary:X(47.9,95.8,53.1),primaryForeground:X(26,83.3,14.1),secondary:X(60,4.8,95.9),secondaryForeground:X(24,9.8,10),muted:X(60,4.8,95.9),mutedForeground:X(25,5.3,44.7),accent:X(60,4.8,95.9),accentForeground:X(24,9.8,10),destructive:X(0,84.2,60.2),destructiveForeground:X(60,9.1,97.8),border:X(20,5.9,90),input:X(20,5.9,90),ring:X(20,14.3,4.1)},dark:{background:X(20,14.3,4.1),foreground:X(60,9.1,97.8),card:X(20,14.3,4.1),cardForeground:X(60,9.1,97.8),popover:X(20,14.3,4.1),popoverForeground:X(60,9.1,97.8),primary:X(47.9,95.8,53.1),primaryForeground:X(26,83.3,14.1),secondary:X(12,6.5,15.1),secondaryForeground:X(60,9.1,97.8),muted:X(12,6.5,15.1),mutedForeground:X(24,5.4,63.9),accent:X(12,6.5,15.1),accentForeground:X(60,9.1,97.8),destructive:X(0,62.8,30.6),destructiveForeground:X(60,9.1,97.8),border:X(12,6.5,15.1),input:X(12,6.5,15.1),ring:X(35.5,91.7,32.9)}},violet:{light:{background:X(0,0,100),foreground:X(224,71.4,4.1),card:X(0,0,100),cardForeground:X(224,71.4,4.1),popover:X(0,0,100),popoverForeground:X(224,71.4,4.1),primary:X(262.1,83.3,57.8),primaryForeground:X(210,20,98),secondary:X(220,14.3,95.9),secondaryForeground:X(220.9,39.3,11),muted:X(220,14.3,95.9),mutedForeground:X(220,8.9,46.1),accent:X(220,14.3,95.9),accentForeground:X(220.9,39.3,11),destructive:X(0,84.2,60.2),destructiveForeground:X(210,20,98),border:X(220,13,91),input:X(220,13,91),ring:X(262.1,83.3,57.8)},dark:{background:X(224,71.4,4.1),foreground:X(210,20,98),card:X(224,71.4,4.1),cardForeground:X(210,20,98),popover:X(224,71.4,4.1),popoverForeground:X(210,20,98),primary:X(263.4,70,50.4),primaryForeground:X(210,20,98),secondary:X(215,27.9,16.9),secondaryForeground:X(210,20,98),muted:X(215,27.9,16.9),mutedForeground:X(217.9,10.6,64.9),accent:X(215,27.9,16.9),accentForeground:X(210,20,98),destructive:X(0,62.8,30.6),destructiveForeground:X(210,20,98),border:X(215,27.9,16.9),input:X(215,27.9,16.9),ring:X(263.4,70,50.4)}}},HI=Yt(8),_s={lg:HI,md:bn(()=>HI.value-2),sm:bn(()=>HI.value-4)},Ete=Yt("slate"),Nt={};for(const t in c3.slate.light){const e=t;Nt[e]=bn(()=>c3[Ete.value][e4.value?"dark":"light"][e])}function Cte(t){return te.jsx(Lr,{scrollbarColor:Nt.foreground,scrollbarBorderRadius:4,scrollbarOpacity:.3,lineHeight:"150%",borderColor:Nt.border,color:Nt.foreground,...t})}const vte={default:{containerHoverProps:{backgroundOpacity:.9},containerProps:{backgroundColor:Nt.primary},defaultProps:{color:Nt.primaryForeground}},destructive:{containerHoverProps:{backgroundOpacity:.9},containerProps:{backgroundColor:Nt.destructive},defaultProps:{color:Nt.destructiveForeground}},outline:{containerHoverProps:{backgroundColor:Nt.accent},containerProps:{borderWidth:1,borderColor:Nt.input,backgroundColor:Nt.background}},secondary:{containerHoverProps:{backgroundOpacity:.8},containerProps:{backgroundColor:Nt.secondary},defaultProps:{color:Nt.secondaryForeground}},ghost:{containerHoverProps:{backgroundColor:Nt.accent},defaultProps:{}},link:{containerProps:{},defaultProps:{color:Nt.primary}}},xte={default:{height:40,paddingX:16,paddingY:8},sm:{height:36,paddingX:12},lg:{height:42,paddingX:32},icon:{height:40,width:40}},Ta=ae.forwardRef(({children:t,variant:e="default",size:n="default",disabled:r=!1,hover:i,...s},o)=>{const{containerProps:a,defaultProps:l,containerHoverProps:c}=vte[e],p=xte[n];return te.jsx(Ht,{borderRadius:_s.md,alignItems:"center",justifyContent:"center",...a,...p,borderOpacity:r?.5:void 0,backgroundOpacity:r?.5:void 0,cursor:r?void 0:"pointer",flexDirection:"row",hover:{...c,...i},ref:o,...s,children:te.jsx(Lr,{fontSize:14,lineHeight:20,fontWeight:"medium",wordBreak:"keep-all",...l,opacity:r?.5:void 0,children:t})})}),GE=ae.forwardRef(({children:t,...e},n)=>te.jsx(Ht,{flexDirection:"column",borderRadius:_s.lg,borderWidth:1,backgroundColor:Nt.card,ref:n,...e,children:te.jsx(Lr,{color:Nt.cardForeground,children:t})})),h2=ae.forwardRef((t,e)=>te.jsx(Ht,{padding:24,flexDirection:"column",gap:6,ref:e,...t}));function p2(t){return te.jsx(Lr,{fontWeight:"semi-bold",letterSpacing:-.4,fontSize:24,lineHeight:"100%",...t})}function d2(t){return te.jsx(Lr,{fontSize:14,lineHeight:20,color:Nt.mutedForeground,...t})}const f2=ae.forwardRef((t,e)=>te.jsx(Ht,{padding:24,paddingTop:0,ref:e,...t})),A2=ae.forwardRef((t,e)=>te.jsx(Ht,{flexDirection:"row",alignItems:"center",padding:24,paddingTop:0,ref:e,...t})),oE=ae.forwardRef(({orientation:t="horizontal",...e},n)=>te.jsx(Ht,{flexShrink:0,backgroundColor:Nt.border,width:t==="horizontal"?"100%":1,height:t==="horizontal"?1:"100%",ref:n,...e})),zB=ae.createContext({}),KN=ae.forwardRef(({value:t,onValueChange:e,defaultValue:n,children:r,...i},s)=>{const[o,a]=ae.useState(n),l=ae.useMemo(()=>t==null?{value:o,setValue:c=>{a(c),e==null||e(c)}}:{value:t,setValue:e},[o,e,t]);return te.jsx(Ht,{flexDirection:"column",ref:s,...i,children:te.jsx(zB.Provider,{value:l,children:r})})}),ZN=ae.forwardRef(({children:t,...e},n)=>te.jsx(Ht,{height:40,flexDirection:"row",alignItems:"center",borderRadius:_s.md,backgroundColor:Nt.muted,padding:4,flexShrink:0,ref:n,...e,children:te.jsx(Lr,{color:Nt.mutedForeground,children:t})})),g2=ae.forwardRef(({children:t,value:e,disabled:n=!1,...r},i)=>{const{setValue:s,value:o}=ae.useContext(zB),a=e===o;return te.jsx(Ht,{onClick:n?void 0:l=>s==null?void 0:s(e),cursor:n?void 0:"pointer",flexDirection:"row",alignItems:"center",borderRadius:_s.sm,paddingX:12,backgroundOpacity:n?.5:void 0,backgroundColor:a?Nt.background:void 0,paddingY:6,justifyContent:"center",ref:i,...r,children:te.jsx(Lr,{opacity:n?.5:void 0,color:a?Nt.foreground:void 0,fontSize:14,fontWeight:"medium",lineHeight:20,wordBreak:"keep-all",children:t})})}),m2=ae.forwardRef(({value:t,...e},n)=>{const{value:r}=ae.useContext(zB);return t!=r?null:te.jsx(Ht,{marginTop:8,ref:n,...e})}),$N=ae.createContext(void 0);function Ite({children:t}){const[e,n]=ae.useState(void 0),r=ae.useCallback((i,s)=>n(o=>o===i?s:o),[]);return te.jsxs(te.Fragment,{children:[te.jsx(Dte,{set:r,children:t}),e]})}const Dte=ae.memo(({children:t,set:e})=>te.jsx($N.Provider,{value:e,children:t})),WB=ae.createContext(void 0);function jB(){const t=ae.useContext(WB);if(t==null)throw new Error("Can only be used inside a component.");return t}function e8({children:t,open:e,onOpenChange:n,defaultOpen:r}){const[i,s]=ae.useState(r??!1),o=e??i,a=ae.useContext($N);if(a==null)throw new Error("Can only be used inside a component.");const l=ae.useRef(void 0),c=ae.useRef(void 0);ae.useEffect(()=>{if(!o){a(c.current,void 0),c.current=void 0;return}l.current!=null&&(a(void 0,l.current),c.current=l.current)},[o,a]);const p=ae.useRef(n);p.current=n;const d=e!=null,A=ae.useMemo(()=>({setContent(y){c.current!=null&&(a(c.current,y),c.current=y),l.current=y},setOpen(y){var C;d||s(y),(C=p.current)==null||C.call(p,y)}}),[d,a]);return te.jsx(WB.Provider,{value:A,children:t})}const t8=ae.forwardRef(({onClick:t,...e},n)=>{const{setOpen:r}=jB();return te.jsx(Ht,{onClick:i=>{r(!0),t==null||t(i)},ref:n,...e})}),n8=ae.forwardRef((t,e)=>te.jsx(Ht,{onPointerMove:n=>n.stopPropagation(),onPointerEnter:n=>n.stopPropagation(),onPointerLeave:n=>n.stopPropagation(),onWheel:n=>n.stopPropagation(),positionType:"absolute",inset:0,zIndexOffset:50,backgroundColor:"black",backgroundOpacity:.8,ref:e,...t}));function mv(){const{setOpen:t}=jB();return ae.useCallback(()=>t(!1),[t])}function r8({children:t}){const e=jB();return ae.useEffect(()=>e.setContent(te.jsx(WB.Provider,{value:e,children:t})),[t,e]),null}const Ste=ae.forwardRef(({children:t,sm:e,...n},r)=>{const i=mv();return te.jsx(r8,{children:te.jsx(n8,{onClick:s=>{i(),s.stopPropagation()},alignItems:"center",justifyContent:"center",children:te.jsxs(Ht,{onClick:s=>s.stopPropagation(),positionType:"relative",flexDirection:"column",width:"100%",gap:16,borderWidth:1,backgroundColor:Nt.background,padding:24,sm:{borderRadius:_s.lg,...e},ref:r,...n,children:[t,te.jsx(yte,{color:Nt.mutedForeground,onClick:i,cursor:"pointer",positionType:"absolute",zIndexOffset:50,positionRight:16,positionTop:16,borderRadius:2,opacity:.7,backgroundOpacity:.7,hover:{opacity:1,backgroundOpacity:1},width:16,height:16})]})})})}),i8=ae.forwardRef(({children:t,...e},n)=>te.jsx(Ht,{flexDirection:"column",gap:6,ref:n,...e,children:te.jsx(Lr,{textAlign:"center",sm:{textAlign:"left"},children:t})})),s8=ae.forwardRef(({sm:t,...e},n)=>te.jsx(Ht,{flexDirection:"column-reverse",sm:{flexDirection:"row",justifyContent:"flex-end",...t},gap:8,ref:n,...e}));function wte(t){return te.jsx(Lr,{fontSize:18,lineHeight:"100%",letterSpacing:-.4,fontWeight:"semi-bold",...t})}function o8(t){return te.jsx(Lr,{fontSize:14,lineHeight:20,color:Nt.mutedForeground,...t})}const pu=new MA,zI=new KR,h3=new Tr;function Bte(t,e,n,r,i){const s=[];for(const[o,a]of i){zI.set(r[a.lineIndex],r[a.lineIndex+1]).applyMatrix4(t.matrixWorld);const l=zI.at(a.distanceOnLine/zI.distance(),new ue);Ev(h3,a,o);const c=bte(t,r,h3)??l;s.push({...a,intersections:s,pointOnFace:c,point:l,inputDevicePosition:e.clone(),inputDeviceRotation:n.clone(),capturedObject:o})}return s}const p3=new ue,WI=new gh;function bte(t,e,n){for(let r=e.length-1;r>0;r--){const i=e[r-1],s=e[r];if(WI.origin.copy(i).applyMatrix4(t.matrixWorld),WI.direction.copy(s).applyMatrix4(t.matrixWorld).sub(pu.ray.origin).normalize(),WI.intersectPlane(n,p3)!=null)return p3.clone()}}const Tte=new En;function Mte(t,e,n,r,i,s,o){const a=[];return _0(i,s.hasEventHandlers.bind(s),l=>{let c=0;for(let p=1;pw===x.object)!=-1)continue;const I=x.distance;x.distance+=c,a.push(Object.assign(x,{intersections:a,inputDevicePosition:e.clone(),inputDeviceRotation:n.clone(),lineIndex:p-1,distanceOnLine:I,pointOnFace:x.point,localPoint:x.point.clone().applyMatrix4(Tte.copy(x.object.matrixWorld).invert())}))}c+=y}}),a.sort((l,c)=>l.distance-c.distance)}const Fl=new MA,iA=new ue,gu=new Tr,d3=new gh;function _te(t,e,n,r){iA.copy(r).applyQuaternion(e);const i=[];for(const[s,o]of n){d3.set(t,iA),Ev(gu,o,s);const a=d3.intersectPlane(gu,new ue)??o.point;i.push({...o,intersections:i,pointOnFace:a,point:iA.clone().multiplyScalar(o.distance).add(t),inputDevicePosition:t.clone(),inputDeviceRotation:e.clone(),capturedObject:s})}return i}function Fte(t,e,n,r,i){Fl.setFromCamera(e,t),t.getWorldPosition(r),t.getWorldQuaternion(i),t.getWorldDirection(iA);const s=[];for(const[o,a]of n){gu.setFromNormalAndCoplanarPoint(iA,Fl.ray.origin),gu.constant-=a.distanceViewPlane;const l=Fl.ray.intersectPlane(gu,new ue);if(l==null)continue;Ev(gu,a,o);const c=Fl.ray.intersectPlane(gu,new ue)??l;s.push({...a,intersections:s,point:l,pointOnFace:c,inputDevicePosition:r.clone(),inputDeviceRotation:i.clone(),capturedObject:o})}return s}const HE=new En;function Pte(t,e,n,r,i,s){Fl.ray.origin.copy(t),Fl.ray.direction.copy(s).applyQuaternion(e);const o=[];return _0(n,r.hasEventHandlers.bind(r),a=>{const l=Fl.intersectObject(a,!0);for(const c of l)i&&!yv(c)||(HE.copy(a.matrixWorld).invert(),o.push(Object.assign(c,{intersections:o,inputDevicePosition:t.clone(),inputDeviceRotation:e.clone(),pointOnFace:c.point,localPoint:c.point.clone().applyMatrix4(HE)})))}),o.sort((a,l)=>a.distance-l.distance)}function Qte(t,e,n,r,i,s,o){Fl.setFromCamera(e,t),t.getWorldPosition(s),t.getWorldQuaternion(o),gu.setFromNormalAndCoplanarPoint(t.getWorldDirection(iA),Fl.ray.origin);const a=[];return _0(n,r.hasEventHandlers.bind(r),l=>{const c=Fl.intersectObject(l,!0);for(const p of c)i&&!yv(p)||(HE.copy(l.matrixWorld).invert(),a.push(Object.assign(p,{intersections:a,pointOnFace:p.point,inputDevicePosition:s.clone(),inputDeviceRotation:o.clone(),distanceViewPlane:gu.distanceToPoint(p.point),localPoint:p.point.clone().applyMatrix4(HE)})))}),a.sort((l,c)=>l.distance-c.distance)}const f3=new ue,A3=new Si,g3=new Tr;function kte(t,e,n){const r=[];for(const[i,s]of n){f3.copy(s.point).sub(s.inputDevicePosition),A3.copy(s.inputDeviceRotation).invert().multiply(e);const o=f3.clone().applyQuaternion(A3).add(t);Ev(g3,s,i);const a=g3.projectPoint(t,new ue);r.push({distance:s.distance,intersections:r,inputDevicePosition:t.clone(),inputDeviceRotation:e.clone(),object:s.object,point:o,pointOnFace:a,face:s.face,capturedObject:i,distanceToFace:a.distanceTo(t),localPoint:s.localPoint})}return r}const va=new Li;function Rte(t,e,n,r,i,s){va.center.copy(t),va.radius=n;const o=[];return _0(r,i.hasEventHandlers.bind(i),a=>a8(a,e,s,o)),o.sort((a,l)=>a.distance-l.distance)}function a8(t,e,n,r){Nte(t,e,n,r);for(const i of t.children)a8(i,e,n,r)}const Hg=new En,zg=new En;function Lte(t){return"spherecast"in t}function Nte(t,e,n,r){if(t.updateWorldMatrix(!0,!1),Lte(t)){const i=[];t.spherecast(va,i);for(const s of i)n&&!yv(s)||r.push({...s,pointOnFace:s.point,intersections:r,inputDevicePosition:va.center.clone(),inputDeviceRotation:e.clone(),localPoint:s.point.clone().applyMatrix4(Hg.copy(s.object.matrixWorld).invert())})}if(t instanceof kw){t.geometry.boundingSphere==null&&t.geometry.computeBoundingSphere(),t.geometry.boundingBox==null&&t.geometry.computeBoundingBox();const i=[];for(let s=0;sva.radius*va.radius)return;jI.max(Ote);const p=sA.center.clone().sub(y3);p.divide(jI),Ute(p);const d=F1.clone();o&&!Gte(t,d)||a.push({intersections:a,distance:Math.sqrt(c),object:t,face:{a:0,b:0,c:0,materialIndex:0,normal:p},pointOnFace:d,point:d,instanceId:l,inputDevicePosition:e.clone(),inputDeviceRotation:n.clone(),localPoint:d.clone().applyMatrix4(i)})}function Ute(t){const e=Math.abs(t.x),n=Math.abs(t.y),r=Math.abs(t.z);if(e>=n&&e>=r){t.set(t.x<0?-1:1,0,0);return}if(n>=e&&n>=r){t.set(0,t.y<0?-1:1,0);return}t.set(0,0,t.z<0?-1:1)}function _0(t,e,n){if(e(t))return n(t);for(const r of t.children)_0(r,e,n)}function yv(t){if(!(t.object instanceof gr)||t.object.material.clippingPlanes==null)return!0;const e=t.object.material.clippingPlanes;for(const n of e)if(n.distanceToPoint(t.point)<0)return!1;return!0}function Gte(t,e){if(!(t instanceof gr)||t.material.clippingPlanes==null)return!0;const n=t.material.clippingPlanes;for(const r of n)if(r.distanceToPoint(e)<0)return!1;return!0}function Ev(t,e,n){return e.face==null?!1:(t.setFromNormalAndCoplanarPoint(e.face.normal,e.localPoint),t.applyMatrix4(n.matrixWorld),!0)}const VI=new ue,C3=new Si,v3=Symbol("traversal-id"),x3=[],y2=new ir;class Cv{constructor(e,n,r,i,s,o,a,l,c,p,d){Ke(this,"inputDeviceId");Ke(this,"dispatchPressAlways");Ke(this,"eventDispatcher");Ke(this,"computeIntersections");Ke(this,"getPressedElementIds");Ke(this,"getInputDeviceTransformation");Ke(this,"wasDragged");Ke(this,"onIntersections");Ke(this,"filterIntersections");Ke(this,"onStartEventCaptures");Ke(this,"onEndEventCaptures");Ke(this,"intersections",[]);Ke(this,"lastPositionChangeTime");Ke(this,"capturedEvents");Ke(this,"objectInteractionStateMap",new Map);this.inputDeviceId=e,this.dispatchPressAlways=n,this.eventDispatcher=r,this.computeIntersections=i,this.getPressedElementIds=s,this.getInputDeviceTransformation=o,this.wasDragged=a,this.onIntersections=l,this.filterIntersections=c,this.onStartEventCaptures=p,this.onEndEventCaptures=d}update(e,n,r,...i){var a;this.eventDispatcher.bind(e,this);const s=performance.now(),o=this.intersections;if(n&&(this.intersections=this.computeIntersections(e,this.capturedEvents),this.capturedEvents==null&&this.filterIntersections!=null&&(this.intersections=this.filterIntersections(this.intersections)),(a=this.onIntersections)==null||a.call(this,this.intersections),this.intersections.length===0&&(this.getInputDeviceTransformation(VI,C3),this.intersections=[{distance:1/0,inputDevicePosition:VI.clone(),inputDeviceRotation:C3.clone(),object:y2,point:VI.clone()}])),this.traverseIntersections(this.intersections,(l,c,p,d,A)=>(n&&(this.dispatchEnterOrMove(l,c,p),c.lastIntersectedTime=s),r&&(this.dispatchPress(l,p,A,i),this.dispatchRelease(e,l,p,c,A),this.updateElementStateMap(p,c,A,i,s)),c.lastPressedElementIds=A,c.blockFollowingIntersections&&(this.intersections.length=d+1),!0),l=>this.getPressedElementIds(l)),n){const l=this.getPressedElementIds();this.traverseIntersections(o,(c,p,d)=>p.lastIntersectedTime===s?!1:(this.dispatchRelease(e,c,d,p,l),this.eventDispatcher.leave(c,d),p.lastLeftTime=s,p.lastPressedElementIds=x3,!0)),this.lastPositionChangeTime=s}}cancel(e){this.eventDispatcher.bind(e,this),this.traverseIntersections(this.intersections,(n,r,i)=>(this.eventDispatcher.cancel(n,i),!0))}wheel(e){this.eventDispatcher.bind(e,this),this.traverseIntersections(this.intersections,(n,r,i)=>(this.eventDispatcher.wheel(n,i),!0))}leave(e){var n;this.eventDispatcher.bind(e,this),this.traverseIntersections(this.intersections,(r,i,s)=>(this.eventDispatcher.leave(r,s),!0)),this.capturedEvents!=null&&((n=this.onEndEventCaptures)==null||n.call(this,e)),this.lastPositionChangeTime=void 0,this.intersections.length=0,this.capturedEvents=void 0}updateElementStateMap(e,n,r,i,s){for(const o of r)(i.includes(o)||this.dispatchPressAlways)&&n.elementStateMap.set(o,{lastPressEventTime:s,lastPressEventIntersection:e})}dispatchPress(e,n,r,i){for(const s of r)(this.dispatchPressAlways||i.includes(s))&&this.eventDispatcher.press(e,n,s)}dispatchRelease(e,n,r,i,s){for(const o of i.lastPressedElementIds){if(s.includes(o))continue;this.eventDispatcher.release(n,r,o),this.removeEventCapture(e,n);const a=i.elementStateMap.get(o);a!=null&&(i.lastLeftTime==null||i.lastLeftTime{}){const i=Math.random();e:for(let s=0;snew Map,[]),d=ae.useMemo(()=>new vv,[]);d.onPointerDownMissed=i,d.onPointerUpMissed=s,d.onClickMissed=o;const A=ae.useMemo(()=>({filterClipped:c??!0,computeIntersections:t,isDrag:e,onIntersections:n,filterIntersections:r,onStartEventCaptures:a,onEndEventCaptures:l}),[]);A.filterClipped=c??!0,A.computeIntersections=t,A.isDrag=e,A.onIntersections=n,A.filterIntersections=r,A.onStartEventCaptures=a,A.onEndEventCaptures=l;for(const[y,C]of p)l8(C.translator,y,A);return ae.useEffect(()=>()=>{for(const{translator:y}of p.values())y.leave({});p.clear()},[]),ae.useMemo(()=>{const y=C=>Wte(p,d,A,C);return{cancel:(C,x)=>{const{translator:D}=y(C);D.cancel(x)},enter:(C,x)=>{const{translator:D}=y(C);D.update(x,!0,!0)},leave:(C,x)=>{const{translator:D}=y(C);D.leave(x),p.delete(C)},press:(C,x,...D)=>{const{inputDeviceElementPressMap:I,inputDeviceElementPressSet:w,translator:B}=y(C);for(const _ of D)w.add(_),I.set(_,x);B.update(x,!1,!0,...D)},release:(C,x,...D)=>{const{inputDeviceElementPressMap:I,inputDeviceElementPressSet:w,inputDeviceElementDragSet:B,translator:_}=y(C);for(const F of D)w.delete(F),I.delete(F);_.update(x,!1,!0);for(const F of D)B.delete(F)},move:(C,x)=>{const{translator:D,inputDeviceElementPressMap:I,inputDeviceElementDragSet:w}=y(C);for(const[B,_]of I)A.isDrag(_,x)&&w.add(B);D.update(x,!0,!1)},wheel:C=>{for(const{translator:x}of p.values())x.wheel(C)},blur:C=>{for(const{translator:x}of p.values())x.leave(C);p.clear()}}},[])}function l8(t,e,{filterIntersections:n,onEndEventCaptures:r,onIntersections:i,onStartEventCaptures:s}){t.onIntersections=i==null?void 0:i.bind(null,e),t.filterIntersections=n==null?void 0:n.bind(null,e),t.onStartEventCaptures=s==null?void 0:s.bind(null,e),t.onEndEventCaptures=r==null?void 0:r.bind(null,e)}function Wte(t,e,n,r){let i=t.get(r);if(i==null){const s=new ue,o=new Si,a={inputDeviceElementPressSet:new Set,inputDeviceElementPressMap:new Map,translator:new Cv(r,!1,e,(l,c)=>n.computeIntersections(l,c,n.filterClipped,e,s,o),()=>[...a.inputDeviceElementPressSet],(l,c)=>{l.copy(s),c.copy(o)},l=>a.inputDeviceElementDragSet.has(l)),inputDeviceElementDragSet:new Set};l8(a.translator,r,n),t.set(r,i=a)}return i}new ue;const jte=[];function Vte(t,e,n){if(t.current==null)return!1;const r=t.current*t.current,i=e.offsetX-n.offsetX,s=e.offsetY-n.offsetY;return i*i+s*s>r}function Jte({filterClipped:t,filterIntersections:e,onClickMissed:n,onIntersections:r,onPointerDownMissed:i,onPointerUpMissed:s,dragDistance:o}){const a=al(),l=n0(({gl:A})=>A.domElement),c=ae.useMemo(()=>Yte.bind(null,a),[a]),p=ae.useRef(o);p.current=o;const d=zte(c,Vte.bind(null,p),r,e,i,s,n,Xte,qte,t);return ae.useEffect(()=>{const A=w=>d.cancel(w.pointerId,w),y=w=>d.press(w.pointerId,w,w.button),C=w=>d.release(w.pointerId,w,w.button),x=w=>d.enter(w.pointerId,w),D=w=>d.leave(w.pointerId,w),I=w=>d.move(w.pointerId,w);return l.addEventListener("pointercancel",A),l.addEventListener("pointerdown",y),l.addEventListener("pointerup",C),l.addEventListener("pointerover",x),l.addEventListener("pointerout",D),l.addEventListener("pointermove",I),l.addEventListener("wheel",d.wheel),l.addEventListener("blur",d.blur),()=>{l.removeEventListener("pointercancel",A),l.removeEventListener("pointerdown",y),l.removeEventListener("pointerup",C),l.removeEventListener("pointerover",x),l.removeEventListener("pointerout",D),l.removeEventListener("pointermove",I),l.removeEventListener("wheel",d.wheel),l.removeEventListener("blur",d.blur)}},[l,d]),null}function Yte(t,e,n,r,i,s,o){if(!(e.target instanceof HTMLCanvasElement))return jte;const{camera:a,scene:l,size:c}=t.getState(),p=new st(e.offsetX/c.width*2-1,-(e.offsetY/c.height)*2+1);return n==null?Qte(a,p,l,i,r,s,o):Fte(a,p,n,s,o)}function Xte(t,e){e.target instanceof HTMLCanvasElement&&e.target.setPointerCapture(t)}function qte(t,e){e.target instanceof HTMLCanvasElement&&e.target.releasePointerCapture(t)}const JI=new ue,YI=new Si,Kte=new ue(0,0,1);ae.forwardRef(({id:t,onIntersections:e,filterIntersections:n,onClickMissed:r,onPointerDownMissed:i,onPointerUpMissed:s,filterClipped:o=!0,direction:a=Kte,initialPressedElementIds:l},c)=>{const p=al(),d=ae.useMemo(()=>new ir,[]),A=ae.useMemo(()=>new vv,[]);A.onPointerDownMissed=i,A.onPointerUpMissed=s,A.onClickMissed=r;const y=ae.useMemo(()=>new Set(l),[]),C=ae.useMemo(()=>({filterClipped:o,direction:a}),[]);C.filterClipped=o,C.direction=a;const x=ae.useMemo(()=>new Cv(t,!1,A,(I,w)=>(d.getWorldPosition(JI),d.getWorldQuaternion(YI),w==null?Pte(JI,YI,p.getState().scene,A,C.filterClipped,C.direction):_te(JI,YI,w,C.direction)),()=>[...y],(I,w)=>{d.getWorldPosition(I),d.getWorldQuaternion(w)}),[t,p]);x.onIntersections=e,x.filterIntersections=n,ae.useImperativeHandle(c,()=>({press:(I,w)=>{y.add(I),x.update(w,!1,!0,I)},release:(I,w)=>{y.delete(I),x.update(w,!1,!0)},cancel:x.cancel.bind(x),wheel(I){x.wheel(I)}}),[x]),ae.useEffect(()=>x.leave.bind(x,{}),[x]);const D=ae.useRef(y.size>0);return _A(()=>{x.update({},!0,D.current,...y),D.current=!1}),jE.createElement("primitive",{object:d})});const XI=new ue,qI=new Si;ae.forwardRef(({id:t,distanceElement:e,radius:n,onIntersections:r,filterIntersections:i,onClickMissed:s,onPointerDownMissed:o,onPointerUpMissed:a,filterClipped:l=!0,initialPressedElementIds:c},p)=>{const d=ae.useMemo(()=>new ir,[]),A=al(),y=ae.useMemo(()=>new Set(c),[]),C=ae.useMemo(()=>new vv,[]);C.onPointerDownMissed=o,C.onPointerUpMissed=a,C.onClickMissed=s;const x=ae.useMemo(()=>({distanceElement:e,radius:n,filterClipped:l}),[]);x.distanceElement=e,x.radius=n,x.filterClipped=l;const D=ae.useMemo(()=>new Cv(t,!0,C,(w,B)=>(d.getWorldPosition(XI),d.getWorldQuaternion(qI),B==null?Rte(XI,qI,x.radius,A.getState().scene,C,x.filterClipped):kte(XI,qI,B)),w=>w!=null&&x.distanceElement!=null&&w.distance<=x.distanceElement.downRadius&&(w.distanceToFace==null||w.distanceToFace<2*x.distanceElement.downRadius*2)?[...y,x.distanceElement.id]:[...y],(w,B)=>{d.getWorldPosition(w),d.getWorldQuaternion(B)}),[t,A]);D.onIntersections=r,D.filterIntersections=i,ae.useImperativeHandle(p,()=>({press:(w,B)=>{y.add(w),D.update(B,!1,!0,w)},release:(w,B)=>{y.delete(w),D.update(B,!1,!0)},cancel:D.cancel.bind(D),wheel(w){D.wheel(w)}}),[D]),ae.useEffect(()=>D.leave.bind(D,{}),[D]);const I=ae.useRef(y.size>0);return _A(()=>{D.update({},!0,I.current||e!=null,...y),I.current=!1}),jE.createElement("primitive",{object:d})});const KI=new ue,ZI=new Si;ae.forwardRef(({id:t,points:e,onIntersections:n,filterIntersections:r,onClickMissed:i,onPointerDownMissed:s,onPointerUpMissed:o,filterClipped:a=!0,initialPressedElementIds:l},c)=>{const p=ae.useMemo(()=>new ir,[]),d=al(),A=ae.useMemo(()=>new vv,[]);A.onPointerDownMissed=s,A.onPointerUpMissed=o,A.onClickMissed=i;const y=ae.useMemo(()=>new Set(l),[]),C=ae.useMemo(()=>({points:e,filterClipped:a}),[]);C.points=e,C.filterClipped=a;const x=ae.useMemo(()=>new Cv(t,!1,A,(I,w)=>(p.getWorldPosition(KI),p.getWorldQuaternion(ZI),w==null?Mte(p,KI,ZI,C.points,d.getState().scene,A,C.filterClipped):Bte(p,KI,ZI,C.points,w)),()=>[...y],(I,w)=>{p.getWorldPosition(I),p.getWorldQuaternion(w)}),[t,d]);x.onIntersections=n,x.filterIntersections=r,ae.useImperativeHandle(c,()=>({press:(I,w)=>{y.add(I),x.update(w,!1,!0,I)},release:(I,w)=>{y.delete(I),x.update(w,!1,!0)},cancel:x.cancel.bind(x),wheel(I){x.wheel(I)}}),[x]),ae.useEffect(()=>x.leave.bind(x,{}),[x]);const D=ae.useRef(y.size>0);return _A(()=>{x.update({},!0,D.current,...y),D.current=!1}),jE.createElement("primitive",{object:p})});const Zte=()=>({enabled:!1,priority:0});class vv{constructor(e,n,r){Ke(this,"onPointerDownMissed");Ke(this,"onPointerUpMissed");Ke(this,"onClickMissed");Ke(this,"stoppedEventTypeSet");Ke(this,"event");Ke(this,"translator");Ke(this,"press",this.dispatch.bind(this,["onPointerDown"]));Ke(this,"release",this.dispatch.bind(this,["onPointerUp"]));Ke(this,"cancel",this.dispatch.bind(this,["onPointerCancel"]));Ke(this,"select",this.dispatch.bind(this,["onClick"]));Ke(this,"move",this.dispatch.bind(this,["onPointerMove"]));Ke(this,"enter",this.dispatch.bind(this,["onPointerEnter","onPointerOver"]));Ke(this,"leave",this.dispatch.bind(this,["onPointerLeave","onPointerOut"]));Ke(this,"wheel",this.dispatch.bind(this,["onWheel"]));Ke(this,"losteventcapture",()=>{});this.onPointerDownMissed=e,this.onPointerUpMissed=n,this.onClickMissed=r}dispatch(e,n,r,i){var s,o;for(const a of e){if(this.stoppedEventTypeSet.has(a))return;if(n==y2){switch(a){case"onClick":case"onPointerDown":case"onPointerUp":{const c=this[`${a}Missed`];if(c==null)return;c(this.createEvent(a,n,r,i))}}return}(o=(s=n.__r3f.handlers)[a])==null||o.call(s,this.createEvent(a,n,r,i))}}createEvent(e,n,r,i){const s=this.stoppedEventTypeSet,o=this.translator,a={setPointerCapture:this.translator.addEventCapture.bind(this.translator,this.event,n,r),releasePointerCapture:this.translator.removeEventCapture.bind(this.translator,this.event,n),hasPointerCapture:this.translator.hasEventCapture.bind(this.translator,n)},l={};for(const c in this.event){const p=this.event[c];typeof p!="function"&&(l[c]=p)}return Object.assign(l,r,{eventObject:n,pointer:null,stopped:null,delta:0,unprojectedPoint:null,ray:null,camera:null,stopPropagation(){s.add(e),e=="onPointerEnter"&&o.blockFollowingIntersections(n)},pointerId:this.translator.inputDeviceId,target:a,currentTarget:a,nativeEvent:this.event,inputDeviceElementId:i,inputDeviceId:this.translator.inputDeviceId}),l}bind(e,n){this.stoppedEventTypeSet=new Set,this.event=e,this.translator=n}hasEventHandlers(e){if(e===y2)return!0;const n=e.__r3f;return n!=null&&n.eventCount>0}}const u8=ae.createContext(null),$te=ae.forwardRef(({children:t,...e},n)=>{const[r,i]=ae.useState(!1),s=ae.useRef(void 0);return ae.useEffect(()=>()=>{s.current!=null&&clearTimeout(s.current)},[]),te.jsx(Ht,{onPointerOver:()=>{s.current==null&&(s.current=setTimeout(()=>{s.current=void 0,i(!0)},1e3))},onPointerOut:()=>{if(s.current!=null){clearTimeout(s.current),s.current=void 0;return}i(!1)},positionType:"relative",flexDirection:"column",alignItems:"center",ref:n,...e,children:te.jsx(u8.Provider,{value:r,children:t})})}),ene=ae.forwardRef((t,e)=>te.jsx(Ht,{alignSelf:"stretch",ref:e,...t})),tne=ae.forwardRef(({children:t,sideOffset:e=4,...n},r)=>ae.useContext(u8)?te.jsx(Ht,{positionType:"absolute",positionBottom:"100%",marginBottom:e,zIndexOffset:50,overflow:"hidden",borderRadius:_s.md,borderWidth:1,backgroundColor:Nt.popover,paddingX:12,paddingY:6,ref:r,...n,children:te.jsx(Lr,{wordBreak:"keep-all",fontSize:14,lineHeight:20,color:Nt.popoverForeground,children:t})}):null);function nne(){return te.jsxs($te,{children:[te.jsx(ene,{children:te.jsx(Ta,{variant:"outline",children:te.jsx(pn,{children:"Hover"})})}),te.jsx(tne,{children:te.jsx(pn,{children:"Add to library"})})]})}const xv=ae.createContext(null);function rne({children:t,...e}){const n=ae.useState(void 0);return te.jsx(Ht,{flexDirection:"column",...e,children:te.jsx(xv.Provider,{value:n,children:t})})}const VB=ae.createContext(""),$I=ae.forwardRef(({children:t,...e},n)=>{const[r,i]=ae.useContext(xv),s=e.value===r;return te.jsx(Ht,{cursor:"pointer",flexDirection:"column",onClick:()=>i(s?void 0:e.value),borderBottomWidth:1,ref:n,...e,children:te.jsx(VB.Provider,{value:e.value,children:t})})}),eD=ae.forwardRef(({children:t,...e},n)=>{const r=ae.useContext(VB),[i]=ae.useContext(xv),s=r===i;return te.jsxs(Ht,{flexDirection:"row",flexGrow:1,flexShrink:1,alignItems:"center",justifyContent:"space-between",paddingY:16,ref:n,...e,children:[te.jsx(Lr,{fontWeight:"medium",children:t}),te.jsx(bee,{transformRotateZ:s?180:0,width:16,height:16,flexShrink:0})]})}),tD=ae.forwardRef(({children:t,...e},n)=>{const r=ae.useContext(VB),[i]=ae.useContext(xv);return i!=r?null:te.jsx(Ht,{overflow:"hidden",ref:n,...e,children:te.jsx(Ht,{paddingBottom:16,children:te.jsx(Lr,{fontSize:14,children:t})})})});function ine(){return te.jsx(Ht,{flexDirection:"column",width:300,children:te.jsxs(rne,{children:[te.jsxs($I,{value:"item-1",children:[te.jsx(eD,{children:te.jsx(pn,{children:"Is it accessible?"})}),te.jsx(tD,{children:te.jsx(pn,{children:"Yes. It adheres to the WAI-ARIA design pattern."})})]}),te.jsxs($I,{value:"item-2",children:[te.jsx(eD,{children:te.jsx(pn,{children:"Is it styled?"})}),te.jsx(tD,{children:te.jsx(pn,{children:"Yes. It comes with default styles that matches the other components' aesthetic."})})]}),te.jsxs($I,{value:"item-3",children:[te.jsx(eD,{children:te.jsx(pn,{children:"Is it animated?"})}),te.jsx(tD,{children:te.jsx(pn,{children:"Yes. It's animated by default, but you can disable it if you prefer."})})]})]})})}const sne={default:{},destructive:{borderColor:Nt.destructive,borderOpacity:.5,color:Nt.destructive}},one=ae.forwardRef((t,e)=>te.jsx(Lr,{...sne[t.variant??"default"],children:te.jsx(Ht,{flexDirection:"column",positionType:"relative",width:"100%",borderRadius:_s.lg,borderWidth:1,padding:16,ref:e,...t})})),ane=ae.forwardRef((t,e)=>te.jsx(Ht,{positionLeft:16,positionTop:16,positionType:"absolute",ref:e,...t})),lne=ae.forwardRef(({children:t,...e},n)=>te.jsx(Ht,{marginBottom:4,padding:0,paddingLeft:28,ref:n,...e,children:te.jsx(Lr,{fontWeight:"medium",letterSpacing:-.4,lineHeight:"100%",children:t})})),une=ae.forwardRef(({children:t,...e},n)=>te.jsx(Ht,{paddingLeft:28,ref:n,...e,children:te.jsx(Lr,{lineHeight:"162.5%",fontSize:14,children:t})}));function cne(){return te.jsxs(one,{maxWidth:500,children:[te.jsx(ane,{children:te.jsx(ote,{width:16,height:16})}),te.jsx(lne,{children:te.jsx(pn,{children:"Error"})}),te.jsx(une,{children:te.jsx(pn,{children:"You can add components to your app using the cli."})})]})}const hne=e8,pne=t8,dne=ae.forwardRef(({onClick:t,sm:e,...n},r)=>{const i=mv();return te.jsx(r8,{children:te.jsx(n8,{onClick:s=>{i(),s.stopPropagation()},alignItems:"center",justifyContent:"center",children:te.jsx(Ht,{onClick:s=>{s.stopPropagation(),t==null||t(s)},positionType:"relative",flexDirection:"column",maxWidth:512,width:"100%",gap:16,borderWidth:1,backgroundColor:Nt.background,padding:24,sm:{borderRadius:_s.lg,...e},ref:r,...n})})})}),fne=i8,Ane=s8;function gne(t){return te.jsx(Lr,{fontSize:18,lineHeight:28,fontWeight:"semi-bold",...t})}const mne=o8,yne=ae.forwardRef(({children:t,onClick:e,...n},r)=>{const i=mv();return te.jsx(Ht,{borderRadius:_s.md,height:40,paddingX:16,paddingY:8,alignItems:"center",justifyContent:"center",cursor:"pointer",flexDirection:"row",backgroundColor:Nt.primary,onClick:s=>{s.stopPropagation(),i(),e==null||e(s)},hover:{backgroundOpacity:.9},ref:r,...n,children:te.jsx(Lr,{children:te.jsx(Lr,{fontSize:14,lineHeight:20,fontWeight:"medium",wordBreak:"keep-all",color:Nt.primaryForeground,children:t})})})}),Ene=ae.forwardRef(({children:t,onClick:e,...n},r)=>{const i=mv();return te.jsx(Ht,{borderRadius:_s.md,height:40,paddingX:16,paddingY:8,alignItems:"center",justifyContent:"center",cursor:"pointer",flexDirection:"row",borderWidth:1,borderColor:Nt.input,backgroundColor:Nt.background,onClick:s=>{s.stopPropagation(),i(),e==null||e(s)},hover:{backgroundColor:Nt.accent},ref:r,...n,children:te.jsx(Lr,{fontSize:14,lineHeight:20,fontWeight:"medium",wordBreak:"keep-all",children:t})})});function Cne(){return te.jsxs(hne,{children:[te.jsx(pne,{children:te.jsx(Ta,{variant:"outline",children:te.jsx(pn,{children:"Show Dialog"})})}),te.jsxs(dne,{children:[te.jsxs(fne,{children:[te.jsx(gne,{children:te.jsx(pn,{children:"Are you absolutely sure?"})}),te.jsx(mne,{children:te.jsx(pn,{children:"This action cannot be undone. This will permanently delete your account and remove your data from our servers."})})]}),te.jsxs(Ane,{children:[te.jsx(Ene,{children:te.jsx(pn,{children:"Cancel"})}),te.jsx(yne,{children:te.jsx(pn,{children:"Continue"})})]})]})]})}const vne=ae.forwardRef((t,e)=>te.jsx(sv,{width:40,height:40,flexShrink:0,aspectRatio:1,objectFit:"cover",borderRadius:20,ref:e,...t}));function xne(){return te.jsx(Ht,{alignItems:"center",children:te.jsx(vne,{src:"https://picsum.photos/100/100"})})}const Ine={default:{defaultProps:{color:Nt.primaryForeground},containerProps:{backgroundColor:Nt.primary},containerHoverProps:{backgroundOpacity:.8}},secondary:{defaultProps:{color:Nt.secondaryForeground},containerProps:{backgroundColor:Nt.secondary},containerHoverProps:{backgroundOpacity:.8}},destructive:{defaultProps:{color:Nt.destructiveForeground},containerProps:{backgroundColor:Nt.destructive},containerHoverProps:{backgroundOpacity:.8}},outline:{}},Dne=ae.forwardRef(({children:t,variant:e="default",hover:n,...r},i)=>{const{containerProps:s,defaultProps:o,containerHoverProps:a}=Ine[e];return te.jsx(Ht,{borderRadius:1e3,borderWidth:1,paddingX:10,paddingY:2,hover:{...a,...n},ref:i,...s,...r,children:te.jsx(Lr,{fontSize:12,lineHeight:16,fontWeight:"semi-bold",...o,children:t})})});function Sne(){return te.jsx(Dne,{children:te.jsx(pn,{children:"Badge"})})}function wne(){return te.jsx(Ta,{variant:"outline",size:"icon",children:te.jsx(qN,{width:16,height:16})})}const c8=ae.forwardRef(({defaultChecked:t,checked:e,disabled:n=!1,onCheckedChange:r,...i},s)=>{const[o,a]=ae.useState(t??!1),l=e??o;return te.jsx(Ht,{height:24,width:44,flexShrink:0,flexDirection:"row",padding:2,alignItems:"center",backgroundOpacity:n?.5:void 0,borderRadius:1e3,backgroundColor:l?Nt.primary:Nt.input,cursor:n?void 0:"pointer",onClick:n?void 0:()=>{e==null&&a(!l),r==null||r(!l)},ref:s,...i,children:te.jsx(Ht,{width:20,height:20,borderRadius:1e3,transformTranslateX:l?20:0,backgroundColor:Nt.background})})}),nD=[{title:"Your call has been confirmed.",description:"1 hour ago"},{title:"You have a new message!",description:"1 hour ago"},{title:"Your subscription is expiring soon!",description:"2 hours ago"}];function Bne(){return te.jsxs(GE,{width:380,children:[te.jsxs(h2,{children:[te.jsx(p2,{children:te.jsx(pn,{children:"Notifications"})}),te.jsx(d2,{children:te.jsx(pn,{children:"You have 3 unread messages."})})]}),te.jsxs(f2,{flexDirection:"column",gap:16,children:[te.jsxs(Ht,{flexDirection:"row",alignItems:"center",gap:16,borderRadius:6,borderWidth:1,padding:16,children:[te.jsx(vee,{}),te.jsxs(Ht,{flexDirection:"column",gap:4,children:[te.jsx(pn,{fontSize:14,lineHeight:"100%",children:"Push Notifications"}),te.jsx(pn,{fontSize:14,lineHeight:20,color:Nt.mutedForeground,children:"Send notifications to device."})]}),te.jsx(c8,{})]}),te.jsx(Ht,{flexDirection:"column",children:nD.map((t,e)=>te.jsxs(Ht,{marginBottom:e===nD.length-1?0:16,paddingBottom:e===nD.length-1?0:16,alignItems:"flex-start",flexDirection:"row",gap:17,children:[te.jsx(Ht,{height:8,width:8,transformTranslateY:4,borderRadius:1e3,backgroundColor:959977}),te.jsxs(Ht,{flexDirection:"column",gap:4,children:[te.jsx(pn,{fontSize:14,lineHeight:"100%",children:t.title}),te.jsx(pn,{fontSize:14,lineHeight:20,color:Nt.mutedForeground,children:t.description})]})]},e))})]}),te.jsx(A2,{children:te.jsxs(Ta,{flexDirection:"row",width:"100%",children:[te.jsx(XN,{marginRight:8,height:16,width:16}),te.jsx(pn,{children:"Mark all as read"})]})})]})}const bne=ae.forwardRef(({defaultChecked:t,checked:e,disabled:n=!1,onCheckedChange:r,...i},s)=>{const[o,a]=ae.useState(t??!1),l=e??o;return te.jsx(Ht,{alignItems:"center",justifyContent:"center",cursor:n?void 0:"pointer",onClick:n?void 0:()=>{e==null&&a(!l),r==null||r(!l)},borderRadius:_s.sm,width:16,height:16,borderWidth:1,borderColor:Nt.primary,backgroundColor:l?Nt.primary:void 0,backgroundOpacity:n?.5:void 0,borderOpacity:n?.5:void 0,ref:s,...i,children:te.jsx(XN,{color:l?Nt.primaryForeground:void 0,opacity:l?n?.5:void 0:0,width:14,height:14})})}),$a=ae.forwardRef(({disabled:t,...e},n)=>te.jsx(Lr,{fontWeight:"medium",fontSize:14,lineHeight:"100%",opacity:t?.7:void 0,ref:n,...e}));function Tne(){return te.jsxs(Ht,{flexDirection:"row",gap:8,alignItems:"center",children:[te.jsx(bne,{}),te.jsx($a,{children:te.jsx(pn,{children:"Accept terms and conditions"})})]})}function Mne(){return te.jsxs(e8,{children:[te.jsx(t8,{children:te.jsx(Ta,{variant:"outline",children:te.jsx(pn,{children:"Edit Profile"})})}),te.jsxs(Ste,{sm:{maxWidth:425},children:[te.jsxs(i8,{children:[te.jsx(wte,{children:te.jsx(pn,{children:"Edit profile"})}),te.jsx(o8,{children:te.jsx(pn,{children:"Make changes to your profile here. Click save when you're done."})})]}),te.jsxs(Ht,{flexDirection:"column",alignItems:"center",gap:16,paddingY:16,children:[te.jsx(Ht,{alignItems:"center",gap:16,children:te.jsx($a,{children:te.jsx(pn,{textAlign:"right",children:"Name"})})}),te.jsx(Ht,{alignItems:"center",gap:16,children:te.jsx($a,{children:te.jsx(pn,{textAlign:"right",children:"Username"})})})]}),te.jsx(s8,{children:te.jsx(Ta,{children:te.jsx(pn,{children:"Save changes"})})})]})]})}const _ne=ae.forwardRef((t,e)=>te.jsx(Ht,{marginX:"auto",flexDirection:"row",width:"100%",justifyContent:"center",ref:e,...t})),Fne=ae.forwardRef((t,e)=>te.jsx(Ht,{flexDirection:"row",alignItems:"center",gap:4,ref:e,...t})),Sf=Ht,Pne={outline:{containerProps:{borderWidth:1,borderColor:Nt.input,backgroundColor:Nt.background},containerHoverProps:{backgroundColor:Nt.accent}},ghost:{containerHoverProps:{backgroundColor:Nt.accent}}},Qne={default:{height:40,paddingX:16,paddingY:8},sm:{height:36,paddingX:12},lg:{height:42,paddingX:32},icon:{height:40,width:40}},gm=ae.forwardRef(({isActive:t=!1,size:e="icon",hover:n,...r},i)=>{const{containerProps:s,containerHoverProps:o}=Pne[t?"outline":"ghost"],a=Qne[e];return te.jsx(Ht,{cursor:"pointer",borderRadius:_s.md,alignItems:"center",justifyContent:"center",hover:{...o,...n},ref:i,...s,...a,...r})}),kne=ae.forwardRef((t,e)=>te.jsxs(gm,{flexDirection:"row",size:"default",gap:4,paddingLeft:10,ref:e,...t,children:[te.jsx(_ee,{width:16,height:16}),te.jsx(pn,{children:"Previous"})]})),Rne=ae.forwardRef((t,e)=>te.jsxs(gm,{flexDirection:"row",size:"default",gap:4,paddingRight:10,ref:e,...t,children:[te.jsx(pn,{children:"Next"}),te.jsx(qN,{width:16,height:16})]})),Lne=ae.forwardRef((t,e)=>te.jsx(Ht,{flexDirection:"row",height:36,width:36,alignItems:"center",justifyContent:"center",ref:e,...t,children:te.jsx(jee,{width:16,height:16})}));function Nne(){return te.jsx(_ne,{children:te.jsxs(Fne,{children:[te.jsx(Sf,{children:te.jsx(kne,{})}),te.jsx(Sf,{children:te.jsx(gm,{children:te.jsx(pn,{children:"1"})})}),te.jsx(Sf,{children:te.jsx(gm,{isActive:!0,children:te.jsx(pn,{children:"2"})})}),te.jsx(Sf,{children:te.jsx(gm,{children:te.jsx(pn,{children:"3"})})}),te.jsx(Sf,{children:te.jsx(Lne,{})}),te.jsx(Sf,{children:te.jsx(Rne,{})})]})})}const One=ae.forwardRef(({value:t,...e},n)=>{const r=ae.useMemo(()=>bn(()=>`${t??0}%`),[t]);return te.jsx(Ht,{height:16,width:"100%",borderRadius:1e3,backgroundColor:Nt.secondary,ref:n,...e,children:te.jsx(Ht,{height:"100%",borderRadius:1e3,backgroundColor:Nt.primary,width:r})})});function Une(){const[t,e]=ae.useState(13);return ae.useEffect(()=>{const n=setTimeout(()=>e(66),500);return()=>clearTimeout(n)},[]),te.jsx(One,{value:t,width:200})}const h8=ae.createContext({}),Gne=ae.forwardRef(({defaultValue:t,value:e,onValueChange:n,children:r,...i},s)=>{const[o,a]=ae.useState(t),l=ae.useMemo(()=>e==null?{value:o,setValue:c=>{a(c),n==null||n(c)}}:{value:e,onValueChange:n},[o,n,e]);return te.jsx(Ht,{flexDirection:"column",gap:8,ref:s,...i,children:te.jsx(h8.Provider,{value:l,children:r})})}),rD=ae.forwardRef(({disabled:t=!1,value:e,children:n,...r},i)=>{const{value:s,setValue:o}=ae.useContext(h8);return te.jsxs(Ht,{cursor:t?void 0:"pointer",onClick:t?void 0:()=>o==null?void 0:o(e),flexDirection:"row",alignItems:"center",gap:8,children:[te.jsx(Ht,{aspectRatio:1,height:16,width:16,borderRadius:1e3,borderWidth:1,borderOpacity:t?.5:void 0,borderColor:Nt.primary,alignItems:"center",justifyContent:"center",ref:i,...r,children:te.jsx(Ht,{borderRadius:1e3,aspectRatio:1,backgroundColor:Nt.primary,backgroundOpacity:e===s?1:0,height:9,width:9})}),n]})});function Hne(){return te.jsxs(Gne,{defaultValue:"comfortable",children:[te.jsx(rD,{value:"default",children:te.jsx($a,{children:te.jsx(pn,{children:"Default"})})}),te.jsx(rD,{value:"comfortable",children:te.jsx($a,{children:te.jsx(pn,{children:"Comfortable"})})}),te.jsx(rD,{value:"compact",children:te.jsx($a,{children:te.jsx(pn,{children:"Compact"})})})]})}function zne(){return te.jsxs(Ht,{width:300,flexDirection:"column",children:[te.jsxs(Ht,{flexDirection:"column",gap:4,children:[te.jsx(pn,{fontSize:14,lineHeight:"100%",children:"Radix Primitives"}),te.jsx(pn,{fontSize:14,lineHeight:20,color:Nt.mutedForeground,children:"An open-source UI component library."})]}),te.jsx(oE,{marginY:16}),te.jsx(Ht,{flexDirection:"row",height:20,alignItems:"center",gap:16,children:te.jsxs(Lr,{fontSize:14,lineHeight:20,children:[te.jsx(pn,{children:"Blog"}),te.jsx(oE,{orientation:"vertical"}),te.jsx(pn,{children:"Docs"}),te.jsx(oE,{orientation:"vertical"}),te.jsx(pn,{children:"Source"})]})})]})}const iD=ae.forwardRef((t,e)=>{const n=ae.useMemo(()=>Yt(1),[]),r=ae.useRef(0);return _A((i,s)=>{n.value=Math.cos(r.current*Math.PI)*.25+.75,r.current+=s}),te.jsx(Ht,{borderRadius:_s.md,backgroundColor:Nt.muted,backgroundOpacity:n,ref:e,...t})});function Wne(){return te.jsxs(Ht,{flexDirection:"row",alignItems:"center",gap:16,children:[te.jsx(iD,{borderRadius:1e3,height:48,width:48}),te.jsxs(Ht,{flexDirection:"column",gap:8,children:[te.jsx(iD,{height:16,width:250}),te.jsx(iD,{height:16,width:200})]})]})}const sD=new ue,p8=ae.forwardRef(({disabled:t=!1,value:e,defaultValue:n,onValueChange:r,min:i=0,max:s=100,step:o=1,...a},l)=>{const[c,p]=ae.useState(n),d=e??c??50,A=ae.useMemo(()=>bn(()=>{const I=Wg(s)-Wg(i);return`${100*Wg(d)/I}%`}),[i,s,d]),y=ae.useRef(null),C=ae.useRef(r);C.current=r;const x=e!=null,D=ae.useMemo(()=>{let I=!1;function w(B){var N;if(y.current==null)return;sD.copy(B.point),y.current.interactionPanel.worldToLocal(sD);const _=Wg(i),F=Wg(s),P=Math.min(Math.max(Math.round(((sD.x+.5)*(F-_)+_)/o)*o,_),F);x||p(P),(N=C.current)==null||N.call(C,P),B.stopPropagation()}return{onPointerDown(B){I=!0,w(B),B.target.setPointerCapture(B.pointerId)},onPointerMove(B){I&&w(B)},onPointerUp(B){I&&(I=!1,B.stopPropagation())}}},[s,i,x,o]);return ae.useImperativeHandle(l,()=>y.current),te.jsxs(Ht,{...t?{}:D,positionType:"relative",flexDirection:"column",height:8,width:"100%",alignItems:"center",ref:y,...a,children:[te.jsx(Ht,{height:8,positionType:"absolute",positionLeft:0,positionRight:0,flexGrow:1,borderRadius:1e3,backgroundColor:Nt.secondary,children:te.jsx(Ht,{height:"100%",width:A,borderRadius:1e3,backgroundColor:Nt.primary})}),te.jsx(Ht,{zIndexOffset:{minor:100},positionType:"absolute",positionLeft:A,transformTranslateX:-10,transformTranslateY:-6,cursor:"pointer",borderOpacity:t?.5:void 0,backgroundOpacity:t?.5:void 0,height:20,width:20,borderWidth:2,borderRadius:1e3,borderColor:Nt.primary,backgroundColor:Nt.background})]})});function Wg(t){return t instanceof wi?t.value:t}function jne(){return te.jsx(p8,{defaultValue:50,max:100,step:1,width:300})}function Vne(){return te.jsxs(Ht,{flexDirection:"row",alignItems:"center",gap:8,children:[te.jsx(c8,{}),te.jsx($a,{children:te.jsx(pn,{children:"Airplane Mode"})})]})}function Jne(){return te.jsxs(KN,{defaultValue:"account",width:400,children:[te.jsxs(ZN,{width:"100%",children:[te.jsx(g2,{flexGrow:1,value:"account",children:te.jsx(pn,{children:"Account"})}),te.jsx(g2,{flexGrow:1,value:"password",children:te.jsx(pn,{children:"Password"})})]}),te.jsx(m2,{value:"account",children:te.jsxs(GE,{children:[te.jsxs(h2,{children:[te.jsx(p2,{children:te.jsx(pn,{children:"Account"})}),te.jsx(d2,{children:te.jsx(pn,{children:"Make changes to your account here. Click save when you're done."})})]}),te.jsxs(f2,{flexDirection:"column",gap:8,children:[te.jsxs(Ht,{flexDirection:"column",gap:4,children:[te.jsx($a,{children:te.jsx(pn,{children:"Name"})}),te.jsx(pn,{children:"Pedro Duarte"})]}),te.jsxs(Ht,{flexDirection:"column",gap:4,children:[te.jsx($a,{children:te.jsx(pn,{children:"Username"})}),te.jsx(pn,{children:"@peduarte"})]})]}),te.jsx(A2,{children:te.jsx(Ta,{children:te.jsx(pn,{children:"Save changes"})})})]})}),te.jsx(m2,{value:"password",children:te.jsxs(GE,{children:[te.jsxs(h2,{children:[te.jsx(p2,{children:te.jsx(pn,{children:"Password"})}),te.jsx(d2,{children:te.jsx(pn,{children:"Change your password here. After saving, you'll be logged out."})})]}),te.jsxs(f2,{flexDirection:"column",gap:8,children:[te.jsxs(Ht,{flexDirection:"column",gap:4,children:[te.jsx($a,{children:te.jsx(pn,{children:"Current password"})}),te.jsx(pn,{children:"password"})]}),te.jsxs(Ht,{flexDirection:"column",gap:4,children:[te.jsx($a,{children:te.jsx(pn,{children:"New password"})}),te.jsx(pn,{children:"password"})]})]}),te.jsx(A2,{children:te.jsx(Ta,{children:te.jsx(pn,{children:"Save password"})})})]})})]})}const Yne={default:{},outline:{containerProps:{borderWidth:1,borderColor:Nt.input},containerHoverProps:{backgroundColor:Nt.accent}}},Xne={default:{height:40,paddingX:12},sm:{height:36,paddingX:10},lg:{height:44,paddingX:20}},qne=ae.forwardRef(({children:t,size:e="default",variant:n="default",defaultChecked:r,checked:i,disabled:s=!1,onCheckedChange:o,hover:a,...l},c)=>{const[p,d]=ae.useState(r??!1),A=i??p,{containerHoverProps:y,containerProps:C}=Yne[n];return te.jsx(Ht,{onClick:s?void 0:()=>{i==null&&d(!A),o==null||o(!A)},alignItems:"center",justifyContent:"center",borderRadius:_s.md,cursor:s?void 0:"pointer",backgroundOpacity:s?.5:void 0,borderOpacity:s?.5:void 0,backgroundColor:A?Nt.accent:void 0,hover:s?a:{backgroundColor:Nt.muted,...y,...a},ref:c,...C,...Xne[e],...l,children:te.jsx(Lr,{color:A?Nt.accentForeground:void 0,opacity:s?.5:void 0,fontSize:14,lineHeight:20,fontWeight:"medium",children:t})})});function Kne(){return te.jsx(qne,{children:te.jsx(YN,{height:16,width:16})})}const Zne={default:{},outline:{containerProps:{borderWidth:1,borderColor:Nt.input},containerHoverProps:{backgroundColor:Nt.accent}}},$ne={default:{height:40,paddingX:12},sm:{height:36,paddingX:10},lg:{height:44,paddingX:20}},d8=ae.createContext({size:"default",variant:"default"}),ere=ae.forwardRef(({children:t,size:e="default",variant:n="default",...r},i)=>te.jsx(Ht,{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:4,ref:i,...r,children:te.jsx(d8.Provider,{value:{variant:n,size:e},children:t})})),oD=ae.forwardRef(({children:t,defaultChecked:e,checked:n,disabled:r=!1,onCheckedChange:i,hover:s,...o},a)=>{const{size:l,variant:c}=ae.useContext(d8),[p,d]=ae.useState(e??!1),A=n??p,{containerHoverProps:y,containerProps:C}=Zne[c];return te.jsx(Ht,{onClick:r?void 0:()=>{n==null&&d(!A),i==null||i(!A)},alignItems:"center",justifyContent:"center",borderRadius:_s.md,cursor:r?void 0:"pointer",backgroundOpacity:r?.5:void 0,borderOpacity:r?.5:void 0,backgroundColor:A?Nt.accent:void 0,hover:r?s:{backgroundColor:Nt.muted,...y,...s},ref:a,...C,...$ne[l],...o,children:te.jsx(Lr,{color:A?Nt.accentForeground:void 0,opacity:r?.5:void 0,fontSize:14,lineHeight:20,children:t})})});function tre(){return te.jsxs(ere,{children:[te.jsx(oD,{"aria-label":"Toggle bold",children:te.jsx(YN,{height:16,width:16})}),te.jsx(oD,{"aria-label":"Toggle italic",children:te.jsx(Oee,{height:16,width:16})}),te.jsx(oD,{"aria-label":"Toggle underline",children:te.jsx(ute,{width:16,height:16})})]})}const nre=ae.forwardRef(({panelMaterialClass:t,value:e,defaultValue:n,onValueChange:r,tabIndex:i,disabled:s,placeholder:o,type:a,...l},c)=>{const[p,d]=ae.useState(null),A=ae.useMemo(()=>{if(p!=null)return bn(()=>p.current.value.length>0?0:void 0)},[p]);return te.jsx(Ht,{height:40,positionType:"relative",overflow:"hidden",ref:c,...l,children:te.jsxs(Lr,{fontSize:14,height:"100%",width:"100%",borderWidth:1,paddingX:12,paddingY:8,lineHeight:20,opacity:s?.5:void 0,backgroundOpacity:s?.5:void 0,children:[te.jsx(X4,{ref:d,borderRadius:_s.md,backgroundColor:Nt.background,borderColor:Nt.input,focus:{borderColor:Nt.ring},panelMaterialClass:t,multiline:!1,value:e,defaultValue:n,onValueChange:r,tabIndex:i,disabled:s,type:a}),o!=null&&te.jsx(pn,{color:Nt.mutedForeground,opacity:A,borderOpacity:0,inset:0,positionType:"absolute",children:o})]})})});function rre(){return te.jsx(nre,{width:200,placeholder:"Email"})}const ire=ae.forwardRef(({panelMaterialClass:t,value:e,defaultValue:n,onValueChange:r,tabIndex:i,disabled:s,placeholder:o,type:a,...l},c)=>{const[p,d]=ae.useState(null),A=ae.useMemo(()=>{if(p!=null)return bn(()=>p.current.value.length>0?0:void 0)},[p]);return te.jsx(Ht,{minHeight:80,positionType:"relative",overflow:"hidden",ref:c,...l,children:te.jsxs(Lr,{fontSize:14,height:"100%",width:"100%",borderWidth:1,paddingX:12,paddingY:8,lineHeight:20,opacity:s?.5:void 0,backgroundOpacity:s?.5:void 0,children:[te.jsx(X4,{ref:d,borderRadius:_s.md,backgroundColor:Nt.background,borderColor:Nt.input,focus:{borderColor:Nt.ring},panelMaterialClass:t,multiline:!0,value:e,defaultValue:n,onValueChange:r,tabIndex:i,disabled:s,type:a}),o!=null&&te.jsx(pn,{color:Nt.mutedForeground,opacity:A,borderOpacity:0,inset:0,positionType:"absolute",children:o})]})})});function sre(){return te.jsx(ire,{width:200,placeholder:"Email"})}const f8=ae.createContext(void 0),ore=ae.forwardRef(({controls:t,children:e,...n},r)=>{const i=ae.useMemo(()=>Yt(!1),[]),s=ae.useMemo(()=>{let o;const a=()=>{i.value=!0,o!=null&&clearTimeout(o),o=setTimeout(()=>i.value=!1,2e3)};return{onPointerMove:a,onPointerDown:a}},[i]);return te.jsxs(oK,{...n,...s,positionType:"relative",ref:r,children:[te.jsx(f8.Provider,{value:i,children:t&&te.jsx(are,{})}),e]})}),are=ae.forwardRef((t,e)=>{const n=sK(),[r,i]=ae.useState(n.paused);ae.useEffect(()=>{const y=()=>i(n.paused);return n.addEventListener("pause",y),n.addEventListener("play",y),()=>{n.removeEventListener("pause",y),n.removeEventListener("play",y)}},[n]);const[s,o]=ae.useState(n.muted);ae.useEffect(()=>{const y=()=>o(n.muted);return n.addEventListener("volumechange",y),()=>n.removeEventListener("volumechange",y)},[n]);const a=ae.useMemo(()=>Yt(1),[]),l=ae.useMemo(()=>Yt(0),[]),c=ae.useContext(f8);if(c==null)throw new Error("VideoControls form the default kit can only be used inside a Video from the default kit");const p=ae.useMemo(()=>bn(()=>c.value?"flex":"none"),[c]);ae.useEffect(()=>{const y=()=>a.value=n.duration,C=()=>l.value=n.currentTime;return isNaN(n.duration)||y(),n.addEventListener("loadedmetadata",y),n.addEventListener("timeupdate",C),()=>{n.removeEventListener("loadedmetadata",y),n.removeEventListener("timeupdate",C)}},[a,l,n]);const d=ae.useMemo(()=>bn(()=>`${I3(l.value)} / ${I3(a.value)}`),[a,l]),A=ae.useCallback(y=>n.currentTime=y,[n]);return te.jsxs(Ht,{display:p,positionType:"absolute",padding:8,positionBottom:0,positionLeft:0,positionRight:0,flexDirection:"column",backgroundOpacity:.5,backgroundColor:Nt.background,gap:8,...t,ref:e,children:[te.jsxs(Ht,{flexDirection:"row",alignItems:"center",children:[te.jsx(Ta,{size:"icon",variant:"ghost",marginRight:8,onClick:()=>r?n.play():n.pause(),children:r?te.jsx(Kee,{cursor:"pointer",width:16,height:16}):te.jsx(Yee,{cursor:"pointer",width:16,height:16})}),te.jsx(Ta,{size:"icon",variant:"ghost",marginRight:8,onClick:()=>n.muted=!s,children:s?te.jsx(Ate,{cursor:"pointer",width:16,height:16}):te.jsx(pte,{cursor:"pointer",width:16,height:16})}),te.jsx(Ht,{flexGrow:1}),te.jsx(pn,{marginRight:16,fontSize:12,children:d})]}),te.jsx(p8,{min:0,margin:16,marginTop:8,width:void 0,max:a,value:l,onValueChange:A})]})});function I3(t){const e=Math.floor(t/3600),n=Math.floor(t/60%60),r=Math.floor(t%60);return`${e>0?`${e}:`:""}${e>0?n.toString().padStart(2,"0"):n}:${r.toString().padStart(2,"0")}`}function lre(){return te.jsx(ore,{src:"example.mp4",controls:!0,width:500})}const aD={accordion:ine,alert:cne,"alert-dialog":Cne,avatar:xne,badge:Sne,button:wne,card:Bne,checkbox:Tne,dialog:Mne,pagination:Nne,progress:Une,"radio-group":Hne,separator:zne,skeleton:Wne,slider:jne,switch:Vne,tabs:Jne,toggle:Kne,"toggle-group":tre,tooltip:nne,input:rre,textarea:sre,video:lre},ure="card";function cre(){const[t,e]=ae.useState(()=>{let o=new URLSearchParams(window.location.search).get("component");return(o==null||!(o in aD))&&(o=ure),o}),n=s=>{const o=new URLSearchParams(window.location.search);o.set("component",s),history.replaceState(null,"","?"+o.toString()),e(s)},[r,i]=ae.useState(()=>mF());return te.jsxs(XV,{events:Zte,style:{height:"100dvh",touchAction:"none"},gl:{localClippingEnabled:!0},children:[te.jsx(Jte,{}),te.jsx("color",{attach:"background",args:["black"]}),te.jsx("ambientLight",{intensity:.5}),te.jsx("directionalLight",{intensity:0,position:[5,1,10]}),te.jsx(Cte,{children:te.jsx(Bq,{flexDirection:"column",scrollbarColor:"black",backgroundColor:Nt.background,alignItems:"center",padding:32,children:te.jsxs(Ite,{children:[te.jsxs(KN,{alignSelf:"stretch",flexGrow:1,value:t,onValueChange:n,children:[te.jsx(ZN,{height:55,paddingBottom:10,overflow:"scroll",maxWidth:"100%",children:Object.keys(aD).map(s=>te.jsx(g2,{flexShrink:0,value:s,children:te.jsxs(pn,{children:[s[0].toUpperCase(),s.slice(1)]})},s))}),Object.entries(aD).map(([s,o])=>te.jsx(m2,{flexDirection:"column",flexGrow:1,alignItems:"center",justifyContent:"center",value:s,children:te.jsx(o,{})},s))]}),te.jsxs(GE,{padding:8,flexDirection:"row",gap:8,alignItems:"center",children:[te.jsx(Ta,{size:"icon",variant:"ghost",onClick:()=>{fY(r==="light"?"dark":r==="dark"?"system":"light"),i(mF())},children:r==="dark"?te.jsx(Hee,{}):r==="system"?te.jsx(ete,{}):te.jsx(rte,{})}),te.jsx(oE,{orientation:"vertical"}),te.jsxs(pn,{padding:8,children:["npx uikit component add default ",t]}),te.jsx(Ta,{onClick:()=>navigator.clipboard.writeText(`npx uikit component add apfel ${t}`),size:"icon",variant:"secondary",children:te.jsx(Ree,{})})]})]})})})]})}NQ(document.getElementById("root")).render(te.jsx(ae.StrictMode,{children:te.jsx(cre,{})})); diff --git a/examples/default/index.html b/examples/default/index.html index 88768501..1231b1c5 100644 --- a/examples/default/index.html +++ b/examples/default/index.html @@ -5,7 +5,7 @@ Document - +
diff --git a/examples/lucide/assets/index-9scRqICi.js b/examples/lucide/assets/index-4d89tKzF.js similarity index 99% rename from examples/lucide/assets/index-9scRqICi.js rename to examples/lucide/assets/index-4d89tKzF.js index 21c7030b..3654f6ce 100644 --- a/examples/lucide/assets/index-9scRqICi.js +++ b/examples/lucide/assets/index-4d89tKzF.js @@ -4058,7 +4058,7 @@ No matching component was found for: `||h==null)&&(o.charLength=s-C+1,o.nonWhitespaceCharLength=o.charLength,o.nonWhitespaceWidth=l,o.whitespacesBetween=u)}};function ov(t,e){const n=t.length;for(;t[e]===" "&&e{for(const o of i)o(s);nf.set(t,s)}).catch(console.error)}async function ul1(t,e){const n=await(await fetch(t)).json();if(n.pages.length!==1)throw new Error("only supporting exactly 1 page");const r=await ll1.loadAsync(new URL(n.pages[0],new URL(t,window.location.href)).href);return r.anisotropy=e.capabilities.getMaxAnisotropy(),r.flipY=!1,new fl1(n,r)}const sA={thin:100,"extra-light":200,light:300,normal:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800,black:900,"extra-black":950},dl1={inter:{light:"https://pmndrs.github.io/uikit/fonts/inter-light.json",normal:"https://pmndrs.github.io/uikit/fonts/inter-normal.json",medium:"https://pmndrs.github.io/uikit/fonts/inter-medium.json","semi-bold":"https://pmndrs.github.io/uikit/fonts/inter-semi-bold.json",bold:"https://pmndrs.github.io/uikit/fonts/inter-bold.json"}};function K21(t,e,n,r){const i=o2(void 0),s=Z2(t,"fontFamily",void 0),o=Z2(t,"fontWeight","normal");return r.push(()=>n2(()=>{const C=(e==null?void 0:e.value)??dl1;let l=s.value;l==null&&(l=Object.keys(C)[0]);const u=hl1(C[l],typeof o.value=="string"?sA[o.value]:o.value);let d=!1;return cl1(u,n,h=>d?void 0:i.value=h),()=>d=!0})),i}function hl1(t,e){let n=1/0,r;for(const i in t){const s=Math.abs(e-pl1(i));if(s===0)return t[i];s{const u=e.value;if(u==null)return;const d=n.value,h={font:u,fontSize:s.value,letterSpacing:o.value,lineHeight:C.value,text:Array.isArray(d)?d.map(y=>x8(y)).join(""):x8(d),wordBreak:l.value};r.current=h;const{width:g}=rf(h,0),{height:v}=rf(h,void 0);return{minHeight:v,minWidth:g,measure:(y,k)=>rf(h,k===Tc.Undefined?void 0:y)}})}const Z21={"keep-all":Cl1,"break-all":ol1,"break-word":al1},Cc={};function rf(t,e){const n=Z21[t.wordBreak],r=t.text;let i=0,s=0,o=0;for(;o({font:t.value}))}class wl1{constructor(e,n,r,i,s){C0(this,"group");C0(this,"baseMatrix");C0(this,"color");C0(this,"opacity");C0(this,"clippingRect");C0(this,"index");C0(this,"hidden",!0);C0(this,"glyphInfo");C0(this,"x",0);C0(this,"y",0);C0(this,"fontSize",0);C0(this,"pixelSize",0);this.group=e,this.baseMatrix=n,this.color=r,this.opacity=i,this.clippingRect=s}getX(e){return this.glyphInfo==null?this.x:this.x+e*this.glyphInfo.width*this.fontSize}show(){this.hidden&&(this.hidden=!1,this.group.requestActivate(this))}hide(){this.hidden||(this.hidden=!0,this.group.delete(this))}activate(e){this.index=e,this.writeUpdatedMatrix(),this.writeUV(),this.updateColor(this.color),this.updateOpacity(this.opacity),this.updateClippingRect(this.clippingRect)}setIndex(e){this.index=e}updateClippingRect(e){if(this.clippingRect=e,this.index==null)return;const n=this.index*16,{instanceClipping:r,root:i}=this.group;this.clippingRect==null?r.set(Au,n):this.clippingRect.toArray(r.array,n),r.addUpdateRange(n,16),r.needsUpdate=!0,i.requestRender()}updateColor(e){if(this.color=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=n.itemSize*this.index;QC(n.array,i,e,void 0),n.addUpdateRange(i,3),n.needsUpdate=!0,r.requestRender()}updateOpacity(e){if(this.opacity=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=this.index*4+3;n.array[i]=e,n.addUpdateRange(i,1),n.needsUpdate=!0,r.requestRender()}updateGlyphAndTransformation(e,n,r,i,s){this.glyphInfo===e&&this.x===n&&this.y===r&&this.fontSize===i&&this.pixelSize===s||(this.glyphInfo!=e&&(this.glyphInfo=e,this.writeUV()),this.x=n,this.y=r,this.fontSize=i,this.pixelSize=s,this.writeUpdatedMatrix())}updateBaseMatrix(e){this.baseMatrix!==e&&(this.baseMatrix=e,this.writeUpdatedMatrix())}writeUV(){if(this.index==null||this.glyphInfo==null)return;const e=this.index*4,{instanceUV:n,root:r}=this.group;gl1(this.glyphInfo,n.array,e),n.addUpdateRange(e,4),n.needsUpdate=!0,r.requestRender()}writeUpdatedMatrix(){if(this.index==null||this.glyphInfo==null||this.baseMatrix==null)return;const e=this.index*16,{instanceMatrix:n,root:r}=this.group;n.addUpdateRange(e,16),PX.makeTranslation(this.x*this.pixelSize,this.y*this.pixelSize,0).multiply(vl1.makeScale(this.fontSize*this.glyphInfo.width*this.pixelSize,this.fontSize*this.glyphInfo.height*this.pixelSize,1)).premultiply(this.baseMatrix),PX.toArray(n.array,e),n.needsUpdate=!0,r.requestRender()}}const Ll1="middle",yl1="left";function t91(t,e,n,r,i,s,o,C,l,u,d,h,g,v,y,k){let B={current:void 0};const I=Al1(t,l,e,B,k),D=Z2(t,"verticalAlign",Ll1),T=Z2(t,"textAlign",yl1),_=Z2(t,"color",0),P=Z2(t,"opacity",1),Q=o2(void 0);return y.push(()=>n2(()=>{var U;return(U=r.value)==null?void 0:U.addLayoutChangeListener(()=>{const G=B.current,{size:{value:Z},paddingInset:{value:H},borderInset:{value:$}}=i;if(G==null||Z==null||H==null||$==null)return;const[u1,I1]=Z,[s1,T1,k1,U1]=H,[o1,A1,y1,g1]=$,H1=u1-T1-U1-A1-g1,M1=I1-s1-k1-o1-y1;Q.value=ml1(G,H1,M1)})}),()=>n2(()=>{const U=l.value;if(U==null||C.value==null)return;const G=new Il1(u.getGroup(C.value.majorIndex,U),T,D,_,P,Q,n,s,o,d,h,g);return v!=null&&(v.current=G),()=>G.destroy()})),I}const xl1=[];class Il1{constructor(e,n,r,i,s,o,C,l,u,d,h,g){C0(this,"group");C0(this,"textAlign");C0(this,"verticalAlign");C0(this,"color");C0(this,"opacity");C0(this,"layoutSignal");C0(this,"matrix");C0(this,"parentClippingRect");C0(this,"selectionRange");C0(this,"selectionBoxes");C0(this,"caretPosition");C0(this,"glyphLines",[]);C0(this,"lastLayout");C0(this,"unsubscribeInitialList",[]);C0(this,"unsubscribeShowList",[]);this.group=e,this.textAlign=n,this.verticalAlign=r,this.color=i,this.opacity=s,this.layoutSignal=o,this.matrix=C,this.parentClippingRect=u,this.selectionRange=d,this.selectionBoxes=h,this.caretPosition=g,this.unsubscribeInitialList=[n2(()=>{if(!l.value||s.value<.01){this.hide();return}this.show()}),n2(()=>this.updateSelectionBoxes(this.lastLayout,d==null?void 0:d.value,r.peek(),n.peek()))]}getCharIndex(e,n){const r=this.lastLayout;if(r==null)return 0;n-=-ac(r,this.verticalAlign.peek());const i=Math.floor(n/-oc(r.lineHeight,r.fontSize)),s=r.lines;if(i<0||s.length===0)return 0;if(i>=s.length){const d=s[s.length-1];return d.charIndexOffset+d.charLength+1}const o=s[i],C=r.font.getGlyphInfo(" ").xadvance*r.fontSize,l=this.glyphLines[i];let u=l.length;for(let d=0;d=h.charIndexOffset+h.charLength)continue;const g=this.glyphLines[d][Math.max(r-h.charIndexOffset,0)];return{lineIndex:d,x:this.getGlyphX(g,i?0:1,s)}}const l=e[C-1];if(l.charLength===0)return{lineIndex:C-1,x:QX(n,l.nonWhitespaceWidth,o)-n/2};const u=this.glyphLines[C-1][l.charLength-1];return{lineIndex:C-1,x:this.getGlyphX(u,1,s)}}getGlyphX(e,n,r){return typeof e=="number"?e+n*r:e.getX(n)}show(){this.unsubscribeShowList.length>0||(Z7(this.glyphLines,e=>e.show()),this.unsubscribeShowList.push(n2(()=>{const e=this.matrix.value;e!=null&&Z7(this.glyphLines,n=>n.updateBaseMatrix(e))}),n2(()=>{var n;const e=(n=this.parentClippingRect)==null?void 0:n.value;Z7(this.glyphLines,r=>r.updateClippingRect(e))}),n2(()=>{const e=this.color.value;Z7(this.glyphLines,n=>n.updateColor(e))}),n2(()=>{const e=this.opacity.value;Z7(this.glyphLines,n=>n.updateOpacity(e))}),n2(()=>{var g,v;const e=this.layoutSignal.value;if(e==null)return;const{text:n,font:r,lines:i,letterSpacing:s=0,fontSize:o=16,lineHeight:C=1.2,availableWidth:l}=e;let u=ac(e,this.verticalAlign.value)-e.availableHeight/2;const d=i.length,h=this.group.pixelSize.value;for(let y=0;yD+I){Q=I1.id;const k1=P+FX(r,o,I1,Q);typeof U[$]=="number"?U[$]=P:U.splice($,0,k1),P+=_+NC(o,I1,s);continue}let s1=U[$];for(;$y.hide(),d),this.glyphLines.length=d,this.lastLayout=e,this.updateSelectionBoxes(e,(v=this.selectionRange)==null?void 0:v.peek(),this.verticalAlign.value,this.textAlign.value)})))}hide(){const e=this.unsubscribeShowList.length;if(e!==0){for(let n=0;nn.hide())}}destroy(){this.hide(),this.glyphLines.length=0;const e=this.unsubscribeInitialList.length;for(let n=0;nS5(d,D,I,t.root.panelGroupManager,y,g.size,void 0,g.borderInset,t.clippingRect,B,qn(),Q));const T=K21(d,n,t.root.renderer,u),_=I8(void 0,We.Text,e91(T),D),P=t91(d,e,y,h,g,B,t.clippingRect,_,T,t.root.gylphGroupManager,void 0,void 0,void 0,void 0,u,"break-word");return u.push(()=>n2(()=>{var Q;return(Q=h.value)==null?void 0:Q.setCustomLayouting(P.value)})),m3(r,i,g.size,u),o7(r,i,k,u),Object.assign(g,{isClipped:k,mergedProperties:d,interactionPanel:Jn(D,t.root,t.clippingRect,g.size,u),handlers:I3(r,i,s,C,l),initializers:u})}const El1=Z9;class gs extends g4{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,n,r,i){const s=this,o=new E5(s.manager);o.setPath(s.path),o.setRequestHeader(s.requestHeader),o.setWithCredentials(s.withCredentials),o.load(e,function(C){try{n(s.parse(C))}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},r,i)}parse(e){const n=this;function r(e1,a1){if(e1.nodeType!==1)return;const K=_(e1);let t1=!1,N1=null;switch(e1.nodeName){case"svg":a1=y(e1,a1);break;case"style":s(e1);break;case"g":a1=y(e1,a1);break;case"path":a1=y(e1,a1),e1.hasAttribute("d")&&(N1=i(e1));break;case"rect":a1=y(e1,a1),N1=l(e1);break;case"polygon":a1=y(e1,a1),N1=u(e1);break;case"polyline":a1=y(e1,a1),N1=d(e1);break;case"circle":a1=y(e1,a1),N1=h(e1);break;case"ellipse":a1=y(e1,a1),N1=g(e1);break;case"line":a1=y(e1,a1),N1=v(e1);break;case"defs":t1=!0;break;case"use":a1=y(e1,a1);const V1=(e1.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),l1=e1.viewportElement.getElementById(V1);l1?r(l1,a1):console.warn("SVGLoader: 'use node' references non-existent node id: "+V1);break}N1&&(a1.fill!==void 0&&a1.fill!=="none"&&N1.color.setStyle(a1.fill,El1),Q(N1,g1),u1.push(N1),N1.userData={node:e1,style:a1});const G1=e1.childNodes;for(let R1=0;R10?g1.copy(s1[s1.length-1]):g1.identity())}function i(e1){const a1=new Lt,K=new o0,t1=new o0,N1=new o0;let G1=!0,R1=!1;const V1=e1.getAttribute("d");if(V1===""||V1==="none")return null;const l1=V1.match(/[a-df-z][^a-df-z]*/ig);for(let O1=0,B1=l1.length;O10&&(K.copy(N1),a1.currentPath.currentPoint.copy(K),G1=!0);break;default:console.warn($1)}R1=!1}return a1}function s(e1){if(!(!e1.sheet||!e1.sheet.cssRules||!e1.sheet.cssRules.length))for(let a1=0;a1N1.trim());for(let N1=0;N1R1!==""));I1[t1[N1]]=Object.assign(I1[t1[N1]]||{},G1)}}}function o(e1,a1,K,t1,N1,G1,R1,V1){if(a1==0||K==0){e1.lineTo(V1.x,V1.y);return}t1=t1*Math.PI/180,a1=Math.abs(a1),K=Math.abs(K);const l1=(R1.x-V1.x)/2,O1=(R1.y-V1.y)/2,B1=Math.cos(t1)*l1+Math.sin(t1)*O1,$1=-Math.sin(t1)*l1+Math.cos(t1)*O1;let W1=a1*a1,l0=K*K;const E1=B1*B1,q=$1*$1,n1=E1/W1+q/l0;if(n1>1){const m0=Math.sqrt(n1);a1=m0*a1,K=m0*K,W1=a1*a1,l0=K*K}const j1=W1*q+l0*E1,f0=(W1*l0-j1)/j1;let h0=Math.sqrt(Math.max(0,f0));N1===G1&&(h0=-h0);const c0=h0*a1*$1/K,j0=-h0*K*B1/a1,T0=Math.cos(t1)*c0-Math.sin(t1)*j0+(R1.x+V1.x)/2,O0=Math.sin(t1)*c0+Math.cos(t1)*j0+(R1.y+V1.y)/2,R0=C(1,0,(B1-c0)/a1,($1-j0)/K),F0=C((B1-c0)/a1,($1-j0)/K,(-B1-c0)/a1,(-$1-j0)/K)%(Math.PI*2);e1.currentPath.absellipse(T0,O0,a1,K,R0,R0+F0,G1===0,t1)}function C(e1,a1,K,t1){const N1=e1*K+a1*t1,G1=Math.sqrt(e1*e1+a1*a1)*Math.sqrt(K*K+t1*t1);let R1=Math.acos(Math.max(-1,Math.min(1,N1/G1)));return e1*t1-a1*K<0&&(R1=-R1),R1}function l(e1){const a1=T(e1.getAttribute("x")||0),K=T(e1.getAttribute("y")||0),t1=T(e1.getAttribute("rx")||e1.getAttribute("ry")||0),N1=T(e1.getAttribute("ry")||e1.getAttribute("rx")||0),G1=T(e1.getAttribute("width")),R1=T(e1.getAttribute("height")),V1=1-.551915024494,l1=new Lt;return l1.moveTo(a1+t1,K),l1.lineTo(a1+G1-t1,K),(t1!==0||N1!==0)&&l1.bezierCurveTo(a1+G1-t1*V1,K,a1+G1,K+N1*V1,a1+G1,K+N1),l1.lineTo(a1+G1,K+R1-N1),(t1!==0||N1!==0)&&l1.bezierCurveTo(a1+G1,K+R1-N1*V1,a1+G1-t1*V1,K+R1,a1+G1-t1,K+R1),l1.lineTo(a1+t1,K+R1),(t1!==0||N1!==0)&&l1.bezierCurveTo(a1+t1*V1,K+R1,a1,K+R1-N1*V1,a1,K+R1-N1),l1.lineTo(a1,K+N1),(t1!==0||N1!==0)&&l1.bezierCurveTo(a1,K+N1*V1,a1+t1*V1,K,a1+t1,K),l1}function u(e1){function a1(G1,R1,V1){const l1=T(R1),O1=T(V1);N1===0?t1.moveTo(l1,O1):t1.lineTo(l1,O1),N1++}const K=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,t1=new Lt;let N1=0;return e1.getAttribute("points").replace(K,a1),t1.currentPath.autoClose=!0,t1}function d(e1){function a1(G1,R1,V1){const l1=T(R1),O1=T(V1);N1===0?t1.moveTo(l1,O1):t1.lineTo(l1,O1),N1++}const K=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,t1=new Lt;let N1=0;return e1.getAttribute("points").replace(K,a1),t1.currentPath.autoClose=!1,t1}function h(e1){const a1=T(e1.getAttribute("cx")||0),K=T(e1.getAttribute("cy")||0),t1=T(e1.getAttribute("r")||0),N1=new Ht;N1.absarc(a1,K,t1,0,Math.PI*2);const G1=new Lt;return G1.subPaths.push(N1),G1}function g(e1){const a1=T(e1.getAttribute("cx")||0),K=T(e1.getAttribute("cy")||0),t1=T(e1.getAttribute("rx")||0),N1=T(e1.getAttribute("ry")||0),G1=new Ht;G1.absellipse(a1,K,t1,N1,0,Math.PI*2);const R1=new Lt;return R1.subPaths.push(G1),R1}function v(e1){const a1=T(e1.getAttribute("x1")||0),K=T(e1.getAttribute("y1")||0),t1=T(e1.getAttribute("x2")||0),N1=T(e1.getAttribute("y2")||0),G1=new Lt;return G1.moveTo(a1,K),G1.lineTo(t1,N1),G1.currentPath.autoClose=!1,G1}function y(e1,a1){a1=Object.assign({},a1);let K={};if(e1.hasAttribute("class")){const R1=e1.getAttribute("class").split(/\s/).filter(Boolean).map(V1=>V1.trim());for(let V1=0;V10&&a1.premultiply(s1[s1.length-1]),g1.copy(a1),s1.push(a1),a1}function P(e1){const a1=new b2,K=T1;if(e1.nodeName==="use"&&(e1.hasAttribute("x")||e1.hasAttribute("y"))){const t1=T(e1.getAttribute("x")),N1=T(e1.getAttribute("y"));a1.translate(t1,N1)}if(e1.hasAttribute("transform")){const t1=e1.getAttribute("transform").split(")");for(let N1=t1.length-1;N1>=0;N1--){const G1=t1[N1].trim();if(G1==="")continue;const R1=G1.indexOf("("),V1=G1.length;if(R1>0&&R1=1){const B1=O1[0];let $1=0;O1.length>=2&&($1=O1[1]),K.translate(B1,$1)}break;case"rotate":if(O1.length>=1){let B1=0,$1=0,W1=0;B1=O1[0]*Math.PI/180,O1.length>=3&&($1=O1[1],W1=O1[2]),k1.makeTranslation(-$1,-W1),U1.makeRotation(B1),o1.multiplyMatrices(U1,k1),k1.makeTranslation($1,W1),K.multiplyMatrices(k1,o1)}break;case"scale":if(O1.length>=1){const B1=O1[0];let $1=B1;O1.length>=2&&($1=O1[1]),K.scale(B1,$1)}break;case"skewX":O1.length===1&&K.set(1,Math.tan(O1[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":O1.length===1&&K.set(1,0,0,Math.tan(O1[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":O1.length===6&&K.set(O1[0],O1[2],O1[4],O1[1],O1[3],O1[5],0,0,1);break}}a1.premultiply(K)}}return a1}function Q(e1,a1){function K(R1){y1.set(R1.x,R1.y,1).applyMatrix3(a1),R1.set(y1.x,y1.y)}function t1(R1){const V1=R1.xRadius,l1=R1.yRadius,O1=Math.cos(R1.aRotation),B1=Math.sin(R1.aRotation),$1=new d1(V1*O1,V1*B1,0),W1=new d1(-l1*B1,l1*O1,0),l0=$1.applyMatrix3(a1),E1=W1.applyMatrix3(a1),q=T1.set(l0.x,E1.x,0,l0.y,E1.y,0,0,0,1),n1=k1.copy(q).invert(),h0=U1.copy(n1).transpose().multiply(n1).elements,c0=$(h0[0],h0[1],h0[4]),j0=Math.sqrt(c0.rt1),T0=Math.sqrt(c0.rt2);if(R1.xRadius=1/j0,R1.yRadius=1/T0,R1.aRotation=Math.atan2(c0.sn,c0.cs),!((R1.aEndAngle-R1.aStartAngle)%(2*Math.PI){const{x:a2,y:Z0}=new d1(Math.cos(y2),Math.sin(y2),0).applyMatrix3(m0);return Math.atan2(Z0,a2)};R1.aStartAngle=T2(R1.aStartAngle),R1.aEndAngle=T2(R1.aEndAngle),U(a1)&&(R1.aClockwise=!R1.aClockwise)}}function N1(R1){const V1=Z(a1),l1=H(a1);R1.xRadius*=V1,R1.yRadius*=l1;const O1=V1>Number.EPSILON?Math.atan2(a1.elements[1],a1.elements[0]):Math.atan2(-a1.elements[3],a1.elements[4]);R1.aRotation+=O1,U(a1)&&(R1.aStartAngle*=-1,R1.aEndAngle*=-1,R1.aClockwise=!R1.aClockwise)}const G1=e1.subPaths;for(let R1=0,V1=G1.length;R1Number.EPSILON}function Z(e1){const a1=e1.elements;return Math.sqrt(a1[0]*a1[0]+a1[1]*a1[1])}function H(e1){const a1=e1.elements;return Math.sqrt(a1[3]*a1[3]+a1[4]*a1[4])}function $(e1,a1,K){let t1,N1,G1,R1,V1;const l1=e1+K,O1=e1-K,B1=Math.sqrt(O1*O1+4*a1*a1);return l1>0?(t1=.5*(l1+B1),V1=1/t1,N1=e1*V1*K-a1*V1*a1):l1<0?N1=.5*(l1-B1):(t1=.5*B1,N1=-.5*B1),O1>0?G1=O1+B1:G1=O1-B1,Math.abs(G1)>2*Math.abs(a1)?(V1=-2*a1/G1,R1=1/Math.sqrt(1+V1*V1),G1=V1*R1):Math.abs(a1)===0?(G1=1,R1=0):(V1=-.5*G1/a1,G1=1/Math.sqrt(1+V1*V1),R1=V1*G1),O1>0&&(V1=G1,G1=-R1,R1=V1),{rt1:t1,rt2:N1,cs:G1,sn:R1}}const u1=[],I1={},s1=[],T1=new b2,k1=new b2,U1=new b2,o1=new b2,A1=new o0,y1=new d1,g1=new b2,H1=new DOMParser().parseFromString(e,"image/svg+xml");return r(H1.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:u1,xml:H1.documentElement}}static createShapes(e){const r={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:r.ORIGIN,t:0};function s(k,B,I,D){const T=k.x,_=B.x,P=I.x,Q=D.x,U=k.y,G=B.y,Z=I.y,H=D.y,$=(Q-P)*(U-Z)-(H-Z)*(T-P),u1=(_-T)*(U-Z)-(G-U)*(T-P),I1=(H-Z)*(_-T)-(Q-P)*(G-U),s1=$/I1,T1=u1/I1;if(I1===0&&$!==0||s1<=0||s1>=1||T1<0||T1>1)return null;if($===0&&I1===0){for(let k1=0;k1<2;k1++)if(o(k1===0?I:D,k,B),i.loc==r.ORIGIN){const U1=k1===0?I:D;return{x:U1.x,y:U1.y,t:i.t}}else if(i.loc==r.BETWEEN){const U1=+(T+i.t*(_-T)).toPrecision(10),o1=+(U+i.t*(G-U)).toPrecision(10);return{x:U1,y:o1,t:i.t}}return null}else{for(let o1=0;o1<2;o1++)if(o(o1===0?I:D,k,B),i.loc==r.ORIGIN){const A1=o1===0?I:D;return{x:A1.x,y:A1.y,t:i.t}}const k1=+(T+s1*(_-T)).toPrecision(10),U1=+(U+s1*(G-U)).toPrecision(10);return{x:k1,y:U1,t:s1}}}function o(k,B,I){const D=I.x-B.x,T=I.y-B.y,_=k.x-B.x,P=k.y-B.y,Q=D*P-_*T;if(k.x===B.x&&k.y===B.y){i.loc=r.ORIGIN,i.t=0;return}if(k.x===I.x&&k.y===I.y){i.loc=r.DESTINATION,i.t=1;return}if(Q<-Number.EPSILON){i.loc=r.LEFT;return}if(Q>Number.EPSILON){i.loc=r.RIGHT;return}if(D*_<0||T*P<0){i.loc=r.BEHIND;return}if(Math.sqrt(D*D+T*T)H.t<=Z.t+Number.EPSILON&&H.t>=Z.t-Number.EPSILON)===void 0&&(I.push(Z),D.push(new o0(Z.x,Z.y)))}}return D}function l(k,B,I){const D=new o0;B.getCenter(D);const T=[];return I.forEach(_=>{_.boundingBox.containsPoint(D)&&C(k,_.points).forEach(Q=>{T.push({identifier:_.identifier,isCW:_.isCW,point:Q})})}),T.sort((_,P)=>_.point.x-P.point.x),T}function u(k,B,I,D,T){(T==null||T==="")&&(T="nonzero");const _=new o0;k.boundingBox.getCenter(_);const P=[new o0(I,_.y),new o0(D,_.y)],Q=l(P,k.boundingBox,B);Q.sort((u1,I1)=>u1.point.x-I1.point.x);const U=[],G=[];Q.forEach(u1=>{u1.identifier===k.identifier?U.push(u1):G.push(u1)});const Z=U[0].point.x,H=[];let $=0;for(;$0&&H[H.length-1]===G[$].identifier?H.pop():H.push(G[$].identifier),$++;if(H.push(k.identifier),T==="evenodd"){const u1=H.length%2===0,I1=H[H.length-2];return{identifier:k.identifier,isHole:u1,for:I1}}else if(T==="nonzero"){let u1=!0,I1=null,s1=null;for(let T1=0;T1{const B=k.getPoints();let I=-999999999,D=999999999,T=-999999999,_=999999999;for(let P=0;PI&&(I=Q.y),Q.yT&&(T=Q.x),Q.x<_&&(_=Q.x)}return h<=T&&(h=T+1),d>=_&&(d=_-1),{curves:k.curves,points:B,isCW:V6.isClockWise(B),identifier:-1,boundingBox:new $01(new o0(_,D),new o0(T,I))}});g=g.filter(k=>k.points.length>1);for(let k=0;ku(k,g,d,h,e.userData?e.userData.style.fillRule:void 0)),y=[];return g.forEach(k=>{if(!v[k.identifier].isHole){const I=new Ut;I.curves=k.curves,v.filter(T=>T.isHole&&T.for===k.identifier).forEach(T=>{const _=g[T.identifier],P=new Ht;P.curves=_.curves,I.holes.push(P)}),y.push(I)}}),y}static getStrokeStyle(e,n,r,i,s){return e=e!==void 0?e:1,n=n!==void 0?n:"#000",r=r!==void 0?r:"miter",i=i!==void 0?i:"butt",s=s!==void 0?s:4,{strokeColor:n,strokeWidth:e,strokeLineJoin:r,strokeLineCap:i,strokeMiterLimit:s}}static pointsToStroke(e,n,r,i){const s=[],o=[],C=[];if(gs.pointsToStrokeWithBuffers(e,n,r,i,s,o,C)===0)return null;const l=new N2;return l.setAttribute("position",new u2(s,3)),l.setAttribute("normal",new u2(o,3)),l.setAttribute("uv",new u2(C,2)),l}static pointsToStrokeWithBuffers(e,n,r,i,s,o,C,l){const u=new o0,d=new o0,h=new o0,g=new o0,v=new o0,y=new o0,k=new o0,B=new o0,I=new o0,D=new o0,T=new o0,_=new o0,P=new o0,Q=new o0,U=new o0,G=new o0,Z=new o0;r=r!==void 0?r:12,i=i!==void 0?i:.001,l=l!==void 0?l:0,e=O1(e);const H=e.length;if(H<2)return 0;const $=e[0].equals(e[H-1]);let u1,I1=e[0],s1;const T1=n.strokeWidth/2,k1=1/(H-1);let U1=0,o1,A1,y1,g1,H1=!1,M1=0,e1=l*3,a1=l*2;K(e[0],e[1],u).multiplyScalar(T1),B.copy(e[0]).sub(u),I.copy(e[0]).add(u),D.copy(B),T.copy(I);for(let B1=1;B1Number.EPSILON){const l0=T1/W1;h.multiplyScalar(-l0),g.subVectors(u1,I1),v.copy(g).setLength(l0).add(h),G.copy(v).negate();const E1=v.length(),q=g.length();g.divideScalar(q),y.subVectors(s1,u1);const n1=y.length();switch(y.divideScalar(n1),g.dot(G)=i&&W1.push(B1[l0]);return W1.push(B1[B1.length-1]),W1}}}function Ml1(t,e,n,r,i,s){const o=[],C=o2([]),l=o2([]);S3(C,o);const u=o2(void 0),d=k3(e,n,r,{...M3,...E3(t.root.size),...B3(C),...y3(l)},md,u1=>u1.add("aspectRatio",u)),h=o2(void 0),g=L3();l7(h,g,t,d,i,!0,o);const v=v3(d,g,t.root.pixelSize);w3(t.root,i,v,o);const y=a7(t.childrenMatrix,v),k=C7(t.clippingRect,y,g.size,t.root.pixelSize),B=x3(g,k,d),I=Xn(d),D=I8(d,We.Panel,I,t.orderInfo);o.push(u1=>S5(d,D,I,t.root.panelGroupManager,y,g.size,void 0,g.borderInset,t.clippingRect,B,qn(),u1));const T=I8(void 0,We.Svg,void 0,D),_=Y2(()=>{var u1,I1;return x8((u1=e.value)==null?void 0:u1.src)??x8((I1=n.value)==null?void 0:I1.src)}),P=o2(void 0),Q=na(t.root,t.clippingRect);T21(P,Dl1,va1,o,_,t.root,Q,t.clippingRect,T,u),R21(d,P,o,t.root);const U=Sl1(t.root,g,P,u,B,o),G=wd();yd(s,G,t.root.pixelSize,o);const Z=Ld(G,y,t.root.pixelSize);Id(d,G,g,y,B,t.clippingRect,T,t.root.panelGroupManager,o);const H=Jn(T,t.root,t.clippingRect,g.size,o),$=xd(G,t.anyAncestorScrollable,g,i,H,n,t.root,o);return m3(e,n,g.size,o),o7(e,n,k,o),Object.assign(g,{scrollPosition:G,isClipped:k,mergedProperties:d,anyAncestorScrollable:iv(g.scrollable,t.anyAncestorScrollable),clippingRect:Ad(y,g,t.root.pixelSize,t.clippingRect),childrenMatrix:Z,node:h,orderInfo:T,root:t.root,initializers:o,centerGroup:U,handlers:I3(e,n,r,C,l,$),interactionPanel:H})}function Sl1(t,e,n,r,i,s){const o=new o3;return o.matrixAutoUpdate=!1,s.push(()=>n2(()=>{M21(o.position,o.scale,e.size,e.paddingInset,e.borderInset,t.pixelSize.value,r.value??1),o.updateMatrix(),t.requestRender()}),()=>n2(()=>{const C=n.value;if(C!=null)return o.add(C),t.requestRender(),()=>{o.remove(C),t.requestRender()}}),()=>n2(()=>{o.visible=n.value!=null&&i.value,t.requestRender()})),o}const Bl1=new gs,lc=new je,en=new d1,NX=new Map;async function Dl1(t,e,n,r,i,s){if(t==null)return;const o=new o3;o.matrixAutoUpdate=!1;let C=NX.get(t);C==null&&NX.set(t,C=await Bl1.loadAsync(t)),lc.makeEmpty();for(const u of C.paths){const d=gs.createShapes(u),h=new F4;h.transparent=!0,h.depthWrite=!1,h.toneMapped=!1,h.clippingPlanes=n;for(const g of d){const v=new ps(g);v.computeBoundingBox(),lc.union(v.boundingBox);const y=new v9(v,h);y.matrixAutoUpdate=!1,y.raycast=Jt(y,y.raycast,e.object,r,i),$n(y,e,i),y.userData.color=u.color,y.scale.y=-1,y.updateMatrix(),o.add(y)}}lc.getSize(en),s.value=en.x/en.y;const l=1/en.y;return o.scale.set(1,1,1).multiplyScalar(l),lc.getCenter(en),en.y*=-1,o.position.copy(en).negate().multiplyScalar(l),o.updateMatrix(),o}function bl1(t,e,n,r,i,s,o,C){const l=[],u=o2([]),d=o2([]);S3(u,l);const h=k3(i,s,o,{...M3,...E3(t.root.size),...B3(u),...y3(d)},md,Q=>{Q.add("aspectRatio",n/r),Q.add("width",n),Q.add("height",r)}),g=L3();l7(void 0,g,t,h,C,!0,l);const v=v3(h,g,t.root.pixelSize);w3(t.root,C,v,l);const y=a7(t.childrenMatrix,v),k=C7(t.clippingRect,y,g.size,t.root.pixelSize),B=x3(g,k,h),I=Xn(h),D=I8(h,We.Panel,I,t.orderInfo);l.push(Q=>S5(h,D,I,t.root.panelGroupManager,y,g.size,void 0,g.borderInset,t.clippingRect,B,qn(),Q));const T=I8(void 0,We.Svg,void 0,D),_=na(t.root,t.clippingRect),P=Rl1(h,e,n,r,t,T,g,B,_,l);return m3(i,s,g.size,l),o7(i,s,k,l),Object.assign(g,{isClipped:k,mergedProperties:h,initializers:l,iconGroup:P,handlers:I3(i,s,o,u,d),interactionPanel:Jn(T,t.root,t.clippingRect,g.size,l)})}const Tl1=new gs;function Rl1(t,e,n,r,i,s,o,C,l,u){const d=new o3;d.matrixAutoUpdate=!1;const h=Tl1.parse(e);for(const v of h.paths){const y=gs.createShapes(v),k=new F4;k.transparent=!0,k.depthWrite=!1,k.toneMapped=!1,k.clippingPlanes=l;for(const B of y){const I=new ps(B);I.computeBoundingBox();const D=new v9(I,k);D.matrixAutoUpdate=!1,D.raycast=Jt(D,D.raycast,i.root.object,i.clippingRect,s),$n(D,i.root,s),D.userData.color=v.color,D.scale.y=-1,D.updateMatrix(),d.add(D)}}const g=n/r;return u.push(()=>n2(()=>{M21(d.position,d.scale,o.size,o.paddingInset,o.borderInset,i.root.pixelSize.value,g),d.position.x-=d.scale.x*g/2,d.position.y+=d.scale.x/2,d.scale.divideScalar(r),d.updateMatrix(),i.root.requestRender()}),()=>n2(()=>{d.visible=C.value,i.root.requestRender()})),R21(t,d,u,i.root),d}const Fl1=["caretBorderRightWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderBottomWidth"];let OX;function _l1(){return OX??(OX=ra({backgroundColor:"caretColor",backgroundOpacity:"caretOpacity",borderBend:"caretBorderBend",borderBottomLeftRadius:"caretBorderBottomLeftRadius",borderBottomRightRadius:"caretBorderBottomRightRadius",borderColor:"caretBorderColor",borderOpacity:"caretBorderOpacity",borderTopLeftRadius:"caretBorderTopLeftRadius",borderTopRightRadius:"caretBorderTopRightRadius"},{backgroundColor:0,backgroundOpacity:1})),OX}function Pl1(t,e,n,r,i,s,o,C){const l=I8(void 0,We.Panel,vd,i),u=o2(void 0);C.push(()=>n2(()=>{const g=n.value;g==null&&(u.value=void 0),u.value=g;const v=setInterval(()=>u.value=u.peek()==null?g:void 0,500);return()=>clearInterval(v)}));const d=ev(t,Fl1),h=Z2(t,"caretWidth",1.5);C.push(g=>S5(t,l,void 0,o,e,Y2(()=>{const v=u.value;return v==null?[0,0]:[h.value,v[2]]}),Y2(()=>{const v=u.value;return v==null?[0,0]:[v[0]-h.value/2,v[1]]}),d,s,r,_l1(),g))}const Ql1=["selectionBorderRightWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderBottomWidth"];let jX;function Nl1(){return jX??(jX=ra({backgroundColor:"selectionColor",backgroundOpacity:"selectionOpacity",borderBend:"selectionBorderBend",borderBottomLeftRadius:"selectionBorderBottomLeftRadius",borderBottomRightRadius:"selectionBorderBottomRightRadius",borderColor:"selectionBorderColor",borderOpacity:"selectionBorderOpacity",borderTopLeftRadius:"selectionBorderTopLeftRadius",borderTopRightRadius:"selectionBorderTopRightRadius"},{backgroundColor:11851775,backgroundOpacity:1})),jX}function Ol1(t,e,n,r,i,s,o,C){const l=[],u=I8(void 0,We.Panel,vd,i),d=ev(t,Ql1);return C.push(()=>n2(()=>{const h=n.value,g=h.length;for(let y=0;y()=>{const h=l.length;for(let g=0;gt.value)}}const Hl1=new Set;function Ul1(t){Hl1.add(t)}function Wl1(t,e,n,r,i,s){var g1,H1,M1,e1,a1,K;const o=o2([]),C=o2([]),l=o2(!1),u=[];S3(o,u);const d=k3(n,r,i,{...M3,...E3(t.root.size),...B3(o),...y3(C),...jl1(l)},void 0,t1=>{gd(n.value,r.value,i.value,N1=>{t1.add("caretOpacity",N1.opacity),t1.add("caretColor",N1.color)})}),h=L3(),g=o2(void 0);l7(g,h,t,d,s,!1,u);const v=v3(d,h,t.root.pixelSize);w3(t.root,s,v,u);const y=a7(t.childrenMatrix,v),k=C7(t.clippingRect,y,h.size,t.root.pixelSize),B=x3(h,k,d),I=Xn(d),D=I8(d,We.Panel,I,t.orderInfo);u.push(t1=>S5(d,D,I,t.root.panelGroupManager,y,h.size,void 0,h.borderInset,t.clippingRect,B,qn(),t1));const T={},_=o2([]),P=o2(void 0),Q=o2(void 0);Pl1(d,y,P,B,D,t.clippingRect,t.root.panelGroupManager,u);const U=Ol1(d,y,_,B,D,t.clippingRect,t.root.panelGroupManager,u),G=K21(d,e,t.root.renderer,u),Z=I8(void 0,We.Text,e91(G),U),H=((g1=n.peek())==null?void 0:g1.defaultValue)??((H1=r.peek())==null?void 0:H1.defaultValue),$=((M1=n.peek())==null?void 0:M1.value)==null&&((e1=r.peek())==null?void 0:e1.value)==null?o2(H??""):void 0,u1=Y2(()=>{var t1,N1;return($==null?void 0:$.value)??x8((t1=n.value)==null?void 0:t1.value)??x8((N1=r.value)==null?void 0:N1.value)??""}),I1=jp(n,r,"type","text"),s1=Y2(()=>I1.value==="text"?u1.value:"*".repeat(u1.value.length??0)),T1=((a1=n.peek())==null?void 0:a1.multiline)??((K=r.peek())==null?void 0:K.multiline)??!1,k1=t91(d,s1,y,g,h,B,t.clippingRect,Z,G,t.root.gylphGroupManager,Q,_,P,T,u,T1?"break-word":"keep-all");u.push(()=>n2(()=>{var t1;return(t1=g.value)==null?void 0:t1.setCustomLayouting(k1.value)})),m3(n,r,h.size,u),o7(n,r,k,u);const U1=jp(n,r,"disabled",!1),o1=zl1(u1,Q,t1=>{var N1,G1,R1,V1;$!=null&&($.value=t1),(G1=(N1=n.peek())==null?void 0:N1.onValueChange)==null||G1.call(N1,t1),(V1=(R1=r.peek())==null?void 0:R1.onValueChange)==null||V1.call(R1,t1)},T1,I1,U1,jp(n,r,"tabIndex",0),u),A1=(t1,N1,G1)=>{const R1=o1.peek();R1!=null&&(l.peek()||R1.focus(),t1!=null&&N1!=null&&R1.setSelectionRange(t1,N1,G1),Q.value=[R1.selectionStart??0,R1.selectionEnd??0])};Vl1(o1,l,u,t1=>{var N1,G1,R1,V1;(G1=(N1=r.peek())==null?void 0:N1.onFocusChange)==null||G1.call(N1,t1),(V1=(R1=n.peek())==null?void 0:R1.onFocusChange)==null||V1.call(R1,t1)});const y1=Gl1(h,T,A1,U1);return Object.assign(h,{isClipped:k,mergedProperties:d,valueSignal:u1,focus:()=>A1(),root:t.root,element:o1,node:g,interactionPanel:Jn(D,t.root,t.clippingRect,h.size,u),handlers:I3(n,r,i,o,C,y1,"text"),initializers:u})}function Gl1(t,e,n,r){return Y2(()=>{if(r.value)return;let i;return{onPointerDown:s=>{var C;if(s.defaultPrevented||s.uv==null||e.current==null)return;Ul1(s.nativeEvent),(C=s.stopPropagation)==null||C.call(s);const o=HX(t,s.uv,e.current);i=o,setTimeout(()=>n(o,o))},onPointerUp:s=>{i=void 0},onPointerLeave:s=>{i=void 0},onPointerMove:s=>{var d;if(i==null||s.uv==null||e.current==null)return;(d=s.stopPropagation)==null||d.call(s);const o=HX(t,s.uv,e.current),C=Math.min(i,o),l=Math.max(i,o),u=in(C,l,u))}}})}function zl1(t,e,n,r,i,s,o,C){const l=o2(void 0);return C.push(u=>{const d=document.createElement(r?"textarea":"input"),h=d.style;h.setProperty("position","absolute"),h.setProperty("left","-1000vw"),h.setProperty("top","0"),h.setProperty("pointerEvents","none"),h.setProperty("opacity","0"),d.addEventListener("input",()=>{n==null||n(d.value),g()});const g=()=>{const{selectionStart:v,selectionEnd:y}=d;if(v==null||y==null){e.value=void 0;return}const k=e.peek();k!=null&&k[0]===v&&k[1]===y||(e.value=[v,y])};return d.addEventListener("keydown",g),d.addEventListener("keyup",g),d.addEventListener("blur",()=>e.value=void 0),document.body.appendChild(d),l.value=d,u.push(()=>{l.value=void 0,d.remove()},n2(()=>d.value=t.value),n2(()=>d.disabled=s.value),n2(()=>d.tabIndex=o.value),n2(()=>d.setAttribute("type",i.value))),u}),l}function Vl1(t,e,n,r){n.push(()=>n2(()=>{const i=t.value;if(i==null)return;e.value=document.activeElement===i;const s=()=>{const o=document.activeElement===i;o!=e.value&&(e.value=o,r(o))};return i.addEventListener("focus",s),i.addEventListener("blur",s),()=>{i.removeEventListener("focus",s),i.removeEventListener("blur",s)}}))}function HX({size:t,borderInset:e,paddingInset:n},r,i){const s=t.peek(),o=e.peek(),C=n.peek();if(s==null||o==null||C==null)return 0;const[l,u]=s,[d,,,h]=o,[g,,,v]=C,y=r.x*l-h-v,k=-r.y*u+d+g;return i.getCharIndex(y,k)}function $l1(t,e,n,r,i,s){const o=o2([]),C=o2([]),l=[];S3(o,l);const u=k3(e,n,r,{...M3,...E3(t.root.size),...B3(o),...y3(C)}),d=L3();l7(void 0,d,t,u,i,!0,l);const h=v3(u,d,t.root.pixelSize);w3(t.root,i,h,l);const g=a7(t.childrenMatrix,h),v=C7(t.clippingRect,g,d.size,t.root.pixelSize),y=x3(d,v,u),k=I8(u,We.Custom,void 0,t.orderInfo),B=na(t.root,t.clippingRect);return l.push(I=>{const D=s.current;if(D==null)return I;if(D.matrixAutoUpdate=!1,D.material instanceof Re){const T=D.material;T.clippingPlanes=B,T.needsUpdate=!0,T.shadowSide=A6,I.push(()=>n2(()=>{T.depthTest=t.root.depthTest.value,t.root.requestRender()}))}return D.raycast=Jt(D,D.raycast,t.root.object,t.clippingRect,k),$n(D,t.root,k),I.push(n2(()=>{D.renderOrder=t.root.renderOrder.value,t.root.requestRender()}),n2(()=>{D.receiveShadow=u.value.read("receiveShadow",!1),t.root.requestRender()}),n2(()=>{D.castShadow=u.value.read("castShadow",!1),t.root.requestRender()}),n2(()=>{if(d.size.value==null)return;const[T,_]=d.size.value,P=t.root.pixelSize.value;D.scale.set(T*P,_*P,1),D.updateMatrix(),t.root.requestRender()}),n2(()=>{D.visible=y.value,t.root.requestRender()})),I}),m3(e,n,d.size,l),o7(e,n,v,l),Object.assign(d,{isClipped:v,mergedProperties:u,root:t.root,handlers:I3(e,n,r,o,C),initializers:l})}function ql1(t,e,n,r,i,s){const o=o2([]),C=o2([]),l=[],u=L3();S3(o,l);const d=o2(new d1(1,1,1)),h=Y2(()=>d.value.x/d.value.y),g=k3(e,n,r,{...M3,...E3(t.root.size),...B3(o),...y3(C)},md,_=>_.add("aspectRatio",h));l7(void 0,u,t,g,i,!0,l);const v=v3(g,u,t.root.pixelSize);w3(t.root,i,v,l);const y=a7(t.childrenMatrix,v),k=C7(t.clippingRect,y,u.size,t.root.pixelSize),B=x3(u,k,g),I=Xn(g),D=I8(g,We.Panel,I,t.orderInfo);l.push(_=>S5(g,D,I,t.root.panelGroupManager,y,u.size,void 0,u.borderInset,t.clippingRect,B,qn(),_));const T=I8(void 0,We.Object,void 0,D);return m3(e,n,u.size,l),o7(e,n,k,l),Object.assign(u,{isClipped:k,mergedProperties:g,remeasureContent:Yl1(g,t.root,u,t.clippingRect,B,T,d,s,l),interactionPanel:Jn(D,t.root,t.clippingRect,u.size,l),handlers:I3(e,n,r,o,C),initializers:l})}const sf=new je,UX=new d1().setScalar(.001),Jl1=new d1,Xl1="back";function Yl1(t,e,n,r,i,s,o,C,l){const u=na(e,r),d=Z2(t,"depthAlign",Xl1),h=Z2(t,"keepAspectRatio",!0),g=new d1,v=new d1,y=(B,I,D,T)=>{B!=null&&(B.visible=I,B.traverse(_=>{_ instanceof v9&&(_.renderOrder=D,_.material instanceof Re&&(_.material.depthTest=T))}),e.requestRender())},k=()=>{const B=C.current;if(B==null){g.copy(UX),v.set(0,0,0);return}B.traverse(D=>{D instanceof v9&&($n(D,e,s),D.material.clippingPlanes=u,D.material.needsUpdate=!0,D.raycast=Jt(D,D.raycast,e.object,r,s))});const I=B.parent;B.parent=null,sf.setFromObject(B),sf.getSize(g).max(UX),o.value=g,I!=null&&(B.parent=I),sf.getCenter(v),e.requestRender()};return l.push(()=>n2(()=>{y(C.current,i.value,e.renderOrder.value,e.depthTest.value),e.requestRender()}),B=>{const I=C.current;return I==null||(k(),B.push(n2(()=>{const{size:{value:D},paddingInset:{value:T},borderInset:{value:_}}=n;if(D==null||T==null||_==null)return;const[P,Q]=D,[U,G,Z,H]=T,[$,u1,I1,s1]=_,T1=U+$,k1=G+u1,U1=Z+I1,o1=H+s1,A1=P-o1-k1,y1=Q-T1-U1,g1=e.pixelSize.value;I.scale.set(A1*g1,y1*g1,h.value?y1*g1*g.z/g.y:g.z).divide(g),I.position.copy(v).negate(),I.position.z-=_C1[d.value]*g.z,I.position.multiply(I.scale),I.position.add(Jl1.set((o1-k1)*.5*g1,(U1-T1)*.5*g1,0)),I.updateMatrix(),e.requestRender()}))),B}),()=>{y(C.current,i.peek(),e.renderOrder.peek(),e.depthTest.peek()),k()}}function Kl1(t,e,n,r,i,s){if(i instanceof De){const o=2*Math.tan(Math.PI*i.fov/360)*r;n.value=o/s,e.value=o,t.value=o*i.aspect}if(i instanceof us){const o=i.top-i.bottom,C=i.right-i.left;n.value=o/s,e.value=o,t.value=C}}function Zl1(t,{src:e,autoplay:n,loop:r,muted:i,playbackRate:s,preservesPitch:o,volume:C}){if(!(e instanceof HTMLElement)){if(n&&(t.remove(),document.body.append(t),t.style.position="absolute",t.style.width="1px",t.style.zIndex="-1000",t.style.top="0px",t.style.left="0px"),t.playsInline=!0,t.volume=C??1,t.preservesPitch=o??!0,t.playbackRate=s??1,t.muted=i??!1,t.loop=r??!1,t.autoplay=n??!1,e==null){t.removeAttribute("src"),t.removeAttribute("srcObject");return}typeof e=="string"?t.src=e:t.srcObject=e}}function ec1(t,e){let n;const r=()=>{e(),n=t.requestVideoFrameCallback(r)};return n=t.requestVideoFrameCallback(r),()=>t.cancelVideoFrameCallback(n)}function S3(t,e){e.push(()=>()=>n91(t))}function tc1(t,e,n,r,i,s){let o=!1;gd(e,n,r,l=>{"hover"in l&&(o=!0)});const C=(e==null?void 0:e.cursor)??(n==null?void 0:n.cursor)??s;if(!o&&(e==null?void 0:e.onHoverChange)==null&&(n==null?void 0:n.onHoverChange)==null&&C==null){i.value.length=0;return}Mn("onPointerOver",t,({pointerId:l})=>{var u,d;i.value=[l,...i.value],i.value.length===1&&((u=n==null?void 0:n.onHoverChange)==null||u.call(n,!0),(d=e==null?void 0:e.onHoverChange)==null||d.call(e,!0)),C!=null&&nc1(i,C)}),Mn("onPointerOut",t,({pointerId:l})=>{var u,d;i.value=i.value.filter(h=>h!=l),i.value.length===0&&((u=n==null?void 0:n.onHoverChange)==null||u.call(n,!1),(d=e==null?void 0:e.onHoverChange)==null||d.call(e,!1)),n91(i)})}function B3(t){return{hover:ta(()=>t.value.length>0)}}const oA=[],Fc=[];function nc1(t,e){oA.push(t),Fc.push(e),document.body.style.cursor=e}function n91(t){const e=oA.indexOf(t);e!=-1&&(oA.splice(e,1),Fc.splice(e,1),document.body.style.cursor=Fc[Fc.length-1]??"default")}var WX={},rc1=Object.create,kd=Object.defineProperty,ic1=Object.getOwnPropertyDescriptor,sc1=Object.getOwnPropertyNames,oc1=Object.getPrototypeOf,Cc1=Object.prototype.hasOwnProperty,ia=(t,e)=>()=>(t&&(e=t(t=0)),e),S0=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ed=(t,e)=>{for(var n in e)kd(t,n,{get:e[n],enumerable:!0})},r91=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of sc1(e))!Cc1.call(t,i)&&i!==n&&kd(t,i,{get:()=>e[i],enumerable:!(r=ic1(e,i))||r.enumerable});return t},Ge=(t,e,n)=>(n=t!=null?rc1(oc1(t)):{},r91(e||!t||!t.__esModule?kd(n,"default",{value:t,enumerable:!0}):n,t)),Nn=t=>r91(kd({},"__esModule",{value:!0}),t),i91,ac1=ia(()=>{i91=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} +`)&&r.push({charLength:0,nonWhitespaceWidth:0,whitespacesBetween:0,charIndexOffset:s.length,nonWhitespaceCharLength:0}),{lines:r,availableHeight:n,availableWidth:e,...t}}const PX=new m2,vl1=new m2;function e91(t){return Y2(()=>({font:t.value}))}class wl1{constructor(e,n,r,i,s){C0(this,"group");C0(this,"baseMatrix");C0(this,"color");C0(this,"opacity");C0(this,"clippingRect");C0(this,"index");C0(this,"hidden",!0);C0(this,"glyphInfo");C0(this,"x",0);C0(this,"y",0);C0(this,"fontSize",0);C0(this,"pixelSize",0);this.group=e,this.baseMatrix=n,this.color=r,this.opacity=i,this.clippingRect=s}getX(e){return this.glyphInfo==null?this.x:this.x+e*this.glyphInfo.width*this.fontSize}show(){this.hidden&&(this.hidden=!1,this.group.requestActivate(this))}hide(){this.hidden||(this.hidden=!0,this.group.delete(this))}activate(e){this.index=e,this.writeUpdatedMatrix(),this.writeUV(),this.updateColor(this.color),this.updateOpacity(this.opacity),this.updateClippingRect(this.clippingRect)}setIndex(e){this.index=e}updateClippingRect(e){if(this.clippingRect=e,this.index==null)return;const n=this.index*16,{instanceClipping:r,root:i}=this.group;this.clippingRect==null?r.set(Au,n):this.clippingRect.toArray(r.array,n),r.addUpdateRange(n,16),r.needsUpdate=!0,i.requestRender()}updateColor(e){if(this.color=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=n.itemSize*this.index;QC(n.array,i,e,void 0),n.addUpdateRange(i,3),n.needsUpdate=!0,r.requestRender()}updateOpacity(e){if(this.opacity=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=this.index*4+3;n.array[i]=e,n.addUpdateRange(i,1),n.needsUpdate=!0,r.requestRender()}updateGlyphAndTransformation(e,n,r,i,s){this.glyphInfo===e&&this.x===n&&this.y===r&&this.fontSize===i&&this.pixelSize===s||(this.glyphInfo!=e&&(this.glyphInfo=e,this.writeUV()),this.x=n,this.y=r,this.fontSize=i,this.pixelSize=s,this.writeUpdatedMatrix())}updateBaseMatrix(e){this.baseMatrix!==e&&(this.baseMatrix=e,this.writeUpdatedMatrix())}writeUV(){if(this.index==null||this.glyphInfo==null)return;const e=this.index*4,{instanceUV:n,root:r}=this.group;gl1(this.glyphInfo,n.array,e),n.addUpdateRange(e,4),n.needsUpdate=!0,r.requestRender()}writeUpdatedMatrix(){if(this.index==null||this.glyphInfo==null||this.baseMatrix==null)return;const e=this.index*16,{instanceMatrix:n,root:r}=this.group;n.addUpdateRange(e,16),PX.makeTranslation(this.x*this.pixelSize,this.y*this.pixelSize,0).multiply(vl1.makeScale(this.fontSize*this.glyphInfo.width*this.pixelSize,this.fontSize*this.glyphInfo.height*this.pixelSize,1)).premultiply(this.baseMatrix),PX.toArray(n.array,e),n.needsUpdate=!0,r.requestRender()}}const Ll1="middle",yl1="left";function t91(t,e,n,r,i,s,o,C,l,u,d,h,g,v,y,k){let B={current:void 0};const I=Al1(t,l,e,B,k),D=Z2(t,"verticalAlign",Ll1),T=Z2(t,"textAlign",yl1),_=Z2(t,"color",0),P=Z2(t,"opacity",1),Q=o2(void 0);return y.push(()=>n2(()=>{var U;return(U=r.value)==null?void 0:U.addLayoutChangeListener(()=>{const G=B.current,{size:{value:Z},paddingInset:{value:H},borderInset:{value:$}}=i;if(G==null||Z==null||H==null||$==null)return;const[u1,I1]=Z,[s1,T1,k1,U1]=H,[o1,A1,y1,g1]=$,H1=u1-T1-U1-A1-g1,M1=I1-s1-k1-o1-y1;Q.value=ml1(G,H1,M1)})}),()=>n2(()=>{const U=l.value;if(U==null||C.value==null)return;const G=new Il1(u.getGroup(C.value.majorIndex,U),T,D,_,P,Q,n,s,o,d,h,g);return v!=null&&(v.current=G),()=>G.destroy()})),I}const xl1=[];class Il1{constructor(e,n,r,i,s,o,C,l,u,d,h,g){C0(this,"group");C0(this,"textAlign");C0(this,"verticalAlign");C0(this,"color");C0(this,"opacity");C0(this,"layoutSignal");C0(this,"matrix");C0(this,"parentClippingRect");C0(this,"selectionRange");C0(this,"selectionBoxes");C0(this,"caretPosition");C0(this,"glyphLines",[]);C0(this,"lastLayout");C0(this,"unsubscribeInitialList",[]);C0(this,"unsubscribeShowList",[]);this.group=e,this.textAlign=n,this.verticalAlign=r,this.color=i,this.opacity=s,this.layoutSignal=o,this.matrix=C,this.parentClippingRect=u,this.selectionRange=d,this.selectionBoxes=h,this.caretPosition=g,this.unsubscribeInitialList=[n2(()=>{if(!l.value||s.value<.01){this.hide();return}this.show()}),n2(()=>this.updateSelectionBoxes(this.lastLayout,d==null?void 0:d.value,r.peek(),n.peek()))]}getCharIndex(e,n){const r=this.lastLayout;if(r==null)return 0;n-=-ac(r,this.verticalAlign.peek());const i=Math.floor(n/-oc(r.lineHeight,r.fontSize)),s=r.lines;if(i<0||s.length===0)return 0;if(i>=s.length){const d=s[s.length-1];return d.charIndexOffset+d.charLength+1}const o=s[i],C=r.font.getGlyphInfo(" ").xadvance*r.fontSize,l=this.glyphLines[i];let u=l.length;for(let d=0;d=h.charIndexOffset+h.charLength)continue;const g=this.glyphLines[d][Math.max(r-h.charIndexOffset,0)];return{lineIndex:d,x:this.getGlyphX(g,i?0:1,s)}}const l=e[C-1];if(l.charLength===0)return{lineIndex:C-1,x:QX(n,l.nonWhitespaceWidth,o)-n/2};const u=this.glyphLines[C-1][l.charLength-1];return{lineIndex:C-1,x:this.getGlyphX(u,1,s)}}getGlyphX(e,n,r){return typeof e=="number"?e+n*r:e.getX(n)}show(){this.unsubscribeShowList.length>0||(Z7(this.glyphLines,e=>e.show()),this.unsubscribeShowList.push(n2(()=>{const e=this.matrix.value;e!=null&&Z7(this.glyphLines,n=>n.updateBaseMatrix(e))}),n2(()=>{var n;const e=(n=this.parentClippingRect)==null?void 0:n.value;Z7(this.glyphLines,r=>r.updateClippingRect(e))}),n2(()=>{const e=this.color.value;Z7(this.glyphLines,n=>n.updateColor(e))}),n2(()=>{const e=this.opacity.value;Z7(this.glyphLines,n=>n.updateOpacity(e))}),n2(()=>{var g,v;const e=this.layoutSignal.value;if(e==null)return;const{text:n,font:r,lines:i,letterSpacing:s=0,fontSize:o=16,lineHeight:C=1.2,availableWidth:l}=e;let u=ac(e,this.verticalAlign.value)-e.availableHeight/2;const d=i.length,h=this.group.pixelSize.value;for(let y=0;yD+I){Q=I1.id;const k1=P+FX(r,o,I1,Q);typeof U[$]=="number"?U[$]=P:U.splice($,0,k1),P+=_+NC(o,I1,s);continue}let s1=U[$];for(;$y.hide(),d),this.glyphLines.length=d,this.lastLayout=e,this.updateSelectionBoxes(e,(v=this.selectionRange)==null?void 0:v.peek(),this.verticalAlign.value,this.textAlign.value)})))}hide(){const e=this.unsubscribeShowList.length;if(e!==0){for(let n=0;nn.hide())}}destroy(){this.hide(),this.glyphLines.length=0;const e=this.unsubscribeInitialList.length;for(let n=0;nS5(d,D,I,t.root.panelGroupManager,y,g.size,void 0,g.borderInset,t.clippingRect,B,qn(),Q));const T=K21(d,n,t.root.renderer,u),_=I8(void 0,We.Text,e91(T),D),P=t91(d,e,y,h,g,B,t.clippingRect,_,T,t.root.gylphGroupManager,void 0,void 0,void 0,void 0,u,"break-word");return u.push(()=>n2(()=>{var Q;return(Q=h.value)==null?void 0:Q.setCustomLayouting(P.value)})),m3(r,i,g.size,u),o7(r,i,k,u),Object.assign(g,{isClipped:k,mergedProperties:d,interactionPanel:Jn(D,t.root,t.clippingRect,g.size,u),handlers:I3(r,i,s,C,l),initializers:u})}const El1=Z9;class gs extends g4{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,n,r,i){const s=this,o=new E5(s.manager);o.setPath(s.path),o.setRequestHeader(s.requestHeader),o.setWithCredentials(s.withCredentials),o.load(e,function(C){try{n(s.parse(C))}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},r,i)}parse(e){const n=this;function r(e1,a1){if(e1.nodeType!==1)return;const K=_(e1);let t1=!1,N1=null;switch(e1.nodeName){case"svg":a1=y(e1,a1);break;case"style":s(e1);break;case"g":a1=y(e1,a1);break;case"path":a1=y(e1,a1),e1.hasAttribute("d")&&(N1=i(e1));break;case"rect":a1=y(e1,a1),N1=l(e1);break;case"polygon":a1=y(e1,a1),N1=u(e1);break;case"polyline":a1=y(e1,a1),N1=d(e1);break;case"circle":a1=y(e1,a1),N1=h(e1);break;case"ellipse":a1=y(e1,a1),N1=g(e1);break;case"line":a1=y(e1,a1),N1=v(e1);break;case"defs":t1=!0;break;case"use":a1=y(e1,a1);const V1=(e1.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),l1=e1.viewportElement.getElementById(V1);l1?r(l1,a1):console.warn("SVGLoader: 'use node' references non-existent node id: "+V1);break}N1&&(a1.fill!==void 0&&a1.fill!=="none"&&N1.color.setStyle(a1.fill,El1),Q(N1,g1),u1.push(N1),N1.userData={node:e1,style:a1});const G1=e1.childNodes;for(let R1=0;R10?g1.copy(s1[s1.length-1]):g1.identity())}function i(e1){const a1=new Lt,K=new o0,t1=new o0,N1=new o0;let G1=!0,R1=!1;const V1=e1.getAttribute("d");if(V1===""||V1==="none")return null;const l1=V1.match(/[a-df-z][^a-df-z]*/ig);for(let O1=0,B1=l1.length;O10&&(K.copy(N1),a1.currentPath.currentPoint.copy(K),G1=!0);break;default:console.warn($1)}R1=!1}return a1}function s(e1){if(!(!e1.sheet||!e1.sheet.cssRules||!e1.sheet.cssRules.length))for(let a1=0;a1N1.trim());for(let N1=0;N1R1!==""));I1[t1[N1]]=Object.assign(I1[t1[N1]]||{},G1)}}}function o(e1,a1,K,t1,N1,G1,R1,V1){if(a1==0||K==0){e1.lineTo(V1.x,V1.y);return}t1=t1*Math.PI/180,a1=Math.abs(a1),K=Math.abs(K);const l1=(R1.x-V1.x)/2,O1=(R1.y-V1.y)/2,B1=Math.cos(t1)*l1+Math.sin(t1)*O1,$1=-Math.sin(t1)*l1+Math.cos(t1)*O1;let W1=a1*a1,l0=K*K;const E1=B1*B1,q=$1*$1,n1=E1/W1+q/l0;if(n1>1){const m0=Math.sqrt(n1);a1=m0*a1,K=m0*K,W1=a1*a1,l0=K*K}const j1=W1*q+l0*E1,f0=(W1*l0-j1)/j1;let h0=Math.sqrt(Math.max(0,f0));N1===G1&&(h0=-h0);const c0=h0*a1*$1/K,j0=-h0*K*B1/a1,T0=Math.cos(t1)*c0-Math.sin(t1)*j0+(R1.x+V1.x)/2,O0=Math.sin(t1)*c0+Math.cos(t1)*j0+(R1.y+V1.y)/2,R0=C(1,0,(B1-c0)/a1,($1-j0)/K),F0=C((B1-c0)/a1,($1-j0)/K,(-B1-c0)/a1,(-$1-j0)/K)%(Math.PI*2);e1.currentPath.absellipse(T0,O0,a1,K,R0,R0+F0,G1===0,t1)}function C(e1,a1,K,t1){const N1=e1*K+a1*t1,G1=Math.sqrt(e1*e1+a1*a1)*Math.sqrt(K*K+t1*t1);let R1=Math.acos(Math.max(-1,Math.min(1,N1/G1)));return e1*t1-a1*K<0&&(R1=-R1),R1}function l(e1){const a1=T(e1.getAttribute("x")||0),K=T(e1.getAttribute("y")||0),t1=T(e1.getAttribute("rx")||e1.getAttribute("ry")||0),N1=T(e1.getAttribute("ry")||e1.getAttribute("rx")||0),G1=T(e1.getAttribute("width")),R1=T(e1.getAttribute("height")),V1=1-.551915024494,l1=new Lt;return l1.moveTo(a1+t1,K),l1.lineTo(a1+G1-t1,K),(t1!==0||N1!==0)&&l1.bezierCurveTo(a1+G1-t1*V1,K,a1+G1,K+N1*V1,a1+G1,K+N1),l1.lineTo(a1+G1,K+R1-N1),(t1!==0||N1!==0)&&l1.bezierCurveTo(a1+G1,K+R1-N1*V1,a1+G1-t1*V1,K+R1,a1+G1-t1,K+R1),l1.lineTo(a1+t1,K+R1),(t1!==0||N1!==0)&&l1.bezierCurveTo(a1+t1*V1,K+R1,a1,K+R1-N1*V1,a1,K+R1-N1),l1.lineTo(a1,K+N1),(t1!==0||N1!==0)&&l1.bezierCurveTo(a1,K+N1*V1,a1+t1*V1,K,a1+t1,K),l1}function u(e1){function a1(G1,R1,V1){const l1=T(R1),O1=T(V1);N1===0?t1.moveTo(l1,O1):t1.lineTo(l1,O1),N1++}const K=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,t1=new Lt;let N1=0;return e1.getAttribute("points").replace(K,a1),t1.currentPath.autoClose=!0,t1}function d(e1){function a1(G1,R1,V1){const l1=T(R1),O1=T(V1);N1===0?t1.moveTo(l1,O1):t1.lineTo(l1,O1),N1++}const K=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,t1=new Lt;let N1=0;return e1.getAttribute("points").replace(K,a1),t1.currentPath.autoClose=!1,t1}function h(e1){const a1=T(e1.getAttribute("cx")||0),K=T(e1.getAttribute("cy")||0),t1=T(e1.getAttribute("r")||0),N1=new Ht;N1.absarc(a1,K,t1,0,Math.PI*2);const G1=new Lt;return G1.subPaths.push(N1),G1}function g(e1){const a1=T(e1.getAttribute("cx")||0),K=T(e1.getAttribute("cy")||0),t1=T(e1.getAttribute("rx")||0),N1=T(e1.getAttribute("ry")||0),G1=new Ht;G1.absellipse(a1,K,t1,N1,0,Math.PI*2);const R1=new Lt;return R1.subPaths.push(G1),R1}function v(e1){const a1=T(e1.getAttribute("x1")||0),K=T(e1.getAttribute("y1")||0),t1=T(e1.getAttribute("x2")||0),N1=T(e1.getAttribute("y2")||0),G1=new Lt;return G1.moveTo(a1,K),G1.lineTo(t1,N1),G1.currentPath.autoClose=!1,G1}function y(e1,a1){a1=Object.assign({},a1);let K={};if(e1.hasAttribute("class")){const R1=e1.getAttribute("class").split(/\s/).filter(Boolean).map(V1=>V1.trim());for(let V1=0;V10&&a1.premultiply(s1[s1.length-1]),g1.copy(a1),s1.push(a1),a1}function P(e1){const a1=new b2,K=T1;if(e1.nodeName==="use"&&(e1.hasAttribute("x")||e1.hasAttribute("y"))){const t1=T(e1.getAttribute("x")),N1=T(e1.getAttribute("y"));a1.translate(t1,N1)}if(e1.hasAttribute("transform")){const t1=e1.getAttribute("transform").split(")");for(let N1=t1.length-1;N1>=0;N1--){const G1=t1[N1].trim();if(G1==="")continue;const R1=G1.indexOf("("),V1=G1.length;if(R1>0&&R1=1){const B1=O1[0];let $1=0;O1.length>=2&&($1=O1[1]),K.translate(B1,$1)}break;case"rotate":if(O1.length>=1){let B1=0,$1=0,W1=0;B1=O1[0]*Math.PI/180,O1.length>=3&&($1=O1[1],W1=O1[2]),k1.makeTranslation(-$1,-W1),U1.makeRotation(B1),o1.multiplyMatrices(U1,k1),k1.makeTranslation($1,W1),K.multiplyMatrices(k1,o1)}break;case"scale":if(O1.length>=1){const B1=O1[0];let $1=B1;O1.length>=2&&($1=O1[1]),K.scale(B1,$1)}break;case"skewX":O1.length===1&&K.set(1,Math.tan(O1[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":O1.length===1&&K.set(1,0,0,Math.tan(O1[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":O1.length===6&&K.set(O1[0],O1[2],O1[4],O1[1],O1[3],O1[5],0,0,1);break}}a1.premultiply(K)}}return a1}function Q(e1,a1){function K(R1){y1.set(R1.x,R1.y,1).applyMatrix3(a1),R1.set(y1.x,y1.y)}function t1(R1){const V1=R1.xRadius,l1=R1.yRadius,O1=Math.cos(R1.aRotation),B1=Math.sin(R1.aRotation),$1=new d1(V1*O1,V1*B1,0),W1=new d1(-l1*B1,l1*O1,0),l0=$1.applyMatrix3(a1),E1=W1.applyMatrix3(a1),q=T1.set(l0.x,E1.x,0,l0.y,E1.y,0,0,0,1),n1=k1.copy(q).invert(),h0=U1.copy(n1).transpose().multiply(n1).elements,c0=$(h0[0],h0[1],h0[4]),j0=Math.sqrt(c0.rt1),T0=Math.sqrt(c0.rt2);if(R1.xRadius=1/j0,R1.yRadius=1/T0,R1.aRotation=Math.atan2(c0.sn,c0.cs),!((R1.aEndAngle-R1.aStartAngle)%(2*Math.PI){const{x:a2,y:Z0}=new d1(Math.cos(y2),Math.sin(y2),0).applyMatrix3(m0);return Math.atan2(Z0,a2)};R1.aStartAngle=T2(R1.aStartAngle),R1.aEndAngle=T2(R1.aEndAngle),U(a1)&&(R1.aClockwise=!R1.aClockwise)}}function N1(R1){const V1=Z(a1),l1=H(a1);R1.xRadius*=V1,R1.yRadius*=l1;const O1=V1>Number.EPSILON?Math.atan2(a1.elements[1],a1.elements[0]):Math.atan2(-a1.elements[3],a1.elements[4]);R1.aRotation+=O1,U(a1)&&(R1.aStartAngle*=-1,R1.aEndAngle*=-1,R1.aClockwise=!R1.aClockwise)}const G1=e1.subPaths;for(let R1=0,V1=G1.length;R1Number.EPSILON}function Z(e1){const a1=e1.elements;return Math.sqrt(a1[0]*a1[0]+a1[1]*a1[1])}function H(e1){const a1=e1.elements;return Math.sqrt(a1[3]*a1[3]+a1[4]*a1[4])}function $(e1,a1,K){let t1,N1,G1,R1,V1;const l1=e1+K,O1=e1-K,B1=Math.sqrt(O1*O1+4*a1*a1);return l1>0?(t1=.5*(l1+B1),V1=1/t1,N1=e1*V1*K-a1*V1*a1):l1<0?N1=.5*(l1-B1):(t1=.5*B1,N1=-.5*B1),O1>0?G1=O1+B1:G1=O1-B1,Math.abs(G1)>2*Math.abs(a1)?(V1=-2*a1/G1,R1=1/Math.sqrt(1+V1*V1),G1=V1*R1):Math.abs(a1)===0?(G1=1,R1=0):(V1=-.5*G1/a1,G1=1/Math.sqrt(1+V1*V1),R1=V1*G1),O1>0&&(V1=G1,G1=-R1,R1=V1),{rt1:t1,rt2:N1,cs:G1,sn:R1}}const u1=[],I1={},s1=[],T1=new b2,k1=new b2,U1=new b2,o1=new b2,A1=new o0,y1=new d1,g1=new b2,H1=new DOMParser().parseFromString(e,"image/svg+xml");return r(H1.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:u1,xml:H1.documentElement}}static createShapes(e){const r={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:r.ORIGIN,t:0};function s(k,B,I,D){const T=k.x,_=B.x,P=I.x,Q=D.x,U=k.y,G=B.y,Z=I.y,H=D.y,$=(Q-P)*(U-Z)-(H-Z)*(T-P),u1=(_-T)*(U-Z)-(G-U)*(T-P),I1=(H-Z)*(_-T)-(Q-P)*(G-U),s1=$/I1,T1=u1/I1;if(I1===0&&$!==0||s1<=0||s1>=1||T1<0||T1>1)return null;if($===0&&I1===0){for(let k1=0;k1<2;k1++)if(o(k1===0?I:D,k,B),i.loc==r.ORIGIN){const U1=k1===0?I:D;return{x:U1.x,y:U1.y,t:i.t}}else if(i.loc==r.BETWEEN){const U1=+(T+i.t*(_-T)).toPrecision(10),o1=+(U+i.t*(G-U)).toPrecision(10);return{x:U1,y:o1,t:i.t}}return null}else{for(let o1=0;o1<2;o1++)if(o(o1===0?I:D,k,B),i.loc==r.ORIGIN){const A1=o1===0?I:D;return{x:A1.x,y:A1.y,t:i.t}}const k1=+(T+s1*(_-T)).toPrecision(10),U1=+(U+s1*(G-U)).toPrecision(10);return{x:k1,y:U1,t:s1}}}function o(k,B,I){const D=I.x-B.x,T=I.y-B.y,_=k.x-B.x,P=k.y-B.y,Q=D*P-_*T;if(k.x===B.x&&k.y===B.y){i.loc=r.ORIGIN,i.t=0;return}if(k.x===I.x&&k.y===I.y){i.loc=r.DESTINATION,i.t=1;return}if(Q<-Number.EPSILON){i.loc=r.LEFT;return}if(Q>Number.EPSILON){i.loc=r.RIGHT;return}if(D*_<0||T*P<0){i.loc=r.BEHIND;return}if(Math.sqrt(D*D+T*T)H.t<=Z.t+Number.EPSILON&&H.t>=Z.t-Number.EPSILON)===void 0&&(I.push(Z),D.push(new o0(Z.x,Z.y)))}}return D}function l(k,B,I){const D=new o0;B.getCenter(D);const T=[];return I.forEach(_=>{_.boundingBox.containsPoint(D)&&C(k,_.points).forEach(Q=>{T.push({identifier:_.identifier,isCW:_.isCW,point:Q})})}),T.sort((_,P)=>_.point.x-P.point.x),T}function u(k,B,I,D,T){(T==null||T==="")&&(T="nonzero");const _=new o0;k.boundingBox.getCenter(_);const P=[new o0(I,_.y),new o0(D,_.y)],Q=l(P,k.boundingBox,B);Q.sort((u1,I1)=>u1.point.x-I1.point.x);const U=[],G=[];Q.forEach(u1=>{u1.identifier===k.identifier?U.push(u1):G.push(u1)});const Z=U[0].point.x,H=[];let $=0;for(;$0&&H[H.length-1]===G[$].identifier?H.pop():H.push(G[$].identifier),$++;if(H.push(k.identifier),T==="evenodd"){const u1=H.length%2===0,I1=H[H.length-2];return{identifier:k.identifier,isHole:u1,for:I1}}else if(T==="nonzero"){let u1=!0,I1=null,s1=null;for(let T1=0;T1{const B=k.getPoints();let I=-999999999,D=999999999,T=-999999999,_=999999999;for(let P=0;PI&&(I=Q.y),Q.yT&&(T=Q.x),Q.x<_&&(_=Q.x)}return h<=T&&(h=T+1),d>=_&&(d=_-1),{curves:k.curves,points:B,isCW:V6.isClockWise(B),identifier:-1,boundingBox:new $01(new o0(_,D),new o0(T,I))}});g=g.filter(k=>k.points.length>1);for(let k=0;ku(k,g,d,h,e.userData?e.userData.style.fillRule:void 0)),y=[];return g.forEach(k=>{if(!v[k.identifier].isHole){const I=new Ut;I.curves=k.curves,v.filter(T=>T.isHole&&T.for===k.identifier).forEach(T=>{const _=g[T.identifier],P=new Ht;P.curves=_.curves,I.holes.push(P)}),y.push(I)}}),y}static getStrokeStyle(e,n,r,i,s){return e=e!==void 0?e:1,n=n!==void 0?n:"#000",r=r!==void 0?r:"miter",i=i!==void 0?i:"butt",s=s!==void 0?s:4,{strokeColor:n,strokeWidth:e,strokeLineJoin:r,strokeLineCap:i,strokeMiterLimit:s}}static pointsToStroke(e,n,r,i){const s=[],o=[],C=[];if(gs.pointsToStrokeWithBuffers(e,n,r,i,s,o,C)===0)return null;const l=new N2;return l.setAttribute("position",new u2(s,3)),l.setAttribute("normal",new u2(o,3)),l.setAttribute("uv",new u2(C,2)),l}static pointsToStrokeWithBuffers(e,n,r,i,s,o,C,l){const u=new o0,d=new o0,h=new o0,g=new o0,v=new o0,y=new o0,k=new o0,B=new o0,I=new o0,D=new o0,T=new o0,_=new o0,P=new o0,Q=new o0,U=new o0,G=new o0,Z=new o0;r=r!==void 0?r:12,i=i!==void 0?i:.001,l=l!==void 0?l:0,e=O1(e);const H=e.length;if(H<2)return 0;const $=e[0].equals(e[H-1]);let u1,I1=e[0],s1;const T1=n.strokeWidth/2,k1=1/(H-1);let U1=0,o1,A1,y1,g1,H1=!1,M1=0,e1=l*3,a1=l*2;K(e[0],e[1],u).multiplyScalar(T1),B.copy(e[0]).sub(u),I.copy(e[0]).add(u),D.copy(B),T.copy(I);for(let B1=1;B1Number.EPSILON){const l0=T1/W1;h.multiplyScalar(-l0),g.subVectors(u1,I1),v.copy(g).setLength(l0).add(h),G.copy(v).negate();const E1=v.length(),q=g.length();g.divideScalar(q),y.subVectors(s1,u1);const n1=y.length();switch(y.divideScalar(n1),g.dot(G)=i&&W1.push(B1[l0]);return W1.push(B1[B1.length-1]),W1}}}function Ml1(t,e,n,r,i,s){const o=[],C=o2([]),l=o2([]);S3(C,o);const u=o2(void 0),d=k3(e,n,r,{...M3,...E3(t.root.size),...B3(C),...y3(l)},md,u1=>u1.add("aspectRatio",u)),h=o2(void 0),g=L3();l7(h,g,t,d,i,!0,o);const v=v3(d,g,t.root.pixelSize);w3(t.root,i,v,o);const y=a7(t.childrenMatrix,v),k=C7(t.clippingRect,y,g.size,t.root.pixelSize),B=x3(g,k,d),I=Xn(d),D=I8(d,We.Panel,I,t.orderInfo);o.push(u1=>S5(d,D,I,t.root.panelGroupManager,y,g.size,void 0,g.borderInset,t.clippingRect,B,qn(),u1));const T=I8(void 0,We.Svg,void 0,D),_=Y2(()=>{var u1,I1;return x8((u1=e.value)==null?void 0:u1.src)??x8((I1=n.value)==null?void 0:I1.src)}),P=o2(void 0),Q=na(t.root,t.clippingRect);T21(P,Dl1,va1,o,_,t.root,Q,t.clippingRect,T,u),R21(d,P,o,t.root);const U=Sl1(t.root,g,P,u,B,o),G=wd();yd(s,G,t.root.pixelSize,o);const Z=Ld(G,y,t.root.pixelSize);Id(d,G,g,y,B,t.clippingRect,T,t.root.panelGroupManager,o);const H=Jn(T,t.root,t.clippingRect,g.size,o),$=xd(G,t.anyAncestorScrollable,g,i,H,n,t.root,o);return m3(e,n,g.size,o),o7(e,n,k,o),Object.assign(g,{scrollPosition:G,isClipped:k,mergedProperties:d,anyAncestorScrollable:iv(g.scrollable,t.anyAncestorScrollable),clippingRect:Ad(y,g,t.root.pixelSize,t.clippingRect),childrenMatrix:Z,node:h,orderInfo:T,root:t.root,initializers:o,centerGroup:U,handlers:I3(e,n,r,C,l,$),interactionPanel:H})}function Sl1(t,e,n,r,i,s){const o=new o3;return o.matrixAutoUpdate=!1,s.push(()=>n2(()=>{M21(o.position,o.scale,e.size,e.paddingInset,e.borderInset,t.pixelSize.value,r.value??1),o.updateMatrix(),t.requestRender()}),()=>n2(()=>{const C=n.value;if(C!=null)return o.add(C),t.requestRender(),()=>{o.remove(C),t.requestRender()}}),()=>n2(()=>{o.visible=n.value!=null&&i.value,t.requestRender()})),o}const Bl1=new gs,lc=new je,en=new d1,NX=new Map;async function Dl1(t,e,n,r,i,s){if(t==null)return;const o=new o3;o.matrixAutoUpdate=!1;let C=NX.get(t);C==null&&NX.set(t,C=await Bl1.loadAsync(t)),lc.makeEmpty();for(const u of C.paths){const d=gs.createShapes(u),h=new F4;h.transparent=!0,h.depthWrite=!1,h.toneMapped=!1,h.clippingPlanes=n;for(const g of d){const v=new ps(g);v.computeBoundingBox(),lc.union(v.boundingBox);const y=new v9(v,h);y.matrixAutoUpdate=!1,y.raycast=Jt(y,y.raycast,e.object,r,i),$n(y,e,i),y.userData.color=u.color,y.scale.y=-1,y.updateMatrix(),o.add(y)}}lc.getSize(en),s.value=en.x/en.y;const l=1/en.y;return o.scale.set(1,1,1).multiplyScalar(l),lc.getCenter(en),en.y*=-1,o.position.copy(en).negate().multiplyScalar(l),o.updateMatrix(),o}function bl1(t,e,n,r,i,s,o,C){const l=[],u=o2([]),d=o2([]);S3(u,l);const h=k3(i,s,o,{...M3,...E3(t.root.size),...B3(u),...y3(d)},md,Q=>{Q.add("aspectRatio",n/r),Q.add("width",n),Q.add("height",r)}),g=L3();l7(void 0,g,t,h,C,!0,l);const v=v3(h,g,t.root.pixelSize);w3(t.root,C,v,l);const y=a7(t.childrenMatrix,v),k=C7(t.clippingRect,y,g.size,t.root.pixelSize),B=x3(g,k,h),I=Xn(h),D=I8(h,We.Panel,I,t.orderInfo);l.push(Q=>S5(h,D,I,t.root.panelGroupManager,y,g.size,void 0,g.borderInset,t.clippingRect,B,qn(),Q));const T=I8(void 0,We.Svg,void 0,D),_=na(t.root,t.clippingRect),P=Rl1(h,e,n,r,t,T,g,B,_,l);return m3(i,s,g.size,l),o7(i,s,k,l),Object.assign(g,{isClipped:k,mergedProperties:h,initializers:l,iconGroup:P,handlers:I3(i,s,o,u,d),interactionPanel:Jn(T,t.root,t.clippingRect,g.size,l)})}const Tl1=new gs;function Rl1(t,e,n,r,i,s,o,C,l,u){const d=new o3;d.matrixAutoUpdate=!1;const h=Tl1.parse(e);for(const v of h.paths){const y=gs.createShapes(v),k=new F4;k.transparent=!0,k.depthWrite=!1,k.toneMapped=!1,k.clippingPlanes=l;for(const B of y){const I=new ps(B);I.computeBoundingBox();const D=new v9(I,k);D.matrixAutoUpdate=!1,D.raycast=Jt(D,D.raycast,i.root.object,i.clippingRect,s),$n(D,i.root,s),D.userData.color=v.color,D.scale.y=-1,D.updateMatrix(),d.add(D)}}const g=n/r;return u.push(()=>n2(()=>{M21(d.position,d.scale,o.size,o.paddingInset,o.borderInset,i.root.pixelSize.value,g),d.position.x-=d.scale.x*g/2,d.position.y+=d.scale.x/2,d.scale.divideScalar(r),d.updateMatrix(),i.root.requestRender()}),()=>n2(()=>{d.visible=C.value,i.root.requestRender()})),R21(t,d,u,i.root),d}const Fl1=["caretBorderRightWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderBottomWidth"];let OX;function _l1(){return OX??(OX=ra({backgroundColor:"caretColor",backgroundOpacity:"caretOpacity",borderBend:"caretBorderBend",borderBottomLeftRadius:"caretBorderBottomLeftRadius",borderBottomRightRadius:"caretBorderBottomRightRadius",borderColor:"caretBorderColor",borderOpacity:"caretBorderOpacity",borderTopLeftRadius:"caretBorderTopLeftRadius",borderTopRightRadius:"caretBorderTopRightRadius"},{backgroundColor:0,backgroundOpacity:1})),OX}function Pl1(t,e,n,r,i,s,o,C){const l=I8(void 0,We.Panel,vd,i),u=o2(void 0);C.push(()=>n2(()=>{const g=n.value;g==null&&(u.value=void 0),u.value=g;const v=setInterval(()=>u.value=u.peek()==null?g:void 0,500);return()=>clearInterval(v)}));const d=ev(t,Fl1),h=Z2(t,"caretWidth",1.5);C.push(g=>S5(t,l,void 0,o,e,Y2(()=>{const v=u.value;return v==null?[0,0]:[h.value,v[2]]}),Y2(()=>{const v=u.value;return v==null?[0,0]:[v[0]-h.value/2,v[1]]}),d,s,r,_l1(),g))}const Ql1=["selectionBorderRightWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderBottomWidth"];let jX;function Nl1(){return jX??(jX=ra({backgroundColor:"selectionColor",backgroundOpacity:"selectionOpacity",borderBend:"selectionBorderBend",borderBottomLeftRadius:"selectionBorderBottomLeftRadius",borderBottomRightRadius:"selectionBorderBottomRightRadius",borderColor:"selectionBorderColor",borderOpacity:"selectionBorderOpacity",borderTopLeftRadius:"selectionBorderTopLeftRadius",borderTopRightRadius:"selectionBorderTopRightRadius"},{backgroundColor:11851775,backgroundOpacity:1})),jX}function Ol1(t,e,n,r,i,s,o,C){const l=[],u=I8(void 0,We.Panel,vd,i),d=ev(t,Ql1);return C.push(()=>n2(()=>{const h=n.value,g=h.length;for(let y=0;y()=>{const h=l.length;for(let g=0;gt.value)}}const Hl1=new Set;function Ul1(t){Hl1.add(t)}function Wl1(t,e,n,r,i,s){var g1,H1,M1,e1,a1,K;const o=o2([]),C=o2([]),l=o2(!1),u=[];S3(o,u);const d=k3(n,r,i,{...M3,...E3(t.root.size),...B3(o),...y3(C),...jl1(l)},void 0,t1=>{gd(n.value,r.value,i.value,N1=>{t1.add("caretOpacity",N1.opacity),t1.add("caretColor",N1.color)})}),h=L3(),g=o2(void 0);l7(g,h,t,d,s,!1,u);const v=v3(d,h,t.root.pixelSize);w3(t.root,s,v,u);const y=a7(t.childrenMatrix,v),k=C7(t.clippingRect,y,h.size,t.root.pixelSize),B=x3(h,k,d),I=Xn(d),D=I8(d,We.Panel,I,t.orderInfo);u.push(t1=>S5(d,D,I,t.root.panelGroupManager,y,h.size,void 0,h.borderInset,t.clippingRect,B,qn(),t1));const T={},_=o2([]),P=o2(void 0),Q=o2(void 0);Pl1(d,y,P,B,D,t.clippingRect,t.root.panelGroupManager,u);const U=Ol1(d,y,_,B,D,t.clippingRect,t.root.panelGroupManager,u),G=K21(d,e,t.root.renderer,u),Z=I8(void 0,We.Text,e91(G),U),H=((g1=n.peek())==null?void 0:g1.defaultValue)??((H1=r.peek())==null?void 0:H1.defaultValue),$=((M1=n.peek())==null?void 0:M1.value)==null&&((e1=r.peek())==null?void 0:e1.value)==null?o2(H??""):void 0,u1=Y2(()=>{var t1,N1;return($==null?void 0:$.value)??x8((t1=n.value)==null?void 0:t1.value)??x8((N1=r.value)==null?void 0:N1.value)??""}),I1=jp(n,r,"type","text"),s1=Y2(()=>I1.value==="text"?u1.value:"*".repeat(u1.value.length??0)),T1=((a1=n.peek())==null?void 0:a1.multiline)??((K=r.peek())==null?void 0:K.multiline)??!1,k1=t91(d,s1,y,g,h,B,t.clippingRect,Z,G,t.root.gylphGroupManager,Q,_,P,T,u,T1?"break-word":"keep-all");u.push(()=>n2(()=>{var t1;return(t1=g.value)==null?void 0:t1.setCustomLayouting(k1.value)})),m3(n,r,h.size,u),o7(n,r,k,u);const U1=jp(n,r,"disabled",!1),o1=zl1(u1,Q,t1=>{var N1,G1,R1,V1;$!=null&&($.value=t1),(G1=(N1=n.peek())==null?void 0:N1.onValueChange)==null||G1.call(N1,t1),(V1=(R1=r.peek())==null?void 0:R1.onValueChange)==null||V1.call(R1,t1)},T1,I1,U1,jp(n,r,"tabIndex",0),u),A1=(t1,N1,G1)=>{const R1=o1.peek();R1!=null&&(l.peek()||R1.focus(),t1!=null&&N1!=null&&R1.setSelectionRange(t1,N1,G1),Q.value=[R1.selectionStart??0,R1.selectionEnd??0])};Vl1(o1,l,u,t1=>{var N1,G1,R1,V1;(G1=(N1=r.peek())==null?void 0:N1.onFocusChange)==null||G1.call(N1,t1),(V1=(R1=n.peek())==null?void 0:R1.onFocusChange)==null||V1.call(R1,t1)});const y1=Gl1(h,T,A1,U1);return Object.assign(h,{isClipped:k,mergedProperties:d,valueSignal:u1,focus:()=>A1(),root:t.root,element:o1,node:g,interactionPanel:Jn(D,t.root,t.clippingRect,h.size,u),handlers:I3(n,r,i,o,C,y1,"text"),initializers:u})}function Gl1(t,e,n,r){return Y2(()=>{if(r.value)return;let i;return{onPointerDown:s=>{var C;if(s.defaultPrevented||s.uv==null||e.current==null)return;Ul1(s.nativeEvent),(C=s.stopPropagation)==null||C.call(s);const o=HX(t,s.uv,e.current);i=o,setTimeout(()=>n(o,o))},onPointerUp:s=>{i=void 0},onPointerLeave:s=>{i=void 0},onPointerMove:s=>{var d;if(i==null||s.uv==null||e.current==null)return;(d=s.stopPropagation)==null||d.call(s);const o=HX(t,s.uv,e.current),C=Math.min(i,o),l=Math.max(i,o),u=in(C,l,u))}}})}function zl1(t,e,n,r,i,s,o,C){const l=o2(void 0);return C.push(u=>{const d=document.createElement(r?"textarea":"input"),h=d.style;h.setProperty("position","absolute"),h.setProperty("left","-1000vw"),h.setProperty("top","0"),h.setProperty("pointerEvents","none"),h.setProperty("opacity","0"),d.addEventListener("input",()=>{n==null||n(d.value),g()});const g=()=>{const{selectionStart:v,selectionEnd:y}=d;if(v==null||y==null){e.value=void 0;return}const k=e.peek();k!=null&&k[0]===v&&k[1]===y||(e.value=[v,y])};return d.addEventListener("keydown",g),d.addEventListener("keyup",g),d.addEventListener("blur",()=>e.value=void 0),document.body.appendChild(d),l.value=d,u.push(()=>{l.value=void 0,d.remove()},n2(()=>d.value=t.value),n2(()=>d.disabled=s.value),n2(()=>d.tabIndex=o.value),n2(()=>d.setAttribute("type",i.value))),u}),l}function Vl1(t,e,n,r){n.push(()=>n2(()=>{const i=t.value;if(i==null)return;e.value=document.activeElement===i;const s=()=>{const o=document.activeElement===i;o!=e.value&&(e.value=o,r(o))};return i.addEventListener("focus",s),i.addEventListener("blur",s),()=>{i.removeEventListener("focus",s),i.removeEventListener("blur",s)}}))}function HX({size:t,borderInset:e,paddingInset:n},r,i){const s=t.peek(),o=e.peek(),C=n.peek();if(s==null||o==null||C==null)return 0;const[l,u]=s,[d,,,h]=o,[g,,,v]=C,y=r.x*l-h-v,k=-r.y*u+d+g;return i.getCharIndex(y,k)}function $l1(t,e,n,r,i,s){const o=o2([]),C=o2([]),l=[];S3(o,l);const u=k3(e,n,r,{...M3,...E3(t.root.size),...B3(o),...y3(C)}),d=L3();l7(void 0,d,t,u,i,!0,l);const h=v3(u,d,t.root.pixelSize);w3(t.root,i,h,l);const g=a7(t.childrenMatrix,h),v=C7(t.clippingRect,g,d.size,t.root.pixelSize),y=x3(d,v,u),k=I8(u,We.Custom,void 0,t.orderInfo),B=na(t.root,t.clippingRect);return l.push(I=>{const D=s.current;if(D==null)return I;if(D.matrixAutoUpdate=!1,D.material instanceof Re){const T=D.material;T.clippingPlanes=B,T.needsUpdate=!0,T.shadowSide=A6,I.push(()=>n2(()=>{T.depthTest=t.root.depthTest.value,t.root.requestRender()}))}return D.raycast=Jt(D,D.raycast,t.root.object,t.clippingRect,k),$n(D,t.root,k),I.push(n2(()=>{D.renderOrder=t.root.renderOrder.value,t.root.requestRender()}),n2(()=>{D.receiveShadow=u.value.read("receiveShadow",!1),t.root.requestRender()}),n2(()=>{D.castShadow=u.value.read("castShadow",!1),t.root.requestRender()}),n2(()=>{if(d.size.value==null)return;const[T,_]=d.size.value,P=t.root.pixelSize.value;D.scale.set(T*P,_*P,1),D.updateMatrix(),t.root.requestRender()}),n2(()=>{D.visible=y.value,t.root.requestRender()})),I}),m3(e,n,d.size,l),o7(e,n,v,l),Object.assign(d,{isClipped:v,mergedProperties:u,root:t.root,handlers:I3(e,n,r,o,C),initializers:l})}function ql1(t,e,n,r,i,s){const o=o2([]),C=o2([]),l=[],u=L3();S3(o,l);const d=o2(new d1(1,1,1)),h=Y2(()=>d.value.x/d.value.y),g=k3(e,n,r,{...M3,...E3(t.root.size),...B3(o),...y3(C)},md,_=>_.add("aspectRatio",h));l7(void 0,u,t,g,i,!0,l);const v=v3(g,u,t.root.pixelSize);w3(t.root,i,v,l);const y=a7(t.childrenMatrix,v),k=C7(t.clippingRect,y,u.size,t.root.pixelSize),B=x3(u,k,g),I=Xn(g),D=I8(g,We.Panel,I,t.orderInfo);l.push(_=>S5(g,D,I,t.root.panelGroupManager,y,u.size,void 0,u.borderInset,t.clippingRect,B,qn(),_));const T=I8(void 0,We.Object,void 0,D);return m3(e,n,u.size,l),o7(e,n,k,l),Object.assign(u,{isClipped:k,mergedProperties:g,remeasureContent:Yl1(g,t.root,u,t.clippingRect,B,T,d,s,l),interactionPanel:Jn(D,t.root,t.clippingRect,u.size,l),handlers:I3(e,n,r,o,C),initializers:l})}const sf=new je,UX=new d1().setScalar(.001),Jl1=new d1,Xl1="back";function Yl1(t,e,n,r,i,s,o,C,l){const u=na(e,r),d=Z2(t,"depthAlign",Xl1),h=Z2(t,"keepAspectRatio",!0),g=new d1,v=new d1,y=(B,I,D,T)=>{B!=null&&(B.visible=I,B.traverse(_=>{_ instanceof v9&&(_.renderOrder=D,_.material instanceof Re&&(_.material.depthTest=T))}),e.requestRender())},k=()=>{const B=C.current;if(B==null){g.copy(UX),v.set(0,0,0);return}B.traverse(D=>{D instanceof v9&&($n(D,e,s),D.material.clippingPlanes=u,D.material.needsUpdate=!0,D.raycast=Jt(D,D.raycast,e.object,r,s))});const I=B.parent;B.parent=null,sf.setFromObject(B),sf.getSize(g).max(UX),o.value=g,I!=null&&(B.parent=I),sf.getCenter(v),e.requestRender()};return l.push(()=>n2(()=>{y(C.current,i.value,e.renderOrder.value,e.depthTest.value),e.requestRender()}),B=>{const I=C.current;return I==null||(k(),B.push(n2(()=>{const{size:{value:D},paddingInset:{value:T},borderInset:{value:_}}=n;if(D==null||T==null||_==null)return;const[P,Q]=D,[U,G,Z,H]=T,[$,u1,I1,s1]=_,T1=U+$,k1=G+u1,U1=Z+I1,o1=H+s1,A1=P-o1-k1,y1=Q-T1-U1,g1=e.pixelSize.value;I.scale.set(A1*g1,y1*g1,h.value?y1*g1*g.z/g.y:g.z).divide(g),I.position.copy(v).negate(),I.position.z-=_C1[d.value]*g.z,I.position.multiply(I.scale),I.position.add(Jl1.set((o1-k1)*.5*g1,(U1-T1)*.5*g1,0)),I.updateMatrix(),e.requestRender()}))),B}),()=>{y(C.current,i.peek(),e.renderOrder.peek(),e.depthTest.peek()),k()}}function Kl1(t,e,n,r,i,s){if(i instanceof De){const o=2*Math.tan(Math.PI*i.fov/360)*r;n.value=o/s,e.value=o,t.value=o*i.aspect}if(i instanceof us){const o=i.top-i.bottom,C=i.right-i.left;n.value=o/s,e.value=o,t.value=C}}function Zl1(t,{src:e,autoplay:n,loop:r,muted:i,playbackRate:s,preservesPitch:o,volume:C}){if(!(e instanceof HTMLElement)){if(t.playsInline=!0,t.volume=C??1,t.preservesPitch=o??!0,t.playbackRate=s??1,t.muted=i??!1,t.loop=r??!1,t.autoplay=n??!1,e==null){t.removeAttribute("src"),t.removeAttribute("srcObject");return}typeof e=="string"?t.src=e:t.srcObject=e}}function ec1(t,e){let n;const r=()=>{e(),n=t.requestVideoFrameCallback(r)};return n=t.requestVideoFrameCallback(r),()=>t.cancelVideoFrameCallback(n)}function S3(t,e){e.push(()=>()=>n91(t))}function tc1(t,e,n,r,i,s){let o=!1;gd(e,n,r,l=>{"hover"in l&&(o=!0)});const C=(e==null?void 0:e.cursor)??(n==null?void 0:n.cursor)??s;if(!o&&(e==null?void 0:e.onHoverChange)==null&&(n==null?void 0:n.onHoverChange)==null&&C==null){i.value.length=0;return}Mn("onPointerOver",t,({pointerId:l})=>{var u,d;i.value=[l,...i.value],i.value.length===1&&((u=n==null?void 0:n.onHoverChange)==null||u.call(n,!0),(d=e==null?void 0:e.onHoverChange)==null||d.call(e,!0)),C!=null&&nc1(i,C)}),Mn("onPointerOut",t,({pointerId:l})=>{var u,d;i.value=i.value.filter(h=>h!=l),i.value.length===0&&((u=n==null?void 0:n.onHoverChange)==null||u.call(n,!1),(d=e==null?void 0:e.onHoverChange)==null||d.call(e,!1)),n91(i)})}function B3(t){return{hover:ta(()=>t.value.length>0)}}const oA=[],Fc=[];function nc1(t,e){oA.push(t),Fc.push(e),document.body.style.cursor=e}function n91(t){const e=oA.indexOf(t);e!=-1&&(oA.splice(e,1),Fc.splice(e,1),document.body.style.cursor=Fc[Fc.length-1]??"default")}var WX={},rc1=Object.create,kd=Object.defineProperty,ic1=Object.getOwnPropertyDescriptor,sc1=Object.getOwnPropertyNames,oc1=Object.getPrototypeOf,Cc1=Object.prototype.hasOwnProperty,ia=(t,e)=>()=>(t&&(e=t(t=0)),e),S0=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ed=(t,e)=>{for(var n in e)kd(t,n,{get:e[n],enumerable:!0})},r91=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of sc1(e))!Cc1.call(t,i)&&i!==n&&kd(t,i,{get:()=>e[i],enumerable:!(r=ic1(e,i))||r.enumerable});return t},Ge=(t,e,n)=>(n=t!=null?rc1(oc1(t)):{},r91(e||!t||!t.__esModule?kd(n,"default",{value:t,enumerable:!0}):n,t)),Nn=t=>r91(kd({},"__esModule",{value:!0}),t),i91,ac1=ia(()=>{i91=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} `}),s91={};Ed(s91,{default:()=>o91});var o91,Cv=ia(()=>{ac1(),o91={readFileSync:()=>i91}}),lc1=S0((t,e)=>{var n=class{constructor(r={}){if(!(r.maxSize&&r.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof r.maxAge=="number"&&r.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=r.maxSize,this.maxAge=r.maxAge||1/0,this.onEviction=r.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(r){if(typeof this.onEviction=="function")for(let[i,s]of r)this.onEviction(i,s.value)}_deleteIfExpired(r,i){return typeof i.expiry=="number"&&i.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(r,i.value),this.delete(r)):!1}_getOrDeleteIfExpired(r,i){if(this._deleteIfExpired(r,i)===!1)return i.value}_getItemValue(r,i){return i.expiry?this._getOrDeleteIfExpired(r,i):i.value}_peek(r,i){let s=i.get(r);return this._getItemValue(r,s)}_set(r,i){this.cache.set(r,i),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(r,i){this.oldCache.delete(r),this._set(r,i)}*_entriesAscending(){for(let r of this.oldCache){let[i,s]=r;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield r)}for(let r of this.cache){let[i,s]=r;this._deleteIfExpired(i,s)===!1&&(yield r)}}get(r){if(this.cache.has(r)){let i=this.cache.get(r);return this._getItemValue(r,i)}if(this.oldCache.has(r)){let i=this.oldCache.get(r);if(this._deleteIfExpired(r,i)===!1)return this._moveToRecent(r,i),i.value}}set(r,i,{maxAge:s=this.maxAge===1/0?void 0:Date.now()+this.maxAge}={}){this.cache.has(r)?this.cache.set(r,{value:i,maxAge:s}):this._set(r,{value:i,expiry:s})}has(r){return this.cache.has(r)?!this._deleteIfExpired(r,this.cache.get(r)):this.oldCache.has(r)?!this._deleteIfExpired(r,this.oldCache.get(r)):!1}peek(r){if(this.cache.has(r))return this._peek(r,this.cache);if(this.oldCache.has(r))return this._peek(r,this.oldCache)}delete(r){let i=this.cache.delete(r);return i&&this._size--,this.oldCache.delete(r)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(r){if(!(r&&r>0))throw new TypeError("`maxSize` must be a number greater than 0");let i=[...this._entriesAscending()],s=i.length-r;s<0?(this.cache=new Map(i),this.oldCache=new Map,this._size=i.length):(s>0&&this._emitEvictions(i.slice(0,s)),this.oldCache=new Map(i.slice(s)),this.cache=new Map,this._size=0),this.maxSize=r}*keys(){for(let[r]of this)yield r}*values(){for(let[,r]of this)yield r}*[Symbol.iterator](){for(let r of this.cache){let[i,s]=r;this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}for(let r of this.oldCache){let[i,s]=r;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}}*entriesDescending(){let r=[...this.cache];for(let i=r.length-1;i>=0;--i){let s=r[i],[o,C]=s;this._deleteIfExpired(o,C)===!1&&(yield[o,C.value])}r=[...this.oldCache];for(let i=r.length-1;i>=0;--i){let s=r[i],[o,C]=s;this.cache.has(o)||this._deleteIfExpired(o,C)===!1&&(yield[o,C.value])}}*entriesAscending(){for(let[r,i]of this._entriesAscending())yield[r,i.value]}get size(){if(!this._size)return this.oldCache.size;let r=0;for(let i of this.oldCache.keys())this.cache.has(i)||r++;return Math.min(this._size+r,this.maxSize)}};e.exports=n}),C91={};Ed(C91,{default:()=>a91});var a91,l91=ia(()=>{a91={yellow:t=>t}}),c91=S0(()=>{}),av=S0((t,e)=>{var n=(l91(),Nn(C91)),r=c91(),i=class extends Error{constructor(s,o,C,l,u,d){super(s),this.name="CssSyntaxError",this.reason=s,u&&(this.file=u),l&&(this.source=l),d&&(this.plugin=d),typeof o<"u"&&typeof C<"u"&&(typeof o=="number"?(this.line=o,this.column=C):(this.line=o.line,this.column=o.column,this.endLine=C.line,this.endColumn=C.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let o=this.source;s==null&&(s=n.isColorSupported),r&&s&&(o=r(o));let C=o.split(/\r?\n/),l=Math.max(this.line-3,0),u=Math.min(this.line+2,C.length),d=String(u).length,h,g;if(s){let{bold:v,gray:y,red:k}=n.createColors(!0);h=B=>v(k(B)),g=B=>y(B)}else h=g=v=>v;return C.slice(l,u).map((v,y)=>{let k=l+1+y,B=" "+(" "+k).slice(-d)+" | ";if(k===this.line){let I=g(B.replace(/\d/g," "))+v.slice(0,this.column-1).replace(/[^\t]/g," ");return h(">")+g(B)+v+` `+I+h("^")}return" "+g(B)+v}).join(` `)}toString(){let s=this.showSourceCode();return s&&(s=` @@ -4102,7 +4102,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Pd=L,Au1=gu1;function mu1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var vu1=typeof Object.is=="function"?Object.is:mu1,wu1=Au1.useSyncExternalStore,Lu1=Pd.useRef,yu1=Pd.useEffect,xu1=Pd.useMemo,Iu1=Pd.useDebugValue;V91.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=Lu1(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=xu1(function(){function l(v){if(!u){if(u=!0,d=v,v=r(v),i!==void 0&&o.hasValue){var y=o.value;if(i(y,v))return h=y}return h=v}if(y=h,vu1(d,v))return y;var k=r(v);return i!==void 0&&i(y,k)?y:(d=v,h=k)}var u=!1,d,h,g=n===void 0?null:n;return[function(){return l(e())},g===null?void 0:function(){return l(g())}]},[e,n,r,i]);var C=wu1(t,s[0],s[1]);return yu1(function(){o.hasValue=!0,o.value=C},[C]),Iu1(C),C};z91.exports=V91;var ku1=z91.exports;const Eu1=vu(ku1);var J91={BASE_URL:"/uikit/examples/lucide/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:Mu1}=E41,{useSyncExternalStoreWithSelector:Su1}=Eu1;let qX=!1;const Bu1=t=>t;function Du1(t,e=Bu1,n){(J91?"production":void 0)!=="production"&&n&&!qX&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),qX=!0);const r=Su1(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return Mu1(r),r}const JX=t=>{(J91?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?ou1(t):t,n=(r,i)=>Du1(e,r,i);return Object.assign(n,e),n},bu1=t=>t?JX(t):JX,Tu1=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],Ru1=t=>t&&t.isOrthographicCamera;L.forwardRef(({children:t,dpr:e,frames:n=1/0,renderPriority:r=0,eventPriority:i=0,...s},o)=>{const C=L.useMemo(()=>new Te(void 0),[]),l=L.useRef(null),u=Vn();e??(e=u.getState().viewport.dpr),L.useImperativeHandle(o,()=>l.current,[]);const d=L.useMemo(()=>Y2(()=>{var g;return(g=C.value)==null?void 0:g.texture}),[C]),h=L.useMemo(()=>{let g=u.getState();const v=new De(50,1,.1,1e3);v.position.set(0,0,5);const y=new o0;let k={events:{compute:Fu1.bind(null,l),priority:i},size:{width:1,height:1,left:0,top:0},camera:v,scene:new BC,raycaster:new dd,pointer:y,mouse:y,previousRoot:u};const B=bu1((I,D)=>{const T=()=>{const P={};for(const Q in g)Tu1.includes(Q)||(P[Q]=g[Q]);return Object.assign(P,k,{events:{...g.events,...k.events},viewport:Object.assign({},g.viewport,g.viewport.getCurrentViewport(v,new d1,k.size))})},_=()=>I(T());return{...g,set(P){typeof P=="function"&&(P=P(D())),Object.assign(k,P),_()},setPreviousState(P){g=P,_()},get:D,setEvents(P){Object.assign(k.events,P),_()},...T()}});return Object.assign(B,{setState(I){B.getState().set(I)}})},[i,u]);return L.useEffect(()=>u.subscribe(h.getState().setPreviousState),[u,h]),L.useEffect(()=>{if(l.current==null)return;const g=C.value=new m6(1,1,{minFilter:j9,magFilter:j9,type:Fn}),{size:v}=l.current,y=n2(()=>{if(v.value==null)return;const[k,B]=v.value;g.setSize(k*e,B*e),h.setState({size:{width:k,height:B,top:0,left:0},viewport:{...u.getState().viewport,width:k,height:B,aspect:k/B}})});return()=>{y(),g.dispose()}},[C,u,h,e]),x.jsxs(x.Fragment,{children:[ts.createPortal(x.jsx(hd.Provider,{value:h,children:x.jsxs(_u1,{renderPriority:r,frames:n,fbo:C,children:[t,x.jsx("group",{onPointerOver:()=>null})]})}),h,null),x.jsx(Iv,{src:d,objectFit:"fill",keepAspectRatio:!1,...s,ref:l})]})});function Fu1({current:t},e,n,r){var o,C,l;if(t==null||r==null)return!1;r.raycaster.camera||(l=(C=r.events).compute)==null||l.call(C,e,r,(o=r.previousRoot)==null?void 0:o.getState());const[i]=r.raycaster.intersectObject(t.interactionPanel);if(!i)return!1;const s=i.uv;if(!s)return!1;n.raycaster.setFromCamera(n.pointer.set(s.x*2-1,s.y*2-1),n.camera)}function _u1({frames:t,renderPriority:e,children:n,fbo:r}){const i=Vn();L.useEffect(()=>i.subscribe((d,h)=>{const{size:g,camera:v}=d;g&&(Ru1(v)?(v.left=g.width/-2,v.right=g.width/2,v.top=g.height/2,v.bottom=g.height/-2):v.aspect=g.width/g.height,(g!==h.size||v!==h.camera)&&(v.updateProjectionMatrix(),v.updateMatrixWorld()))}),[i]);let s=0,o,C,l,u;return d21(d=>{const h=r.peek();h!=null&&(t===1/0||s{const n=L.useMemo(()=>o2(void 0),[]),r=L.useMemo(()=>o2(1),[]),i=t.src instanceof HTMLVideoElement?t.src:void 0,s=L.useMemo(()=>i??document.createElement("video"),[i]),o=pu(l=>l.invalidate);L.useEffect(()=>ec1(s,o),[s,o]),Zl1(s,t),L.useEffect(()=>{const l=()=>r.value=s.videoWidth/s.videoHeight;return l(),s.addEventListener("resize",l),()=>s.removeEventListener("resize",l)},[r,s]),L.useEffect(()=>{const l=new a01(s);return l.colorSpace=Z9,n.value=l,()=>l.dispose()},[n,s]);const C=L.useRef(null);return L.useImperativeHandle(e,()=>({...C.current,element:s}),[s]),x.jsx(Pu1.Provider,{value:s,children:x.jsx(Iv,{aspectRatio:r,...t,ref:C,src:n})})});var Qu1=Object.create,Qd=Object.defineProperty,Nu1=Object.getOwnPropertyDescriptor,Ou1=Object.getOwnPropertyNames,ju1=Object.getPrototypeOf,Hu1=Object.prototype.hasOwnProperty,Uu1=(t,e)=>()=>(t&&(e=t(t=0)),e),Nd=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Od=(t,e)=>{for(var n in e)Qd(t,n,{get:e[n],enumerable:!0})},X91=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ou1(e))!Hu1.call(t,i)&&i!==n&&Qd(t,i,{get:()=>e[i],enumerable:!(r=Nu1(e,i))||r.enumerable});return t},aa=(t,e,n)=>(n=t!=null?Qu1(ju1(t)):{},X91(e||!t||!t.__esModule?Qd(n,"default",{value:t,enumerable:!0}):n,t)),Wu1=t=>X91(Qd({},"__esModule",{value:!0}),t),Gu1=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},XX=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Eo=(t,e,n)=>(Gu1(t,e,"access private method"),n),zu1=Nd(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(){}e.prototype={diff:function(i,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},C=o.callback;typeof o=="function"&&(C=o,o={}),this.options=o;var l=this;function u(D){return C?(setTimeout(function(){C(void 0,D)},0),!0):D}i=this.castInput(i),s=this.castInput(s),i=this.removeEmpty(this.tokenize(i)),s=this.removeEmpty(this.tokenize(s));var d=s.length,h=i.length,g=1,v=d+h;o.maxEditLength&&(v=Math.min(v,o.maxEditLength));var y=[{newPos:-1,components:[]}],k=this.extractCommon(y[0],s,i,0);if(y[0].newPos+1>=d&&k+1>=h)return u([{value:this.join(s),count:s.length}]);function B(){for(var D=-1*g;D<=g;D+=2){var T=void 0,_=y[D-1],P=y[D+1],Q=(P?P.newPos:0)-D;_&&(y[D-1]=void 0);var U=_&&_.newPos+1=d&&Q+1>=h)return u(n(l,T.components,s,i,l.useLongestToken));y[D]=T}g++}if(C)(function D(){setTimeout(function(){if(g>v)return C();B()||D()},0)})();else for(;g<=v;){var I=B();if(I)return I}},pushComponent:function(i,s,o){var C=i[i.length-1];C&&C.added===s&&C.removed===o?i[i.length-1]={count:C.count+1,added:s,removed:o}:i.push({count:1,added:s,removed:o})},extractCommon:function(i,s,o,C){for(var l=s.length,u=o.length,d=i.newPos,h=d-C,g=0;d+1I.length?T:I}),v.value=i.join(k)}else v.value=i.join(o.slice(h,h+v.count));h+=v.count,v.added||(g+=v.count)}}var B=s[d-1];return d>1&&typeof B.value=="string"&&(B.added||B.removed)&&i.equals("",B.value)&&(s[d-2].value+=B.value,s.pop()),s}function r(i){return{newPos:i.newPos,components:i.components.slice(0)}}}),Vu1=Nd(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=i,t.arrayDiff=void 0;var e=n(zu1());function n(s){return s&&s.__esModule?s:{default:s}}var r=new e.default;t.arrayDiff=r,r.tokenize=function(s){return s.slice()},r.join=r.removeEmpty=function(s){return s};function i(s,o,C){return r.diff(s,o,C)}}),jd=Nd((t,e)=>{var n=new Proxy(String,{get:()=>n});e.exports=n}),Y91={};Od(Y91,{default:()=>Z91,shouldHighlight:()=>K91});var K91,Z91,$u1=Uu1(()=>{K91=()=>!1,Z91=String}),qu1=Nd(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=h,t.default=g;var e=($u1(),Wu1(Y91)),n=i(jd(),!0);function r(v){if(typeof WeakMap!="function")return null;var y=new WeakMap,k=new WeakMap;return(r=function(B){return B?k:y})(v)}function i(v,y){if(!y&&v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var k=r(y);if(k&&k.has(v))return k.get(v);var B={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in v)if(D!=="default"&&Object.prototype.hasOwnProperty.call(v,D)){var T=I?Object.getOwnPropertyDescriptor(v,D):null;T&&(T.get||T.set)?Object.defineProperty(B,D,T):B[D]=v[D]}return B.default=v,k&&k.set(v,B),B}var s;function o(v){return v?(s!=null||(s=new n.default.constructor({enabled:!0,level:1})),s):n.default}var C=!1;function l(v){return{gutter:v.grey,marker:v.red.bold,message:v.red.bold}}var u=/\r\n|[\n\r\u2028\u2029]/;function d(v,y,k){let B=Object.assign({column:0,line:-1},v.start),I=Object.assign({},B,v.end),{linesAbove:D=2,linesBelow:T=3}=k||{},_=B.line,P=B.column,Q=I.line,U=I.column,G=Math.max(_-(D+1),0),Z=Math.min(y.length,Q+T);_===-1&&(G=0),Q===-1&&(Z=y.length);let H=Q-_,$={};if(H)for(let u1=0;u1<=H;u1++){let I1=u1+_;if(!P)$[I1]=!0;else if(u1===0){let s1=y[I1-1].length;$[I1]=[P,s1-P+1]}else if(u1===H)$[I1]=[0,U];else{let s1=y[I1-u1].length;$[I1]=[0,s1]}}else P===U?P?$[_]=[P,0]:$[_]=!0:$[_]=[P,U-P];return{start:G,end:Z,markerLines:$}}function h(v,y,k={}){let B=(k.highlightCode||k.forceColor)&&(0,e.shouldHighlight)(k),I=o(k.forceColor),D=l(I),T=($,u1)=>B?$(u1):u1,_=v.split(u),{start:P,end:Q,markerLines:U}=d(y,_,k),G=y.start&&typeof y.start.column=="number",Z=String(Q).length,H=(B?(0,e.default)(v,k):v).split(u,Q).slice(P,Q).map(($,u1)=>{let I1=P+1+u1,s1=` ${` ${I1}`.slice(-Z)} |`,T1=U[I1],k1=!U[I1+1];if(T1){let U1="";if(Array.isArray(T1)){let o1=$.slice(0,Math.max(T1[0]-1,0)).replace(/[^\t]/g," "),A1=T1[1]||1;U1=[` + */var Pd=L,Au1=gu1;function mu1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var vu1=typeof Object.is=="function"?Object.is:mu1,wu1=Au1.useSyncExternalStore,Lu1=Pd.useRef,yu1=Pd.useEffect,xu1=Pd.useMemo,Iu1=Pd.useDebugValue;V91.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=Lu1(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=xu1(function(){function l(v){if(!u){if(u=!0,d=v,v=r(v),i!==void 0&&o.hasValue){var y=o.value;if(i(y,v))return h=y}return h=v}if(y=h,vu1(d,v))return y;var k=r(v);return i!==void 0&&i(y,k)?y:(d=v,h=k)}var u=!1,d,h,g=n===void 0?null:n;return[function(){return l(e())},g===null?void 0:function(){return l(g())}]},[e,n,r,i]);var C=wu1(t,s[0],s[1]);return yu1(function(){o.hasValue=!0,o.value=C},[C]),Iu1(C),C};z91.exports=V91;var ku1=z91.exports;const Eu1=vu(ku1);var J91={BASE_URL:"/uikit/examples/lucide/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:Mu1}=E41,{useSyncExternalStoreWithSelector:Su1}=Eu1;let qX=!1;const Bu1=t=>t;function Du1(t,e=Bu1,n){(J91?"production":void 0)!=="production"&&n&&!qX&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),qX=!0);const r=Su1(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return Mu1(r),r}const JX=t=>{(J91?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?ou1(t):t,n=(r,i)=>Du1(e,r,i);return Object.assign(n,e),n},bu1=t=>t?JX(t):JX,Tu1=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],Ru1=t=>t&&t.isOrthographicCamera;L.forwardRef(({children:t,dpr:e,frames:n=1/0,renderPriority:r=0,eventPriority:i=0,...s},o)=>{const C=L.useMemo(()=>new Te(void 0),[]),l=L.useRef(null),u=Vn();e??(e=u.getState().viewport.dpr),L.useImperativeHandle(o,()=>l.current,[]);const d=L.useMemo(()=>Y2(()=>{var g;return(g=C.value)==null?void 0:g.texture}),[C]),h=L.useMemo(()=>{let g=u.getState();const v=new De(50,1,.1,1e3);v.position.set(0,0,5);const y=new o0;let k={events:{compute:Fu1.bind(null,l),priority:i},size:{width:1,height:1,left:0,top:0},camera:v,scene:new BC,raycaster:new dd,pointer:y,mouse:y,previousRoot:u};const B=bu1((I,D)=>{const T=()=>{const P={};for(const Q in g)Tu1.includes(Q)||(P[Q]=g[Q]);return Object.assign(P,k,{events:{...g.events,...k.events},viewport:Object.assign({},g.viewport,g.viewport.getCurrentViewport(v,new d1,k.size))})},_=()=>I(T());return{...g,set(P){typeof P=="function"&&(P=P(D())),Object.assign(k,P),_()},setPreviousState(P){g=P,_()},get:D,setEvents(P){Object.assign(k.events,P),_()},...T()}});return Object.assign(B,{setState(I){B.getState().set(I)}})},[i,u]);return L.useEffect(()=>u.subscribe(h.getState().setPreviousState),[u,h]),L.useEffect(()=>{if(l.current==null)return;const g=C.value=new m6(1,1,{minFilter:j9,magFilter:j9,type:Fn}),{size:v}=l.current,y=n2(()=>{if(v.value==null)return;const[k,B]=v.value;g.setSize(k*e,B*e),h.setState({size:{width:k,height:B,top:0,left:0},viewport:{...u.getState().viewport,width:k,height:B,aspect:k/B}})});return()=>{y(),g.dispose()}},[C,u,h,e]),x.jsxs(x.Fragment,{children:[ts.createPortal(x.jsx(hd.Provider,{value:h,children:x.jsxs(_u1,{renderPriority:r,frames:n,fbo:C,children:[t,x.jsx("group",{onPointerOver:()=>null})]})}),h,null),x.jsx(Iv,{src:d,objectFit:"fill",keepAspectRatio:!1,...s,ref:l})]})});function Fu1({current:t},e,n,r){var o,C,l;if(t==null||r==null)return!1;r.raycaster.camera||(l=(C=r.events).compute)==null||l.call(C,e,r,(o=r.previousRoot)==null?void 0:o.getState());const[i]=r.raycaster.intersectObject(t.interactionPanel);if(!i)return!1;const s=i.uv;if(!s)return!1;n.raycaster.setFromCamera(n.pointer.set(s.x*2-1,s.y*2-1),n.camera)}function _u1({frames:t,renderPriority:e,children:n,fbo:r}){const i=Vn();L.useEffect(()=>i.subscribe((d,h)=>{const{size:g,camera:v}=d;g&&(Ru1(v)?(v.left=g.width/-2,v.right=g.width/2,v.top=g.height/2,v.bottom=g.height/-2):v.aspect=g.width/g.height,(g!==h.size||v!==h.camera)&&(v.updateProjectionMatrix(),v.updateMatrixWorld()))}),[i]);let s=0,o,C,l,u;return d21(d=>{const h=r.peek();h!=null&&(t===1/0||s{const n=L.useMemo(()=>o2(void 0),[]),r=L.useMemo(()=>o2(1),[]),i=t.src instanceof HTMLVideoElement?t.src:void 0,s=L.useMemo(()=>{if(i!=null)return i;const u=document.createElement("video");return u.style.position="absolute",u.style.width="1px",u.style.zIndex="-1000",u.style.top="0px",u.style.left="0px",u},[i]),o=t.src instanceof HTMLVideoElement;L.useEffect(()=>{if(!o)return document.body.appendChild(s),()=>s.remove()},[s,o]);const C=pu(u=>u.invalidate);L.useEffect(()=>ec1(s,C),[s,C]),Zl1(s,t),L.useEffect(()=>{const u=()=>r.value=s.videoWidth/s.videoHeight;return u(),s.addEventListener("resize",u),()=>s.removeEventListener("resize",u)},[r,s]),L.useEffect(()=>{const u=new a01(s);return u.colorSpace=Z9,n.value=u,()=>u.dispose()},[n,s]);const l=L.useRef(null);return L.useImperativeHandle(e,()=>({...l.current,element:s}),[s]),x.jsx(Pu1.Provider,{value:s,children:x.jsx(Iv,{aspectRatio:r,...t,ref:l,src:n})})});var Qu1=Object.create,Qd=Object.defineProperty,Nu1=Object.getOwnPropertyDescriptor,Ou1=Object.getOwnPropertyNames,ju1=Object.getPrototypeOf,Hu1=Object.prototype.hasOwnProperty,Uu1=(t,e)=>()=>(t&&(e=t(t=0)),e),Nd=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Od=(t,e)=>{for(var n in e)Qd(t,n,{get:e[n],enumerable:!0})},X91=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ou1(e))!Hu1.call(t,i)&&i!==n&&Qd(t,i,{get:()=>e[i],enumerable:!(r=Nu1(e,i))||r.enumerable});return t},aa=(t,e,n)=>(n=t!=null?Qu1(ju1(t)):{},X91(e||!t||!t.__esModule?Qd(n,"default",{value:t,enumerable:!0}):n,t)),Wu1=t=>X91(Qd({},"__esModule",{value:!0}),t),Gu1=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},XX=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Eo=(t,e,n)=>(Gu1(t,e,"access private method"),n),zu1=Nd(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(){}e.prototype={diff:function(i,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},C=o.callback;typeof o=="function"&&(C=o,o={}),this.options=o;var l=this;function u(D){return C?(setTimeout(function(){C(void 0,D)},0),!0):D}i=this.castInput(i),s=this.castInput(s),i=this.removeEmpty(this.tokenize(i)),s=this.removeEmpty(this.tokenize(s));var d=s.length,h=i.length,g=1,v=d+h;o.maxEditLength&&(v=Math.min(v,o.maxEditLength));var y=[{newPos:-1,components:[]}],k=this.extractCommon(y[0],s,i,0);if(y[0].newPos+1>=d&&k+1>=h)return u([{value:this.join(s),count:s.length}]);function B(){for(var D=-1*g;D<=g;D+=2){var T=void 0,_=y[D-1],P=y[D+1],Q=(P?P.newPos:0)-D;_&&(y[D-1]=void 0);var U=_&&_.newPos+1=d&&Q+1>=h)return u(n(l,T.components,s,i,l.useLongestToken));y[D]=T}g++}if(C)(function D(){setTimeout(function(){if(g>v)return C();B()||D()},0)})();else for(;g<=v;){var I=B();if(I)return I}},pushComponent:function(i,s,o){var C=i[i.length-1];C&&C.added===s&&C.removed===o?i[i.length-1]={count:C.count+1,added:s,removed:o}:i.push({count:1,added:s,removed:o})},extractCommon:function(i,s,o,C){for(var l=s.length,u=o.length,d=i.newPos,h=d-C,g=0;d+1I.length?T:I}),v.value=i.join(k)}else v.value=i.join(o.slice(h,h+v.count));h+=v.count,v.added||(g+=v.count)}}var B=s[d-1];return d>1&&typeof B.value=="string"&&(B.added||B.removed)&&i.equals("",B.value)&&(s[d-2].value+=B.value,s.pop()),s}function r(i){return{newPos:i.newPos,components:i.components.slice(0)}}}),Vu1=Nd(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=i,t.arrayDiff=void 0;var e=n(zu1());function n(s){return s&&s.__esModule?s:{default:s}}var r=new e.default;t.arrayDiff=r,r.tokenize=function(s){return s.slice()},r.join=r.removeEmpty=function(s){return s};function i(s,o,C){return r.diff(s,o,C)}}),jd=Nd((t,e)=>{var n=new Proxy(String,{get:()=>n});e.exports=n}),Y91={};Od(Y91,{default:()=>Z91,shouldHighlight:()=>K91});var K91,Z91,$u1=Uu1(()=>{K91=()=>!1,Z91=String}),qu1=Nd(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=h,t.default=g;var e=($u1(),Wu1(Y91)),n=i(jd(),!0);function r(v){if(typeof WeakMap!="function")return null;var y=new WeakMap,k=new WeakMap;return(r=function(B){return B?k:y})(v)}function i(v,y){if(!y&&v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var k=r(y);if(k&&k.has(v))return k.get(v);var B={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in v)if(D!=="default"&&Object.prototype.hasOwnProperty.call(v,D)){var T=I?Object.getOwnPropertyDescriptor(v,D):null;T&&(T.get||T.set)?Object.defineProperty(B,D,T):B[D]=v[D]}return B.default=v,k&&k.set(v,B),B}var s;function o(v){return v?(s!=null||(s=new n.default.constructor({enabled:!0,level:1})),s):n.default}var C=!1;function l(v){return{gutter:v.grey,marker:v.red.bold,message:v.red.bold}}var u=/\r\n|[\n\r\u2028\u2029]/;function d(v,y,k){let B=Object.assign({column:0,line:-1},v.start),I=Object.assign({},B,v.end),{linesAbove:D=2,linesBelow:T=3}=k||{},_=B.line,P=B.column,Q=I.line,U=I.column,G=Math.max(_-(D+1),0),Z=Math.min(y.length,Q+T);_===-1&&(G=0),Q===-1&&(Z=y.length);let H=Q-_,$={};if(H)for(let u1=0;u1<=H;u1++){let I1=u1+_;if(!P)$[I1]=!0;else if(u1===0){let s1=y[I1-1].length;$[I1]=[P,s1-P+1]}else if(u1===H)$[I1]=[0,U];else{let s1=y[I1-u1].length;$[I1]=[0,s1]}}else P===U?P?$[_]=[P,0]:$[_]=!0:$[_]=[P,U-P];return{start:G,end:Z,markerLines:$}}function h(v,y,k={}){let B=(k.highlightCode||k.forceColor)&&(0,e.shouldHighlight)(k),I=o(k.forceColor),D=l(I),T=($,u1)=>B?$(u1):u1,_=v.split(u),{start:P,end:Q,markerLines:U}=d(y,_,k),G=y.start&&typeof y.start.column=="number",Z=String(Q).length,H=(B?(0,e.default)(v,k):v).split(u,Q).slice(P,Q).map(($,u1)=>{let I1=P+1+u1,s1=` ${` ${I1}`.slice(-Z)} |`,T1=U[I1],k1=!U[I1+1];if(T1){let U1="";if(Array.isArray(T1)){let o1=$.slice(0,Math.max(T1[0]-1,0)).replace(/[^\t]/g," "),A1=T1[1]||1;U1=[` `,T(D.gutter,s1.replace(/\d/g," "))," ",o1,T(D.marker,"^").repeat(A1)].join(""),k1&&k.message&&(U1+=" "+T(D.message,k.message))}return[T(D.marker,">"),T(D.gutter,s1),$.length>0?` ${$}`:"",U1].join("")}else return` ${T(D.gutter,s1)}${$.length>0?` ${$}`:""}`}).join(` `);return k.message&&!G&&(H=`${" ".repeat(Z+1)}${k.message} ${H}`),B?I.reset(H):H}function g(v,y,k,B={}){if(!C){C=!0;let I="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let D=new Error(I);D.name="DeprecationWarning",console.warn(new Error(I))}}return k=Math.max(k,0),h(v,{start:{column:k,line:y}},B)}}),Ju1={};Od(Ju1,{__debug:()=>Vp1,check:()=>Gp1,doc:()=>Qe1,format:()=>je1,formatWithCursor:()=>Oe1,getSupportInfo:()=>zp1,util:()=>Ne1,version:()=>wp1});var Xu1=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},Hd=Xu1,Yu1=aa(Vu1(),1);function Ku1(t){let e=t.indexOf("\r");return e>=0?t.charAt(e+1)===` diff --git a/examples/lucide/index.html b/examples/lucide/index.html index 5bb51823..e13dd0a2 100644 --- a/examples/lucide/index.html +++ b/examples/lucide/index.html @@ -5,7 +5,7 @@ Document - +
diff --git a/examples/market/assets/index-tLt_zON-.js b/examples/market/assets/index-V7f-PZsN.js similarity index 99% rename from examples/market/assets/index-tLt_zON-.js rename to examples/market/assets/index-V7f-PZsN.js index c51aa0f2..b3078256 100644 --- a/examples/market/assets/index-tLt_zON-.js +++ b/examples/market/assets/index-V7f-PZsN.js @@ -4058,7 +4058,7 @@ No matching component was found for: `||d==null)&&(o.charLength=s-a+1,o.nonWhitespaceCharLength=o.charLength,o.nonWhitespaceWidth=u,o.whitespacesBetween=h)}};function SB(t,e){const n=t.length;for(;t[e]===" "&&e{for(const o of i)o(s);dI.set(t,s)}).catch(console.error)}async function SJ(t,e){const n=await(await fetch(t)).json();if(n.pages.length!==1)throw new Error("only supporting exactly 1 page");const r=await IJ.loadAsync(new URL(n.pages[0],new URL(t,window.location.href)).href);return r.anisotropy=e.capabilities.getMaxAnisotropy(),r.flipY=!1,new TJ(n,r)}const CS={thin:100,"extra-light":200,light:300,normal:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800,black:900,"extra-black":950},BJ={inter:{light:"https://pmndrs.github.io/uikit/fonts/inter-light.json",normal:"https://pmndrs.github.io/uikit/fonts/inter-normal.json",medium:"https://pmndrs.github.io/uikit/fonts/inter-medium.json","semi-bold":"https://pmndrs.github.io/uikit/fonts/inter-semi-bold.json",bold:"https://pmndrs.github.io/uikit/fonts/inter-bold.json"}};function aL(t,e,n,r){const i=Kt(void 0),s=$n(t,"fontFamily",void 0),o=$n(t,"fontWeight","normal");return r.push(()=>nn(()=>{const a=(e==null?void 0:e.value)??BJ;let u=s.value;u==null&&(u=Object.keys(a)[0]);const h=wJ(a[u],typeof o.value=="string"?CS[o.value]:o.value);let p=!1;return DJ(h,n,d=>p?void 0:i.value=d),()=>p=!0})),i}function wJ(t,e){let n=1/0,r;for(const i in t){const s=Math.abs(e-bJ(i));if(s===0)return t[i];s{const h=e.value;if(h==null)return;const p=n.value,d={font:h,fontSize:s.value,letterSpacing:o.value,lineHeight:a.value,text:Array.isArray(p)?p.map(v=>Ss(v)).join(""):Ss(p),wordBreak:u.value};r.current=d;const{width:g}=fI(d,0),{height:E}=fI(d,void 0);return{minHeight:E,minWidth:g,measure:(v,I)=>fI(d,I===H1.Undefined?void 0:v)}})}const lL={"keep-all":vJ,"break-all":CJ,"break-word":xJ},m1={};function fI(t,e){const n=lL[t.wordBreak],r=t.text;let i=0,s=0,o=0;for(;o({font:t.value}))}class PJ{constructor(e,n,r,i,s){ot(this,"group");ot(this,"baseMatrix");ot(this,"color");ot(this,"opacity");ot(this,"clippingRect");ot(this,"index");ot(this,"hidden",!0);ot(this,"glyphInfo");ot(this,"x",0);ot(this,"y",0);ot(this,"fontSize",0);ot(this,"pixelSize",0);this.group=e,this.baseMatrix=n,this.color=r,this.opacity=i,this.clippingRect=s}getX(e){return this.glyphInfo==null?this.x:this.x+e*this.glyphInfo.width*this.fontSize}show(){this.hidden&&(this.hidden=!1,this.group.requestActivate(this))}hide(){this.hidden||(this.hidden=!0,this.group.delete(this))}activate(e){this.index=e,this.writeUpdatedMatrix(),this.writeUV(),this.updateColor(this.color),this.updateOpacity(this.opacity),this.updateClippingRect(this.clippingRect)}setIndex(e){this.index=e}updateClippingRect(e){if(this.clippingRect=e,this.index==null)return;const n=this.index*16,{instanceClipping:r,root:i}=this.group;this.clippingRect==null?r.set(wE,n):this.clippingRect.toArray(r.array,n),r.addUpdateRange(n,16),r.needsUpdate=!0,i.requestRender()}updateColor(e){if(this.color=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=n.itemSize*this.index;Wm(n.array,i,e,void 0),n.addUpdateRange(i,3),n.needsUpdate=!0,r.requestRender()}updateOpacity(e){if(this.opacity=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=this.index*4+3;n.array[i]=e,n.addUpdateRange(i,1),n.needsUpdate=!0,r.requestRender()}updateGlyphAndTransformation(e,n,r,i,s){this.glyphInfo===e&&this.x===n&&this.y===r&&this.fontSize===i&&this.pixelSize===s||(this.glyphInfo!=e&&(this.glyphInfo=e,this.writeUV()),this.x=n,this.y=r,this.fontSize=i,this.pixelSize=s,this.writeUpdatedMatrix())}updateBaseMatrix(e){this.baseMatrix!==e&&(this.baseMatrix=e,this.writeUpdatedMatrix())}writeUV(){if(this.index==null||this.glyphInfo==null)return;const e=this.index*4,{instanceUV:n,root:r}=this.group;MJ(this.glyphInfo,n.array,e),n.addUpdateRange(e,4),n.needsUpdate=!0,r.requestRender()}writeUpdatedMatrix(){if(this.index==null||this.glyphInfo==null||this.baseMatrix==null)return;const e=this.index*16,{instanceMatrix:n,root:r}=this.group;n.addUpdateRange(e,16),P_.makeTranslation(this.x*this.pixelSize,this.y*this.pixelSize,0).multiply(QJ.makeScale(this.fontSize*this.glyphInfo.width*this.pixelSize,this.fontSize*this.glyphInfo.height*this.pixelSize,1)).premultiply(this.baseMatrix),P_.toArray(n.array,e),n.needsUpdate=!0,r.requestRender()}}const kJ="middle",RJ="left";function cL(t,e,n,r,i,s,o,a,u,h,p,d,g,E,v,I){let S={current:void 0};const x=_J(t,u,e,S,I),B=$n(t,"verticalAlign",kJ),b=$n(t,"textAlign",RJ),_=$n(t,"color",0),F=$n(t,"opacity",1),Q=Kt(void 0);return v.push(()=>nn(()=>{var N;return(N=r.value)==null?void 0:N.addLayoutChangeListener(()=>{const U=S.current,{size:{value:q},paddingInset:{value:L},borderInset:{value:z}}=i;if(U==null||q==null||L==null||z==null)return;const[le,ve]=q,[ne,Te,xe,Ge]=L,[re,fe,Ee,de]=z,Oe=le-Te-Ge-fe-de,De=ve-ne-xe-re-Ee;Q.value=FJ(U,Oe,De)})}),()=>nn(()=>{const N=u.value;if(N==null||a.value==null)return;const U=new NJ(h.getGroup(a.value.majorIndex,N),b,B,_,F,Q,n,s,o,p,d,g);return E!=null&&(E.current=U),()=>U.destroy()})),x}const LJ=[];class NJ{constructor(e,n,r,i,s,o,a,u,h,p,d,g){ot(this,"group");ot(this,"textAlign");ot(this,"verticalAlign");ot(this,"color");ot(this,"opacity");ot(this,"layoutSignal");ot(this,"matrix");ot(this,"parentClippingRect");ot(this,"selectionRange");ot(this,"selectionBoxes");ot(this,"caretPosition");ot(this,"glyphLines",[]);ot(this,"lastLayout");ot(this,"unsubscribeInitialList",[]);ot(this,"unsubscribeShowList",[]);this.group=e,this.textAlign=n,this.verticalAlign=r,this.color=i,this.opacity=s,this.layoutSignal=o,this.matrix=a,this.parentClippingRect=h,this.selectionRange=p,this.selectionBoxes=d,this.caretPosition=g,this.unsubscribeInitialList=[nn(()=>{if(!u.value||s.value<.01){this.hide();return}this.show()}),nn(()=>this.updateSelectionBoxes(this.lastLayout,p==null?void 0:p.value,r.peek(),n.peek()))]}getCharIndex(e,n){const r=this.lastLayout;if(r==null)return 0;n-=-y1(r,this.verticalAlign.peek());const i=Math.floor(n/-g1(r.lineHeight,r.fontSize)),s=r.lines;if(i<0||s.length===0)return 0;if(i>=s.length){const p=s[s.length-1];return p.charIndexOffset+p.charLength+1}const o=s[i],a=r.font.getGlyphInfo(" ").xadvance*r.fontSize,u=this.glyphLines[i];let h=u.length;for(let p=0;p=d.charIndexOffset+d.charLength)continue;const g=this.glyphLines[p][Math.max(r-d.charIndexOffset,0)];return{lineIndex:p,x:this.getGlyphX(g,i?0:1,s)}}const u=e[a-1];if(u.charLength===0)return{lineIndex:a-1,x:k_(n,u.nonWhitespaceWidth,o)-n/2};const h=this.glyphLines[a-1][u.charLength-1];return{lineIndex:a-1,x:this.getGlyphX(h,1,s)}}getGlyphX(e,n,r){return typeof e=="number"?e+n*r:e.getX(n)}show(){this.unsubscribeShowList.length>0||(sp(this.glyphLines,e=>e.show()),this.unsubscribeShowList.push(nn(()=>{const e=this.matrix.value;e!=null&&sp(this.glyphLines,n=>n.updateBaseMatrix(e))}),nn(()=>{var n;const e=(n=this.parentClippingRect)==null?void 0:n.value;sp(this.glyphLines,r=>r.updateClippingRect(e))}),nn(()=>{const e=this.color.value;sp(this.glyphLines,n=>n.updateColor(e))}),nn(()=>{const e=this.opacity.value;sp(this.glyphLines,n=>n.updateOpacity(e))}),nn(()=>{var g,E;const e=this.layoutSignal.value;if(e==null)return;const{text:n,font:r,lines:i,letterSpacing:s=0,fontSize:o=16,lineHeight:a=1.2,availableWidth:u}=e;let h=y1(e,this.verticalAlign.value)-e.availableHeight/2;const p=i.length,d=this.group.pixelSize.value;for(let v=0;vB+x){Q=ve.id;const xe=F+F_(r,o,ve,Q);typeof N[z]=="number"?N[z]=F:N.splice(z,0,xe),F+=_+jm(o,ve,s);continue}let ne=N[z];for(;zv.hide(),p),this.glyphLines.length=p,this.lastLayout=e,this.updateSelectionBoxes(e,(E=this.selectionRange)==null?void 0:E.peek(),this.verticalAlign.value,this.textAlign.value)})))}hide(){const e=this.unsubscribeShowList.length;if(e!==0){for(let n=0;nn.hide())}}destroy(){this.hide(),this.glyphLines.length=0;const e=this.unsubscribeInitialList.length;for(let n=0;nPl(p,B,x,t.root.panelGroupManager,v,g.size,void 0,g.borderInset,t.clippingRect,S,$p(),Q));const b=aL(p,n,t.root.renderer,h),_=Bs(void 0,Wi.Text,uL(b),B),F=cL(p,e,v,d,g,S,t.clippingRect,_,b,t.root.gylphGroupManager,void 0,void 0,void 0,void 0,h,"break-word");return h.push(()=>nn(()=>{var Q;return(Q=d.value)==null?void 0:Q.setCustomLayouting(F.value)})),Du(r,i,g.size,h),ph(r,i,I,h),Object.assign(g,{isClipped:I,mergedProperties:p,interactionPanel:ed(B,t.root,t.clippingRect,g.size,h),handlers:Mu(r,i,s,a,u),initializers:h})}const UJ=ni;class IA extends Eo{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,n,r,i){const s=this,o=new Fl(s.manager);o.setPath(s.path),o.setRequestHeader(s.requestHeader),o.setWithCredentials(s.withCredentials),o.load(e,function(a){try{n(s.parse(a))}catch(u){i?i(u):console.error(u),s.manager.itemError(e)}},r,i)}parse(e){const n=this;function r(K,se){if(K.nodeType!==1)return;const Y=_(K);let Z=!1,ke=null;switch(K.nodeName){case"svg":se=v(K,se);break;case"style":s(K);break;case"g":se=v(K,se);break;case"path":se=v(K,se),K.hasAttribute("d")&&(ke=i(K));break;case"rect":se=v(K,se),ke=u(K);break;case"polygon":se=v(K,se),ke=h(K);break;case"polyline":se=v(K,se),ke=p(K);break;case"circle":se=v(K,se),ke=d(K);break;case"ellipse":se=v(K,se),ke=g(K);break;case"line":se=v(K,se),ke=E(K);break;case"defs":Z=!0;break;case"use":se=v(K,se);const We=(K.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),oe=K.viewportElement.getElementById(We);oe?r(oe,se):console.warn("SVGLoader: 'use node' references non-existent node id: "+We);break}ke&&(se.fill!==void 0&&se.fill!=="none"&&ke.color.setStyle(se.fill,UJ),Q(ke,de),le.push(ke),ke.userData={node:K,style:se});const ze=K.childNodes;for(let Me=0;Me0?de.copy(ne[ne.length-1]):de.identity())}function i(K){const se=new wc,Y=new st,Z=new st,ke=new st;let ze=!0,Me=!1;const We=K.getAttribute("d");if(We===""||We==="none")return null;const oe=We.match(/[a-df-z][^a-df-z]*/ig);for(let Le=0,Be=oe.length;Le0&&(Y.copy(ke),se.currentPath.currentPoint.copy(Y),ze=!0);break;default:console.warn(je)}Me=!1}return se}function s(K){if(!(!K.sheet||!K.sheet.cssRules||!K.sheet.cssRules.length))for(let se=0;seke.trim());for(let ke=0;keMe!==""));ve[Z[ke]]=Object.assign(ve[Z[ke]]||{},ze)}}}function o(K,se,Y,Z,ke,ze,Me,We){if(se==0||Y==0){K.lineTo(We.x,We.y);return}Z=Z*Math.PI/180,se=Math.abs(se),Y=Math.abs(Y);const oe=(Me.x-We.x)/2,Le=(Me.y-We.y)/2,Be=Math.cos(Z)*oe+Math.sin(Z)*Le,je=-Math.sin(Z)*oe+Math.cos(Z)*Le;let He=se*se,lt=Y*Y;const Ie=Be*Be,V=je*je,$=Ie/He+V/lt;if($>1){const mt=Math.sqrt($);se=mt*se,Y=mt*Y,He=se*se,lt=Y*Y}const Ne=He*V+lt*Ie,ft=(He*lt-Ne)/Ne;let pt=Math.sqrt(Math.max(0,ft));ke===ze&&(pt=-pt);const ut=pt*se*je/Y,Ot=-pt*Y*Be/se,_t=Math.cos(Z)*ut-Math.sin(Z)*Ot+(Me.x+We.x)/2,Nt=Math.sin(Z)*ut+Math.cos(Z)*Ot+(Me.y+We.y)/2,Ft=a(1,0,(Be-ut)/se,(je-Ot)/Y),Qt=a((Be-ut)/se,(je-Ot)/Y,(-Be-ut)/se,(-je-Ot)/Y)%(Math.PI*2);K.currentPath.absellipse(_t,Nt,se,Y,Ft,Ft+Qt,ze===0,Z)}function a(K,se,Y,Z){const ke=K*Y+se*Z,ze=Math.sqrt(K*K+se*se)*Math.sqrt(Y*Y+Z*Z);let Me=Math.acos(Math.max(-1,Math.min(1,ke/ze)));return K*Z-se*Y<0&&(Me=-Me),Me}function u(K){const se=b(K.getAttribute("x")||0),Y=b(K.getAttribute("y")||0),Z=b(K.getAttribute("rx")||K.getAttribute("ry")||0),ke=b(K.getAttribute("ry")||K.getAttribute("rx")||0),ze=b(K.getAttribute("width")),Me=b(K.getAttribute("height")),We=1-.551915024494,oe=new wc;return oe.moveTo(se+Z,Y),oe.lineTo(se+ze-Z,Y),(Z!==0||ke!==0)&&oe.bezierCurveTo(se+ze-Z*We,Y,se+ze,Y+ke*We,se+ze,Y+ke),oe.lineTo(se+ze,Y+Me-ke),(Z!==0||ke!==0)&&oe.bezierCurveTo(se+ze,Y+Me-ke*We,se+ze-Z*We,Y+Me,se+ze-Z,Y+Me),oe.lineTo(se+Z,Y+Me),(Z!==0||ke!==0)&&oe.bezierCurveTo(se+Z*We,Y+Me,se,Y+Me-ke*We,se,Y+Me-ke),oe.lineTo(se,Y+ke),(Z!==0||ke!==0)&&oe.bezierCurveTo(se,Y+ke*We,se+Z*We,Y,se+Z,Y),oe}function h(K){function se(ze,Me,We){const oe=b(Me),Le=b(We);ke===0?Z.moveTo(oe,Le):Z.lineTo(oe,Le),ke++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,Z=new wc;let ke=0;return K.getAttribute("points").replace(Y,se),Z.currentPath.autoClose=!0,Z}function p(K){function se(ze,Me,We){const oe=b(Me),Le=b(We);ke===0?Z.moveTo(oe,Le):Z.lineTo(oe,Le),ke++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,Z=new wc;let ke=0;return K.getAttribute("points").replace(Y,se),Z.currentPath.autoClose=!1,Z}function d(K){const se=b(K.getAttribute("cx")||0),Y=b(K.getAttribute("cy")||0),Z=b(K.getAttribute("r")||0),ke=new Jc;ke.absarc(se,Y,Z,0,Math.PI*2);const ze=new wc;return ze.subPaths.push(ke),ze}function g(K){const se=b(K.getAttribute("cx")||0),Y=b(K.getAttribute("cy")||0),Z=b(K.getAttribute("rx")||0),ke=b(K.getAttribute("ry")||0),ze=new Jc;ze.absellipse(se,Y,Z,ke,0,Math.PI*2);const Me=new wc;return Me.subPaths.push(ze),Me}function E(K){const se=b(K.getAttribute("x1")||0),Y=b(K.getAttribute("y1")||0),Z=b(K.getAttribute("x2")||0),ke=b(K.getAttribute("y2")||0),ze=new wc;return ze.moveTo(se,Y),ze.lineTo(Z,ke),ze.currentPath.autoClose=!1,ze}function v(K,se){se=Object.assign({},se);let Y={};if(K.hasAttribute("class")){const Me=K.getAttribute("class").split(/\s/).filter(Boolean).map(We=>We.trim());for(let We=0;We0&&se.premultiply(ne[ne.length-1]),de.copy(se),ne.push(se),se}function F(K){const se=new _n,Y=Te;if(K.nodeName==="use"&&(K.hasAttribute("x")||K.hasAttribute("y"))){const Z=b(K.getAttribute("x")),ke=b(K.getAttribute("y"));se.translate(Z,ke)}if(K.hasAttribute("transform")){const Z=K.getAttribute("transform").split(")");for(let ke=Z.length-1;ke>=0;ke--){const ze=Z[ke].trim();if(ze==="")continue;const Me=ze.indexOf("("),We=ze.length;if(Me>0&&Me=1){const Be=Le[0];let je=0;Le.length>=2&&(je=Le[1]),Y.translate(Be,je)}break;case"rotate":if(Le.length>=1){let Be=0,je=0,He=0;Be=Le[0]*Math.PI/180,Le.length>=3&&(je=Le[1],He=Le[2]),xe.makeTranslation(-je,-He),Ge.makeRotation(Be),re.multiplyMatrices(Ge,xe),xe.makeTranslation(je,He),Y.multiplyMatrices(xe,re)}break;case"scale":if(Le.length>=1){const Be=Le[0];let je=Be;Le.length>=2&&(je=Le[1]),Y.scale(Be,je)}break;case"skewX":Le.length===1&&Y.set(1,Math.tan(Le[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":Le.length===1&&Y.set(1,0,0,Math.tan(Le[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":Le.length===6&&Y.set(Le[0],Le[2],Le[4],Le[1],Le[3],Le[5],0,0,1);break}}se.premultiply(Y)}}return se}function Q(K,se){function Y(Me){Ee.set(Me.x,Me.y,1).applyMatrix3(se),Me.set(Ee.x,Ee.y)}function Z(Me){const We=Me.xRadius,oe=Me.yRadius,Le=Math.cos(Me.aRotation),Be=Math.sin(Me.aRotation),je=new ue(We*Le,We*Be,0),He=new ue(-oe*Be,oe*Le,0),lt=je.applyMatrix3(se),Ie=He.applyMatrix3(se),V=Te.set(lt.x,Ie.x,0,lt.y,Ie.y,0,0,0,1),$=xe.copy(V).invert(),pt=Ge.copy($).transpose().multiply($).elements,ut=z(pt[0],pt[1],pt[4]),Ot=Math.sqrt(ut.rt1),_t=Math.sqrt(ut.rt2);if(Me.xRadius=1/Ot,Me.yRadius=1/_t,Me.aRotation=Math.atan2(ut.sn,ut.cs),!((Me.aEndAngle-Me.aStartAngle)%(2*Math.PI){const{x:ln,y:$t}=new ue(Math.cos(xn),Math.sin(xn),0).applyMatrix3(mt);return Math.atan2($t,ln)};Me.aStartAngle=Fn(Me.aStartAngle),Me.aEndAngle=Fn(Me.aEndAngle),N(se)&&(Me.aClockwise=!Me.aClockwise)}}function ke(Me){const We=q(se),oe=L(se);Me.xRadius*=We,Me.yRadius*=oe;const Le=We>Number.EPSILON?Math.atan2(se.elements[1],se.elements[0]):Math.atan2(-se.elements[3],se.elements[4]);Me.aRotation+=Le,N(se)&&(Me.aStartAngle*=-1,Me.aEndAngle*=-1,Me.aClockwise=!Me.aClockwise)}const ze=K.subPaths;for(let Me=0,We=ze.length;MeNumber.EPSILON}function q(K){const se=K.elements;return Math.sqrt(se[0]*se[0]+se[1]*se[1])}function L(K){const se=K.elements;return Math.sqrt(se[3]*se[3]+se[4]*se[4])}function z(K,se,Y){let Z,ke,ze,Me,We;const oe=K+Y,Le=K-Y,Be=Math.sqrt(Le*Le+4*se*se);return oe>0?(Z=.5*(oe+Be),We=1/Z,ke=K*We*Y-se*We*se):oe<0?ke=.5*(oe-Be):(Z=.5*Be,ke=-.5*Be),Le>0?ze=Le+Be:ze=Le-Be,Math.abs(ze)>2*Math.abs(se)?(We=-2*se/ze,Me=1/Math.sqrt(1+We*We),ze=We*Me):Math.abs(se)===0?(ze=1,Me=0):(We=-.5*ze/se,ze=1/Math.sqrt(1+We*We),Me=We*ze),Le>0&&(We=ze,ze=-Me,Me=We),{rt1:Z,rt2:ke,cs:ze,sn:Me}}const le=[],ve={},ne=[],Te=new _n,xe=new _n,Ge=new _n,re=new _n,fe=new st,Ee=new ue,de=new _n,Oe=new DOMParser().parseFromString(e,"image/svg+xml");return r(Oe.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:le,xml:Oe.documentElement}}static createShapes(e){const r={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:r.ORIGIN,t:0};function s(I,S,x,B){const b=I.x,_=S.x,F=x.x,Q=B.x,N=I.y,U=S.y,q=x.y,L=B.y,z=(Q-F)*(N-q)-(L-q)*(b-F),le=(_-b)*(N-q)-(U-N)*(b-F),ve=(L-q)*(_-b)-(Q-F)*(U-N),ne=z/ve,Te=le/ve;if(ve===0&&z!==0||ne<=0||ne>=1||Te<0||Te>1)return null;if(z===0&&ve===0){for(let xe=0;xe<2;xe++)if(o(xe===0?x:B,I,S),i.loc==r.ORIGIN){const Ge=xe===0?x:B;return{x:Ge.x,y:Ge.y,t:i.t}}else if(i.loc==r.BETWEEN){const Ge=+(b+i.t*(_-b)).toPrecision(10),re=+(N+i.t*(U-N)).toPrecision(10);return{x:Ge,y:re,t:i.t}}return null}else{for(let re=0;re<2;re++)if(o(re===0?x:B,I,S),i.loc==r.ORIGIN){const fe=re===0?x:B;return{x:fe.x,y:fe.y,t:i.t}}const xe=+(b+ne*(_-b)).toPrecision(10),Ge=+(N+ne*(U-N)).toPrecision(10);return{x:xe,y:Ge,t:ne}}}function o(I,S,x){const B=x.x-S.x,b=x.y-S.y,_=I.x-S.x,F=I.y-S.y,Q=B*F-_*b;if(I.x===S.x&&I.y===S.y){i.loc=r.ORIGIN,i.t=0;return}if(I.x===x.x&&I.y===x.y){i.loc=r.DESTINATION,i.t=1;return}if(Q<-Number.EPSILON){i.loc=r.LEFT;return}if(Q>Number.EPSILON){i.loc=r.RIGHT;return}if(B*_<0||b*F<0){i.loc=r.BEHIND;return}if(Math.sqrt(B*B+b*b)L.t<=q.t+Number.EPSILON&&L.t>=q.t-Number.EPSILON)===void 0&&(x.push(q),B.push(new st(q.x,q.y)))}}return B}function u(I,S,x){const B=new st;S.getCenter(B);const b=[];return x.forEach(_=>{_.boundingBox.containsPoint(B)&&a(I,_.points).forEach(Q=>{b.push({identifier:_.identifier,isCW:_.isCW,point:Q})})}),b.sort((_,F)=>_.point.x-F.point.x),b}function h(I,S,x,B,b){(b==null||b==="")&&(b="nonzero");const _=new st;I.boundingBox.getCenter(_);const F=[new st(x,_.y),new st(B,_.y)],Q=u(F,I.boundingBox,S);Q.sort((le,ve)=>le.point.x-ve.point.x);const N=[],U=[];Q.forEach(le=>{le.identifier===I.identifier?N.push(le):U.push(le)});const q=N[0].point.x,L=[];let z=0;for(;z0&&L[L.length-1]===U[z].identifier?L.pop():L.push(U[z].identifier),z++;if(L.push(I.identifier),b==="evenodd"){const le=L.length%2===0,ve=L[L.length-2];return{identifier:I.identifier,isHole:le,for:ve}}else if(b==="nonzero"){let le=!0,ve=null,ne=null;for(let Te=0;Te{const S=I.getPoints();let x=-999999999,B=999999999,b=-999999999,_=999999999;for(let F=0;Fx&&(x=Q.y),Q.yb&&(b=Q.x),Q.x<_&&(_=Q.x)}return d<=b&&(d=b+1),p>=_&&(p=_-1),{curves:I.curves,points:S,isCW:Za.isClockWise(S),identifier:-1,boundingBox:new nR(new st(_,B),new st(b,x))}});g=g.filter(I=>I.points.length>1);for(let I=0;Ih(I,g,p,d,e.userData?e.userData.style.fillRule:void 0)),v=[];return g.forEach(I=>{if(!E[I.identifier].isHole){const x=new Yc;x.curves=I.curves,E.filter(b=>b.isHole&&b.for===I.identifier).forEach(b=>{const _=g[b.identifier],F=new Jc;F.curves=_.curves,x.holes.push(F)}),v.push(x)}}),v}static getStrokeStyle(e,n,r,i,s){return e=e!==void 0?e:1,n=n!==void 0?n:"#000",r=r!==void 0?r:"miter",i=i!==void 0?i:"butt",s=s!==void 0?s:4,{strokeColor:n,strokeWidth:e,strokeLineJoin:r,strokeLineCap:i,strokeMiterLimit:s}}static pointsToStroke(e,n,r,i){const s=[],o=[],a=[];if(IA.pointsToStrokeWithBuffers(e,n,r,i,s,o,a)===0)return null;const u=new On;return u.setAttribute("position",new hn(s,3)),u.setAttribute("normal",new hn(o,3)),u.setAttribute("uv",new hn(a,2)),u}static pointsToStrokeWithBuffers(e,n,r,i,s,o,a,u){const h=new st,p=new st,d=new st,g=new st,E=new st,v=new st,I=new st,S=new st,x=new st,B=new st,b=new st,_=new st,F=new st,Q=new st,N=new st,U=new st,q=new st;r=r!==void 0?r:12,i=i!==void 0?i:.001,u=u!==void 0?u:0,e=Le(e);const L=e.length;if(L<2)return 0;const z=e[0].equals(e[L-1]);let le,ve=e[0],ne;const Te=n.strokeWidth/2,xe=1/(L-1);let Ge=0,re,fe,Ee,de,Oe=!1,De=0,K=u*3,se=u*2;Y(e[0],e[1],h).multiplyScalar(Te),S.copy(e[0]).sub(h),x.copy(e[0]).add(h),B.copy(S),b.copy(x);for(let Be=1;BeNumber.EPSILON){const lt=Te/He;d.multiplyScalar(-lt),g.subVectors(le,ve),E.copy(g).setLength(lt).add(d),U.copy(E).negate();const Ie=E.length(),V=g.length();g.divideScalar(V),v.subVectors(ne,le);const $=v.length();switch(v.divideScalar($),g.dot(U)=i&&He.push(Be[lt]);return He.push(Be[Be.length-1]),He}}}function GJ(t,e,n,r,i,s){const o=[],a=Kt([]),u=Kt([]);Pu(a,o);const h=Kt(void 0),p=_u(e,n,r,{...Qu,...Fu(t.root.size),...ku(a),...bu(u)},wC,le=>le.add("aspectRatio",h)),d=Kt(void 0),g=wu();Ah(d,g,t,p,i,!0,o);const E=Su(p,g,t.root.pixelSize);Bu(t.root,i,E,o);const v=fh(t.childrenMatrix,E),I=dh(t.clippingRect,v,g.size,t.root.pixelSize),S=Tu(g,I,p),x=td(p),B=Bs(p,Wi.Panel,x,t.orderInfo);o.push(le=>Pl(p,B,x,t.root.panelGroupManager,v,g.size,void 0,g.borderInset,t.clippingRect,S,$p(),le));const b=Bs(void 0,Wi.Svg,void 0,B),_=Rn(()=>{var le,ve;return Ss((le=e.value)==null?void 0:le.src)??Ss((ve=n.value)==null?void 0:ve.src)}),F=Kt(void 0),Q=h0(t.root,t.clippingRect);UR(F,VJ,Pj,o,_,t.root,Q,t.clippingRect,b,h),GR(p,F,o,t.root);const N=HJ(t.root,g,F,h,S,o),U=TC();_C(s,U,t.root.pixelSize,o);const q=MC(U,v,t.root.pixelSize);QC(p,U,g,v,S,t.clippingRect,b,t.root.panelGroupManager,o);const L=ed(b,t.root,t.clippingRect,g.size,o),z=FC(U,t.anyAncestorScrollable,g,i,L,n,t.root,o);return Du(e,n,g.size,o),ph(e,n,I,o),Object.assign(g,{scrollPosition:U,isClipped:I,mergedProperties:p,anyAncestorScrollable:xB(g.scrollable,t.anyAncestorScrollable),clippingRect:BC(v,g,t.root.pixelSize,t.clippingRect),childrenMatrix:q,node:d,orderInfo:b,root:t.root,initializers:o,centerGroup:N,handlers:Mu(e,n,r,a,u,z),interactionPanel:L})}function HJ(t,e,n,r,i,s){const o=new pu;return o.matrixAutoUpdate=!1,s.push(()=>nn(()=>{kR(o.position,o.scale,e.size,e.paddingInset,e.borderInset,t.pixelSize.value,r.value??1),o.updateMatrix(),t.requestRender()}),()=>nn(()=>{const a=n.value;if(a!=null)return o.add(a),t.requestRender(),()=>{o.remove(a),t.requestRender()}}),()=>nn(()=>{o.visible=n.value!=null&&i.value,t.requestRender()})),o}const zJ=new IA,E1=new Hi,op=new ue,R_=new Map;async function VJ(t,e,n,r,i,s){if(t==null)return;const o=new pu;o.matrixAutoUpdate=!1;let a=R_.get(t);a==null&&R_.set(t,a=await zJ.loadAsync(t)),E1.makeEmpty();for(const h of a.paths){const p=IA.createShapes(h),d=new Lo;d.transparent=!0,d.depthWrite=!1,d.toneMapped=!1,d.clippingPlanes=n;for(const g of p){const E=new vA(g);E.computeBoundingBox(),E1.union(E.boundingBox);const v=new vr(E,d);v.matrixAutoUpdate=!1,v.raycast=th(v,v.raycast,e.object,r,i),Zp(v,e,i),v.userData.color=h.color,v.scale.y=-1,v.updateMatrix(),o.add(v)}}E1.getSize(op),s.value=op.x/op.y;const u=1/op.y;return o.scale.set(1,1,1).multiplyScalar(u),E1.getCenter(op),op.y*=-1,o.position.copy(op).negate().multiplyScalar(u),o.updateMatrix(),o}function WJ(t,e,n,r,i,s,o,a){const u=[],h=Kt([]),p=Kt([]);Pu(h,u);const d=_u(i,s,o,{...Qu,...Fu(t.root.size),...ku(h),...bu(p)},wC,Q=>{Q.add("aspectRatio",n/r),Q.add("width",n),Q.add("height",r)}),g=wu();Ah(void 0,g,t,d,a,!0,u);const E=Su(d,g,t.root.pixelSize);Bu(t.root,a,E,u);const v=fh(t.childrenMatrix,E),I=dh(t.clippingRect,v,g.size,t.root.pixelSize),S=Tu(g,I,d),x=td(d),B=Bs(d,Wi.Panel,x,t.orderInfo);u.push(Q=>Pl(d,B,x,t.root.panelGroupManager,v,g.size,void 0,g.borderInset,t.clippingRect,S,$p(),Q));const b=Bs(void 0,Wi.Svg,void 0,B),_=h0(t.root,t.clippingRect),F=JJ(d,e,n,r,t,b,g,S,_,u);return Du(i,s,g.size,u),ph(i,s,I,u),Object.assign(g,{isClipped:I,mergedProperties:d,initializers:u,iconGroup:F,handlers:Mu(i,s,o,h,p),interactionPanel:ed(b,t.root,t.clippingRect,g.size,u)})}const jJ=new IA;function JJ(t,e,n,r,i,s,o,a,u,h){const p=new pu;p.matrixAutoUpdate=!1;const d=jJ.parse(e);for(const E of d.paths){const v=IA.createShapes(E),I=new Lo;I.transparent=!0,I.depthWrite=!1,I.toneMapped=!1,I.clippingPlanes=u;for(const S of v){const x=new vA(S);x.computeBoundingBox();const B=new vr(x,I);B.matrixAutoUpdate=!1,B.raycast=th(B,B.raycast,i.root.object,i.clippingRect,s),Zp(B,i.root,s),B.userData.color=E.color,B.scale.y=-1,B.updateMatrix(),p.add(B)}}const g=n/r;return h.push(()=>nn(()=>{kR(p.position,p.scale,o.size,o.paddingInset,o.borderInset,i.root.pixelSize.value,g),p.position.x-=p.scale.x*g/2,p.position.y+=p.scale.x/2,p.scale.divideScalar(r),p.updateMatrix(),i.root.requestRender()}),()=>nn(()=>{p.visible=a.value,i.root.requestRender()})),GR(t,p,h,i.root),p}const YJ=["caretBorderRightWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderBottomWidth"];let L_;function XJ(){return L_??(L_=p0({backgroundColor:"caretColor",backgroundOpacity:"caretOpacity",borderBend:"caretBorderBend",borderBottomLeftRadius:"caretBorderBottomLeftRadius",borderBottomRightRadius:"caretBorderBottomRightRadius",borderColor:"caretBorderColor",borderOpacity:"caretBorderOpacity",borderTopLeftRadius:"caretBorderTopLeftRadius",borderTopRightRadius:"caretBorderTopRightRadius"},{backgroundColor:0,backgroundOpacity:1})),L_}function qJ(t,e,n,r,i,s,o,a){const u=Bs(void 0,Wi.Panel,bC,i),h=Kt(void 0);a.push(()=>nn(()=>{const g=n.value;g==null&&(h.value=void 0),h.value=g;const E=setInterval(()=>h.value=h.peek()==null?g:void 0,500);return()=>clearInterval(E)}));const p=yB(t,YJ),d=$n(t,"caretWidth",1.5);a.push(g=>Pl(t,u,void 0,o,e,Rn(()=>{const E=h.value;return E==null?[0,0]:[d.value,E[2]]}),Rn(()=>{const E=h.value;return E==null?[0,0]:[E[0]-d.value/2,E[1]]}),p,s,r,XJ(),g))}const KJ=["selectionBorderRightWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderBottomWidth"];let N_;function ZJ(){return N_??(N_=p0({backgroundColor:"selectionColor",backgroundOpacity:"selectionOpacity",borderBend:"selectionBorderBend",borderBottomLeftRadius:"selectionBorderBottomLeftRadius",borderBottomRightRadius:"selectionBorderBottomRightRadius",borderColor:"selectionBorderColor",borderOpacity:"selectionBorderOpacity",borderTopLeftRadius:"selectionBorderTopLeftRadius",borderTopRightRadius:"selectionBorderTopRightRadius"},{backgroundColor:11851775,backgroundOpacity:1})),N_}function $J(t,e,n,r,i,s,o,a){const u=[],h=Bs(void 0,Wi.Panel,bC,i),p=yB(t,KJ);return a.push(()=>nn(()=>{const d=n.value,g=d.length;for(let v=0;v()=>{const d=u.length;for(let g=0;gt.value)}}const tY=new Set;function nY(t){tY.add(t)}function rY(t,e,n,r,i,s){var de,Oe,De,K,se,Y;const o=Kt([]),a=Kt([]),u=Kt(!1),h=[];Pu(o,h);const p=_u(n,r,i,{...Qu,...Fu(t.root.size),...ku(o),...bu(a),...eY(u)},void 0,Z=>{SC(n.value,r.value,i.value,ke=>{Z.add("caretOpacity",ke.opacity),Z.add("caretColor",ke.color)})}),d=wu(),g=Kt(void 0);Ah(g,d,t,p,s,!1,h);const E=Su(p,d,t.root.pixelSize);Bu(t.root,s,E,h);const v=fh(t.childrenMatrix,E),I=dh(t.clippingRect,v,d.size,t.root.pixelSize),S=Tu(d,I,p),x=td(p),B=Bs(p,Wi.Panel,x,t.orderInfo);h.push(Z=>Pl(p,B,x,t.root.panelGroupManager,v,d.size,void 0,d.borderInset,t.clippingRect,S,$p(),Z));const b={},_=Kt([]),F=Kt(void 0),Q=Kt(void 0);qJ(p,v,F,S,B,t.clippingRect,t.root.panelGroupManager,h);const N=$J(p,v,_,S,B,t.clippingRect,t.root.panelGroupManager,h),U=aL(p,e,t.root.renderer,h),q=Bs(void 0,Wi.Text,uL(U),N),L=((de=n.peek())==null?void 0:de.defaultValue)??((Oe=r.peek())==null?void 0:Oe.defaultValue),z=((De=n.peek())==null?void 0:De.value)==null&&((K=r.peek())==null?void 0:K.value)==null?Kt(L??""):void 0,le=Rn(()=>{var Z,ke;return(z==null?void 0:z.value)??Ss((Z=n.value)==null?void 0:Z.value)??Ss((ke=r.value)==null?void 0:ke.value)??""}),ve=Kx(n,r,"type","text"),ne=Rn(()=>ve.value==="text"?le.value:"*".repeat(le.value.length??0)),Te=((se=n.peek())==null?void 0:se.multiline)??((Y=r.peek())==null?void 0:Y.multiline)??!1,xe=cL(p,ne,v,g,d,S,t.clippingRect,q,U,t.root.gylphGroupManager,Q,_,F,b,h,Te?"break-word":"keep-all");h.push(()=>nn(()=>{var Z;return(Z=g.value)==null?void 0:Z.setCustomLayouting(xe.value)})),Du(n,r,d.size,h),ph(n,r,I,h);const Ge=Kx(n,r,"disabled",!1),re=sY(le,Q,Z=>{var ke,ze,Me,We;z!=null&&(z.value=Z),(ze=(ke=n.peek())==null?void 0:ke.onValueChange)==null||ze.call(ke,Z),(We=(Me=r.peek())==null?void 0:Me.onValueChange)==null||We.call(Me,Z)},Te,ve,Ge,Kx(n,r,"tabIndex",0),h),fe=(Z,ke,ze)=>{const Me=re.peek();Me!=null&&(u.peek()||Me.focus(),Z!=null&&ke!=null&&Me.setSelectionRange(Z,ke,ze),Q.value=[Me.selectionStart??0,Me.selectionEnd??0])};oY(re,u,h,Z=>{var ke,ze,Me,We;(ze=(ke=r.peek())==null?void 0:ke.onFocusChange)==null||ze.call(ke,Z),(We=(Me=n.peek())==null?void 0:Me.onFocusChange)==null||We.call(Me,Z)});const Ee=iY(d,b,fe,Ge);return Object.assign(d,{isClipped:I,mergedProperties:p,valueSignal:le,focus:()=>fe(),root:t.root,element:re,node:g,interactionPanel:ed(B,t.root,t.clippingRect,d.size,h),handlers:Mu(n,r,i,o,a,Ee,"text"),initializers:h})}function iY(t,e,n,r){return Rn(()=>{if(r.value)return;let i;return{onPointerDown:s=>{var a;if(s.defaultPrevented||s.uv==null||e.current==null)return;nY(s.nativeEvent),(a=s.stopPropagation)==null||a.call(s);const o=O_(t,s.uv,e.current);i=o,setTimeout(()=>n(o,o))},onPointerUp:s=>{i=void 0},onPointerLeave:s=>{i=void 0},onPointerMove:s=>{var p;if(i==null||s.uv==null||e.current==null)return;(p=s.stopPropagation)==null||p.call(s);const o=O_(t,s.uv,e.current),a=Math.min(i,o),u=Math.max(i,o),h=in(a,u,h))}}})}function sY(t,e,n,r,i,s,o,a){const u=Kt(void 0);return a.push(h=>{const p=document.createElement(r?"textarea":"input"),d=p.style;d.setProperty("position","absolute"),d.setProperty("left","-1000vw"),d.setProperty("top","0"),d.setProperty("pointerEvents","none"),d.setProperty("opacity","0"),p.addEventListener("input",()=>{n==null||n(p.value),g()});const g=()=>{const{selectionStart:E,selectionEnd:v}=p;if(E==null||v==null){e.value=void 0;return}const I=e.peek();I!=null&&I[0]===E&&I[1]===v||(e.value=[E,v])};return p.addEventListener("keydown",g),p.addEventListener("keyup",g),p.addEventListener("blur",()=>e.value=void 0),document.body.appendChild(p),u.value=p,h.push(()=>{u.value=void 0,p.remove()},nn(()=>p.value=t.value),nn(()=>p.disabled=s.value),nn(()=>p.tabIndex=o.value),nn(()=>p.setAttribute("type",i.value))),h}),u}function oY(t,e,n,r){n.push(()=>nn(()=>{const i=t.value;if(i==null)return;e.value=document.activeElement===i;const s=()=>{const o=document.activeElement===i;o!=e.value&&(e.value=o,r(o))};return i.addEventListener("focus",s),i.addEventListener("blur",s),()=>{i.removeEventListener("focus",s),i.removeEventListener("blur",s)}}))}function O_({size:t,borderInset:e,paddingInset:n},r,i){const s=t.peek(),o=e.peek(),a=n.peek();if(s==null||o==null||a==null)return 0;const[u,h]=s,[p,,,d]=o,[g,,,E]=a,v=r.x*u-d-E,I=-r.y*h+p+g;return i.getCharIndex(v,I)}function aY(t,e,n,r,i,s){const o=Kt([]),a=Kt([]),u=[];Pu(o,u);const h=_u(e,n,r,{...Qu,...Fu(t.root.size),...ku(o),...bu(a)}),p=wu();Ah(void 0,p,t,h,i,!0,u);const d=Su(h,p,t.root.pixelSize);Bu(t.root,i,d,u);const g=fh(t.childrenMatrix,d),E=dh(t.clippingRect,g,p.size,t.root.pixelSize),v=Tu(p,E,h),I=Bs(h,Wi.Custom,void 0,t.orderInfo),S=h0(t.root,t.clippingRect);return u.push(x=>{const B=s.current;if(B==null)return x;if(B.matrixAutoUpdate=!1,B.material instanceof ki){const b=B.material;b.clippingPlanes=S,b.needsUpdate=!0,b.shadowSide=Ia,x.push(()=>nn(()=>{b.depthTest=t.root.depthTest.value,t.root.requestRender()}))}return B.raycast=th(B,B.raycast,t.root.object,t.clippingRect,I),Zp(B,t.root,I),x.push(nn(()=>{B.renderOrder=t.root.renderOrder.value,t.root.requestRender()}),nn(()=>{B.receiveShadow=h.value.read("receiveShadow",!1),t.root.requestRender()}),nn(()=>{B.castShadow=h.value.read("castShadow",!1),t.root.requestRender()}),nn(()=>{if(p.size.value==null)return;const[b,_]=p.size.value,F=t.root.pixelSize.value;B.scale.set(b*F,_*F,1),B.updateMatrix(),t.root.requestRender()}),nn(()=>{B.visible=v.value,t.root.requestRender()})),x}),Du(e,n,p.size,u),ph(e,n,E,u),Object.assign(p,{isClipped:E,mergedProperties:h,root:t.root,handlers:Mu(e,n,r,o,a),initializers:u})}function lY(t,e,n,r,i,s){const o=Kt([]),a=Kt([]),u=[],h=wu();Pu(o,u);const p=Kt(new ue(1,1,1)),d=Rn(()=>p.value.x/p.value.y),g=_u(e,n,r,{...Qu,...Fu(t.root.size),...ku(o),...bu(a)},wC,_=>_.add("aspectRatio",d));Ah(void 0,h,t,g,i,!0,u);const E=Su(g,h,t.root.pixelSize);Bu(t.root,i,E,u);const v=fh(t.childrenMatrix,E),I=dh(t.clippingRect,v,h.size,t.root.pixelSize),S=Tu(h,I,g),x=td(g),B=Bs(g,Wi.Panel,x,t.orderInfo);u.push(_=>Pl(g,B,x,t.root.panelGroupManager,v,h.size,void 0,h.borderInset,t.clippingRect,S,$p(),_));const b=Bs(void 0,Wi.Object,void 0,B);return Du(e,n,h.size,u),ph(e,n,I,u),Object.assign(h,{isClipped:I,mergedProperties:g,remeasureContent:hY(g,t.root,h,t.clippingRect,S,b,p,s,u),interactionPanel:ed(B,t.root,t.clippingRect,h.size,u),handlers:Mu(e,n,r,o,a),initializers:u})}const AI=new Hi,U_=new ue().setScalar(.001),uY=new ue,cY="back";function hY(t,e,n,r,i,s,o,a,u){const h=h0(e,r),p=$n(t,"depthAlign",cY),d=$n(t,"keepAspectRatio",!0),g=new ue,E=new ue,v=(S,x,B,b)=>{S!=null&&(S.visible=x,S.traverse(_=>{_ instanceof vr&&(_.renderOrder=B,_.material instanceof ki&&(_.material.depthTest=b))}),e.requestRender())},I=()=>{const S=a.current;if(S==null){g.copy(U_),E.set(0,0,0);return}S.traverse(B=>{B instanceof vr&&(Zp(B,e,s),B.material.clippingPlanes=h,B.material.needsUpdate=!0,B.raycast=th(B,B.raycast,e.object,r,s))});const x=S.parent;S.parent=null,AI.setFromObject(S),AI.getSize(g).max(U_),o.value=g,x!=null&&(S.parent=x),AI.getCenter(E),e.requestRender()};return u.push(()=>nn(()=>{v(a.current,i.value,e.renderOrder.value,e.depthTest.value),e.requestRender()}),S=>{const x=a.current;return x==null||(I(),S.push(nn(()=>{const{size:{value:B},paddingInset:{value:b},borderInset:{value:_}}=n;if(B==null||b==null||_==null)return;const[F,Q]=B,[N,U,q,L]=b,[z,le,ve,ne]=_,Te=N+z,xe=U+le,Ge=q+ve,re=L+ne,fe=F-re-xe,Ee=Q-Te-Ge,de=e.pixelSize.value;x.scale.set(fe*de,Ee*de,d.value?Ee*de*g.z/g.y:g.z).divide(g),x.position.copy(E).negate(),x.position.z-=qW[p.value]*g.z,x.position.multiply(x.scale),x.position.add(uY.set((re-xe)*.5*de,(Ge-Te)*.5*de,0)),x.updateMatrix(),e.requestRender()}))),S}),()=>{v(a.current,i.peek(),e.renderOrder.peek(),e.depthTest.peek()),I()}}function pY(t,e,n,r,i,s){if(i instanceof Qi){const o=2*Math.tan(Math.PI*i.fov/360)*r;n.value=o/s,e.value=o,t.value=o*i.aspect}if(i instanceof yA){const o=i.top-i.bottom,a=i.right-i.left;n.value=o/s,e.value=o,t.value=a}}function dY(t,{src:e,autoplay:n,loop:r,muted:i,playbackRate:s,preservesPitch:o,volume:a}){if(!(e instanceof HTMLElement)){if(n&&(t.remove(),document.body.append(t),t.style.position="absolute",t.style.width="1px",t.style.zIndex="-1000",t.style.top="0px",t.style.left="0px"),t.playsInline=!0,t.volume=a??1,t.preservesPitch=o??!0,t.playbackRate=s??1,t.muted=i??!1,t.loop=r??!1,t.autoplay=n??!1,e==null){t.removeAttribute("src"),t.removeAttribute("srcObject");return}typeof e=="string"?t.src=e:t.srcObject=e}}function fY(t,e){let n;const r=()=>{e(),n=t.requestVideoFrameCallback(r)};return n=t.requestVideoFrameCallback(r),()=>t.cancelVideoFrameCallback(n)}function Pu(t,e){e.push(()=>()=>hL(t))}function AY(t,e,n,r,i,s){let o=!1;SC(e,n,r,u=>{"hover"in u&&(o=!0)});const a=(e==null?void 0:e.cursor)??(n==null?void 0:n.cursor)??s;if(!o&&(e==null?void 0:e.onHoverChange)==null&&(n==null?void 0:n.onHoverChange)==null&&a==null){i.value.length=0;return}Fp("onPointerOver",t,({pointerId:u})=>{var h,p;i.value=[u,...i.value],i.value.length===1&&((h=n==null?void 0:n.onHoverChange)==null||h.call(n,!0),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!0)),a!=null&&gY(i,a)}),Fp("onPointerOut",t,({pointerId:u})=>{var h,p;i.value=i.value.filter(d=>d!=u),i.value.length===0&&((h=n==null?void 0:n.onHoverChange)==null||h.call(n,!1),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!1)),hL(i)})}function ku(t){return{hover:c0(()=>t.value.length>0)}}const vS=[],V1=[];function gY(t,e){vS.push(t),V1.push(e),document.body.style.cursor=e}function hL(t){const e=vS.indexOf(t);e!=-1&&(vS.splice(e,1),V1.splice(e,1),document.body.style.cursor=V1[V1.length-1]??"default")}var G_={},mY=Object.create,PC=Object.defineProperty,yY=Object.getOwnPropertyDescriptor,EY=Object.getOwnPropertyNames,CY=Object.getPrototypeOf,vY=Object.prototype.hasOwnProperty,d0=(t,e)=>()=>(t&&(e=t(t=0)),e),wt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),kC=(t,e)=>{for(var n in e)PC(t,n,{get:e[n],enumerable:!0})},pL=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of EY(e))!vY.call(t,i)&&i!==n&&PC(t,i,{get:()=>e[i],enumerable:!(r=yY(e,i))||r.enumerable});return t},ji=(t,e,n)=>(n=t!=null?mY(CY(t)):{},pL(e||!t||!t.__esModule?PC(n,"default",{value:t,enumerable:!0}):n,t)),zp=t=>pL(PC({},"__esModule",{value:!0}),t),dL,xY=d0(()=>{dL=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} +`)&&r.push({charLength:0,nonWhitespaceWidth:0,whitespacesBetween:0,charIndexOffset:s.length,nonWhitespaceCharLength:0}),{lines:r,availableHeight:n,availableWidth:e,...t}}const P_=new yn,QJ=new yn;function uL(t){return Rn(()=>({font:t.value}))}class PJ{constructor(e,n,r,i,s){ot(this,"group");ot(this,"baseMatrix");ot(this,"color");ot(this,"opacity");ot(this,"clippingRect");ot(this,"index");ot(this,"hidden",!0);ot(this,"glyphInfo");ot(this,"x",0);ot(this,"y",0);ot(this,"fontSize",0);ot(this,"pixelSize",0);this.group=e,this.baseMatrix=n,this.color=r,this.opacity=i,this.clippingRect=s}getX(e){return this.glyphInfo==null?this.x:this.x+e*this.glyphInfo.width*this.fontSize}show(){this.hidden&&(this.hidden=!1,this.group.requestActivate(this))}hide(){this.hidden||(this.hidden=!0,this.group.delete(this))}activate(e){this.index=e,this.writeUpdatedMatrix(),this.writeUV(),this.updateColor(this.color),this.updateOpacity(this.opacity),this.updateClippingRect(this.clippingRect)}setIndex(e){this.index=e}updateClippingRect(e){if(this.clippingRect=e,this.index==null)return;const n=this.index*16,{instanceClipping:r,root:i}=this.group;this.clippingRect==null?r.set(wE,n):this.clippingRect.toArray(r.array,n),r.addUpdateRange(n,16),r.needsUpdate=!0,i.requestRender()}updateColor(e){if(this.color=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=n.itemSize*this.index;Wm(n.array,i,e,void 0),n.addUpdateRange(i,3),n.needsUpdate=!0,r.requestRender()}updateOpacity(e){if(this.opacity=e,this.index==null)return;const{instanceRGBA:n,root:r}=this.group,i=this.index*4+3;n.array[i]=e,n.addUpdateRange(i,1),n.needsUpdate=!0,r.requestRender()}updateGlyphAndTransformation(e,n,r,i,s){this.glyphInfo===e&&this.x===n&&this.y===r&&this.fontSize===i&&this.pixelSize===s||(this.glyphInfo!=e&&(this.glyphInfo=e,this.writeUV()),this.x=n,this.y=r,this.fontSize=i,this.pixelSize=s,this.writeUpdatedMatrix())}updateBaseMatrix(e){this.baseMatrix!==e&&(this.baseMatrix=e,this.writeUpdatedMatrix())}writeUV(){if(this.index==null||this.glyphInfo==null)return;const e=this.index*4,{instanceUV:n,root:r}=this.group;MJ(this.glyphInfo,n.array,e),n.addUpdateRange(e,4),n.needsUpdate=!0,r.requestRender()}writeUpdatedMatrix(){if(this.index==null||this.glyphInfo==null||this.baseMatrix==null)return;const e=this.index*16,{instanceMatrix:n,root:r}=this.group;n.addUpdateRange(e,16),P_.makeTranslation(this.x*this.pixelSize,this.y*this.pixelSize,0).multiply(QJ.makeScale(this.fontSize*this.glyphInfo.width*this.pixelSize,this.fontSize*this.glyphInfo.height*this.pixelSize,1)).premultiply(this.baseMatrix),P_.toArray(n.array,e),n.needsUpdate=!0,r.requestRender()}}const kJ="middle",RJ="left";function cL(t,e,n,r,i,s,o,a,u,h,p,d,g,E,v,I){let S={current:void 0};const x=_J(t,u,e,S,I),B=$n(t,"verticalAlign",kJ),b=$n(t,"textAlign",RJ),_=$n(t,"color",0),F=$n(t,"opacity",1),Q=Kt(void 0);return v.push(()=>nn(()=>{var N;return(N=r.value)==null?void 0:N.addLayoutChangeListener(()=>{const U=S.current,{size:{value:q},paddingInset:{value:L},borderInset:{value:z}}=i;if(U==null||q==null||L==null||z==null)return;const[le,ve]=q,[ne,Te,xe,Ge]=L,[re,fe,Ee,de]=z,Oe=le-Te-Ge-fe-de,De=ve-ne-xe-re-Ee;Q.value=FJ(U,Oe,De)})}),()=>nn(()=>{const N=u.value;if(N==null||a.value==null)return;const U=new NJ(h.getGroup(a.value.majorIndex,N),b,B,_,F,Q,n,s,o,p,d,g);return E!=null&&(E.current=U),()=>U.destroy()})),x}const LJ=[];class NJ{constructor(e,n,r,i,s,o,a,u,h,p,d,g){ot(this,"group");ot(this,"textAlign");ot(this,"verticalAlign");ot(this,"color");ot(this,"opacity");ot(this,"layoutSignal");ot(this,"matrix");ot(this,"parentClippingRect");ot(this,"selectionRange");ot(this,"selectionBoxes");ot(this,"caretPosition");ot(this,"glyphLines",[]);ot(this,"lastLayout");ot(this,"unsubscribeInitialList",[]);ot(this,"unsubscribeShowList",[]);this.group=e,this.textAlign=n,this.verticalAlign=r,this.color=i,this.opacity=s,this.layoutSignal=o,this.matrix=a,this.parentClippingRect=h,this.selectionRange=p,this.selectionBoxes=d,this.caretPosition=g,this.unsubscribeInitialList=[nn(()=>{if(!u.value||s.value<.01){this.hide();return}this.show()}),nn(()=>this.updateSelectionBoxes(this.lastLayout,p==null?void 0:p.value,r.peek(),n.peek()))]}getCharIndex(e,n){const r=this.lastLayout;if(r==null)return 0;n-=-y1(r,this.verticalAlign.peek());const i=Math.floor(n/-g1(r.lineHeight,r.fontSize)),s=r.lines;if(i<0||s.length===0)return 0;if(i>=s.length){const p=s[s.length-1];return p.charIndexOffset+p.charLength+1}const o=s[i],a=r.font.getGlyphInfo(" ").xadvance*r.fontSize,u=this.glyphLines[i];let h=u.length;for(let p=0;p=d.charIndexOffset+d.charLength)continue;const g=this.glyphLines[p][Math.max(r-d.charIndexOffset,0)];return{lineIndex:p,x:this.getGlyphX(g,i?0:1,s)}}const u=e[a-1];if(u.charLength===0)return{lineIndex:a-1,x:k_(n,u.nonWhitespaceWidth,o)-n/2};const h=this.glyphLines[a-1][u.charLength-1];return{lineIndex:a-1,x:this.getGlyphX(h,1,s)}}getGlyphX(e,n,r){return typeof e=="number"?e+n*r:e.getX(n)}show(){this.unsubscribeShowList.length>0||(sp(this.glyphLines,e=>e.show()),this.unsubscribeShowList.push(nn(()=>{const e=this.matrix.value;e!=null&&sp(this.glyphLines,n=>n.updateBaseMatrix(e))}),nn(()=>{var n;const e=(n=this.parentClippingRect)==null?void 0:n.value;sp(this.glyphLines,r=>r.updateClippingRect(e))}),nn(()=>{const e=this.color.value;sp(this.glyphLines,n=>n.updateColor(e))}),nn(()=>{const e=this.opacity.value;sp(this.glyphLines,n=>n.updateOpacity(e))}),nn(()=>{var g,E;const e=this.layoutSignal.value;if(e==null)return;const{text:n,font:r,lines:i,letterSpacing:s=0,fontSize:o=16,lineHeight:a=1.2,availableWidth:u}=e;let h=y1(e,this.verticalAlign.value)-e.availableHeight/2;const p=i.length,d=this.group.pixelSize.value;for(let v=0;vB+x){Q=ve.id;const xe=F+F_(r,o,ve,Q);typeof N[z]=="number"?N[z]=F:N.splice(z,0,xe),F+=_+jm(o,ve,s);continue}let ne=N[z];for(;zv.hide(),p),this.glyphLines.length=p,this.lastLayout=e,this.updateSelectionBoxes(e,(E=this.selectionRange)==null?void 0:E.peek(),this.verticalAlign.value,this.textAlign.value)})))}hide(){const e=this.unsubscribeShowList.length;if(e!==0){for(let n=0;nn.hide())}}destroy(){this.hide(),this.glyphLines.length=0;const e=this.unsubscribeInitialList.length;for(let n=0;nPl(p,B,x,t.root.panelGroupManager,v,g.size,void 0,g.borderInset,t.clippingRect,S,$p(),Q));const b=aL(p,n,t.root.renderer,h),_=Bs(void 0,Wi.Text,uL(b),B),F=cL(p,e,v,d,g,S,t.clippingRect,_,b,t.root.gylphGroupManager,void 0,void 0,void 0,void 0,h,"break-word");return h.push(()=>nn(()=>{var Q;return(Q=d.value)==null?void 0:Q.setCustomLayouting(F.value)})),Du(r,i,g.size,h),ph(r,i,I,h),Object.assign(g,{isClipped:I,mergedProperties:p,interactionPanel:ed(B,t.root,t.clippingRect,g.size,h),handlers:Mu(r,i,s,a,u),initializers:h})}const UJ=ni;class IA extends Eo{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,n,r,i){const s=this,o=new Fl(s.manager);o.setPath(s.path),o.setRequestHeader(s.requestHeader),o.setWithCredentials(s.withCredentials),o.load(e,function(a){try{n(s.parse(a))}catch(u){i?i(u):console.error(u),s.manager.itemError(e)}},r,i)}parse(e){const n=this;function r(K,se){if(K.nodeType!==1)return;const Y=_(K);let Z=!1,ke=null;switch(K.nodeName){case"svg":se=v(K,se);break;case"style":s(K);break;case"g":se=v(K,se);break;case"path":se=v(K,se),K.hasAttribute("d")&&(ke=i(K));break;case"rect":se=v(K,se),ke=u(K);break;case"polygon":se=v(K,se),ke=h(K);break;case"polyline":se=v(K,se),ke=p(K);break;case"circle":se=v(K,se),ke=d(K);break;case"ellipse":se=v(K,se),ke=g(K);break;case"line":se=v(K,se),ke=E(K);break;case"defs":Z=!0;break;case"use":se=v(K,se);const We=(K.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),oe=K.viewportElement.getElementById(We);oe?r(oe,se):console.warn("SVGLoader: 'use node' references non-existent node id: "+We);break}ke&&(se.fill!==void 0&&se.fill!=="none"&&ke.color.setStyle(se.fill,UJ),Q(ke,de),le.push(ke),ke.userData={node:K,style:se});const ze=K.childNodes;for(let Me=0;Me0?de.copy(ne[ne.length-1]):de.identity())}function i(K){const se=new wc,Y=new st,Z=new st,ke=new st;let ze=!0,Me=!1;const We=K.getAttribute("d");if(We===""||We==="none")return null;const oe=We.match(/[a-df-z][^a-df-z]*/ig);for(let Le=0,Be=oe.length;Le0&&(Y.copy(ke),se.currentPath.currentPoint.copy(Y),ze=!0);break;default:console.warn(je)}Me=!1}return se}function s(K){if(!(!K.sheet||!K.sheet.cssRules||!K.sheet.cssRules.length))for(let se=0;seke.trim());for(let ke=0;keMe!==""));ve[Z[ke]]=Object.assign(ve[Z[ke]]||{},ze)}}}function o(K,se,Y,Z,ke,ze,Me,We){if(se==0||Y==0){K.lineTo(We.x,We.y);return}Z=Z*Math.PI/180,se=Math.abs(se),Y=Math.abs(Y);const oe=(Me.x-We.x)/2,Le=(Me.y-We.y)/2,Be=Math.cos(Z)*oe+Math.sin(Z)*Le,je=-Math.sin(Z)*oe+Math.cos(Z)*Le;let He=se*se,lt=Y*Y;const Ie=Be*Be,V=je*je,$=Ie/He+V/lt;if($>1){const mt=Math.sqrt($);se=mt*se,Y=mt*Y,He=se*se,lt=Y*Y}const Ne=He*V+lt*Ie,ft=(He*lt-Ne)/Ne;let pt=Math.sqrt(Math.max(0,ft));ke===ze&&(pt=-pt);const ut=pt*se*je/Y,Ot=-pt*Y*Be/se,_t=Math.cos(Z)*ut-Math.sin(Z)*Ot+(Me.x+We.x)/2,Nt=Math.sin(Z)*ut+Math.cos(Z)*Ot+(Me.y+We.y)/2,Ft=a(1,0,(Be-ut)/se,(je-Ot)/Y),Qt=a((Be-ut)/se,(je-Ot)/Y,(-Be-ut)/se,(-je-Ot)/Y)%(Math.PI*2);K.currentPath.absellipse(_t,Nt,se,Y,Ft,Ft+Qt,ze===0,Z)}function a(K,se,Y,Z){const ke=K*Y+se*Z,ze=Math.sqrt(K*K+se*se)*Math.sqrt(Y*Y+Z*Z);let Me=Math.acos(Math.max(-1,Math.min(1,ke/ze)));return K*Z-se*Y<0&&(Me=-Me),Me}function u(K){const se=b(K.getAttribute("x")||0),Y=b(K.getAttribute("y")||0),Z=b(K.getAttribute("rx")||K.getAttribute("ry")||0),ke=b(K.getAttribute("ry")||K.getAttribute("rx")||0),ze=b(K.getAttribute("width")),Me=b(K.getAttribute("height")),We=1-.551915024494,oe=new wc;return oe.moveTo(se+Z,Y),oe.lineTo(se+ze-Z,Y),(Z!==0||ke!==0)&&oe.bezierCurveTo(se+ze-Z*We,Y,se+ze,Y+ke*We,se+ze,Y+ke),oe.lineTo(se+ze,Y+Me-ke),(Z!==0||ke!==0)&&oe.bezierCurveTo(se+ze,Y+Me-ke*We,se+ze-Z*We,Y+Me,se+ze-Z,Y+Me),oe.lineTo(se+Z,Y+Me),(Z!==0||ke!==0)&&oe.bezierCurveTo(se+Z*We,Y+Me,se,Y+Me-ke*We,se,Y+Me-ke),oe.lineTo(se,Y+ke),(Z!==0||ke!==0)&&oe.bezierCurveTo(se,Y+ke*We,se+Z*We,Y,se+Z,Y),oe}function h(K){function se(ze,Me,We){const oe=b(Me),Le=b(We);ke===0?Z.moveTo(oe,Le):Z.lineTo(oe,Le),ke++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,Z=new wc;let ke=0;return K.getAttribute("points").replace(Y,se),Z.currentPath.autoClose=!0,Z}function p(K){function se(ze,Me,We){const oe=b(Me),Le=b(We);ke===0?Z.moveTo(oe,Le):Z.lineTo(oe,Le),ke++}const Y=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,Z=new wc;let ke=0;return K.getAttribute("points").replace(Y,se),Z.currentPath.autoClose=!1,Z}function d(K){const se=b(K.getAttribute("cx")||0),Y=b(K.getAttribute("cy")||0),Z=b(K.getAttribute("r")||0),ke=new Jc;ke.absarc(se,Y,Z,0,Math.PI*2);const ze=new wc;return ze.subPaths.push(ke),ze}function g(K){const se=b(K.getAttribute("cx")||0),Y=b(K.getAttribute("cy")||0),Z=b(K.getAttribute("rx")||0),ke=b(K.getAttribute("ry")||0),ze=new Jc;ze.absellipse(se,Y,Z,ke,0,Math.PI*2);const Me=new wc;return Me.subPaths.push(ze),Me}function E(K){const se=b(K.getAttribute("x1")||0),Y=b(K.getAttribute("y1")||0),Z=b(K.getAttribute("x2")||0),ke=b(K.getAttribute("y2")||0),ze=new wc;return ze.moveTo(se,Y),ze.lineTo(Z,ke),ze.currentPath.autoClose=!1,ze}function v(K,se){se=Object.assign({},se);let Y={};if(K.hasAttribute("class")){const Me=K.getAttribute("class").split(/\s/).filter(Boolean).map(We=>We.trim());for(let We=0;We0&&se.premultiply(ne[ne.length-1]),de.copy(se),ne.push(se),se}function F(K){const se=new _n,Y=Te;if(K.nodeName==="use"&&(K.hasAttribute("x")||K.hasAttribute("y"))){const Z=b(K.getAttribute("x")),ke=b(K.getAttribute("y"));se.translate(Z,ke)}if(K.hasAttribute("transform")){const Z=K.getAttribute("transform").split(")");for(let ke=Z.length-1;ke>=0;ke--){const ze=Z[ke].trim();if(ze==="")continue;const Me=ze.indexOf("("),We=ze.length;if(Me>0&&Me=1){const Be=Le[0];let je=0;Le.length>=2&&(je=Le[1]),Y.translate(Be,je)}break;case"rotate":if(Le.length>=1){let Be=0,je=0,He=0;Be=Le[0]*Math.PI/180,Le.length>=3&&(je=Le[1],He=Le[2]),xe.makeTranslation(-je,-He),Ge.makeRotation(Be),re.multiplyMatrices(Ge,xe),xe.makeTranslation(je,He),Y.multiplyMatrices(xe,re)}break;case"scale":if(Le.length>=1){const Be=Le[0];let je=Be;Le.length>=2&&(je=Le[1]),Y.scale(Be,je)}break;case"skewX":Le.length===1&&Y.set(1,Math.tan(Le[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":Le.length===1&&Y.set(1,0,0,Math.tan(Le[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":Le.length===6&&Y.set(Le[0],Le[2],Le[4],Le[1],Le[3],Le[5],0,0,1);break}}se.premultiply(Y)}}return se}function Q(K,se){function Y(Me){Ee.set(Me.x,Me.y,1).applyMatrix3(se),Me.set(Ee.x,Ee.y)}function Z(Me){const We=Me.xRadius,oe=Me.yRadius,Le=Math.cos(Me.aRotation),Be=Math.sin(Me.aRotation),je=new ue(We*Le,We*Be,0),He=new ue(-oe*Be,oe*Le,0),lt=je.applyMatrix3(se),Ie=He.applyMatrix3(se),V=Te.set(lt.x,Ie.x,0,lt.y,Ie.y,0,0,0,1),$=xe.copy(V).invert(),pt=Ge.copy($).transpose().multiply($).elements,ut=z(pt[0],pt[1],pt[4]),Ot=Math.sqrt(ut.rt1),_t=Math.sqrt(ut.rt2);if(Me.xRadius=1/Ot,Me.yRadius=1/_t,Me.aRotation=Math.atan2(ut.sn,ut.cs),!((Me.aEndAngle-Me.aStartAngle)%(2*Math.PI){const{x:ln,y:$t}=new ue(Math.cos(xn),Math.sin(xn),0).applyMatrix3(mt);return Math.atan2($t,ln)};Me.aStartAngle=Fn(Me.aStartAngle),Me.aEndAngle=Fn(Me.aEndAngle),N(se)&&(Me.aClockwise=!Me.aClockwise)}}function ke(Me){const We=q(se),oe=L(se);Me.xRadius*=We,Me.yRadius*=oe;const Le=We>Number.EPSILON?Math.atan2(se.elements[1],se.elements[0]):Math.atan2(-se.elements[3],se.elements[4]);Me.aRotation+=Le,N(se)&&(Me.aStartAngle*=-1,Me.aEndAngle*=-1,Me.aClockwise=!Me.aClockwise)}const ze=K.subPaths;for(let Me=0,We=ze.length;MeNumber.EPSILON}function q(K){const se=K.elements;return Math.sqrt(se[0]*se[0]+se[1]*se[1])}function L(K){const se=K.elements;return Math.sqrt(se[3]*se[3]+se[4]*se[4])}function z(K,se,Y){let Z,ke,ze,Me,We;const oe=K+Y,Le=K-Y,Be=Math.sqrt(Le*Le+4*se*se);return oe>0?(Z=.5*(oe+Be),We=1/Z,ke=K*We*Y-se*We*se):oe<0?ke=.5*(oe-Be):(Z=.5*Be,ke=-.5*Be),Le>0?ze=Le+Be:ze=Le-Be,Math.abs(ze)>2*Math.abs(se)?(We=-2*se/ze,Me=1/Math.sqrt(1+We*We),ze=We*Me):Math.abs(se)===0?(ze=1,Me=0):(We=-.5*ze/se,ze=1/Math.sqrt(1+We*We),Me=We*ze),Le>0&&(We=ze,ze=-Me,Me=We),{rt1:Z,rt2:ke,cs:ze,sn:Me}}const le=[],ve={},ne=[],Te=new _n,xe=new _n,Ge=new _n,re=new _n,fe=new st,Ee=new ue,de=new _n,Oe=new DOMParser().parseFromString(e,"image/svg+xml");return r(Oe.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:le,xml:Oe.documentElement}}static createShapes(e){const r={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:r.ORIGIN,t:0};function s(I,S,x,B){const b=I.x,_=S.x,F=x.x,Q=B.x,N=I.y,U=S.y,q=x.y,L=B.y,z=(Q-F)*(N-q)-(L-q)*(b-F),le=(_-b)*(N-q)-(U-N)*(b-F),ve=(L-q)*(_-b)-(Q-F)*(U-N),ne=z/ve,Te=le/ve;if(ve===0&&z!==0||ne<=0||ne>=1||Te<0||Te>1)return null;if(z===0&&ve===0){for(let xe=0;xe<2;xe++)if(o(xe===0?x:B,I,S),i.loc==r.ORIGIN){const Ge=xe===0?x:B;return{x:Ge.x,y:Ge.y,t:i.t}}else if(i.loc==r.BETWEEN){const Ge=+(b+i.t*(_-b)).toPrecision(10),re=+(N+i.t*(U-N)).toPrecision(10);return{x:Ge,y:re,t:i.t}}return null}else{for(let re=0;re<2;re++)if(o(re===0?x:B,I,S),i.loc==r.ORIGIN){const fe=re===0?x:B;return{x:fe.x,y:fe.y,t:i.t}}const xe=+(b+ne*(_-b)).toPrecision(10),Ge=+(N+ne*(U-N)).toPrecision(10);return{x:xe,y:Ge,t:ne}}}function o(I,S,x){const B=x.x-S.x,b=x.y-S.y,_=I.x-S.x,F=I.y-S.y,Q=B*F-_*b;if(I.x===S.x&&I.y===S.y){i.loc=r.ORIGIN,i.t=0;return}if(I.x===x.x&&I.y===x.y){i.loc=r.DESTINATION,i.t=1;return}if(Q<-Number.EPSILON){i.loc=r.LEFT;return}if(Q>Number.EPSILON){i.loc=r.RIGHT;return}if(B*_<0||b*F<0){i.loc=r.BEHIND;return}if(Math.sqrt(B*B+b*b)L.t<=q.t+Number.EPSILON&&L.t>=q.t-Number.EPSILON)===void 0&&(x.push(q),B.push(new st(q.x,q.y)))}}return B}function u(I,S,x){const B=new st;S.getCenter(B);const b=[];return x.forEach(_=>{_.boundingBox.containsPoint(B)&&a(I,_.points).forEach(Q=>{b.push({identifier:_.identifier,isCW:_.isCW,point:Q})})}),b.sort((_,F)=>_.point.x-F.point.x),b}function h(I,S,x,B,b){(b==null||b==="")&&(b="nonzero");const _=new st;I.boundingBox.getCenter(_);const F=[new st(x,_.y),new st(B,_.y)],Q=u(F,I.boundingBox,S);Q.sort((le,ve)=>le.point.x-ve.point.x);const N=[],U=[];Q.forEach(le=>{le.identifier===I.identifier?N.push(le):U.push(le)});const q=N[0].point.x,L=[];let z=0;for(;z0&&L[L.length-1]===U[z].identifier?L.pop():L.push(U[z].identifier),z++;if(L.push(I.identifier),b==="evenodd"){const le=L.length%2===0,ve=L[L.length-2];return{identifier:I.identifier,isHole:le,for:ve}}else if(b==="nonzero"){let le=!0,ve=null,ne=null;for(let Te=0;Te{const S=I.getPoints();let x=-999999999,B=999999999,b=-999999999,_=999999999;for(let F=0;Fx&&(x=Q.y),Q.yb&&(b=Q.x),Q.x<_&&(_=Q.x)}return d<=b&&(d=b+1),p>=_&&(p=_-1),{curves:I.curves,points:S,isCW:Za.isClockWise(S),identifier:-1,boundingBox:new nR(new st(_,B),new st(b,x))}});g=g.filter(I=>I.points.length>1);for(let I=0;Ih(I,g,p,d,e.userData?e.userData.style.fillRule:void 0)),v=[];return g.forEach(I=>{if(!E[I.identifier].isHole){const x=new Yc;x.curves=I.curves,E.filter(b=>b.isHole&&b.for===I.identifier).forEach(b=>{const _=g[b.identifier],F=new Jc;F.curves=_.curves,x.holes.push(F)}),v.push(x)}}),v}static getStrokeStyle(e,n,r,i,s){return e=e!==void 0?e:1,n=n!==void 0?n:"#000",r=r!==void 0?r:"miter",i=i!==void 0?i:"butt",s=s!==void 0?s:4,{strokeColor:n,strokeWidth:e,strokeLineJoin:r,strokeLineCap:i,strokeMiterLimit:s}}static pointsToStroke(e,n,r,i){const s=[],o=[],a=[];if(IA.pointsToStrokeWithBuffers(e,n,r,i,s,o,a)===0)return null;const u=new On;return u.setAttribute("position",new hn(s,3)),u.setAttribute("normal",new hn(o,3)),u.setAttribute("uv",new hn(a,2)),u}static pointsToStrokeWithBuffers(e,n,r,i,s,o,a,u){const h=new st,p=new st,d=new st,g=new st,E=new st,v=new st,I=new st,S=new st,x=new st,B=new st,b=new st,_=new st,F=new st,Q=new st,N=new st,U=new st,q=new st;r=r!==void 0?r:12,i=i!==void 0?i:.001,u=u!==void 0?u:0,e=Le(e);const L=e.length;if(L<2)return 0;const z=e[0].equals(e[L-1]);let le,ve=e[0],ne;const Te=n.strokeWidth/2,xe=1/(L-1);let Ge=0,re,fe,Ee,de,Oe=!1,De=0,K=u*3,se=u*2;Y(e[0],e[1],h).multiplyScalar(Te),S.copy(e[0]).sub(h),x.copy(e[0]).add(h),B.copy(S),b.copy(x);for(let Be=1;BeNumber.EPSILON){const lt=Te/He;d.multiplyScalar(-lt),g.subVectors(le,ve),E.copy(g).setLength(lt).add(d),U.copy(E).negate();const Ie=E.length(),V=g.length();g.divideScalar(V),v.subVectors(ne,le);const $=v.length();switch(v.divideScalar($),g.dot(U)=i&&He.push(Be[lt]);return He.push(Be[Be.length-1]),He}}}function GJ(t,e,n,r,i,s){const o=[],a=Kt([]),u=Kt([]);Pu(a,o);const h=Kt(void 0),p=_u(e,n,r,{...Qu,...Fu(t.root.size),...ku(a),...bu(u)},wC,le=>le.add("aspectRatio",h)),d=Kt(void 0),g=wu();Ah(d,g,t,p,i,!0,o);const E=Su(p,g,t.root.pixelSize);Bu(t.root,i,E,o);const v=fh(t.childrenMatrix,E),I=dh(t.clippingRect,v,g.size,t.root.pixelSize),S=Tu(g,I,p),x=td(p),B=Bs(p,Wi.Panel,x,t.orderInfo);o.push(le=>Pl(p,B,x,t.root.panelGroupManager,v,g.size,void 0,g.borderInset,t.clippingRect,S,$p(),le));const b=Bs(void 0,Wi.Svg,void 0,B),_=Rn(()=>{var le,ve;return Ss((le=e.value)==null?void 0:le.src)??Ss((ve=n.value)==null?void 0:ve.src)}),F=Kt(void 0),Q=h0(t.root,t.clippingRect);UR(F,VJ,Pj,o,_,t.root,Q,t.clippingRect,b,h),GR(p,F,o,t.root);const N=HJ(t.root,g,F,h,S,o),U=TC();_C(s,U,t.root.pixelSize,o);const q=MC(U,v,t.root.pixelSize);QC(p,U,g,v,S,t.clippingRect,b,t.root.panelGroupManager,o);const L=ed(b,t.root,t.clippingRect,g.size,o),z=FC(U,t.anyAncestorScrollable,g,i,L,n,t.root,o);return Du(e,n,g.size,o),ph(e,n,I,o),Object.assign(g,{scrollPosition:U,isClipped:I,mergedProperties:p,anyAncestorScrollable:xB(g.scrollable,t.anyAncestorScrollable),clippingRect:BC(v,g,t.root.pixelSize,t.clippingRect),childrenMatrix:q,node:d,orderInfo:b,root:t.root,initializers:o,centerGroup:N,handlers:Mu(e,n,r,a,u,z),interactionPanel:L})}function HJ(t,e,n,r,i,s){const o=new pu;return o.matrixAutoUpdate=!1,s.push(()=>nn(()=>{kR(o.position,o.scale,e.size,e.paddingInset,e.borderInset,t.pixelSize.value,r.value??1),o.updateMatrix(),t.requestRender()}),()=>nn(()=>{const a=n.value;if(a!=null)return o.add(a),t.requestRender(),()=>{o.remove(a),t.requestRender()}}),()=>nn(()=>{o.visible=n.value!=null&&i.value,t.requestRender()})),o}const zJ=new IA,E1=new Hi,op=new ue,R_=new Map;async function VJ(t,e,n,r,i,s){if(t==null)return;const o=new pu;o.matrixAutoUpdate=!1;let a=R_.get(t);a==null&&R_.set(t,a=await zJ.loadAsync(t)),E1.makeEmpty();for(const h of a.paths){const p=IA.createShapes(h),d=new Lo;d.transparent=!0,d.depthWrite=!1,d.toneMapped=!1,d.clippingPlanes=n;for(const g of p){const E=new vA(g);E.computeBoundingBox(),E1.union(E.boundingBox);const v=new vr(E,d);v.matrixAutoUpdate=!1,v.raycast=th(v,v.raycast,e.object,r,i),Zp(v,e,i),v.userData.color=h.color,v.scale.y=-1,v.updateMatrix(),o.add(v)}}E1.getSize(op),s.value=op.x/op.y;const u=1/op.y;return o.scale.set(1,1,1).multiplyScalar(u),E1.getCenter(op),op.y*=-1,o.position.copy(op).negate().multiplyScalar(u),o.updateMatrix(),o}function WJ(t,e,n,r,i,s,o,a){const u=[],h=Kt([]),p=Kt([]);Pu(h,u);const d=_u(i,s,o,{...Qu,...Fu(t.root.size),...ku(h),...bu(p)},wC,Q=>{Q.add("aspectRatio",n/r),Q.add("width",n),Q.add("height",r)}),g=wu();Ah(void 0,g,t,d,a,!0,u);const E=Su(d,g,t.root.pixelSize);Bu(t.root,a,E,u);const v=fh(t.childrenMatrix,E),I=dh(t.clippingRect,v,g.size,t.root.pixelSize),S=Tu(g,I,d),x=td(d),B=Bs(d,Wi.Panel,x,t.orderInfo);u.push(Q=>Pl(d,B,x,t.root.panelGroupManager,v,g.size,void 0,g.borderInset,t.clippingRect,S,$p(),Q));const b=Bs(void 0,Wi.Svg,void 0,B),_=h0(t.root,t.clippingRect),F=JJ(d,e,n,r,t,b,g,S,_,u);return Du(i,s,g.size,u),ph(i,s,I,u),Object.assign(g,{isClipped:I,mergedProperties:d,initializers:u,iconGroup:F,handlers:Mu(i,s,o,h,p),interactionPanel:ed(b,t.root,t.clippingRect,g.size,u)})}const jJ=new IA;function JJ(t,e,n,r,i,s,o,a,u,h){const p=new pu;p.matrixAutoUpdate=!1;const d=jJ.parse(e);for(const E of d.paths){const v=IA.createShapes(E),I=new Lo;I.transparent=!0,I.depthWrite=!1,I.toneMapped=!1,I.clippingPlanes=u;for(const S of v){const x=new vA(S);x.computeBoundingBox();const B=new vr(x,I);B.matrixAutoUpdate=!1,B.raycast=th(B,B.raycast,i.root.object,i.clippingRect,s),Zp(B,i.root,s),B.userData.color=E.color,B.scale.y=-1,B.updateMatrix(),p.add(B)}}const g=n/r;return h.push(()=>nn(()=>{kR(p.position,p.scale,o.size,o.paddingInset,o.borderInset,i.root.pixelSize.value,g),p.position.x-=p.scale.x*g/2,p.position.y+=p.scale.x/2,p.scale.divideScalar(r),p.updateMatrix(),i.root.requestRender()}),()=>nn(()=>{p.visible=a.value,i.root.requestRender()})),GR(t,p,h,i.root),p}const YJ=["caretBorderRightWidth","caretBorderTopWidth","caretBorderLeftWidth","caretBorderBottomWidth"];let L_;function XJ(){return L_??(L_=p0({backgroundColor:"caretColor",backgroundOpacity:"caretOpacity",borderBend:"caretBorderBend",borderBottomLeftRadius:"caretBorderBottomLeftRadius",borderBottomRightRadius:"caretBorderBottomRightRadius",borderColor:"caretBorderColor",borderOpacity:"caretBorderOpacity",borderTopLeftRadius:"caretBorderTopLeftRadius",borderTopRightRadius:"caretBorderTopRightRadius"},{backgroundColor:0,backgroundOpacity:1})),L_}function qJ(t,e,n,r,i,s,o,a){const u=Bs(void 0,Wi.Panel,bC,i),h=Kt(void 0);a.push(()=>nn(()=>{const g=n.value;g==null&&(h.value=void 0),h.value=g;const E=setInterval(()=>h.value=h.peek()==null?g:void 0,500);return()=>clearInterval(E)}));const p=yB(t,YJ),d=$n(t,"caretWidth",1.5);a.push(g=>Pl(t,u,void 0,o,e,Rn(()=>{const E=h.value;return E==null?[0,0]:[d.value,E[2]]}),Rn(()=>{const E=h.value;return E==null?[0,0]:[E[0]-d.value/2,E[1]]}),p,s,r,XJ(),g))}const KJ=["selectionBorderRightWidth","selectionBorderTopWidth","selectionBorderLeftWidth","selectionBorderBottomWidth"];let N_;function ZJ(){return N_??(N_=p0({backgroundColor:"selectionColor",backgroundOpacity:"selectionOpacity",borderBend:"selectionBorderBend",borderBottomLeftRadius:"selectionBorderBottomLeftRadius",borderBottomRightRadius:"selectionBorderBottomRightRadius",borderColor:"selectionBorderColor",borderOpacity:"selectionBorderOpacity",borderTopLeftRadius:"selectionBorderTopLeftRadius",borderTopRightRadius:"selectionBorderTopRightRadius"},{backgroundColor:11851775,backgroundOpacity:1})),N_}function $J(t,e,n,r,i,s,o,a){const u=[],h=Bs(void 0,Wi.Panel,bC,i),p=yB(t,KJ);return a.push(()=>nn(()=>{const d=n.value,g=d.length;for(let v=0;v()=>{const d=u.length;for(let g=0;gt.value)}}const tY=new Set;function nY(t){tY.add(t)}function rY(t,e,n,r,i,s){var de,Oe,De,K,se,Y;const o=Kt([]),a=Kt([]),u=Kt(!1),h=[];Pu(o,h);const p=_u(n,r,i,{...Qu,...Fu(t.root.size),...ku(o),...bu(a),...eY(u)},void 0,Z=>{SC(n.value,r.value,i.value,ke=>{Z.add("caretOpacity",ke.opacity),Z.add("caretColor",ke.color)})}),d=wu(),g=Kt(void 0);Ah(g,d,t,p,s,!1,h);const E=Su(p,d,t.root.pixelSize);Bu(t.root,s,E,h);const v=fh(t.childrenMatrix,E),I=dh(t.clippingRect,v,d.size,t.root.pixelSize),S=Tu(d,I,p),x=td(p),B=Bs(p,Wi.Panel,x,t.orderInfo);h.push(Z=>Pl(p,B,x,t.root.panelGroupManager,v,d.size,void 0,d.borderInset,t.clippingRect,S,$p(),Z));const b={},_=Kt([]),F=Kt(void 0),Q=Kt(void 0);qJ(p,v,F,S,B,t.clippingRect,t.root.panelGroupManager,h);const N=$J(p,v,_,S,B,t.clippingRect,t.root.panelGroupManager,h),U=aL(p,e,t.root.renderer,h),q=Bs(void 0,Wi.Text,uL(U),N),L=((de=n.peek())==null?void 0:de.defaultValue)??((Oe=r.peek())==null?void 0:Oe.defaultValue),z=((De=n.peek())==null?void 0:De.value)==null&&((K=r.peek())==null?void 0:K.value)==null?Kt(L??""):void 0,le=Rn(()=>{var Z,ke;return(z==null?void 0:z.value)??Ss((Z=n.value)==null?void 0:Z.value)??Ss((ke=r.value)==null?void 0:ke.value)??""}),ve=Kx(n,r,"type","text"),ne=Rn(()=>ve.value==="text"?le.value:"*".repeat(le.value.length??0)),Te=((se=n.peek())==null?void 0:se.multiline)??((Y=r.peek())==null?void 0:Y.multiline)??!1,xe=cL(p,ne,v,g,d,S,t.clippingRect,q,U,t.root.gylphGroupManager,Q,_,F,b,h,Te?"break-word":"keep-all");h.push(()=>nn(()=>{var Z;return(Z=g.value)==null?void 0:Z.setCustomLayouting(xe.value)})),Du(n,r,d.size,h),ph(n,r,I,h);const Ge=Kx(n,r,"disabled",!1),re=sY(le,Q,Z=>{var ke,ze,Me,We;z!=null&&(z.value=Z),(ze=(ke=n.peek())==null?void 0:ke.onValueChange)==null||ze.call(ke,Z),(We=(Me=r.peek())==null?void 0:Me.onValueChange)==null||We.call(Me,Z)},Te,ve,Ge,Kx(n,r,"tabIndex",0),h),fe=(Z,ke,ze)=>{const Me=re.peek();Me!=null&&(u.peek()||Me.focus(),Z!=null&&ke!=null&&Me.setSelectionRange(Z,ke,ze),Q.value=[Me.selectionStart??0,Me.selectionEnd??0])};oY(re,u,h,Z=>{var ke,ze,Me,We;(ze=(ke=r.peek())==null?void 0:ke.onFocusChange)==null||ze.call(ke,Z),(We=(Me=n.peek())==null?void 0:Me.onFocusChange)==null||We.call(Me,Z)});const Ee=iY(d,b,fe,Ge);return Object.assign(d,{isClipped:I,mergedProperties:p,valueSignal:le,focus:()=>fe(),root:t.root,element:re,node:g,interactionPanel:ed(B,t.root,t.clippingRect,d.size,h),handlers:Mu(n,r,i,o,a,Ee,"text"),initializers:h})}function iY(t,e,n,r){return Rn(()=>{if(r.value)return;let i;return{onPointerDown:s=>{var a;if(s.defaultPrevented||s.uv==null||e.current==null)return;nY(s.nativeEvent),(a=s.stopPropagation)==null||a.call(s);const o=O_(t,s.uv,e.current);i=o,setTimeout(()=>n(o,o))},onPointerUp:s=>{i=void 0},onPointerLeave:s=>{i=void 0},onPointerMove:s=>{var p;if(i==null||s.uv==null||e.current==null)return;(p=s.stopPropagation)==null||p.call(s);const o=O_(t,s.uv,e.current),a=Math.min(i,o),u=Math.max(i,o),h=in(a,u,h))}}})}function sY(t,e,n,r,i,s,o,a){const u=Kt(void 0);return a.push(h=>{const p=document.createElement(r?"textarea":"input"),d=p.style;d.setProperty("position","absolute"),d.setProperty("left","-1000vw"),d.setProperty("top","0"),d.setProperty("pointerEvents","none"),d.setProperty("opacity","0"),p.addEventListener("input",()=>{n==null||n(p.value),g()});const g=()=>{const{selectionStart:E,selectionEnd:v}=p;if(E==null||v==null){e.value=void 0;return}const I=e.peek();I!=null&&I[0]===E&&I[1]===v||(e.value=[E,v])};return p.addEventListener("keydown",g),p.addEventListener("keyup",g),p.addEventListener("blur",()=>e.value=void 0),document.body.appendChild(p),u.value=p,h.push(()=>{u.value=void 0,p.remove()},nn(()=>p.value=t.value),nn(()=>p.disabled=s.value),nn(()=>p.tabIndex=o.value),nn(()=>p.setAttribute("type",i.value))),h}),u}function oY(t,e,n,r){n.push(()=>nn(()=>{const i=t.value;if(i==null)return;e.value=document.activeElement===i;const s=()=>{const o=document.activeElement===i;o!=e.value&&(e.value=o,r(o))};return i.addEventListener("focus",s),i.addEventListener("blur",s),()=>{i.removeEventListener("focus",s),i.removeEventListener("blur",s)}}))}function O_({size:t,borderInset:e,paddingInset:n},r,i){const s=t.peek(),o=e.peek(),a=n.peek();if(s==null||o==null||a==null)return 0;const[u,h]=s,[p,,,d]=o,[g,,,E]=a,v=r.x*u-d-E,I=-r.y*h+p+g;return i.getCharIndex(v,I)}function aY(t,e,n,r,i,s){const o=Kt([]),a=Kt([]),u=[];Pu(o,u);const h=_u(e,n,r,{...Qu,...Fu(t.root.size),...ku(o),...bu(a)}),p=wu();Ah(void 0,p,t,h,i,!0,u);const d=Su(h,p,t.root.pixelSize);Bu(t.root,i,d,u);const g=fh(t.childrenMatrix,d),E=dh(t.clippingRect,g,p.size,t.root.pixelSize),v=Tu(p,E,h),I=Bs(h,Wi.Custom,void 0,t.orderInfo),S=h0(t.root,t.clippingRect);return u.push(x=>{const B=s.current;if(B==null)return x;if(B.matrixAutoUpdate=!1,B.material instanceof ki){const b=B.material;b.clippingPlanes=S,b.needsUpdate=!0,b.shadowSide=Ia,x.push(()=>nn(()=>{b.depthTest=t.root.depthTest.value,t.root.requestRender()}))}return B.raycast=th(B,B.raycast,t.root.object,t.clippingRect,I),Zp(B,t.root,I),x.push(nn(()=>{B.renderOrder=t.root.renderOrder.value,t.root.requestRender()}),nn(()=>{B.receiveShadow=h.value.read("receiveShadow",!1),t.root.requestRender()}),nn(()=>{B.castShadow=h.value.read("castShadow",!1),t.root.requestRender()}),nn(()=>{if(p.size.value==null)return;const[b,_]=p.size.value,F=t.root.pixelSize.value;B.scale.set(b*F,_*F,1),B.updateMatrix(),t.root.requestRender()}),nn(()=>{B.visible=v.value,t.root.requestRender()})),x}),Du(e,n,p.size,u),ph(e,n,E,u),Object.assign(p,{isClipped:E,mergedProperties:h,root:t.root,handlers:Mu(e,n,r,o,a),initializers:u})}function lY(t,e,n,r,i,s){const o=Kt([]),a=Kt([]),u=[],h=wu();Pu(o,u);const p=Kt(new ue(1,1,1)),d=Rn(()=>p.value.x/p.value.y),g=_u(e,n,r,{...Qu,...Fu(t.root.size),...ku(o),...bu(a)},wC,_=>_.add("aspectRatio",d));Ah(void 0,h,t,g,i,!0,u);const E=Su(g,h,t.root.pixelSize);Bu(t.root,i,E,u);const v=fh(t.childrenMatrix,E),I=dh(t.clippingRect,v,h.size,t.root.pixelSize),S=Tu(h,I,g),x=td(g),B=Bs(g,Wi.Panel,x,t.orderInfo);u.push(_=>Pl(g,B,x,t.root.panelGroupManager,v,h.size,void 0,h.borderInset,t.clippingRect,S,$p(),_));const b=Bs(void 0,Wi.Object,void 0,B);return Du(e,n,h.size,u),ph(e,n,I,u),Object.assign(h,{isClipped:I,mergedProperties:g,remeasureContent:hY(g,t.root,h,t.clippingRect,S,b,p,s,u),interactionPanel:ed(B,t.root,t.clippingRect,h.size,u),handlers:Mu(e,n,r,o,a),initializers:u})}const AI=new Hi,U_=new ue().setScalar(.001),uY=new ue,cY="back";function hY(t,e,n,r,i,s,o,a,u){const h=h0(e,r),p=$n(t,"depthAlign",cY),d=$n(t,"keepAspectRatio",!0),g=new ue,E=new ue,v=(S,x,B,b)=>{S!=null&&(S.visible=x,S.traverse(_=>{_ instanceof vr&&(_.renderOrder=B,_.material instanceof ki&&(_.material.depthTest=b))}),e.requestRender())},I=()=>{const S=a.current;if(S==null){g.copy(U_),E.set(0,0,0);return}S.traverse(B=>{B instanceof vr&&(Zp(B,e,s),B.material.clippingPlanes=h,B.material.needsUpdate=!0,B.raycast=th(B,B.raycast,e.object,r,s))});const x=S.parent;S.parent=null,AI.setFromObject(S),AI.getSize(g).max(U_),o.value=g,x!=null&&(S.parent=x),AI.getCenter(E),e.requestRender()};return u.push(()=>nn(()=>{v(a.current,i.value,e.renderOrder.value,e.depthTest.value),e.requestRender()}),S=>{const x=a.current;return x==null||(I(),S.push(nn(()=>{const{size:{value:B},paddingInset:{value:b},borderInset:{value:_}}=n;if(B==null||b==null||_==null)return;const[F,Q]=B,[N,U,q,L]=b,[z,le,ve,ne]=_,Te=N+z,xe=U+le,Ge=q+ve,re=L+ne,fe=F-re-xe,Ee=Q-Te-Ge,de=e.pixelSize.value;x.scale.set(fe*de,Ee*de,d.value?Ee*de*g.z/g.y:g.z).divide(g),x.position.copy(E).negate(),x.position.z-=qW[p.value]*g.z,x.position.multiply(x.scale),x.position.add(uY.set((re-xe)*.5*de,(Ge-Te)*.5*de,0)),x.updateMatrix(),e.requestRender()}))),S}),()=>{v(a.current,i.peek(),e.renderOrder.peek(),e.depthTest.peek()),I()}}function pY(t,e,n,r,i,s){if(i instanceof Qi){const o=2*Math.tan(Math.PI*i.fov/360)*r;n.value=o/s,e.value=o,t.value=o*i.aspect}if(i instanceof yA){const o=i.top-i.bottom,a=i.right-i.left;n.value=o/s,e.value=o,t.value=a}}function dY(t,{src:e,autoplay:n,loop:r,muted:i,playbackRate:s,preservesPitch:o,volume:a}){if(!(e instanceof HTMLElement)){if(t.playsInline=!0,t.volume=a??1,t.preservesPitch=o??!0,t.playbackRate=s??1,t.muted=i??!1,t.loop=r??!1,t.autoplay=n??!1,e==null){t.removeAttribute("src"),t.removeAttribute("srcObject");return}typeof e=="string"?t.src=e:t.srcObject=e}}function fY(t,e){let n;const r=()=>{e(),n=t.requestVideoFrameCallback(r)};return n=t.requestVideoFrameCallback(r),()=>t.cancelVideoFrameCallback(n)}function Pu(t,e){e.push(()=>()=>hL(t))}function AY(t,e,n,r,i,s){let o=!1;SC(e,n,r,u=>{"hover"in u&&(o=!0)});const a=(e==null?void 0:e.cursor)??(n==null?void 0:n.cursor)??s;if(!o&&(e==null?void 0:e.onHoverChange)==null&&(n==null?void 0:n.onHoverChange)==null&&a==null){i.value.length=0;return}Fp("onPointerOver",t,({pointerId:u})=>{var h,p;i.value=[u,...i.value],i.value.length===1&&((h=n==null?void 0:n.onHoverChange)==null||h.call(n,!0),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!0)),a!=null&&gY(i,a)}),Fp("onPointerOut",t,({pointerId:u})=>{var h,p;i.value=i.value.filter(d=>d!=u),i.value.length===0&&((h=n==null?void 0:n.onHoverChange)==null||h.call(n,!1),(p=e==null?void 0:e.onHoverChange)==null||p.call(e,!1)),hL(i)})}function ku(t){return{hover:c0(()=>t.value.length>0)}}const vS=[],V1=[];function gY(t,e){vS.push(t),V1.push(e),document.body.style.cursor=e}function hL(t){const e=vS.indexOf(t);e!=-1&&(vS.splice(e,1),V1.splice(e,1),document.body.style.cursor=V1[V1.length-1]??"default")}var G_={},mY=Object.create,PC=Object.defineProperty,yY=Object.getOwnPropertyDescriptor,EY=Object.getOwnPropertyNames,CY=Object.getPrototypeOf,vY=Object.prototype.hasOwnProperty,d0=(t,e)=>()=>(t&&(e=t(t=0)),e),wt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),kC=(t,e)=>{for(var n in e)PC(t,n,{get:e[n],enumerable:!0})},pL=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of EY(e))!vY.call(t,i)&&i!==n&&PC(t,i,{get:()=>e[i],enumerable:!(r=yY(e,i))||r.enumerable});return t},ji=(t,e,n)=>(n=t!=null?mY(CY(t)):{},pL(e||!t||!t.__esModule?PC(n,"default",{value:t,enumerable:!0}):n,t)),zp=t=>pL(PC({},"__esModule",{value:!0}),t),dL,xY=d0(()=>{dL=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} `}),fL={};kC(fL,{default:()=>AL});var AL,BB=d0(()=>{xY(),AL={readFileSync:()=>dL}}),IY=wt((t,e)=>{var n=class{constructor(r={}){if(!(r.maxSize&&r.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof r.maxAge=="number"&&r.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=r.maxSize,this.maxAge=r.maxAge||1/0,this.onEviction=r.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(r){if(typeof this.onEviction=="function")for(let[i,s]of r)this.onEviction(i,s.value)}_deleteIfExpired(r,i){return typeof i.expiry=="number"&&i.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(r,i.value),this.delete(r)):!1}_getOrDeleteIfExpired(r,i){if(this._deleteIfExpired(r,i)===!1)return i.value}_getItemValue(r,i){return i.expiry?this._getOrDeleteIfExpired(r,i):i.value}_peek(r,i){let s=i.get(r);return this._getItemValue(r,s)}_set(r,i){this.cache.set(r,i),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(r,i){this.oldCache.delete(r),this._set(r,i)}*_entriesAscending(){for(let r of this.oldCache){let[i,s]=r;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield r)}for(let r of this.cache){let[i,s]=r;this._deleteIfExpired(i,s)===!1&&(yield r)}}get(r){if(this.cache.has(r)){let i=this.cache.get(r);return this._getItemValue(r,i)}if(this.oldCache.has(r)){let i=this.oldCache.get(r);if(this._deleteIfExpired(r,i)===!1)return this._moveToRecent(r,i),i.value}}set(r,i,{maxAge:s=this.maxAge===1/0?void 0:Date.now()+this.maxAge}={}){this.cache.has(r)?this.cache.set(r,{value:i,maxAge:s}):this._set(r,{value:i,expiry:s})}has(r){return this.cache.has(r)?!this._deleteIfExpired(r,this.cache.get(r)):this.oldCache.has(r)?!this._deleteIfExpired(r,this.oldCache.get(r)):!1}peek(r){if(this.cache.has(r))return this._peek(r,this.cache);if(this.oldCache.has(r))return this._peek(r,this.oldCache)}delete(r){let i=this.cache.delete(r);return i&&this._size--,this.oldCache.delete(r)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(r){if(!(r&&r>0))throw new TypeError("`maxSize` must be a number greater than 0");let i=[...this._entriesAscending()],s=i.length-r;s<0?(this.cache=new Map(i),this.oldCache=new Map,this._size=i.length):(s>0&&this._emitEvictions(i.slice(0,s)),this.oldCache=new Map(i.slice(s)),this.cache=new Map,this._size=0),this.maxSize=r}*keys(){for(let[r]of this)yield r}*values(){for(let[,r]of this)yield r}*[Symbol.iterator](){for(let r of this.cache){let[i,s]=r;this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}for(let r of this.oldCache){let[i,s]=r;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}}*entriesDescending(){let r=[...this.cache];for(let i=r.length-1;i>=0;--i){let s=r[i],[o,a]=s;this._deleteIfExpired(o,a)===!1&&(yield[o,a.value])}r=[...this.oldCache];for(let i=r.length-1;i>=0;--i){let s=r[i],[o,a]=s;this.cache.has(o)||this._deleteIfExpired(o,a)===!1&&(yield[o,a.value])}}*entriesAscending(){for(let[r,i]of this._entriesAscending())yield[r,i.value]}get size(){if(!this._size)return this.oldCache.size;let r=0;for(let i of this.oldCache.keys())this.cache.has(i)||r++;return Math.min(this._size+r,this.maxSize)}};e.exports=n}),gL={};kC(gL,{default:()=>mL});var mL,yL=d0(()=>{mL={yellow:t=>t}}),EL=wt(()=>{}),wB=wt((t,e)=>{var n=(yL(),zp(gL)),r=EL(),i=class extends Error{constructor(s,o,a,u,h,p){super(s),this.name="CssSyntaxError",this.reason=s,h&&(this.file=h),u&&(this.source=u),p&&(this.plugin=p),typeof o<"u"&&typeof a<"u"&&(typeof o=="number"?(this.line=o,this.column=a):(this.line=o.line,this.column=o.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let o=this.source;s==null&&(s=n.isColorSupported),r&&s&&(o=r(o));let a=o.split(/\r?\n/),u=Math.max(this.line-3,0),h=Math.min(this.line+2,a.length),p=String(h).length,d,g;if(s){let{bold:E,gray:v,red:I}=n.createColors(!0);d=S=>E(I(S)),g=S=>v(S)}else d=g=E=>E;return a.slice(u,h).map((E,v)=>{let I=u+1+v,S=" "+(" "+I).slice(-p)+" | ";if(I===this.line){let x=g(S.replace(/\d/g," "))+E.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+g(S)+E+` `+x+d("^")}return" "+g(S)+E}).join(` `)}toString(){let s=this.showSourceCode();return s&&(s=` @@ -4102,7 +4102,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var jC=Re,MX=TX;function _X(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var FX=typeof Object.is=="function"?Object.is:_X,QX=MX.useSyncExternalStore,PX=jC.useRef,kX=jC.useEffect,RX=jC.useMemo,LX=jC.useDebugValue;t4.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=PX(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=RX(function(){function u(E){if(!h){if(h=!0,p=E,E=r(E),i!==void 0&&o.hasValue){var v=o.value;if(i(v,E))return d=v}return d=E}if(v=d,FX(p,E))return v;var I=r(E);return i!==void 0&&i(v,I)?v:(p=E,d=I)}var h=!1,p,d,g=n===void 0?null:n;return[function(){return u(e())},g===null?void 0:function(){return u(g())}]},[e,n,r,i]);var a=QX(t,s[0],s[1]);return kX(function(){o.hasValue=!0,o.value=a},[a]),LX(a),a};e4.exports=t4;var NX=e4.exports;const OX=Jm(NX);var i4={BASE_URL:"/uikit/examples/market/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:UX}=UF,{useSyncExternalStoreWithSelector:GX}=OX;let j_=!1;const HX=t=>t;function zX(t,e=HX,n){(i4?"production":void 0)!=="production"&&n&&!j_&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),j_=!0);const r=GX(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return UX(r),r}const J_=t=>{(i4?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?EX(t):t,n=(r,i)=>zX(e,r,i);return Object.assign(n,e),n},VX=t=>t?J_(t):J_,WX=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],jX=t=>t&&t.isOrthographicCamera;Re.forwardRef(({children:t,dpr:e,frames:n=1/0,renderPriority:r=0,eventPriority:i=0,...s},o)=>{const a=Re.useMemo(()=>new Di(void 0),[]),u=Re.useRef(null),h=Kp();e??(e=h.getState().viewport.dpr),Re.useImperativeHandle(o,()=>u.current,[]);const p=Re.useMemo(()=>Rn(()=>{var g;return(g=a.value)==null?void 0:g.texture}),[a]),d=Re.useMemo(()=>{let g=h.getState();const E=new Qi(50,1,.1,1e3);E.position.set(0,0,5);const v=new st;let I={events:{compute:JX.bind(null,u),priority:i},size:{width:1,height:1,left:0,top:0},camera:E,scene:new Lm,raycaster:new vC,pointer:v,mouse:v,previousRoot:h};const S=VX((x,B)=>{const b=()=>{const F={};for(const Q in g)WX.includes(Q)||(F[Q]=g[Q]);return Object.assign(F,I,{events:{...g.events,...I.events},viewport:Object.assign({},g.viewport,g.viewport.getCurrentViewport(E,new ue,I.size))})},_=()=>x(b());return{...g,set(F){typeof F=="function"&&(F=F(B())),Object.assign(I,F),_()},setPreviousState(F){g=F,_()},get:B,setEvents(F){Object.assign(I.events,F),_()},...b()}});return Object.assign(S,{setState(x){S.getState().set(x)}})},[i,h]);return Re.useEffect(()=>h.subscribe(d.getState().setPreviousState),[h,d]),Re.useEffect(()=>{if(u.current==null)return;const g=a.value=new Da(1,1,{minFilter:zr,magFilter:zr,type:Op}),{size:E}=u.current,v=nn(()=>{if(E.value==null)return;const[I,S]=E.value;g.setSize(I*e,S*e),d.setState({size:{width:I,height:S,top:0,left:0},viewport:{...h.getState().viewport,width:I,height:S,aspect:I/S}})});return()=>{v(),g.dispose()}},[a,h,d,e]),Ue.jsxs(Ue.Fragment,{children:[aA.createPortal(Ue.jsx(xC.Provider,{value:d,children:Ue.jsxs(YX,{renderPriority:r,frames:n,fbo:a,children:[t,Ue.jsx("group",{onPointerOver:()=>null})]})}),d,null),Ue.jsx(WC,{src:p,objectFit:"fill",keepAspectRatio:!1,...s,ref:u})]})});function JX({current:t},e,n,r){var o,a,u;if(t==null||r==null)return!1;r.raycaster.camera||(u=(a=r.events).compute)==null||u.call(a,e,r,(o=r.previousRoot)==null?void 0:o.getState());const[i]=r.raycaster.intersectObject(t.interactionPanel);if(!i)return!1;const s=i.uv;if(!s)return!1;n.raycaster.setFromCamera(n.pointer.set(s.x*2-1,s.y*2-1),n.camera)}function YX({frames:t,renderPriority:e,children:n,fbo:r}){const i=Kp();Re.useEffect(()=>i.subscribe((p,d)=>{const{size:g,camera:E}=p;g&&(jX(E)?(E.left=g.width/-2,E.right=g.width/2,E.top=g.height/2,E.bottom=g.height/-2):E.aspect=g.width/g.height,(g!==d.size||E!==d.camera)&&(E.updateProjectionMatrix(),E.updateMatrixWorld()))}),[i]);let s=0,o,a,u,h;return dB(p=>{const d=r.peek();d!=null&&(t===1/0||s{const n=Re.useMemo(()=>Kt(void 0),[]),r=Re.useMemo(()=>Kt(1),[]),i=t.src instanceof HTMLVideoElement?t.src:void 0,s=Re.useMemo(()=>i??document.createElement("video"),[i]),o=DE(u=>u.invalidate);Re.useEffect(()=>fY(s,o),[s,o]),dY(s,t),Re.useEffect(()=>{const u=()=>r.value=s.videoWidth/s.videoHeight;return u(),s.addEventListener("resize",u),()=>s.removeEventListener("resize",u)},[r,s]),Re.useEffect(()=>{const u=new mk(s);return u.colorSpace=ni,n.value=u,()=>u.dispose()},[n,s]);const a=Re.useRef(null);return Re.useImperativeHandle(e,()=>({...a.current,element:s}),[s]),Ue.jsx(s4.Provider,{value:s,children:Ue.jsx(WC,{aspectRatio:r,...t,ref:a,src:n})})});var KX=Object.create,JC=Object.defineProperty,ZX=Object.getOwnPropertyDescriptor,$X=Object.getOwnPropertyNames,eq=Object.getPrototypeOf,tq=Object.prototype.hasOwnProperty,nq=(t,e)=>()=>(t&&(e=t(t=0)),e),YC=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),XC=(t,e)=>{for(var n in e)JC(t,n,{get:e[n],enumerable:!0})},o4=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of $X(e))!tq.call(t,i)&&i!==n&&JC(t,i,{get:()=>e[i],enumerable:!(r=ZX(e,i))||r.enumerable});return t},m0=(t,e,n)=>(n=t!=null?KX(eq(t)):{},o4(e||!t||!t.__esModule?JC(n,"default",{value:t,enumerable:!0}):n,t)),rq=t=>o4(JC({},"__esModule",{value:!0}),t),iq=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Y_=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Qg=(t,e,n)=>(iq(t,e,"access private method"),n),sq=YC(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(){}e.prototype={diff:function(i,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var u=this;function h(B){return a?(setTimeout(function(){a(void 0,B)},0),!0):B}i=this.castInput(i),s=this.castInput(s),i=this.removeEmpty(this.tokenize(i)),s=this.removeEmpty(this.tokenize(s));var p=s.length,d=i.length,g=1,E=p+d;o.maxEditLength&&(E=Math.min(E,o.maxEditLength));var v=[{newPos:-1,components:[]}],I=this.extractCommon(v[0],s,i,0);if(v[0].newPos+1>=p&&I+1>=d)return h([{value:this.join(s),count:s.length}]);function S(){for(var B=-1*g;B<=g;B+=2){var b=void 0,_=v[B-1],F=v[B+1],Q=(F?F.newPos:0)-B;_&&(v[B-1]=void 0);var N=_&&_.newPos+1=p&&Q+1>=d)return h(n(u,b.components,s,i,u.useLongestToken));v[B]=b}g++}if(a)(function B(){setTimeout(function(){if(g>E)return a();S()||B()},0)})();else for(;g<=E;){var x=S();if(x)return x}},pushComponent:function(i,s,o){var a=i[i.length-1];a&&a.added===s&&a.removed===o?i[i.length-1]={count:a.count+1,added:s,removed:o}:i.push({count:1,added:s,removed:o})},extractCommon:function(i,s,o,a){for(var u=s.length,h=o.length,p=i.newPos,d=p-a,g=0;p+1x.length?b:x}),E.value=i.join(I)}else E.value=i.join(o.slice(d,d+E.count));d+=E.count,E.added||(g+=E.count)}}var S=s[p-1];return p>1&&typeof S.value=="string"&&(S.added||S.removed)&&i.equals("",S.value)&&(s[p-2].value+=S.value,s.pop()),s}function r(i){return{newPos:i.newPos,components:i.components.slice(0)}}}),oq=YC(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=i,t.arrayDiff=void 0;var e=n(sq());function n(s){return s&&s.__esModule?s:{default:s}}var r=new e.default;t.arrayDiff=r,r.tokenize=function(s){return s.slice()},r.join=r.removeEmpty=function(s){return s};function i(s,o,a){return r.diff(s,o,a)}}),qC=YC((t,e)=>{var n=new Proxy(String,{get:()=>n});e.exports=n}),a4={};XC(a4,{default:()=>u4,shouldHighlight:()=>l4});var l4,u4,aq=nq(()=>{l4=()=>!1,u4=String}),lq=YC(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=d,t.default=g;var e=(aq(),rq(a4)),n=i(qC(),!0);function r(E){if(typeof WeakMap!="function")return null;var v=new WeakMap,I=new WeakMap;return(r=function(S){return S?I:v})(E)}function i(E,v){if(!v&&E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var I=r(v);if(I&&I.has(E))return I.get(E);var S={__proto__:null},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in E)if(B!=="default"&&Object.prototype.hasOwnProperty.call(E,B)){var b=x?Object.getOwnPropertyDescriptor(E,B):null;b&&(b.get||b.set)?Object.defineProperty(S,B,b):S[B]=E[B]}return S.default=E,I&&I.set(E,S),S}var s;function o(E){return E?(s!=null||(s=new n.default.constructor({enabled:!0,level:1})),s):n.default}var a=!1;function u(E){return{gutter:E.grey,marker:E.red.bold,message:E.red.bold}}var h=/\r\n|[\n\r\u2028\u2029]/;function p(E,v,I){let S=Object.assign({column:0,line:-1},E.start),x=Object.assign({},S,E.end),{linesAbove:B=2,linesBelow:b=3}=I||{},_=S.line,F=S.column,Q=x.line,N=x.column,U=Math.max(_-(B+1),0),q=Math.min(v.length,Q+b);_===-1&&(U=0),Q===-1&&(q=v.length);let L=Q-_,z={};if(L)for(let le=0;le<=L;le++){let ve=le+_;if(!F)z[ve]=!0;else if(le===0){let ne=v[ve-1].length;z[ve]=[F,ne-F+1]}else if(le===L)z[ve]=[0,N];else{let ne=v[ve-le].length;z[ve]=[0,ne]}}else F===N?F?z[_]=[F,0]:z[_]=!0:z[_]=[F,N-F];return{start:U,end:q,markerLines:z}}function d(E,v,I={}){let S=(I.highlightCode||I.forceColor)&&(0,e.shouldHighlight)(I),x=o(I.forceColor),B=u(x),b=(z,le)=>S?z(le):le,_=E.split(h),{start:F,end:Q,markerLines:N}=p(v,_,I),U=v.start&&typeof v.start.column=="number",q=String(Q).length,L=(S?(0,e.default)(E,I):E).split(h,Q).slice(F,Q).map((z,le)=>{let ve=F+1+le,ne=` ${` ${ve}`.slice(-q)} |`,Te=N[ve],xe=!N[ve+1];if(Te){let Ge="";if(Array.isArray(Te)){let re=z.slice(0,Math.max(Te[0]-1,0)).replace(/[^\t]/g," "),fe=Te[1]||1;Ge=[` + */var jC=Re,MX=TX;function _X(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var FX=typeof Object.is=="function"?Object.is:_X,QX=MX.useSyncExternalStore,PX=jC.useRef,kX=jC.useEffect,RX=jC.useMemo,LX=jC.useDebugValue;t4.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=PX(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=RX(function(){function u(E){if(!h){if(h=!0,p=E,E=r(E),i!==void 0&&o.hasValue){var v=o.value;if(i(v,E))return d=v}return d=E}if(v=d,FX(p,E))return v;var I=r(E);return i!==void 0&&i(v,I)?v:(p=E,d=I)}var h=!1,p,d,g=n===void 0?null:n;return[function(){return u(e())},g===null?void 0:function(){return u(g())}]},[e,n,r,i]);var a=QX(t,s[0],s[1]);return kX(function(){o.hasValue=!0,o.value=a},[a]),LX(a),a};e4.exports=t4;var NX=e4.exports;const OX=Jm(NX);var i4={BASE_URL:"/uikit/examples/market/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:UX}=UF,{useSyncExternalStoreWithSelector:GX}=OX;let j_=!1;const HX=t=>t;function zX(t,e=HX,n){(i4?"production":void 0)!=="production"&&n&&!j_&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),j_=!0);const r=GX(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return UX(r),r}const J_=t=>{(i4?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?EX(t):t,n=(r,i)=>zX(e,r,i);return Object.assign(n,e),n},VX=t=>t?J_(t):J_,WX=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],jX=t=>t&&t.isOrthographicCamera;Re.forwardRef(({children:t,dpr:e,frames:n=1/0,renderPriority:r=0,eventPriority:i=0,...s},o)=>{const a=Re.useMemo(()=>new Di(void 0),[]),u=Re.useRef(null),h=Kp();e??(e=h.getState().viewport.dpr),Re.useImperativeHandle(o,()=>u.current,[]);const p=Re.useMemo(()=>Rn(()=>{var g;return(g=a.value)==null?void 0:g.texture}),[a]),d=Re.useMemo(()=>{let g=h.getState();const E=new Qi(50,1,.1,1e3);E.position.set(0,0,5);const v=new st;let I={events:{compute:JX.bind(null,u),priority:i},size:{width:1,height:1,left:0,top:0},camera:E,scene:new Lm,raycaster:new vC,pointer:v,mouse:v,previousRoot:h};const S=VX((x,B)=>{const b=()=>{const F={};for(const Q in g)WX.includes(Q)||(F[Q]=g[Q]);return Object.assign(F,I,{events:{...g.events,...I.events},viewport:Object.assign({},g.viewport,g.viewport.getCurrentViewport(E,new ue,I.size))})},_=()=>x(b());return{...g,set(F){typeof F=="function"&&(F=F(B())),Object.assign(I,F),_()},setPreviousState(F){g=F,_()},get:B,setEvents(F){Object.assign(I.events,F),_()},...b()}});return Object.assign(S,{setState(x){S.getState().set(x)}})},[i,h]);return Re.useEffect(()=>h.subscribe(d.getState().setPreviousState),[h,d]),Re.useEffect(()=>{if(u.current==null)return;const g=a.value=new Da(1,1,{minFilter:zr,magFilter:zr,type:Op}),{size:E}=u.current,v=nn(()=>{if(E.value==null)return;const[I,S]=E.value;g.setSize(I*e,S*e),d.setState({size:{width:I,height:S,top:0,left:0},viewport:{...h.getState().viewport,width:I,height:S,aspect:I/S}})});return()=>{v(),g.dispose()}},[a,h,d,e]),Ue.jsxs(Ue.Fragment,{children:[aA.createPortal(Ue.jsx(xC.Provider,{value:d,children:Ue.jsxs(YX,{renderPriority:r,frames:n,fbo:a,children:[t,Ue.jsx("group",{onPointerOver:()=>null})]})}),d,null),Ue.jsx(WC,{src:p,objectFit:"fill",keepAspectRatio:!1,...s,ref:u})]})});function JX({current:t},e,n,r){var o,a,u;if(t==null||r==null)return!1;r.raycaster.camera||(u=(a=r.events).compute)==null||u.call(a,e,r,(o=r.previousRoot)==null?void 0:o.getState());const[i]=r.raycaster.intersectObject(t.interactionPanel);if(!i)return!1;const s=i.uv;if(!s)return!1;n.raycaster.setFromCamera(n.pointer.set(s.x*2-1,s.y*2-1),n.camera)}function YX({frames:t,renderPriority:e,children:n,fbo:r}){const i=Kp();Re.useEffect(()=>i.subscribe((p,d)=>{const{size:g,camera:E}=p;g&&(jX(E)?(E.left=g.width/-2,E.right=g.width/2,E.top=g.height/2,E.bottom=g.height/-2):E.aspect=g.width/g.height,(g!==d.size||E!==d.camera)&&(E.updateProjectionMatrix(),E.updateMatrixWorld()))}),[i]);let s=0,o,a,u,h;return dB(p=>{const d=r.peek();d!=null&&(t===1/0||s{const n=Re.useMemo(()=>Kt(void 0),[]),r=Re.useMemo(()=>Kt(1),[]),i=t.src instanceof HTMLVideoElement?t.src:void 0,s=Re.useMemo(()=>{if(i!=null)return i;const h=document.createElement("video");return h.style.position="absolute",h.style.width="1px",h.style.zIndex="-1000",h.style.top="0px",h.style.left="0px",h},[i]),o=t.src instanceof HTMLVideoElement;Re.useEffect(()=>{if(!o)return document.body.appendChild(s),()=>s.remove()},[s,o]);const a=DE(h=>h.invalidate);Re.useEffect(()=>fY(s,a),[s,a]),dY(s,t),Re.useEffect(()=>{const h=()=>r.value=s.videoWidth/s.videoHeight;return h(),s.addEventListener("resize",h),()=>s.removeEventListener("resize",h)},[r,s]),Re.useEffect(()=>{const h=new mk(s);return h.colorSpace=ni,n.value=h,()=>h.dispose()},[n,s]);const u=Re.useRef(null);return Re.useImperativeHandle(e,()=>({...u.current,element:s}),[s]),Ue.jsx(s4.Provider,{value:s,children:Ue.jsx(WC,{aspectRatio:r,...t,ref:u,src:n})})});var KX=Object.create,JC=Object.defineProperty,ZX=Object.getOwnPropertyDescriptor,$X=Object.getOwnPropertyNames,eq=Object.getPrototypeOf,tq=Object.prototype.hasOwnProperty,nq=(t,e)=>()=>(t&&(e=t(t=0)),e),YC=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),XC=(t,e)=>{for(var n in e)JC(t,n,{get:e[n],enumerable:!0})},o4=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of $X(e))!tq.call(t,i)&&i!==n&&JC(t,i,{get:()=>e[i],enumerable:!(r=ZX(e,i))||r.enumerable});return t},m0=(t,e,n)=>(n=t!=null?KX(eq(t)):{},o4(e||!t||!t.__esModule?JC(n,"default",{value:t,enumerable:!0}):n,t)),rq=t=>o4(JC({},"__esModule",{value:!0}),t),iq=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Y_=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Qg=(t,e,n)=>(iq(t,e,"access private method"),n),sq=YC(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(){}e.prototype={diff:function(i,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var u=this;function h(B){return a?(setTimeout(function(){a(void 0,B)},0),!0):B}i=this.castInput(i),s=this.castInput(s),i=this.removeEmpty(this.tokenize(i)),s=this.removeEmpty(this.tokenize(s));var p=s.length,d=i.length,g=1,E=p+d;o.maxEditLength&&(E=Math.min(E,o.maxEditLength));var v=[{newPos:-1,components:[]}],I=this.extractCommon(v[0],s,i,0);if(v[0].newPos+1>=p&&I+1>=d)return h([{value:this.join(s),count:s.length}]);function S(){for(var B=-1*g;B<=g;B+=2){var b=void 0,_=v[B-1],F=v[B+1],Q=(F?F.newPos:0)-B;_&&(v[B-1]=void 0);var N=_&&_.newPos+1=p&&Q+1>=d)return h(n(u,b.components,s,i,u.useLongestToken));v[B]=b}g++}if(a)(function B(){setTimeout(function(){if(g>E)return a();S()||B()},0)})();else for(;g<=E;){var x=S();if(x)return x}},pushComponent:function(i,s,o){var a=i[i.length-1];a&&a.added===s&&a.removed===o?i[i.length-1]={count:a.count+1,added:s,removed:o}:i.push({count:1,added:s,removed:o})},extractCommon:function(i,s,o,a){for(var u=s.length,h=o.length,p=i.newPos,d=p-a,g=0;p+1x.length?b:x}),E.value=i.join(I)}else E.value=i.join(o.slice(d,d+E.count));d+=E.count,E.added||(g+=E.count)}}var S=s[p-1];return p>1&&typeof S.value=="string"&&(S.added||S.removed)&&i.equals("",S.value)&&(s[p-2].value+=S.value,s.pop()),s}function r(i){return{newPos:i.newPos,components:i.components.slice(0)}}}),oq=YC(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=i,t.arrayDiff=void 0;var e=n(sq());function n(s){return s&&s.__esModule?s:{default:s}}var r=new e.default;t.arrayDiff=r,r.tokenize=function(s){return s.slice()},r.join=r.removeEmpty=function(s){return s};function i(s,o,a){return r.diff(s,o,a)}}),qC=YC((t,e)=>{var n=new Proxy(String,{get:()=>n});e.exports=n}),a4={};XC(a4,{default:()=>u4,shouldHighlight:()=>l4});var l4,u4,aq=nq(()=>{l4=()=>!1,u4=String}),lq=YC(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=d,t.default=g;var e=(aq(),rq(a4)),n=i(qC(),!0);function r(E){if(typeof WeakMap!="function")return null;var v=new WeakMap,I=new WeakMap;return(r=function(S){return S?I:v})(E)}function i(E,v){if(!v&&E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var I=r(v);if(I&&I.has(E))return I.get(E);var S={__proto__:null},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in E)if(B!=="default"&&Object.prototype.hasOwnProperty.call(E,B)){var b=x?Object.getOwnPropertyDescriptor(E,B):null;b&&(b.get||b.set)?Object.defineProperty(S,B,b):S[B]=E[B]}return S.default=E,I&&I.set(E,S),S}var s;function o(E){return E?(s!=null||(s=new n.default.constructor({enabled:!0,level:1})),s):n.default}var a=!1;function u(E){return{gutter:E.grey,marker:E.red.bold,message:E.red.bold}}var h=/\r\n|[\n\r\u2028\u2029]/;function p(E,v,I){let S=Object.assign({column:0,line:-1},E.start),x=Object.assign({},S,E.end),{linesAbove:B=2,linesBelow:b=3}=I||{},_=S.line,F=S.column,Q=x.line,N=x.column,U=Math.max(_-(B+1),0),q=Math.min(v.length,Q+b);_===-1&&(U=0),Q===-1&&(q=v.length);let L=Q-_,z={};if(L)for(let le=0;le<=L;le++){let ve=le+_;if(!F)z[ve]=!0;else if(le===0){let ne=v[ve-1].length;z[ve]=[F,ne-F+1]}else if(le===L)z[ve]=[0,N];else{let ne=v[ve-le].length;z[ve]=[0,ne]}}else F===N?F?z[_]=[F,0]:z[_]=!0:z[_]=[F,N-F];return{start:U,end:q,markerLines:z}}function d(E,v,I={}){let S=(I.highlightCode||I.forceColor)&&(0,e.shouldHighlight)(I),x=o(I.forceColor),B=u(x),b=(z,le)=>S?z(le):le,_=E.split(h),{start:F,end:Q,markerLines:N}=p(v,_,I),U=v.start&&typeof v.start.column=="number",q=String(Q).length,L=(S?(0,e.default)(E,I):E).split(h,Q).slice(F,Q).map((z,le)=>{let ve=F+1+le,ne=` ${` ${ve}`.slice(-q)} |`,Te=N[ve],xe=!N[ve+1];if(Te){let Ge="";if(Array.isArray(Te)){let re=z.slice(0,Math.max(Te[0]-1,0)).replace(/[^\t]/g," "),fe=Te[1]||1;Ge=[` `,b(B.gutter,ne.replace(/\d/g," "))," ",re,b(B.marker,"^").repeat(fe)].join(""),xe&&I.message&&(Ge+=" "+b(B.message,I.message))}return[b(B.marker,">"),b(B.gutter,ne),z.length>0?` ${z}`:"",Ge].join("")}else return` ${b(B.gutter,ne)}${z.length>0?` ${z}`:""}`}).join(` `);return I.message&&!U&&(L=`${" ".repeat(q+1)}${I.message} ${L}`),S?x.reset(L):L}function g(E,v,I,S={}){if(!a){a=!0;let x="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let B=new Error(x);B.name="DeprecationWarning",console.warn(new Error(x))}}return I=Math.max(I,0),d(E,{start:{column:I,line:v}},S)}}),uq={};XC(uq,{__debug:()=>o$,check:()=>i$,doc:()=>J4,format:()=>q4,formatWithCursor:()=>X4,getSupportInfo:()=>s$,util:()=>Y4,version:()=>PZ});var cq=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},KC=cq,hq=m0(oq(),1);function pq(t){let e=t.indexOf("\r");return e>=0?t.charAt(e+1)===` diff --git a/examples/market/index.html b/examples/market/index.html index f2d80e7d..28b23c9a 100644 --- a/examples/market/index.html +++ b/examples/market/index.html @@ -5,7 +5,7 @@ Document - +