@expo/styleguide-search-ui 3.3.1 → 3.3.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1 +1 @@
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("lodash.groupby"),c=require("react"),m=require("use-effect-event"),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/custom/GithubIcon"),g=require("@expo/styleguide-icons/outline/Download01Icon"),f=require("@expo/styleguide-icons/outline/Star01Icon"),y=require("@expo/styleguide-icons/custom/PlanEnterpriseIcon"),j=require("@expo/styleguide-icons/outline/BookOpen02Icon"),v=require("@expo/styleguide-icons/outline/GraduationHat02Icon"),b=require("@expo/styleguide-icons/outline/Hash02Icon"),C=require("@expo/styleguide-icons/outline/Home02Icon"),w=require("@expo/styleguide-icons/outline/ClipboardIcon"),N=require("@expo/styleguide-icons/outline/RefreshCcw02Icon"),S=require("@expo/styleguide-icons/outline/ThumbsDownIcon"),I=require("@expo/styleguide-icons/outline/ThumbsUpIcon"),_=require("@expo/styleguide-icons/solid/ThumbsDownSolidIcon"),k=require("@expo/styleguide-icons/solid/ThumbsUpSolidIcon"),$=require("markdown-to-jsx"),A=require("@expo/styleguide-icons/outline/CheckIcon"),q=require("prism-react-renderer");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 M(){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 O=()=>{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},H=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},P=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 R(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-3xs 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-3xs 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-3xs 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-3xs 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-3xs 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(P,{className:"hocus:opacity-80"})})]}):d.jsxs("p",{className:"text-3xs 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 z="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function T(e){return`image-${e.split("/").slice(-1)[0]}`.replace(/\.([a-z]+)$/,"-$1")}const U=[["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 V(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:T(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:T(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 "${z}".`);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 "${z}".`);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,...D({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}`),U.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 D(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 F=["clip","crop","fill","fillmax","max","scale","min"],B=["top","bottom","left","right","center","focalpoint","entropy"],G=["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 Z(e){const t=U;for(const s of t){const[t,n]=s;if(e===t||e===n)return t}return e}function W(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[Z(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=W(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===F.indexOf(e))throw new Error(`Invalid fit mode "${e}"`);return this.withOptions({fit:e})}crop(e){if(-1===B.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===G.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 V(this.options)}toString(){return this.url()}}const X="9r24npb8",Y="production",J=p.createClient({projectId:X,dataset:Y,useCdn:!0,apiVersion:"v2025-02-19"}),ee=new Q(null,W({projectId:X,dataset:Y}));const te=async(e,t,s,n)=>{const{hits:r,libraries:i}=await t(e,n).then((e=>e.json()));s(r||i||[])},se=(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})}],ne=e=>`"${e.replace(/"/g,'\\"')}"`,re=(e,t,s)=>{const n=(r=s?.sectionContext,r?[r.group?`group:${ne(r.group)}`:null,r.section?`section:${ne(r.section)}`:null,r.mainSection?`mainSection:${ne(r.mainSection)}`:null].filter(Boolean):[]);var r;return fetch(...se(e,"QEX7PB7D46","6652d26570e8628af4601e1d78ad456b","expo",20,{facetFilters:[["version:none",`version:${t}`]],...n.length&&{optionalFilters:n,sumOrFiltersScores:!0,ruleContexts:s?.ruleContexts},attributesToRetrieve:["*","mainSection","section","group","weight"]}))},ie=e=>fetch(...se(e,"8TDSE0OHGQ","c9c791d9d5fd7f315d7f3859b32c1f3b","react-native-v2",5,{facetFilters:[["version:current"]]})),oe=e=>J.fetch(`*[_type == "post" && publishAt < now() && (title match "${e}*" || metadataDescription match "${e}*")] | order(publishAt desc)[0...10] {\n title,\n slug,\n tags,\n metadataDescription,\n mainImage\n }`),ae=e=>fetch(`https://reactnative.directory/api/libraries?search=${encodeURI(e)}&limit=5`),le=(e,t)=>({dangerouslySetInnerHTML:{__html:e._highlightResult.hierarchy[`${t}`]?.value||""}}),ce=(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?"…":""}`},me=(e,t=!1)=>t?{}:{dangerouslySetInnerHTML:{__html:e._highlightResult.content?.value?ce(e._highlightResult.content?.value):ce(e._highlightResult.hierarchy.lvl1?.value||"",82)}},de=["/versions/","/more/"],ue=["/app-signing/","/build/","/build-reference/","/development/","/eas/","/eas/metadata/","/eas-update/","/submit/","/distribution/","/custom-builds/","/hosting/","/billing/","/accounts/"],he=["/get-started/","/develop/","/deploy/","/faq/","/config-plugins/","/debugging/","/config-plugins/","/review/","/monitoring/"],pe=["/tutorial","/additional-resources/"],xe=()=>/(Mac|iPhone|iPod|iPad)/i.test(navigator?.platform??navigator?.userAgentData?.platform??""),ge=(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)},fe=s=>{const r=t.c(21),{children:i,url:o,isExternalLink:a,isNested:l,onSelect:m,className:u,value:h}=s,[p,x]=c.useState(!1),[g,f]=c.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 b=!!l||void 0;let C,w,N,S,I;return r[3]===Symbol.for("react.memo_cache_sentinel")?(C=e=>{(e.metaKey||e.ctrlKey)&&f(!0)},r[3]=C):C=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]!==m||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):m&&m()},r[6]=a,r[7]=g,r[8]=m,r[9]=o,r[10]=N):N=r[10],r[11]!==p?(S=p&&d.jsx("div",{className:"text-2xs 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]!==b||r[16]!==w||r[17]!==N||r[18]!==S||r[19]!==h?(I=d.jsxs(e.Command.Item,{className:v,value:h,"data-nested":b,onMouseDown:C,onMouseUp:w,onSelect:N,onContextMenu:ye,children:[i,S]}),r[13]=i,r[14]=v,r[15]=b,r[16]=w,r[17]=N,r[18]=S,r[19]=h,r[20]=I):I=r[20],I};function ye(e){e.preventDefault()}const je=new Intl.NumberFormat,ve=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,y,j,v,b,C;return s[0]===Symbol.for("react.memo_cache_sentinel")?(l=d.jsx(x.GithubIcon,{className:"text-icon-secondary"}),s[0]=l):l=s[0],s[1]!==n.npmPkg||s[2]!==i?(c=ge(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-xs 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(f.Star01Icon,{className:"icon-2xs text-icon-quaternary"}),s[6]=u):u=s[6],s[7]!==n.github.stats.stars?(h=je.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(g.Download01Icon,{className:"icon-2xs text-icon-quaternary"}),je.format(n.npm.downloads)," downloads"]}):void 0,s[9]=n.npm.downloads,s[10]=p):p=s[10],s[11]!==h||s[12]!==p?(y=d.jsxs("p",{className:"flex items-center gap-1 text-3xs text-quaternary",children:[u,h," stars",p]}),s[11]=h,s[12]=p,s[13]=y):y=s[13],s[14]!==m||s[15]!==y?(j=d.jsxs("div",{children:[m,y]}),s[14]=m,s[15]=y,s[16]=j):j=s[16],s[17]===Symbol.for("react.memo_cache_sentinel")?(v=d.jsx(O,{}),s[17]=v):v=s[17],s[18]!==j?(b=d.jsxs("div",{className:"inline-flex gap-3 items-center",children:[l,j,v]}),s[18]=j,s[19]=b):b=s[19],s[20]!==n.githubUrl||s[21]!==r||s[22]!==o||s[23]!==b?(C=d.jsx(fe,{value:o,url:a,isExternalLink:!0,onSelect:r,children:b}),s[20]=n.githubUrl,s[21]=r,s[22]=o,s[23]=b,s[24]=C):C=s[24],C},be=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(M,{}),d.jsx("span",{...le(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,b,C,w,N;return s[0]===Symbol.for("react.memo_cache_sentinel")?(h=d.jsx(H,{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-xs font-medium",...le(n,"lvl4")}),d.jsxs("p",{className:"text-3xs text-quaternary",children:[d.jsx("span",{...le(n,"lvl0")}),d.jsx(be,{item:n,levelKey:"lvl1"}),d.jsx(be,{item:n,levelKey:"lvl2"}),d.jsx(be,{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-xs font-medium",...le(n,"lvl3")}),d.jsxs("p",{className:"text-3xs text-quaternary",children:[d.jsx("span",{...le(n,"lvl0")}),d.jsx(be,{item:n,levelKey:"lvl1"}),d.jsx(be,{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-xs font-medium",...le(n,"lvl2")}),d.jsxs("p",{className:"text-3xs text-quaternary",children:[d.jsx("span",{...le(n,"lvl0")}),d.jsx(be,{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-xs font-medium",...le(n,"lvl1")}),d.jsx("p",{className:"text-3xs text-quaternary",...le(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-xs font-medium",...le(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=me(n,!0),s[23]=n,s[24]=j):j=s[24],s[25]!==j?(v=d.jsx("p",{className:"text-2xs 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?(b=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]=b):b=s[33],s[34]===Symbol.for("react.memo_cache_sentinel")?(C=d.jsx(O,{}),s[34]=C):C=s[34],s[35]!==b?(w=d.jsxs("div",{className:"inline-flex gap-3 items-center",children:[h,b,C]}),s[35]=b,s[36]=w):w=s[36],s[37]!==n.url||s[38]!==r||s[39]!==m||s[40]!==w?(N=d.jsx(fe,{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},we=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(b.Hash02Icon,{className:e}),s[2]=e,s[3]=t):t=s[3],t}if((e=>de.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=>ue.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(y.PlanEnterpriseIcon,{className:e}),s[10]=e,s[11]=t):t=s[11],t}if((e=>he.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(C.Home02Icon,{className:e}),s[14]=e,s[15]=t):t=s[15],t}if((e=>pe.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(v.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(j.BookOpen02Icon,{className:a}),s[22]=a,s[23]=l):l=s[23],l},Ne=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-2xs":"text-xs 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-3xs text-quaternary",f),s[2]=f,s[3]=y):y=s[3];const j=y,v=o&&"ml-8 !min-h-[32px]";let b;s[4]!==v?(b=n.mergeClasses(v),s[4]=v,s[5]=b):b=s[5];const C=`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,q,E,M,H,L,P;return s[9]!==o||s[10]!==r.url?(S=d.jsx(we,{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,...le(r,"lvl6")}),!o&&d.jsxs("p",{className:"text-3xs text-quaternary",children:[d.jsx("span",{...le(r,"lvl0")}),d.jsx(be,{item:r,levelKey:"lvl2"}),d.jsx(be,{item:r,levelKey:"lvl3"}),d.jsx(be,{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?(_=!h&&u&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:g,...le(r,"lvl4")}),!o&&d.jsxs("p",{className:j,children:[d.jsx("span",{...le(r,"lvl0")}),d.jsx(be,{item:r,levelKey:"lvl2"}),d.jsx(be,{item:r,levelKey:"lvl3"})]})]}),s[17]=j,s[18]=o,s[19]=r,s[20]=u,s[21]=h,s[22]=g,s[23]=_):_=s[23],s[24]!==j||s[25]!==o||s[26]!==r||s[27]!==m||s[28]!==u||s[29]!==h||s[30]!==g?(k=!h&&!u&&m&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:g,...le(r,"lvl3")}),!o&&d.jsxs("p",{className:j,children:[d.jsx("span",{...le(r,"lvl0")}),d.jsx(be,{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]=k):k=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,...le(r,"lvl2")}),!o&&d.jsx("p",{className:j,children:d.jsx("span",{...le(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,...le(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?(q=(!o||r.content)&&d.jsx("p",{className:n.mergeClasses("text-secondary",o?"text-3xs":"text-2xs"),...me(r)}),s[49]=o,s[50]=r,s[51]=q):q=s[51],s[52]!==I||s[53]!==_||s[54]!==k||s[55]!==$||s[56]!==A||s[57]!==q?(E=d.jsxs("div",{children:[I,_,k,$,A,q]}),s[52]=I,s[53]=_,s[54]=k,s[55]=$,s[56]=A,s[57]=q,s[58]=E):E=s[58],s[59]!==S||s[60]!==E?(M=d.jsxs("div",{className:"inline-flex items-center gap-3 break-words",children:[S,E]}),s[59]=S,s[60]=E,s[61]=M):M=s[61],s[62]!==a?(H=!a&&d.jsx(O,{}),s[62]=a,s[63]=H):H=s[63],s[64]!==M||s[65]!==H?(L=d.jsxs("div",{className:"flex gap-3 justify-between",children:[M,H]}),s[64]=M,s[65]=H,s[66]=L):L=s[66],s[67]!==o||s[68]!==i||s[69]!==L||s[70]!==b||s[71]!==C||s[72]!==w||s[73]!==N?(P=d.jsx(fe,{className:b,value:C,onSelect:i,url:w,isNested:o,isExternalLink:N,children:L}),s[67]=o,s[68]=i,s[69]=L,s[70]=b,s[71]=C,s[72]=w,s[73]=N,s[74]=P):P=s[74],P},Se=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=ee.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=ge(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-xs font-medium",dangerouslySetInnerHTML:{__html:u}}),s[8]=u,s[9]=h):h=s[9],s[10]!==n.metadataDescription||s[11]!==i?(p=ge(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-3xs 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(O,{}),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(fe,{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 Ie(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(_e),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 _e(e,t){return d.jsx("span",{className:"opacity-0",style:{animationDelay:.2*t+"s"},children:"."},t)}const ke="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0;ke&&(ke.Prism=q.Prism);let $e=null;function Ae(){return $e||($e=(async()=>{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}Ae().catch((()=>{}));const qe={sh:"bash"};function Ee(e){return{value:e}}function Me(e,t){if(!e||"object"!=typeof e)return null;if(c.isValidElement(e))return e.props;if(c.isValidElement(e)){const t=e.props.children;if(!Array.isArray(t))return Me(t);for(const e of c.Children.toArray(t)){const t=Me(e);if(t)return t}}return null}function Oe(e){return"string"==typeof e?e:Array.isArray(e)?e.map(Oe).join(""):function(e){return c.isValidElement(e)}(e)?Oe(e.props.children):""}function He(e,t){if("string"==typeof e)return{...Ee(e),language:t?t.split("-")[1]:"jsx"};const s=Me(e);return{...Ee(Oe(s?.children)),language:"string"==typeof s?.className?s.className.split("-")[1]:"jsx"}}function Le({children:e,className:t}){const{value:s,language:r}=c.useMemo((()=>He(e,t)),[e,t]),[i,o]=c.useState(!1);c.useEffect((()=>{let e=!0;return Ae().then((()=>{e&&o(!0)})),()=>{e=!1}}),[]);const a=c.useMemo((()=>"string"==typeof t&&t.length>0?t:c.isValidElement(e)&&"string"==typeof e.props.className?e.props.className:void 0),[e,t]),l=c.useMemo((()=>a??(r?`language-${r}`:void 0)),[a,r]),m=c.useMemo((()=>s?function(e,t){Ae().catch((()=>{}));let s=t?.split("-").at(-1)?.toLowerCase();if(!s)return e;s in qe&&(s=qe[s]);const n=q.Prism.languages[s];return n?q.Prism.highlight(e,n,s):e}(s,l):""),[s,l,i]),u=c.useMemo((()=>s??""),[s]),[h,p]=c.useState(!1);c.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-2xs 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:m}})}),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-sm",onClick:()=>{u&&(navigator.clipboard?.writeText(u).catch((()=>{})),p(!0))},"aria-label":"Copy code block",children:h?d.jsx(A.CheckIcon,{className:"icon-xs text-success","aria-hidden":!0}):d.jsx(w.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-2xs text-default shadow-xs","font-mono leading-[1.6]"),children:e})}const Pe=/(\s*```[\s\S]*?```)/g,Re=new Set(["a","an","the","this","that","these","those","your","see","refer","check","use","try","visit","read","review","consult"]);function ze(e){const t=e.split(Pe);let s=t.map(((e,s)=>{if(e.trimStart().startsWith("```"))return e;const n=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&&Re.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 Te(e){const s=t.c(39),{conversation:r,isGeneratingAnswer:i,isPreparingAnswer:o,addFeedback:a,resetConversation:l,resetInput:m}=e,[u,h]=c.useState(!1),[p,x]=c.useState(void 0),g=o||i;let f,y,j,v,b,C,A,q,M,O,H,L,P,R;return s[0]!==r||s[1]!==g||s[2]!==o?(y=r?.getLatest(),s[12]!==g?(M=d.jsx(E,{isLoading:g}),s[12]=g,s[13]=M):M=s[13],v="result-container flex flex-col gap-3 !pt-3 w-full",b=y?.isGenerationAborted&&d.jsxs("div",{className:"text-xs 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."]}),C=!g&&!y?.question&&d.jsx("div",{className:n.mergeClasses("flex flex-wrap text-xs 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."]})}),A=y?.question&&d.jsxs("div",{className:"font-semibold mt-1 leading-relaxed",children:['You asked: "',y?.question??"",'"']}),s[14]!==o?(q=o&&d.jsxs("div",{className:"flex text-xs size-full items-center justify-center text-quaternary",children:["Preparing answer",d.jsx(Ie,{})]}),s[14]=o,s[15]=q):q=s[15],f=$,j=y?.answer?ze(y.answer):"",s[0]=r,s[1]=g,s[2]=o,s[3]=f,s[4]=y,s[5]=j,s[6]=v,s[7]=b,s[8]=C,s[9]=A,s[10]=q,s[11]=M):(f=s[3],y=s[4],j=s[5],v=s[6],b=s[7],C=s[8],A=s[9],q=s[10],M=s[11]),s[16]===Symbol.for("react.memo_cache_sentinel")?(O={overrides:{a:{component:n.Link,props:{target:"_blank",rel:"noopener noreferrer",className:"text-link underline-offset-2 hocus:underline"}},pre:{component:Le},code:{component:Be},p:{component:Fe},ol:{component:De},ul:{component:Ve},li:{component:Ue}}},s[16]=O):O=s[16],s[17]!==f||s[18]!==j?(H=d.jsx(f,{children:j,options:O,className:"prompt-result text-xs"}),s[17]=f,s[18]=j,s[19]=H):H=s[19],s[20]!==a||s[21]!==u||s[22]!==p||s[23]!==g||s[24]!==y||s[25]!==l||s[26]!==m?(L=!g&&y?.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(w.ClipboardIcon,{}),disabled:u,onClick:()=>{y?.answer&&(navigator.clipboard?.writeText(y.answer),h(!0),setTimeout((()=>h(!1)),1500))},children:"Copy answer"}),d.jsx(n.Button,{skipCapitalization:!0,theme:"secondary",size:"xs",leftSlot:d.jsx(N.RefreshCcw02Icon,{}),className:"mr-auto max-md-gutters:mx-auto",onClick:()=>{l?.(),m?.()},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-2xs",children:"Rate answer:"}),d.jsx(n.Button,{theme:"secondary",size:"xs",className:"shrink-0",disabled:p,leftSlot:!0===p?d.jsx(k.ThumbsUpSolidIcon,{className:"text-icon-success"}):d.jsx(I.ThumbsUpIcon,{className:"text-icon-success"}),onClick:()=>{a?.(y.id,"upvote"),x(!0)}}),d.jsx(n.Button,{theme:"secondary",size:"xs",className:"shrink-0",disabled:p,leftSlot:!1===p?d.jsx(_.ThumbsDownSolidIcon,{className:"text-icon-danger"}):d.jsx(S.ThumbsDownIcon,{className:"text-icon-danger"}),onClick:()=>{a?.(y.id,"downvote"),x(!1)}})]})]}),d.jsx("p",{className:n.mergeClasses("text-quaternary text-2xs my-1 mx-auto","max-md-gutters:mt-0.5"),children:"Expo AI assistant is an experimental feature."})]}),s[20]=a,s[21]=u,s[22]=p,s[23]=g,s[24]=y,s[25]=l,s[26]=m,s[27]=L):L=s[27],s[28]!==L||s[29]!==v||s[30]!==b||s[31]!==C||s[32]!==A||s[33]!==q||s[34]!==H?(P=d.jsxs("div",{className:v,children:[b,C,A,q,H,L]}),s[28]=L,s[29]=v,s[30]=b,s[31]=C,s[32]=A,s[33]=q,s[34]=H,s[35]=P):P=s[35],s[36]!==P||s[37]!==M?(R=d.jsxs(d.Fragment,{children:[M,P]}),s[36]=P,s[37]=M,s[38]=R):R=s[38],R}function Ue(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 Ve(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 De(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 Fe(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 Be(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-3xs font-medium leading-tight text-default",t)})}function Ge(e){const s=t.c(8),{label:r,isActive:i,onClick:o}=e,a=i&&"mode-tab",l=i&&"bg-gradient-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-xs 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():"",Ze=u=>{const h=t.c(151),{config:p,open:x,setOpen:g,customSections:f}=u,{docsVersion:y,docsTransformUrl:j,docsSectionContext:v,docsGroupByMainSection:b,docsContextBoost:C}=p,w=void 0===b||b,N=void 0!==C&&C,S=void 0===f?[]:f,[I,_]=c.useState(!1),[k,$]=c.useState(!0),[A,q]=c.useState(""),[M,O]=c.useState(null),[H,L]=c.useState(!1),P=c.useRef(null);let z;h[0]!==g?(z=e=>g(e),h[0]=g,h[1]=z):z=h[1];const T=z,{conversation:U,submitQuery:V,isGeneratingAnswer:D,isPreparingAnswer:F,addFeedback:B,stopGeneration:G,resetConversation:K}=s.useChat();let Z;h[2]===Symbol.for("react.memo_cache_sentinel")?(Z=[],h[2]=Z):Z=h[2];const[W,Q]=c.useState(Z);let X;h[3]===Symbol.for("react.memo_cache_sentinel")?(X=[],h[3]=X):X=h[3];const[Y,J]=c.useState(X);let ee;h[4]===Symbol.for("react.memo_cache_sentinel")?(ee=[],h[4]=ee):ee=h[4];const[se,ne]=c.useState(ee);let le;h[5]===Symbol.for("react.memo_cache_sentinel")?(le=[],h[5]=le):le=h[5];const[ce,me]=c.useState(le);let de;h[6]!==v||h[7]!==y||h[8]!==A?(de=async()=>te(A,(e=>re(e,y,{sectionContext:v})),Q),h[6]=v,h[7]=y,h[8]=A,h[9]=de):de=h[9];const ue=de;let he;h[10]!==A?(he=async()=>(async(e,t,s)=>{s(await t(e))})(A,oe,J),h[10]=A,h[11]=he):he=h[11];const pe=he;let ge;h[12]!==A?(ge=async()=>te(A,ie,ne),h[12]=A,h[13]=ge):ge=h[13];const ye=ge;let je;h[14]!==A?(je=async()=>te(A,ae,me),h[14]=A,h[15]=je):je=h[15];const be=je;let we;h[16]!==T?(we=()=>T(!1),h[16]=T,h[17]=we):we=h[17];const Ie=we;let _e;h[18]!==U?(_e=U.getLatest(),h[18]=U,h[19]=_e):_e=h[19];const ke=_e,$e=e=>{Promise.all([ue(),pe(),ye(),be(),...S?.map((e=>e.getItemsAsync(A)))]).then(e)};let Ae;h[20]!==$e||h[21]!==H||h[22]!==x||h[23]!==$?(Ae=()=>{if(x&&!H){$(!0);const e=setTimeout((()=>{$e((()=>$(!1)))}),500);return()=>clearTimeout(e)}},h[20]=$e,h[21]=H,h[22]=x,h[23]=$,h[24]=Ae):Ae=h[24];const qe=m.useEffectEvent(Ae);let Ee;h[25]!==$e||h[26]!==I||h[27]!==x||h[28]!==$?(Ee=()=>{x&&!I&&$e((()=>{_(!0),$(!1)}))},h[25]=$e,h[26]=I,h[27]=x,h[28]=$,h[29]=Ee):Ee=h[29];const Me=m.useEffectEvent(Ee);let Oe;h[30]!==D||h[31]!==F||h[32]!==H||h[33]!==ke?.isGenerationAborted||h[34]!==ke?.question||h[35]!==A||h[36]!==K||h[37]!==$||h[38]!==L||h[39]!==q||h[40]!==G||h[41]!==V?(Oe=e=>{if("Tab"===e.key&&(e.preventDefault(),L(We),P?.current?.focus()),H&&"Enter"===e.key&&(e.preventDefault(),A.length>0)){if(F||D)return void G();if(ke?.question===A&&!ke?.isGenerationAborted)return;K(),$(!0),V(A),q("")}},h[30]=D,h[31]=F,h[32]=H,h[33]=ke?.isGenerationAborted,h[34]=ke?.question,h[35]=A,h[36]=K,h[37]=$,h[38]=L,h[39]=q,h[40]=G,h[41]=V,h[42]=Oe):Oe=h[42];const He=m.useEffectEvent(Oe);let Le,Pe,Re,ze,Ue,Ve,De,Fe,Be,Ze,tt,st,nt;h[43]===Symbol.for("react.memo_cache_sentinel")?(Le=()=>{O("undefined"!=typeof navigator&&xe())},Pe=[],h[43]=Le,h[44]=Pe):(Le=h[43],Pe=h[44]),c.useEffect(Le,Pe),h[45]!==D||h[46]!==F||h[47]!==$?(Re=()=>{F||D||$(!1)},h[45]=D,h[46]=F,h[47]=$,h[48]=Re):Re=h[48],h[49]!==D||h[50]!==F?(ze=[F,D],h[49]=D,h[50]=F,h[51]=ze):ze=h[51],c.useEffect(Re,ze),h[52]!==H||h[53]!==qe?(Ue=()=>{H||qe()},h[52]=H,h[53]=qe,h[54]=Ue):Ue=h[54],h[55]!==H?(Ve=[H],h[55]=H,h[56]=Ve):Ve=h[56],c.useEffect(Ue,Ve),h[57]!==M||h[58]!==T?(De=()=>{if(null!==M){const e=e=>{"k"===e.key&&(M?e.metaKey:e.ctrlKey)&&(e.preventDefault(),T(Qe))};return document.addEventListener("keydown",e,!1),()=>document.removeEventListener("keydown",e)}},Fe=[M,T],h[57]=M,h[58]=T,h[59]=De,h[60]=Fe):(De=h[59],Fe=h[60]),c.useEffect(De,Fe),h[61]!==He||h[62]!==Me||h[63]!==x?(Be=()=>{if(Me(),x)return document.addEventListener("keydown",He,!1),()=>document.removeEventListener("keydown",He);document.removeEventListener("keydown",He)},h[61]=He,h[62]=Me,h[63]=x,h[64]=Be):Be=h[64],h[65]!==H||h[66]!==ke||h[67]!==x||h[68]!==A?(Ze=[x,H,ke,A],h[65]=H,h[66]=ke,h[67]=x,h[68]=A,h[69]=Ze):Ze=h[69],c.useEffect(Be,Ze),h[70]!==qe?(tt=()=>{qe()},h[70]=qe,h[71]=tt):tt=h[71],h[72]!==A?(st=[A],h[72]=A,h[73]=st):st=h[73],c.useEffect(tt,st),h[74]!==N||h[75]!==v?.group||h[76]!==v?.mainSection||h[77]!==v?.section?(nt=e=>{let t=0;const s=Ke(v?.section),n=Ke(v?.group),r=Ke(v?.mainSection),i=Ke(e.mainSection),o=Ke(e.section),a=Ke(e.group),l=e.url.toLowerCase(),c=Ke(e.hierarchy.lvl0);if(N&&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},h[74]=N,h[75]=v?.group,h[76]=v?.mainSection,h[77]=v?.section,h[78]=nt):nt=h[78];const rt=nt;let it;h[79]!==rt?(it=(e,t)=>{const s=rt(t)-rt(e);return s||(t._rankingInfo?.userScore??0)-(e._rankingInfo?.userScore??0)},h[79]=rt,h[80]=it):it=h[80];const ot=[...W].sort(it).map(Xe),at=w?l(ot,"mainSection"):{"Expo documentation":ot},lt=v?.mainSection;let ct;h[81]!==lt?(ct=(e,t)=>{if(lt){if(e===lt)return-1;if(t===lt)return 1}return e.localeCompare(t)},h[81]=lt,h[82]=ct):ct=h[82];const mt=Object.keys(at).sort(ct),dt=new Map;let ut,ht,pt,xt;ot.forEach(((e,t)=>{const s=dt.get(e.baseUrl);(void 0===s||t<s)&&dt.set(e.baseUrl,t)})),h[83]!==W.length||h[84]!==A.length||h[85]!==L?(ut=A.length>10&&0===W.length&&d.jsx(e.Command.Group,{heading:"Ask AI",children:d.jsx(fe,{value:"expo-ai-prompt",onSelect:()=>{L(!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-xs font-medium leading-snug",children:"Ask Expo's AI assistant"}),d.jsx("p",{className:"text-2xs text-tertiary leading-snug",children:"Experimental feature"})]})]})})},"expo-ai-prompt"),h[83]=W.length,h[84]=A.length,h[85]=L,h[86]=ut):ut=h[86],h[87]!==Ie||h[88]!==Y||h[89]!==A?(ht=Y.length>0&&d.jsx(e.Command.Group,{heading:"Expo blog",children:Y.map((e=>d.jsx(Se,{item:e,onSelect:Ie,query:A},`hit-expo-blog-${e.slug.current}`)))},"expo-blog-group"),h[87]=Ie,h[88]=Y,h[89]=A,h[90]=ht):ht=h[90],h[91]!==Ie||h[92]!==se?(pt=se.length>0&&d.jsx(e.Command.Group,{heading:"React Native documentation",children:se.map((e=>d.jsx(Ce,{item:e,onSelect:Ie},`hit-rn-docs-${e.objectID}`)))},"rn-docs-group"),h[91]=Ie,h[92]=se,h[93]=pt):pt=h[93],h[94]!==ce||h[95]!==Ie||h[96]!==A?(xt=ce.length>0&&d.jsx(e.Command.Group,{heading:"React Native directory",children:ce.map((e=>d.jsx(ve,{item:e,onSelect:Ie,query:A},`hit-rn-dir-${e.npmPkg}`)))},"rn-directory-group"),h[94]=ce,h[95]=Ie,h[96]=A,h[97]=xt):xt=h[97];const gt=[ut,...W.length>0?mt.map((t=>{const s=l(at[t],"baseUrl"),n=Object.entries(s).map((e=>{const[t,s]=e,n=Math.max(...s.map(Ye),0);return{baseUrl:t,values:s,filtersScore:n,orderIndex:dt.get(t)??Number.MAX_SAFE_INTEGER}})).sort(Je);return d.jsx(e.Command.Group,{heading:w?t:"Expo documentation",children:n.map((e=>{const{values:t}=e;return t.sort(et).slice(0,6).map(((e,t)=>d.jsx(Ne,{isNested:0!==t,item:e,onSelect:Ie,transformUrl:j},`hit-expo-docs-${e.objectID}`)))}))},`expo-docs-group-${t}`)})):[],ht,pt,xt];S?.forEach((t=>{const{items:s,heading:n,sectionIndex:r}=t;return s.length>0&&gt.splice(r,0,d.jsx(e.Command.Group,{heading:n,children:s},`${r}-${n}`))}));const ft=H?r.MessageQuestionCircleIcon:i.SearchSmIcon;let yt,jt,vt,bt;h[98]===Symbol.for("react.memo_cache_sentinel")?(yt=n.mergeClasses("relative flex px-4 gap-x-3 border-b border-secondary","max-md-gutters:flex-col"),h[98]=yt):yt=h[98],h[99]!==ft?(jt=d.jsx(ft,{className:"text-icon-tertiary absolute top-[29px] left-[13px] transition-opacity duration-200"}),h[99]=ft,h[100]=jt):jt=h[100],h[101]===Symbol.for("react.memo_cache_sentinel")?(vt=n.mergeClasses("absolute top-[25px] right-[9px] z-[101] cursor-pointer p-1 rounded-sm","hocus:bg-element","active:scale-[0.975]"),h[101]=vt):vt=h[101],h[102]!==q?(bt=d.jsx("div",{className:vt,children:d.jsx(a.XIcon,{className:"text-icon-tertiary",onClick:()=>q("")})}),h[102]=q,h[103]=bt):bt=h[103];const Ct=H?"Ask AI…":"Search…";let wt,Nt;h[104]!==A||h[105]!==q||h[106]!==Ct?(wt=d.jsx(e.Command.Input,{value:A,onValueChange:q,placeholder:Ct,autoFocus:!0,ref:P}),h[104]=A,h[105]=q,h[106]=Ct,h[107]=wt):wt=h[107],h[108]!==jt||h[109]!==bt||h[110]!==wt?(Nt=d.jsxs("div",{className:"flex relative w-full overflow-hidden",children:[jt,bt,wt]}),h[108]=jt,h[109]=bt,h[110]=wt,h[111]=Nt):Nt=h[111];const St=H&&"tabs-container-ai";let It;h[112]!==St?(It=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",St),h[112]=St,h[113]=It):It=h[113];const _t=!H;let kt,$t,At,qt,Et,Mt,Ot,Ht;h[114]!==L?(kt=()=>{L(!1),P?.current?.focus()},h[114]=L,h[115]=kt):kt=h[115],h[116]!==_t||h[117]!==kt?($t=d.jsx(Ge,{label:"Search",isActive:_t,onClick:kt}),h[116]=_t,h[117]=kt,h[118]=$t):$t=h[118],h[119]!==U||h[120]!==A||h[121]!==$||h[122]!==L||h[123]!==q||h[124]!==V?(At=()=>{L(!0),A.length>0&&(U.getLatest()||($(!0),V(A),q(""))),P?.current?.focus()},h[119]=U,h[120]=A,h[121]=$,h[122]=L,h[123]=q,h[124]=V,h[125]=At):At=h[125],h[126]!==H||h[127]!==At?(qt=d.jsx(Ge,{label:"Ask AI",isActive:H,onClick:At}),h[126]=H,h[127]=At,h[128]=qt):qt=h[128],h[129]!==It||h[130]!==$t||h[131]!==qt?(Et=d.jsxs("div",{className:It,children:[$t,qt]}),h[129]=It,h[130]=$t,h[131]=qt,h[132]=Et):Et=h[132],h[133]!==Nt||h[134]!==Et?(Mt=d.jsxs("div",{className:yt,children:[Nt,Et]}),h[133]=Nt,h[134]=Et,h[135]=Mt):Mt=h[135],h[136]!==k?(Ot=d.jsx(E,{isLoading:k}),h[136]=k,h[137]=Ot):Ot=h[137],h[138]===Symbol.for("react.memo_cache_sentinel")?(Ht=d.jsx("div",{className:n.mergeClasses("pointer-events-none absolute left-0 -top-px z-10 h-6 w-[calc(100%-8px)]","bg-gradient-to-b from-default to-transparent opacity-90")}),h[138]=Ht):Ht=h[138];const Lt=H?d.jsx(Te,{conversation:U,isGeneratingAnswer:D,isPreparingAnswer:F,addFeedback:B,resetConversation:K,resetInput:()=>q("")}):d.jsxs(e.Command.List,{children:[I&&gt,0===gt.filter(Boolean).length&&d.jsx(e.Command.Empty,{children:d.jsx("p",{className:"text-secondary text-xs",children:"No results found."})},"no-results-group")]});let Pt,Rt,zt,Tt;return h[139]===Symbol.for("react.memo_cache_sentinel")?(Pt=d.jsx("div",{className:n.mergeClasses("pointer-events-none absolute left-0 -bottom-px z-10 h-6 w-[calc(100%-8px)]","bg-gradient-to-t from-default to-transparent opacity-90")}),h[139]=Pt):Pt=h[139],h[140]!==Lt?(Rt=d.jsxs("div",{className:"relative",children:[Ht,Lt,Pt]}),h[140]=Lt,h[141]=Rt):Rt=h[141],h[142]!==H?(zt=d.jsx(R,{isPromptMode:H}),h[142]=H,h[143]=zt):zt=h[143],h[144]!==x||h[145]!==T||h[146]!==Mt||h[147]!==Ot||h[148]!==Rt||h[149]!==zt?(Tt=d.jsxs(e.Command.Dialog,{open:x,onOpenChange:T,label:"Search Menu",shouldFilter:!1,children:[Mt,Ot,Rt,zt]}),h[144]=x,h[145]=T,h[146]=Mt,h[147]=Ot,h[148]=Rt,h[149]=zt,h[150]=Tt):Tt=h[150],Tt};function We(e){return!e}function Qe(e){return!e}function Xe(e){return{...e,baseUrl:e.url.replace(/#.+/,""),mainSection:"EAS"===e.mainSection?"Expo Application Services":e.mainSection||"Expo documentation"}}function Ye(e){return e._rankingInfo?.filters??0}function Je(e,t){return e.filtersScore!==t.filtersScore?t.filtersScore-e.filtersScore:e.orderIndex-t.orderIndex}function et(e,t){return e.url.localeCompare(e.baseUrl)-t.url.localeCompare(t.baseUrl)}const tt=e.Command.Item;exports.CommandItemBase=tt,exports.CommandItemBaseWithCopy=fe,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(Ze,{...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]=c.useState(null);let m,u,h,p,x,g,f,y;return s[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{l("undefined"!=typeof navigator&&xe())},u=[],s[0]=m,s[1]=u):(m=s[0],u=s[1]),c.useEffect(m,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-xs",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=ge;
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("lodash.groupby"),c=require("react"),m=require("use-effect-event"),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/custom/GithubIcon"),g=require("@expo/styleguide-icons/outline/Download01Icon"),f=require("@expo/styleguide-icons/outline/Star01Icon"),y=require("@expo/styleguide-icons/custom/PlanEnterpriseIcon"),j=require("@expo/styleguide-icons/outline/BookOpen02Icon"),v=require("@expo/styleguide-icons/outline/GraduationHat02Icon"),b=require("@expo/styleguide-icons/outline/Hash02Icon"),C=require("@expo/styleguide-icons/outline/Home02Icon"),w=require("@expo/styleguide-icons/outline/ClipboardIcon"),N=require("@expo/styleguide-icons/outline/RefreshCcw02Icon"),S=require("@expo/styleguide-icons/outline/ThumbsDownIcon"),I=require("@expo/styleguide-icons/outline/ThumbsUpIcon"),_=require("@expo/styleguide-icons/solid/ThumbsDownSolidIcon"),k=require("@expo/styleguide-icons/solid/ThumbsUpSolidIcon"),$=require("markdown-to-jsx"),A=require("@expo/styleguide-icons/outline/CheckIcon"),q=require("prism-react-renderer");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 M(){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 O=()=>{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},H=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},P=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 R(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-3xs 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-3xs 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-3xs 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-3xs 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-3xs 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(P,{className:"hocus:opacity-80"})})]}):d.jsxs("p",{className:"text-3xs 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 z="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function T(e){return`image-${e.split("/").slice(-1)[0]}`.replace(/\.([a-z]+)$/,"-$1")}const U=[["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 V(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:T(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:T(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 "${z}".`);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 "${z}".`);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,...D({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}`),U.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 D(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 F=["clip","crop","fill","fillmax","max","scale","min"],B=["top","bottom","left","right","center","focalpoint","entropy"],G=["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 Z(e){const t=U;for(const s of t){const[t,n]=s;if(e===t||e===n)return t}return e}function W(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[Z(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=W(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===F.indexOf(e))throw new Error(`Invalid fit mode "${e}"`);return this.withOptions({fit:e})}crop(e){if(-1===B.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===G.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 V(this.options)}toString(){return this.url()}}const X="9r24npb8",Y="production",J=p.createClient({projectId:X,dataset:Y,useCdn:!0,apiVersion:"v2025-02-19"}),ee=new Q(null,W({projectId:X,dataset:Y}));const te=async(e,t,s,n)=>{const{hits:r,libraries:i}=await t(e,n).then((e=>e.json()));s(r||i||[])},se=(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})}],ne=e=>`"${e.replace(/"/g,'\\"')}"`,re=(e,t,s)=>{const n=(r=s?.sectionContext,r?[r.group?`group:${ne(r.group)}`:null,r.section?`section:${ne(r.section)}`:null,r.mainSection?`mainSection:${ne(r.mainSection)}`:null].filter(Boolean):[]);var r;return fetch(...se(e,"QEX7PB7D46","6652d26570e8628af4601e1d78ad456b","expo",20,{facetFilters:[["version:none",`version:${t}`]],...n.length&&{optionalFilters:n,sumOrFiltersScores:!0,ruleContexts:s?.ruleContexts},attributesToRetrieve:["*","mainSection","section","group","weight"]}))},ie=e=>fetch(...se(e,"8TDSE0OHGQ","c9c791d9d5fd7f315d7f3859b32c1f3b","react-native-v2",5,{facetFilters:[["version:current"]]})),oe=e=>J.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}*`}),ae=e=>fetch(`https://reactnative.directory/api/libraries?search=${encodeURI(e)}&limit=5`),le=(e,t)=>({dangerouslySetInnerHTML:{__html:e._highlightResult.hierarchy[`${t}`]?.value||""}}),ce=(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?"…":""}`},me=(e,t=!1)=>t?{}:{dangerouslySetInnerHTML:{__html:e._highlightResult.content?.value?ce(e._highlightResult.content?.value):ce(e._highlightResult.hierarchy.lvl1?.value||"",82)}},de=["/versions/","/more/"],ue=["/app-signing/","/build/","/build-reference/","/development/","/eas/","/eas/metadata/","/eas-update/","/submit/","/distribution/","/custom-builds/","/hosting/","/billing/","/accounts/"],he=["/get-started/","/develop/","/deploy/","/faq/","/config-plugins/","/debugging/","/config-plugins/","/review/","/monitoring/"],pe=["/tutorial","/additional-resources/"],xe=()=>/(Mac|iPhone|iPod|iPad)/i.test(navigator?.platform??navigator?.userAgentData?.platform??""),ge=(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)},fe=s=>{const r=t.c(21),{children:i,url:o,isExternalLink:a,isNested:l,onSelect:m,className:u,value:h}=s,[p,x]=c.useState(!1),[g,f]=c.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 b=!!l||void 0;let C,w,N,S,I;return r[3]===Symbol.for("react.memo_cache_sentinel")?(C=e=>{(e.metaKey||e.ctrlKey)&&f(!0)},r[3]=C):C=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]!==m||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):m&&m()},r[6]=a,r[7]=g,r[8]=m,r[9]=o,r[10]=N):N=r[10],r[11]!==p?(S=p&&d.jsx("div",{className:"text-2xs 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]!==b||r[16]!==w||r[17]!==N||r[18]!==S||r[19]!==h?(I=d.jsxs(e.Command.Item,{className:v,value:h,"data-nested":b,onMouseDown:C,onMouseUp:w,onSelect:N,onContextMenu:ye,children:[i,S]}),r[13]=i,r[14]=v,r[15]=b,r[16]=w,r[17]=N,r[18]=S,r[19]=h,r[20]=I):I=r[20],I};function ye(e){e.preventDefault()}const je=new Intl.NumberFormat,ve=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,y,j,v,b,C;return s[0]===Symbol.for("react.memo_cache_sentinel")?(l=d.jsx(x.GithubIcon,{className:"text-icon-secondary"}),s[0]=l):l=s[0],s[1]!==n.npmPkg||s[2]!==i?(c=ge(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-xs 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(f.Star01Icon,{className:"icon-2xs text-icon-quaternary"}),s[6]=u):u=s[6],s[7]!==n.github.stats.stars?(h=je.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(g.Download01Icon,{className:"icon-2xs text-icon-quaternary"}),je.format(n.npm.downloads)," downloads"]}):void 0,s[9]=n.npm.downloads,s[10]=p):p=s[10],s[11]!==h||s[12]!==p?(y=d.jsxs("p",{className:"flex items-center gap-1 text-3xs text-quaternary",children:[u,h," stars",p]}),s[11]=h,s[12]=p,s[13]=y):y=s[13],s[14]!==m||s[15]!==y?(j=d.jsxs("div",{children:[m,y]}),s[14]=m,s[15]=y,s[16]=j):j=s[16],s[17]===Symbol.for("react.memo_cache_sentinel")?(v=d.jsx(O,{}),s[17]=v):v=s[17],s[18]!==j?(b=d.jsxs("div",{className:"inline-flex gap-3 items-center",children:[l,j,v]}),s[18]=j,s[19]=b):b=s[19],s[20]!==n.githubUrl||s[21]!==r||s[22]!==o||s[23]!==b?(C=d.jsx(fe,{value:o,url:a,isExternalLink:!0,onSelect:r,children:b}),s[20]=n.githubUrl,s[21]=r,s[22]=o,s[23]=b,s[24]=C):C=s[24],C},be=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(M,{}),d.jsx("span",{...le(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,b,C,w,N;return s[0]===Symbol.for("react.memo_cache_sentinel")?(h=d.jsx(H,{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-xs font-medium",...le(n,"lvl4")}),d.jsxs("p",{className:"text-3xs text-quaternary",children:[d.jsx("span",{...le(n,"lvl0")}),d.jsx(be,{item:n,levelKey:"lvl1"}),d.jsx(be,{item:n,levelKey:"lvl2"}),d.jsx(be,{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-xs font-medium",...le(n,"lvl3")}),d.jsxs("p",{className:"text-3xs text-quaternary",children:[d.jsx("span",{...le(n,"lvl0")}),d.jsx(be,{item:n,levelKey:"lvl1"}),d.jsx(be,{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-xs font-medium",...le(n,"lvl2")}),d.jsxs("p",{className:"text-3xs text-quaternary",children:[d.jsx("span",{...le(n,"lvl0")}),d.jsx(be,{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-xs font-medium",...le(n,"lvl1")}),d.jsx("p",{className:"text-3xs text-quaternary",...le(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-xs font-medium",...le(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=me(n,!0),s[23]=n,s[24]=j):j=s[24],s[25]!==j?(v=d.jsx("p",{className:"text-2xs 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?(b=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]=b):b=s[33],s[34]===Symbol.for("react.memo_cache_sentinel")?(C=d.jsx(O,{}),s[34]=C):C=s[34],s[35]!==b?(w=d.jsxs("div",{className:"inline-flex gap-3 items-center",children:[h,b,C]}),s[35]=b,s[36]=w):w=s[36],s[37]!==n.url||s[38]!==r||s[39]!==m||s[40]!==w?(N=d.jsx(fe,{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},we=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(b.Hash02Icon,{className:e}),s[2]=e,s[3]=t):t=s[3],t}if((e=>de.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=>ue.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(y.PlanEnterpriseIcon,{className:e}),s[10]=e,s[11]=t):t=s[11],t}if((e=>he.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(C.Home02Icon,{className:e}),s[14]=e,s[15]=t):t=s[15],t}if((e=>pe.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(v.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(j.BookOpen02Icon,{className:a}),s[22]=a,s[23]=l):l=s[23],l},Ne=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-2xs":"text-xs 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-3xs text-quaternary",f),s[2]=f,s[3]=y):y=s[3];const j=y,v=o&&"ml-8 !min-h-[32px]";let b;s[4]!==v?(b=n.mergeClasses(v),s[4]=v,s[5]=b):b=s[5];const C=`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,q,E,M,H,L,P;return s[9]!==o||s[10]!==r.url?(S=d.jsx(we,{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,...le(r,"lvl6")}),!o&&d.jsxs("p",{className:"text-3xs text-quaternary",children:[d.jsx("span",{...le(r,"lvl0")}),d.jsx(be,{item:r,levelKey:"lvl2"}),d.jsx(be,{item:r,levelKey:"lvl3"}),d.jsx(be,{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?(_=!h&&u&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:g,...le(r,"lvl4")}),!o&&d.jsxs("p",{className:j,children:[d.jsx("span",{...le(r,"lvl0")}),d.jsx(be,{item:r,levelKey:"lvl2"}),d.jsx(be,{item:r,levelKey:"lvl3"})]})]}),s[17]=j,s[18]=o,s[19]=r,s[20]=u,s[21]=h,s[22]=g,s[23]=_):_=s[23],s[24]!==j||s[25]!==o||s[26]!==r||s[27]!==m||s[28]!==u||s[29]!==h||s[30]!==g?(k=!h&&!u&&m&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:g,...le(r,"lvl3")}),!o&&d.jsxs("p",{className:j,children:[d.jsx("span",{...le(r,"lvl0")}),d.jsx(be,{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]=k):k=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,...le(r,"lvl2")}),!o&&d.jsx("p",{className:j,children:d.jsx("span",{...le(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,...le(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?(q=(!o||r.content)&&d.jsx("p",{className:n.mergeClasses("text-secondary",o?"text-3xs":"text-2xs"),...me(r)}),s[49]=o,s[50]=r,s[51]=q):q=s[51],s[52]!==I||s[53]!==_||s[54]!==k||s[55]!==$||s[56]!==A||s[57]!==q?(E=d.jsxs("div",{children:[I,_,k,$,A,q]}),s[52]=I,s[53]=_,s[54]=k,s[55]=$,s[56]=A,s[57]=q,s[58]=E):E=s[58],s[59]!==S||s[60]!==E?(M=d.jsxs("div",{className:"inline-flex items-center gap-3 break-words",children:[S,E]}),s[59]=S,s[60]=E,s[61]=M):M=s[61],s[62]!==a?(H=!a&&d.jsx(O,{}),s[62]=a,s[63]=H):H=s[63],s[64]!==M||s[65]!==H?(L=d.jsxs("div",{className:"flex gap-3 justify-between",children:[M,H]}),s[64]=M,s[65]=H,s[66]=L):L=s[66],s[67]!==o||s[68]!==i||s[69]!==L||s[70]!==b||s[71]!==C||s[72]!==w||s[73]!==N?(P=d.jsx(fe,{className:b,value:C,onSelect:i,url:w,isNested:o,isExternalLink:N,children:L}),s[67]=o,s[68]=i,s[69]=L,s[70]=b,s[71]=C,s[72]=w,s[73]=N,s[74]=P):P=s[74],P},Se=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=ee.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=ge(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-xs font-medium",dangerouslySetInnerHTML:{__html:u}}),s[8]=u,s[9]=h):h=s[9],s[10]!==n.metadataDescription||s[11]!==i?(p=ge(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-3xs 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(O,{}),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(fe,{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 Ie(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(_e),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 _e(e,t){return d.jsx("span",{className:"opacity-0",style:{animationDelay:.2*t+"s"},children:"."},t)}const ke="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0;ke&&(ke.Prism=q.Prism);let $e=null;function Ae(){return $e||($e=(async()=>{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}Ae().catch((()=>{}));const qe={sh:"bash"};function Ee(e){return{value:e}}function Me(e,t){if(!e||"object"!=typeof e)return null;if(c.isValidElement(e))return e.props;if(c.isValidElement(e)){const t=e.props.children;if(!Array.isArray(t))return Me(t);for(const e of c.Children.toArray(t)){const t=Me(e);if(t)return t}}return null}function Oe(e){return"string"==typeof e?e:Array.isArray(e)?e.map(Oe).join(""):function(e){return c.isValidElement(e)}(e)?Oe(e.props.children):""}function He(e,t){if("string"==typeof e)return{...Ee(e),language:t?t.split("-")[1]:"jsx"};const s=Me(e);return{...Ee(Oe(s?.children)),language:"string"==typeof s?.className?s.className.split("-")[1]:"jsx"}}function Le({children:e,className:t}){const{value:s,language:r}=c.useMemo((()=>He(e,t)),[e,t]),[i,o]=c.useState(!1);c.useEffect((()=>{let e=!0;return Ae().then((()=>{e&&o(!0)})),()=>{e=!1}}),[]);const a=c.useMemo((()=>"string"==typeof t&&t.length>0?t:c.isValidElement(e)&&"string"==typeof e.props.className?e.props.className:void 0),[e,t]),l=c.useMemo((()=>a??(r?`language-${r}`:void 0)),[a,r]),m=c.useMemo((()=>s?function(e,t){Ae().catch((()=>{}));let s=t?.split("-").at(-1)?.toLowerCase();if(!s)return e;s in qe&&(s=qe[s]);const n=q.Prism.languages[s];return n?q.Prism.highlight(e,n,s):e}(s,l):""),[s,l,i]),u=c.useMemo((()=>s??""),[s]),[h,p]=c.useState(!1);c.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-2xs 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:m}})}),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-sm",onClick:()=>{u&&(navigator.clipboard?.writeText(u).catch((()=>{})),p(!0))},"aria-label":"Copy code block",children:h?d.jsx(A.CheckIcon,{className:"icon-xs text-success","aria-hidden":!0}):d.jsx(w.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-2xs text-default shadow-xs","font-mono leading-[1.6]"),children:e})}const Pe=/(\s*```[\s\S]*?```)/g,Re=new Set(["a","an","the","this","that","these","those","your","see","refer","check","use","try","visit","read","review","consult"]);function ze(e){const t=e.split(Pe);let s=t.map(((e,s)=>{if(e.trimStart().startsWith("```"))return e;const n=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&&Re.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 Te(e){const s=t.c(39),{conversation:r,isGeneratingAnswer:i,isPreparingAnswer:o,addFeedback:a,resetConversation:l,resetInput:m}=e,[u,h]=c.useState(!1),[p,x]=c.useState(void 0),g=o||i;let f,y,j,v,b,C,A,q,M,O,H,L,P,R;return s[0]!==r||s[1]!==g||s[2]!==o?(y=r?.getLatest(),s[12]!==g?(M=d.jsx(E,{isLoading:g}),s[12]=g,s[13]=M):M=s[13],v="result-container flex flex-col gap-3 !pt-3 w-full",b=y?.isGenerationAborted&&d.jsxs("div",{className:"text-xs 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."]}),C=!g&&!y?.question&&d.jsx("div",{className:n.mergeClasses("flex flex-wrap text-xs 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."]})}),A=y?.question&&d.jsxs("div",{className:"font-semibold mt-1 leading-relaxed",children:['You asked: "',y?.question??"",'"']}),s[14]!==o?(q=o&&d.jsxs("div",{className:"flex text-xs size-full items-center justify-center text-quaternary",children:["Preparing answer",d.jsx(Ie,{})]}),s[14]=o,s[15]=q):q=s[15],f=$,j=y?.answer?ze(y.answer):"",s[0]=r,s[1]=g,s[2]=o,s[3]=f,s[4]=y,s[5]=j,s[6]=v,s[7]=b,s[8]=C,s[9]=A,s[10]=q,s[11]=M):(f=s[3],y=s[4],j=s[5],v=s[6],b=s[7],C=s[8],A=s[9],q=s[10],M=s[11]),s[16]===Symbol.for("react.memo_cache_sentinel")?(O={overrides:{a:{component:n.Link,props:{target:"_blank",rel:"noopener noreferrer",className:"text-link underline-offset-2 hocus:underline"}},pre:{component:Le},code:{component:Be},p:{component:Fe},ol:{component:De},ul:{component:Ve},li:{component:Ue}}},s[16]=O):O=s[16],s[17]!==f||s[18]!==j?(H=d.jsx(f,{children:j,options:O,className:"prompt-result text-xs"}),s[17]=f,s[18]=j,s[19]=H):H=s[19],s[20]!==a||s[21]!==u||s[22]!==p||s[23]!==g||s[24]!==y||s[25]!==l||s[26]!==m?(L=!g&&y?.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(w.ClipboardIcon,{}),disabled:u,onClick:()=>{y?.answer&&(navigator.clipboard?.writeText(y.answer),h(!0),setTimeout((()=>h(!1)),1500))},children:"Copy answer"}),d.jsx(n.Button,{skipCapitalization:!0,theme:"secondary",size:"xs",leftSlot:d.jsx(N.RefreshCcw02Icon,{}),className:"mr-auto max-md-gutters:mx-auto",onClick:()=>{l?.(),m?.()},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-2xs",children:"Rate answer:"}),d.jsx(n.Button,{theme:"secondary",size:"xs",className:"shrink-0",disabled:p,leftSlot:!0===p?d.jsx(k.ThumbsUpSolidIcon,{className:"text-icon-success"}):d.jsx(I.ThumbsUpIcon,{className:"text-icon-success"}),onClick:()=>{a?.(y.id,"upvote"),x(!0)}}),d.jsx(n.Button,{theme:"secondary",size:"xs",className:"shrink-0",disabled:p,leftSlot:!1===p?d.jsx(_.ThumbsDownSolidIcon,{className:"text-icon-danger"}):d.jsx(S.ThumbsDownIcon,{className:"text-icon-danger"}),onClick:()=>{a?.(y.id,"downvote"),x(!1)}})]})]}),d.jsx("p",{className:n.mergeClasses("text-quaternary text-2xs my-1 mx-auto","max-md-gutters:mt-0.5"),children:"Expo AI assistant is an experimental feature."})]}),s[20]=a,s[21]=u,s[22]=p,s[23]=g,s[24]=y,s[25]=l,s[26]=m,s[27]=L):L=s[27],s[28]!==L||s[29]!==v||s[30]!==b||s[31]!==C||s[32]!==A||s[33]!==q||s[34]!==H?(P=d.jsxs("div",{className:v,children:[b,C,A,q,H,L]}),s[28]=L,s[29]=v,s[30]=b,s[31]=C,s[32]=A,s[33]=q,s[34]=H,s[35]=P):P=s[35],s[36]!==P||s[37]!==M?(R=d.jsxs(d.Fragment,{children:[M,P]}),s[36]=P,s[37]=M,s[38]=R):R=s[38],R}function Ue(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 Ve(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 De(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 Fe(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 Be(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-3xs font-medium leading-tight text-default",t)})}function Ge(e){const s=t.c(8),{label:r,isActive:i,onClick:o}=e,a=i&&"mode-tab",l=i&&"bg-gradient-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-xs 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():"",Ze=u=>{const h=t.c(151),{config:p,open:x,setOpen:g,customSections:f}=u,{docsVersion:y,docsTransformUrl:j,docsSectionContext:v,docsGroupByMainSection:b,docsContextBoost:C}=p,w=void 0===b||b,N=void 0!==C&&C,S=void 0===f?[]:f,[I,_]=c.useState(!1),[k,$]=c.useState(!0),[A,q]=c.useState(""),[M,O]=c.useState(null),[H,L]=c.useState(!1),P=c.useRef(null);let z;h[0]!==g?(z=e=>g(e),h[0]=g,h[1]=z):z=h[1];const T=z,{conversation:U,submitQuery:V,isGeneratingAnswer:D,isPreparingAnswer:F,addFeedback:B,stopGeneration:G,resetConversation:K}=s.useChat();let Z;h[2]===Symbol.for("react.memo_cache_sentinel")?(Z=[],h[2]=Z):Z=h[2];const[W,Q]=c.useState(Z);let X;h[3]===Symbol.for("react.memo_cache_sentinel")?(X=[],h[3]=X):X=h[3];const[Y,J]=c.useState(X);let ee;h[4]===Symbol.for("react.memo_cache_sentinel")?(ee=[],h[4]=ee):ee=h[4];const[se,ne]=c.useState(ee);let le;h[5]===Symbol.for("react.memo_cache_sentinel")?(le=[],h[5]=le):le=h[5];const[ce,me]=c.useState(le);let de;h[6]!==v||h[7]!==y||h[8]!==A?(de=async()=>te(A,(e=>re(e,y,{sectionContext:v})),Q),h[6]=v,h[7]=y,h[8]=A,h[9]=de):de=h[9];const ue=de;let he;h[10]!==A?(he=async()=>(async(e,t,s)=>{s(await t(e))})(A,oe,J),h[10]=A,h[11]=he):he=h[11];const pe=he;let ge;h[12]!==A?(ge=async()=>te(A,ie,ne),h[12]=A,h[13]=ge):ge=h[13];const ye=ge;let je;h[14]!==A?(je=async()=>te(A,ae,me),h[14]=A,h[15]=je):je=h[15];const be=je;let we;h[16]!==T?(we=()=>T(!1),h[16]=T,h[17]=we):we=h[17];const Ie=we;let _e;h[18]!==U?(_e=U.getLatest(),h[18]=U,h[19]=_e):_e=h[19];const ke=_e,$e=e=>{Promise.all([ue(),pe(),ye(),be(),...S?.map((e=>e.getItemsAsync(A)))]).then(e)};let Ae;h[20]!==$e||h[21]!==H||h[22]!==x||h[23]!==$?(Ae=()=>{if(x&&!H){$(!0);const e=setTimeout((()=>{$e((()=>$(!1)))}),500);return()=>clearTimeout(e)}},h[20]=$e,h[21]=H,h[22]=x,h[23]=$,h[24]=Ae):Ae=h[24];const qe=m.useEffectEvent(Ae);let Ee;h[25]!==$e||h[26]!==I||h[27]!==x||h[28]!==$?(Ee=()=>{x&&!I&&$e((()=>{_(!0),$(!1)}))},h[25]=$e,h[26]=I,h[27]=x,h[28]=$,h[29]=Ee):Ee=h[29];const Me=m.useEffectEvent(Ee);let Oe;h[30]!==D||h[31]!==F||h[32]!==H||h[33]!==ke?.isGenerationAborted||h[34]!==ke?.question||h[35]!==A||h[36]!==K||h[37]!==$||h[38]!==L||h[39]!==q||h[40]!==G||h[41]!==V?(Oe=e=>{if("Tab"===e.key&&(e.preventDefault(),L(We),P?.current?.focus()),H&&"Enter"===e.key&&(e.preventDefault(),A.length>0)){if(F||D)return void G();if(ke?.question===A&&!ke?.isGenerationAborted)return;K(),$(!0),V(A),q("")}},h[30]=D,h[31]=F,h[32]=H,h[33]=ke?.isGenerationAborted,h[34]=ke?.question,h[35]=A,h[36]=K,h[37]=$,h[38]=L,h[39]=q,h[40]=G,h[41]=V,h[42]=Oe):Oe=h[42];const He=m.useEffectEvent(Oe);let Le,Pe,Re,ze,Ue,Ve,De,Fe,Be,Ze,tt,st,nt;h[43]===Symbol.for("react.memo_cache_sentinel")?(Le=()=>{O("undefined"!=typeof navigator&&xe())},Pe=[],h[43]=Le,h[44]=Pe):(Le=h[43],Pe=h[44]),c.useEffect(Le,Pe),h[45]!==D||h[46]!==F||h[47]!==$?(Re=()=>{F||D||$(!1)},h[45]=D,h[46]=F,h[47]=$,h[48]=Re):Re=h[48],h[49]!==D||h[50]!==F?(ze=[F,D],h[49]=D,h[50]=F,h[51]=ze):ze=h[51],c.useEffect(Re,ze),h[52]!==H||h[53]!==qe?(Ue=()=>{H||qe()},h[52]=H,h[53]=qe,h[54]=Ue):Ue=h[54],h[55]!==H?(Ve=[H],h[55]=H,h[56]=Ve):Ve=h[56],c.useEffect(Ue,Ve),h[57]!==M||h[58]!==T?(De=()=>{if(null!==M){const e=e=>{"k"===e.key&&(M?e.metaKey:e.ctrlKey)&&(e.preventDefault(),T(Qe))};return document.addEventListener("keydown",e,!1),()=>document.removeEventListener("keydown",e)}},Fe=[M,T],h[57]=M,h[58]=T,h[59]=De,h[60]=Fe):(De=h[59],Fe=h[60]),c.useEffect(De,Fe),h[61]!==He||h[62]!==Me||h[63]!==x?(Be=()=>{if(Me(),x)return document.addEventListener("keydown",He,!1),()=>document.removeEventListener("keydown",He);document.removeEventListener("keydown",He)},h[61]=He,h[62]=Me,h[63]=x,h[64]=Be):Be=h[64],h[65]!==H||h[66]!==ke||h[67]!==x||h[68]!==A?(Ze=[x,H,ke,A],h[65]=H,h[66]=ke,h[67]=x,h[68]=A,h[69]=Ze):Ze=h[69],c.useEffect(Be,Ze),h[70]!==qe?(tt=()=>{qe()},h[70]=qe,h[71]=tt):tt=h[71],h[72]!==A?(st=[A],h[72]=A,h[73]=st):st=h[73],c.useEffect(tt,st),h[74]!==N||h[75]!==v?.group||h[76]!==v?.mainSection||h[77]!==v?.section?(nt=e=>{let t=0;const s=Ke(v?.section),n=Ke(v?.group),r=Ke(v?.mainSection),i=Ke(e.mainSection),o=Ke(e.section),a=Ke(e.group),l=e.url.toLowerCase(),c=Ke(e.hierarchy.lvl0);if(N&&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},h[74]=N,h[75]=v?.group,h[76]=v?.mainSection,h[77]=v?.section,h[78]=nt):nt=h[78];const rt=nt;let it;h[79]!==rt?(it=(e,t)=>{const s=rt(t)-rt(e);return s||(t._rankingInfo?.userScore??0)-(e._rankingInfo?.userScore??0)},h[79]=rt,h[80]=it):it=h[80];const ot=[...W].sort(it).map(Xe),at=w?l(ot,"mainSection"):{"Expo documentation":ot},lt=v?.mainSection;let ct;h[81]!==lt?(ct=(e,t)=>{if(lt){if(e===lt)return-1;if(t===lt)return 1}return e.localeCompare(t)},h[81]=lt,h[82]=ct):ct=h[82];const mt=Object.keys(at).sort(ct),dt=new Map;let ut,ht,pt,xt;ot.forEach(((e,t)=>{const s=dt.get(e.baseUrl);(void 0===s||t<s)&&dt.set(e.baseUrl,t)})),h[83]!==W.length||h[84]!==A.length||h[85]!==L?(ut=A.length>10&&0===W.length&&d.jsx(e.Command.Group,{heading:"Ask AI",children:d.jsx(fe,{value:"expo-ai-prompt",onSelect:()=>{L(!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-xs font-medium leading-snug",children:"Ask Expo's AI assistant"}),d.jsx("p",{className:"text-2xs text-tertiary leading-snug",children:"Experimental feature"})]})]})})},"expo-ai-prompt"),h[83]=W.length,h[84]=A.length,h[85]=L,h[86]=ut):ut=h[86],h[87]!==Ie||h[88]!==Y||h[89]!==A?(ht=Y.length>0&&d.jsx(e.Command.Group,{heading:"Expo blog",children:Y.map((e=>d.jsx(Se,{item:e,onSelect:Ie,query:A},`hit-expo-blog-${e.slug.current}`)))},"expo-blog-group"),h[87]=Ie,h[88]=Y,h[89]=A,h[90]=ht):ht=h[90],h[91]!==Ie||h[92]!==se?(pt=se.length>0&&d.jsx(e.Command.Group,{heading:"React Native documentation",children:se.map((e=>d.jsx(Ce,{item:e,onSelect:Ie},`hit-rn-docs-${e.objectID}`)))},"rn-docs-group"),h[91]=Ie,h[92]=se,h[93]=pt):pt=h[93],h[94]!==ce||h[95]!==Ie||h[96]!==A?(xt=ce.length>0&&d.jsx(e.Command.Group,{heading:"React Native directory",children:ce.map((e=>d.jsx(ve,{item:e,onSelect:Ie,query:A},`hit-rn-dir-${e.npmPkg}`)))},"rn-directory-group"),h[94]=ce,h[95]=Ie,h[96]=A,h[97]=xt):xt=h[97];const gt=[ut,...W.length>0?mt.map((t=>{const s=l(at[t],"baseUrl"),n=Object.entries(s).map((e=>{const[t,s]=e,n=Math.max(...s.map(Ye),0);return{baseUrl:t,values:s,filtersScore:n,orderIndex:dt.get(t)??Number.MAX_SAFE_INTEGER}})).sort(Je);return d.jsx(e.Command.Group,{heading:w?t:"Expo documentation",children:n.map((e=>{const{values:t}=e;return t.sort(et).slice(0,6).map(((e,t)=>d.jsx(Ne,{isNested:0!==t,item:e,onSelect:Ie,transformUrl:j},`hit-expo-docs-${e.objectID}`)))}))},`expo-docs-group-${t}`)})):[],ht,pt,xt];S?.forEach((t=>{const{items:s,heading:n,sectionIndex:r}=t;return s.length>0&&gt.splice(r,0,d.jsx(e.Command.Group,{heading:n,children:s},`${r}-${n}`))}));const ft=H?r.MessageQuestionCircleIcon:i.SearchSmIcon;let yt,jt,vt,bt;h[98]===Symbol.for("react.memo_cache_sentinel")?(yt=n.mergeClasses("relative flex px-4 gap-x-3 border-b border-secondary","max-md-gutters:flex-col"),h[98]=yt):yt=h[98],h[99]!==ft?(jt=d.jsx(ft,{className:"text-icon-tertiary absolute top-[29px] left-[13px] transition-opacity duration-200"}),h[99]=ft,h[100]=jt):jt=h[100],h[101]===Symbol.for("react.memo_cache_sentinel")?(vt=n.mergeClasses("absolute top-[25px] right-[9px] z-[101] cursor-pointer p-1 rounded-sm","hocus:bg-element","active:scale-[0.975]"),h[101]=vt):vt=h[101],h[102]!==q?(bt=d.jsx("div",{className:vt,children:d.jsx(a.XIcon,{className:"text-icon-tertiary",onClick:()=>q("")})}),h[102]=q,h[103]=bt):bt=h[103];const Ct=H?"Ask AI…":"Search…";let wt,Nt;h[104]!==A||h[105]!==q||h[106]!==Ct?(wt=d.jsx(e.Command.Input,{value:A,onValueChange:q,placeholder:Ct,autoFocus:!0,ref:P}),h[104]=A,h[105]=q,h[106]=Ct,h[107]=wt):wt=h[107],h[108]!==jt||h[109]!==bt||h[110]!==wt?(Nt=d.jsxs("div",{className:"flex relative w-full overflow-hidden",children:[jt,bt,wt]}),h[108]=jt,h[109]=bt,h[110]=wt,h[111]=Nt):Nt=h[111];const St=H&&"tabs-container-ai";let It;h[112]!==St?(It=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",St),h[112]=St,h[113]=It):It=h[113];const _t=!H;let kt,$t,At,qt,Et,Mt,Ot,Ht;h[114]!==L?(kt=()=>{L(!1),P?.current?.focus()},h[114]=L,h[115]=kt):kt=h[115],h[116]!==_t||h[117]!==kt?($t=d.jsx(Ge,{label:"Search",isActive:_t,onClick:kt}),h[116]=_t,h[117]=kt,h[118]=$t):$t=h[118],h[119]!==U||h[120]!==A||h[121]!==$||h[122]!==L||h[123]!==q||h[124]!==V?(At=()=>{L(!0),A.length>0&&(U.getLatest()||($(!0),V(A),q(""))),P?.current?.focus()},h[119]=U,h[120]=A,h[121]=$,h[122]=L,h[123]=q,h[124]=V,h[125]=At):At=h[125],h[126]!==H||h[127]!==At?(qt=d.jsx(Ge,{label:"Ask AI",isActive:H,onClick:At}),h[126]=H,h[127]=At,h[128]=qt):qt=h[128],h[129]!==It||h[130]!==$t||h[131]!==qt?(Et=d.jsxs("div",{className:It,children:[$t,qt]}),h[129]=It,h[130]=$t,h[131]=qt,h[132]=Et):Et=h[132],h[133]!==Nt||h[134]!==Et?(Mt=d.jsxs("div",{className:yt,children:[Nt,Et]}),h[133]=Nt,h[134]=Et,h[135]=Mt):Mt=h[135],h[136]!==k?(Ot=d.jsx(E,{isLoading:k}),h[136]=k,h[137]=Ot):Ot=h[137],h[138]===Symbol.for("react.memo_cache_sentinel")?(Ht=d.jsx("div",{className:n.mergeClasses("pointer-events-none absolute left-0 -top-px z-10 h-6 w-[calc(100%-8px)]","bg-gradient-to-b from-default to-transparent opacity-90")}),h[138]=Ht):Ht=h[138];const Lt=H?d.jsx(Te,{conversation:U,isGeneratingAnswer:D,isPreparingAnswer:F,addFeedback:B,resetConversation:K,resetInput:()=>q("")}):d.jsxs(e.Command.List,{children:[I&&gt,0===gt.filter(Boolean).length&&d.jsx(e.Command.Empty,{children:d.jsx("p",{className:"text-secondary text-xs",children:"No results found."})},"no-results-group")]});let Pt,Rt,zt,Tt;return h[139]===Symbol.for("react.memo_cache_sentinel")?(Pt=d.jsx("div",{className:n.mergeClasses("pointer-events-none absolute left-0 -bottom-px z-10 h-6 w-[calc(100%-8px)]","bg-gradient-to-t from-default to-transparent opacity-90")}),h[139]=Pt):Pt=h[139],h[140]!==Lt?(Rt=d.jsxs("div",{className:"relative",children:[Ht,Lt,Pt]}),h[140]=Lt,h[141]=Rt):Rt=h[141],h[142]!==H?(zt=d.jsx(R,{isPromptMode:H}),h[142]=H,h[143]=zt):zt=h[143],h[144]!==x||h[145]!==T||h[146]!==Mt||h[147]!==Ot||h[148]!==Rt||h[149]!==zt?(Tt=d.jsxs(e.Command.Dialog,{open:x,onOpenChange:T,label:"Search Menu",shouldFilter:!1,children:[Mt,Ot,Rt,zt]}),h[144]=x,h[145]=T,h[146]=Mt,h[147]=Ot,h[148]=Rt,h[149]=zt,h[150]=Tt):Tt=h[150],Tt};function We(e){return!e}function Qe(e){return!e}function Xe(e){return{...e,baseUrl:e.url.replace(/#.+/,""),mainSection:"EAS"===e.mainSection?"Expo Application Services":e.mainSection||"Expo documentation"}}function Ye(e){return e._rankingInfo?.filters??0}function Je(e,t){return e.filtersScore!==t.filtersScore?t.filtersScore-e.filtersScore:e.orderIndex-t.orderIndex}function et(e,t){return e.url.localeCompare(e.baseUrl)-t.url.localeCompare(t.baseUrl)}const tt=e.Command.Item;exports.CommandItemBase=tt,exports.CommandItemBaseWithCopy=fe,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(Ze,{...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]=c.useState(null);let m,u,h,p,x,g,f,y;return s[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{l("undefined"!=typeof navigator&&xe())},u=[],s[0]=m,s[1]=u):(m=s[0],u=s[1]),c.useEffect(m,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-xs",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=ge;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/styleguide-search-ui",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "Expo's common search component for use on the web.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -57,5 +57,5 @@
57
57
  "eslintConfig": {
58
58
  "extends": "universe/web"
59
59
  },
60
- "gitHead": "a3264cd8afea04d18760eca78b180a6e72f16b19"
60
+ "gitHead": "6be65ec6a8d3a4b08cbd6c5c8f24c63d91654fba"
61
61
  }