@expo/styleguide-search-ui 8.0.0 → 8.0.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.
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{Command as e}from"cmdk";import{c as t}from"react/compiler-runtime";import{useChat as n,KapaProvider as r}from"@kapaai/react-sdk";import{mergeClasses as i,DocsLogo as o,Button as s,Link as a}from"@expo/styleguide";import{MessageQuestionCircleIcon as l}from"@expo/styleguide-icons/outline/MessageQuestionCircleIcon";import{SearchSmIcon as c}from"@expo/styleguide-icons/outline/SearchSmIcon";import{Stars02Icon as m}from"@expo/styleguide-icons/outline/Stars02Icon";import{XIcon as d}from"@expo/styleguide-icons/outline/XIcon";import{DialogTitle as p,DialogDescription as u}from"@radix-ui/react-dialog";import h from"lodash.groupby";import{useState as f,isValidElement as g,Children as x,useMemo as y,useEffect as v,useRef as b,useCallback as w,useEffectEvent as C}from"react";import{jsx as N,jsxs as S,Fragment as k}from"react/jsx-runtime";import{ArrowUpRightIcon as _}from"@expo/styleguide-icons/outline/ArrowUpRightIcon";import{ChevronRightIcon as I}from"@expo/styleguide-icons/outline/ChevronRightIcon";import{createClient as $}from"@sanity/client";import{ClipboardIcon as A}from"@expo/styleguide-icons/outline/ClipboardIcon";import{RefreshCcw02Icon as M}from"@expo/styleguide-icons/outline/RefreshCcw02Icon";import{ThumbsDownIcon as O}from"@expo/styleguide-icons/outline/ThumbsDownIcon";import{ThumbsUpIcon as E}from"@expo/styleguide-icons/outline/ThumbsUpIcon";import{ThumbsDownSolidIcon as j}from"@expo/styleguide-icons/solid/ThumbsDownSolidIcon";import{ThumbsUpSolidIcon as L}from"@expo/styleguide-icons/solid/ThumbsUpSolidIcon";import{Markdown as H}from"markdown-to-jsx/react";import{CheckIcon as z}from"@expo/styleguide-icons/outline/CheckIcon";import{PlanEnterpriseIcon as P}from"@expo/styleguide-icons/custom/PlanEnterpriseIcon";import{BookOpen02Icon as q}from"@expo/styleguide-icons/outline/BookOpen02Icon";import{GraduationHat02Icon as R}from"@expo/styleguide-icons/outline/GraduationHat02Icon";import{Hash02Icon as T}from"@expo/styleguide-icons/outline/Hash02Icon";import{Home02Icon as U}from"@expo/styleguide-icons/outline/Home02Icon";import{GithubIcon as V}from"@expo/styleguide-icons/custom/GithubIcon";import{Download01Icon as D}from"@expo/styleguide-icons/outline/Download01Icon";import{Star01Icon as K}from"@expo/styleguide-icons/outline/Star01Icon";const G=e=>{const n=t(5),{isLoading:r,className:o}=e,s=r&&"animate-[searchUIBarLoader_2s_infinite_ease-in-out]";let a,l;return n[0]!==o||n[1]!==s?(a=i("bg-palette-blue9 h-0.5 absolute z-20",s,o),n[0]=o,n[1]=s,n[2]=a):a=n[2],n[3]!==a?(l=N("div",{role:"progressbar",className:a}),n[3]=a,n[4]=l):l=n[4],l};function Z(){const e=t(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=N(I,{className:"icon-xs text-icon-quaternary inline-block relative mx-1 -top-px"}),e[0]=n):n=e[0],n}const F=()=>{const e=t(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=N(_,{className:"text-icon-tertiary self-center ml-auto shrink-0"}),e[0]=n):n=e[0],n},B=e=>{const n=t(6),{className:r}=e;let o,s,a,l;return n[0]!==r?(o=i("icon-md text-icon-secondary",r),n[0]=r,n[1]=o):o=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(s=N("circle",{cx:"0",cy:"0",r:"2.05",fill:"currentColor"}),n[2]=s):s=n[2],n[3]===Symbol.for("react.memo_cache_sentinel")?(a=S("g",{stroke:"currentColor",strokeWidth:"1",fill:"none",children:[N("ellipse",{rx:"11",ry:"4.2"}),N("ellipse",{rx:"11",ry:"4.2",transform:"rotate(60)"}),N("ellipse",{rx:"11",ry:"4.2",transform:"rotate(120)"})]}),n[3]=a):a=n[3],n[4]!==o?(l=S("svg",{viewBox:"-11.5 -10.23174 23 20.46348",className:o,children:[s,a]}),n[4]=o,n[5]=l):l=n[5],l},Q=e=>{const n=t(4),{className:r}=e;let i,o,s;return n[0]===Symbol.for("react.memo_cache_sentinel")?(i=S("g",{clipPath:"url(#clip0_1_2)",children:[N("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1070.38 275.3V5.90999C1070.38 2.27998 1067.14 -0.480015 1063.56 0.0799852L1013.1 8.01999C1010.23 8.46999 1008.11 10.95 1008.11 13.86L1008.28 287.08C1008.28 300 1008.28 379.78 1104.25 382.57C1107.58 382.67 1110.34 379.99 1110.34 376.66V335.88C1110.34 332.92 1108.15 330.37 1105.22 330.04C1070.37 326.03 1070.37 282.47 1070.37 275.32L1070.38 275.3Z"}),N("path",{d:"M1902.56 104.73H1851.78C1848.52 104.73 1845.88 107.372 1845.88 110.63V376.73C1845.88 379.988 1848.52 382.63 1851.78 382.63H1902.56C1905.82 382.63 1908.46 379.988 1908.46 376.73V110.63C1908.46 107.372 1905.82 104.73 1902.56 104.73Z"}),N("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1851.78 71.38H1902.55C1905.81 71.38 1908.45 68.74 1908.45 65.48V5.90001C1908.45 2.28001 1905.21 -0.489988 1901.63 0.0700121L1850.86 8.02001C1847.99 8.47001 1845.87 10.94 1845.87 13.85V65.47C1845.87 68.73 1848.51 71.37 1851.77 71.37L1851.78 71.38Z"}),N("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1764.03 275.3V5.90999C1764.03 2.27998 1760.79 -0.480015 1757.21 0.0799852L1706.75 8.01999C1703.88 8.46999 1701.76 10.95 1701.76 13.86L1701.93 287.08C1701.93 300 1701.93 379.78 1797.9 382.57C1801.23 382.67 1803.99 379.99 1803.99 376.66V335.88C1803.99 332.92 1801.8 330.37 1798.87 330.04C1764.02 326.03 1764.02 282.47 1764.02 275.32L1764.03 275.3Z"}),N("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1631.95 142.72C1620.81 130.47 1607.12 121.07 1591.17 114.41C1575.25 107.88 1557.91 104.56 1539.1 104.56C1520.32 104.56 1502.95 107.73 1487.18 114.41C1471.59 121.07 1457.89 130.46 1446.42 142.72C1434.95 154.95 1426.04 169.59 1419.66 186.75C1413.28 203.92 1410.42 224.12 1410.42 245.11C1410.42 266.1 1413.61 281.98 1419.97 299.32C1426.35 316.64 1435.11 331.43 1446.42 343.68C1457.71 355.91 1471.25 365.3 1487.02 372.14C1502.79 378.97 1527.14 382.47 1539.42 382.62C1551.67 382.62 1576.2 378.8 1592.12 372.14C1608.04 365.46 1621.58 355.91 1632.9 343.68C1644.19 331.43 1652.95 316.64 1659.15 299.32C1665.37 281.98 1668.39 266.1 1668.39 245.11C1668.39 224.12 1665.05 203.92 1658.36 186.75C1651.98 169.58 1643.22 154.95 1631.93 142.72H1631.95ZM1587.52 306.47C1576.05 322.22 1559.96 330.17 1539.43 330.17C1518.88 330.17 1502.8 322.37 1491.33 306.47C1479.86 290.72 1474.12 272.46 1474.12 245.27C1474.12 218.38 1479.71 196.13 1491.18 180.4C1502.63 164.65 1518.72 156.88 1539.25 156.88C1559.8 156.88 1575.88 164.66 1587.34 180.4C1598.81 195.97 1604.7 218.38 1604.7 245.27C1604.7 272.46 1598.98 290.57 1587.51 306.47H1587.52Z"}),N("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M894.42 104.73H845.09C796.73 104.73 754.18 130.21 729.34 168.83C714.82 191.41 706.35 218.46 706.35 247.56C706.35 292.45 726.48 332.48 757.94 358.66C760.87 361.26 763.99 363.64 767.25 365.8C780.11 374.29 795.36 379.27 811.77 379.27C813 379.27 814.23 379.24 815.45 379.18C815.81 379.16 816.16 379.13 816.52 379.11C817.39 379.06 818.27 379 819.14 378.91C819.48 378.88 819.82 378.83 820.16 378.79C821.07 378.69 821.98 378.58 822.89 378.45C823.1 378.42 823.31 378.38 823.52 378.35C856.41 373.28 885.08 347.53 894.42 315.54V373.37C894.42 376.63 897.06 379.27 900.32 379.27H950.74C954 379.27 956.64 376.63 956.64 373.37V110.63C956.64 107.37 954 104.73 950.74 104.73H894.42ZM894.42 311.65C882.22 321.81 866.45 325.63 849.58 326.77C849.42 326.78 849.25 326.8 849.09 326.81C847.97 326.88 846.85 326.91 845.73 326.91C803.49 326.91 768.61 291.02 768.61 247.54C768.61 237.29 770.57 227.53 774.03 218.56C785.25 189.44 812.8 168.82 845.09 168.82H894.42V311.65Z"}),N("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2133.97 104.73H2084.64C2036.28 104.73 1993.73 130.21 1968.89 168.83C1954.37 191.41 1945.9 218.46 1945.9 247.56C1945.9 292.45 1966.03 332.48 1997.49 358.66C2000.42 361.26 2003.54 363.64 2006.8 365.8C2019.66 374.29 2034.91 379.27 2051.32 379.27C2052.55 379.27 2053.78 379.24 2055 379.18C2055.36 379.16 2055.71 379.13 2056.07 379.11C2056.94 379.06 2057.82 379 2058.69 378.91C2059.03 378.88 2059.37 378.83 2059.71 378.79C2060.62 378.69 2061.53 378.58 2062.44 378.45C2062.65 378.42 2062.86 378.38 2063.07 378.35C2095.96 373.28 2124.63 347.53 2133.97 315.54V373.37C2133.97 376.63 2136.61 379.27 2139.87 379.27H2190.29C2193.55 379.27 2196.19 376.63 2196.19 373.37V110.63C2196.19 107.37 2193.55 104.73 2190.29 104.73H2133.97ZM2133.97 311.65C2121.77 321.81 2106 325.63 2089.13 326.77C2088.97 326.78 2088.8 326.8 2088.64 326.81C2087.52 326.88 2086.4 326.91 2085.28 326.91C2043.04 326.91 2008.16 291.02 2008.16 247.54C2008.16 237.29 2010.12 227.53 2013.58 218.56C2024.8 189.44 2052.35 168.82 2084.64 168.82H2133.97V311.65Z"}),N("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1314.05 104.73H1264.72C1216.36 104.73 1173.81 130.21 1148.97 168.83C1137.18 187.17 1129.37 208.47 1126.86 231.42C1126.28 236.72 1125.98 242.1 1125.98 247.56C1125.98 253.02 1126.29 258.71 1126.91 264.15C1131.19 302.24 1150.05 335.76 1177.57 358.67C1180.5 361.27 1183.62 363.65 1186.88 365.81C1199.74 374.3 1214.99 379.28 1231.4 379.28C1249.39 379.28 1266.01 373.35 1279.56 363.31C1295.85 351.73 1308.44 334.77 1314.04 315.56V365.82H1313.93V376.9C1313.93 398.74 1308.22 415.17 1296.59 426.26C1284.98 437.34 1265.55 442.89 1238.34 442.89C1227.22 442.89 1209.55 442.3 1191.74 440.48C1188.91 440.19 1186.28 441.98 1185.47 444.7L1172.69 487.81C1171.67 491.27 1173.96 494.83 1177.52 495.34C1199.04 498.42 1220.04 500.02 1232.17 500.02C1281.08 500.02 1317.33 489.27 1341.06 467.81C1362.54 448.4 1374.21 418.92 1376.26 379.29V110.63C1376.26 107.37 1373.62 104.73 1370.36 104.73H1314.04H1314.05ZM1314.05 168.83C1314.05 168.83 1314.7 307.96 1314.05 312.19C1301.97 321.96 1286.94 325.78 1270.56 326.89C1270.4 326.9 1270.23 326.92 1270.07 326.93C1268.95 327 1267.83 327.03 1266.71 327.03C1265.39 327.03 1264.08 327 1262.77 326.93C1222.36 324.82 1188.25 289.67 1188.25 247.55C1188.25 237.3 1190.21 227.54 1193.67 218.57C1204.89 189.45 1232.44 168.83 1264.73 168.83H1314.06H1314.05Z"}),N("path",{d:"M249.83 0C113.3 0 2.00001 110.09 0.0300098 246.16C-1.96999 384.35 110.15 498.86 248.36 499.66C291.04 499.91 332.15 489.47 368.66 469.63C372.22 467.7 372.77 462.8 369.74 460.12L346.36 439.4C341.61 435.19 334.85 434 329 436.48C303.52 447.32 275.83 452.86 247.29 452.51C135.61 451.14 45.38 358.22 47.16 246.55C48.92 136.29 139.16 47.14 249.83 47.14H452.52V407.41L337.52 305.23C333.8 301.92 328.1 302.57 325.1 306.54C306.64 330.98 276.57 346.18 243.17 343.88C196.84 340.68 159.3 303.38 155.83 257.07C151.68 201.83 195.46 155.55 249.83 155.55C299.01 155.55 339.51 193.4 343.74 241.5C344.12 245.78 346.05 249.77 349.26 252.62L379.21 279.17C382.61 282.18 388 280.34 388.84 275.87C391 264.32 391.76 252.29 390.91 239.95C386.09 169.61 329.11 113.02 258.74 108.69C178.06 103.72 110.61 166.83 108.47 245.94C106.38 323.04 169.55 389.5 246.66 391.2C278.85 391.91 308.69 381.79 332.8 364.25L483.06 497.45C489.5 503.16 499.67 498.59 499.67 489.98V9.48C499.66 4.25 495.42 0 490.18 0H249.83Z"})]}),o=N("defs",{children:N("clipPath",{children:N("rect",{width:2196.2,height:500})})}),n[0]=i,n[1]=o):(i=n[0],o=n[1]),n[2]!==r?(s=S("svg",{width:"77",height:"19",viewBox:"0 0 2197 500",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-label":"Algolia",className:r,role:"img",children:[i,o]}),n[2]=r,n[3]=s):s=n[3],s},W=e=>{const n=t(10),{className:r}=e;let i,o,s,a,l,c,m,d,p;return n[0]===Symbol.for("react.memo_cache_sentinel")?(i=N("path",{d:"m345.202 187.216c-1.602 0-2.9-1.3-2.898-2.903l.192-131.3758c.003-1.599 1.3-2.8941 2.899-2.8941h21.913c1.601 0 2.899 1.2977 2.899 2.8983v68.9056c0 2.83 3.639 3.982 5.268 1.668l30.607-43.4845c.543-.7712 1.427-1.2301 2.37-1.2301h26.556c2.365 0 3.734 2.6785 2.35 4.5952l-34.565 47.8594c-.751 1.04-.73 2.45.053 3.466l36.845 47.828c1.468 1.905.11 4.667-2.296 4.667h-28.159c-.933 0-1.808-.449-2.353-1.206l-31.425-43.693c-1.644-2.285-5.251-1.123-5.251 1.692v40.308c0 1.601-1.298 2.899-2.899 2.899z"}),o=N("path",{d:"m477.369 190.227c-7.763 0-14.355-1.472-19.776-4.417-5.354-3.011-9.436-6.993-12.247-11.945-2.744-5.02-4.116-10.541-4.116-16.564 0-5.019.77-9.603 2.309-13.753 1.539-4.149 4.016-7.796 7.429-10.941 3.48-3.213 8.131-5.89 13.953-8.031 4.016-1.473 8.801-2.778 14.355-3.915 5.555-1.138 11.846-2.209 18.872-3.213 4.589-.699 9.476-1.441 14.664-2.225 1.701-.258 2.481 2.042.974 2.873-1.028.566-2.292-.179-2.378-1.35-.372-5.108-1.881-8.956-4.526-11.544-3.079-3.012-8.232-4.518-15.459-4.518-4.016 0-8.198.971-12.548 2.911-3.548 1.583-6.228 4.168-8.04 7.754-.706 1.398-2.282 2.21-3.774 1.737l-19.281-6.114c-1.515-.48-2.37-2.096-1.811-3.583 2.906-7.7358 7.751-14.125 14.535-19.1678 7.563-5.6216 17.869-8.4323 30.919-8.4323 9.57 0 18.069 1.4723 25.497 4.4169 7.429 2.9446 13.05 8.0307 16.865 15.2584 2.142 4.0154 3.413 8.0308 3.815 12.0458.401 4.016.602 8.5.602 13.452v63.355c0 1.601-1.298 2.899-2.898 2.899h-18.095c-1.601 0-2.899-1.298-2.899-2.899v-14.76c0-1.47 1.876-2.088 2.75-.906.395.534.399 1.264.002 1.796-5.102 6.832-10.603 11.819-16.504 14.962-6.09 3.212-13.82 4.818-23.189 4.818zm5.822-21.482c5.019 0 9.236-.87 12.649-2.61 3.48-1.807 6.223-3.848 8.231-6.123 2.075-2.276 3.48-4.183 4.216-5.722 1.406-2.945 2.209-6.358 2.41-10.24.211-3.117.339-5.818.383-8.101.017-.882.847-1.529 1.703-1.315 1.428.357 1.345 2.42-.106 2.665-5.205.882-9.612 1.66-13.224 2.334-5.019.87-9.068 1.674-12.146 2.41-3.079.736-5.789 1.539-8.131 2.409-2.677 1.071-4.852 2.242-6.525 3.513-1.606 1.205-2.811 2.543-3.614 4.016-.736 1.472-1.104 3.112-1.104 4.919 0 2.476.602 4.617 1.807 6.424 1.271 1.74 3.045 3.079 5.32 4.016s4.986 1.405 8.131 1.405z"}),s=N("path",{d:"m611.484 190.227c-10.774 0-19.775-2.509-27.003-7.529-7.228-5.019-12.682-11.845-16.363-20.478-3.614-8.633-5.421-18.37-5.421-29.212 0-10.841 1.807-20.579 5.421-29.212 3.614-8.6329 8.934-15.4591 15.961-20.4783s15.694-7.5288 26-7.5288c10.373 0 19.408 2.4761 27.104 7.4284s13.652 11.745 17.868 20.3777c4.283 8.567 6.425 18.371 6.425 29.413 0 10.842-2.108 20.579-6.324 29.212-4.15 8.633-9.972 15.459-17.467 20.478-7.496 5.02-16.229 7.529-26.201 7.529zm-50.506 45.173c-1.601 0-2.898-1.297-2.898-2.898v-150.8033c0-1.6007 1.297-2.8983 2.898-2.8983h18.296c1.6 0 2.898 1.2976 2.898 2.8983v69.6793c0 .943.764 1.707 1.706 1.707.943 0 1.707.764 1.707 1.707v77.71c0 1.601-1.298 2.898-2.898 2.898zm46.089-69.466c5.89 0 10.708-1.472 14.456-4.417 3.747-2.944 6.525-6.893 8.332-11.845 1.807-5.019 2.71-10.574 2.71-16.664 0-6.023-.937-11.511-2.811-16.463-1.874-5.019-4.785-9.001-8.733-11.946-3.882-3.011-8.868-4.517-14.958-4.517-5.688 0-10.306 1.372-13.853 4.116-3.48 2.744-6.023 6.592-7.629 11.544s-2.409 10.708-2.409 17.266c0 6.559.803 12.314 2.409 17.266 1.606 4.953 4.216 8.801 7.83 11.544 3.681 2.744 8.566 4.116 14.656 4.116z"}),a=N("path",{d:"m707.657 190.227c-7.763 0-14.355-1.472-19.775-4.417-5.354-3.011-9.437-6.993-12.247-11.945-2.744-5.02-4.116-10.541-4.116-16.564 0-5.019.77-9.603 2.309-13.753 1.539-4.149 4.015-7.796 7.428-10.941 3.48-3.213 8.131-5.89 13.954-8.031 4.015-1.473 8.8-2.778 14.355-3.915 5.554-1.138 11.845-2.209 18.872-3.213 4.588-.699 9.476-1.441 14.663-2.225 1.702-.258 2.482 2.042.974 2.873-1.027.566-2.292-.179-2.377-1.35-.372-5.108-1.881-8.956-4.526-11.544-3.079-3.012-8.232-4.518-15.46-4.518-4.015 0-8.198.971-12.548 2.911-3.548 1.583-6.227 4.168-8.039 7.754-.706 1.398-2.282 2.21-3.775 1.737l-19.281-6.114c-1.514-.48-2.369-2.096-1.81-3.583 2.906-7.7358 7.751-14.125 14.535-19.1678 7.562-5.6216 17.868-8.4323 30.918-8.4323 9.57 0 18.069 1.4723 25.498 4.4169 7.428 2.9446 13.05 8.0307 16.865 15.2584 2.141 4.0154 3.413 8.0308 3.814 12.0458.402 4.016.603 8.5.603 13.452v63.355c0 1.601-1.298 2.899-2.899 2.899h-18.095c-1.6 0-2.898-1.298-2.898-2.899v-14.76c0-1.47 1.876-2.088 2.75-.906.395.534.399 1.264.001 1.796-5.101 6.832-10.603 11.819-16.504 14.962-6.09 3.212-13.819 4.818-23.189 4.818zm5.823-21.482c5.019 0 9.235-.87 12.648-2.61 3.48-1.807 6.224-3.848 8.232-6.123 2.074-2.276 3.48-4.183 4.216-5.722 1.405-2.945 2.208-6.358 2.409-10.24.211-3.117.339-5.818.384-8.101.017-.882.847-1.529 1.702-1.315 1.428.357 1.346 2.42-.105 2.665-5.205.882-9.613 1.66-13.224 2.334-5.019.87-9.068 1.674-12.147 2.41-3.078.736-5.788 1.539-8.131 2.409-2.677 1.071-4.852 2.242-6.525 3.513-1.606 1.205-2.81 2.543-3.614 4.016-.736 1.472-1.104 3.112-1.104 4.919 0 2.476.603 4.617 1.807 6.424 1.272 1.74 3.045 3.079 5.321 4.016 2.275.937 4.985 1.405 8.131 1.405z"}),l=N("path",{d:"m795.884 187.216c-1.601 0-2.898-1.298-2.898-2.899v-21.508c0-1.6 1.297-2.898 2.898-2.898h21.508c1.601 0 2.899 1.298 2.899 2.898v21.508c0 1.601-1.298 2.899-2.899 2.899z"}),c=N("path",{d:"m876.97 190.227c-7.763 0-14.355-1.472-19.776-4.417-5.353-3.011-9.436-6.993-12.247-11.945-2.743-5.02-4.115-10.541-4.115-16.564 0-5.019.769-9.603 2.309-13.753 1.539-4.149 4.015-7.796 7.428-10.941 3.48-3.213 8.131-5.89 13.954-8.031 4.015-1.473 8.8-2.778 14.355-3.915 5.554-1.138 11.845-2.209 18.872-3.213 4.588-.699 9.476-1.441 14.663-2.225 1.702-.258 2.482 2.042.974 2.873-1.027.566-2.292-.179-2.377-1.35-.372-5.108-1.881-8.956-4.527-11.544-3.078-3.012-8.231-4.518-15.459-4.518-4.015 0-8.198.971-12.548 2.911-3.548 1.583-6.228 4.168-8.039 7.754-.706 1.398-2.282 2.21-3.775 1.737l-19.281-6.114c-1.515-.48-2.37-2.096-1.811-3.583 2.907-7.7358 7.752-14.125 14.536-19.1678 7.562-5.6216 17.868-8.4323 30.918-8.4323 9.57 0 18.069 1.4723 25.498 4.4169 7.428 2.9446 13.05 8.0307 16.864 15.2584 2.142 4.0154 3.413 8.0308 3.815 12.0458.401 4.016.602 8.5.602 13.452v63.355c0 1.601-1.297 2.899-2.898 2.899h-18.095c-1.601 0-2.898-1.298-2.898-2.899v-14.76c0-1.47 1.876-2.088 2.75-.906.395.534.399 1.264.001 1.796-5.102 6.832-10.603 11.819-16.504 14.962-6.09 3.212-13.82 4.818-23.189 4.818zm5.823-21.482c5.019 0 9.235-.87 12.648-2.61 3.48-1.807 6.224-3.848 8.232-6.123 2.074-2.276 3.479-4.183 4.216-5.722 1.405-2.945 2.208-6.358 2.409-10.24.211-3.117.339-5.818.384-8.101.017-.882.846-1.529 1.702-1.315 1.428.357 1.345 2.42-.106 2.665-5.204.882-9.612 1.66-13.223 2.334-5.019.87-9.068 1.674-12.147 2.41-3.078.736-5.789 1.539-8.131 2.409-2.677 1.071-4.852 2.242-6.525 3.513-1.606 1.205-2.811 2.543-3.614 4.016-.736 1.472-1.104 3.112-1.104 4.919 0 2.476.602 4.617 1.807 6.424 1.272 1.74 3.045 3.079 5.32 4.016 2.276.937 4.986 1.405 8.132 1.405z"}),m=N("path",{d:"m962.788 63.7427c-1.601 0-2.899-1.2976-2.899-2.8983v-18.2957c0-1.6007 1.298-2.8983 2.899-2.8983h21.508c1.6 0 2.898 1.2976 2.898 2.8983v18.2957c0 1.6007-1.298 2.8983-2.898 2.8983zm0 123.4733c-1.601 0-2.899-1.298-2.899-2.899v-102.6183c0-1.6007 1.298-2.8983 2.899-2.8983h21.508c1.6 0 2.898 1.2976 2.898 2.8983v102.6183c0 1.601-1.298 2.899-2.898 2.899z"}),d=N("path",{d:"m195.824.5c36.051 0 65.277 29.2254 65.277 65.2764v130.4476c0 36.051-29.226 65.276-65.277 65.276h-130.447c-36.051 0-65.276414-29.225-65.276414-65.276v-130.4476c0-36.051 29.225414-65.2764 65.276414-65.2764zm-116.5564 56.5498c-.9608 0-1.7401.7785-1.7403 1.7393v136.5899c0 .961.7794 1.74 1.7403 1.74h30.3914c.961 0 1.74-.779 1.74-1.74v-38.541c0-.961.779-1.74 1.74-1.74h14.775c.614 0 1.182.323 1.495.851l23.995 40.32c.313.527.881.85 1.495.85h35.002c1.36 0 2.194-1.49 1.483-2.65l-34.842-56.785c-.357-.582-.341-1.319.042-1.884l34.817-51.466c.781-1.1555-.046-2.7149-1.442-2.7149h-34.843c-.608 0-1.172.3172-1.487.837l-24.899 41.0349c-.316.52-.88.838-1.488.838h-14.103c-.961 0-1.74-.779-1.74-1.74v-63.7999c0-.9609-.779-1.7392-1.74-1.7393z"}),n[0]=i,n[1]=o,n[2]=s,n[3]=a,n[4]=l,n[5]=c,n[6]=m,n[7]=d):(i=n[0],o=n[1],s=n[2],a=n[3],l=n[4],c=n[5],m=n[6],d=n[7]),n[8]!==r?(p=S("svg",{height:"19",width:"72",viewBox:"0 0 989 262",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:r,children:[i,o,s,a,l,c,m,d]}),n[8]=r,n[9]=p):p=n[9],p};function X(e){const n=t(13),{isPromptMode:r}=e;let i;n[0]===Symbol.for("react.memo_cache_sentinel")?(i=N("kbd",{children:"↵"}),n[0]=i):i=n[0];const o=r?"send question":"select";let s,a,l,c,m,d;return n[1]!==o?(s=S("p",{className:"text-xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden",children:[i,S("span",{children:["to ",o]})]}),n[1]=o,n[2]=s):s=n[2],n[3]!==r?(a=!r&&S("p",{className:"text-xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden",children:[N("kbd",{children:"↑"}),N("kbd",{children:"↓"}),N("span",{children:"to navigate"})]}),n[3]=r,n[4]=a):a=n[4],n[5]===Symbol.for("react.memo_cache_sentinel")?(l=S("p",{className:"text-xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden",children:[N("kbd",{children:"tab"}),N("span",{children:"to switch mode"})]}),n[5]=l):l=n[5],n[6]===Symbol.for("react.memo_cache_sentinel")?(c=S("p",{className:"text-xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden",children:[N("kbd",{children:"esc"}),N("span",{children:"to close"})]}),n[6]=c):c=n[6],n[7]!==r?(m=S("p",r?{className:"text-xs text-tertiary inline-flex gap-1.5 items-center ml-auto",children:[N("span",{children:"AI assistant by"}),N("a",{href:"https://www.kapa.ai/",target:"_blank",children:N(W,{className:"hocus:opacity-80"})})]}:{className:"text-xs text-tertiary inline-flex gap-2 items-center ml-auto",children:[N("span",{children:"Search by"}),N("a",{href:"https://www.algolia.com/developers/?utm_medium=referral&utm_content=powered_by&utm_source=expo.dev.com&utm_campaign=docsearch",target:"_blank",children:N(Q,{className:"hocus:opacity-80"})})]}),n[7]=r,n[8]=m):m=n[8],n[9]!==s||n[10]!==a||n[11]!==m?(d=S("div",{className:"flex gap-4 px-4 h-11 items-center border-t border-secondary",children:[s,a,l,c,m]}),n[9]=s,n[10]=a,n[11]=m,n[12]=d):d=n[12],d}const Y="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function J(e){return`image-${e.split("/").slice(-1)[0]}`.replace(/\.([a-z]+)$/,"-$1")}const ee=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]];function te(e){let t={...e||{}};const n=t.source;delete t.source;const r=function(e){if(!e)return null;let t;if("string"==typeof e&&/^https?:\/\//.test(`${e}`))t={asset:{_ref:J(e)}};else if("string"==typeof e)t={asset:{_ref:e}};else if((n=e)&&"string"==typeof n._ref)t={asset:e};else if((e=>!!e&&"string"==typeof e._id)(e))t={asset:{_ref:e._id||""}};else if((e=>{const t=e;return!(!t||!t.asset)&&"string"==typeof t.asset.url})(e))t={asset:{_ref:J(e.asset.url)}};else{if("object"!=typeof e.asset)return null;t={...e}}var n;const r=e;return r.crop&&(t.crop=r.crop),r.hotspot&&(t.hotspot=r.hotspot),function(e){if(e.crop&&e.hotspot)return e;const t={...e};return t.crop||(t.crop={left:0,top:0,bottom:0,right:0}),t.hotspot||(t.hotspot={x:.5,y:.5,height:1,width:1}),t}(t)}(n);if(!r){if(n&&(e=>{if("object"==typeof e&&null!==e){const t=e;return t._upload&&(!t.asset||!t.asset._ref)}return!1})(n))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw new Error(`Unable to resolve image URL from source (${JSON.stringify(n)})`)}const i=function(e){const[,t,n,r]=e.split("-");if(!t||!n||!r)throw new Error(`Malformed asset _ref '${e}'. Expected an id like "${Y}".`);const[i,o]=n.split("x"),s=+i,a=+o;if(!isFinite(s)||!isFinite(a))throw new Error(`Malformed asset _ref '${e}'. Expected an id like "${Y}".`);return{id:t,width:s,height:a,format:r}}(r.asset._ref||r.asset._id||""),o=Math.round(r.crop.left*i.width),s=Math.round(r.crop.top*i.height),a={left:o,top:s,width:Math.round(i.width-r.crop.right*i.width-o),height:Math.round(i.height-r.crop.bottom*i.height-s)},l=r.hotspot.height*i.height/2,c=r.hotspot.width*i.width/2,m=r.hotspot.x*i.width,d=r.hotspot.y*i.height,p={left:m-c,top:d-l,right:m+c,bottom:d+l};return t.rect||t.focalPoint||t.ignoreImageParams||t.crop||(t={...t,...ne({crop:a,hotspot:p},t)}),function(e){const t=(e.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),n=e.vanityName?`/${e.vanityName}`:"",r=`${e.asset.id}-${e.asset.width}x${e.asset.height}.${e.asset.format}${n}`,i=e.mediaLibraryId?`${t}/media-libraries/${e.mediaLibraryId}/images/${r}`:`${t}/images/${e.projectId}/${e.dataset}/${r}`,o=[];if(e.rect){const{left:t,top:n,width:r,height:i}=e.rect;(0!==t||0!==n||i!==e.asset.height||r!==e.asset.width)&&o.push(`rect=${t},${n},${r},${i}`)}e.bg&&o.push(`bg=${e.bg}`),e.focalPoint&&(o.push(`fp-x=${e.focalPoint.x}`),o.push(`fp-y=${e.focalPoint.y}`));const s=[e.flipHorizontal&&"h",e.flipVertical&&"v"].filter(Boolean).join("");return s&&o.push(`flip=${s}`),ee.forEach((t=>{const[n,r]=t;typeof e[n]<"u"?o.push(`${r}=${encodeURIComponent(e[n])}`):typeof e[r]<"u"&&o.push(`${r}=${encodeURIComponent(e[r])}`)})),0===o.length?i:`${i}?${o.join("&")}`}({...t,asset:i})}function ne(e,t){let n;const r=t.width,i=t.height;if(!r||!i)return{width:r,height:i,rect:e.crop};const o=e.crop,s=e.hotspot,a=r/i;if(o.width/o.height>a){const e=Math.round(o.height),t=Math.round(e*a),r=Math.max(0,Math.round(o.top)),i=Math.round((s.right-s.left)/2+s.left);let l=Math.max(0,Math.round(i-t/2));l<o.left?l=o.left:l+t>o.left+o.width&&(l=o.left+o.width-t),n={left:l,top:r,width:t,height:e}}else{const e=o.width,t=Math.round(e/a),r=Math.max(0,Math.round(o.left)),i=Math.round((s.bottom-s.top)/2+s.top);let l=Math.max(0,Math.round(i-t/2));l<o.top?l=o.top:l+t>o.top+o.height&&(l=o.top+o.height-t),n={left:r,top:l,width:e,height:t}}return{width:r,height:i,rect:n}}const re=["clip","crop","fill","fillmax","max","scale","min"],ie=["top","bottom","left","right","center","focalpoint","entropy"],oe=["format"];function se(e){const{apiHost:t,projectId:n,dataset:r}=e,i={baseUrl:(t||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn.")},o=e["~experimental_resource"];if("media-library"===o?.type){if("string"!=typeof o.id||0===o.id.length)throw new Error('Media library clients must include an id in "~experimental_resource"');return{...i,mediaLibraryId:o.id}}return{...i,projectId:n,dataset:r}}function ae(e){const t=ee;for(const n of t){const[t,r]=n;if(e===t||e===r)return t}return e}function le(e){let t={};return t=(n=e)&&"config"in n&&"function"==typeof n.config?se(e.config()):function(e){return!(!e||!("clientConfig"in e))&&"object"==typeof e.clientConfig}(e)?se(e.clientConfig):e||{},t;var n}class ce{constructor(e,t){this.options=e?{...e.options||{},...t||{}}:{...t||{}}}withOptions(e){const t=function(e,t){const n=t.baseUrl||e.baseUrl,r={baseUrl:n};for(const e in t)t.hasOwnProperty(e)&&(r[ae(e)]=t[e]);return{baseUrl:n,...r}}(this.options,e);return new ce(this,t)}image(e){return this.withOptions({source:e})}dataset(e){return this.withOptions({dataset:e})}projectId(e){return this.withOptions({projectId:e})}withClient(e){const t=le(e),n={...this.options};return delete n.baseUrl,delete n.projectId,delete n.dataset,delete n.mediaLibraryId,new ce(null,{...t,...n})}bg(e){return this.withOptions({bg:e})}dpr(e){return this.withOptions(e&&1!==e?{dpr:e}:{})}width(e){return this.withOptions({width:e})}height(e){return this.withOptions({height:e})}focalPoint(e,t){return this.withOptions({focalPoint:{x:e,y:t}})}maxWidth(e){return this.withOptions({maxWidth:e})}minWidth(e){return this.withOptions({minWidth:e})}maxHeight(e){return this.withOptions({maxHeight:e})}minHeight(e){return this.withOptions({minHeight:e})}size(e,t){return this.withOptions({width:e,height:t})}blur(e){return this.withOptions({blur:e})}sharpen(e){return this.withOptions({sharpen:e})}rect(e,t,n,r){return this.withOptions({rect:{left:e,top:t,width:n,height:r}})}format(e){return this.withOptions({format:e})}invert(e){return this.withOptions({invert:e})}orientation(e){return this.withOptions({orientation:e})}quality(e){return this.withOptions({quality:e})}forceDownload(e){return this.withOptions({download:e})}flipHorizontal(){return this.withOptions({flipHorizontal:!0})}flipVertical(){return this.withOptions({flipVertical:!0})}ignoreImageParams(){return this.withOptions({ignoreImageParams:!0})}fit(e){if(-1===re.indexOf(e))throw new Error(`Invalid fit mode "${e}"`);return this.withOptions({fit:e})}crop(e){if(-1===ie.indexOf(e))throw new Error(`Invalid crop mode "${e}"`);return this.withOptions({crop:e})}saturation(e){return this.withOptions({saturation:e})}auto(e){if(-1===oe.indexOf(e))throw new Error(`Invalid auto mode "${e}"`);return this.withOptions({auto:e})}pad(e){return this.withOptions({pad:e})}vanityName(e){return this.withOptions({vanityName:e})}frame(e){if(1!==e)throw new Error(`Invalid frame value "${e}"`);return this.withOptions({frame:e})}url(){return te(this.options)}toString(){return this.url()}}const me="9r24npb8",de="production",pe=$({projectId:me,dataset:de,useCdn:!0,apiVersion:"v2025-02-19"}),ue=new ce(null,le({projectId:me,dataset:de}));const he=async(e,t,n,r)=>{const{hits:i,libraries:o}=await t(e,r).then((e=>e.json()));n(i||o||[])},fe=(e,t,n,r,i,o={})=>[`https://${t}-dsn.algolia.net/1/indexes/${r}/query`,{method:"POST",headers:{"X-Algolia-Application-Id":t,"X-Algolia-API-Key":n},body:JSON.stringify({params:`query=${e}&hitsPerPage=${i}`,highlightPreTag:"<mark>",highlightPostTag:"</mark>",getRankingInfo:!0,...o})}],ge=e=>`"${e.replace(/"/g,'\\"')}"`,xe=(e,t,n)=>{const r=(i=n?.sectionContext,i?[i.group?`group:${ge(i.group)}`:null,i.section?`section:${ge(i.section)}`:null,i.mainSection?`mainSection:${ge(i.mainSection)}`:null].filter(Boolean):[]);var i;return fetch(...fe(e,"QEX7PB7D46","6652d26570e8628af4601e1d78ad456b","expo",20,{facetFilters:[["version:none",`version:${t}`]],...r.length&&{optionalFilters:r,sumOrFiltersScores:!0,ruleContexts:n?.ruleContexts},attributesToRetrieve:["*","mainSection","section","group","weight"]}))},ye=e=>fetch(...fe(e,"8TDSE0OHGQ","c9c791d9d5fd7f315d7f3859b32c1f3b","react-native-v2",5,{facetFilters:[["version:current"]]})),ve=e=>pe.fetch('*[_type == "post" && publishAt < now() && (title match $queryPattern || metadataDescription match $queryPattern)] | order(publishAt desc)[0...10] {\n title,\n slug,\n tags,\n metadataDescription,\n mainImage\n }',{queryPattern:`${e}*`}),be=e=>fetch(`https://reactnative.directory/api/libraries?search=${encodeURI(e)}&limit=5`),we=(e,t)=>({dangerouslySetInnerHTML:{__html:e._highlightResult.hierarchy[`${t}`]?.value||""}}),Ce=(e,t=36)=>{if(!e||!e.length)return"";const n=Math.max(e.indexOf("<mark>")-t,0),r=Math.min(e.indexOf("</mark>")+t+6,e.length);return`${0!==n?"…":""}${e.substring(n,r).trim()}${r!==e.length?"…":""}`},Ne=(e,t=!1)=>t?{}:{dangerouslySetInnerHTML:{__html:e._highlightResult.content?.value?Ce(e._highlightResult.content?.value):Ce(e._highlightResult.hierarchy.lvl1?.value||"",82)}},Se=["/versions/","/more/"],ke=["/app-signing/","/build/","/build-reference/","/development/","/eas/","/eas/metadata/","/eas-update/","/submit/","/distribution/","/custom-builds/","/hosting/","/billing/","/accounts/"],_e=["/get-started/","/develop/","/deploy/","/faq/","/config-plugins/","/debugging/","/config-plugins/","/review/","/monitoring/"],Ie=["/tutorial","/additional-resources/"],$e=()=>/(Mac|iPhone|iPod|iPad)/i.test(navigator?.platform??navigator?.userAgentData?.platform??""),Ae=(e,t)=>{if(!e||!e.length)return"";const n=e.toLowerCase().indexOf(t.toLowerCase());if(-1===n)return e;const r=n+t.length;return e.substring(0,n)+"<mark>"+e.substring(n,r)+"</mark>"+e.substring(r)},Me=n=>{const r=t(21),{children:o,url:s,isExternalLink:a,isNested:l,onSelect:c,className:m,value:d}=n,[p,u]=f(!1),[h,g]=f(!1);let x;r[0]===Symbol.for("react.memo_cache_sentinel")?(x=function(e){navigator.clipboard?.writeText(e),u(!0),setTimeout((()=>u(!1)),1500)},r[0]=x):x=r[0];const y=x;let v;r[1]!==m?(v=i("relative",m),r[1]=m,r[2]=v):v=r[2];const b=!!l||void 0;let w,C,k,_,I;return r[3]===Symbol.for("react.memo_cache_sentinel")?(w=e=>{(e.metaKey||e.ctrlKey)&&g(!0)},r[3]=w):w=r[3],r[4]!==s?(C=e=>{!s||1!==e.button&&2!==e.button||y(s)},r[4]=s,r[5]=C):C=r[5],r[6]!==a||r[7]!==h||r[8]!==c||r[9]!==s?(k=()=>{s&&((e,t=!1)=>{const n=document.createElement("a");t&&(n.target="_blank",n.rel="noopener noreferrer"),n.href=e,n.click()})(s,!!h||a),h?g(!1):c&&c()},r[6]=a,r[7]=h,r[8]=c,r[9]=s,r[10]=k):k=r[10],r[11]!==p?(_=p&&N("div",{className:"text-xs font-medium absolute rounded-full px-2 right-2.5 top-[calc(50%-13px)] border-secondary bg-info text-info",children:"Copied!"}),r[11]=p,r[12]=_):_=r[12],r[13]!==o||r[14]!==v||r[15]!==b||r[16]!==C||r[17]!==k||r[18]!==_||r[19]!==d?(I=S(e.Item,{className:v,value:d,"data-nested":b,onMouseDown:w,onMouseUp:C,onSelect:k,onContextMenu:Oe,children:[o,_]}),r[13]=o,r[14]=v,r[15]=b,r[16]=C,r[17]=k,r[18]=_,r[19]=d,r[20]=I):I=r[20],I};function Oe(e){e.preventDefault()}const Ee=new Intl.NumberFormat,je=e=>{const n=t(25),{item:r,onSelect:i,query:o}=e,s=`rnd-${r.npmPkg}`,a=r.githubUrl;let l,c,m,d,p,u,h,f,g,x,y;return n[0]===Symbol.for("react.memo_cache_sentinel")?(l=N(V,{className:"text-icon-secondary"}),n[0]=l):l=n[0],n[1]!==r.npmPkg||n[2]!==o?(c=Ae(r.npmPkg,o),n[1]=r.npmPkg,n[2]=o,n[3]=c):c=n[3],n[4]!==c?(m=N("p",{className:"text-sm font-medium",dangerouslySetInnerHTML:{__html:c}}),n[4]=c,n[5]=m):m=n[5],n[6]===Symbol.for("react.memo_cache_sentinel")?(d=N(K,{className:"icon-2xs text-icon-quaternary"}),n[6]=d):d=n[6],n[7]!==r.github.stats.stars?(p=Ee.format(r.github.stats.stars),n[7]=r.github.stats.stars,n[8]=p):p=n[8],n[9]!==r.npm.downloads?(u=r.npm.downloads?S(k,{children:[" ","· ",N(D,{className:"icon-2xs text-icon-quaternary"}),Ee.format(r.npm.downloads)," downloads"]}):void 0,n[9]=r.npm.downloads,n[10]=u):u=n[10],n[11]!==p||n[12]!==u?(h=S("p",{className:"flex items-center gap-1 text-xs text-quaternary",children:[d,p," stars",u]}),n[11]=p,n[12]=u,n[13]=h):h=n[13],n[14]!==m||n[15]!==h?(f=S("div",{children:[m,h]}),n[14]=m,n[15]=h,n[16]=f):f=n[16],n[17]===Symbol.for("react.memo_cache_sentinel")?(g=N(F,{}),n[17]=g):g=n[17],n[18]!==f?(x=S("div",{className:"inline-flex gap-3 items-center",children:[l,f,g]}),n[18]=f,n[19]=x):x=n[19],n[20]!==r.githubUrl||n[21]!==i||n[22]!==s||n[23]!==x?(y=N(Me,{value:s,url:a,isExternalLink:!0,onSelect:i,children:x}),n[20]=r.githubUrl,n[21]=i,n[22]=s,n[23]=x,n[24]=y):y=n[24],y},Le=e=>{const n=t(3),{item:r,levelKey:i}=e,o=void 0===i?"lvl0":i;let s;return n[0]!==r||n[1]!==o?(s=r.hierarchy[o]?S(k,{children:[N(Z,{}),N("span",{...we(r,o)})]}):null,n[0]=r,n[1]=o,n[2]=s):s=n[2],s},He=e=>{const n=t(42),{item:r,onSelect:i}=e,{lvl0:o,lvl1:s,lvl2:a,lvl3:l,lvl4:c}=r.hierarchy,m=`rn-${r.objectID}`,d=r.url;let p,u,h,f,g,x,y,v,b,w,C,_;return n[0]===Symbol.for("react.memo_cache_sentinel")?(p=N(B,{className:"shrink-0"}),n[0]=p):p=n[0],n[1]!==r||n[2]!==c?(u=c&&S(k,{children:[N("p",{className:"text-sm font-medium",...we(r,"lvl4")}),S("p",{className:"text-xs text-quaternary",children:[N("span",{...we(r,"lvl0")}),N(Le,{item:r,levelKey:"lvl1"}),N(Le,{item:r,levelKey:"lvl2"}),N(Le,{item:r,levelKey:"lvl3"})]})]}),n[1]=r,n[2]=c,n[3]=u):u=n[3],n[4]!==r||n[5]!==l||n[6]!==c?(h=!c&&l&&S(k,{children:[N("p",{className:"text-sm font-medium",...we(r,"lvl3")}),S("p",{className:"text-xs text-quaternary",children:[N("span",{...we(r,"lvl0")}),N(Le,{item:r,levelKey:"lvl1"}),N(Le,{item:r,levelKey:"lvl2"})]})]}),n[4]=r,n[5]=l,n[6]=c,n[7]=h):h=n[7],n[8]!==r||n[9]!==a||n[10]!==l?(f=!l&&a&&S(k,{children:[N("p",{className:"text-sm font-medium",...we(r,"lvl2")}),S("p",{className:"text-xs text-quaternary",children:[N("span",{...we(r,"lvl0")}),N(Le,{item:r,levelKey:"lvl1"})]})]}),n[8]=r,n[9]=a,n[10]=l,n[11]=f):f=n[11],n[12]!==r||n[13]!==s||n[14]!==a||n[15]!==l?(g=!l&&!a&&s&&S(k,{children:[N("p",{className:"text-sm font-medium",...we(r,"lvl1")}),N("p",{className:"text-xs text-quaternary",...we(r,"lvl0")})]}),n[12]=r,n[13]=s,n[14]=a,n[15]=l,n[16]=g):g=n[16],n[17]!==r||n[18]!==o||n[19]!==s||n[20]!==a||n[21]!==l?(x=!l&&!a&&!s&&o&&N("p",{className:"text-sm font-medium",...we(r,"lvl0")}),n[17]=r,n[18]=o,n[19]=s,n[20]=a,n[21]=l,n[22]=x):x=n[22],n[23]!==r?(y=Ne(r,!0),n[23]=r,n[24]=y):y=n[24],n[25]!==y?(v=N("p",{className:"text-xs text-secondary",...y}),n[25]=y,n[26]=v):v=n[26],n[27]!==v||n[28]!==u||n[29]!==h||n[30]!==f||n[31]!==g||n[32]!==x?(b=S("div",{children:[u,h,f,g,x,v]}),n[27]=v,n[28]=u,n[29]=h,n[30]=f,n[31]=g,n[32]=x,n[33]=b):b=n[33],n[34]===Symbol.for("react.memo_cache_sentinel")?(w=N(F,{}),n[34]=w):w=n[34],n[35]!==b?(C=S("div",{className:"inline-flex gap-3 items-center",children:[p,b,w]}),n[35]=b,n[36]=C):C=n[36],n[37]!==r.url||n[38]!==i||n[39]!==m||n[40]!==C?(_=N(Me,{value:m,url:d,isExternalLink:!0,onSelect:i,children:C}),n[37]=r.url,n[38]=i,n[39]=m,n[40]=C,n[41]=_):_=n[41],_},ze=e=>{const n=t(24),{url:r,className:s,isNested:a}=e;if(a){let e,t;return n[0]!==s?(e=i("icon-sm text-icon-quaternary",s),n[0]=s,n[1]=e):e=n[1],n[2]!==e?(t=N(T,{className:e}),n[2]=e,n[3]=t):t=n[3],t}if((e=>Se.some((t=>e.includes(t))))(r)){let e,t;return n[4]!==s?(e=i("text-icon-secondary",s),n[4]=s,n[5]=e):e=n[5],n[6]!==e?(t=N(o,{className:e}),n[6]=e,n[7]=t):t=n[7],t}if((e=>ke.some((t=>e.includes(t))))(r)){let e,t;return n[8]!==s?(e=i("text-icon-secondary",s),n[8]=s,n[9]=e):e=n[9],n[10]!==e?(t=N(P,{className:e}),n[10]=e,n[11]=t):t=n[11],t}if((e=>_e.some((t=>e.includes(t))))(r)){let e,t;return n[12]!==s?(e=i("text-icon-secondary",s),n[12]=s,n[13]=e):e=n[13],n[14]!==e?(t=N(U,{className:e}),n[14]=e,n[15]=t):t=n[15],t}if((e=>Ie.some((t=>e.includes(t))))(r)){let e,t;return n[16]!==s?(e=i("text-icon-secondary",s),n[16]=s,n[17]=e):e=n[17],n[18]!==e?(t=N(R,{className:e}),n[18]=e,n[19]=t):t=n[19],t}let l,c;return n[20]!==s?(l=i("text-icon-secondary",s),n[20]=s,n[21]=l):l=n[21],n[22]!==l?(c=N(q,{className:l}),n[22]=l,n[23]=c):c=n[23],c},Pe=e=>{const n=t(75),{item:r,onSelect:o,isNested:s,transformUrl:a}=e,{lvl0:l,lvl2:c,lvl3:m,lvl4:d,lvl6:p}=r.hierarchy,u=s?"text-xs":"text-sm font-medium";let h;n[0]!==u?(h=i(u),n[0]=u,n[1]=h):h=n[1];const f=h,g=s&&"hidden";let x;n[2]!==g?(x=i("text-xs text-quaternary",g),n[2]=g,n[3]=x):x=n[3];const y=x,v=s&&"ml-8 !min-h-[32px]";let b;n[4]!==v?(b=i(v),n[4]=v,n[5]=b):b=n[5];const w=`expodocs-${r.objectID}`;let C;n[6]!==r.url||n[7]!==a?(C=a?a(r.url):r.url,n[6]=r.url,n[7]=a,n[8]=C):C=n[8];const _=!a;let I,$,A,M,O,E,j,L,H,z,P,q;return n[9]!==s||n[10]!==r.url?(I=N(ze,{url:r.url,isNested:s,className:"shrink-0"}),n[9]=s,n[10]=r.url,n[11]=I):I=n[11],n[12]!==s||n[13]!==r||n[14]!==p||n[15]!==f?($=p&&S(k,{children:[N("p",{className:f,...we(r,"lvl6")}),!s&&S("p",{className:"text-xs text-quaternary",children:[N("span",{...we(r,"lvl0")}),N(Le,{item:r,levelKey:"lvl2"}),N(Le,{item:r,levelKey:"lvl3"}),N(Le,{item:r,levelKey:"lvl4"})]})]}),n[12]=s,n[13]=r,n[14]=p,n[15]=f,n[16]=$):$=n[16],n[17]!==y||n[18]!==s||n[19]!==r||n[20]!==d||n[21]!==p||n[22]!==f?(A=!p&&d&&S(k,{children:[N("p",{className:f,...we(r,"lvl4")}),!s&&S("p",{className:y,children:[N("span",{...we(r,"lvl0")}),N(Le,{item:r,levelKey:"lvl2"}),N(Le,{item:r,levelKey:"lvl3"})]})]}),n[17]=y,n[18]=s,n[19]=r,n[20]=d,n[21]=p,n[22]=f,n[23]=A):A=n[23],n[24]!==y||n[25]!==s||n[26]!==r||n[27]!==m||n[28]!==d||n[29]!==p||n[30]!==f?(M=!p&&!d&&m&&S(k,{children:[N("p",{className:f,...we(r,"lvl3")}),!s&&S("p",{className:y,children:[N("span",{...we(r,"lvl0")}),N(Le,{item:r,levelKey:"lvl2"})]})]}),n[24]=y,n[25]=s,n[26]=r,n[27]=m,n[28]=d,n[29]=p,n[30]=f,n[31]=M):M=n[31],n[32]!==y||n[33]!==s||n[34]!==r||n[35]!==c||n[36]!==m||n[37]!==d||n[38]!==p||n[39]!==f?(O=!p&&!d&&!m&&c&&S(k,{children:[N("p",{className:f,...we(r,"lvl2")}),!s&&N("p",{className:y,children:N("span",{...we(r,"lvl0")})})]}),n[32]=y,n[33]=s,n[34]=r,n[35]=c,n[36]=m,n[37]=d,n[38]=p,n[39]=f,n[40]=O):O=n[40],n[41]!==r||n[42]!==l||n[43]!==c||n[44]!==m||n[45]!==d||n[46]!==p||n[47]!==f?(E=!p&&!d&&!m&&!c&&l&&N(k,{children:N("p",{className:f,...we(r,"lvl0")})}),n[41]=r,n[42]=l,n[43]=c,n[44]=m,n[45]=d,n[46]=p,n[47]=f,n[48]=E):E=n[48],n[49]!==s||n[50]!==r?(j=(!s||r.content)&&N("p",{className:i("text-secondary","text-xs"),...Ne(r)}),n[49]=s,n[50]=r,n[51]=j):j=n[51],n[52]!==$||n[53]!==A||n[54]!==M||n[55]!==O||n[56]!==E||n[57]!==j?(L=S("div",{children:[$,A,M,O,E,j]}),n[52]=$,n[53]=A,n[54]=M,n[55]=O,n[56]=E,n[57]=j,n[58]=L):L=n[58],n[59]!==I||n[60]!==L?(H=S("div",{className:"inline-flex items-center gap-3 break-words",children:[I,L]}),n[59]=I,n[60]=L,n[61]=H):H=n[61],n[62]!==a?(z=!a&&N(F,{}),n[62]=a,n[63]=z):z=n[63],n[64]!==H||n[65]!==z?(P=S("div",{className:"flex gap-3 justify-between",children:[H,z]}),n[64]=H,n[65]=z,n[66]=P):P=n[66],n[67]!==s||n[68]!==o||n[69]!==P||n[70]!==b||n[71]!==w||n[72]!==C||n[73]!==_?(q=N(Me,{className:b,value:w,onSelect:o,url:C,isNested:s,isExternalLink:_,children:P}),n[67]=s,n[68]=o,n[69]=P,n[70]=b,n[71]=w,n[72]=C,n[73]=_,n[74]=q):q=n[74],q},qe=e=>{const n=t(27),{item:r,onSelect:i,query:o}=e,s=`expo-blog-${r.slug.current}`,a=`https://expo.dev/blog/${r.slug.current}`;let l;var c;let m,d,p,u,h,f,g,x,y;return n[0]!==r.mainImage.image.asset._ref?(c=r.mainImage.image.asset._ref,l=ue.image(c).auto("format").height(150).url(),n[0]=r.mainImage.image.asset._ref,n[1]=l):l=n[1],n[2]!==r.mainImage.altText||n[3]!==l?(m=N("img",{src:l,alt:r.mainImage.altText,className:"size-11 object-cover rounded-md my-0.5"}),n[2]=r.mainImage.altText,n[3]=l,n[4]=m):m=n[4],n[5]!==r.title||n[6]!==o?(d=Ae(r.title,o),n[5]=r.title,n[6]=o,n[7]=d):d=n[7],n[8]!==d?(p=N("p",{className:"text-sm font-medium",dangerouslySetInnerHTML:{__html:d}}),n[8]=d,n[9]=p):p=n[9],n[10]!==r.metadataDescription||n[11]!==o?(u=Ae(r.metadataDescription,o),n[10]=r.metadataDescription,n[11]=o,n[12]=u):u=n[12],n[13]!==u?(h=N("p",{className:"text-xs text-quaternary",dangerouslySetInnerHTML:{__html:u}}),n[13]=u,n[14]=h):h=n[14],n[15]!==p||n[16]!==h?(f=S("div",{children:[p,h]}),n[15]=p,n[16]=h,n[17]=f):f=n[17],n[18]===Symbol.for("react.memo_cache_sentinel")?(g=N(F,{}),n[18]=g):g=n[18],n[19]!==m||n[20]!==f?(x=S("div",{className:"inline-flex gap-3 items-center",children:[m,f,g]}),n[19]=m,n[20]=f,n[21]=x):x=n[21],n[22]!==i||n[23]!==s||n[24]!==x||n[25]!==a?(y=N(Me,{value:s,url:a,isExternalLink:!0,onSelect:i,children:x}),n[22]=i,n[23]=s,n[24]=x,n[25]=a,n[26]=y):y=n[26],y};function Re(e){const n=t(5),{className:r}=e;let o,s,a;return n[0]!==r?(o=i("dots-loader inline-flex",r),n[0]=r,n[1]=o):o=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(s=Array.from({length:3}).map(Te),n[2]=s):s=n[2],n[3]!==o?(a=N("span",{className:o,children:s}),n[3]=o,n[4]=a):a=n[4],a}function Te(e,t){return N("span",{className:"opacity-0",style:{animationDelay:.2*t+"s"},children:"."},t)}let Ue=null,Ve=null;function De(){return Ve||(Ve=(async()=>{const{Prism:e}=await import("prism-react-renderer");Ue=e;const t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0;t&&(t.Prism=e),await Promise.all([import("prismjs/components/prism-json"),import("prismjs/components/prism-yaml"),import("prismjs/components/prism-diff"),import("prismjs/components/prism-typescript"),import("prismjs/components/prism-tsx"),import("prismjs/components/prism-jsx"),import("prismjs/components/prism-bash"),import("prismjs/components/prism-kotlin"),import("prismjs/components/prism-swift"),import("prismjs/components/prism-markdown")])})()),Ve}const Ke={sh:"bash"};function Ge(e){return{value:e}}function Ze(e,t){if(!e||"object"!=typeof e)return null;if(g(e))return e.props;if(g(e)){const t=e.props.children;if(!Array.isArray(t))return Ze(t);for(const e of x.toArray(t)){const t=Ze(e);if(t)return t}}return null}function Fe(e){return"string"==typeof e?e:Array.isArray(e)?e.map(Fe).join(""):function(e){return g(e)}(e)?Fe(e.props.children):""}function Be(e,t){if("string"==typeof e)return{...Ge(e),language:t?t.split("-")[1]:"jsx"};const n=Ze(e);return{...Ge(Fe(n?.children)),language:"string"==typeof n?.className?n.className.split("-")[1]:"jsx"}}function Qe({children:e,className:t}){const{value:n,language:r}=y((()=>Be(e,t)),[e,t]),[o,a]=f(!1);v((()=>{let e=!0;return De().then((()=>{e&&a(!0)})),()=>{e=!1}}),[]);const l=y((()=>"string"==typeof t&&t.length>0?t:g(e)&&"string"==typeof e.props.className?e.props.className:void 0),[e,t]),c=y((()=>l??(r?`language-${r}`:void 0)),[l,r]),m=y((()=>n?function(e,t){if(!Ue)return e;let n=t?.split("-").at(-1)?.toLowerCase();if(!n)return e;n in Ke&&(n=Ke[n]);const r=Ue.languages[n];return r?Ue.highlight(e,r,n):e}(n,c):""),[n,c,o]),d=y((()=>n??""),[n]),[p,u]=f(!1);v((()=>{if(!p)return;const e=setTimeout((()=>u(!1)),2e3);return()=>clearTimeout(e)}),[p]);return n?S("div",{className:"relative my-3",children:[N("pre",{className:i("relative overflow-x-auto rounded-md border border-default bg-subtle px-4 py-3 text-xs text-default shadow-xs","font-mono leading-[1.6]","dark:bg-element"),children:N("code",{className:i("block min-w-fit whitespace-pre",l),dangerouslySetInnerHTML:{__html:m}})}),N(s,{type:"button",theme:"quaternary",size:"xs",className:"absolute right-3 top-3 inline-flex size-7 items-center justify-center rounded-full border! border-default! bg-default! p-0! shadow-xs",onClick:()=>{d&&(navigator.clipboard?.writeText(d).catch((()=>{})),u(!0))},"aria-label":"Copy code block",children:p?N(z,{className:"icon-xs text-success","aria-hidden":!0}):N(A,{className:"icon-xs text-icon-secondary","aria-hidden":!0})})]}):N("pre",{className:i("relative my-3 overflow-x-auto rounded-md border border-default bg-subtle px-4 py-3 text-xs text-default shadow-xs","font-mono leading-[1.6]"),children:e})}const We=/(\s*```[\s\S]*?```)/g,Xe=new Set(["a","an","the","this","that","these","those","your","see","refer","check","use","try","visit","read","review","consult"]);function Ye(e){const t=e.split(We);let n=t.map(((e,n)=>{if(e.trimStart().startsWith("```"))return e;const r=function(e){return e.replace(/(`[^`]*`)|(https?:\/\/[^\s)>\]]+)|(\w)_(\w)/g,((e,t,n,r,i)=>t||n?e:`${r}\\_${i}`))}(e.replace(/\[([^\]]+)\]\(([^)]+)\);/g,"[$1]($2) |").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"[$1]($2)").replace(/(\]\([^)]+\));/g,"$1 |").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"Source: [$1]($2)").replace(/([^.!?|,\s`])\s*Source:/g,((e,t,n,r)=>{const i=r.slice(0,n+1).replace(/[^A-Za-z]+$/i," ").trimEnd().match(/([A-Za-z]+)$/),o=i?.[1]?.toLowerCase();return o&&Xe.has(o)?`${t} Source:`:`${t}. Source:`})).replace(/(^|\n)\s*\.\s*Source:/g,"$1Source:").replace(/Source:\s*Source:/g,"Source:").replace(/\|\s*\./g,"|").replace(/\.\s*\|\s*/g," | ").replace(/\[([^\]]*)\](?!\()/g,"$1").replace(/Source: \[\[/g,"Source: [").replace(/(\]\([^)]+\))\]/g,"$1").replace(/\]\]/g,"]").replace(/\](\s*\||\s*$)/g,"$1").replace(/^\s*•\s*/gm,"- ").replace(/^(\s*)(\d+)\)\s*/gm,"$1$2. "));const i=t[n+1];return i&&i.trimStart().startsWith("```")&&/:\s*$/.test(r)?r.replace(/:\s*$/,":\n"):r})).join("");if(/\b(no information|do not contain information|cannot find|no relevant information|no info|not enough information|knowledge sources[^.]*do not)\b/i.test(n)){n+="\n\nIf you have questions about Expo or related technologies, feel free to ask.\nIf this topic should be covered in the Expo docs, please request it by opening an issue: [Open an issue](https://github.com/expo/expo/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen)."}return n}function Je(e){const n=t(47),{conversation:r,isGeneratingAnswer:o,isPreparingAnswer:l,addFeedback:c,resetConversation:m,resetInput:d,error:p,retryQuery:u}=e,[h,g]=f(!1),[x,y]=f(void 0),v=l||o;let b,w,C,_,I,$,z,P,q,R,T,U,V,D,K;return n[0]!==r||n[1]!==p||n[2]!==v||n[3]!==l||n[4]!==u?(w=r?.getLatest(),n[15]!==v?(R=N(G,{isLoading:v}),n[15]=v,n[16]=R):R=n[16],_="result-container flex flex-col gap-3 !pt-3 w-full",I=w?.isGenerationAborted&&S("div",{className:"text-sm bg-info text-info border border-info px-3 py-2.5 rounded-md",children:["The generation has been aborted. Press Enter ",N("kbd",{className:"mx-0.5",children:"↵"})," to send a new question."]}),n[17]!==p||n[18]!==v||n[19]!==u?($=p&&!v&&S("div",{className:"flex flex-col items-center gap-3 py-6",children:[N("span",{className:"text-sm text-secondary",children:"Something went wrong. The service may be temporarily unavailable."}),N(s,{skipCapitalization:!0,theme:"secondary",size:"xs",leftSlot:N(M,{}),onClick:()=>u?.(),children:"Try again"})]}),n[17]=p,n[18]=v,n[19]=u,n[20]=$):$=n[20],z=!v&&!w?.question&&N("div",{className:i("flex flex-wrap text-sm size-full items-center justify-center text-quaternary","max-md-gutters:text-center max-md-gutters:px-5"),children:S("span",{children:["Ask the question above and then press Enter ",N("kbd",{className:"mx-0.5",children:"↵"})," to send it."]})}),P=w?.question&&S("div",{className:"font-semibold mt-1 leading-relaxed",children:['You asked: "',w?.question??"",'"']}),n[21]!==l?(q=l&&S("div",{className:"flex text-sm size-full items-center justify-center text-quaternary",children:["Preparing answer",N(Re,{})]}),n[21]=l,n[22]=q):q=n[22],b=H,C=w?.answer?Ye(w.answer):"",n[0]=r,n[1]=p,n[2]=v,n[3]=l,n[4]=u,n[5]=b,n[6]=w,n[7]=C,n[8]=_,n[9]=I,n[10]=$,n[11]=z,n[12]=P,n[13]=q,n[14]=R):(b=n[5],w=n[6],C=n[7],_=n[8],I=n[9],$=n[10],z=n[11],P=n[12],q=n[13],R=n[14]),n[23]===Symbol.for("react.memo_cache_sentinel")?(T={overrides:{a:{component:a,props:{target:"_blank",rel:"noopener noreferrer",className:"text-link underline-offset-2 hocus:underline"}},pre:{component:Qe},code:{component:it},p:{component:rt},ol:{component:nt},ul:{component:tt},li:{component:et}}},n[23]=T):T=n[23],n[24]!==b||n[25]!==C?(U=N(b,{children:C,options:T,className:"prompt-result text-sm"}),n[24]=b,n[25]=C,n[26]=U):U=n[26],n[27]!==c||n[28]!==h||n[29]!==x||n[30]!==v||n[31]!==w||n[32]!==m||n[33]!==d?(V=!v&&w?.id&&S(k,{children:[S("div",{className:i("inline-flex items-center w-full gap-2 mt-1","max-md-gutters:flex-col"),children:[N(s,{skipCapitalization:!0,theme:"secondary",size:"xs",leftSlot:N(A,{}),disabled:h,onClick:()=>{w?.answer&&(navigator.clipboard?.writeText(w.answer),g(!0),setTimeout((()=>g(!1)),1500))},children:"Copy answer"}),N(s,{skipCapitalization:!0,theme:"secondary",size:"xs",leftSlot:N(M,{}),className:"mr-auto max-md-gutters:mx-auto",onClick:()=>{m?.(),d?.()},children:"Reset conversation"}),S("div",{className:i("contents items-center w-full gap-x-2 gap-y-3","max-md-gutters:justify-center max-md-gutters:inline-flex"),children:[N("p",{className:"text-tertiary text-xs",children:"Rate answer:"}),N(s,{theme:"secondary",size:"xs",className:"shrink-0",disabled:x,leftSlot:N(!0===x?L:E,{className:"text-icon-success"}),onClick:()=>{c?.(w.id,"upvote"),y(!0)}}),N(s,{theme:"secondary",size:"xs",className:"shrink-0",disabled:x,leftSlot:N(!1===x?j:O,{className:"text-icon-danger"}),onClick:()=>{c?.(w.id,"downvote"),y(!1)}})]})]}),N("p",{className:i("text-quaternary text-xs my-1 mx-auto","max-md-gutters:mt-0.5"),children:"Expo AI assistant is an experimental feature."})]}),n[27]=c,n[28]=h,n[29]=x,n[30]=v,n[31]=w,n[32]=m,n[33]=d,n[34]=V):V=n[34],n[35]!==U||n[36]!==V||n[37]!==_||n[38]!==I||n[39]!==$||n[40]!==z||n[41]!==P||n[42]!==q?(D=S("div",{className:_,children:[I,$,z,P,q,U,V]}),n[35]=U,n[36]=V,n[37]=_,n[38]=I,n[39]=$,n[40]=z,n[41]=P,n[42]=q,n[43]=D):D=n[43],n[44]!==D||n[45]!==R?(K=S(k,{children:[R,D]}),n[44]=D,n[45]=R,n[46]=K):K=n[46],K}function et(e){const{className:t,style:n,...r}=e;return N("li",{...r,style:{...n??{},fontSize:"14px",lineHeight:"1.45"},className:i("text-[10px] leading-[1.45] text-secondary",t)})}function tt(e){const{className:t,style:n,...r}=e;return N("ul",{...r,style:{...n??{},fontSize:"14px",lineHeight:"1.55"},className:i("mb-2 list-disc pl-4 text-[10px] leading-normal text-secondary",t)})}function nt(e){const{className:t,style:n,...r}=e;return N("ol",{...r,style:{...n??{},fontSize:"14px",lineHeight:"1.55"},className:i("mb-2 list-decimal pl-4 text-[10px] leading-normal text-secondary",t)})}function rt(e){const{className:t,style:n,...r}=e;return N("p",{...r,style:{...n??{},fontSize:"14px",lineHeight:"1.55"},className:i("mb-2 text-[10px] leading-[1.55] text-secondary",t)})}function it(e){const{className:t,...n}=e;return N("code",{...n,className:i("inline-block rounded-md border border-default bg-subtle px-1 py-0.5 text-xs font-medium leading-tight text-default",t)})}function ot(e){const n=t(8),{label:r,isActive:o,onClick:s}=e,a=o&&"mode-tab",l=o&&"bg-linear-to-b from-palette-gray11 to-palette-black text-palette-white",c=o&&"dark:from-palette-gray12 dark:to-palette-white dark:text-palette-black";let m,d;return n[0]!==a||n[1]!==l||n[2]!==c?(m=i("flex items-center text-sm px-2.5 rounded-md h-full cursor-pointer transition text-tertiary whitespace-nowrap select-none min-h-8","hocus:bg-hover dark:hocus:bg-element","active:scale-[0.975]!","max-md-gutters:w-1/2 max-md-gutters:justify-center",a,l,c),n[0]=a,n[1]=l,n[2]=c,n[3]=m):m=n[3],n[4]!==r||n[5]!==s||n[6]!==m?(d=N("div",{onClick:s,className:m,children:r}),n[4]=r,n[5]=s,n[6]=m,n[7]=d):d=n[7],d}const st=e=>"string"==typeof e?e.toLowerCase():"",at=({config:{docsVersion:t,docsTransformUrl:r,docsSectionContext:o,docsGroupByMainSection:s=!0,docsContextBoost:a=!1},open:g,setOpen:x,customSections:y=[]})=>{const[k,_]=f(!1),[I,$]=f(!0),[A,M]=f(""),[O,E]=f(null),[j,L]=f(!1),[H,z]=f(null),[P,q]=f(""),R=b(null),T=w((e=>x(e)),[x]),{conversation:U,submitQuery:V,isGeneratingAnswer:D,isPreparingAnswer:K,addFeedback:Z,stopGeneration:F,resetConversation:B,error:Q}=n(),W=w((e=>{z(null),q(e);const t=e=>{e.preventDefault(),z("Failed to reach the AI service."),$(!1)};window.addEventListener("unhandledrejection",t);try{V(e)}catch{z("Failed to reach the AI service."),$(!1)}setTimeout((()=>{window.removeEventListener("unhandledrejection",t)}),5e3)}),[V]),Y=Q||H,[J,ee]=f([]),[te,ne]=f([]),[re,ie]=f([]),[oe,se]=f([]),ae=async()=>he(A,(e=>xe(e,t,{sectionContext:o})),ee),le=async()=>(async(e,t,n)=>{n(await t(e))})(A,ve,ne),ce=async()=>he(A,ye,ie),me=async()=>he(A,be,se),de=()=>T(!1),pe=U.getLatest(),ue=e=>{Promise.all([ae(),le(),ce(),me(),...y?.map((e=>e.getItemsAsync(A)))]).then(e)},fe=C((()=>{if(g&&!j){$(!0);const e=setTimeout((()=>{ue((()=>$(!1)))}),500);return()=>clearTimeout(e)}})),ge=C((()=>{g&&!k&&ue((()=>{_(!0),$(!1)}))})),we=C((e=>{if("Tab"===e.key&&(e.preventDefault(),L((e=>!e)),R?.current?.focus()),j&&"Enter"===e.key&&(e.preventDefault(),A.length>0)){if(K||D)return void F();if(pe?.question===A&&!pe?.isGenerationAborted)return;B(),$(!0),W(A),M("")}}));v((()=>{E("undefined"!=typeof navigator&&$e())}),[]),v((()=>{K||D||$(!1)}),[K,D]),v((()=>{Y&&$(!1)}),[Y]),v((()=>{j||fe()}),[j]),v((()=>{if(null!==O){const e=e=>{"k"===e.key&&(O?e.metaKey:e.ctrlKey)&&(e.preventDefault(),T((e=>!e)))};return document.addEventListener("keydown",e,!1),()=>document.removeEventListener("keydown",e)}}),[O,T]),v((()=>{if(ge(),g)return document.addEventListener("keydown",we,!1),()=>document.removeEventListener("keydown",we);document.removeEventListener("keydown",we)}),[g,j,pe,A]),v((()=>{fe()}),[A]);const Ce=e=>{let t=0;const n=st(o?.section),r=st(o?.group),i=st(o?.mainSection),s=st(e.mainSection),l=st(e.section),c=st(e.group),m=e.url.toLowerCase(),d=st(e.hierarchy.lvl0);if(a&&n){const e=n.replace(/\s+/g,"/"),r=m.includes(`/${e}/`),i=d.includes(n);(r||i)&&(t+=5)}return i&&s===i&&(t+=3),n&&l.includes(n)&&(t+=2),r&&c.includes(r)&&(t+=1),t+=e._rankingInfo?.filters??0,t},Ne=[...J].sort(((e,t)=>{const n=Ce(t)-Ce(e);return n||(t._rankingInfo?.userScore??0)-(e._rankingInfo?.userScore??0)})).map((e=>({...e,baseUrl:e.url.replace(/#.+/,""),mainSection:"EAS"===e.mainSection?"Expo Application Services":e.mainSection||"Expo documentation"}))),Se=s?h(Ne,"mainSection"):{"Expo documentation":Ne},ke=o?.mainSection,_e=Object.keys(Se).sort(((e,t)=>{if(ke){if(e===ke)return-1;if(t===ke)return 1}return e.localeCompare(t)})),Ie=new Map;Ne.forEach(((e,t)=>{const n=Ie.get(e.baseUrl);(void 0===n||t<n)&&Ie.set(e.baseUrl,t)}));const Ae=[A.length>10&&0===J.length&&N(e.Group,{heading:"Ask AI",children:N(Me,{value:"expo-ai-prompt",onSelect:()=>{L(!0)},children:S("div",{className:"inline-flex gap-3 items-center",children:[N(m,{className:"text-icon-secondary"}),S("div",{className:"flex flex-col",children:[N("p",{className:"text-sm font-medium leading-snug",children:"Ask Expo's AI assistant"}),N("p",{className:"text-xs text-tertiary leading-snug",children:"Experimental feature"})]})]})})},"expo-ai-prompt"),...J.length>0?_e.map((t=>{const n=h(Se[t],"baseUrl"),i=Object.entries(n).map((([e,t])=>{const n=Math.max(...t.map((e=>e._rankingInfo?.filters??0)),0);return{baseUrl:e,values:t,filtersScore:n,orderIndex:Ie.get(e)??Number.MAX_SAFE_INTEGER}})).sort(((e,t)=>e.filtersScore!==t.filtersScore?t.filtersScore-e.filtersScore:e.orderIndex-t.orderIndex));return N(e.Group,{heading:s?t:"Expo documentation",children:i.map((({values:e})=>e.sort(((e,t)=>e.url.localeCompare(e.baseUrl)-t.url.localeCompare(t.baseUrl))).slice(0,6).map(((e,t)=>N(Pe,{isNested:0!==t,item:e,onSelect:de,transformUrl:r},`hit-expo-docs-${e.objectID}`)))))},`expo-docs-group-${t}`)})):[],te.length>0&&N(e.Group,{heading:"Expo blog",children:te.map((e=>N(qe,{item:e,onSelect:de,query:A},`hit-expo-blog-${e.slug.current}`)))},"expo-blog-group"),re.length>0&&N(e.Group,{heading:"React Native documentation",children:re.map((e=>N(He,{item:e,onSelect:de},`hit-rn-docs-${e.objectID}`)))},"rn-docs-group"),oe.length>0&&N(e.Group,{heading:"React Native directory",children:oe.map((e=>N(je,{item:e,onSelect:de,query:A},`hit-rn-dir-${e.npmPkg}`)))},"rn-directory-group")];y?.forEach((({items:t,heading:n,sectionIndex:r})=>t.length>0&&Ae.splice(r,0,N(e.Group,{heading:n,children:t},`${r}-${n}`))));const Oe=j?l:c;return S(e.Dialog,{open:g,onOpenChange:T,label:"Search Menu",shouldFilter:!1,children:[N(p,{className:"sr-only",children:"Search Menu"}),N(u,{className:"sr-only",children:"Search documentation or ask AI"}),S("div",{className:i("relative flex px-4 gap-x-3 border-b border-secondary","max-md-gutters:flex-col"),children:[S("div",{className:"flex relative w-full overflow-hidden",children:[N(Oe,{className:"text-icon-tertiary absolute top-[29px] left-[13px] transition-opacity duration-200"}),N("div",{className:i("absolute top-[25px] right-[9px] z-[101] cursor-pointer p-1 rounded-xs","hocus:bg-element","active:scale-[0.975]"),children:N(d,{className:"text-icon-tertiary",onClick:()=>A?M(""):T(!1)})}),N(e.Input,{value:A,onValueChange:M,placeholder:j?"Ask AI…":"Search…",autoFocus:!0,ref:R})]}),S("div",{className:i("tabs-container relative flex mt-4 mb-3 px-1.5 py-1.5 gap-1 items-center rounded-lg border border-palette-gray5 bg-subtle","dark:bg-screen dark:border-palette-gray4","max-md-gutters:mt-0",j&&"tabs-container-ai"),children:[N(ot,{label:"Search",isActive:!j,onClick:()=>{L(!1),R?.current?.focus()}}),N(ot,{label:"Ask AI",isActive:j,onClick:()=>{L(!0),A.length>0&&(U.getLatest()||($(!0),W(A),M(""))),R?.current?.focus()}})]})]}),N(G,{isLoading:I}),S("div",{className:"relative",children:[N("div",{className:i("pointer-events-none absolute left-0 -top-px z-10 h-6 w-[calc(100%-8px)]","bg-linear-to-b from-default to-transparent opacity-90")}),j?N(Je,{conversation:U,isGeneratingAnswer:D,isPreparingAnswer:K,addFeedback:Z,resetConversation:B,resetInput:()=>M(""),error:Y,retryQuery:()=>{P&&(B(),$(!0),W(P))}}):S(e.List,{children:[k&&Ae,0===Ae.filter(Boolean).length&&N(e.Empty,{children:N("p",{className:"text-secondary text-sm",children:"No results found."})},"no-results-group")]}),N("div",{className:i("pointer-events-none absolute left-0 -bottom-px z-10 h-6 w-[calc(100%-8px)]","bg-linear-to-t from-default to-transparent opacity-90")})]}),N(X,{isPromptMode:j})]})},lt=e=>{const n=t(3);let i,o;return n[0]===Symbol.for("react.memo_cache_sentinel")?(i={},n[0]=i):i=n[0],n[1]!==e?(o=N(r,{userTrackingMode:"none",integrationId:"bf5bd579-bb83-4591-8cc9-d87b6cdcb712",callbacks:i,children:N(at,{...e})}),n[1]=e,n[2]=o):o=n[2],o},ct=e=>{const n=t(14),{setOpen:r,className:o}=e,[a,l]=f(null);let m,d,p,u,h,g,x,y;return n[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{l("undefined"!=typeof navigator&&$e())},d=[],n[0]=m,n[1]=d):(m=n[0],d=n[1]),v(m,d),n[2]===Symbol.for("react.memo_cache_sentinel")?(p=N(c,{className:"icon-md text-icon-secondary"}),n[2]=p):p=n[2],n[3]!==a?(u=null!==a?S("div",{className:"ml-auto max-md-gutters:hidden",children:[N("kbd",{className:"h-5! leading-[19px]!",children:a?"⌘":"Ctrl"})," ",N("kbd",{className:"h-5! leading-[19px]!",children:"K"})]}):void 0,n[3]=a,n[4]=u):u=n[4],n[5]!==o?(h=i("cmdk-trigger bg-default pl-2.5 pr-3 border border-default shadow-xs min-h-[40px]",o),n[5]=o,n[6]=h):h=n[6],n[7]!==r?(g=()=>r(!0),n[7]=r,n[8]=g):g=n[8],n[9]===Symbol.for("react.memo_cache_sentinel")?(x=N("p",{className:"text-secondary font-normal leading-normal text-sm",children:"Search or Ask AI"}),n[9]=x):x=n[9],n[10]!==u||n[11]!==h||n[12]!==g?(y=N(s,{theme:"secondary",leftSlot:p,rightSlot:u,className:h,onClick:g,children:x}),n[10]=u,n[11]=h,n[12]=g,n[13]=y):y=n[13],y},mt=e.Item;export{mt as CommandItemBase,Me as CommandItemBaseWithCopy,lt as CommandMenu,ct as CommandMenuTrigger,Ae as addHighlight};
1
+ "use strict";var e=require("cmdk"),t=require("react/compiler-runtime"),s=require("@kapaai/react-sdk"),n=require("@expo/styleguide"),r=require("@expo/styleguide-icons/outline/MessageQuestionCircleIcon"),i=require("@expo/styleguide-icons/outline/SearchSmIcon"),o=require("@expo/styleguide-icons/outline/Stars02Icon"),a=require("@expo/styleguide-icons/outline/XIcon"),l=require("@radix-ui/react-dialog"),c=require("lodash.groupby"),m=require("react"),d=require("react/jsx-runtime"),u=require("@expo/styleguide-icons/outline/ArrowUpRightIcon"),h=require("@expo/styleguide-icons/outline/ChevronRightIcon"),p=require("@sanity/client"),x=require("@expo/styleguide-icons/outline/ClipboardIcon"),g=require("@expo/styleguide-icons/outline/RefreshCcw02Icon"),f=require("@expo/styleguide-icons/outline/ThumbsDownIcon"),y=require("@expo/styleguide-icons/outline/ThumbsUpIcon"),j=require("@expo/styleguide-icons/solid/ThumbsDownSolidIcon"),v=require("@expo/styleguide-icons/solid/ThumbsUpSolidIcon"),C=require("markdown-to-jsx/react"),b=require("@expo/styleguide-icons/outline/CheckIcon"),w=require("@expo/styleguide-icons/custom/PlanEnterpriseIcon"),N=require("@expo/styleguide-icons/outline/BookOpen02Icon"),S=require("@expo/styleguide-icons/outline/GraduationHat02Icon"),I=require("@expo/styleguide-icons/outline/Hash02Icon"),k=require("@expo/styleguide-icons/outline/Home02Icon"),_=require("@expo/styleguide-icons/custom/GithubIcon"),$=require("@expo/styleguide-icons/outline/Download01Icon"),A=require("@expo/styleguide-icons/outline/Star01Icon");const E=e=>{const s=t.c(5),{isLoading:r,className:i}=e,o=r&&"animate-[searchUIBarLoader_2s_infinite_ease-in-out]";let a,l;return s[0]!==i||s[1]!==o?(a=n.mergeClasses("bg-palette-blue9 h-0.5 absolute z-20",o,i),s[0]=i,s[1]=o,s[2]=a):a=s[2],s[3]!==a?(l=d.jsx("div",{role:"progressbar",className:a}),s[3]=a,s[4]=l):l=s[4],l};function q(){const e=t.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=d.jsx(h.ChevronRightIcon,{className:"icon-xs text-icon-quaternary inline-block relative mx-1 -top-px"}),e[0]=s):s=e[0],s}const M=()=>{const e=t.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=d.jsx(u.ArrowUpRightIcon,{className:"text-icon-tertiary self-center ml-auto shrink-0"}),e[0]=s):s=e[0],s},O=e=>{const s=t.c(6),{className:r}=e;let i,o,a,l;return s[0]!==r?(i=n.mergeClasses("icon-md text-icon-secondary",r),s[0]=r,s[1]=i):i=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(o=d.jsx("circle",{cx:"0",cy:"0",r:"2.05",fill:"currentColor"}),s[2]=o):o=s[2],s[3]===Symbol.for("react.memo_cache_sentinel")?(a=d.jsxs("g",{stroke:"currentColor",strokeWidth:"1",fill:"none",children:[d.jsx("ellipse",{rx:"11",ry:"4.2"}),d.jsx("ellipse",{rx:"11",ry:"4.2",transform:"rotate(60)"}),d.jsx("ellipse",{rx:"11",ry:"4.2",transform:"rotate(120)"})]}),s[3]=a):a=s[3],s[4]!==i?(l=d.jsxs("svg",{viewBox:"-11.5 -10.23174 23 20.46348",className:i,children:[o,a]}),s[4]=i,s[5]=l):l=s[5],l},L=e=>{const s=t.c(4),{className:n}=e;let r,i,o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(r=d.jsxs("g",{clipPath:"url(#clip0_1_2)",children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1070.38 275.3V5.90999C1070.38 2.27998 1067.14 -0.480015 1063.56 0.0799852L1013.1 8.01999C1010.23 8.46999 1008.11 10.95 1008.11 13.86L1008.28 287.08C1008.28 300 1008.28 379.78 1104.25 382.57C1107.58 382.67 1110.34 379.99 1110.34 376.66V335.88C1110.34 332.92 1108.15 330.37 1105.22 330.04C1070.37 326.03 1070.37 282.47 1070.37 275.32L1070.38 275.3Z"}),d.jsx("path",{d:"M1902.56 104.73H1851.78C1848.52 104.73 1845.88 107.372 1845.88 110.63V376.73C1845.88 379.988 1848.52 382.63 1851.78 382.63H1902.56C1905.82 382.63 1908.46 379.988 1908.46 376.73V110.63C1908.46 107.372 1905.82 104.73 1902.56 104.73Z"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1851.78 71.38H1902.55C1905.81 71.38 1908.45 68.74 1908.45 65.48V5.90001C1908.45 2.28001 1905.21 -0.489988 1901.63 0.0700121L1850.86 8.02001C1847.99 8.47001 1845.87 10.94 1845.87 13.85V65.47C1845.87 68.73 1848.51 71.37 1851.77 71.37L1851.78 71.38Z"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1764.03 275.3V5.90999C1764.03 2.27998 1760.79 -0.480015 1757.21 0.0799852L1706.75 8.01999C1703.88 8.46999 1701.76 10.95 1701.76 13.86L1701.93 287.08C1701.93 300 1701.93 379.78 1797.9 382.57C1801.23 382.67 1803.99 379.99 1803.99 376.66V335.88C1803.99 332.92 1801.8 330.37 1798.87 330.04C1764.02 326.03 1764.02 282.47 1764.02 275.32L1764.03 275.3Z"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1631.95 142.72C1620.81 130.47 1607.12 121.07 1591.17 114.41C1575.25 107.88 1557.91 104.56 1539.1 104.56C1520.32 104.56 1502.95 107.73 1487.18 114.41C1471.59 121.07 1457.89 130.46 1446.42 142.72C1434.95 154.95 1426.04 169.59 1419.66 186.75C1413.28 203.92 1410.42 224.12 1410.42 245.11C1410.42 266.1 1413.61 281.98 1419.97 299.32C1426.35 316.64 1435.11 331.43 1446.42 343.68C1457.71 355.91 1471.25 365.3 1487.02 372.14C1502.79 378.97 1527.14 382.47 1539.42 382.62C1551.67 382.62 1576.2 378.8 1592.12 372.14C1608.04 365.46 1621.58 355.91 1632.9 343.68C1644.19 331.43 1652.95 316.64 1659.15 299.32C1665.37 281.98 1668.39 266.1 1668.39 245.11C1668.39 224.12 1665.05 203.92 1658.36 186.75C1651.98 169.58 1643.22 154.95 1631.93 142.72H1631.95ZM1587.52 306.47C1576.05 322.22 1559.96 330.17 1539.43 330.17C1518.88 330.17 1502.8 322.37 1491.33 306.47C1479.86 290.72 1474.12 272.46 1474.12 245.27C1474.12 218.38 1479.71 196.13 1491.18 180.4C1502.63 164.65 1518.72 156.88 1539.25 156.88C1559.8 156.88 1575.88 164.66 1587.34 180.4C1598.81 195.97 1604.7 218.38 1604.7 245.27C1604.7 272.46 1598.98 290.57 1587.51 306.47H1587.52Z"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M894.42 104.73H845.09C796.73 104.73 754.18 130.21 729.34 168.83C714.82 191.41 706.35 218.46 706.35 247.56C706.35 292.45 726.48 332.48 757.94 358.66C760.87 361.26 763.99 363.64 767.25 365.8C780.11 374.29 795.36 379.27 811.77 379.27C813 379.27 814.23 379.24 815.45 379.18C815.81 379.16 816.16 379.13 816.52 379.11C817.39 379.06 818.27 379 819.14 378.91C819.48 378.88 819.82 378.83 820.16 378.79C821.07 378.69 821.98 378.58 822.89 378.45C823.1 378.42 823.31 378.38 823.52 378.35C856.41 373.28 885.08 347.53 894.42 315.54V373.37C894.42 376.63 897.06 379.27 900.32 379.27H950.74C954 379.27 956.64 376.63 956.64 373.37V110.63C956.64 107.37 954 104.73 950.74 104.73H894.42ZM894.42 311.65C882.22 321.81 866.45 325.63 849.58 326.77C849.42 326.78 849.25 326.8 849.09 326.81C847.97 326.88 846.85 326.91 845.73 326.91C803.49 326.91 768.61 291.02 768.61 247.54C768.61 237.29 770.57 227.53 774.03 218.56C785.25 189.44 812.8 168.82 845.09 168.82H894.42V311.65Z"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2133.97 104.73H2084.64C2036.28 104.73 1993.73 130.21 1968.89 168.83C1954.37 191.41 1945.9 218.46 1945.9 247.56C1945.9 292.45 1966.03 332.48 1997.49 358.66C2000.42 361.26 2003.54 363.64 2006.8 365.8C2019.66 374.29 2034.91 379.27 2051.32 379.27C2052.55 379.27 2053.78 379.24 2055 379.18C2055.36 379.16 2055.71 379.13 2056.07 379.11C2056.94 379.06 2057.82 379 2058.69 378.91C2059.03 378.88 2059.37 378.83 2059.71 378.79C2060.62 378.69 2061.53 378.58 2062.44 378.45C2062.65 378.42 2062.86 378.38 2063.07 378.35C2095.96 373.28 2124.63 347.53 2133.97 315.54V373.37C2133.97 376.63 2136.61 379.27 2139.87 379.27H2190.29C2193.55 379.27 2196.19 376.63 2196.19 373.37V110.63C2196.19 107.37 2193.55 104.73 2190.29 104.73H2133.97ZM2133.97 311.65C2121.77 321.81 2106 325.63 2089.13 326.77C2088.97 326.78 2088.8 326.8 2088.64 326.81C2087.52 326.88 2086.4 326.91 2085.28 326.91C2043.04 326.91 2008.16 291.02 2008.16 247.54C2008.16 237.29 2010.12 227.53 2013.58 218.56C2024.8 189.44 2052.35 168.82 2084.64 168.82H2133.97V311.65Z"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1314.05 104.73H1264.72C1216.36 104.73 1173.81 130.21 1148.97 168.83C1137.18 187.17 1129.37 208.47 1126.86 231.42C1126.28 236.72 1125.98 242.1 1125.98 247.56C1125.98 253.02 1126.29 258.71 1126.91 264.15C1131.19 302.24 1150.05 335.76 1177.57 358.67C1180.5 361.27 1183.62 363.65 1186.88 365.81C1199.74 374.3 1214.99 379.28 1231.4 379.28C1249.39 379.28 1266.01 373.35 1279.56 363.31C1295.85 351.73 1308.44 334.77 1314.04 315.56V365.82H1313.93V376.9C1313.93 398.74 1308.22 415.17 1296.59 426.26C1284.98 437.34 1265.55 442.89 1238.34 442.89C1227.22 442.89 1209.55 442.3 1191.74 440.48C1188.91 440.19 1186.28 441.98 1185.47 444.7L1172.69 487.81C1171.67 491.27 1173.96 494.83 1177.52 495.34C1199.04 498.42 1220.04 500.02 1232.17 500.02C1281.08 500.02 1317.33 489.27 1341.06 467.81C1362.54 448.4 1374.21 418.92 1376.26 379.29V110.63C1376.26 107.37 1373.62 104.73 1370.36 104.73H1314.04H1314.05ZM1314.05 168.83C1314.05 168.83 1314.7 307.96 1314.05 312.19C1301.97 321.96 1286.94 325.78 1270.56 326.89C1270.4 326.9 1270.23 326.92 1270.07 326.93C1268.95 327 1267.83 327.03 1266.71 327.03C1265.39 327.03 1264.08 327 1262.77 326.93C1222.36 324.82 1188.25 289.67 1188.25 247.55C1188.25 237.3 1190.21 227.54 1193.67 218.57C1204.89 189.45 1232.44 168.83 1264.73 168.83H1314.06H1314.05Z"}),d.jsx("path",{d:"M249.83 0C113.3 0 2.00001 110.09 0.0300098 246.16C-1.96999 384.35 110.15 498.86 248.36 499.66C291.04 499.91 332.15 489.47 368.66 469.63C372.22 467.7 372.77 462.8 369.74 460.12L346.36 439.4C341.61 435.19 334.85 434 329 436.48C303.52 447.32 275.83 452.86 247.29 452.51C135.61 451.14 45.38 358.22 47.16 246.55C48.92 136.29 139.16 47.14 249.83 47.14H452.52V407.41L337.52 305.23C333.8 301.92 328.1 302.57 325.1 306.54C306.64 330.98 276.57 346.18 243.17 343.88C196.84 340.68 159.3 303.38 155.83 257.07C151.68 201.83 195.46 155.55 249.83 155.55C299.01 155.55 339.51 193.4 343.74 241.5C344.12 245.78 346.05 249.77 349.26 252.62L379.21 279.17C382.61 282.18 388 280.34 388.84 275.87C391 264.32 391.76 252.29 390.91 239.95C386.09 169.61 329.11 113.02 258.74 108.69C178.06 103.72 110.61 166.83 108.47 245.94C106.38 323.04 169.55 389.5 246.66 391.2C278.85 391.91 308.69 381.79 332.8 364.25L483.06 497.45C489.5 503.16 499.67 498.59 499.67 489.98V9.48C499.66 4.25 495.42 0 490.18 0H249.83Z"})]}),i=d.jsx("defs",{children:d.jsx("clipPath",{children:d.jsx("rect",{width:2196.2,height:500})})}),s[0]=r,s[1]=i):(r=s[0],i=s[1]),s[2]!==n?(o=d.jsxs("svg",{width:"77",height:"19",viewBox:"0 0 2197 500",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-label":"Algolia",className:n,role:"img",children:[r,i]}),s[2]=n,s[3]=o):o=s[3],o},H=e=>{const s=t.c(10),{className:n}=e;let r,i,o,a,l,c,m,u,h;return s[0]===Symbol.for("react.memo_cache_sentinel")?(r=d.jsx("path",{d:"m345.202 187.216c-1.602 0-2.9-1.3-2.898-2.903l.192-131.3758c.003-1.599 1.3-2.8941 2.899-2.8941h21.913c1.601 0 2.899 1.2977 2.899 2.8983v68.9056c0 2.83 3.639 3.982 5.268 1.668l30.607-43.4845c.543-.7712 1.427-1.2301 2.37-1.2301h26.556c2.365 0 3.734 2.6785 2.35 4.5952l-34.565 47.8594c-.751 1.04-.73 2.45.053 3.466l36.845 47.828c1.468 1.905.11 4.667-2.296 4.667h-28.159c-.933 0-1.808-.449-2.353-1.206l-31.425-43.693c-1.644-2.285-5.251-1.123-5.251 1.692v40.308c0 1.601-1.298 2.899-2.899 2.899z"}),i=d.jsx("path",{d:"m477.369 190.227c-7.763 0-14.355-1.472-19.776-4.417-5.354-3.011-9.436-6.993-12.247-11.945-2.744-5.02-4.116-10.541-4.116-16.564 0-5.019.77-9.603 2.309-13.753 1.539-4.149 4.016-7.796 7.429-10.941 3.48-3.213 8.131-5.89 13.953-8.031 4.016-1.473 8.801-2.778 14.355-3.915 5.555-1.138 11.846-2.209 18.872-3.213 4.589-.699 9.476-1.441 14.664-2.225 1.701-.258 2.481 2.042.974 2.873-1.028.566-2.292-.179-2.378-1.35-.372-5.108-1.881-8.956-4.526-11.544-3.079-3.012-8.232-4.518-15.459-4.518-4.016 0-8.198.971-12.548 2.911-3.548 1.583-6.228 4.168-8.04 7.754-.706 1.398-2.282 2.21-3.774 1.737l-19.281-6.114c-1.515-.48-2.37-2.096-1.811-3.583 2.906-7.7358 7.751-14.125 14.535-19.1678 7.563-5.6216 17.869-8.4323 30.919-8.4323 9.57 0 18.069 1.4723 25.497 4.4169 7.429 2.9446 13.05 8.0307 16.865 15.2584 2.142 4.0154 3.413 8.0308 3.815 12.0458.401 4.016.602 8.5.602 13.452v63.355c0 1.601-1.298 2.899-2.898 2.899h-18.095c-1.601 0-2.899-1.298-2.899-2.899v-14.76c0-1.47 1.876-2.088 2.75-.906.395.534.399 1.264.002 1.796-5.102 6.832-10.603 11.819-16.504 14.962-6.09 3.212-13.82 4.818-23.189 4.818zm5.822-21.482c5.019 0 9.236-.87 12.649-2.61 3.48-1.807 6.223-3.848 8.231-6.123 2.075-2.276 3.48-4.183 4.216-5.722 1.406-2.945 2.209-6.358 2.41-10.24.211-3.117.339-5.818.383-8.101.017-.882.847-1.529 1.703-1.315 1.428.357 1.345 2.42-.106 2.665-5.205.882-9.612 1.66-13.224 2.334-5.019.87-9.068 1.674-12.146 2.41-3.079.736-5.789 1.539-8.131 2.409-2.677 1.071-4.852 2.242-6.525 3.513-1.606 1.205-2.811 2.543-3.614 4.016-.736 1.472-1.104 3.112-1.104 4.919 0 2.476.602 4.617 1.807 6.424 1.271 1.74 3.045 3.079 5.32 4.016s4.986 1.405 8.131 1.405z"}),o=d.jsx("path",{d:"m611.484 190.227c-10.774 0-19.775-2.509-27.003-7.529-7.228-5.019-12.682-11.845-16.363-20.478-3.614-8.633-5.421-18.37-5.421-29.212 0-10.841 1.807-20.579 5.421-29.212 3.614-8.6329 8.934-15.4591 15.961-20.4783s15.694-7.5288 26-7.5288c10.373 0 19.408 2.4761 27.104 7.4284s13.652 11.745 17.868 20.3777c4.283 8.567 6.425 18.371 6.425 29.413 0 10.842-2.108 20.579-6.324 29.212-4.15 8.633-9.972 15.459-17.467 20.478-7.496 5.02-16.229 7.529-26.201 7.529zm-50.506 45.173c-1.601 0-2.898-1.297-2.898-2.898v-150.8033c0-1.6007 1.297-2.8983 2.898-2.8983h18.296c1.6 0 2.898 1.2976 2.898 2.8983v69.6793c0 .943.764 1.707 1.706 1.707.943 0 1.707.764 1.707 1.707v77.71c0 1.601-1.298 2.898-2.898 2.898zm46.089-69.466c5.89 0 10.708-1.472 14.456-4.417 3.747-2.944 6.525-6.893 8.332-11.845 1.807-5.019 2.71-10.574 2.71-16.664 0-6.023-.937-11.511-2.811-16.463-1.874-5.019-4.785-9.001-8.733-11.946-3.882-3.011-8.868-4.517-14.958-4.517-5.688 0-10.306 1.372-13.853 4.116-3.48 2.744-6.023 6.592-7.629 11.544s-2.409 10.708-2.409 17.266c0 6.559.803 12.314 2.409 17.266 1.606 4.953 4.216 8.801 7.83 11.544 3.681 2.744 8.566 4.116 14.656 4.116z"}),a=d.jsx("path",{d:"m707.657 190.227c-7.763 0-14.355-1.472-19.775-4.417-5.354-3.011-9.437-6.993-12.247-11.945-2.744-5.02-4.116-10.541-4.116-16.564 0-5.019.77-9.603 2.309-13.753 1.539-4.149 4.015-7.796 7.428-10.941 3.48-3.213 8.131-5.89 13.954-8.031 4.015-1.473 8.8-2.778 14.355-3.915 5.554-1.138 11.845-2.209 18.872-3.213 4.588-.699 9.476-1.441 14.663-2.225 1.702-.258 2.482 2.042.974 2.873-1.027.566-2.292-.179-2.377-1.35-.372-5.108-1.881-8.956-4.526-11.544-3.079-3.012-8.232-4.518-15.46-4.518-4.015 0-8.198.971-12.548 2.911-3.548 1.583-6.227 4.168-8.039 7.754-.706 1.398-2.282 2.21-3.775 1.737l-19.281-6.114c-1.514-.48-2.369-2.096-1.81-3.583 2.906-7.7358 7.751-14.125 14.535-19.1678 7.562-5.6216 17.868-8.4323 30.918-8.4323 9.57 0 18.069 1.4723 25.498 4.4169 7.428 2.9446 13.05 8.0307 16.865 15.2584 2.141 4.0154 3.413 8.0308 3.814 12.0458.402 4.016.603 8.5.603 13.452v63.355c0 1.601-1.298 2.899-2.899 2.899h-18.095c-1.6 0-2.898-1.298-2.898-2.899v-14.76c0-1.47 1.876-2.088 2.75-.906.395.534.399 1.264.001 1.796-5.101 6.832-10.603 11.819-16.504 14.962-6.09 3.212-13.819 4.818-23.189 4.818zm5.823-21.482c5.019 0 9.235-.87 12.648-2.61 3.48-1.807 6.224-3.848 8.232-6.123 2.074-2.276 3.48-4.183 4.216-5.722 1.405-2.945 2.208-6.358 2.409-10.24.211-3.117.339-5.818.384-8.101.017-.882.847-1.529 1.702-1.315 1.428.357 1.346 2.42-.105 2.665-5.205.882-9.613 1.66-13.224 2.334-5.019.87-9.068 1.674-12.147 2.41-3.078.736-5.788 1.539-8.131 2.409-2.677 1.071-4.852 2.242-6.525 3.513-1.606 1.205-2.81 2.543-3.614 4.016-.736 1.472-1.104 3.112-1.104 4.919 0 2.476.603 4.617 1.807 6.424 1.272 1.74 3.045 3.079 5.321 4.016 2.275.937 4.985 1.405 8.131 1.405z"}),l=d.jsx("path",{d:"m795.884 187.216c-1.601 0-2.898-1.298-2.898-2.899v-21.508c0-1.6 1.297-2.898 2.898-2.898h21.508c1.601 0 2.899 1.298 2.899 2.898v21.508c0 1.601-1.298 2.899-2.899 2.899z"}),c=d.jsx("path",{d:"m876.97 190.227c-7.763 0-14.355-1.472-19.776-4.417-5.353-3.011-9.436-6.993-12.247-11.945-2.743-5.02-4.115-10.541-4.115-16.564 0-5.019.769-9.603 2.309-13.753 1.539-4.149 4.015-7.796 7.428-10.941 3.48-3.213 8.131-5.89 13.954-8.031 4.015-1.473 8.8-2.778 14.355-3.915 5.554-1.138 11.845-2.209 18.872-3.213 4.588-.699 9.476-1.441 14.663-2.225 1.702-.258 2.482 2.042.974 2.873-1.027.566-2.292-.179-2.377-1.35-.372-5.108-1.881-8.956-4.527-11.544-3.078-3.012-8.231-4.518-15.459-4.518-4.015 0-8.198.971-12.548 2.911-3.548 1.583-6.228 4.168-8.039 7.754-.706 1.398-2.282 2.21-3.775 1.737l-19.281-6.114c-1.515-.48-2.37-2.096-1.811-3.583 2.907-7.7358 7.752-14.125 14.536-19.1678 7.562-5.6216 17.868-8.4323 30.918-8.4323 9.57 0 18.069 1.4723 25.498 4.4169 7.428 2.9446 13.05 8.0307 16.864 15.2584 2.142 4.0154 3.413 8.0308 3.815 12.0458.401 4.016.602 8.5.602 13.452v63.355c0 1.601-1.297 2.899-2.898 2.899h-18.095c-1.601 0-2.898-1.298-2.898-2.899v-14.76c0-1.47 1.876-2.088 2.75-.906.395.534.399 1.264.001 1.796-5.102 6.832-10.603 11.819-16.504 14.962-6.09 3.212-13.82 4.818-23.189 4.818zm5.823-21.482c5.019 0 9.235-.87 12.648-2.61 3.48-1.807 6.224-3.848 8.232-6.123 2.074-2.276 3.479-4.183 4.216-5.722 1.405-2.945 2.208-6.358 2.409-10.24.211-3.117.339-5.818.384-8.101.017-.882.846-1.529 1.702-1.315 1.428.357 1.345 2.42-.106 2.665-5.204.882-9.612 1.66-13.223 2.334-5.019.87-9.068 1.674-12.147 2.41-3.078.736-5.789 1.539-8.131 2.409-2.677 1.071-4.852 2.242-6.525 3.513-1.606 1.205-2.811 2.543-3.614 4.016-.736 1.472-1.104 3.112-1.104 4.919 0 2.476.602 4.617 1.807 6.424 1.272 1.74 3.045 3.079 5.32 4.016 2.276.937 4.986 1.405 8.132 1.405z"}),m=d.jsx("path",{d:"m962.788 63.7427c-1.601 0-2.899-1.2976-2.899-2.8983v-18.2957c0-1.6007 1.298-2.8983 2.899-2.8983h21.508c1.6 0 2.898 1.2976 2.898 2.8983v18.2957c0 1.6007-1.298 2.8983-2.898 2.8983zm0 123.4733c-1.601 0-2.899-1.298-2.899-2.899v-102.6183c0-1.6007 1.298-2.8983 2.899-2.8983h21.508c1.6 0 2.898 1.2976 2.898 2.8983v102.6183c0 1.601-1.298 2.899-2.898 2.899z"}),u=d.jsx("path",{d:"m195.824.5c36.051 0 65.277 29.2254 65.277 65.2764v130.4476c0 36.051-29.226 65.276-65.277 65.276h-130.447c-36.051 0-65.276414-29.225-65.276414-65.276v-130.4476c0-36.051 29.225414-65.2764 65.276414-65.2764zm-116.5564 56.5498c-.9608 0-1.7401.7785-1.7403 1.7393v136.5899c0 .961.7794 1.74 1.7403 1.74h30.3914c.961 0 1.74-.779 1.74-1.74v-38.541c0-.961.779-1.74 1.74-1.74h14.775c.614 0 1.182.323 1.495.851l23.995 40.32c.313.527.881.85 1.495.85h35.002c1.36 0 2.194-1.49 1.483-2.65l-34.842-56.785c-.357-.582-.341-1.319.042-1.884l34.817-51.466c.781-1.1555-.046-2.7149-1.442-2.7149h-34.843c-.608 0-1.172.3172-1.487.837l-24.899 41.0349c-.316.52-.88.838-1.488.838h-14.103c-.961 0-1.74-.779-1.74-1.74v-63.7999c0-.9609-.779-1.7392-1.74-1.7393z"}),s[0]=r,s[1]=i,s[2]=o,s[3]=a,s[4]=l,s[5]=c,s[6]=m,s[7]=u):(r=s[0],i=s[1],o=s[2],a=s[3],l=s[4],c=s[5],m=s[6],u=s[7]),s[8]!==n?(h=d.jsxs("svg",{height:"19",width:"72",viewBox:"0 0 989 262",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:n,children:[r,i,o,a,l,c,m,u]}),s[8]=n,s[9]=h):h=s[9],h};function P(e){const s=t.c(13),{isPromptMode:n}=e;let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r=d.jsx("kbd",{children:"↵"}),s[0]=r):r=s[0];const i=n?"send question":"select";let o,a,l,c,m,u;return s[1]!==i?(o=d.jsxs("p",{className:"text-xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden",children:[r,d.jsxs("span",{children:["to ",i]})]}),s[1]=i,s[2]=o):o=s[2],s[3]!==n?(a=!n&&d.jsxs("p",{className:"text-xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden",children:[d.jsx("kbd",{children:"↑"}),d.jsx("kbd",{children:"↓"}),d.jsx("span",{children:"to navigate"})]}),s[3]=n,s[4]=a):a=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(l=d.jsxs("p",{className:"text-xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden",children:[d.jsx("kbd",{children:"tab"}),d.jsx("span",{children:"to switch mode"})]}),s[5]=l):l=s[5],s[6]===Symbol.for("react.memo_cache_sentinel")?(c=d.jsxs("p",{className:"text-xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden",children:[d.jsx("kbd",{children:"esc"}),d.jsx("span",{children:"to close"})]}),s[6]=c):c=s[6],s[7]!==n?(m=n?d.jsxs("p",{className:"text-xs text-tertiary inline-flex gap-1.5 items-center ml-auto",children:[d.jsx("span",{children:"AI assistant by"}),d.jsx("a",{href:"https://www.kapa.ai/",target:"_blank",children:d.jsx(H,{className:"hocus:opacity-80"})})]}):d.jsxs("p",{className:"text-xs text-tertiary inline-flex gap-2 items-center ml-auto",children:[d.jsx("span",{children:"Search by"}),d.jsx("a",{href:"https://www.algolia.com/developers/?utm_medium=referral&utm_content=powered_by&utm_source=expo.dev.com&utm_campaign=docsearch",target:"_blank",children:d.jsx(L,{className:"hocus:opacity-80"})})]}),s[7]=n,s[8]=m):m=s[8],s[9]!==o||s[10]!==a||s[11]!==m?(u=d.jsxs("div",{className:"flex gap-4 px-4 h-11 items-center border-t border-secondary",children:[o,a,l,c,m]}),s[9]=o,s[10]=a,s[11]=m,s[12]=u):u=s[12],u}const T="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function z(e){return`image-${e.split("/").slice(-1)[0]}`.replace(/\.([a-z]+)$/,"-$1")}const R=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]];function U(e){let t={...e||{}};const s=t.source;delete t.source;const n=function(e){if(!e)return null;let t;if("string"==typeof e&&/^https?:\/\//.test(`${e}`))t={asset:{_ref:z(e)}};else if("string"==typeof e)t={asset:{_ref:e}};else if((s=e)&&"string"==typeof s._ref)t={asset:e};else if((e=>!!e&&"string"==typeof e._id)(e))t={asset:{_ref:e._id||""}};else if((e=>{const t=e;return!(!t||!t.asset)&&"string"==typeof t.asset.url})(e))t={asset:{_ref:z(e.asset.url)}};else{if("object"!=typeof e.asset)return null;t={...e}}var s;const n=e;return n.crop&&(t.crop=n.crop),n.hotspot&&(t.hotspot=n.hotspot),function(e){if(e.crop&&e.hotspot)return e;const t={...e};return t.crop||(t.crop={left:0,top:0,bottom:0,right:0}),t.hotspot||(t.hotspot={x:.5,y:.5,height:1,width:1}),t}(t)}(s);if(!n){if(s&&(e=>{if("object"==typeof e&&null!==e){const t=e;return t._upload&&(!t.asset||!t.asset._ref)}return!1})(s))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw new Error(`Unable to resolve image URL from source (${JSON.stringify(s)})`)}const r=function(e){const[,t,s,n]=e.split("-");if(!t||!s||!n)throw new Error(`Malformed asset _ref '${e}'. Expected an id like "${T}".`);const[r,i]=s.split("x"),o=+r,a=+i;if(!isFinite(o)||!isFinite(a))throw new Error(`Malformed asset _ref '${e}'. Expected an id like "${T}".`);return{id:t,width:o,height:a,format:n}}(n.asset._ref||n.asset._id||""),i=Math.round(n.crop.left*r.width),o=Math.round(n.crop.top*r.height),a={left:i,top:o,width:Math.round(r.width-n.crop.right*r.width-i),height:Math.round(r.height-n.crop.bottom*r.height-o)},l=n.hotspot.height*r.height/2,c=n.hotspot.width*r.width/2,m=n.hotspot.x*r.width,d=n.hotspot.y*r.height,u={left:m-c,top:d-l,right:m+c,bottom:d+l};return t.rect||t.focalPoint||t.ignoreImageParams||t.crop||(t={...t,...V({crop:a,hotspot:u},t)}),function(e){const t=(e.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),s=e.vanityName?`/${e.vanityName}`:"",n=`${e.asset.id}-${e.asset.width}x${e.asset.height}.${e.asset.format}${s}`,r=e.mediaLibraryId?`${t}/media-libraries/${e.mediaLibraryId}/images/${n}`:`${t}/images/${e.projectId}/${e.dataset}/${n}`,i=[];if(e.rect){const{left:t,top:s,width:n,height:r}=e.rect;(0!==t||0!==s||r!==e.asset.height||n!==e.asset.width)&&i.push(`rect=${t},${s},${n},${r}`)}e.bg&&i.push(`bg=${e.bg}`),e.focalPoint&&(i.push(`fp-x=${e.focalPoint.x}`),i.push(`fp-y=${e.focalPoint.y}`));const o=[e.flipHorizontal&&"h",e.flipVertical&&"v"].filter(Boolean).join("");return o&&i.push(`flip=${o}`),R.forEach((t=>{const[s,n]=t;typeof e[s]<"u"?i.push(`${n}=${encodeURIComponent(e[s])}`):typeof e[n]<"u"&&i.push(`${n}=${encodeURIComponent(e[n])}`)})),0===i.length?r:`${r}?${i.join("&")}`}({...t,asset:r})}function V(e,t){let s;const n=t.width,r=t.height;if(!n||!r)return{width:n,height:r,rect:e.crop};const i=e.crop,o=e.hotspot,a=n/r;if(i.width/i.height>a){const e=Math.round(i.height),t=Math.round(e*a),n=Math.max(0,Math.round(i.top)),r=Math.round((o.right-o.left)/2+o.left);let l=Math.max(0,Math.round(r-t/2));l<i.left?l=i.left:l+t>i.left+i.width&&(l=i.left+i.width-t),s={left:l,top:n,width:t,height:e}}else{const e=i.width,t=Math.round(e/a),n=Math.max(0,Math.round(i.left)),r=Math.round((o.bottom-o.top)/2+o.top);let l=Math.max(0,Math.round(r-t/2));l<i.top?l=i.top:l+t>i.top+i.height&&(l=i.top+i.height-t),s={left:n,top:l,width:e,height:t}}return{width:n,height:r,rect:s}}const D=["clip","crop","fill","fillmax","max","scale","min"],F=["top","bottom","left","right","center","focalpoint","entropy"],B=["format"];function K(e){const{apiHost:t,projectId:s,dataset:n}=e,r={baseUrl:(t||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn.")},i=e["~experimental_resource"];if("media-library"===i?.type){if("string"!=typeof i.id||0===i.id.length)throw new Error('Media library clients must include an id in "~experimental_resource"');return{...r,mediaLibraryId:i.id}}return{...r,projectId:s,dataset:n}}function G(e){const t=R;for(const s of t){const[t,n]=s;if(e===t||e===n)return t}return e}function Z(e){let t={};return t=function(e){return!(!e||!("config"in e))&&"function"==typeof e.config}(e)?K(e.config()):function(e){return!(!e||!("clientConfig"in e))&&"object"==typeof e.clientConfig}(e)?K(e.clientConfig):e||{},t}class Q{constructor(e,t){this.options=e?{...e.options||{},...t||{}}:{...t||{}}}withOptions(e){const t=function(e,t){const s=t.baseUrl||e.baseUrl,n={baseUrl:s};for(const e in t)t.hasOwnProperty(e)&&(n[G(e)]=t[e]);return{baseUrl:s,...n}}(this.options,e);return new Q(this,t)}image(e){return this.withOptions({source:e})}dataset(e){return this.withOptions({dataset:e})}projectId(e){return this.withOptions({projectId:e})}withClient(e){const t=Z(e),s={...this.options};return delete s.baseUrl,delete s.projectId,delete s.dataset,delete s.mediaLibraryId,new Q(null,{...t,...s})}bg(e){return this.withOptions({bg:e})}dpr(e){return this.withOptions(e&&1!==e?{dpr:e}:{})}width(e){return this.withOptions({width:e})}height(e){return this.withOptions({height:e})}focalPoint(e,t){return this.withOptions({focalPoint:{x:e,y:t}})}maxWidth(e){return this.withOptions({maxWidth:e})}minWidth(e){return this.withOptions({minWidth:e})}maxHeight(e){return this.withOptions({maxHeight:e})}minHeight(e){return this.withOptions({minHeight:e})}size(e,t){return this.withOptions({width:e,height:t})}blur(e){return this.withOptions({blur:e})}sharpen(e){return this.withOptions({sharpen:e})}rect(e,t,s,n){return this.withOptions({rect:{left:e,top:t,width:s,height:n}})}format(e){return this.withOptions({format:e})}invert(e){return this.withOptions({invert:e})}orientation(e){return this.withOptions({orientation:e})}quality(e){return this.withOptions({quality:e})}forceDownload(e){return this.withOptions({download:e})}flipHorizontal(){return this.withOptions({flipHorizontal:!0})}flipVertical(){return this.withOptions({flipVertical:!0})}ignoreImageParams(){return this.withOptions({ignoreImageParams:!0})}fit(e){if(-1===D.indexOf(e))throw new Error(`Invalid fit mode "${e}"`);return this.withOptions({fit:e})}crop(e){if(-1===F.indexOf(e))throw new Error(`Invalid crop mode "${e}"`);return this.withOptions({crop:e})}saturation(e){return this.withOptions({saturation:e})}auto(e){if(-1===B.indexOf(e))throw new Error(`Invalid auto mode "${e}"`);return this.withOptions({auto:e})}pad(e){return this.withOptions({pad:e})}vanityName(e){return this.withOptions({vanityName:e})}frame(e){if(1!==e)throw new Error(`Invalid frame value "${e}"`);return this.withOptions({frame:e})}url(){return U(this.options)}toString(){return this.url()}}const W="9r24npb8",X="production",Y=p.createClient({projectId:W,dataset:X,useCdn:!0,apiVersion:"v2025-02-19"}),J=new Q(null,Z({projectId:W,dataset:X}));const ee=async(e,t,s,n)=>{const{hits:r,libraries:i}=await t(e,n).then((e=>e.json()));s(r||i||[])},te=(e,t,s,n,r,i={})=>[`https://${t}-dsn.algolia.net/1/indexes/${n}/query`,{method:"POST",headers:{"X-Algolia-Application-Id":t,"X-Algolia-API-Key":s},body:JSON.stringify({params:`query=${e}&hitsPerPage=${r}`,highlightPreTag:"<mark>",highlightPostTag:"</mark>",getRankingInfo:!0,...i})}],se=e=>`"${e.replace(/"/g,'\\"')}"`,ne=(e,t,s)=>{const n=(r=s?.sectionContext,r?[r.group?`group:${se(r.group)}`:null,r.section?`section:${se(r.section)}`:null,r.mainSection?`mainSection:${se(r.mainSection)}`:null].filter(Boolean):[]);var r;return fetch(...te(e,"QEX7PB7D46","6652d26570e8628af4601e1d78ad456b","expo",20,{facetFilters:[["version:none",`version:${t}`]],...n.length&&{optionalFilters:n,sumOrFiltersScores:!0,ruleContexts:s?.ruleContexts},attributesToRetrieve:["*","mainSection","section","group","weight"]}))},re=e=>fetch(...te(e,"8TDSE0OHGQ","c9c791d9d5fd7f315d7f3859b32c1f3b","react-native-v2",5,{facetFilters:[["version:current"]]})),ie=e=>Y.fetch('*[_type == "post" && publishAt < now() && (title match $queryPattern || metadataDescription match $queryPattern)] | order(publishAt desc)[0...10] {\n title,\n slug,\n tags,\n metadataDescription,\n mainImage\n }',{queryPattern:`${e}*`}),oe=e=>fetch(`https://reactnative.directory/api/libraries?search=${encodeURI(e)}&limit=5`),ae=(e,t)=>({dangerouslySetInnerHTML:{__html:e._highlightResult.hierarchy[`${t}`]?.value||""}}),le=(e,t=36)=>{if(!e||!e.length)return"";const s=Math.max(e.indexOf("<mark>")-t,0),n=Math.min(e.indexOf("</mark>")+t+6,e.length);return`${0!==s?"…":""}${e.substring(s,n).trim()}${n!==e.length?"…":""}`},ce=(e,t=!1)=>t?{}:{dangerouslySetInnerHTML:{__html:e._highlightResult.content?.value?le(e._highlightResult.content?.value):le(e._highlightResult.hierarchy.lvl1?.value||"",82)}},me=["/versions/","/more/"],de=["/app-signing/","/build/","/build-reference/","/development/","/eas/","/eas/metadata/","/eas-update/","/submit/","/distribution/","/custom-builds/","/hosting/","/billing/","/accounts/"],ue=["/get-started/","/develop/","/deploy/","/faq/","/config-plugins/","/debugging/","/config-plugins/","/review/","/monitoring/"],he=["/tutorial","/additional-resources/"],pe=()=>/(Mac|iPhone|iPod|iPad)/i.test(navigator?.platform??navigator?.userAgentData?.platform??""),xe=(e,t)=>{if(!e||!e.length)return"";const s=e.toLowerCase().indexOf(t.toLowerCase());if(-1===s)return e;const n=s+t.length;return e.substring(0,s)+"<mark>"+e.substring(s,n)+"</mark>"+e.substring(n)},ge=s=>{const r=t.c(21),{children:i,url:o,isExternalLink:a,isNested:l,onSelect:c,className:u,value:h}=s,[p,x]=m.useState(!1),[g,f]=m.useState(!1);let y;r[0]===Symbol.for("react.memo_cache_sentinel")?(y=function(e){navigator.clipboard?.writeText(e),x(!0),setTimeout((()=>x(!1)),1500)},r[0]=y):y=r[0];const j=y;let v;r[1]!==u?(v=n.mergeClasses("relative",u),r[1]=u,r[2]=v):v=r[2];const C=!!l||void 0;let b,w,N,S,I;return r[3]===Symbol.for("react.memo_cache_sentinel")?(b=e=>{(e.metaKey||e.ctrlKey)&&f(!0)},r[3]=b):b=r[3],r[4]!==o?(w=e=>{!o||1!==e.button&&2!==e.button||j(o)},r[4]=o,r[5]=w):w=r[5],r[6]!==a||r[7]!==g||r[8]!==c||r[9]!==o?(N=()=>{o&&((e,t=!1)=>{const s=document.createElement("a");t&&(s.target="_blank",s.rel="noopener noreferrer"),s.href=e,s.click()})(o,!!g||a),g?f(!1):c&&c()},r[6]=a,r[7]=g,r[8]=c,r[9]=o,r[10]=N):N=r[10],r[11]!==p?(S=p&&d.jsx("div",{className:"text-xs font-medium absolute rounded-full px-2 right-2.5 top-[calc(50%-13px)] border-secondary bg-info text-info",children:"Copied!"}),r[11]=p,r[12]=S):S=r[12],r[13]!==i||r[14]!==v||r[15]!==C||r[16]!==w||r[17]!==N||r[18]!==S||r[19]!==h?(I=d.jsxs(e.Command.Item,{className:v,value:h,"data-nested":C,onMouseDown:b,onMouseUp:w,onSelect:N,onContextMenu:fe,children:[i,S]}),r[13]=i,r[14]=v,r[15]=C,r[16]=w,r[17]=N,r[18]=S,r[19]=h,r[20]=I):I=r[20],I};function fe(e){e.preventDefault()}const ye=new Intl.NumberFormat,je=e=>{const s=t.c(25),{item:n,onSelect:r,query:i}=e,o=`rnd-${n.npmPkg}`,a=n.githubUrl;let l,c,m,u,h,p,x,g,f,y,j;return s[0]===Symbol.for("react.memo_cache_sentinel")?(l=d.jsx(_.GithubIcon,{className:"text-icon-secondary"}),s[0]=l):l=s[0],s[1]!==n.npmPkg||s[2]!==i?(c=xe(n.npmPkg,i),s[1]=n.npmPkg,s[2]=i,s[3]=c):c=s[3],s[4]!==c?(m=d.jsx("p",{className:"text-sm font-medium",dangerouslySetInnerHTML:{__html:c}}),s[4]=c,s[5]=m):m=s[5],s[6]===Symbol.for("react.memo_cache_sentinel")?(u=d.jsx(A.Star01Icon,{className:"icon-2xs text-icon-quaternary"}),s[6]=u):u=s[6],s[7]!==n.github.stats.stars?(h=ye.format(n.github.stats.stars),s[7]=n.github.stats.stars,s[8]=h):h=s[8],s[9]!==n.npm.downloads?(p=n.npm.downloads?d.jsxs(d.Fragment,{children:[" ","· ",d.jsx($.Download01Icon,{className:"icon-2xs text-icon-quaternary"}),ye.format(n.npm.downloads)," downloads"]}):void 0,s[9]=n.npm.downloads,s[10]=p):p=s[10],s[11]!==h||s[12]!==p?(x=d.jsxs("p",{className:"flex items-center gap-1 text-xs text-quaternary",children:[u,h," stars",p]}),s[11]=h,s[12]=p,s[13]=x):x=s[13],s[14]!==m||s[15]!==x?(g=d.jsxs("div",{children:[m,x]}),s[14]=m,s[15]=x,s[16]=g):g=s[16],s[17]===Symbol.for("react.memo_cache_sentinel")?(f=d.jsx(M,{}),s[17]=f):f=s[17],s[18]!==g?(y=d.jsxs("div",{className:"inline-flex gap-3 items-center",children:[l,g,f]}),s[18]=g,s[19]=y):y=s[19],s[20]!==n.githubUrl||s[21]!==r||s[22]!==o||s[23]!==y?(j=d.jsx(ge,{value:o,url:a,isExternalLink:!0,onSelect:r,children:y}),s[20]=n.githubUrl,s[21]=r,s[22]=o,s[23]=y,s[24]=j):j=s[24],j},ve=e=>{const s=t.c(3),{item:n,levelKey:r}=e,i=void 0===r?"lvl0":r;let o;return s[0]!==n||s[1]!==i?(o=n.hierarchy[i]?d.jsxs(d.Fragment,{children:[d.jsx(q,{}),d.jsx("span",{...ae(n,i)})]}):null,s[0]=n,s[1]=i,s[2]=o):o=s[2],o},Ce=e=>{const s=t.c(42),{item:n,onSelect:r}=e,{lvl0:i,lvl1:o,lvl2:a,lvl3:l,lvl4:c}=n.hierarchy,m=`rn-${n.objectID}`,u=n.url;let h,p,x,g,f,y,j,v,C,b,w,N;return s[0]===Symbol.for("react.memo_cache_sentinel")?(h=d.jsx(O,{className:"shrink-0"}),s[0]=h):h=s[0],s[1]!==n||s[2]!==c?(p=c&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"text-sm font-medium",...ae(n,"lvl4")}),d.jsxs("p",{className:"text-xs text-quaternary",children:[d.jsx("span",{...ae(n,"lvl0")}),d.jsx(ve,{item:n,levelKey:"lvl1"}),d.jsx(ve,{item:n,levelKey:"lvl2"}),d.jsx(ve,{item:n,levelKey:"lvl3"})]})]}),s[1]=n,s[2]=c,s[3]=p):p=s[3],s[4]!==n||s[5]!==l||s[6]!==c?(x=!c&&l&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"text-sm font-medium",...ae(n,"lvl3")}),d.jsxs("p",{className:"text-xs text-quaternary",children:[d.jsx("span",{...ae(n,"lvl0")}),d.jsx(ve,{item:n,levelKey:"lvl1"}),d.jsx(ve,{item:n,levelKey:"lvl2"})]})]}),s[4]=n,s[5]=l,s[6]=c,s[7]=x):x=s[7],s[8]!==n||s[9]!==a||s[10]!==l?(g=!l&&a&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"text-sm font-medium",...ae(n,"lvl2")}),d.jsxs("p",{className:"text-xs text-quaternary",children:[d.jsx("span",{...ae(n,"lvl0")}),d.jsx(ve,{item:n,levelKey:"lvl1"})]})]}),s[8]=n,s[9]=a,s[10]=l,s[11]=g):g=s[11],s[12]!==n||s[13]!==o||s[14]!==a||s[15]!==l?(f=!l&&!a&&o&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"text-sm font-medium",...ae(n,"lvl1")}),d.jsx("p",{className:"text-xs text-quaternary",...ae(n,"lvl0")})]}),s[12]=n,s[13]=o,s[14]=a,s[15]=l,s[16]=f):f=s[16],s[17]!==n||s[18]!==i||s[19]!==o||s[20]!==a||s[21]!==l?(y=!l&&!a&&!o&&i&&d.jsx("p",{className:"text-sm font-medium",...ae(n,"lvl0")}),s[17]=n,s[18]=i,s[19]=o,s[20]=a,s[21]=l,s[22]=y):y=s[22],s[23]!==n?(j=ce(n,!0),s[23]=n,s[24]=j):j=s[24],s[25]!==j?(v=d.jsx("p",{className:"text-xs text-secondary",...j}),s[25]=j,s[26]=v):v=s[26],s[27]!==v||s[28]!==p||s[29]!==x||s[30]!==g||s[31]!==f||s[32]!==y?(C=d.jsxs("div",{children:[p,x,g,f,y,v]}),s[27]=v,s[28]=p,s[29]=x,s[30]=g,s[31]=f,s[32]=y,s[33]=C):C=s[33],s[34]===Symbol.for("react.memo_cache_sentinel")?(b=d.jsx(M,{}),s[34]=b):b=s[34],s[35]!==C?(w=d.jsxs("div",{className:"inline-flex gap-3 items-center",children:[h,C,b]}),s[35]=C,s[36]=w):w=s[36],s[37]!==n.url||s[38]!==r||s[39]!==m||s[40]!==w?(N=d.jsx(ge,{value:m,url:u,isExternalLink:!0,onSelect:r,children:w}),s[37]=n.url,s[38]=r,s[39]=m,s[40]=w,s[41]=N):N=s[41],N},be=e=>{const s=t.c(24),{url:r,className:i,isNested:o}=e;if(o){let e,t;return s[0]!==i?(e=n.mergeClasses("icon-sm text-icon-quaternary",i),s[0]=i,s[1]=e):e=s[1],s[2]!==e?(t=d.jsx(I.Hash02Icon,{className:e}),s[2]=e,s[3]=t):t=s[3],t}if((e=>me.some((t=>e.includes(t))))(r)){let e,t;return s[4]!==i?(e=n.mergeClasses("text-icon-secondary",i),s[4]=i,s[5]=e):e=s[5],s[6]!==e?(t=d.jsx(n.DocsLogo,{className:e}),s[6]=e,s[7]=t):t=s[7],t}if((e=>de.some((t=>e.includes(t))))(r)){let e,t;return s[8]!==i?(e=n.mergeClasses("text-icon-secondary",i),s[8]=i,s[9]=e):e=s[9],s[10]!==e?(t=d.jsx(w.PlanEnterpriseIcon,{className:e}),s[10]=e,s[11]=t):t=s[11],t}if((e=>ue.some((t=>e.includes(t))))(r)){let e,t;return s[12]!==i?(e=n.mergeClasses("text-icon-secondary",i),s[12]=i,s[13]=e):e=s[13],s[14]!==e?(t=d.jsx(k.Home02Icon,{className:e}),s[14]=e,s[15]=t):t=s[15],t}if((e=>he.some((t=>e.includes(t))))(r)){let e,t;return s[16]!==i?(e=n.mergeClasses("text-icon-secondary",i),s[16]=i,s[17]=e):e=s[17],s[18]!==e?(t=d.jsx(S.GraduationHat02Icon,{className:e}),s[18]=e,s[19]=t):t=s[19],t}let a,l;return s[20]!==i?(a=n.mergeClasses("text-icon-secondary",i),s[20]=i,s[21]=a):a=s[21],s[22]!==a?(l=d.jsx(N.BookOpen02Icon,{className:a}),s[22]=a,s[23]=l):l=s[23],l},we=e=>{const s=t.c(75),{item:r,onSelect:i,isNested:o,transformUrl:a}=e,{lvl0:l,lvl2:c,lvl3:m,lvl4:u,lvl6:h}=r.hierarchy,p=o?"text-xs":"text-sm font-medium";let x;s[0]!==p?(x=n.mergeClasses(p),s[0]=p,s[1]=x):x=s[1];const g=x,f=o&&"hidden";let y;s[2]!==f?(y=n.mergeClasses("text-xs text-quaternary",f),s[2]=f,s[3]=y):y=s[3];const j=y,v=o&&"ml-8 !min-h-[32px]";let C;s[4]!==v?(C=n.mergeClasses(v),s[4]=v,s[5]=C):C=s[5];const b=`expodocs-${r.objectID}`;let w;s[6]!==r.url||s[7]!==a?(w=a?a(r.url):r.url,s[6]=r.url,s[7]=a,s[8]=w):w=s[8];const N=!a;let S,I,k,_,$,A,E,q,O,L,H,P;return s[9]!==o||s[10]!==r.url?(S=d.jsx(be,{url:r.url,isNested:o,className:"shrink-0"}),s[9]=o,s[10]=r.url,s[11]=S):S=s[11],s[12]!==o||s[13]!==r||s[14]!==h||s[15]!==g?(I=h&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:g,...ae(r,"lvl6")}),!o&&d.jsxs("p",{className:"text-xs text-quaternary",children:[d.jsx("span",{...ae(r,"lvl0")}),d.jsx(ve,{item:r,levelKey:"lvl2"}),d.jsx(ve,{item:r,levelKey:"lvl3"}),d.jsx(ve,{item:r,levelKey:"lvl4"})]})]}),s[12]=o,s[13]=r,s[14]=h,s[15]=g,s[16]=I):I=s[16],s[17]!==j||s[18]!==o||s[19]!==r||s[20]!==u||s[21]!==h||s[22]!==g?(k=!h&&u&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:g,...ae(r,"lvl4")}),!o&&d.jsxs("p",{className:j,children:[d.jsx("span",{...ae(r,"lvl0")}),d.jsx(ve,{item:r,levelKey:"lvl2"}),d.jsx(ve,{item:r,levelKey:"lvl3"})]})]}),s[17]=j,s[18]=o,s[19]=r,s[20]=u,s[21]=h,s[22]=g,s[23]=k):k=s[23],s[24]!==j||s[25]!==o||s[26]!==r||s[27]!==m||s[28]!==u||s[29]!==h||s[30]!==g?(_=!h&&!u&&m&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:g,...ae(r,"lvl3")}),!o&&d.jsxs("p",{className:j,children:[d.jsx("span",{...ae(r,"lvl0")}),d.jsx(ve,{item:r,levelKey:"lvl2"})]})]}),s[24]=j,s[25]=o,s[26]=r,s[27]=m,s[28]=u,s[29]=h,s[30]=g,s[31]=_):_=s[31],s[32]!==j||s[33]!==o||s[34]!==r||s[35]!==c||s[36]!==m||s[37]!==u||s[38]!==h||s[39]!==g?($=!h&&!u&&!m&&c&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:g,...ae(r,"lvl2")}),!o&&d.jsx("p",{className:j,children:d.jsx("span",{...ae(r,"lvl0")})})]}),s[32]=j,s[33]=o,s[34]=r,s[35]=c,s[36]=m,s[37]=u,s[38]=h,s[39]=g,s[40]=$):$=s[40],s[41]!==r||s[42]!==l||s[43]!==c||s[44]!==m||s[45]!==u||s[46]!==h||s[47]!==g?(A=!h&&!u&&!m&&!c&&l&&d.jsx(d.Fragment,{children:d.jsx("p",{className:g,...ae(r,"lvl0")})}),s[41]=r,s[42]=l,s[43]=c,s[44]=m,s[45]=u,s[46]=h,s[47]=g,s[48]=A):A=s[48],s[49]!==o||s[50]!==r?(E=(!o||r.content)&&d.jsx("p",{className:n.mergeClasses("text-secondary","text-xs"),...ce(r)}),s[49]=o,s[50]=r,s[51]=E):E=s[51],s[52]!==I||s[53]!==k||s[54]!==_||s[55]!==$||s[56]!==A||s[57]!==E?(q=d.jsxs("div",{children:[I,k,_,$,A,E]}),s[52]=I,s[53]=k,s[54]=_,s[55]=$,s[56]=A,s[57]=E,s[58]=q):q=s[58],s[59]!==S||s[60]!==q?(O=d.jsxs("div",{className:"inline-flex items-center gap-3 break-words",children:[S,q]}),s[59]=S,s[60]=q,s[61]=O):O=s[61],s[62]!==a?(L=!a&&d.jsx(M,{}),s[62]=a,s[63]=L):L=s[63],s[64]!==O||s[65]!==L?(H=d.jsxs("div",{className:"flex gap-3 justify-between",children:[O,L]}),s[64]=O,s[65]=L,s[66]=H):H=s[66],s[67]!==o||s[68]!==i||s[69]!==H||s[70]!==C||s[71]!==b||s[72]!==w||s[73]!==N?(P=d.jsx(ge,{className:C,value:b,onSelect:i,url:w,isNested:o,isExternalLink:N,children:H}),s[67]=o,s[68]=i,s[69]=H,s[70]=C,s[71]=b,s[72]=w,s[73]=N,s[74]=P):P=s[74],P},Ne=e=>{const s=t.c(27),{item:n,onSelect:r,query:i}=e,o=`expo-blog-${n.slug.current}`,a=`https://expo.dev/blog/${n.slug.current}`;let l;var c;let m,u,h,p,x,g,f,y,j;return s[0]!==n.mainImage.image.asset._ref?(c=n.mainImage.image.asset._ref,l=J.image(c).auto("format").height(150).url(),s[0]=n.mainImage.image.asset._ref,s[1]=l):l=s[1],s[2]!==n.mainImage.altText||s[3]!==l?(m=d.jsx("img",{src:l,alt:n.mainImage.altText,className:"size-11 object-cover rounded-md my-0.5"}),s[2]=n.mainImage.altText,s[3]=l,s[4]=m):m=s[4],s[5]!==n.title||s[6]!==i?(u=xe(n.title,i),s[5]=n.title,s[6]=i,s[7]=u):u=s[7],s[8]!==u?(h=d.jsx("p",{className:"text-sm font-medium",dangerouslySetInnerHTML:{__html:u}}),s[8]=u,s[9]=h):h=s[9],s[10]!==n.metadataDescription||s[11]!==i?(p=xe(n.metadataDescription,i),s[10]=n.metadataDescription,s[11]=i,s[12]=p):p=s[12],s[13]!==p?(x=d.jsx("p",{className:"text-xs text-quaternary",dangerouslySetInnerHTML:{__html:p}}),s[13]=p,s[14]=x):x=s[14],s[15]!==h||s[16]!==x?(g=d.jsxs("div",{children:[h,x]}),s[15]=h,s[16]=x,s[17]=g):g=s[17],s[18]===Symbol.for("react.memo_cache_sentinel")?(f=d.jsx(M,{}),s[18]=f):f=s[18],s[19]!==m||s[20]!==g?(y=d.jsxs("div",{className:"inline-flex gap-3 items-center",children:[m,g,f]}),s[19]=m,s[20]=g,s[21]=y):y=s[21],s[22]!==r||s[23]!==o||s[24]!==y||s[25]!==a?(j=d.jsx(ge,{value:o,url:a,isExternalLink:!0,onSelect:r,children:y}),s[22]=r,s[23]=o,s[24]=y,s[25]=a,s[26]=j):j=s[26],j};function Se(e){const s=t.c(5),{className:r}=e;let i,o,a;return s[0]!==r?(i=n.mergeClasses("dots-loader inline-flex",r),s[0]=r,s[1]=i):i=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(o=Array.from({length:3}).map(Ie),s[2]=o):o=s[2],s[3]!==i?(a=d.jsx("span",{className:i,children:o}),s[3]=i,s[4]=a):a=s[4],a}function Ie(e,t){return d.jsx("span",{className:"opacity-0",style:{animationDelay:.2*t+"s"},children:"."},t)}let ke=null,_e=null;function $e(){return _e||(_e=(async()=>{const{Prism:e}=await import("prism-react-renderer");ke=e;const t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0;t&&(t.Prism=e),await Promise.all([import("prismjs/components/prism-json"),import("prismjs/components/prism-yaml"),import("prismjs/components/prism-diff"),import("prismjs/components/prism-typescript"),import("prismjs/components/prism-tsx"),import("prismjs/components/prism-jsx"),import("prismjs/components/prism-bash"),import("prismjs/components/prism-kotlin"),import("prismjs/components/prism-swift"),import("prismjs/components/prism-markdown")])})()),_e}const Ae={sh:"bash"};function Ee(e){return{value:e}}function qe(e,t){if(!e||"object"!=typeof e)return null;if(m.isValidElement(e))return e.props;if(m.isValidElement(e)){const t=e.props.children;if(!Array.isArray(t))return qe(t);for(const e of m.Children.toArray(t)){const t=qe(e);if(t)return t}}return null}function Me(e){return"string"==typeof e?e:Array.isArray(e)?e.map(Me).join(""):function(e){return m.isValidElement(e)}(e)?Me(e.props.children):""}function Oe(e,t){if("string"==typeof e)return{...Ee(e),language:t?t.split("-")[1]:"jsx"};const s=qe(e);return{...Ee(Me(s?.children)),language:"string"==typeof s?.className?s.className.split("-")[1]:"jsx"}}function Le({children:e,className:t}){const{value:s,language:r}=m.useMemo((()=>Oe(e,t)),[e,t]),[i,o]=m.useState(!1);m.useEffect((()=>{let e=!0;return $e().then((()=>{e&&o(!0)})),()=>{e=!1}}),[]);const a=m.useMemo((()=>"string"==typeof t&&t.length>0?t:m.isValidElement(e)&&"string"==typeof e.props.className?e.props.className:void 0),[e,t]),l=m.useMemo((()=>a??(r?`language-${r}`:void 0)),[a,r]),c=m.useMemo((()=>s?function(e,t){if(!ke)return e;let s=t?.split("-").at(-1)?.toLowerCase();if(!s)return e;s in Ae&&(s=Ae[s]);const n=ke.languages[s];return n?ke.highlight(e,n,s):e}(s,l):""),[s,l,i]),u=m.useMemo((()=>s??""),[s]),[h,p]=m.useState(!1);m.useEffect((()=>{if(!h)return;const e=setTimeout((()=>p(!1)),2e3);return()=>clearTimeout(e)}),[h]);return s?d.jsxs("div",{className:"relative my-3",children:[d.jsx("pre",{className:n.mergeClasses("relative overflow-x-auto rounded-md border border-default bg-subtle px-4 py-3 text-xs text-default shadow-xs","font-mono leading-[1.6]","dark:bg-element"),children:d.jsx("code",{className:n.mergeClasses("block min-w-fit whitespace-pre",a),dangerouslySetInnerHTML:{__html:c}})}),d.jsx(n.Button,{type:"button",theme:"quaternary",size:"xs",className:"absolute right-3 top-3 inline-flex size-7 items-center justify-center rounded-full border! border-default! bg-default! p-0! shadow-xs",onClick:()=>{u&&(navigator.clipboard?.writeText(u).catch((()=>{})),p(!0))},"aria-label":"Copy code block",children:h?d.jsx(b.CheckIcon,{className:"icon-xs text-success","aria-hidden":!0}):d.jsx(x.ClipboardIcon,{className:"icon-xs text-icon-secondary","aria-hidden":!0})})]}):d.jsx("pre",{className:n.mergeClasses("relative my-3 overflow-x-auto rounded-md border border-default bg-subtle px-4 py-3 text-xs text-default shadow-xs","font-mono leading-[1.6]"),children:e})}const He=/(\s*```[\s\S]*?```)/g,Pe=new Set(["a","an","the","this","that","these","those","your","see","refer","check","use","try","visit","read","review","consult"]);function Te(e){const t=e.split(He);let s=t.map(((e,s)=>{if(e.trimStart().startsWith("```"))return e;const n=function(e){return e.replace(/(`[^`]*`)|(https?:\/\/[^\s)>\]]+)|(\w)_(\w)/g,((e,t,s,n,r)=>t||s?e:`${n}\\_${r}`))}(e.replace(/\[([^\]]+)\]\(([^)]+)\);/g,"[$1]($2) |").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"[$1]($2)").replace(/(\]\([^)]+\));/g,"$1 |").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"Source: [$1]($2)").replace(/([^.!?|,\s`])\s*Source:/g,((e,t,s,n)=>{const r=n.slice(0,s+1).replace(/[^A-Za-z]+$/i," ").trimEnd().match(/([A-Za-z]+)$/),i=r?.[1]?.toLowerCase();return i&&Pe.has(i)?`${t} Source:`:`${t}. Source:`})).replace(/(^|\n)\s*\.\s*Source:/g,"$1Source:").replace(/Source:\s*Source:/g,"Source:").replace(/\|\s*\./g,"|").replace(/\.\s*\|\s*/g," | ").replace(/\[([^\]]*)\](?!\()/g,"$1").replace(/Source: \[\[/g,"Source: [").replace(/(\]\([^)]+\))\]/g,"$1").replace(/\]\]/g,"]").replace(/\](\s*\||\s*$)/g,"$1").replace(/^\s*•\s*/gm,"- ").replace(/^(\s*)(\d+)\)\s*/gm,"$1$2. "));const r=t[s+1];return r&&r.trimStart().startsWith("```")&&/:\s*$/.test(n)?n.replace(/:\s*$/,":\n"):n})).join("");if(/\b(no information|do not contain information|cannot find|no relevant information|no info|not enough information|knowledge sources[^.]*do not)\b/i.test(s)){s+="\n\nIf you have questions about Expo or related technologies, feel free to ask.\nIf this topic should be covered in the Expo docs, please request it by opening an issue: [Open an issue](https://github.com/expo/expo/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen)."}return s}function ze(e){const s=t.c(47),{conversation:r,isGeneratingAnswer:i,isPreparingAnswer:o,addFeedback:a,resetConversation:l,resetInput:c,error:u,retryQuery:h}=e,[p,b]=m.useState(!1),[w,N]=m.useState(void 0),S=o||i;let I,k,_,$,A,q,M,O,L,H,P,T,z,R,U;return s[0]!==r||s[1]!==u||s[2]!==S||s[3]!==o||s[4]!==h?(k=r?.getLatest(),s[15]!==S?(H=d.jsx(E,{isLoading:S}),s[15]=S,s[16]=H):H=s[16],$="result-container flex flex-col gap-3 !pt-3 w-full",A=k?.isGenerationAborted&&d.jsxs("div",{className:"text-sm bg-info text-info border border-info px-3 py-2.5 rounded-md",children:["The generation has been aborted. Press Enter ",d.jsx("kbd",{className:"mx-0.5",children:"↵"})," to send a new question."]}),s[17]!==u||s[18]!==S||s[19]!==h?(q=u&&!S&&d.jsxs("div",{className:"flex flex-col items-center gap-3 py-6",children:[d.jsx("span",{className:"text-sm text-secondary",children:"Something went wrong. The service may be temporarily unavailable."}),d.jsx(n.Button,{skipCapitalization:!0,theme:"secondary",size:"xs",leftSlot:d.jsx(g.RefreshCcw02Icon,{}),onClick:()=>h?.(),children:"Try again"})]}),s[17]=u,s[18]=S,s[19]=h,s[20]=q):q=s[20],M=!S&&!k?.question&&d.jsx("div",{className:n.mergeClasses("flex flex-wrap text-sm size-full items-center justify-center text-quaternary","max-md-gutters:text-center max-md-gutters:px-5"),children:d.jsxs("span",{children:["Ask the question above and then press Enter ",d.jsx("kbd",{className:"mx-0.5",children:"↵"})," to send it."]})}),O=k?.question&&d.jsxs("div",{className:"font-semibold mt-1 leading-relaxed",children:['You asked: "',k?.question??"",'"']}),s[21]!==o?(L=o&&d.jsxs("div",{className:"flex text-sm size-full items-center justify-center text-quaternary",children:["Preparing answer",d.jsx(Se,{})]}),s[21]=o,s[22]=L):L=s[22],I=C.Markdown,_=k?.answer?Te(k.answer):"",s[0]=r,s[1]=u,s[2]=S,s[3]=o,s[4]=h,s[5]=I,s[6]=k,s[7]=_,s[8]=$,s[9]=A,s[10]=q,s[11]=M,s[12]=O,s[13]=L,s[14]=H):(I=s[5],k=s[6],_=s[7],$=s[8],A=s[9],q=s[10],M=s[11],O=s[12],L=s[13],H=s[14]),s[23]===Symbol.for("react.memo_cache_sentinel")?(P={overrides:{a:{component:n.Link,props:{target:"_blank",rel:"noopener noreferrer",className:"text-link underline-offset-2 hocus:underline"}},pre:{component:Le},code:{component:Fe},p:{component:De},ol:{component:Ve},ul:{component:Ue},li:{component:Re}}},s[23]=P):P=s[23],s[24]!==I||s[25]!==_?(T=d.jsx(I,{children:_,options:P,className:"prompt-result text-sm"}),s[24]=I,s[25]=_,s[26]=T):T=s[26],s[27]!==a||s[28]!==p||s[29]!==w||s[30]!==S||s[31]!==k||s[32]!==l||s[33]!==c?(z=!S&&k?.id&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:n.mergeClasses("inline-flex items-center w-full gap-2 mt-1","max-md-gutters:flex-col"),children:[d.jsx(n.Button,{skipCapitalization:!0,theme:"secondary",size:"xs",leftSlot:d.jsx(x.ClipboardIcon,{}),disabled:p,onClick:()=>{k?.answer&&(navigator.clipboard?.writeText(k.answer),b(!0),setTimeout((()=>b(!1)),1500))},children:"Copy answer"}),d.jsx(n.Button,{skipCapitalization:!0,theme:"secondary",size:"xs",leftSlot:d.jsx(g.RefreshCcw02Icon,{}),className:"mr-auto max-md-gutters:mx-auto",onClick:()=>{l?.(),c?.()},children:"Reset conversation"}),d.jsxs("div",{className:n.mergeClasses("contents items-center w-full gap-x-2 gap-y-3","max-md-gutters:justify-center max-md-gutters:inline-flex"),children:[d.jsx("p",{className:"text-tertiary text-xs",children:"Rate answer:"}),d.jsx(n.Button,{theme:"secondary",size:"xs",className:"shrink-0",disabled:w,leftSlot:!0===w?d.jsx(v.ThumbsUpSolidIcon,{className:"text-icon-success"}):d.jsx(y.ThumbsUpIcon,{className:"text-icon-success"}),onClick:()=>{a?.(k.id,"upvote"),N(!0)}}),d.jsx(n.Button,{theme:"secondary",size:"xs",className:"shrink-0",disabled:w,leftSlot:!1===w?d.jsx(j.ThumbsDownSolidIcon,{className:"text-icon-danger"}):d.jsx(f.ThumbsDownIcon,{className:"text-icon-danger"}),onClick:()=>{a?.(k.id,"downvote"),N(!1)}})]})]}),d.jsx("p",{className:n.mergeClasses("text-quaternary text-xs my-1 mx-auto","max-md-gutters:mt-0.5"),children:"Expo AI assistant is an experimental feature."})]}),s[27]=a,s[28]=p,s[29]=w,s[30]=S,s[31]=k,s[32]=l,s[33]=c,s[34]=z):z=s[34],s[35]!==T||s[36]!==z||s[37]!==$||s[38]!==A||s[39]!==q||s[40]!==M||s[41]!==O||s[42]!==L?(R=d.jsxs("div",{className:$,children:[A,q,M,O,L,T,z]}),s[35]=T,s[36]=z,s[37]=$,s[38]=A,s[39]=q,s[40]=M,s[41]=O,s[42]=L,s[43]=R):R=s[43],s[44]!==R||s[45]!==H?(U=d.jsxs(d.Fragment,{children:[H,R]}),s[44]=R,s[45]=H,s[46]=U):U=s[46],U}function Re(e){const{className:t,style:s,...r}=e;return d.jsx("li",{...r,style:{...s??{},fontSize:"14px",lineHeight:"1.45"},className:n.mergeClasses("text-[10px] leading-[1.45] text-secondary",t)})}function Ue(e){const{className:t,style:s,...r}=e;return d.jsx("ul",{...r,style:{...s??{},fontSize:"14px",lineHeight:"1.55"},className:n.mergeClasses("mb-2 list-disc pl-4 text-[10px] leading-normal text-secondary",t)})}function Ve(e){const{className:t,style:s,...r}=e;return d.jsx("ol",{...r,style:{...s??{},fontSize:"14px",lineHeight:"1.55"},className:n.mergeClasses("mb-2 list-decimal pl-4 text-[10px] leading-normal text-secondary",t)})}function De(e){const{className:t,style:s,...r}=e;return d.jsx("p",{...r,style:{...s??{},fontSize:"14px",lineHeight:"1.55"},className:n.mergeClasses("mb-2 text-[10px] leading-[1.55] text-secondary",t)})}function Fe(e){const{className:t,...s}=e;return d.jsx("code",{...s,className:n.mergeClasses("inline-block rounded-md border border-default bg-subtle px-1 py-0.5 text-xs font-medium leading-tight text-default",t)})}function Be(e){const s=t.c(8),{label:r,isActive:i,onClick:o}=e,a=i&&"mode-tab",l=i&&"bg-linear-to-b from-palette-gray11 to-palette-black text-palette-white",c=i&&"dark:from-palette-gray12 dark:to-palette-white dark:text-palette-black";let m,u;return s[0]!==a||s[1]!==l||s[2]!==c?(m=n.mergeClasses("flex items-center text-sm px-2.5 rounded-md h-full cursor-pointer transition text-tertiary whitespace-nowrap select-none min-h-8","hocus:bg-hover dark:hocus:bg-element","active:scale-[0.975]!","max-md-gutters:w-1/2 max-md-gutters:justify-center",a,l,c),s[0]=a,s[1]=l,s[2]=c,s[3]=m):m=s[3],s[4]!==r||s[5]!==o||s[6]!==m?(u=d.jsx("div",{onClick:o,className:m,children:r}),s[4]=r,s[5]=o,s[6]=m,s[7]=u):u=s[7],u}const Ke=e=>"string"==typeof e?e.toLowerCase():"",Ge=({config:{docsVersion:t,docsTransformUrl:u,docsSectionContext:h,docsGroupByMainSection:p=!0,docsContextBoost:x=!1},open:g,setOpen:f,customSections:y=[]})=>{const[j,v]=m.useState(!1),[C,b]=m.useState(!0),[w,N]=m.useState(""),[S,I]=m.useState(null),[k,_]=m.useState(!1),[$,A]=m.useState(null),[q,M]=m.useState(""),O=m.useRef(null),L=m.useCallback((e=>f(e)),[f]),{conversation:H,submitQuery:T,isGeneratingAnswer:z,isPreparingAnswer:R,addFeedback:U,stopGeneration:V,resetConversation:D,error:F}=s.useChat(),B=m.useCallback((e=>{A(null),M(e);const t=e=>{e.preventDefault(),A("Failed to reach the AI service."),b(!1)};window.addEventListener("unhandledrejection",t);try{T(e)}catch{A("Failed to reach the AI service."),b(!1)}setTimeout((()=>{window.removeEventListener("unhandledrejection",t)}),5e3)}),[T]),K=F||$,[G,Z]=m.useState([]),[Q,W]=m.useState([]),[X,Y]=m.useState([]),[J,te]=m.useState([]),se=async()=>ee(w,(e=>ne(e,t,{sectionContext:h})),Z),ae=async()=>(async(e,t,s)=>{s(await t(e))})(w,ie,W),le=async()=>ee(w,re,Y),ce=async()=>ee(w,oe,te),me=()=>L(!1),de=H.getLatest(),ue=e=>{Promise.all([se(),ae(),le(),ce(),...y?.map((e=>e.getItemsAsync(w)))]).then(e)},he=m.useEffectEvent((()=>{if(g&&!k){b(!0);const e=setTimeout((()=>{ue((()=>b(!1)))}),500);return()=>clearTimeout(e)}})),xe=m.useEffectEvent((()=>{g&&!j&&ue((()=>{v(!0),b(!1)}))})),fe=m.useEffectEvent((e=>{if("Tab"===e.key&&(e.preventDefault(),_((e=>!e)),O?.current?.focus()),k&&"Enter"===e.key&&(e.preventDefault(),w.length>0)){if(R||z)return void V();if(de?.question===w&&!de?.isGenerationAborted)return;D(),b(!0),B(w),N("")}}));m.useEffect((()=>{I("undefined"!=typeof navigator&&pe())}),[]),m.useEffect((()=>{R||z||b(!1)}),[R,z]),m.useEffect((()=>{K&&b(!1)}),[K]),m.useEffect((()=>{k||he()}),[k]),m.useEffect((()=>{if(null!==S){const e=e=>{"k"===e.key&&(S?e.metaKey:e.ctrlKey)&&(e.preventDefault(),L((e=>!e)))};return document.addEventListener("keydown",e,!1),()=>document.removeEventListener("keydown",e)}}),[S,L]),m.useEffect((()=>{if(xe(),g)return document.addEventListener("keydown",fe,!1),()=>document.removeEventListener("keydown",fe);document.removeEventListener("keydown",fe)}),[g,k,de,w]),m.useEffect((()=>{he()}),[w]);const ye=e=>{let t=0;const s=Ke(h?.section),n=Ke(h?.group),r=Ke(h?.mainSection),i=Ke(e.mainSection),o=Ke(e.section),a=Ke(e.group),l=e.url.toLowerCase(),c=Ke(e.hierarchy.lvl0);if(x&&s){const e=s.replace(/\s+/g,"/"),n=l.includes(`/${e}/`),r=c.includes(s);(n||r)&&(t+=5)}return r&&i===r&&(t+=3),s&&o.includes(s)&&(t+=2),n&&a.includes(n)&&(t+=1),t+=e._rankingInfo?.filters??0,t},ve=[...G].sort(((e,t)=>{const s=ye(t)-ye(e);return s||(t._rankingInfo?.userScore??0)-(e._rankingInfo?.userScore??0)})).map((e=>({...e,baseUrl:e.url.replace(/#.+/,""),mainSection:"EAS"===e.mainSection?"Expo Application Services":e.mainSection||"Expo documentation"}))),be=p?c(ve,"mainSection"):{"Expo documentation":ve},Se=h?.mainSection,Ie=Object.keys(be).sort(((e,t)=>{if(Se){if(e===Se)return-1;if(t===Se)return 1}return e.localeCompare(t)})),ke=new Map;ve.forEach(((e,t)=>{const s=ke.get(e.baseUrl);(void 0===s||t<s)&&ke.set(e.baseUrl,t)}));const _e=[w.length>10&&0===G.length&&d.jsx(e.Command.Group,{heading:"Ask AI",children:d.jsx(ge,{value:"expo-ai-prompt",onSelect:()=>{_(!0)},children:d.jsxs("div",{className:"inline-flex gap-3 items-center",children:[d.jsx(o.Stars02Icon,{className:"text-icon-secondary"}),d.jsxs("div",{className:"flex flex-col",children:[d.jsx("p",{className:"text-sm font-medium leading-snug",children:"Ask Expo's AI assistant"}),d.jsx("p",{className:"text-xs text-tertiary leading-snug",children:"Experimental feature"})]})]})})},"expo-ai-prompt"),...G.length>0?Ie.map((t=>{const s=c(be[t],"baseUrl"),n=Object.entries(s).map((([e,t])=>{const s=Math.max(...t.map((e=>e._rankingInfo?.filters??0)),0);return{baseUrl:e,values:t,filtersScore:s,orderIndex:ke.get(e)??Number.MAX_SAFE_INTEGER}})).sort(((e,t)=>e.filtersScore!==t.filtersScore?t.filtersScore-e.filtersScore:e.orderIndex-t.orderIndex));return d.jsx(e.Command.Group,{heading:p?t:"Expo documentation",children:n.map((({values:e})=>e.sort(((e,t)=>e.url.localeCompare(e.baseUrl)-t.url.localeCompare(t.baseUrl))).slice(0,6).map(((e,t)=>d.jsx(we,{isNested:0!==t,item:e,onSelect:me,transformUrl:u},`hit-expo-docs-${e.objectID}`)))))},`expo-docs-group-${t}`)})):[],Q.length>0&&d.jsx(e.Command.Group,{heading:"Expo blog",children:Q.map((e=>d.jsx(Ne,{item:e,onSelect:me,query:w},`hit-expo-blog-${e.slug.current}`)))},"expo-blog-group"),X.length>0&&d.jsx(e.Command.Group,{heading:"React Native documentation",children:X.map((e=>d.jsx(Ce,{item:e,onSelect:me},`hit-rn-docs-${e.objectID}`)))},"rn-docs-group"),J.length>0&&d.jsx(e.Command.Group,{heading:"React Native directory",children:J.map((e=>d.jsx(je,{item:e,onSelect:me,query:w},`hit-rn-dir-${e.npmPkg}`)))},"rn-directory-group")];y?.forEach((({items:t,heading:s,sectionIndex:n})=>t.length>0&&_e.splice(n,0,d.jsx(e.Command.Group,{heading:s,children:t},`${n}-${s}`))));const $e=k?r.MessageQuestionCircleIcon:i.SearchSmIcon;return d.jsxs(e.Command.Dialog,{open:g,onOpenChange:L,label:"Search Menu",shouldFilter:!1,children:[d.jsx(l.DialogTitle,{className:"sr-only",children:"Search Menu"}),d.jsx(l.DialogDescription,{className:"sr-only",children:"Search documentation or ask AI"}),d.jsxs("div",{className:n.mergeClasses("relative flex px-4 gap-x-3 border-b border-secondary","max-md-gutters:flex-col"),children:[d.jsxs("div",{className:"flex relative w-full overflow-hidden",children:[d.jsx($e,{className:"text-icon-tertiary absolute top-[29px] left-[13px] transition-opacity duration-200"}),d.jsx("div",{className:n.mergeClasses("absolute top-[25px] right-[9px] z-[101] cursor-pointer p-1 rounded-xs","hocus:bg-element","active:scale-[0.975]"),children:d.jsx(a.XIcon,{className:"text-icon-tertiary",onClick:()=>w?N(""):L(!1)})}),d.jsx(e.Command.Input,{value:w,onValueChange:N,placeholder:k?"Ask AI…":"Search…",autoFocus:!0,ref:O})]}),d.jsxs("div",{className:n.mergeClasses("tabs-container relative flex mt-4 mb-3 px-1.5 py-1.5 gap-1 items-center rounded-lg border border-palette-gray5 bg-subtle","dark:bg-screen dark:border-palette-gray4","max-md-gutters:mt-0",k&&"tabs-container-ai"),children:[d.jsx(Be,{label:"Search",isActive:!k,onClick:()=>{_(!1),O?.current?.focus()}}),d.jsx(Be,{label:"Ask AI",isActive:k,onClick:()=>{_(!0),w.length>0&&(H.getLatest()||(b(!0),B(w),N(""))),O?.current?.focus()}})]})]}),d.jsx(E,{isLoading:C}),d.jsxs("div",{className:"relative",children:[d.jsx("div",{className:n.mergeClasses("pointer-events-none absolute left-0 -top-px z-10 h-6 w-[calc(100%-8px)]","bg-linear-to-b from-default to-transparent opacity-90")}),k?d.jsx(ze,{conversation:H,isGeneratingAnswer:z,isPreparingAnswer:R,addFeedback:U,resetConversation:D,resetInput:()=>N(""),error:K,retryQuery:()=>{q&&(D(),b(!0),B(q))}}):d.jsxs(e.Command.List,{children:[j&&_e,0===_e.filter(Boolean).length&&d.jsx(e.Command.Empty,{children:d.jsx("p",{className:"text-secondary text-sm",children:"No results found."})},"no-results-group")]}),d.jsx("div",{className:n.mergeClasses("pointer-events-none absolute left-0 -bottom-px z-10 h-6 w-[calc(100%-8px)]","bg-linear-to-t from-default to-transparent opacity-90")})]}),d.jsx(P,{isPromptMode:k})]})},Ze=e.Command.Item;exports.CommandItemBase=Ze,exports.CommandItemBaseWithCopy=ge,exports.CommandMenu=e=>{const n=t.c(3);let r,i;return n[0]===Symbol.for("react.memo_cache_sentinel")?(r={},n[0]=r):r=n[0],n[1]!==e?(i=d.jsx(s.KapaProvider,{userTrackingMode:"none",integrationId:"bf5bd579-bb83-4591-8cc9-d87b6cdcb712",callbacks:r,children:d.jsx(Ge,{...e})}),n[1]=e,n[2]=i):i=n[2],i},exports.CommandMenuTrigger=e=>{const s=t.c(14),{setOpen:r,className:o}=e,[a,l]=m.useState(null);let c,u,h,p,x,g,f,y;return s[0]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{l("undefined"!=typeof navigator&&pe())},u=[],s[0]=c,s[1]=u):(c=s[0],u=s[1]),m.useEffect(c,u),s[2]===Symbol.for("react.memo_cache_sentinel")?(h=d.jsx(i.SearchSmIcon,{className:"icon-md text-icon-secondary"}),s[2]=h):h=s[2],s[3]!==a?(p=null!==a?d.jsxs("div",{className:"ml-auto max-md-gutters:hidden",children:[d.jsx("kbd",{className:"h-5! leading-[19px]!",children:a?"⌘":"Ctrl"})," ",d.jsx("kbd",{className:"h-5! leading-[19px]!",children:"K"})]}):void 0,s[3]=a,s[4]=p):p=s[4],s[5]!==o?(x=n.mergeClasses("cmdk-trigger bg-default pl-2.5 pr-3 border border-default shadow-xs min-h-[40px]",o),s[5]=o,s[6]=x):x=s[6],s[7]!==r?(g=()=>r(!0),s[7]=r,s[8]=g):g=s[8],s[9]===Symbol.for("react.memo_cache_sentinel")?(f=d.jsx("p",{className:"text-secondary font-normal leading-normal text-sm",children:"Search or Ask AI"}),s[9]=f):f=s[9],s[10]!==p||s[11]!==x||s[12]!==g?(y=d.jsx(n.Button,{theme:"secondary",leftSlot:h,rightSlot:p,className:x,onClick:g,children:f}),s[10]=p,s[11]=x,s[12]=g,s[13]=y):y=s[13],y},exports.addHighlight=xe;
package/dist/trigger.js CHANGED
@@ -1 +1 @@
1
- import{c as t}from"react/compiler-runtime";import{mergeClasses as e,Button as i}from"@expo/styleguide";import{SearchSmIcon as r}from"@expo/styleguide-icons/outline/SearchSmIcon";import{useState as o,useEffect as n}from"react";import{createClient as s}from"@sanity/client";import{jsx as a,jsxs as h}from"react/jsx-runtime";const p="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function l(t){return`image-${t.split("/").slice(-1)[0]}`.replace(/\.([a-z]+)$/,"-$1")}const c=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]];function d(t){let e={...t||{}};const i=e.source;delete e.source;const r=function(t){if(!t)return null;let e;if("string"==typeof t&&/^https?:\/\//.test(`${t}`))e={asset:{_ref:l(t)}};else if("string"==typeof t)e={asset:{_ref:t}};else if((i=t)&&"string"==typeof i._ref)e={asset:t};else if((t=>!!t&&"string"==typeof t._id)(t))e={asset:{_ref:t._id||""}};else if((t=>{const e=t;return!(!e||!e.asset)&&"string"==typeof e.asset.url})(t))e={asset:{_ref:l(t.asset.url)}};else{if("object"!=typeof t.asset)return null;e={...t}}var i;const r=t;return r.crop&&(e.crop=r.crop),r.hotspot&&(e.hotspot=r.hotspot),function(t){if(t.crop&&t.hotspot)return t;const e={...t};return e.crop||(e.crop={left:0,top:0,bottom:0,right:0}),e.hotspot||(e.hotspot={x:.5,y:.5,height:1,width:1}),e}(e)}(i);if(!r){if(i&&(t=>{if("object"==typeof t&&null!==t){const e=t;return e._upload&&(!e.asset||!e.asset._ref)}return!1})(i))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw new Error(`Unable to resolve image URL from source (${JSON.stringify(i)})`)}const o=function(t){const[,e,i,r]=t.split("-");if(!e||!i||!r)throw new Error(`Malformed asset _ref '${t}'. Expected an id like "${p}".`);const[o,n]=i.split("x"),s=+o,a=+n;if(!isFinite(s)||!isFinite(a))throw new Error(`Malformed asset _ref '${t}'. Expected an id like "${p}".`);return{id:e,width:s,height:a,format:r}}(r.asset._ref||r.asset._id||""),n=Math.round(r.crop.left*o.width),s=Math.round(r.crop.top*o.height),a={left:n,top:s,width:Math.round(o.width-r.crop.right*o.width-n),height:Math.round(o.height-r.crop.bottom*o.height-s)},h=r.hotspot.height*o.height/2,d=r.hotspot.width*o.width/2,u=r.hotspot.x*o.width,m=r.hotspot.y*o.height,w={left:u-d,top:m-h,right:u+d,bottom:m+h};return e.rect||e.focalPoint||e.ignoreImageParams||e.crop||(e={...e,...f({crop:a,hotspot:w},e)}),function(t){const e=(t.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),i=t.vanityName?`/${t.vanityName}`:"",r=`${t.asset.id}-${t.asset.width}x${t.asset.height}.${t.asset.format}${i}`,o=t.mediaLibraryId?`${e}/media-libraries/${t.mediaLibraryId}/images/${r}`:`${e}/images/${t.projectId}/${t.dataset}/${r}`,n=[];if(t.rect){const{left:e,top:i,width:r,height:o}=t.rect;(0!==e||0!==i||o!==t.asset.height||r!==t.asset.width)&&n.push(`rect=${e},${i},${r},${o}`)}t.bg&&n.push(`bg=${t.bg}`),t.focalPoint&&(n.push(`fp-x=${t.focalPoint.x}`),n.push(`fp-y=${t.focalPoint.y}`));const s=[t.flipHorizontal&&"h",t.flipVertical&&"v"].filter(Boolean).join("");return s&&n.push(`flip=${s}`),c.forEach((e=>{const[i,r]=e;typeof t[i]<"u"?n.push(`${r}=${encodeURIComponent(t[i])}`):typeof t[r]<"u"&&n.push(`${r}=${encodeURIComponent(t[r])}`)})),0===n.length?o:`${o}?${n.join("&")}`}({...e,asset:o})}function f(t,e){let i;const r=e.width,o=e.height;if(!r||!o)return{width:r,height:o,rect:t.crop};const n=t.crop,s=t.hotspot,a=r/o;if(n.width/n.height>a){const t=Math.round(n.height),e=Math.round(t*a),r=Math.max(0,Math.round(n.top)),o=Math.round((s.right-s.left)/2+s.left);let h=Math.max(0,Math.round(o-e/2));h<n.left?h=n.left:h+e>n.left+n.width&&(h=n.left+n.width-e),i={left:h,top:r,width:e,height:t}}else{const t=n.width,e=Math.round(t/a),r=Math.max(0,Math.round(n.left)),o=Math.round((s.bottom-s.top)/2+s.top);let h=Math.max(0,Math.round(o-e/2));h<n.top?h=n.top:h+e>n.top+n.height&&(h=n.top+n.height-e),i={left:r,top:h,width:t,height:e}}return{width:r,height:o,rect:i}}const u=["clip","crop","fill","fillmax","max","scale","min"],m=["top","bottom","left","right","center","focalpoint","entropy"],w=["format"];function g(t){const{apiHost:e,projectId:i,dataset:r}=t,o={baseUrl:(e||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn.")},n=t["~experimental_resource"];if("media-library"===n?.type){if("string"!=typeof n.id||0===n.id.length)throw new Error('Media library clients must include an id in "~experimental_resource"');return{...o,mediaLibraryId:n.id}}return{...o,projectId:i,dataset:r}}function y(t){const e=c;for(const i of e){const[e,r]=i;if(t===e||t===r)return e}return t}function b(t){let e={};return e=(i=t)&&"config"in i&&"function"==typeof i.config?g(t.config()):function(t){return!(!t||!("clientConfig"in t))&&"object"==typeof t.clientConfig}(t)?g(t.clientConfig):t||{},e;var i}class x{constructor(t,e){this.options=t?{...t.options||{},...e||{}}:{...e||{}}}withOptions(t){const e=function(t,e){const i=e.baseUrl||t.baseUrl,r={baseUrl:i};for(const t in e)e.hasOwnProperty(t)&&(r[y(t)]=e[t]);return{baseUrl:i,...r}}(this.options,t);return new x(this,e)}image(t){return this.withOptions({source:t})}dataset(t){return this.withOptions({dataset:t})}projectId(t){return this.withOptions({projectId:t})}withClient(t){const e=b(t),i={...this.options};return delete i.baseUrl,delete i.projectId,delete i.dataset,delete i.mediaLibraryId,new x(null,{...e,...i})}bg(t){return this.withOptions({bg:t})}dpr(t){return this.withOptions(t&&1!==t?{dpr:t}:{})}width(t){return this.withOptions({width:t})}height(t){return this.withOptions({height:t})}focalPoint(t,e){return this.withOptions({focalPoint:{x:t,y:e}})}maxWidth(t){return this.withOptions({maxWidth:t})}minWidth(t){return this.withOptions({minWidth:t})}maxHeight(t){return this.withOptions({maxHeight:t})}minHeight(t){return this.withOptions({minHeight:t})}size(t,e){return this.withOptions({width:t,height:e})}blur(t){return this.withOptions({blur:t})}sharpen(t){return this.withOptions({sharpen:t})}rect(t,e,i,r){return this.withOptions({rect:{left:t,top:e,width:i,height:r}})}format(t){return this.withOptions({format:t})}invert(t){return this.withOptions({invert:t})}orientation(t){return this.withOptions({orientation:t})}quality(t){return this.withOptions({quality:t})}forceDownload(t){return this.withOptions({download:t})}flipHorizontal(){return this.withOptions({flipHorizontal:!0})}flipVertical(){return this.withOptions({flipVertical:!0})}ignoreImageParams(){return this.withOptions({ignoreImageParams:!0})}fit(t){if(-1===u.indexOf(t))throw new Error(`Invalid fit mode "${t}"`);return this.withOptions({fit:t})}crop(t){if(-1===m.indexOf(t))throw new Error(`Invalid crop mode "${t}"`);return this.withOptions({crop:t})}saturation(t){return this.withOptions({saturation:t})}auto(t){if(-1===w.indexOf(t))throw new Error(`Invalid auto mode "${t}"`);return this.withOptions({auto:t})}pad(t){return this.withOptions({pad:t})}vanityName(t){return this.withOptions({vanityName:t})}frame(t){if(1!==t)throw new Error(`Invalid frame value "${t}"`);return this.withOptions({frame:t})}url(){return d(this.options)}toString(){return this.url()}}const $="9r24npb8",O="production";s({projectId:$,dataset:O,useCdn:!0,apiVersion:"v2025-02-19"}),new x(null,b({projectId:$,dataset:O}));const A=s=>{const p=t(14),{setOpen:l,className:c}=s,[d,f]=o(null);let u,m,w,g,y,b,x,$;return p[0]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{f("undefined"!=typeof navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator?.platform??navigator?.userAgentData?.platform??""))},m=[],p[0]=u,p[1]=m):(u=p[0],m=p[1]),n(u,m),p[2]===Symbol.for("react.memo_cache_sentinel")?(w=a(r,{className:"icon-md text-icon-secondary"}),p[2]=w):w=p[2],p[3]!==d?(g=null!==d?h("div",{className:"ml-auto max-md-gutters:hidden",children:[a("kbd",{className:"h-5! leading-[19px]!",children:d?"⌘":"Ctrl"})," ",a("kbd",{className:"h-5! leading-[19px]!",children:"K"})]}):void 0,p[3]=d,p[4]=g):g=p[4],p[5]!==c?(y=e("cmdk-trigger bg-default pl-2.5 pr-3 border border-default shadow-xs min-h-[40px]",c),p[5]=c,p[6]=y):y=p[6],p[7]!==l?(b=()=>l(!0),p[7]=l,p[8]=b):b=p[8],p[9]===Symbol.for("react.memo_cache_sentinel")?(x=a("p",{className:"text-secondary font-normal leading-normal text-sm",children:"Search or Ask AI"}),p[9]=x):x=p[9],p[10]!==g||p[11]!==y||p[12]!==b?($=a(i,{theme:"secondary",leftSlot:w,rightSlot:g,className:y,onClick:b,children:x}),p[10]=g,p[11]=y,p[12]=b,p[13]=$):$=p[13],$};export{A as CommandMenuTrigger};
1
+ "use strict";var t=require("react/compiler-runtime"),e=require("@expo/styleguide"),i=require("@expo/styleguide-icons/outline/SearchSmIcon"),r=require("react"),o=require("@sanity/client"),n=require("react/jsx-runtime");const s="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function a(t){return`image-${t.split("/").slice(-1)[0]}`.replace(/\.([a-z]+)$/,"-$1")}const h=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]];function p(t){let e={...t||{}};const i=e.source;delete e.source;const r=function(t){if(!t)return null;let e;if("string"==typeof t&&/^https?:\/\//.test(`${t}`))e={asset:{_ref:a(t)}};else if("string"==typeof t)e={asset:{_ref:t}};else if((i=t)&&"string"==typeof i._ref)e={asset:t};else if((t=>!!t&&"string"==typeof t._id)(t))e={asset:{_ref:t._id||""}};else if((t=>{const e=t;return!(!e||!e.asset)&&"string"==typeof e.asset.url})(t))e={asset:{_ref:a(t.asset.url)}};else{if("object"!=typeof t.asset)return null;e={...t}}var i;const r=t;return r.crop&&(e.crop=r.crop),r.hotspot&&(e.hotspot=r.hotspot),function(t){if(t.crop&&t.hotspot)return t;const e={...t};return e.crop||(e.crop={left:0,top:0,bottom:0,right:0}),e.hotspot||(e.hotspot={x:.5,y:.5,height:1,width:1}),e}(e)}(i);if(!r){if(i&&(t=>{if("object"==typeof t&&null!==t){const e=t;return e._upload&&(!e.asset||!e.asset._ref)}return!1})(i))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw new Error(`Unable to resolve image URL from source (${JSON.stringify(i)})`)}const o=function(t){const[,e,i,r]=t.split("-");if(!e||!i||!r)throw new Error(`Malformed asset _ref '${t}'. Expected an id like "${s}".`);const[o,n]=i.split("x"),a=+o,h=+n;if(!isFinite(a)||!isFinite(h))throw new Error(`Malformed asset _ref '${t}'. Expected an id like "${s}".`);return{id:e,width:a,height:h,format:r}}(r.asset._ref||r.asset._id||""),n=Math.round(r.crop.left*o.width),p=Math.round(r.crop.top*o.height),c={left:n,top:p,width:Math.round(o.width-r.crop.right*o.width-n),height:Math.round(o.height-r.crop.bottom*o.height-p)},d=r.hotspot.height*o.height/2,u=r.hotspot.width*o.width/2,f=r.hotspot.x*o.width,m=r.hotspot.y*o.height,g={left:f-u,top:m-d,right:f+u,bottom:m+d};return e.rect||e.focalPoint||e.ignoreImageParams||e.crop||(e={...e,...l({crop:c,hotspot:g},e)}),function(t){const e=(t.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),i=t.vanityName?`/${t.vanityName}`:"",r=`${t.asset.id}-${t.asset.width}x${t.asset.height}.${t.asset.format}${i}`,o=t.mediaLibraryId?`${e}/media-libraries/${t.mediaLibraryId}/images/${r}`:`${e}/images/${t.projectId}/${t.dataset}/${r}`,n=[];if(t.rect){const{left:e,top:i,width:r,height:o}=t.rect;(0!==e||0!==i||o!==t.asset.height||r!==t.asset.width)&&n.push(`rect=${e},${i},${r},${o}`)}t.bg&&n.push(`bg=${t.bg}`),t.focalPoint&&(n.push(`fp-x=${t.focalPoint.x}`),n.push(`fp-y=${t.focalPoint.y}`));const s=[t.flipHorizontal&&"h",t.flipVertical&&"v"].filter(Boolean).join("");return s&&n.push(`flip=${s}`),h.forEach((e=>{const[i,r]=e;typeof t[i]<"u"?n.push(`${r}=${encodeURIComponent(t[i])}`):typeof t[r]<"u"&&n.push(`${r}=${encodeURIComponent(t[r])}`)})),0===n.length?o:`${o}?${n.join("&")}`}({...e,asset:o})}function l(t,e){let i;const r=e.width,o=e.height;if(!r||!o)return{width:r,height:o,rect:t.crop};const n=t.crop,s=t.hotspot,a=r/o;if(n.width/n.height>a){const t=Math.round(n.height),e=Math.round(t*a),r=Math.max(0,Math.round(n.top)),o=Math.round((s.right-s.left)/2+s.left);let h=Math.max(0,Math.round(o-e/2));h<n.left?h=n.left:h+e>n.left+n.width&&(h=n.left+n.width-e),i={left:h,top:r,width:e,height:t}}else{const t=n.width,e=Math.round(t/a),r=Math.max(0,Math.round(n.left)),o=Math.round((s.bottom-s.top)/2+s.top);let h=Math.max(0,Math.round(o-e/2));h<n.top?h=n.top:h+e>n.top+n.height&&(h=n.top+n.height-e),i={left:r,top:h,width:t,height:e}}return{width:r,height:o,rect:i}}const c=["clip","crop","fill","fillmax","max","scale","min"],d=["top","bottom","left","right","center","focalpoint","entropy"],u=["format"];function f(t){const{apiHost:e,projectId:i,dataset:r}=t,o={baseUrl:(e||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn.")},n=t["~experimental_resource"];if("media-library"===n?.type){if("string"!=typeof n.id||0===n.id.length)throw new Error('Media library clients must include an id in "~experimental_resource"');return{...o,mediaLibraryId:n.id}}return{...o,projectId:i,dataset:r}}function m(t){const e=h;for(const i of e){const[e,r]=i;if(t===e||t===r)return e}return t}function g(t){let e={};return e=function(t){return!(!t||!("config"in t))&&"function"==typeof t.config}(t)?f(t.config()):function(t){return!(!t||!("clientConfig"in t))&&"object"==typeof t.clientConfig}(t)?f(t.clientConfig):t||{},e}class w{constructor(t,e){this.options=t?{...t.options||{},...e||{}}:{...e||{}}}withOptions(t){const e=function(t,e){const i=e.baseUrl||t.baseUrl,r={baseUrl:i};for(const t in e)e.hasOwnProperty(t)&&(r[m(t)]=e[t]);return{baseUrl:i,...r}}(this.options,t);return new w(this,e)}image(t){return this.withOptions({source:t})}dataset(t){return this.withOptions({dataset:t})}projectId(t){return this.withOptions({projectId:t})}withClient(t){const e=g(t),i={...this.options};return delete i.baseUrl,delete i.projectId,delete i.dataset,delete i.mediaLibraryId,new w(null,{...e,...i})}bg(t){return this.withOptions({bg:t})}dpr(t){return this.withOptions(t&&1!==t?{dpr:t}:{})}width(t){return this.withOptions({width:t})}height(t){return this.withOptions({height:t})}focalPoint(t,e){return this.withOptions({focalPoint:{x:t,y:e}})}maxWidth(t){return this.withOptions({maxWidth:t})}minWidth(t){return this.withOptions({minWidth:t})}maxHeight(t){return this.withOptions({maxHeight:t})}minHeight(t){return this.withOptions({minHeight:t})}size(t,e){return this.withOptions({width:t,height:e})}blur(t){return this.withOptions({blur:t})}sharpen(t){return this.withOptions({sharpen:t})}rect(t,e,i,r){return this.withOptions({rect:{left:t,top:e,width:i,height:r}})}format(t){return this.withOptions({format:t})}invert(t){return this.withOptions({invert:t})}orientation(t){return this.withOptions({orientation:t})}quality(t){return this.withOptions({quality:t})}forceDownload(t){return this.withOptions({download:t})}flipHorizontal(){return this.withOptions({flipHorizontal:!0})}flipVertical(){return this.withOptions({flipVertical:!0})}ignoreImageParams(){return this.withOptions({ignoreImageParams:!0})}fit(t){if(-1===c.indexOf(t))throw new Error(`Invalid fit mode "${t}"`);return this.withOptions({fit:t})}crop(t){if(-1===d.indexOf(t))throw new Error(`Invalid crop mode "${t}"`);return this.withOptions({crop:t})}saturation(t){return this.withOptions({saturation:t})}auto(t){if(-1===u.indexOf(t))throw new Error(`Invalid auto mode "${t}"`);return this.withOptions({auto:t})}pad(t){return this.withOptions({pad:t})}vanityName(t){return this.withOptions({vanityName:t})}frame(t){if(1!==t)throw new Error(`Invalid frame value "${t}"`);return this.withOptions({frame:t})}url(){return p(this.options)}toString(){return this.url()}}const x="9r24npb8",y="production";o.createClient({projectId:x,dataset:y,useCdn:!0,apiVersion:"v2025-02-19"}),new w(null,g({projectId:x,dataset:y}));exports.CommandMenuTrigger=o=>{const s=t.c(14),{setOpen:a,className:h}=o,[p,l]=r.useState(null);let c,d,u,f,m,g,w,x;return s[0]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{l("undefined"!=typeof navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator?.platform??navigator?.userAgentData?.platform??""))},d=[],s[0]=c,s[1]=d):(c=s[0],d=s[1]),r.useEffect(c,d),s[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(i.SearchSmIcon,{className:"icon-md text-icon-secondary"}),s[2]=u):u=s[2],s[3]!==p?(f=null!==p?n.jsxs("div",{className:"ml-auto max-md-gutters:hidden",children:[n.jsx("kbd",{className:"h-5! leading-[19px]!",children:p?"⌘":"Ctrl"})," ",n.jsx("kbd",{className:"h-5! leading-[19px]!",children:"K"})]}):void 0,s[3]=p,s[4]=f):f=s[4],s[5]!==h?(m=e.mergeClasses("cmdk-trigger bg-default pl-2.5 pr-3 border border-default shadow-xs min-h-[40px]",h),s[5]=h,s[6]=m):m=s[6],s[7]!==a?(g=()=>a(!0),s[7]=a,s[8]=g):g=s[8],s[9]===Symbol.for("react.memo_cache_sentinel")?(w=n.jsx("p",{className:"text-secondary font-normal leading-normal text-sm",children:"Search or Ask AI"}),s[9]=w):w=s[9],s[10]!==f||s[11]!==m||s[12]!==g?(x=n.jsx(e.Button,{theme:"secondary",leftSlot:u,rightSlot:f,className:m,onClick:g,children:w}),s[10]=f,s[11]=m,s[12]=g,s[13]=x):x=s[13],x};
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@expo/styleguide-search-ui",
3
- "version": "8.0.0",
3
+ "version": "8.0.2",
4
4
  "description": "Expo's common search component for use on the web.",
5
- "type": "module",
6
5
  "sideEffects": false,
7
6
  "main": "dist/index.js",
8
7
  "module": "dist/index.js",
@@ -44,7 +43,7 @@
44
43
  },
45
44
  "dependencies": {
46
45
  "@expo/styleguide": "^13.0.3",
47
- "@expo/styleguide-icons": "^4.0.3",
46
+ "@expo/styleguide-icons": "^4.0.4",
48
47
  "@kapaai/react-sdk": "^0.9.4",
49
48
  "@sanity/client": "^7.20.0",
50
49
  "@sanity/image-url": "^2.0.3",
@@ -71,5 +70,5 @@
71
70
  "eslintConfig": {
72
71
  "extends": "universe/web"
73
72
  },
74
- "gitHead": "c2a7fe8cdcba55617c299d460c29235b2a5dbf24"
73
+ "gitHead": "71dd44a6d26ca7d9cbb97c9f26898dadfe1786fc"
75
74
  }