hyperframes 0.8.119 → 0.8.120

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.
Files changed (111) hide show
  1. package/dist/{add-LVDM5BBO.js → add-SYG3UXKX.js} +5 -5
  2. package/dist/{asset-PA7XD3CI.js → asset-P6K7U3L6.js} +2 -2
  3. package/dist/{auth-SQIHPP3J.js → auth-TCX6TGIH.js} +4 -4
  4. package/dist/{autoUpdate-JCG27FBW.js → autoUpdate-YGT7MYDU.js} +2 -2
  5. package/dist/{backgroundChecks-U7JCBAWI.js → backgroundChecks-CCDNX6P2.js} +3 -3
  6. package/dist/backgroundChecksWorker.js +3 -3
  7. package/dist/{beats-6BSMZTE6.js → beats-HNU6TRID.js} +6 -6
  8. package/dist/{benchmark-WOZCECBF.js → benchmark-UEMJYRLY.js} +6 -6
  9. package/dist/{browser-KNPH25NJ.js → browser-CZJK4WQR.js} +3 -3
  10. package/dist/{bundleWithLocalizedFonts-I4RJWHKR.js → bundleWithLocalizedFonts-ZLXYM43M.js} +1 -1
  11. package/dist/{catalog-OXCKYFHY.js → catalog-G3C7EIL3.js} +5 -5
  12. package/dist/{check-N4QDDW6N.js → check-KTYPDNJD.js} +17 -17
  13. package/dist/{checkBrowser-D3L4OXTQ.js → checkBrowser-MJAN5LSM.js} +14 -14
  14. package/dist/{chunk-KNXXZ73S.js → chunk-4IWDF5OL.js} +2 -2
  15. package/dist/{chunk-Y44PIZOH.js → chunk-6A332WKF.js} +5 -5
  16. package/dist/{chunk-HNOJAFT2.js → chunk-6ZX3YCCU.js} +19 -19
  17. package/dist/{chunk-FRIRP3DN.js → chunk-7N3IODU7.js} +1 -1
  18. package/dist/{chunk-2MMAA5I3.js → chunk-A45JNRYR.js} +1 -1
  19. package/dist/{chunk-6Q3Q7HGA.js → chunk-B3MQEZBK.js} +1 -1
  20. package/dist/{chunk-EEXM24SY.js → chunk-CK2YS3E3.js} +2 -2
  21. package/dist/{chunk-523Q6JDM.js → chunk-DL347PC3.js} +2 -2
  22. package/dist/{chunk-P6UJ22SS.js → chunk-EFC3DCJL.js} +1 -1
  23. package/dist/{chunk-DNXD7TOA.js → chunk-I465DBM6.js} +27 -12
  24. package/dist/chunk-IGLEPPTN.js +24 -0
  25. package/dist/{chunk-CDTPNYO3.js → chunk-IJ2O4BLJ.js} +1 -1
  26. package/dist/{chunk-MVWXSRY6.js → chunk-JH556Q42.js} +69 -21
  27. package/dist/{chunk-3NXDJSD5.js → chunk-LIPKCOYU.js} +2 -2
  28. package/dist/{chunk-M6LKSPER.js → chunk-LJXFGHPO.js} +1 -1
  29. package/dist/{chunk-ZTU5PYQJ.js → chunk-LP3KFEVQ.js} +30 -17
  30. package/dist/{chunk-MYSYOQPV.js → chunk-NP5P2A2K.js} +2 -2
  31. package/dist/{chunk-SUIF4D5H.js → chunk-PCL5KCT7.js} +1 -1
  32. package/dist/{chunk-7UXUVWOY.js → chunk-QWD3NM22.js} +1 -1
  33. package/dist/chunk-SHB5VDMH.js +51 -0
  34. package/dist/{chunk-AMSNSTLK.js → chunk-SVI32JAG.js} +1 -1
  35. package/dist/{chunk-BZKDN6BU.js → chunk-UDYR6TIQ.js} +2 -2
  36. package/dist/{chunk-2FJPEXII.js → chunk-UOKW7DPN.js} +1 -1
  37. package/dist/{chunk-RMDKZTSI.js → chunk-WMCV6DHA.js} +1 -1
  38. package/dist/{chunk-RLYTIMTS.js → chunk-Y6W4DVPS.js} +4 -37
  39. package/dist/{chunk-KK7VGMEF.js → chunk-YV5INYEM.js} +6 -6
  40. package/dist/{chunk-RZAXPDIT.js → chunk-ZTZ7NCJT.js} +1 -1
  41. package/dist/{clean-VWT7OZEN.js → clean-AGTDSSLO.js} +9 -9
  42. package/dist/cli.js +50 -68
  43. package/dist/{cloud-BB7SW4DX.js → cloud-TIKQ43CO.js} +4 -4
  44. package/dist/{compare-3Z4BPHIZ.js → compare-2B7W2HXM.js} +13 -13
  45. package/dist/{component-6H2NIATV.js → component-ZQIN33DC.js} +3 -3
  46. package/dist/{compositions-I357YMW6.js → compositions-D6JAIKFJ.js} +5 -5
  47. package/dist/{delete-YJQPGNJJ.js → delete-UWZ6BBQI.js} +6 -5
  48. package/dist/{deterministicFonts-O7BTFDJU.js → deterministicFonts-ITMUXWD2.js} +2 -2
  49. package/dist/{doctor-NP34O2SX.js → doctor-LHUS7OQG.js} +3 -3
  50. package/dist/dotEnv-AI4SYVTX.js +39 -0
  51. package/dist/{events-NV6CNGUD.js → events-CNSBSROB.js} +2 -2
  52. package/dist/{events-T4KFU5HZ.js → events-EA2PNDU6.js} +3 -3
  53. package/dist/{feedback-DKHIGKC4.js → feedback-RAOT4ZX6.js} +36 -12
  54. package/dist/{figma-ALVXXDIQ.js → figma-HHALPQPX.js} +3 -3
  55. package/dist/fontLocalizeCli.js +4 -4
  56. package/dist/{get-CKKP6UBL.js → get-2VHYWD5M.js} +6 -5
  57. package/dist/{grade-compare-7POS3AY6.js → grade-compare-ZKYGIKRN.js} +9 -9
  58. package/dist/{help-KGRXGCVJ.js → help-YXXIXAVR.js} +1 -1
  59. package/dist/{history-JLXPVI2L.js → history-IFZM4MIB.js} +10 -10
  60. package/dist/hyperframes-player.global.js +1 -1
  61. package/dist/{info-QA5UAYFS.js → info-6TZU6FRJ.js} +5 -5
  62. package/dist/{init-7SM4AD76.js → init-5DPNU4VR.js} +12 -12
  63. package/dist/{inspect-ANJ2CRLP.js → inspect-LASYMXFA.js} +11 -11
  64. package/dist/{keyframes-H2ZUI3DC.js → keyframes-BS6D4QMB.js} +6 -6
  65. package/dist/{layout-EDDKQ67V.js → layout-HMJ5I362.js} +11 -11
  66. package/dist/{lint-SVXOETDR.js → lint-E2DTFSA5.js} +8 -8
  67. package/dist/{list-YRBK24UM.js → list-C3CXWSEA.js} +6 -5
  68. package/dist/{login-VE7VGBOA.js → login-W276LNGF.js} +6 -6
  69. package/dist/{logout-HJQT42RL.js → logout-Q654A3SI.js} +2 -2
  70. package/dist/{media-treatment-ZQOBGLJQ.js → media-treatment-XECAXDZD.js} +8 -8
  71. package/dist/{models-GVMX5TFG.js → models-6YWOFGV2.js} +4 -4
  72. package/dist/{motionShot-2Z6LRHEV.js → motionShot-TNMJ2TNL.js} +1 -1
  73. package/dist/{normalize-audio-QHMZWNNH.js → normalize-audio-JTK53ZDZ.js} +7 -7
  74. package/dist/{play-EYXIIZHG.js → play-PAJQYG2D.js} +17 -17
  75. package/dist/{present-YQ2BRUNH.js → present-TMFT5KD6.js} +13 -13
  76. package/dist/{preview-QMAPLY2S.js → preview-4HHLUOFB.js} +16 -16
  77. package/dist/{producer-FS442D4D.js → producer-6WPA3U6C.js} +1 -1
  78. package/dist/{publish-PCT6JM4B.js → publish-6RRDDVPK.js} +32 -26
  79. package/dist/{refresh-IK6LUV5Z.js → refresh-K24ETHMA.js} +2 -2
  80. package/dist/{render-6QXPYNLY.js → render-N4HBJR46.js} +14 -14
  81. package/dist/{render-HYA6UBZD.js → render-WFBNU2KD.js} +14 -13
  82. package/dist/{sherpa-COBFACPG.js → sherpa-GCD3QEO6.js} +4 -4
  83. package/dist/{skills-CT7TY7SZ.js → skills-D4HKC2WV.js} +5 -5
  84. package/dist/{skillsUpdateCheck-AWHTVNPB.js → skillsUpdateCheck-IPJRWH4Z.js} +3 -3
  85. package/dist/{snapshot-C4PYM7G5.js → snapshot-A7BIVQUX.js} +15 -15
  86. package/dist/{src-GGDAYPPK.js → src-POL5BSEV.js} +3 -3
  87. package/dist/{staticProjectServer-RBGIJQMY.js → staticProjectServer-BM2TZYJY.js} +4 -4
  88. package/dist/{status-FCLZF4FT.js → status-I7R2ATRZ.js} +2 -2
  89. package/dist/studio/assets/{hyperframes-player-7Icl2uVN.js → hyperframes-player-i4gqkhjz.js} +1 -1
  90. package/dist/studio/assets/{index-Dc8FEIEU.js → index-C7LHDM18.js} +1 -1
  91. package/dist/studio/assets/{index-DOO2cYhl.js → index-Ce3Lr-Gt.js} +174 -174
  92. package/dist/studio/assets/{index-7YcUqkoh.js → index-uWOhRqxe.js} +1 -1
  93. package/dist/studio/index.d.ts +5 -1
  94. package/dist/studio/index.html +1 -1
  95. package/dist/studio/index.js +72 -87
  96. package/dist/studio/index.js.map +1 -1
  97. package/dist/{studio-api-Y67F5TPC.js → studio-api-GWTH7IPD.js} +2 -2
  98. package/dist/{studioServer-SCAZGVUQ.js → studioServer-KB3KCVSZ.js} +10 -10
  99. package/dist/{telemetry-JJJQWUA3.js → telemetry-5WHZVQFM.js} +3 -3
  100. package/dist/{timeline-BEWRG3QA.js → timeline-KM5YF4WX.js} +10 -10
  101. package/dist/{tokens-GAZXBXWG.js → tokens-VUPKFWHG.js} +2 -2
  102. package/dist/{transcribe-ZCFEAIAW.js → transcribe-4IJPHM33.js} +5 -5
  103. package/dist/{transcribe-UJUYNNEH.js → transcribe-E7RAUZ2W.js} +2 -2
  104. package/dist/{updateCheck-H5DKTWUO.js → updateCheck-JY2WCSMC.js} +2 -2
  105. package/dist/{upgrade-RUBSQNRS.js → upgrade-QWBPPGTJ.js} +2 -2
  106. package/dist/{validate-5R3OJEGF.js → validate-5LJ6TDCF.js} +6 -6
  107. package/package.json +1 -1
  108. package/dist/{capture-PZQOA465.js → capture-6NN3YJBF.js} +0 -0
  109. package/dist/{chunk-AIYKVE4Y.js → chunk-2GKO3X7F.js} +3 -3
  110. package/dist/{chunk-KFKEMNSW.js → chunk-XUNOKLEJ.js} +3 -3
  111. /package/dist/{lambda-HZ2ZKLVH.js → lambda-AHKA33RE.js} +0 -0
@@ -9,10 +9,16 @@ import {
9
9
  } from "./chunk-KZI44OPA.js";
10
10
  import {
11
11
  serveStaticProjectHtml
12
- } from "./chunk-AMSNSTLK.js";
12
+ } from "./chunk-SVI32JAG.js";
13
+ import {
14
+ formatLintFindings
15
+ } from "./chunk-6CSYCFQV.js";
13
16
  import "./chunk-XUHOIDKG.js";
14
- import "./chunk-RMDKZTSI.js";
15
17
  import "./chunk-X7MTZ4T2.js";
18
+ import "./chunk-WMCV6DHA.js";
19
+ import {
20
+ resolveProject
21
+ } from "./chunk-B3MQEZBK.js";
16
22
  import {
17
23
  DEFAULT_ZOOM_SCALE,
18
24
  captureRegionCrop,
@@ -27,18 +33,12 @@ import "./chunk-OI3IIR2X.js";
27
33
  import "./chunk-262C25DQ.js";
28
34
  import "./chunk-OLFFCC2D.js";
29
35
  import "./chunk-YEIFI443.js";
30
- import "./chunk-ZTU5PYQJ.js";
31
- import "./chunk-HNOJAFT2.js";
36
+ import "./chunk-IHFUKJOR.js";
37
+ import "./chunk-LP3KFEVQ.js";
38
+ import "./chunk-6ZX3YCCU.js";
32
39
  import "./chunk-EOVYQ3IG.js";
33
40
  import "./chunk-BKQXLO55.js";
34
41
  import "./chunk-OWMGDQBZ.js";
35
- import {
36
- resolveProject
37
- } from "./chunk-6Q3Q7HGA.js";
38
- import {
39
- formatLintFindings
40
- } from "./chunk-6CSYCFQV.js";
41
- import "./chunk-IHFUKJOR.js";
42
42
  import {
43
43
  resolveLocalBrowserGpuMode
44
44
  } from "./chunk-V5T6IA7D.js";
@@ -59,8 +59,8 @@ import {
59
59
  getFFmpegInstallHint
60
60
  } from "./chunk-TVCRUG2S.js";
61
61
  import "./chunk-TRLP3CSL.js";
62
- import "./chunk-CDTPNYO3.js";
63
- import "./chunk-M6LKSPER.js";
62
+ import "./chunk-IJ2O4BLJ.js";
63
+ import "./chunk-LJXFGHPO.js";
64
64
  import "./chunk-VWG7OQKU.js";
65
65
  import {
66
66
  c
@@ -111,7 +111,7 @@ import "./chunk-K4WIOZFP.js";
111
111
  import "./chunk-XUXGIA7H.js";
112
112
  import "./chunk-WERLJGIC.js";
113
113
  import "./chunk-ISN5GRYI.js";
114
- import "./chunk-3NXDJSD5.js";
114
+ import "./chunk-LIPKCOYU.js";
115
115
  import {
116
116
  normalizeErrorMessage
117
117
  } from "./chunk-KNU5COPB.js";
@@ -364,7 +364,7 @@ function computeSnapshotTimes(duration, opts) {
364
364
  return { times: times.map(round), appendedTail: false };
365
365
  }
366
366
  async function captureSnapshots(projectDir, opts) {
367
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-I4RJWHKR.js");
367
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-ZLXYM43M.js");
368
368
  const numFrames = opts.frames ?? 5;
369
369
  const html = await bundleWithLocalizedFonts(projectDir);
370
370
  const server = await serveStaticProjectHtml(projectDir, html, void 0, [], opts.autoProxy);
@@ -67,7 +67,7 @@ import {
67
67
  serializeRenderRequest,
68
68
  startServer,
69
69
  validatePlanV2MaterializedTarget
70
- } from "./chunk-SUIF4D5H.js";
70
+ } from "./chunk-PCL5KCT7.js";
71
71
  import {
72
72
  FONT_FETCH_FAILED,
73
73
  FONT_FETCH_UNAVAILABLE,
@@ -76,13 +76,13 @@ import {
76
76
  createConsoleLogger,
77
77
  defaultLogger,
78
78
  injectDeterministicFontFaces
79
- } from "./chunk-AIYKVE4Y.js";
79
+ } from "./chunk-2GKO3X7F.js";
80
+ import "./chunk-32MY4AZN.js";
80
81
  import "./chunk-GVJMAHXQ.js";
81
82
  import "./chunk-KC5XXX3X.js";
82
83
  import "./chunk-TJSTGSAW.js";
83
84
  import "./chunk-BZ56MTDX.js";
84
85
  import "./chunk-ZLJXATSQ.js";
85
- import "./chunk-32MY4AZN.js";
86
86
  import {
87
87
  DEFAULT_CONFIG,
88
88
  captureFrame,
@@ -6,12 +6,12 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  serveStaticProjectHtml
9
- } from "./chunk-AMSNSTLK.js";
9
+ } from "./chunk-SVI32JAG.js";
10
10
  import "./chunk-XUHOIDKG.js";
11
- import "./chunk-RMDKZTSI.js";
12
11
  import "./chunk-X7MTZ4T2.js";
13
- import "./chunk-ZTU5PYQJ.js";
14
- import "./chunk-HNOJAFT2.js";
12
+ import "./chunk-WMCV6DHA.js";
13
+ import "./chunk-LP3KFEVQ.js";
14
+ import "./chunk-6ZX3YCCU.js";
15
15
  import "./chunk-EOVYQ3IG.js";
16
16
  import "./chunk-BKQXLO55.js";
17
17
  import "./chunk-OWMGDQBZ.js";
@@ -12,13 +12,13 @@ import "./chunk-5ETJX6WM.js";
12
12
  import {
13
13
  loadUserInfo,
14
14
  userDisplayName
15
- } from "./chunk-RZAXPDIT.js";
15
+ } from "./chunk-ZTZ7NCJT.js";
16
16
  import {
17
17
  AuthClient,
18
18
  isAuthError,
19
19
  refreshTokens,
20
20
  tryResolveCredential
21
- } from "./chunk-DNXD7TOA.js";
21
+ } from "./chunk-I465DBM6.js";
22
22
  import {
23
23
  c
24
24
  } from "./chunk-ZTZA4UWZ.js";
@@ -1,4 +1,4 @@
1
- var xe=Object.defineProperty;var ke=(r,i,e)=>i in r?xe(r,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[i]=e;var h=(r,i,e)=>ke(r,typeof i!="symbol"?i+"":i,e);import{r as fe,i as Ie,a as w,b as _e,p as Oe,c as Ne,d as Fe,s as Ve,e as ge,F as ye}from"./index-DOO2cYhl.js";function He(r){return r.hasRuntime||r.runtimeInjected?!1:!!(r.hasNestedCompositions||r.hasTimelines&&r.attempts>=5)}function z(r){return typeof r=="object"&&r!==null}function Ue(r){return z(r)&&typeof r.getDuration=="function"}function We(r){return z(r)&&typeof r.duration=="function"&&typeof r.time=="function"&&typeof r.seek=="function"&&typeof r.play=="function"&&typeof r.pause=="function"}function ze(r){if(!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(r))throw new Error(`Invalid HyperFrames runtime version: ${r}`);return`https://cdn.jsdelivr.net/npm/@hyperframes/core@${r}/dist/hyperframe.runtime.iife.js`}const U=typeof __HYPERFRAMES_RUNTIME_CDN_URL__=="string"?__HYPERFRAMES_RUNTIME_CDN_URL__:ze("0.0.0-dev");function $(r){if(r===null)return null;const i=Number.parseInt(r,10);return Number.isFinite(i)&&i>0?i:null}function $e(r){const i=(r==null?void 0:r.querySelector("[data-composition-id][data-width][data-height]"))??(r==null?void 0:r.querySelector("[data-width][data-height]"));if(!i)return null;const e=$(i.getAttribute("data-width")),t=$(i.getAttribute("data-height"));return e!==null&&t!==null?{width:e,height:t}:null}class je{constructor(i,e){h(this,"_interval",null);h(this,"_runtimeInjected",!1);this._iframe=i,this._callbacks=e}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._runtimeInjected=!1;let i=0;this._interval=setInterval(()=>{var e;i++;try{const t=this._iframe.contentWindow;if(!t)return;const s=!!(t.__hf||t.__player),n=!!(t.__timelines&&Object.keys(t.__timelines).length>0),o=!!((e=this._iframe.contentDocument)!=null&&e.querySelector("[data-composition-src]"));if(He({hasRuntime:s,hasTimelines:n,hasNestedCompositions:o,runtimeInjected:this._runtimeInjected,attempts:i})){this._injectRuntime();return}if(this._runtimeInjected&&!s)return;const a=this._resolvePlaybackDurationAdapter(t);if(a&&a.getDuration()>0){this.stop();const c=$e(this._iframe.contentDocument);this._callbacks.onReady({duration:a.getDuration(),adapter:a,compositionSize:c});return}}catch{}i>=40&&(this.stop(),this._callbacks.onError("Composition timeline not found after 8s"))},200)}stop(){this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{const i=this._iframe.contentWindow;return i?this._resolveDirectTimelineAdapterFromWindow(i):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(i){return this._resolveDirectTimelineAdapterFromWindow(i)}hasRuntimeBridge(i){return Reflect.get(i,"__hf")!==void 0||z(Reflect.get(i,"__player"))}_injectRuntime(){var i,e;this._runtimeInjected=!0;try{const t=this._iframe.contentDocument;if(!t)return;const s=t.createElement("script");s.src=U,(t.head||t.documentElement).appendChild(s),(e=(i=this._callbacks).onRuntimeInjected)==null||e.call(i)}catch{}}_resolveDirectTimelineAdapterFromWindow(i){var a,c;if(this.hasRuntimeBridge(i))return null;const e=Reflect.get(i,"__timelines");if(!z(e))return null;const t=Object.keys(e);if(t.length===0)return null;const s=(c=(a=this._iframe.contentDocument)==null?void 0:a.querySelector("[data-composition-id]"))==null?void 0:c.getAttribute("data-composition-id"),n=s&&s in e?s:t[t.length-1],o=e[n];return We(o)?o:null}_resolvePlaybackDurationAdapter(i){const e=Reflect.get(i,"__player");if(Ue(e))return{kind:"runtime",getDuration:()=>e.getDuration()};const t=this._resolveDirectTimelineAdapterFromWindow(i);return t?{kind:"direct-timeline",timeline:t,getDuration:()=>t.duration()}:null}}const Be=`
1
+ var xe=Object.defineProperty;var ke=(r,i,e)=>i in r?xe(r,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[i]=e;var h=(r,i,e)=>ke(r,typeof i!="symbol"?i+"":i,e);import{r as fe,i as Ie,a as w,b as _e,p as Oe,c as Ne,d as Fe,s as Ve,e as ge,F as ye}from"./index-Ce3Lr-Gt.js";function He(r){return r.hasRuntime||r.runtimeInjected?!1:!!(r.hasNestedCompositions||r.hasTimelines&&r.attempts>=5)}function z(r){return typeof r=="object"&&r!==null}function Ue(r){return z(r)&&typeof r.getDuration=="function"}function We(r){return z(r)&&typeof r.duration=="function"&&typeof r.time=="function"&&typeof r.seek=="function"&&typeof r.play=="function"&&typeof r.pause=="function"}function ze(r){if(!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(r))throw new Error(`Invalid HyperFrames runtime version: ${r}`);return`https://cdn.jsdelivr.net/npm/@hyperframes/core@${r}/dist/hyperframe.runtime.iife.js`}const U=typeof __HYPERFRAMES_RUNTIME_CDN_URL__=="string"?__HYPERFRAMES_RUNTIME_CDN_URL__:ze("0.0.0-dev");function $(r){if(r===null)return null;const i=Number.parseInt(r,10);return Number.isFinite(i)&&i>0?i:null}function $e(r){const i=(r==null?void 0:r.querySelector("[data-composition-id][data-width][data-height]"))??(r==null?void 0:r.querySelector("[data-width][data-height]"));if(!i)return null;const e=$(i.getAttribute("data-width")),t=$(i.getAttribute("data-height"));return e!==null&&t!==null?{width:e,height:t}:null}class je{constructor(i,e){h(this,"_interval",null);h(this,"_runtimeInjected",!1);this._iframe=i,this._callbacks=e}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._runtimeInjected=!1;let i=0;this._interval=setInterval(()=>{var e;i++;try{const t=this._iframe.contentWindow;if(!t)return;const s=!!(t.__hf||t.__player),n=!!(t.__timelines&&Object.keys(t.__timelines).length>0),o=!!((e=this._iframe.contentDocument)!=null&&e.querySelector("[data-composition-src]"));if(He({hasRuntime:s,hasTimelines:n,hasNestedCompositions:o,runtimeInjected:this._runtimeInjected,attempts:i})){this._injectRuntime();return}if(this._runtimeInjected&&!s)return;const a=this._resolvePlaybackDurationAdapter(t);if(a&&a.getDuration()>0){this.stop();const c=$e(this._iframe.contentDocument);this._callbacks.onReady({duration:a.getDuration(),adapter:a,compositionSize:c});return}}catch{}i>=40&&(this.stop(),this._callbacks.onError("Composition timeline not found after 8s"))},200)}stop(){this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{const i=this._iframe.contentWindow;return i?this._resolveDirectTimelineAdapterFromWindow(i):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(i){return this._resolveDirectTimelineAdapterFromWindow(i)}hasRuntimeBridge(i){return Reflect.get(i,"__hf")!==void 0||z(Reflect.get(i,"__player"))}_injectRuntime(){var i,e;this._runtimeInjected=!0;try{const t=this._iframe.contentDocument;if(!t)return;const s=t.createElement("script");s.src=U,(t.head||t.documentElement).appendChild(s),(e=(i=this._callbacks).onRuntimeInjected)==null||e.call(i)}catch{}}_resolveDirectTimelineAdapterFromWindow(i){var a,c;if(this.hasRuntimeBridge(i))return null;const e=Reflect.get(i,"__timelines");if(!z(e))return null;const t=Object.keys(e);if(t.length===0)return null;const s=(c=(a=this._iframe.contentDocument)==null?void 0:a.querySelector("[data-composition-id]"))==null?void 0:c.getAttribute("data-composition-id"),n=s&&s in e?s:t[t.length-1],o=e[n];return We(o)?o:null}_resolvePlaybackDurationAdapter(i){const e=Reflect.get(i,"__player");if(Ue(e))return{kind:"runtime",getDuration:()=>e.getDuration()};const t=this._resolveDirectTimelineAdapterFromWindow(i);return t?{kind:"direct-timeline",timeline:t,getDuration:()=>t.duration()}:null}}const Be=`
2
2
  :host {
3
3
  display: block;
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{n as Qi}from"./index-DOO2cYhl.js";/*!
1
+ import{n as Qi}from"./index-Ce3Lr-Gt.js";/*!
2
2
  * Copyright (c) 2026-present, Vanilagy and contributors
3
3
  *
4
4
  * This Source Code Form is subject to the terms of the Mozilla Public