@omnidotdev/rdk 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { P as bf, g as Ef, S as Tf, a as m0, j as u, c as Ha, b as Sf, d as Co } from "./index-DYvttzcq.js";
1
+ import { P as bf, g as Ef, S as Tf, a as m0, j as u, c as Ha, b as Sf, d as Co } from "./index-BsJaHBDm.js";
2
2
  import Se, { useState as be, useMemo as gs, useEffect as At, useContext as _f, useDebugValue as Lo, createElement as Af, useRef as Fi } from "react";
3
3
  import { Vector3 as M, Matrix4 as Nt, Quaternion as ne, Euler as ye, Plane as Ga, Object3D as Wa, Color as g0, LineSegments as y0, BufferGeometry as qa, LineBasicMaterial as x0, Float32BufferAttribute as v0, Group as De, OrthographicCamera as Mf, MeshBasicMaterial as $e, Mesh as Te, CylinderGeometry as Gr, BoxGeometry as rr, OctahedronGeometry as zi, TorusGeometry as Xa, SphereGeometry as Rf, Vector2 as It, Scene as w0, PerspectiveCamera as b0, RingGeometry as Pf, FrontSide as Of, WebGLRenderer as E0, PlaneGeometry as kf, BufferAttribute as No, MeshMatcapMaterial as If, Raycaster as Cf, Matrix3 as Lf, GridHelper as Nf } from "three";
4
4
  function Ff(t, e, n) {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-DTfJZWBh.cjs"),C=require("react"),h=require("three");function H0(t,e,n){if(!(e instanceof globalThis.MouseEvent))return n.set(0,0);const{width:r,height:i,top:s,left:o}=t.getBoundingClientRect(),a=e.clientX-o,l=e.clientY-s;return n.set(a/r*2-1,-(l/i)*2+1)}function $0(t,e,n,r){return W0(t,typeof e=="function"?e:()=>e,n,H0.bind(null,t),t.setPointerCapture.bind(t),i=>{t.hasPointerCapture(i)&&t.releasePointerCapture(i)},{pointerTypePrefix:"screen-",...r})}function W0(t,e,n,r,i,s,o={}){const a=o?.forwardPointerCapture??!0,l=new Map,c=o.pointerTypePrefix??"forward-",f=(M,D)=>{let F=l.get(M.pointerId);return F!=null||(F=new u.Pointer(u.generateUniquePointerId(),`${c}${M.pointerType}`,M.pointerState,new u.ScreenRayIntersector((ue,fe)=>(r(ue,fe),e()),o),e,void 0,a?i.bind(null,M.pointerId):void 0,a?s.bind(null,M.pointerId):void 0,o),D!="move"&&D!="wheel"&&(F.setIntersection(F.computeIntersection("pointer",n,M)),F.commit(M,!1)),l.set(M.pointerId,F)),F},d=new Map,p=new Map,m=[],g=[],w=(M,D,F)=>{switch(M){case"move":F.move(n,D);return;case"wheel":F.wheel(n,D);return;case"cancel":F.cancel(D);return;case"down":if(!pa(D))return;F.down(D);return;case"up":if(!pa(D))return;F.up(D);return;case"exit":p.delete(F),d.delete(F),F.exit(D);return}},y=(M,D)=>{const F=f(D,M);M==="move"&&p.set(F,D),M==="wheel"&&d.set(F,D),o.batchEvents??!0?g.push({type:M,event:D}):w(M,D,F)},b=y.bind(null,"move"),_=y.bind(null,"cancel"),E=y.bind(null,"down"),T=y.bind(null,"up"),v=y.bind(null,"wheel"),S=y.bind(null,"exit");return t.addEventListener("pointermove",b),t.addEventListener("pointercancel",_),t.addEventListener("pointerdown",E),t.addEventListener("pointerup",T),t.addEventListener("wheel",v),t.addEventListener("pointerleave",S),{destroy(){t.removeEventListener("pointermove",b),t.removeEventListener("pointercancel",_),t.removeEventListener("pointerdown",E),t.removeEventListener("pointerup",T),t.removeEventListener("wheel",v),t.removeEventListener("pointerleave",S),p.clear(),d.clear()},update(){const M=g.length;for(let D=0;D<M;D++){const{type:F,event:ue}=g[D],fe=f(ue,F);if(F==="move"&&(m.push(fe),p.get(fe)!=ue)){fe.emitMove(ue);continue}if(F==="wheel"&&d.get(fe)!=ue){fe.emitWheel(ue);continue}w(F,ue,fe)}if(g.length=0,o.intersectEveryFrame??!1)for(const[D,F]of p.entries())m.includes(D)||D.move(n,F);m.length=0}}}function pa(t){return t.button!=null}const ma=()=>{};let ko={},qc={},Xc=null,Yc={mark:ma,measure:ma};try{typeof window<"u"&&(ko=window),typeof document<"u"&&(qc=document),typeof MutationObserver<"u"&&(Xc=MutationObserver),typeof performance<"u"&&(Yc=performance)}catch{}const{userAgent:xa=""}=ko.navigator||{},Ht=ko,xe=qc,ga=Xc,Qr=Yc;Ht.document;const At=!!xe.documentElement&&!!xe.head&&typeof xe.addEventListener=="function"&&typeof xe.createElement=="function",Zc=~xa.indexOf("MSIE")||~xa.indexOf("Trident/");var ge="classic",Qc="duotone",qe="sharp",Xe="sharp-duotone",q0=[ge,Qc,qe,Xe],X0={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},ya={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},Y0=["kit"],Z0=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,Q0=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,K0={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},J0={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},ef={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},tf={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},nf={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},rf={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},Kc={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},sf=["solid","regular","light","thin","duotone","brands"],Jc=[1,2,3,4,5,6,7,8,9,10],of=Jc.concat([11,12,13,14,15,16,17,18,19,20]),Sr={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},af=[...Object.keys(tf),...sf,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Sr.GROUP,Sr.SWAP_OPACITY,Sr.PRIMARY,Sr.SECONDARY].concat(Jc.map(t=>"".concat(t,"x"))).concat(of.map(t=>"w-".concat(t))),lf={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},cf={kit:{"fa-kit":"fak"}},uf={kit:{fak:"fa-kit"}},va={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const St="___FONT_AWESOME___",Gs=16,eu="fa",tu="svg-inline--fa",fn="data-fa-i2svg",Hs="data-fa-pseudo-element",ff="data-fa-pseudo-element-pending",Io="data-prefix",Co="data-icon",wa="fontawesome-i2svg",df="async",hf=["HTML","HEAD","STYLE","SCRIPT"],nu=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})(),ru=[ge,qe,Xe];function $r(t){return new Proxy(t,{get(e,n){return n in e?e[n]:e[ge]}})}const iu={...Kc};iu[ge]={...Kc[ge],...ya.kit,...ya["kit-duotone"]};const rn=$r(iu),$s={...rf};$s[ge]={...$s[ge],...va.kit,...va["kit-duotone"]};const jr=$r($s),Ws={...nf};Ws[ge]={...Ws[ge],...uf.kit};const sn=$r(Ws),qs={...ef};qs[ge]={...qs[ge],...cf.kit};const pf=$r(qs),mf=Z0,su="fa-layers-text",xf=Q0,gf={...X0};$r(gf);const yf=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],rs=Sr,Xn=new Set;Object.keys(jr[ge]).map(Xn.add.bind(Xn));Object.keys(jr[qe]).map(Xn.add.bind(Xn));Object.keys(jr[Xe]).map(Xn.add.bind(Xn));const vf=[...Y0,...af],Or=Ht.FontAwesomeConfig||{};function wf(t){var e=xe.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}function bf(t){return t===""?!0:t==="false"?!1:t==="true"?!0:t}xe&&typeof xe.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(e=>{let[n,r]=e;const i=bf(wf(n));i!=null&&(Or[r]=i)});const ou={styleDefault:"solid",familyDefault:"classic",cssPrefix:eu,replacementClass:tu,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Or.familyPrefix&&(Or.cssPrefix=Or.familyPrefix);const Yn={...ou,...Or};Yn.autoReplaceSvg||(Yn.observeMutations=!1);const j={};Object.keys(ou).forEach(t=>{Object.defineProperty(j,t,{enumerable:!0,set:function(e){Yn[t]=e,kr.forEach(n=>n(j))},get:function(){return Yn[t]}})});Object.defineProperty(j,"familyPrefix",{enumerable:!0,set:function(t){Yn.cssPrefix=t,kr.forEach(e=>e(j))},get:function(){return Yn.cssPrefix}});Ht.FontAwesomeConfig=j;const kr=[];function Ef(t){return kr.push(t),()=>{kr.splice(kr.indexOf(t),1)}}const Ot=Gs,yt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Tf(t){if(!t||!At)return;const e=xe.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;const n=xe.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const s=n[i],o=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=s)}return xe.head.insertBefore(e,r),t}const Rf="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Nr(){let t=12,e="";for(;t-- >0;)e+=Rf[Math.random()*62|0];return e}function lr(t){const e=[];for(let n=(t||[]).length>>>0;n--;)e[n]=t[n];return e}function Lo(t){return t.classList?lr(t.classList):(t.getAttribute("class")||"").split(" ").filter(e=>e)}function au(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Sf(t){return Object.keys(t||{}).reduce((e,n)=>e+"".concat(n,'="').concat(au(t[n]),'" '),"").trim()}function zi(t){return Object.keys(t||{}).reduce((e,n)=>e+"".concat(n,": ").concat(t[n].trim(),";"),"")}function jo(t){return t.size!==yt.size||t.x!==yt.x||t.y!==yt.y||t.rotate!==yt.rotate||t.flipX||t.flipY}function _f(t){let{transform:e,containerWidth:n,iconWidth:r}=t;const i={transform:"translate(".concat(n/2," 256)")},s="translate(".concat(e.x*32,", ").concat(e.y*32,") "),o="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),a="rotate(".concat(e.rotate," 0 0)"),l={transform:"".concat(s," ").concat(o," ").concat(a)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function Af(t){let{transform:e,width:n=Gs,height:r=Gs,startCentered:i=!1}=t,s="";return i&&Zc?s+="translate(".concat(e.x/Ot-n/2,"em, ").concat(e.y/Ot-r/2,"em) "):i?s+="translate(calc(-50% + ".concat(e.x/Ot,"em), calc(-50% + ").concat(e.y/Ot,"em)) "):s+="translate(".concat(e.x/Ot,"em, ").concat(e.y/Ot,"em) "),s+="scale(".concat(e.size/Ot*(e.flipX?-1:1),", ").concat(e.size/Ot*(e.flipY?-1:1),") "),s+="rotate(".concat(e.rotate,"deg) "),s}var Mf=`:root, :host {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-Dh1EpLV3.cjs"),C=require("react"),h=require("three");function H0(t,e,n){if(!(e instanceof globalThis.MouseEvent))return n.set(0,0);const{width:r,height:i,top:s,left:o}=t.getBoundingClientRect(),a=e.clientX-o,l=e.clientY-s;return n.set(a/r*2-1,-(l/i)*2+1)}function $0(t,e,n,r){return W0(t,typeof e=="function"?e:()=>e,n,H0.bind(null,t),t.setPointerCapture.bind(t),i=>{t.hasPointerCapture(i)&&t.releasePointerCapture(i)},{pointerTypePrefix:"screen-",...r})}function W0(t,e,n,r,i,s,o={}){const a=o?.forwardPointerCapture??!0,l=new Map,c=o.pointerTypePrefix??"forward-",f=(M,D)=>{let F=l.get(M.pointerId);return F!=null||(F=new u.Pointer(u.generateUniquePointerId(),`${c}${M.pointerType}`,M.pointerState,new u.ScreenRayIntersector((ue,fe)=>(r(ue,fe),e()),o),e,void 0,a?i.bind(null,M.pointerId):void 0,a?s.bind(null,M.pointerId):void 0,o),D!="move"&&D!="wheel"&&(F.setIntersection(F.computeIntersection("pointer",n,M)),F.commit(M,!1)),l.set(M.pointerId,F)),F},d=new Map,p=new Map,m=[],g=[],w=(M,D,F)=>{switch(M){case"move":F.move(n,D);return;case"wheel":F.wheel(n,D);return;case"cancel":F.cancel(D);return;case"down":if(!pa(D))return;F.down(D);return;case"up":if(!pa(D))return;F.up(D);return;case"exit":p.delete(F),d.delete(F),F.exit(D);return}},y=(M,D)=>{const F=f(D,M);M==="move"&&p.set(F,D),M==="wheel"&&d.set(F,D),o.batchEvents??!0?g.push({type:M,event:D}):w(M,D,F)},b=y.bind(null,"move"),_=y.bind(null,"cancel"),E=y.bind(null,"down"),T=y.bind(null,"up"),v=y.bind(null,"wheel"),S=y.bind(null,"exit");return t.addEventListener("pointermove",b),t.addEventListener("pointercancel",_),t.addEventListener("pointerdown",E),t.addEventListener("pointerup",T),t.addEventListener("wheel",v),t.addEventListener("pointerleave",S),{destroy(){t.removeEventListener("pointermove",b),t.removeEventListener("pointercancel",_),t.removeEventListener("pointerdown",E),t.removeEventListener("pointerup",T),t.removeEventListener("wheel",v),t.removeEventListener("pointerleave",S),p.clear(),d.clear()},update(){const M=g.length;for(let D=0;D<M;D++){const{type:F,event:ue}=g[D],fe=f(ue,F);if(F==="move"&&(m.push(fe),p.get(fe)!=ue)){fe.emitMove(ue);continue}if(F==="wheel"&&d.get(fe)!=ue){fe.emitWheel(ue);continue}w(F,ue,fe)}if(g.length=0,o.intersectEveryFrame??!1)for(const[D,F]of p.entries())m.includes(D)||D.move(n,F);m.length=0}}}function pa(t){return t.button!=null}const ma=()=>{};let ko={},qc={},Xc=null,Yc={mark:ma,measure:ma};try{typeof window<"u"&&(ko=window),typeof document<"u"&&(qc=document),typeof MutationObserver<"u"&&(Xc=MutationObserver),typeof performance<"u"&&(Yc=performance)}catch{}const{userAgent:xa=""}=ko.navigator||{},Ht=ko,xe=qc,ga=Xc,Qr=Yc;Ht.document;const At=!!xe.documentElement&&!!xe.head&&typeof xe.addEventListener=="function"&&typeof xe.createElement=="function",Zc=~xa.indexOf("MSIE")||~xa.indexOf("Trident/");var ge="classic",Qc="duotone",qe="sharp",Xe="sharp-duotone",q0=[ge,Qc,qe,Xe],X0={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},ya={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},Y0=["kit"],Z0=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,Q0=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,K0={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},J0={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},ef={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},tf={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},nf={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},rf={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},Kc={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},sf=["solid","regular","light","thin","duotone","brands"],Jc=[1,2,3,4,5,6,7,8,9,10],of=Jc.concat([11,12,13,14,15,16,17,18,19,20]),Sr={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},af=[...Object.keys(tf),...sf,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Sr.GROUP,Sr.SWAP_OPACITY,Sr.PRIMARY,Sr.SECONDARY].concat(Jc.map(t=>"".concat(t,"x"))).concat(of.map(t=>"w-".concat(t))),lf={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},cf={kit:{"fa-kit":"fak"}},uf={kit:{fak:"fa-kit"}},va={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const St="___FONT_AWESOME___",Gs=16,eu="fa",tu="svg-inline--fa",fn="data-fa-i2svg",Hs="data-fa-pseudo-element",ff="data-fa-pseudo-element-pending",Io="data-prefix",Co="data-icon",wa="fontawesome-i2svg",df="async",hf=["HTML","HEAD","STYLE","SCRIPT"],nu=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})(),ru=[ge,qe,Xe];function $r(t){return new Proxy(t,{get(e,n){return n in e?e[n]:e[ge]}})}const iu={...Kc};iu[ge]={...Kc[ge],...ya.kit,...ya["kit-duotone"]};const rn=$r(iu),$s={...rf};$s[ge]={...$s[ge],...va.kit,...va["kit-duotone"]};const jr=$r($s),Ws={...nf};Ws[ge]={...Ws[ge],...uf.kit};const sn=$r(Ws),qs={...ef};qs[ge]={...qs[ge],...cf.kit};const pf=$r(qs),mf=Z0,su="fa-layers-text",xf=Q0,gf={...X0};$r(gf);const yf=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],rs=Sr,Xn=new Set;Object.keys(jr[ge]).map(Xn.add.bind(Xn));Object.keys(jr[qe]).map(Xn.add.bind(Xn));Object.keys(jr[Xe]).map(Xn.add.bind(Xn));const vf=[...Y0,...af],Or=Ht.FontAwesomeConfig||{};function wf(t){var e=xe.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}function bf(t){return t===""?!0:t==="false"?!1:t==="true"?!0:t}xe&&typeof xe.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(e=>{let[n,r]=e;const i=bf(wf(n));i!=null&&(Or[r]=i)});const ou={styleDefault:"solid",familyDefault:"classic",cssPrefix:eu,replacementClass:tu,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Or.familyPrefix&&(Or.cssPrefix=Or.familyPrefix);const Yn={...ou,...Or};Yn.autoReplaceSvg||(Yn.observeMutations=!1);const j={};Object.keys(ou).forEach(t=>{Object.defineProperty(j,t,{enumerable:!0,set:function(e){Yn[t]=e,kr.forEach(n=>n(j))},get:function(){return Yn[t]}})});Object.defineProperty(j,"familyPrefix",{enumerable:!0,set:function(t){Yn.cssPrefix=t,kr.forEach(e=>e(j))},get:function(){return Yn.cssPrefix}});Ht.FontAwesomeConfig=j;const kr=[];function Ef(t){return kr.push(t),()=>{kr.splice(kr.indexOf(t),1)}}const Ot=Gs,yt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Tf(t){if(!t||!At)return;const e=xe.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;const n=xe.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const s=n[i],o=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=s)}return xe.head.insertBefore(e,r),t}const Rf="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Nr(){let t=12,e="";for(;t-- >0;)e+=Rf[Math.random()*62|0];return e}function lr(t){const e=[];for(let n=(t||[]).length>>>0;n--;)e[n]=t[n];return e}function Lo(t){return t.classList?lr(t.classList):(t.getAttribute("class")||"").split(" ").filter(e=>e)}function au(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Sf(t){return Object.keys(t||{}).reduce((e,n)=>e+"".concat(n,'="').concat(au(t[n]),'" '),"").trim()}function zi(t){return Object.keys(t||{}).reduce((e,n)=>e+"".concat(n,": ").concat(t[n].trim(),";"),"")}function jo(t){return t.size!==yt.size||t.x!==yt.x||t.y!==yt.y||t.rotate!==yt.rotate||t.flipX||t.flipY}function _f(t){let{transform:e,containerWidth:n,iconWidth:r}=t;const i={transform:"translate(".concat(n/2," 256)")},s="translate(".concat(e.x*32,", ").concat(e.y*32,") "),o="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),a="rotate(".concat(e.rotate," 0 0)"),l={transform:"".concat(s," ").concat(o," ").concat(a)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function Af(t){let{transform:e,width:n=Gs,height:r=Gs,startCentered:i=!1}=t,s="";return i&&Zc?s+="translate(".concat(e.x/Ot-n/2,"em, ").concat(e.y/Ot-r/2,"em) "):i?s+="translate(calc(-50% + ".concat(e.x/Ot,"em), calc(-50% + ").concat(e.y/Ot,"em)) "):s+="translate(".concat(e.x/Ot,"em, ").concat(e.y/Ot,"em) "),s+="scale(".concat(e.size/Ot*(e.flipX?-1:1),", ").concat(e.size/Ot*(e.flipY?-1:1),") "),s+="rotate(".concat(e.rotate,"deg) "),s}var Mf=`:root, :host {
2
2
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
3
3
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
4
4
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
@@ -1 +1 @@
1
- {"version":3,"file":"FiducialSession.d.ts","sourceRoot":"","sources":["../../src/fiducial/FiducialSession.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,gCAAgC;IAChC,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC;AAED;;;GAGG;AACH,QAAA,MAAM,eAAe;4BAAgC,oBAAoB;;CA0CxE,CAAC;AAKF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"FiducialSession.d.ts","sourceRoot":"","sources":["../../src/fiducial/FiducialSession.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,gCAAgC;IAChC,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC;AAED;;;GAGG;AACH,QAAA,MAAM,eAAe;4BAAgC,oBAAoB;;CA+CxE,CAAC;AAKF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GeolocationSession.d.ts","sourceRoot":"","sources":["../../src/geolocation/GeolocationSession.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,mCAAmC;IACnC,OAAO,CAAC,EAAE,yBAAyB,CAAC;CACrC;AAED;;;GAGG;AACH,QAAA,MAAM,kBAAkB;6BAGrB,uBAAuB;;CAyCzB,CAAC;AAKF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"GeolocationSession.d.ts","sourceRoot":"","sources":["../../src/geolocation/GeolocationSession.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,mCAAmC;IACnC,OAAO,CAAC,EAAE,yBAAyB,CAAC;CACrC;AAED;;;GAGG;AACH,QAAA,MAAM,kBAAkB;6BAGrB,uBAAuB;;CA8CzB,CAAC;AAKF,eAAe,kBAAkB,CAAC"}
@@ -5241,6 +5241,7 @@ const fp = ({
5241
5241
  }, DU = ({ options: s = {}, children: i }) => {
5242
5242
  const { scene: o, camera: n, gl: c } = vn(), { registerBackend: y, unregisterBackend: w } = tu(), d = xg(null);
5243
5243
  return kC(() => {
5244
+ if (d.current) return;
5244
5245
  let S = !1;
5245
5246
  return (async () => {
5246
5247
  try {
@@ -5255,7 +5256,7 @@ const fp = ({
5255
5256
  console.error("[FiducialSession] Failed to initialize:", Y);
5256
5257
  }
5257
5258
  })(), () => {
5258
- S = !0, d.current && w(d.current, Xt.FIDUCIAL);
5259
+ S = !0, d.current && (w(d.current, Xt.FIDUCIAL), d.current = null);
5259
5260
  };
5260
5261
  }, [o, n, c, y, w, s]), i;
5261
5262
  };
@@ -5413,6 +5414,7 @@ const dp = ({
5413
5414
  }) => {
5414
5415
  const { scene: o, camera: n, gl: c } = vn(), { registerBackend: y, unregisterBackend: w } = tu(), d = xg(null);
5415
5416
  return kC(() => {
5417
+ if (d.current) return;
5416
5418
  let S = !1;
5417
5419
  return (async () => {
5418
5420
  try {
@@ -5427,7 +5429,7 @@ const dp = ({
5427
5429
  console.error("[GeolocationSession] Failed to initialize:", Y);
5428
5430
  }
5429
5431
  })(), () => {
5430
- S = !0, d.current && w(d.current, Xt.GEOLOCATION);
5432
+ S = !0, d.current && (w(d.current, Xt.GEOLOCATION), d.current = null);
5431
5433
  };
5432
5434
  }, [o, n, c, y, w, s]), i;
5433
5435
  };
@@ -9286,7 +9288,7 @@ async function oS(s, i, o) {
9286
9288
  ]);
9287
9289
  if (c || n)
9288
9290
  return !1;
9289
- const { emulate: y } = await import("./emulate-DQf06B-v.js");
9291
+ const { emulate: y } = await import("./emulate-B8Ym493R.js");
9290
9292
  return o && window.alert("emulator started"), s.setState({
9291
9293
  emulator: y(i)
9292
9294
  }), !0;