@omnidotdev/rdk 0.4.0 → 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-BvYiLx_T.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-K8CWZyT2.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,4 +1,4 @@
1
1
  export { default as useXRStore, getXRStore, subscribeToXRStore, } from './useXRStore';
2
2
  export { default as XR } from './XR';
3
- export type { XRStore, XRStoreActions, XRStoreState } from './useXRStore';
3
+ export type { XRStore } from './useXRStore';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/engine/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,UAAU,EACrB,UAAU,EACV,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,MAAM,CAAC;AAErC,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/engine/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,UAAU,EACrB,UAAU,EACV,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,MAAM,CAAC;AAErC,YAAY,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
- import { FiducialSessionOptions } from 'fiducial';
2
1
  import { PropsWithChildren } from 'react';
2
+ import { FiducialSessionOptions } from './fiducialBackend';
3
3
  export interface FiducialSessionProps extends PropsWithChildren {
4
4
  /** Fiducial session options. */
5
5
  options?: FiducialSessionOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"FiducialSession.d.ts","sourceRoot":"","sources":["../../src/fiducial/FiducialSession.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,gCAAgC;IAChC,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC;AAED;;;GAGG;AACH,QAAA,MAAM,eAAe;4BAA2B,oBAAoB;;CA4CnE,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"}
@@ -14,6 +14,6 @@ export interface FiducialSessionOptions {
14
14
  /**
15
15
  * Create a fiducial marker-based AR backend.
16
16
  */
17
- declare const createFiducialBackend: (options: unknown) => Backend;
17
+ declare const createFiducialBackend: (options: FiducialSessionOptions) => Backend;
18
18
  export default createFiducialBackend;
19
19
  //# sourceMappingURL=fiducialBackend.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fiducialBackend.d.ts","sourceRoot":"","sources":["../../src/fiducial/fiducialBackend.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAmB,MAAM,kBAAkB,CAAC;AAGjE,MAAM,WAAW,sBAAsB;IACrC,yBAAyB;IACzB,UAAU,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IAC1C,6BAA6B;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sBAAsB;IACtB,aAAa,CAAC,EAAE,OAAO,GAAG,kBAAkB,GAAG,MAAM,GAAG,iBAAiB,CAAC;IAC1E,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wBAAwB;IACxB,cAAc,CAAC,EACX,KAAK,GACL,eAAe,GACf,cAAc,GACd,KAAK,GACL,gBAAgB,GAChB,gBAAgB,CAAC;CACtB;AAWD;;GAEG;AACH,QAAA,MAAM,qBAAqB,GAAI,SAAS,OAAO,KAAG,OA0JjD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"fiducialBackend.d.ts","sourceRoot":"","sources":["../../src/fiducial/fiducialBackend.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAmB,MAAM,kBAAkB,CAAC;AAGjE,MAAM,WAAW,sBAAsB;IACrC,yBAAyB;IACzB,UAAU,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IAC1C,6BAA6B;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sBAAsB;IACtB,aAAa,CAAC,EAAE,OAAO,GAAG,kBAAkB,GAAG,MAAM,GAAG,iBAAiB,CAAC;IAC1E,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wBAAwB;IACxB,cAAc,CAAC,EACX,KAAK,GACL,eAAe,GACf,cAAc,GACd,KAAK,GACL,gBAAgB,GAChB,gBAAgB,CAAC;CACtB;AAWD;;GAEG;AACH,QAAA,MAAM,qBAAqB,GAAI,SAAS,sBAAsB,KAAG,OAwJhE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export { default as FiducialAnchor } from './FiducialAnchor';
2
2
  export { default as FiducialSession } from './FiducialSession';
3
3
  export { default as createFiducialBackend } from './fiducialBackend';
4
+ export type { FiducialAnchorProps } from './FiducialAnchor';
4
5
  export type { FiducialSessionProps } from './FiducialSession';
5
6
  export type { FiducialSessionOptions } from './fiducialBackend';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fiducial/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAErE,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,YAAY,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fiducial/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAErE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,YAAY,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { GeolocationSessionOptions } from 'geolocation';
2
1
  import { PropsWithChildren } from 'react';
2
+ import { GeolocationSessionOptions } from './geolocationBackend';
3
3
  export interface GeolocationSessionProps extends PropsWithChildren {
4
4
  /** Geolocation session options. */
5
5
  options?: GeolocationSessionOptions;
@@ -9,7 +9,7 @@ export interface GeolocationSessionProps extends PropsWithChildren {
9
9
  * Registers with the XR session provider and provides LocAR.js geolocation capabilities.
10
10
  */
11
11
  declare const GeolocationSession: {
12
- ({ options, children }: GeolocationSessionProps): import('react').ReactNode;
12
+ ({ options, children, }: GeolocationSessionProps): import('react').ReactNode;
13
13
  sessionType: string;
14
14
  };
15
15
  export default GeolocationSession;
@@ -1 +1 @@
1
- {"version":3,"file":"GeolocationSession.d.ts","sourceRoot":"","sources":["../../src/geolocation/GeolocationSession.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,mCAAmC;IACnC,OAAO,CAAC,EAAE,yBAAyB,CAAC;CACrC;AAED;;;GAGG;AACH,QAAA,MAAM,kBAAkB;4BAA2B,uBAAuB;;CA2CzE,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"}
@@ -9,10 +9,16 @@ export interface GeolocationSessionOptions {
9
9
  fakeLon?: number;
10
10
  /** Custom webcam constraints. */
11
11
  webcamConstraints?: MediaStreamConstraints;
12
+ /**
13
+ * GPS update callback. Fires when a new GPS position is received.
14
+ * @param position Updated GPS position.
15
+ * @param distanceMoved Distance moved, in meters, since the last update.
16
+ */
17
+ onGpsUpdated?: (position: GeolocationPosition, distanceMoved: number) => void;
12
18
  }
13
19
  /**
14
20
  * Create a location-based AR backend.
15
21
  */
16
- declare const createGeolocationBackend: (options: unknown) => Backend;
22
+ declare const createGeolocationBackend: (options: GeolocationSessionOptions) => Backend;
17
23
  export default createGeolocationBackend;
18
24
  //# sourceMappingURL=geolocationBackend.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"geolocationBackend.d.ts","sourceRoot":"","sources":["../../src/geolocation/geolocationBackend.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAmB,MAAM,kBAAkB,CAAC;AAGjE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;CAC5C;AAED;;GAEG;AACH,QAAA,MAAM,wBAAwB,GAAI,SAAS,OAAO,KAAG,OAqKpD,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"geolocationBackend.d.ts","sourceRoot":"","sources":["../../src/geolocation/geolocationBackend.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAmB,MAAM,kBAAkB,CAAC;AAGjE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;IAC3C;;;;OAIG;IAEH,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/E;AAED;;GAEG;AACH,QAAA,MAAM,wBAAwB,GAC5B,SAAS,yBAAyB,KACjC,OA+KF,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export { default as GeolocationAnchor } from './GeolocationAnchor';
2
2
  export { default as GeolocationSession } from './GeolocationSession';
3
3
  export { default as createGeolocationBackend } from './geolocationBackend';
4
+ export type { GeolocationAnchorProps } from './GeolocationAnchor';
4
5
  export type { GeolocationSessionProps } from './GeolocationSession';
5
6
  export type { GeolocationSessionOptions } from './geolocationBackend';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/geolocation/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAE3E,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,YAAY,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/geolocation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAE3E,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,YAAY,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC"}