@sinytra/wiki-previewer 0.1.136 → 0.1.137

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 (153) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +135 -135
  3. package/.next/app-path-routes-manifest.json +5 -5
  4. package/.next/build-manifest.json +2 -2
  5. package/.next/prerender-manifest.json +19 -19
  6. package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route.js +1 -1
  7. package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route.js.nft.json +1 -1
  8. package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route_client-reference-manifest.js +1 -1
  9. package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/content/[id]/route.js +2 -2
  10. package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/content/[id]/route.js.nft.json +1 -1
  11. package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/content/[id]/route_client-reference-manifest.js +1 -1
  12. package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/[...path]/route.js +2 -2
  13. package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/[...path]/route.js.nft.json +1 -1
  14. package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/[...path]/route_client-reference-manifest.js +1 -1
  15. package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/route.js +2 -2
  16. package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/route.js.nft.json +1 -1
  17. package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/route_client-reference-manifest.js +1 -1
  18. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js +2 -2
  19. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js.nft.json +1 -1
  20. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page_client-reference-manifest.js +1 -1
  21. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js +2 -2
  22. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js.nft.json +1 -1
  23. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js +2 -2
  25. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js.nft.json +1 -1
  26. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page_client-reference-manifest.js +1 -1
  27. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js +2 -2
  28. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js.nft.json +1 -1
  29. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page_client-reference-manifest.js +1 -1
  30. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/llms.txt/route.js +2 -2
  31. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/llms.txt/route.js.nft.json +1 -1
  32. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/llms.txt/route_client-reference-manifest.js +1 -1
  33. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js +2 -2
  34. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js.nft.json +1 -1
  35. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/[locale]/page.js +2 -2
  37. package/.next/server/app/[locale]/page.js.nft.json +1 -1
  38. package/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  39. package/.next/server/app/_not-found/page.js +2 -2
  40. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  41. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  42. package/.next/server/app/_not-found.html +2 -2
  43. package/.next/server/app/_not-found.rsc +5 -5
  44. package/.next/server/app/llms.txt/route_client-reference-manifest.js +1 -1
  45. package/.next/server/app/opengraph-image/route_client-reference-manifest.js +1 -1
  46. package/.next/server/app/robots.txt/route_client-reference-manifest.js +1 -1
  47. package/.next/server/app/sitemap.xml/route_client-reference-manifest.js +1 -1
  48. package/.next/server/app-paths-manifest.json +5 -5
  49. package/.next/server/chunks/1093.js +1 -0
  50. package/.next/server/chunks/1665.js +1 -0
  51. package/.next/server/chunks/1871.js +2 -2
  52. package/.next/server/chunks/2313.js +1 -1
  53. package/.next/server/chunks/2337.js +1 -1
  54. package/.next/server/chunks/2470.js +1 -0
  55. package/.next/server/chunks/4046.js +5 -1
  56. package/.next/server/chunks/448.js +6 -0
  57. package/.next/server/chunks/{5544.js → 4854.js} +1 -1
  58. package/.next/server/chunks/5006.js +1 -0
  59. package/.next/server/chunks/{7184.js → 5155.js} +11 -11
  60. package/.next/server/chunks/5268.js +1 -0
  61. package/.next/server/chunks/5899.js +1 -0
  62. package/.next/server/chunks/659.js +1 -0
  63. package/.next/server/chunks/7101.js +1 -0
  64. package/.next/server/chunks/7360.js +54 -0
  65. package/.next/server/chunks/7480.js +4 -0
  66. package/.next/server/chunks/801.js +1 -0
  67. package/.next/server/chunks/8939.js +1 -1
  68. package/.next/server/chunks/{5713.js → 9349.js} +9 -9
  69. package/.next/server/middleware-manifest.json +10 -10
  70. package/.next/server/pages/404.html +2 -2
  71. package/.next/server/pages/500.html +1 -1
  72. package/.next/server/server-reference-manifest.json +1 -1
  73. package/.next/server/src/middleware.js +2 -2
  74. package/.next/static/chunks/{103-0561095c3788a308.js → 103-bb5be664adfa28b0.js} +1 -1
  75. package/.next/static/chunks/1303-e6c6e8e86392f9c5.js +1 -0
  76. package/.next/static/chunks/1651-818a836d2b323da4.js +1 -0
  77. package/.next/static/chunks/1859-4cd8a16f092fe780.js +2 -0
  78. package/.next/static/chunks/{7580-d063082dd77b05a2.js → 3213-26b80eb2d0d9684e.js} +1 -1
  79. package/.next/static/chunks/3435-92f79618cd975bb2.js +1 -0
  80. package/.next/static/chunks/4420-85053607238174d5.js +1 -0
  81. package/.next/static/chunks/{595-2c38864b670b4e24.js → 595-0c474c9c380c25be.js} +1 -1
  82. package/.next/static/chunks/6615-6ffb915f255c82cb.js +1 -0
  83. package/.next/static/chunks/7291-d0bf41e2846857b4.js +1 -0
  84. package/.next/static/chunks/8156-48504a33b4a5a884.js +1 -0
  85. package/.next/static/chunks/app/(developers)/api/docs/[slug]/asset/[id]/{route-adcaaf134324196c.js → route-a32218f743279cef.js} +1 -1
  86. package/.next/static/chunks/app/(developers)/api/raw/[locale]/[slug]/[version]/content/[id]/{route-eba70bf796216d88.js → route-02f6ed057797284c.js} +1 -1
  87. package/.next/static/chunks/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/[...path]/{route-eba70bf796216d88.js → route-02f6ed057797284c.js} +1 -1
  88. package/.next/static/chunks/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/{route-eba70bf796216d88.js → route-02f6ed057797284c.js} +1 -1
  89. package/.next/static/chunks/app/[locale]/(main)/layout-f7ed212eb653418b.js +1 -0
  90. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/error-266e3f12ae849c57.js +1 -0
  91. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/not-found-4e72ce02cc69bad5.js +1 -0
  92. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page-19cafdac9aa4e93b.js +1 -0
  93. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/error-e6fe526b6adfa3d7.js +1 -0
  94. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/not-found-4e72ce02cc69bad5.js +1 -0
  95. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/{page-4a5e64d731a5f7fc.js → page-ecc5291cffc6de24.js} +1 -1
  96. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/error-11961923d6b20cfe.js +1 -0
  97. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/not-found-4e72ce02cc69bad5.js +1 -0
  98. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page-befbba1ec39978bd.js +1 -0
  99. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/error-7e669c5a664fc085.js +1 -0
  100. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/not-found-4e72ce02cc69bad5.js +1 -0
  101. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-ca8de70bb1166827.js +1 -0
  102. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-ea41b072285eca79.js +1 -0
  103. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/llms.txt/{route-eba70bf796216d88.js → route-02f6ed057797284c.js} +1 -1
  104. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/page-e725bcaca51d9f92.js +1 -0
  105. package/.next/static/chunks/app/[locale]/layout-ec6be687a5a93a67.js +1 -0
  106. package/.next/static/chunks/app/[locale]/not-found-8d8b16b11816d814.js +1 -0
  107. package/.next/static/chunks/app/[locale]/page-33dde9071f99c7bb.js +1 -0
  108. package/.next/static/chunks/app/error-7aefa5a1e95931fc.js +1 -0
  109. package/.next/static/chunks/app/not-found-2ef1f2fbd28d1588.js +1 -0
  110. package/.next/static/css/324b2d999603f259.css +1 -0
  111. package/package.json +1 -1
  112. package/.next/server/chunks/1375.js +0 -1
  113. package/.next/server/chunks/1514.js +0 -54
  114. package/.next/server/chunks/2284.js +0 -4
  115. package/.next/server/chunks/3387.js +0 -1
  116. package/.next/server/chunks/3409.js +0 -5
  117. package/.next/server/chunks/4856.js +0 -1
  118. package/.next/server/chunks/5286.js +0 -1
  119. package/.next/server/chunks/6008.js +0 -1
  120. package/.next/server/chunks/6655.js +0 -1
  121. package/.next/server/chunks/6827.js +0 -6
  122. package/.next/server/chunks/733.js +0 -1
  123. package/.next/server/chunks/8714.js +0 -1
  124. package/.next/static/chunks/1441-f7a7bcb828cad81e.js +0 -2
  125. package/.next/static/chunks/1789-049743797a75226d.js +0 -1
  126. package/.next/static/chunks/3859-776bce5eb3934558.js +0 -1
  127. package/.next/static/chunks/4905-17da119bb6ca7366.js +0 -1
  128. package/.next/static/chunks/5906-091657bd6dc60021.js +0 -1
  129. package/.next/static/chunks/8581-701814526d03a782.js +0 -1
  130. package/.next/static/chunks/8616-3c9c00eb966ec5a3.js +0 -1
  131. package/.next/static/chunks/9230-b616869976d6130e.js +0 -1
  132. package/.next/static/chunks/app/[locale]/(main)/layout-09491164035426f5.js +0 -1
  133. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/error-cc5fa2b9c723e531.js +0 -1
  134. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/not-found-e2c159a89dd766a0.js +0 -1
  135. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page-a4e67a1a9927e482.js +0 -1
  136. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/error-3d602b631b90ddba.js +0 -1
  137. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/not-found-e2c159a89dd766a0.js +0 -1
  138. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/error-fb074cefeb4df365.js +0 -1
  139. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/not-found-e2c159a89dd766a0.js +0 -1
  140. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page-ba3f0b7b6ef67c78.js +0 -1
  141. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/error-ef18547df8fa1cd6.js +0 -1
  142. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/not-found-e2c159a89dd766a0.js +0 -1
  143. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-0f9867704414b457.js +0 -1
  144. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-4721eb369302b3db.js +0 -1
  145. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/page-d1de27298a90e3c1.js +0 -1
  146. package/.next/static/chunks/app/[locale]/layout-496b76cbf43bb94d.js +0 -1
  147. package/.next/static/chunks/app/[locale]/not-found-7a358268112a56b4.js +0 -1
  148. package/.next/static/chunks/app/[locale]/page-c84bd2f6052f6b73.js +0 -1
  149. package/.next/static/chunks/app/error-d01f9991f666feeb.js +0 -1
  150. package/.next/static/chunks/app/not-found-f434e3d8796c5d25.js +0 -1
  151. package/.next/static/css/20595f616e05de4b.css +0 -1
  152. /package/.next/static/{Uh_7iky5Kcx69gUoxK7Er → 5Sxax41gHsi1hBXs2G9OR}/_buildManifest.js +0 -0
  153. /package/.next/static/{Uh_7iky5Kcx69gUoxK7Er → 5Sxax41gHsi1hBXs2G9OR}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[103],{2938:(e,t,a)=>{a.d(t,{A:()=>s,o:()=>r});let r="minecraft";function n(e){if(0===e.length)return null;if(e.includes(":")){let t=e.split(":");return{namespace:t[0],path:t[1]}}return{namespace:"minecraft",path:e}}let s={toString:function(e){return"".concat(e.namespace,":").concat(e.path)},parse:n,extractPath:function(e){var t,a;return null!=(a=null==(t=n(e))?void 0:t.path)?a:e}}},7208:(e,t,a)=>{a.d(t,{AM:()=>l,Wv:()=>o,hl:()=>c});var r=a(7893),n=a(28081),s=a(63082),i=a(95745);let l=s.bL,o=s.l9,c=n.forwardRef((e,t)=>{let{className:a,align:n="center",sideOffset:l=4,...o}=e;return(0,r.jsx)(s.ZL,{children:(0,r.jsx)(s.UC,{ref:t,align:n,sideOffset:l,className:(0,i.cn)("border-tertiary bg-primary-alt text-primary-alt z-50 w-72 rounded-sm border p-4 shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",a),...o})})});c.displayName=s.UC.displayName},18526:(e,t,a)=>{a.d(t,{default:()=>l});var r=a(7893),n=a(2938),s=a(87257);function i(e){if("string"==typeof e){let t=Number(e);if(!Number.isNaN(t))return t}return e}function l(e){var t;let{asset:a,width:l,height:o,alt:c,title:d,noTitle:u,...m}=e;return(0,r.jsx)(s.default,{width:i(l),height:i(o),src:a.src,alt:c||a.id,title:u?void 0:d||(null==(t=n.A.parse(a.id))?void 0:t.path),strokeWidth:1.5,wrapper:{className:"inline sharpRendering"},...m})}},20826:(e,t,a)=>{a.r(t),a.d(t,{Tooltip:()=>o,TooltipContent:()=>d,TooltipProvider:()=>l,TooltipTrigger:()=>c});var r=a(7893),n=a(28081),s=a(30981),i=a(95745);let l=s.Kq,o=s.bL,c=s.l9,d=n.forwardRef((e,t)=>{let{className:a,sideOffset:n=4,...l}=e;return(0,r.jsx)(s.UC,{ref:t,sideOffset:n,className:(0,i.cn)("border-tertiary bg-primary-alt text-primary-alt z-50 animate-in overflow-hidden overscroll-contain rounded-md border px-3 py-1.5 text-sm shadow-md fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",a),...l})});d.displayName=s.UC.displayName},28139:(e,t,a)=>{a.d(t,{CopyButton:()=>u});var r=a(7893),n=a(31125),s=a(35982),i=a(28081),l=a(95745),o=a(82601),c=a(43875),d=a(27052);function u(e){let{text:t,showToast:a,className:u}=e,[m,p]=(0,i.useState)(!1),f=(0,d.c)("CopyButton");return(0,r.jsx)(o.$,{variant:"ghost",size:"icon",className:(0,l.cn)("text-secondary-alt opacity-0 transition-opacity duration-200 ease-in-out group-hover:opacity-100 hover:bg-gray-400/10 [&>svg]:animate-in [&>svg]:fade-in [&>svg]:fade-out",u),"aria-label":"Copy to clipboard",onClick:()=>{navigator.clipboard.writeText(t),p(!0),setTimeout(()=>p(!1),2e3),a&&c.oR.success(f("copied"))},children:m?(0,r.jsx)(n.A,{size:16}):(0,r.jsx)(s.A,{size:16})})}},28663:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var r=a(7893),n=a(28081);function s(e){let t=(0,n.useRef)(null),[a,s]=(0,n.useState)(null),i=null!==a;return(0,n.useEffect)(()=>{if(!i)return;let e=e=>{var a;if(!(null==(a=t.current)?void 0:a.contains(e.target)))return void s(null);s({x:e.clientX,y:e.clientY})},a=()=>s(null);return document.addEventListener("mousemove",e),document.addEventListener("mouseleave",a),window.addEventListener("blur",a),window.addEventListener("scroll",a,!0),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseleave",a),window.removeEventListener("blur",a),window.removeEventListener("scroll",a,!0)}},[i]),(0,r.jsxs)("div",{ref:t,onMouseEnter:e=>s({x:e.clientX,y:e.clientY}),onMouseLeave:()=>s(null),children:[a&&(0,r.jsx)("div",{className:"minetip-tooltip",style:{top:a.y+-33,left:a.x+15},children:(0,r.jsxs)("span",{className:"font-minecraft",children:[e.id,e.tag&&(0,r.jsxs)("p",{className:"m-0! mt-1! text-xs text-secondary text-shadow-none",children:["#",e.tag]})]})}),e.children]})}var i=a(95054),l=a(41736),o=a(80123),c=a(37040),d=a(95745);function u(e){var t;let{noTooltip:a,noLink:u,src:m,count:p,ctx:f,tag:h,...x}=e,[v,b]=(0,n.useState)(0),g=(0,n.useMemo)(()=>m[v],[v,m]),y=(0,n.useContext)(l.M);if((0,n.useEffect)(()=>{m.forEach(e=>{new Image().src=e.asset.src})},[m]),(0,n.useEffect)(()=>{if(0===m.length)return;let e=setInterval(()=>{y&&y.hover||b(e=>(e+1)%m.length)},2e3);return()=>clearInterval(e)},[m,y]),m.length<1)return null;let j=f?(0,i.MZ)(f,g):(0,i.cT)(g.id),w=(0,r.jsxs)("div",{...x,className:(0,d.cn)("relative shrink-0",x.className),children:[(0,r.jsx)(o.default,{noTitle:!0,asset:g.asset,alt:null!=(t=g.name)?t:g.id,className:"sharpRendering"}),p&&p>1&&(0,r.jsx)("span",{className:"sharpRendering absolute right-0 bottom-0 z-10 text-left font-minecraft text-base leading-1 text-white",style:{textShadow:"2px 2px 0 #3F3F3F"},children:p})]}),N=j&&!u?(0,r.jsx)(c.k,{href:j,rel:"noreferrer",children:w}):w;return a?N:(0,r.jsx)(s,{id:g.name||g.id,tag:h,children:N})}},37040:(e,t,a)=>{a.d(t,{k:()=>l});var r=a(7893),n=a(28081),s=a(19957),i=a.n(s);let l=(0,n.forwardRef)(function(e,t){let{prefetch:a=!1,...n}=e;return(0,r.jsx)(i(),{prefetch:a,...n,ref:t})})},39389:(e,t,a)=>{a.r(t),a.d(t,{Tabs:()=>l,TabsContent:()=>d,TabsList:()=>o,TabsTrigger:()=>c});var r=a(7893),n=a(28081),s=a(48731),i=a(95745);let l=s.bL,o=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.B8,{ref:t,className:(0,i.cn)("bg-primary-alt inline-flex h-10 items-center justify-center rounded-md p-1 text-secondary",a),...n})});o.displayName=s.B8.displayName;let c=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.l9,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center rounded-xs px-3 py-1.5 text-sm font-medium whitespace-nowrap ring-offset-background transition-all focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary data-[state=active]:shadow-xs",a),...n})});c.displayName=s.l9.displayName;let d=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.UC,{ref:t,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden",a),...n})});d.displayName=s.UC.displayName},41736:(e,t,a)=>{a.d(t,{M:()=>s,default:()=>i});var r=a(7893),n=a(28081);let s=(0,n.createContext)(null);function i(e){let{children:t}=e,[a,i]=(0,n.useState)(!1),l=(0,n.useMemo)(()=>({hover:a,setHover:i}),[a]),o=n.Children.map(t,e=>(0,n.isValidElement)(e)?(0,n.cloneElement)(e,{onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),...e.props}):e);return(0,r.jsx)(s.Provider,{value:l,children:(0,r.jsx)(r.Fragment,{children:o})})}},44064:(e,t,a)=>{a.d(t,{default:()=>i});var r=a(7893),n=a(28081),s=a(27052);function i(e){let{limit:t,content:a}=e,i=(0,s.c)("UsageContentList"),[l,o]=(0,n.useState)(!1);return(0,r.jsxs)("ul",{className:"mt-0",children:[l?a:a.slice(0,Math.min(t,a.length)),!l&&a.length>t&&(0,r.jsx)("li",{className:"text-secondary",children:(0,r.jsx)("button",{className:"decoration-1 underline-offset-4 hover:underline",onClick:()=>o(!0),children:i("more")})})]})}},55242:(e,t,a)=>{a.d(t,{default:()=>o});var r=a(7893),n=a(28081),s=a(95745),i=a(86804),l=a(27052);function o(e){let{columns:t,rows:a,embedded:o,expandedBody:c}=e,[d,u]=(0,n.useState)(!1),m=(0,l.c)("ResponsiveTable");return(0,r.jsxs)("table",{className:(0,s.cn)("[&_td]:bg-primary-alt/50",o&&"mb-0"),children:[(0,r.jsx)("thead",{className:"hidden sm:table-header-group",children:(0,r.jsx)("tr",{children:t.map(e=>(0,r.jsx)("th",{className:"",children:e.label},e.key))})}),(0,r.jsxs)("tbody",{children:[a.map((e,a)=>(0,r.jsx)("tr",{className:"block border-0 sm:table-row",children:t.map(t=>(0,r.jsxs)("td",{className:(0,s.cn)("block border-b sm:table-cell sm:border",e[t.key].className),"data-label":t.label,children:[(0,r.jsx)("div",{className:"mb-1 font-semibold text-primary-alt sm:hidden",children:t.label}),(0,r.jsx)("div",{children:e[t.key].data})]},t.key))},a)),(0,r.jsx)("tr",{children:(0,r.jsx)("td",{colSpan:t.length,className:"no-table-bs group cursor-pointer bg-table-soft!",onClick:()=>u(!d),"data-open":d,children:(0,r.jsxs)("div",{className:"my-0.5 flex w-full flex-row items-center justify-end gap-4 text-secondary",children:[(0,r.jsx)("span",{className:"text-sm",children:m("expand")}),(0,r.jsx)("span",{children:(0,r.jsx)(i.A,{className:"size-4 group-data-[open=true]:rotate-180"})})]})})}),d&&(0,r.jsx)("tr",{children:(0,r.jsx)("td",{colSpan:t.length,className:"no-table-bs no-table-padding",children:c})})]})]})}},72103:(e,t,a)=>{a.r(t),a.d(t,{default:()=>i});var r=a(7893),n=a(66701),s=a(95745);function i(e){let t=e.id;return(0,r.jsxs)("h2",{...e,className:void 0,className:(0,s.cn)(e.className,"group"),children:[e.children,t&&(0,r.jsx)("a",{href:"#".concat(t),className:"inline-block pl-2 opacity-0 transition-opacity duration-200 group-hover:opacity-100 hover:opacity-100",children:(0,r.jsx)(n.A,{className:"h-5 w-5 text-primary"})})]})}},78890:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var r=a(7893),n=a(20826),s=a(95745),i=a(7208);function l(e){let{hint:t,children:a}=e;return(0,r.jsxs)("span",{className:"inline-block",children:[(0,r.jsx)("span",{className:"sm:hidden",children:(0,r.jsxs)(i.AM,{children:[(0,r.jsx)(i.Wv,{className:(0,s.cn)("underline decoration-dotted decoration-2 underline-offset-2"),children:a}),(0,r.jsx)(i.hl,{side:"top",className:(0,s.cn)("slim-scrollbar max-h-56 max-w-[min(32rem,var(--radix-popper-available-width))]","animate-none! overflow-y-auto px-3 py-1.5 text-sm break-words whitespace-normal"),children:t})]})}),(0,r.jsx)("span",{className:"hidden sm:block",children:(0,r.jsx)(n.TooltipProvider,{delayDuration:200,children:(0,r.jsxs)(n.Tooltip,{children:[(0,r.jsx)(n.TooltipTrigger,{className:(0,s.cn)("cursor-help underline decoration-dotted decoration-2 underline-offset-2 select-text"),children:a}),(0,r.jsx)(n.TooltipContent,{side:"top",className:(0,s.cn)("slim-scrollbar max-h-56 max-w-[min(32rem,var(--radix-popper-available-width))] animate-none!","overflow-y-auto px-3 py-1.5 text-sm break-words whitespace-normal"),children:t})]})})})]})}},80123:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var r=a(7893),n=a(28081),s=a(2938),i=a(95745);function l(e){var t;let{asset:a,width:l,height:o,alt:c,title:d,noTitle:u,...m}=e,p=(0,n.useRef)(null),[f,h]=(0,n.useState)(a.src);return(0,n.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{h("/static/missing_item.png")};return e.addEventListener("error",t),e.complete&&0===e.naturalWidth&&t(),()=>{e.removeEventListener("error",t)}},[a.src]),(0,r.jsx)("div",{...m,className:(0,i.cn)("overflow-hidden",m.className),style:{width:"".concat(l||32,"px"),height:"".concat(o||32,"px")},children:(0,r.jsx)("img",{ref:p,width:l||32,height:o||32,src:f,alt:c||a.id,title:u?void 0:d||(null==(t=s.A.parse(a.id))?void 0:t.path),loading:"eager"})})}},82601:(e,t,a)=>{a.d(t,{$:()=>c});var r=a(7893),n=a(28081),s=a(85126),i=a(8295),l=a(95745);let o=(0,i.F)("inline-flex items-center justify-center rounded-sm text-sm font-medium whitespace-nowrap ring-offset-background transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"border border-primary bg-primary text-primary hover:bg-secondary/90",destructive:"border-destructive-secondary border bg-primary bg-secondary font-semibold text-destructive hover:bg-secondary/80 hover:text-destructive/90 data-[pending=true]:text-destructive/90",destructiveSecondary:"text-primary-alt hover:text-primary-alt/90 bg-destructive",outline:"border-quaternary hover:text-primary-alt border bg-primary hover:bg-secondary",secondary:"text-secondary-alt bg-secondary hover:bg-secondary/80",ghost:"hover:text-primary-alt hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-sm px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=n.forwardRef((e,t)=>{let{className:a,variant:n,size:i,asChild:c=!1,...d}=e,u=c?s.DX:"button";return(0,r.jsx)(u,{className:(0,l.cn)(o({variant:n,size:i,className:a})),ref:t,...d})});c.displayName="Button"},83457:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});let r={src:"/_next/static/media/crafting_background.158942b1.png",height:136,width:260,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAGFBMVEWampqnp6eioqLKysqLi4uSkpK+vr64uLgHQ3rrAAAAA3RSTlP+/v6VFoksAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJElEQVR4nCXGsQEAMAzCMBNI+P/jDtUkBmRbkIy7+TkBu9MeDwXFAF/HY1pFAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},86373:(e,t,a)=>{a.d(t,{GL:()=>c,ww:()=>o,YE:()=>d,default:()=>u});var r=a(7893),n=a(28081);a(3317);var s=a(76089);a(82637);let i={userRequiresCookieConsent:function(){return!1}};var l=a(27052);let o=(0,n.createContext)(null),c="experience",d="yt_embeds";function u(e){let{children:t}=e,[a,u]=(0,n.useState)(!0),[m,p]=(0,n.useState)(!1),f=(0,l.c)("CookieConsent");function h(){p(s.tj(d,c))}return(0,n.useEffect)(()=>{let e=i.userRequiresCookieConsent();u(e),e&&s.eF({revision:1,guiOptions:{consentModal:{layout:"box inline"}},onFirstConsent:()=>{h()},onChange:()=>{h()},categories:{necessary:{enabled:!0,readOnly:!0},[c]:{services:{[d]:{label:f("sections.experience.services.embeds"),onAccept:()=>p(!0),onReject:()=>p(!1)}}}},language:{default:"en",translations:{en:{consentModal:{title:f("popup.title"),description:f("popup.description"),acceptAllBtn:f("actions.accept_all"),acceptNecessaryBtn:f("actions.reject_all"),showPreferencesBtn:f("popup.show_preferences")},preferencesModal:{title:f("modal.title"),acceptAllBtn:f("actions.accept_all"),acceptNecessaryBtn:f("actions.reject_all"),savePreferencesBtn:f("modal.save"),closeIconLabel:f("modal.close"),sections:[{title:f("sections.summary.title"),description:f("sections.summary.description")},{title:f("sections.necessary.title"),description:f("sections.necessary.description"),linkedCategory:"necessary"},{title:f("sections.experience.title"),description:f("sections.experience.description"),linkedCategory:"experience"},{title:f("sections.more_info.title"),description:f.raw("sections.more_info.description")}]}}}}})},[]),(0,r.jsx)(o.Provider,{value:{enableCookieManagement:a,hasConsentToEmbeddedVideos:m},children:t})}},87257:(e,t,a)=>{a.d(t,{default:()=>l});var r=a(7893),n=a(28081),s=a(96286),i=a(95745);function l(e){let{src:t,alt:a,width:l,height:o,fbWidth:c,fbHeight:d,className:u,title:m,strokeWidth:p=1,fixedSize:f,wrapper:h,fbIcon:x=s.A,fallback:v=(0,r.jsx)(x,{strokeWidth:p,className:(0,i.cn)(u,"text-secondary opacity-20"),width:c||l||32,height:d||o||32}),...b}=e,[g,y]=(0,n.useState)(!1);return(0,r.jsxs)("span",{title:m,style:f?{width:"".concat(l,"px"),height:"".concat(o,"px")}:void 0,...h,className:(0,i.cn)("shrink-0 overflow-hidden",null==h?void 0:h.className),children:[t&&!g&&(0,r.jsx)("img",{src:t,alt:a||"",width:l,height:o,className:u,onError:()=>y(!0),...b}),(!t||g)&&v]})}},92014:(e,t,a)=>{a.d(t,{default:()=>u});var r=a(7893),n=a(96294),s=a(82601),i=a(95745),l=a(28081),o=a(86373),c=a(76089),d=a(27052);function u(e){let{id:t,children:a}=e,u=(0,d.c)("VideoEmbedPlaceholder"),m=(0,l.useContext)(o.ww);if(!m||!m.enableCookieManagement||(null==m?void 0:m.hasConsentToEmbeddedVideos))return a;let p=t&&t.includes("?")?t.split("?")[0]:t,f="https://img.youtube.com/vi/".concat(t,"/maxresdefault.jpg");return(0,r.jsxs)("div",{className:(0,i.cn)("video-embed relative flex rounded-sm border border-tertiary bg-primary-alt text-center"),children:[(0,r.jsx)("img",{src:f,alt:"thumbnail",width:560}),(0,r.jsxs)("div",{className:"absolute-center flex h-full w-full flex-col items-center justify-center gap-5 bg-primary/80",children:[(0,r.jsx)(n.A,{className:"size-12 text-secondary-alt",strokeWidth:1.5}),(0,r.jsx)("div",{className:"text-xl",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{children:u("title")}),(0,r.jsx)("span",{className:"text-sm text-secondary",children:u("description")})]})}),(0,r.jsxs)("div",{className:"mt-2 flex flex-row flex-wrap justify-center gap-3",children:[(0,r.jsx)(s.$,{onClick:()=>void c.gB(o.YE,o.GL),children:u("accept")}),p&&(0,r.jsx)("a",{href:"https://www.youtube.com/watch?v=".concat(p),target:"_blank",rel:"noreferrer",children:(0,r.jsx)(s.$,{variant:"outline",children:u("watch")})})]})]})]})}},95054:(e,t,a)=>{a.d(t,{M$:()=>o,MZ:()=>n,cT:()=>l,gZ:()=>i,sw:()=>s});var r=a(2938);function n(e,t){var a;return null!=(a=l(t.id))?a:null!=t.page_ref?s(t.page_ref,e):null}function s(e,t){let a="slug"in t?t.slug:t.id;return"/".concat(t.locale,"/project/").concat(a,"/").concat(t.version,"/content/").concat(e)}function i(e,t){return"/".concat(e,"/project/").concat(t,"/latest")}function l(e){let t=r.A.parse(e);return(null==t?void 0:t.namespace)===r.o&&e.startsWith(r.o+":")?"https://minecraft.wiki/w/".concat(t.path):null}function o(e,t){return"/".concat(t.locale,"/project/").concat(t.id,"/").concat(t.version,"/docs/").concat(e)}},95745:(e,t,a)=>{a.d(t,{cn:()=>s});var r=a(3135),n=a(96915);function s(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,n.QP)((0,r.$)(t))}},96090:(e,t,a)=>{a.d(t,{default:()=>i});var r=a(7893),n=a(26919);a(28081);var s=a(95745);function i(e){let{className:t,active:a,animate:i=!0}=e;return(0,r.jsx)(n.A,{className:(0,s.cn)(t,"shrink-0 data-[rotate=true]:rotate-180",i&&"transition-transform duration-200"),"data-rotate":a?"true":"false"})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[103],{2938:(e,t,a)=>{a.d(t,{A:()=>s,o:()=>r});let r="minecraft";function n(e){if(0===e.length)return null;if(e.includes(":")){let t=e.split(":");return{namespace:t[0],path:t[1]}}return{namespace:"minecraft",path:e}}let s={toString:function(e){return"".concat(e.namespace,":").concat(e.path)},parse:n,extractPath:function(e){var t,a;return null!=(a=null==(t=n(e))?void 0:t.path)?a:e}}},7208:(e,t,a)=>{a.d(t,{AM:()=>l,Wv:()=>o,hl:()=>c});var r=a(7893),n=a(28081),s=a(63082),i=a(95745);let l=s.bL,o=s.l9,c=n.forwardRef((e,t)=>{let{className:a,align:n="center",sideOffset:l=4,...o}=e;return(0,r.jsx)(s.ZL,{children:(0,r.jsx)(s.UC,{ref:t,align:n,sideOffset:l,className:(0,i.cn)("border-tertiary bg-primary-alt text-primary-alt z-50 w-72 rounded-sm border p-4 shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",a),...o})})});c.displayName=s.UC.displayName},18526:(e,t,a)=>{a.d(t,{default:()=>l});var r=a(7893),n=a(2938),s=a(87257);function i(e){if("string"==typeof e){let t=Number(e);if(!Number.isNaN(t))return t}return e}function l(e){var t;let{asset:a,width:l,height:o,alt:c,title:d,noTitle:u,...m}=e;return(0,r.jsx)(s.default,{width:i(l),height:i(o),src:a.src,alt:c||a.id,title:u?void 0:d||(null==(t=n.A.parse(a.id))?void 0:t.path),strokeWidth:1.5,wrapper:{className:"inline sharpRendering"},...m})}},20826:(e,t,a)=>{a.r(t),a.d(t,{Tooltip:()=>o,TooltipContent:()=>d,TooltipProvider:()=>l,TooltipTrigger:()=>c});var r=a(7893),n=a(28081),s=a(30981),i=a(95745);let l=s.Kq,o=s.bL,c=s.l9,d=n.forwardRef((e,t)=>{let{className:a,sideOffset:n=4,...l}=e;return(0,r.jsx)(s.UC,{ref:t,sideOffset:n,className:(0,i.cn)("border-tertiary bg-primary-alt text-primary-alt z-50 animate-in overflow-hidden overscroll-contain rounded-md border px-3 py-1.5 text-sm shadow-md fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",a),...l})});d.displayName=s.UC.displayName},28139:(e,t,a)=>{a.d(t,{CopyButton:()=>u});var r=a(7893),n=a(53208),s=a(41337),i=a(28081),l=a(95745),o=a(82601),c=a(43875),d=a(46815);function u(e){let{text:t,showToast:a,className:u}=e,[m,p]=(0,i.useState)(!1),f=(0,d.c)("CopyButton");return(0,r.jsx)(o.$,{variant:"ghost",size:"icon",className:(0,l.cn)("text-secondary-alt opacity-0 transition-opacity duration-200 ease-in-out group-hover:opacity-100 hover:bg-gray-400/10 [&>svg]:animate-in [&>svg]:fade-in [&>svg]:fade-out",u),"aria-label":"Copy to clipboard",onClick:()=>{navigator.clipboard.writeText(t),p(!0),setTimeout(()=>p(!1),2e3),a&&c.oR.success(f("copied"))},children:m?(0,r.jsx)(n.A,{size:16}):(0,r.jsx)(s.A,{size:16})})}},28663:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var r=a(7893),n=a(28081);function s(e){let t=(0,n.useRef)(null),[a,s]=(0,n.useState)(null),i=null!==a;return(0,n.useEffect)(()=>{if(!i)return;let e=e=>{var a;if(!(null==(a=t.current)?void 0:a.contains(e.target)))return void s(null);s({x:e.clientX,y:e.clientY})},a=()=>s(null);return document.addEventListener("mousemove",e),document.addEventListener("mouseleave",a),window.addEventListener("blur",a),window.addEventListener("scroll",a,!0),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseleave",a),window.removeEventListener("blur",a),window.removeEventListener("scroll",a,!0)}},[i]),(0,r.jsxs)("div",{ref:t,onMouseEnter:e=>s({x:e.clientX,y:e.clientY}),onMouseLeave:()=>s(null),children:[a&&(0,r.jsx)("div",{className:"minetip-tooltip",style:{top:a.y+-33,left:a.x+15},children:(0,r.jsxs)("span",{className:"font-minecraft",children:[e.id,e.tag&&(0,r.jsxs)("p",{className:"m-0! mt-1! text-xs text-secondary text-shadow-none",children:["#",e.tag]})]})}),e.children]})}var i=a(95054),l=a(41736),o=a(80123),c=a(37040),d=a(95745);function u(e){var t;let{noTooltip:a,noLink:u,src:m,count:p,ctx:f,tag:h,...x}=e,[v,b]=(0,n.useState)(0),g=(0,n.useMemo)(()=>m[v],[v,m]),y=(0,n.useContext)(l.M);if((0,n.useEffect)(()=>{m.forEach(e=>{new Image().src=e.asset.src})},[m]),(0,n.useEffect)(()=>{if(0===m.length)return;let e=setInterval(()=>{y&&y.hover||b(e=>(e+1)%m.length)},2e3);return()=>clearInterval(e)},[m,y]),m.length<1)return null;let j=f?(0,i.MZ)(f,g):(0,i.cT)(g.id),w=(0,r.jsxs)("div",{...x,className:(0,d.cn)("relative shrink-0",x.className),children:[(0,r.jsx)(o.default,{noTitle:!0,asset:g.asset,alt:null!=(t=g.name)?t:g.id,className:"sharpRendering"}),p&&p>1&&(0,r.jsx)("span",{className:"sharpRendering absolute right-0 bottom-0 z-10 text-left font-minecraft text-base leading-1 text-white",style:{textShadow:"2px 2px 0 #3F3F3F"},children:p})]}),N=j&&!u?(0,r.jsx)(c.k,{href:j,rel:"noreferrer",children:w}):w;return a?N:(0,r.jsx)(s,{id:g.name||g.id,tag:h,children:N})}},37040:(e,t,a)=>{a.d(t,{k:()=>l});var r=a(7893),n=a(28081),s=a(19957),i=a.n(s);let l=(0,n.forwardRef)(function(e,t){let{prefetch:a=!1,...n}=e;return(0,r.jsx)(i(),{prefetch:a,...n,ref:t})})},39389:(e,t,a)=>{a.r(t),a.d(t,{Tabs:()=>l,TabsContent:()=>d,TabsList:()=>o,TabsTrigger:()=>c});var r=a(7893),n=a(28081),s=a(48731),i=a(95745);let l=s.bL,o=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.B8,{ref:t,className:(0,i.cn)("bg-primary-alt inline-flex h-10 items-center justify-center rounded-md p-1 text-secondary",a),...n})});o.displayName=s.B8.displayName;let c=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.l9,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center rounded-xs px-3 py-1.5 text-sm font-medium whitespace-nowrap ring-offset-background transition-all focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary data-[state=active]:shadow-xs",a),...n})});c.displayName=s.l9.displayName;let d=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.UC,{ref:t,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden",a),...n})});d.displayName=s.UC.displayName},41736:(e,t,a)=>{a.d(t,{M:()=>s,default:()=>i});var r=a(7893),n=a(28081);let s=(0,n.createContext)(null);function i(e){let{children:t}=e,[a,i]=(0,n.useState)(!1),l=(0,n.useMemo)(()=>({hover:a,setHover:i}),[a]),o=n.Children.map(t,e=>(0,n.isValidElement)(e)?(0,n.cloneElement)(e,{onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),...e.props}):e);return(0,r.jsx)(s.Provider,{value:l,children:(0,r.jsx)(r.Fragment,{children:o})})}},44064:(e,t,a)=>{a.d(t,{default:()=>i});var r=a(7893),n=a(28081),s=a(46815);function i(e){let{limit:t,content:a}=e,i=(0,s.c)("UsageContentList"),[l,o]=(0,n.useState)(!1);return(0,r.jsxs)("ul",{className:"mt-0",children:[l?a:a.slice(0,Math.min(t,a.length)),!l&&a.length>t&&(0,r.jsx)("li",{className:"text-secondary",children:(0,r.jsx)("button",{className:"decoration-1 underline-offset-4 hover:underline",onClick:()=>o(!0),children:i("more")})})]})}},55242:(e,t,a)=>{a.d(t,{default:()=>o});var r=a(7893),n=a(28081),s=a(95745),i=a(78853),l=a(46815);function o(e){let{columns:t,rows:a,embedded:o,expandedBody:c}=e,[d,u]=(0,n.useState)(!1),m=(0,l.c)("ResponsiveTable");return(0,r.jsxs)("table",{className:(0,s.cn)("[&_td]:bg-primary-alt/50",o&&"mb-0"),children:[(0,r.jsx)("thead",{className:"hidden sm:table-header-group",children:(0,r.jsx)("tr",{children:t.map(e=>(0,r.jsx)("th",{className:"",children:e.label},e.key))})}),(0,r.jsxs)("tbody",{children:[a.map((e,a)=>(0,r.jsx)("tr",{className:"block border-0 sm:table-row",children:t.map(t=>(0,r.jsxs)("td",{className:(0,s.cn)("block border-b sm:table-cell sm:border",e[t.key].className),"data-label":t.label,children:[(0,r.jsx)("div",{className:"mb-1 font-semibold text-primary-alt sm:hidden",children:t.label}),(0,r.jsx)("div",{children:e[t.key].data})]},t.key))},a)),(0,r.jsx)("tr",{children:(0,r.jsx)("td",{colSpan:t.length,className:"no-table-bs group cursor-pointer bg-table-soft!",onClick:()=>u(!d),"data-open":d,children:(0,r.jsxs)("div",{className:"my-0.5 flex w-full flex-row items-center justify-end gap-4 text-secondary",children:[(0,r.jsx)("span",{className:"text-sm",children:m("expand")}),(0,r.jsx)("span",{children:(0,r.jsx)(i.A,{className:"size-4 group-data-[open=true]:rotate-180"})})]})})}),d&&(0,r.jsx)("tr",{children:(0,r.jsx)("td",{colSpan:t.length,className:"no-table-bs no-table-padding",children:c})})]})]})}},72103:(e,t,a)=>{a.r(t),a.d(t,{default:()=>i});var r=a(7893),n=a(21082),s=a(95745);function i(e){let t=e.id;return(0,r.jsxs)("h2",{...e,className:void 0,className:(0,s.cn)(e.className,"group"),children:[e.children,t&&(0,r.jsx)("a",{href:"#".concat(t),className:"inline-block pl-2 opacity-0 transition-opacity duration-200 group-hover:opacity-100 hover:opacity-100",children:(0,r.jsx)(n.A,{className:"h-5 w-5 text-primary"})})]})}},78890:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var r=a(7893),n=a(20826),s=a(95745),i=a(7208);function l(e){let{hint:t,children:a}=e;return(0,r.jsxs)("span",{className:"inline-block",children:[(0,r.jsx)("span",{className:"sm:hidden",children:(0,r.jsxs)(i.AM,{children:[(0,r.jsx)(i.Wv,{className:(0,s.cn)("underline decoration-dotted decoration-2 underline-offset-2"),children:a}),(0,r.jsx)(i.hl,{side:"top",className:(0,s.cn)("slim-scrollbar max-h-56 max-w-[min(32rem,var(--radix-popper-available-width))]","animate-none! overflow-y-auto px-3 py-1.5 text-sm break-words whitespace-normal"),children:t})]})}),(0,r.jsx)("span",{className:"hidden sm:block",children:(0,r.jsx)(n.TooltipProvider,{delayDuration:200,children:(0,r.jsxs)(n.Tooltip,{children:[(0,r.jsx)(n.TooltipTrigger,{className:(0,s.cn)("cursor-help underline decoration-dotted decoration-2 underline-offset-2 select-text"),children:a}),(0,r.jsx)(n.TooltipContent,{side:"top",className:(0,s.cn)("slim-scrollbar max-h-56 max-w-[min(32rem,var(--radix-popper-available-width))] animate-none!","overflow-y-auto px-3 py-1.5 text-sm break-words whitespace-normal"),children:t})]})})})]})}},80123:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var r=a(7893),n=a(28081),s=a(2938),i=a(95745);function l(e){var t;let{asset:a,width:l,height:o,alt:c,title:d,noTitle:u,...m}=e,p=(0,n.useRef)(null),[f,h]=(0,n.useState)(a.src);return(0,n.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{h("/static/missing_item.png")};return e.addEventListener("error",t),e.complete&&0===e.naturalWidth&&t(),()=>{e.removeEventListener("error",t)}},[a.src]),(0,r.jsx)("div",{...m,className:(0,i.cn)("overflow-hidden",m.className),style:{width:"".concat(l||32,"px"),height:"".concat(o||32,"px")},children:(0,r.jsx)("img",{ref:p,width:l||32,height:o||32,src:f,alt:c||a.id,title:u?void 0:d||(null==(t=s.A.parse(a.id))?void 0:t.path),loading:"eager"})})}},82601:(e,t,a)=>{a.d(t,{$:()=>c});var r=a(7893),n=a(28081),s=a(85126),i=a(8295),l=a(95745);let o=(0,i.F)("inline-flex items-center justify-center rounded-sm text-sm font-medium whitespace-nowrap ring-offset-background transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"border border-primary bg-primary text-primary hover:bg-secondary/90",destructive:"border-destructive-secondary border bg-primary bg-secondary font-semibold text-destructive hover:bg-secondary/80 hover:text-destructive/90 data-[pending=true]:text-destructive/90",destructiveSecondary:"text-primary-alt hover:text-primary-alt/90 bg-destructive",outline:"border-quaternary hover:text-primary-alt border bg-primary hover:bg-secondary",secondary:"text-secondary-alt bg-secondary hover:bg-secondary/80",ghost:"hover:text-primary-alt hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-sm px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=n.forwardRef((e,t)=>{let{className:a,variant:n,size:i,asChild:c=!1,...d}=e,u=c?s.DX:"button";return(0,r.jsx)(u,{className:(0,l.cn)(o({variant:n,size:i,className:a})),ref:t,...d})});c.displayName="Button"},83457:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});let r={src:"/_next/static/media/crafting_background.158942b1.png",height:136,width:260,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAGFBMVEWampqnp6eioqLKysqLi4uSkpK+vr64uLgHQ3rrAAAAA3RSTlP+/v6VFoksAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJElEQVR4nCXGsQEAMAzCMBNI+P/jDtUkBmRbkIy7+TkBu9MeDwXFAF/HY1pFAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},86373:(e,t,a)=>{a.d(t,{GL:()=>c,ww:()=>o,YE:()=>d,default:()=>u});var r=a(7893),n=a(28081);a(3317);var s=a(76089);a(82637);let i={userRequiresCookieConsent:function(){return!1}};var l=a(46815);let o=(0,n.createContext)(null),c="experience",d="yt_embeds";function u(e){let{children:t}=e,[a,u]=(0,n.useState)(!0),[m,p]=(0,n.useState)(!1),f=(0,l.c)("CookieConsent");function h(){p(s.tj(d,c))}return(0,n.useEffect)(()=>{let e=i.userRequiresCookieConsent();u(e),e&&s.eF({revision:1,guiOptions:{consentModal:{layout:"box inline"}},onFirstConsent:()=>{h()},onChange:()=>{h()},categories:{necessary:{enabled:!0,readOnly:!0},[c]:{services:{[d]:{label:f("sections.experience.services.embeds"),onAccept:()=>p(!0),onReject:()=>p(!1)}}}},language:{default:"en",translations:{en:{consentModal:{title:f("popup.title"),description:f("popup.description"),acceptAllBtn:f("actions.accept_all"),acceptNecessaryBtn:f("actions.reject_all"),showPreferencesBtn:f("popup.show_preferences")},preferencesModal:{title:f("modal.title"),acceptAllBtn:f("actions.accept_all"),acceptNecessaryBtn:f("actions.reject_all"),savePreferencesBtn:f("modal.save"),closeIconLabel:f("modal.close"),sections:[{title:f("sections.summary.title"),description:f("sections.summary.description")},{title:f("sections.necessary.title"),description:f("sections.necessary.description"),linkedCategory:"necessary"},{title:f("sections.experience.title"),description:f("sections.experience.description"),linkedCategory:"experience"},{title:f("sections.more_info.title"),description:f.raw("sections.more_info.description")}]}}}}})},[]),(0,r.jsx)(o.Provider,{value:{enableCookieManagement:a,hasConsentToEmbeddedVideos:m},children:t})}},87257:(e,t,a)=>{a.d(t,{default:()=>l});var r=a(7893),n=a(28081),s=a(38275),i=a(95745);function l(e){let{src:t,alt:a,width:l,height:o,fbWidth:c,fbHeight:d,className:u,title:m,strokeWidth:p=1,fixedSize:f,wrapper:h,fbIcon:x=s.A,fallback:v=(0,r.jsx)(x,{strokeWidth:p,className:(0,i.cn)(u,"text-secondary opacity-20"),width:c||l||32,height:d||o||32}),...b}=e,[g,y]=(0,n.useState)(!1);return(0,r.jsxs)("span",{title:m,style:f?{width:"".concat(l,"px"),height:"".concat(o,"px")}:void 0,...h,className:(0,i.cn)("shrink-0 overflow-hidden",null==h?void 0:h.className),children:[t&&!g&&(0,r.jsx)("img",{src:t,alt:a||"",width:l,height:o,className:u,onError:()=>y(!0),...b}),(!t||g)&&v]})}},92014:(e,t,a)=>{a.d(t,{default:()=>u});var r=a(7893),n=a(57503),s=a(82601),i=a(95745),l=a(28081),o=a(86373),c=a(76089),d=a(46815);function u(e){let{id:t,children:a}=e,u=(0,d.c)("VideoEmbedPlaceholder"),m=(0,l.useContext)(o.ww);if(!m||!m.enableCookieManagement||(null==m?void 0:m.hasConsentToEmbeddedVideos))return a;let p=t&&t.includes("?")?t.split("?")[0]:t,f="https://img.youtube.com/vi/".concat(t,"/maxresdefault.jpg");return(0,r.jsxs)("div",{className:(0,i.cn)("video-embed relative flex rounded-sm border border-tertiary bg-primary-alt text-center"),children:[(0,r.jsx)("img",{src:f,alt:"thumbnail",width:560}),(0,r.jsxs)("div",{className:"absolute-center flex h-full w-full flex-col items-center justify-center gap-5 bg-primary/80",children:[(0,r.jsx)(n.A,{className:"size-12 text-secondary-alt",strokeWidth:1.5}),(0,r.jsx)("div",{className:"text-xl",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{children:u("title")}),(0,r.jsx)("span",{className:"text-sm text-secondary",children:u("description")})]})}),(0,r.jsxs)("div",{className:"mt-2 flex flex-row flex-wrap justify-center gap-3",children:[(0,r.jsx)(s.$,{onClick:()=>void c.gB(o.YE,o.GL),children:u("accept")}),p&&(0,r.jsx)("a",{href:"https://www.youtube.com/watch?v=".concat(p),target:"_blank",rel:"noreferrer",children:(0,r.jsx)(s.$,{variant:"outline",children:u("watch")})})]})]})]})}},95054:(e,t,a)=>{a.d(t,{M$:()=>o,MZ:()=>n,cT:()=>l,gZ:()=>i,sw:()=>s});var r=a(2938);function n(e,t){var a;return null!=(a=l(t.id))?a:null!=t.page_ref?s(t.page_ref,e):null}function s(e,t){let a="slug"in t?t.slug:t.id;return"/".concat(t.locale,"/project/").concat(a,"/").concat(t.version,"/content/").concat(e)}function i(e,t){return"/".concat(e,"/project/").concat(t,"/latest")}function l(e){let t=r.A.parse(e);return(null==t?void 0:t.namespace)===r.o&&e.startsWith(r.o+":")?"https://minecraft.wiki/w/".concat(t.path):null}function o(e,t){return"/".concat(t.locale,"/project/").concat(t.id,"/").concat(t.version,"/docs/").concat(e)}},95745:(e,t,a)=>{a.d(t,{cn:()=>s});var r=a(3135),n=a(96915);function s(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,n.QP)((0,r.$)(t))}},96090:(e,t,a)=>{a.d(t,{default:()=>i});var r=a(7893),n=a(10108);a(28081);var s=a(95745);function i(e){let{className:t,active:a,animate:i=!0}=e;return(0,r.jsx)(n.A,{className:(0,s.cn)(t,"shrink-0 data-[rotate=true]:rotate-180",i&&"transition-transform duration-200"),"data-rotate":a?"true":"false"})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1303],{3192:(e,t,r)=>{r.d(t,{Ay:()=>o,F3:()=>a,nQ:()=>l});var n=r(47034);let a="en_us",l="en-US",s=[{name:"English",code:"en_us",prefix:"en",file:"en_US",internal:"en-US",icon:n.US},{name:"Čeština",code:"cs_cz",prefix:"cs",file:"cs_CZ",internal:"cs-CZ",icon:n.CZ},{name:"Deutsch",code:"de_de",prefix:"de",file:"de_DE",internal:"de-DE",icon:n.DE},{name:"Espa\xf1ol",code:"es_es",prefix:"es",file:"es_ES",internal:"es-ES",icon:n.ES,crowdin:"es-ES"},{name:"Fran\xe7ais",code:"fr_fr",prefix:"fr",file:"fr_FR",internal:"fr-FR",icon:n.FR},{name:"Magyar",code:"hu_hu",prefix:"hu",file:"hu_HU",internal:"hu-HU",icon:n.HU},{name:"Italiano",code:"it_it",prefix:"it",file:"it_IT",internal:"it-IT",icon:n.IT},{name:"日本語",code:"ja_jp",prefix:"ja",file:"ja_JP",internal:"ja-JP",icon:n.JP},{name:"한국어",code:"ko_kr",prefix:"ko",file:"ko_KR",internal:"ko-KR",icon:n.KR},{name:"Bahasa Melayu",code:"ms_my",prefix:"ms",file:"ms_MY",internal:"ms-MY",icon:n.MY},{name:"بهاس ملايو",code:"zml_arab",prefix:"ms_Ar",file:"ms_Arab",internal:"ms-Arab",icon:n.MY,crowdin:"ms-Arab",rtl:!0},{name:"Polski",code:"pl_pl",prefix:"pl",file:"pl_PL",internal:"pl-PL",icon:n.PL},{name:"Русский",code:"ru_ru",prefix:"ru",file:"ru_RU",internal:"ru-RU",icon:n.RU},{name:"Svenska",code:"sv_se",prefix:"sv",file:"sv_SE",internal:"sv-SE",icon:n.SE,crowdin:"sv-SE"},{name:"T\xfcrk\xe7e",code:"tr_tr",prefix:"tr",file:"tr_TR",internal:"tr-TR",icon:n.TR},{name:"Українська",code:"uk_ua",prefix:"uk",file:"uk_UA",internal:"uk-UA",icon:n.UA},{name:"简体中文",code:"zh_cn",prefix:"zh_cn",file:"zh_CN",internal:"zh-CN",icon:n.CN,crowdin:"zh-CN"},{name:"繁體中文",code:"zh_tw",prefix:"zh_tw",file:"zh_TW",internal:"zh-TW",icon:n.TW,crowdin:"zh-TW"}];function i(e){return s.find(t=>t.prefix===e)}let o={getAvailableLocales:function(){return s},getLanguagePaths:function(){return s.map(e=>e.prefix)},getInternalCodes:function(){return s.map(e=>e.internal)},getPathPrefixes:function(){return s.reduce((e,t)=>({...e,[t.internal]:"/"+t.prefix}),{})},getForUrlParam:i,getForInternalCode:function(e){return s.find(t=>t.internal===e)},getCrowdinLanguageId:function(e){let t=i(e);return(null==t?void 0:t.crowdin)||(null==t?void 0:t.prefix)},isRTL:function(e){var t;return(null==(t=i(e))?void 0:t.rtl)||!1},actualLocale:function(e){var t;if(!e||e===a)return null;let r=i(e);return null!=(t=null==r?void 0:r.file.toLowerCase())?t:null},resolveParam:function(e){return i(e).code},getUrlPrefixForCode:function(e){var t;return null==(t=s.find(t=>t.code===e))?void 0:t.prefix},getForCode:function(e){return s.find(t=>t.code===e)}}},11128:(e,t,r)=>{r.d(t,{A:()=>n});function n(e){return e}},18622:(e,t,r)=>{r.d(t,{default:()=>i});var n=r(7893),a=r(95745),l=r(34882);let s=(0,r(28081).forwardRef)(function(e,t){let{prefetch:r=!1,...a}=e;return(0,n.jsx)(l.XO,{prefetch:r,...a,ref:t})});function i(e){let{href:t,children:r}=e,i=(0,l.a8)();return(0,n.jsx)(s,{href:t,className:(0,a.cn)("flex items-center rounded-md px-3 py-2 text-sm text-secondary hover:bg-secondary hover:text-primary-alt",i===t&&"bg-secondary text-primary-alt"),children:r})}},21559:(e,t,r)=>{r.d(t,{default:()=>i});var n=r(7893),a=r(95745),l=r(28081),s=r(45585);let i=(0,l.forwardRef)(function(e,t){let{title:r,className:i,innerClassName:o,tagName:c,children:d,type:u,solid:f}=e,{open:m}=(0,l.useContext)(s.p);return(0,n.jsx)("aside",{"data-open":m==u,className:(0,a.cn)(i,"fixed z-30 h-[88vh] w-full overflow-hidden border-tertiary bg-primary transition-all duration-300 ease-in-out sm:h-[calc(100vh_-_9.5rem)] lg:top-[6rem]! lg:transition-none",f?"lg:static":"lg:sticky","left"==u&&"border-r data-[open=false]:-translate-x-full data-[open=false]:border-0 lg:border-r-0 lg:data-[open=false]:-translate-x-0","right"==u&&"border-l data-[open=false]:translate-x-full data-[open=false]:border-0 lg:border-l-0 lg:data-[open=false]:translate-x-0"),children:(0,n.jsxs)(c||"div",{ref:t,className:(0,a.cn)("scrollbar-thumb-secondary scrollbar-track-secondary/20 scrollbar-thin h-full space-y-2 overflow-y-auto p-4",o),children:[(0,n.jsx)("div",{className:"mb-4 flex items-center justify-between",children:(0,n.jsx)("h3",{className:"text-sm font-semibold text-secondary",children:r})}),d]})})})},22167:(e,t,r)=>{r.d(t,{default:()=>u});var n=r(7893),a=r(28081),l=r(45585),s=r(34900),i=r(97276);let o=(0,i.A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),c=(0,i.A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var d=r(95745);function u(e){let{showRightSidebar:t,children:r}=e,{open:i,setOpen:u}=(0,a.useContext)(l.p);return(0,n.jsxs)("header",{className:"flex w-full items-center justify-between border-b border-tertiary px-0 pt-1 pb-2 lg:hidden",children:[(0,n.jsx)("button",{onClick:()=>u("left"==i?"none":"left"),className:"text-primary",children:"left"===i?(0,n.jsx)(s.A,{className:"h-6 w-6"}):(0,n.jsx)(o,{className:"h-6 w-6"})}),(0,n.jsx)("h1",{className:"text-lg font-bold",children:r}),(0,n.jsx)("button",{onClick:()=>u("right"==i?"none":"right"),className:(0,d.cn)("text-primary",!1===t&&"invisible"),children:"right"===i?(0,n.jsx)(s.A,{className:"h-6 w-6"}):(0,n.jsx)(c,{className:"h-6 w-6"})})]})}},24989:(e,t,r)=>{r.d(t,{default:()=>c});var n=r(7893),a=r(37347),l=r(78352),s=r(71676),i=r(82601),o=r(46815);function c(){let[e,t]=(0,a.ZA)("tab"),r=(0,o.c)("DocsEntryTabs"),c=async e=>{await t(e),window.scrollTo(0,0)};return(0,n.jsx)("div",{className:"flex h-full flex-col items-center justify-center",children:"history"===e?(0,n.jsx)(i.$,{title:r("home"),variant:"ghost",size:"icon",className:"size-8",onClick:()=>c("home"),children:(0,n.jsx)(l.A,{className:"size-4"})}):(0,n.jsx)(i.$,{title:r("history"),variant:"ghost",size:"icon",className:"size-8",onClick:()=>c("history"),children:(0,n.jsx)(s.A,{className:"size-4"})})})}},33951:(e,t,r)=>{r.d(t,{default:()=>c});var n=r(7893),a=r(10108),l=r(28081),s=r(95745),i=r(34882),o=r(40491);function c(e){let{name:t,path:r,icon:c,level:d,children:u}=e,{folderStates:f,setFolderStates:m}=(0,l.useContext)(o.$),h=(0,i.a8)().split("/").slice(5).join("/"),p=h.length>0&&h.startsWith(r+"/"),x=(0,l.useRef)(!1),[v,y]=(0,l.useState)(!x.current&&p||f[d]===r);return(0,l.useEffect)(()=>{!x.current&&p&&(x.current=!0,m(e=>{let t={...e,[d]:r};return Object.keys(t).filter(e=>Number(e)>d&&!h.startsWith(t[e])).forEach(e=>delete t[e]),t}))},[]),(0,l.useEffect)(()=>{y(f[d]===r)},[f]),(0,n.jsxs)("div",{className:(0,s.cn)("accordion flex flex-col",v&&"open"),children:[(0,n.jsxs)("button",{onClick:function(){m(e=>{let t={...e,[d]:v?void 0:r};return v&&Object.keys(t).filter(e=>Number(e)>d).forEach(e=>delete t[e]),t})},"data-state":v?"open":"closed",className:(0,s.cn)("flex items-center rounded-md px-3 py-2 text-sm text-secondary hover:bg-secondary","hover:text-primary-alt [&[data-state=open]>svg:last-child]:rotate-180"),children:[c,t,(0,n.jsx)(a.A,{className:"ml-auto h-4 w-4 shrink-0 transition-transform duration-200"})]}),(0,n.jsx)("div",{className:"accordion-body",style:{paddingLeft:"".concat(d,"rem")},children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"mt-2 flex flex-col gap-2",children:u})})})]})}},34882:(e,t,r)=>{r.d(t,{XO:()=>i,a8:()=>c});var n=r(11128),a=r(51351),l=r(3192);let s=(0,n.A)({locales:l.Ay.getInternalCodes(),defaultLocale:l.nQ,localePrefix:{mode:"always",prefixes:l.Ay.getPathPrefixes()}}),{Link:i,redirect:o,usePathname:c,useRouter:d}=(0,a.A)(s)},34900:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(97276).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},40491:(e,t,r)=>{r.d(t,{$:()=>l,default:()=>s});var n=r(7893),a=r(28081);let l=(0,a.createContext)(null);function s(e){let{children:t}=e,[r,s]=(0,a.useState)(!1),[i,o]=(0,a.useState)({}),[c,d]=(0,a.useState)(0);return(0,n.jsx)(l.Provider,{value:{open:r,setOpen:s,folderStates:i,setFolderStates:o,scrollPos:c,setScrollPos:d},children:t})}},45585:(e,t,r)=>{r.d(t,{default:()=>i,p:()=>s});var n=r(7893),a=r(28081),l=r(34882);let s=(0,a.createContext)(null);function i(e){let{children:t}=e,r=(0,l.a8)(),[i,o]=(0,a.useState)("none");return(0,a.useEffect)(()=>{"none"===i?window.document.body.classList.remove("no-scroll"):window.document.body.classList.add("no-scroll")},[i]),(0,a.useEffect)(()=>{o("none")},[r]),(0,n.jsx)(s.Provider,{value:{open:i,setOpen:o},children:t})}},51351:(e,t,r)=>{r.d(t,{A:()=>m});var n=r(41574),a=r(28081),l=r.t(a,2),s=r(23213),i=l["use".trim()],o=r(36817),c=r(78408),d=r(33210),u=r(7893),f=r(48562);function m(e){let{Link:t,config:r,getPathname:l,...m}=function(e,t){var r,l,s;let f={...r=t||{},localePrefix:"object"==typeof(s=r.localePrefix)?s:{mode:s||"always"},localeCookie:!!((l=r.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof l&&l},localeDetection:r.localeDetection??!0,alternateLinks:r.alternateLinks??!0},m=f.pathnames,h=(0,a.forwardRef)(function({href:t,locale:r,...n},a){let l,s;"object"==typeof t?(l=t.pathname,s=t.params):l=t;let d=(0,o._x)(t),h=e(),x=(0,o.yL)(h)?i(h):h,v=d?p({locale:r||x,href:null==m?l:{pathname:l,params:s},forcePrefix:null!=r||void 0}):l;return(0,u.jsx)(c.default,{ref:a,href:"object"==typeof t?{...t,pathname:v}:v,locale:r,localeCookie:f.localeCookie,...n})});function p(e){let t,{forcePrefix:r,href:n,locale:a}=e;return null==m?"object"==typeof n?(t=n.pathname,n.query&&(t+=(0,d.Zn)(n.query))):t=n:t=(0,d.FP)({locale:a,...(0,d.TK)(n),pathnames:f.pathnames}),(0,d.x3)(t,a,f,r)}function x(e){return function(t,...r){return e(p(t),...r)}}return{config:f,Link:h,redirect:x(n.redirect),permanentRedirect:x(n.permanentRedirect),getPathname:p}}(s.Ym,e);return{...m,Link:t,usePathname:function(){let e=function(e){let t=(0,n.usePathname)(),r=(0,s.Ym)();return(0,a.useMemo)(()=>{if(!t)return t;let n=t,a=(0,o.XP)(r,e.localePrefix);if((0,o.wO)(a,t))n=(0,o.MY)(t,a);else if("never"!==e.localePrefix.mode&&e.localePrefix.prefixes){let e=(0,o.bL)(r);(0,o.wO)(e,t)&&(n=(0,o.MY)(t,e))}return n},[e.localePrefix,r,t])}(r),t=(0,s.Ym)();return(0,a.useMemo)(()=>e&&r.pathnames?(0,d.aM)(t,e,r.pathnames):e,[t,e])},useRouter:function(){let e=(0,n.useRouter)(),t=(0,s.Ym)(),i=(0,n.usePathname)();return(0,a.useMemo)(()=>{function n(e){return function(n,a){let{locale:s,...o}=a||{},c=[l({href:n,locale:s||t,forcePrefix:null!=s||void 0})];Object.keys(o).length>0&&c.push(o),(0,f.A)(r.localeCookie,i,t,s),e(...c)}}return{...e,push:n(e.push),replace:n(e.replace),prefetch:n(e.prefetch)}},[t,i,e])},getPathname:l}}},54373:(e,t,r)=>{r.d(t,{default:()=>v});var n=r(7893);r(28081);var a=r(46815),l=r(20826),s=r(82601),i=r(97276);let o=(0,i.A)("flag",[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]);var c=r(95745),d=r(60285),u=r(37040);function f(e){var t;let{local:r,type:i,project:f,path:m,preview:h,full:p}=e,x=(0,a.c)("PageEditControls"),v=function(e,t,r){let n=(0,d.cT)({project:e,type:t,path:r});return"/report?".concat(n)}(f,i,null!=(t=null==m?void 0:m.join("/"))?t:null),y=(0,n.jsx)(s.$,{asChild:!0,variant:"outline",size:"sm",className:"font-normal text-secondary hover:bg-transparent sm:h-fit sm:border-none sm:p-0",children:(0,n.jsxs)(u.k,{href:v,children:[(0,n.jsx)(o,{className:(0,c.cn)("mr-2 h-4 w-4",!p&&"sm:mr-0")}),(0,n.jsx)("span",{className:(0,c.cn)(!p&&"sm:hidden"),children:x("report_button")})]})});return!h&&!r&&f&&m&&(p?y:(0,n.jsx)(l.TooltipProvider,{children:(0,n.jsxs)(l.Tooltip,{children:[(0,n.jsx)(l.TooltipTrigger,{asChild:!0,children:y}),(0,n.jsx)(l.TooltipContent,{children:x("report")})]})}))}let m=(0,i.A)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);function h(e){let{editUrl:t}=e,r=(0,a.c)("PageEditControls");return t&&(0,n.jsxs)(u.k,{href:t,className:"flex items-center rounded-md border border-quaternary px-3 py-2 text-sm text-secondary hover:text-primary-alt sm:border-none sm:p-0",children:[(0,n.jsx)(m,{className:"mr-2 h-4 w-4"}),r("edit_gh")]})}function p(e){let{slug:t,path:r,editUrl:a,local:l,preview:s}=e;return(0,n.jsxs)("div",{className:"flex w-full flex-row justify-between sm:max-w-5xl",children:[(0,n.jsx)("div",{className:"hidden flex-row flex-nowrap items-center justify-start gap-4 sm:flex",children:(0,n.jsx)(f,{type:"docs",local:l,project:t,path:r,preview:s})}),(0,n.jsx)("div",{className:"hidden flex-row flex-nowrap items-center justify-start gap-4 sm:flex",children:(0,n.jsx)("div",{className:"flex flex-col items-end gap-y-3 sm:flex-row sm:items-center sm:gap-x-4 sm:gap-y-0",children:(0,n.jsx)(h,{editUrl:a})})})]})}function x(e){let{local:t,slug:r,path:a,editUrl:l,preview:s}=e;return(0,n.jsx)("div",{className:"flex flex-col gap-3 sm:hidden",children:(0,n.jsxs)("div",{className:"flex flex-row flex-wrap justify-between gap-2",children:[(0,n.jsx)(f,{type:"docs",local:t,project:r,path:a,preview:s}),(0,n.jsx)(h,{editUrl:l})]})})}function v(e){return(0,n.jsxs)("footer",{className:"relative flex w-full shrink-0 flex-col-reverse justify-between gap-y-3 border-t border-border bg-primary px-1 py-3 text-sm text-secondary sm:h-16 sm:flex-row sm:items-center sm:justify-center sm:gap-y-0 sm:px-4",children:[(0,n.jsx)(p,{...e}),(0,n.jsx)(x,{...e})]})}},57850:(e,t,r)=>{r.d(t,{default:()=>o});var n=r(7893),a=r(28081),l=r(41574),s=r(40491),i=r(21559);function o(e){let{scrollPos:t,setScrollPos:r}=(0,a.useContext)(s.$),o=(0,a.useRef)(null),c=(0,l.usePathname)();return(0,a.useEffect)(()=>{let e=()=>{o.current&&r(o.current.scrollTop)},t=o.current;return t&&t.addEventListener("scroll",e),()=>{t&&t.removeEventListener("scroll",e)}},[]),(0,a.useEffect)(()=>{o.current&&(o.current.scrollTop=t)},[c]),(0,n.jsx)(i.default,{...e,ref:o})}},60285:(e,t,r)=>{function n(e,t){if(null==t)throw Error("Missing environment variable ".concat(e));return t}function a(e,t){let r=new URLSearchParams;if(e){for(let n in e)if(null!=e[n]){let a=t?t(n,e[n]):e[n];a&&r.set(n,a)}}return r.toString()}r.d(t,{cT:()=>a,no:()=>n}),r(16298)},65066:(e,t,r)=>{r.d(t,{default:()=>l});var n=r(7893),a=r(76365);function l(e){let{headings:t}=e;return(0,n.jsx)(a.A,{headings:t,type:"right",className:"right-0 w-[96vw] sm:w-64"})}},76365:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(7893),a=r(28081),l=r(21559),s=r(95745),i=r(46815),o=r(96090);function c(e){let{node:t,activeId:r,collapsed:a,setCollapsed:l,first:i}=e,{heading:d,children:u}=t,f=!a[d.id],m=r===d.id||!f&&function e(t,r){return t.children.some(t=>t.heading.id===r||e(t,r))}(t,r),h=(0,n.jsx)("a",{href:"#".concat(d.id),className:(0,s.cn)("block py-1 text-secondary transition-colors hover:text-primary",m&&"text-primary",i&&"pt-0!"),onClick:e=>{var t;e.preventDefault(),null==(t=document.getElementById(d.id))||t.scrollIntoView({behavior:"smooth"})},children:d.value});return 0===u.length?(0,n.jsxs)("li",{className:"flex items-start gap-1",children:[(0,n.jsx)("span",{className:"size-4 shrink-0"}),h]}):(0,n.jsx)("li",{children:(0,n.jsxs)("details",{className:"group",open:f,onToggle:e=>l(d.id,!e.currentTarget.open),children:[(0,n.jsxs)("summary",{className:"flex list-none items-start gap-1 [&::-webkit-details-marker]:hidden",onClick:e=>e.preventDefault(),children:[(0,n.jsx)("button",{type:"button","aria-expanded":f,"aria-label":d.value,className:(0,s.cn)("shrink-0 cursor-pointer py-1 text-secondary hover:text-primary",i&&"pt-0!"),onClick:()=>l(d.id,f),children:(0,n.jsx)(o.default,{className:"size-4 group-open:rotate-180"})}),h]}),(0,n.jsx)("ul",{className:"space-y-1 pl-3",children:u.map(e=>(0,n.jsx)(c,{node:e,activeId:r,collapsed:a,setCollapsed:l},e.heading.id))})]})})}function d(e){let{headings:t,type:r,className:o,solid:d}=e,u=(0,i.c)("DocsNonContentRightSidebar"),[f,m]=(0,a.useState)(""),[h,p]=(0,a.useState)({}),[x,v]=(0,a.useState)(!1),[y,g]=(0,a.useState)(!1),j=(0,a.useRef)(null),b=(0,a.useMemo)(()=>t.filter(e=>e.depth<4),[t]),w=(0,a.useMemo)(()=>(function(e){let t=[],r=[];for(let n of e){let e={heading:n,children:[]};for(;r.length>0&&r[r.length-1].heading.depth>=n.depth;)r.pop();let a=r[r.length-1];(a?a.children:t).push(e),r.push(e)}return t})(b),[b]),k=(e,t)=>p(r=>r[e]===t?r:{...r,[e]:t});return(0,a.useEffect)(()=>{let e=()=>{let e=b.map(e=>document.getElementById(e.id)).filter(Boolean).find(e=>{if(e){let t=e.getBoundingClientRect();return t.top>=0&&t.top<=window.innerHeight/2}return!1});e&&m(e.id)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[b]),(0,a.useEffect)(()=>{let e=()=>{if(j.current){let{scrollTop:e,scrollHeight:t,clientHeight:r}=j.current;v(e>0),g(e+r<t)}},t=j.current;return t&&(t.addEventListener("scroll",e),window.addEventListener("resize",e),e()),()=>{t&&t.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[b,h]),(0,n.jsx)(l.default,{type:r,title:u("title"),className:(0,s.cn)("shrink-0",o),tagName:"nav",solid:d,children:(0,n.jsxs)("div",{className:"relative",children:[x&&(0,n.jsx)("div",{className:"from-background pointer-events-none absolute top-0 right-0 left-0 h-12 bg-linear-to-b to-transparent"}),(0,n.jsx)("div",{ref:j,className:"scrollbar-thin max-h-[80vh] scrollbar-thumb-gray-300 scrollbar-track-transparent overflow-y-auto pr-4",children:(0,n.jsx)("ul",{className:"space-y-1 text-sm",children:w.map((e,t)=>(0,n.jsx)(c,{node:e,activeId:f,collapsed:h,setCollapsed:k,first:0===t},e.heading.id))})}),y&&(0,n.jsx)("div",{className:"from-background pointer-events-none absolute right-0 bottom-0 left-0 h-12 bg-linear-to-t to-transparent"})]})})}},93656:(e,t,r)=>{r.d(t,{default:()=>a});var n=r(41574);function a(e){let{main:t,history:r}=e;return"history"==(0,n.useSearchParams)().get("tab")&&r?r:t}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1651],{3135:(e,r,t)=>{t.d(r,{$:()=>o});function o(){for(var e,r,t=0,o="",l=arguments.length;t<l;t++)(e=arguments[t])&&(r=function e(r){var t,o,l="";if("string"==typeof r||"number"==typeof r)l+=r;else if("object"==typeof r)if(Array.isArray(r)){var n=r.length;for(t=0;t<n;t++)r[t]&&(o=e(r[t]))&&(l&&(l+=" "),l+=o)}else for(o in r)r[o]&&(l&&(l+=" "),l+=o);return l}(e))&&(o&&(o+=" "),o+=r);return o}},8295:(e,r,t)=>{t.d(r,{F:()=>i});var o=t(3135);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=o.$,i=(e,r)=>t=>{var o;if((null==r?void 0:r.variants)==null)return n(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:i,defaultVariants:a}=r,s=Object.keys(i).map(e=>{let r=null==t?void 0:t[e],o=null==a?void 0:a[e];if(null===r)return null;let n=l(r)||l(o);return i[e][n]}),d=t&&Object.entries(t).reduce((e,r)=>{let[t,o]=r;return void 0===o||(e[t]=o),e},{});return n(e,s,null==r||null==(o=r.compoundVariants)?void 0:o.reduce((e,r)=>{let{class:t,className:o,...l}=r;return Object.entries(l).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...a,...d}[r]):({...a,...d})[r]===t})?[...e,t,o]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}},36426:(e,r,t)=>{t.d(r,{z:()=>o});let o=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter((e,r,t)=>!!e&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim()}},46988:(e,r,t)=>{t.d(r,{s:()=>s,t:()=>a});var o=t(28081),l=Object.defineProperty,n=(e,r)=>l(e,"name",{value:r,configurable:!0});function i(e,r){if("function"==typeof e)return e(r);null!=e&&(e.current=r)}function a(...e){return r=>{let t=!1,o=e.map(e=>{let o=i(e,r);return t||"function"!=typeof o||(t=!0),o});if(t)return()=>{for(let r=0;r<o.length;r++){let t=o[r];"function"==typeof t?t():i(e[r],null)}}}}function s(...e){return o.useCallback(a(...e),e)}n(i,"setRef"),n(a,"composeRefs"),n(s,"useComposedRefs")},82292:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var o=t(28081),l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},n=t(36426),i=t(85726);let a=(0,o.forwardRef)((e,r)=>{var t,a,s;let{color:d,size:c,strokeWidth:u,absoluteStrokeWidth:p,className:b="",children:f,iconNode:m,...g}=e,{size:h=24,strokeWidth:y=2,absoluteStrokeWidth:v=!1,color:x="currentColor",className:w=""}=null!=(t=(0,i.useLucideContext)())?t:{},k=(null!=p?p:v)?24*Number(null!=u?u:y)/Number(null!=c?c:h):null!=u?u:y;return(0,o.createElement)("svg",{ref:r,...l,width:null!=(a=null!=c?c:h)?a:l.width,height:null!=(s=null!=c?c:h)?s:l.height,stroke:null!=d?d:x,strokeWidth:k,className:(0,n.z)("lucide",w,b),...!f&&!(e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0;return!1})(g)&&{"aria-hidden":"true"},...g},[...m.map(e=>{let[r,t]=e;return(0,o.createElement)(r,t)}),...Array.isArray(f)?f:[f]])})},85126:(e,r,t)=>{t.d(r,{DX:()=>d,Dc:()=>u,TL:()=>s});var o,l=t(28081),n=t(46988),i=Object.defineProperty,a=(e,r)=>i(e,"name",{value:r,configurable:!0});function s(e){let r=l.forwardRef((r,t)=>{let{children:o,...i}=r,a=null,s=!1,d=[];h(o)&&"function"==typeof w&&(o=w(o._payload)),l.Children.forEach(o,e=>{if(m(e)){s=!0;let r="child"in e.props?e.props.child:e.props.children;h(r)&&"function"==typeof w&&(r=w(r._payload)),a=p(e,r),d.push(a?.props?.children)}else d.push(e)}),a?a=l.cloneElement(a,void 0,d):!s&&1===l.Children.count(o)&&l.isValidElement(o)&&(a=o);let c=a?f(a):void 0,u=(0,n.s)(t,c);if(!a){if(o||0===o)throw Error(s?x(e):v(e));return o}let g=b(i,a.props??{});return a.type!==l.Fragment&&(g.ref=t?u:c),l.cloneElement(a,g)});return r.displayName=`${e}.Slot`,r}a(s,"createSlot");var d=s("Slot"),c=Symbol.for("radix.slottable");function u(e){let r=a(e=>"child"in e?e.children(e.child):e.children,"Slottable");return r.displayName=`${e}.Slottable`,r.__radixId=c,r}a(u,"createSlottable");var p=a((e,r)=>{if("child"in e.props){let r=e.props.child;return l.isValidElement(r)?l.cloneElement(r,void 0,e.props.children(r.props.children)):null}return l.isValidElement(r)?r:null},"getSlottableElementFromSlottable");function b(e,r){let t={...r};for(let o in r){let l=e[o],n=r[o];/^on[A-Z]/.test(o)?l&&n?t[o]=(...e)=>{let r=n(...e);return l(...e),r}:l&&(t[o]=l):"style"===o?t[o]={...l,...n}:"className"===o&&(t[o]=[l,n].filter(Boolean).join(" "))}return{...e,...t}}function f(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}function m(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}a(b,"mergeProps"),a(f,"getElementRef"),a(m,"isSlottable");var g=Symbol.for("react.lazy");function h(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===g&&"_payload"in e&&y(e._payload)}function y(e){return"object"==typeof e&&null!==e&&"then"in e}a(h,"isLazyComponent"),a(y,"isPromiseLike");var v=a(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),x=a(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),w=(o||(o=t.t(l,2)))[" use ".trim().toString()]},85726:(e,r,t)=>{t.d(r,{LucideProvider:()=>n,useLucideContext:()=>i});var o=t(28081);let l=(0,o.createContext)({});function n(e){let{children:r,size:t,color:n,strokeWidth:i,absoluteStrokeWidth:a,className:s}=e,d=(0,o.useMemo)(()=>({size:t,color:n,strokeWidth:i,absoluteStrokeWidth:a,className:s}),[t,n,i,a,s]);return(0,o.createElement)(l.Provider,{value:d},r)}let i=()=>(0,o.useContext)(l)},96915:(e,r,t)=>{t.d(r,{QP:()=>T});let o=(e,r)=>{if(0===e.length)return r.classGroupId;let t=e[0],l=r.nextPart.get(t),n=l?o(e.slice(1),l):void 0;if(n)return n;if(0===r.validators.length)return;let i=e.join("-");return r.validators.find(({validator:e})=>e(i))?.classGroupId},l=/^\[(.+)\]$/,n=(e,r,t,o)=>{e.forEach(e=>{if("string"==typeof e){(""===e?r:i(r,e)).classGroupId=t;return}if("function"==typeof e)return a(e)?void n(e(o),r,t,o):void r.validators.push({validator:e,classGroupId:t});Object.entries(e).forEach(([e,l])=>{n(l,i(r,e),t,o)})})},i=(e,r)=>{let t=e;return r.split("-").forEach(e=>{t.nextPart.has(e)||t.nextPart.set(e,{nextPart:new Map,validators:[]}),t=t.nextPart.get(e)}),t},a=e=>e.isThemeGetter,s=(e,r)=>r?e.map(([e,t])=>[e,t.map(e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[r+e,t])):e)]):e,d=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(e=>{"["===e[0]?(r.push(...t.sort(),e),t=[]):t.push(e)}),r.push(...t.sort()),r},c=/\s+/;function u(){let e,r,t=0,o="";for(;t<arguments.length;)(e=arguments[t++])&&(r=p(e))&&(o&&(o+=" "),o+=r);return o}let p=e=>{let r;if("string"==typeof e)return e;let t="";for(let o=0;o<e.length;o++)e[o]&&(r=p(e[o]))&&(t&&(t+=" "),t+=r);return t},b=e=>{let r=r=>r[e]||[];return r.isThemeGetter=!0,r},f=/^\[(?:([a-z-]+):)?(.+)\]$/i,m=/^\d+\/\d+$/,g=new Set(["px","full","screen"]),h=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,y=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,v=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,x=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,w=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>j(e)||g.has(e)||m.test(e),z=e=>L(e,"length",I),j=e=>!!e&&!Number.isNaN(Number(e)),S=e=>L(e,"number",j),C=e=>!!e&&Number.isInteger(Number(e)),E=e=>e.endsWith("%")&&j(e.slice(0,-1)),N=e=>f.test(e),$=e=>h.test(e),P=new Set(["length","size","percentage"]),R=e=>L(e,P,M),_=e=>L(e,"position",M),O=new Set(["image","url"]),W=e=>L(e,O,D),A=e=>L(e,"",V),G=()=>!0,L=(e,r,t)=>{let o=f.exec(e);return!!o&&(o[1]?"string"==typeof r?o[1]===r:r.has(o[1]):t(o[2]))},I=e=>y.test(e)&&!v.test(e),M=()=>!1,V=e=>x.test(e),D=e=>w.test(e);Symbol.toStringTag;let T=function(e,...r){let t,i,a,p=function(d){let c;return i=(t={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,t=new Map,o=new Map,l=(l,n)=>{t.set(l,n),++r>e&&(r=0,o=t,t=new Map)};return{get(e){let r=t.get(e);return void 0!==r?r:void 0!==(r=o.get(e))?(l(e,r),r):void 0},set(e,r){t.has(e)?t.set(e,r):l(e,r)}}})((c=r.reduce((e,r)=>r(e),e())).cacheSize),parseClassName:(e=>{let{separator:r,experimentalParseClassName:t}=e,o=1===r.length,l=r[0],n=r.length,i=e=>{let t,i=[],a=0,s=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===a){if(c===l&&(o||e.slice(d,d+n)===r)){i.push(e.slice(s,d)),s=d+n;continue}if("/"===c){t=d;continue}}"["===c?a++:"]"===c&&a--}let d=0===i.length?e:e.substring(s),c=d.startsWith("!"),u=c?d.substring(1):d;return{modifiers:i,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:t&&t>s?t-s:void 0}};return t?e=>t({className:e,parseClassName:i}):i})(c),...(e=>{let r=(e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return s(Object.entries(e.classGroups),t).forEach(([e,t])=>{n(t,o,e,r)}),o})(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:e=>{let t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),o(t,r)||(e=>{if(l.test(e)){let r=l.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}})(e)},getConflictingClassGroupIds:(e,r)=>{let o=t[e]||[];return r&&i[e]?[...o,...i[e]]:o}}})(c)}).cache.get,a=t.cache.set,p=b,b(d)};function b(e){let r=i(e);if(r)return r;let o=((e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:l}=r,n=[],i=e.trim().split(c),a="";for(let e=i.length-1;e>=0;e-=1){let r=i[e],{modifiers:s,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:p}=t(r),b=!!p,f=o(b?u.substring(0,p):u);if(!f){if(!b||!(f=o(u))){a=r+(a.length>0?" "+a:a);continue}b=!1}let m=d(s).join(":"),g=c?m+"!":m,h=g+f;if(n.includes(h))continue;n.push(h);let y=l(f,b);for(let e=0;e<y.length;++e){let r=y[e];n.push(g+r)}a=r+(a.length>0?" "+a:a)}return a})(e,t);return a(e,o),o}return function(){return p(u.apply(null,arguments))}}(()=>{let e=b("colors"),r=b("spacing"),t=b("blur"),o=b("brightness"),l=b("borderColor"),n=b("borderRadius"),i=b("borderSpacing"),a=b("borderWidth"),s=b("contrast"),d=b("grayscale"),c=b("hueRotate"),u=b("invert"),p=b("gap"),f=b("gradientColorStops"),m=b("gradientColorStopPositions"),g=b("inset"),h=b("margin"),y=b("opacity"),v=b("padding"),x=b("saturate"),w=b("scale"),P=b("sepia"),O=b("skew"),L=b("space"),I=b("translate"),M=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",N,r],T=()=>[N,r],F=()=>["",k,z],Z=()=>["auto",j,N],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],X=()=>["","0",N],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[j,N];return{cacheSize:500,separator:":",theme:{colors:[G],spacing:[k,z],blur:["none","",$,N],brightness:J(),borderColor:[e],borderRadius:["none","","full",$,N],borderSpacing:T(),borderWidth:F(),contrast:J(),grayscale:X(),hueRotate:J(),invert:X(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[E,z],inset:D(),margin:D(),opacity:J(),padding:T(),saturate:J(),scale:J(),sepia:X(),skew:J(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[$]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...q(),N]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",C,N]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",C,N]}],"grid-cols":[{"grid-cols":[G]}],"col-start-end":[{col:["auto",{span:["full",C,N]},N]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[G]}],"row-start-end":[{row:["auto",{span:[C,N]},N]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",N,r]}],"min-w":[{"min-w":[N,r,"min","max","fit"]}],"max-w":[{"max-w":[N,r,"none","full","min","max","fit","prose",{screen:[$]},$]}],h:[{h:[N,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[N,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[N,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[N,r,"auto","min","max","fit"]}],"font-size":[{text:["base",$,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",S]}],"font-family":[{font:[G]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",N]}],"line-clamp":[{"line-clamp":["none",j,S]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,N]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",k,z]}],"underline-offset":[{"underline-offset":["auto",k,N]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),_]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",R]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},W]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:B()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[k,N]}],"outline-w":[{outline:[k,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[k,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$,A]}],"shadow-color":[{shadow:[G]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",$,N]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[u]}],saturate:[{saturate:[x]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",N]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[C,N]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[k,z,S]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})},97276:(e,r,t)=>{t.d(r,{A:()=>a});var o=t(28081),l=t(36426);let n=e=>{let r=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase());return r.charAt(0).toUpperCase()+r.slice(1)};var i=t(82292);let a=(e,r)=>{let t=(0,o.forwardRef)((t,a)=>{let{className:s,...d}=t;return(0,o.createElement)(i.default,{ref:a,iconNode:r,className:(0,l.z)("lucide-".concat(n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),s),...d})});return t.displayName=n(e),t}}}]);
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1859],{2008:(e,t,r)=>{r.d(t,{i:()=>o,l:()=>u,n:()=>y,o:()=>i,r:()=>d,t:()=>m});var l=r(95801),n=r(79254),s=r(28081);let u={method:"throttle",timeMs:function(){if("undefined"==typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}()};function i(e){return null===e||Array.isArray(e)&&0===e.length}function o(){let e=new Map;return{on(t,r){let l=e.get(t)||[];return l.push(r),e.set(t,l),()=>this.off(t,r)},off(t,r){let l=e.get(t);l&&e.set(t,l.filter(e=>e!==r))},emit(t,r){e.get(t)?.forEach(e=>e(r))}}}function a(e,t,r){let l=setTimeout(function(){e(),r.removeEventListener("abort",n)},t);function n(){clearTimeout(l),r.removeEventListener("abort",n)}r.addEventListener("abort",n)}function c(){let e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},r=()=>{};return{promise:new e((e,l)=>{t=e,r=l}),resolve:t,reject:r}}function h(){return new URLSearchParams(location.search)}var p=class{updateMap=new Map;options={history:"replace",scroll:!1,shallow:!0};timeMs=u.timeMs;transitions=new Set;resolvers=null;controller=null;lastFlushedAt=0;resetQueueOnNextPush=!1;push({key:e,query:t,options:r},n=u.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),(0,l.t)(7,e,t,r),this.updateMap.set(e,t),"push"===r.history&&(this.options.history="push"),r.scroll&&(this.options.scroll=!0),!1===r.shallow&&(this.options.shallow=!1),r.startTransition&&this.transitions.add(r.startTransition),(!Number.isFinite(this.timeMs)||n>this.timeMs)&&(this.timeMs=n)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=h}){return this.resolvers?.promise??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=h,rateLimitFactor:t=1,...r},n){if(this.controller??=new AbortController,!Number.isFinite(this.timeMs))return(0,l.t)(8),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=c();let s=()=>{this.lastFlushedAt=performance.now();let[t,l]=this.applyPendingUpdates({...r,autoResetQueueOnUpdate:r.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},n);null===l?(this.resolvers.resolve(t),this.resetQueueOnNextPush=!0):this.resolvers.reject(t),this.resolvers=null},u=()=>{let e=performance.now()-this.lastFlushedAt,r=this.timeMs,n=t*Math.max(0,r-e);(0,l.t)(9,n,r,t),0===n?s():a(s,n,this.controller.signal)};return a(u,0,this.controller.signal),this.resolvers.promise}abort(){return this.controller?.abort(),this.controller=new AbortController,this.resolvers?.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){let e=Array.from(this.updateMap.keys());return(0,l.t)(10,JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=u.timeMs,e}applyPendingUpdates(e,t){let{updateUrl:r,getSearchParamsSnapshot:s}=e,u=s();if((0,l.t)(11,this.updateMap.size,u.toString()),0===this.updateMap.size)return[u,null];let i=Array.from(this.updateMap.entries()),o={...this.options},a=Array.from(this.transitions);for(let[t,r]of(e.autoResetQueueOnUpdate&&this.reset(),(0,l.t)(12,i,o),i))null===r?u.delete(t):u=function(e,t,r){if("string"==typeof r)e.set(t,r);else{for(let l of(e.delete(t),r))e.append(t,l);e.has(t)||e.set(t,"")}return e}(u,t,r);if(t)try{u=t(u)}catch(e){return console.error((0,n.l)(502),i.map(([e])=>e).join(),e),this.resetQueueOnNextPush=!0,[u,e]}try{return!function(e,t){let r=t;for(let t=e.length-1;t>=0;t--){let l=e[t];if(!l)continue;let n=r;r=()=>l(n)}r()}(a,()=>r(u,o)),[u,null]}catch(e){return console.error((0,n.l)(429),i.map(([e])=>e).join(),e),[u,e]}}};let d=(0,n.o)("throttle-queue",()=>new p);var f=class{resolvers=c();controller=new AbortController;queuedValue=void 0;abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t,r){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,a(()=>{let t=this.resolvers;try{(0,l.t)(13,e);let n=r(e);(0,l.t)(14,this.queuedValue),this.queuedValue=void 0,this.resolvers=c(),n.then(e=>t.resolve(e)).catch(e=>t.reject(e))}catch(e){this.queuedValue=void 0,t.reject(e)}},t,this.controller.signal),this.resolvers.promise}},v=class{throttleQueue;queues=new Map;queuedQuerySync=o();constructor(e=new p){this.throttleQueue=e}push(e,t,r,n){if(!Number.isFinite(t))return Promise.resolve((r.getSearchParamsSnapshot??h)());let s=e.key,u=this.queues.get(s);u||((0,l.t)(15,s),u=new f,this.queues.set(s,u)),(0,l.t)(17,e);let i=()=>(this.throttleQueue.push(e),this.throttleQueue.flush(r,n).finally(()=>{this.queues.get(s)?.queuedValue===void 0&&((0,l.t)(16,s),this.queues.delete(s)),this.queuedQuerySync.emit(s)})),o=u.push(e,t,i);return this.queuedQuerySync.emit(s),o}abort(e){let t=this.queues.get(e);return t?((0,l.t)(18,e,t.queuedValue?.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),e=>(e.then(t.resolvers.resolve,t.resolvers.reject),e)):e=>e}abortAll(){for(let[e,t]of this.queues.entries())(0,l.t)(18,e,t.queuedValue?.query),t.abort(),t.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(e);this.queues.clear()}getQueuedQuery(e){let t=this.queues.get(e)?.queuedValue?.query;return void 0!==t?t:this.throttleQueue.getQueuedQuery(e)}};let m=(0,n.o)("debounce-controller",()=>new v(d));function y(e){return function(e,t,r){let l=(0,s.useCallback)(()=>{let t=Object.fromEntries(e.map(e=>[e,r(e)]));return[JSON.stringify(t),t]},[e.join(","),r]),n=(0,s.useRef)(null);return null===n.current&&(n.current=l()),(0,s.useSyncExternalStore)((0,s.useCallback)(r=>{let l=e.map(e=>t(e,r));return()=>l.forEach(e=>e())},[e.join(","),t]),()=>{let[e,t]=l();return n.current[0]===e?n.current[1]:(n.current=[e,t],t)},()=>n.current[1])}(e,(e,t)=>m.queuedQuerySync.on(e,t),e=>m.getQueuedQuery(e))}},37347:(e,t,r)=>{r.d(t,{ZA:()=>y});var l=r(2008),n=r(95801),s=r(79254),u=r(28081);function i(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function o(e,t,r){try{return e(t)}catch(e){return r?(0,n.i)(25,t,e,r):(0,n.i)(24,t,e),null}}function a(e){function t(t){if(void 0===t)return null;let r=Array.isArray(t);return r&&void 0===t[0]?null:(t=r?t[0]:"string"==typeof t?t:"",o(e.parse,t))}return{type:"single",eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide(r){var l;return null!=(l=t(r))?l:e}}},withOptions(e){return{...this,...e}}}}function c(e,t){return e.valueOf()===t.valueOf()}a({parse:e=>e,serialize:String}),a({parse:e=>{let t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)}),a({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),a({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return t<"0"||!(1&t.length)?t:"0"+t}}),a({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String}),a({parse:e=>"true"===e.toLowerCase(),serialize:String}),a({parse:e=>{let t=new Date(parseInt(e));return+t==+t?t:null},serialize:e=>""+e.valueOf(),eq:c}),a({parse:e=>{let t=new Date(e);return+t==+t&&h.parse(e)?t:null},serialize:e=>e.toISOString(),eq:c});let h=a({parse:e=>{let t=new Date(e.slice(0,10));return+t==+t&&h.serialize(t)===e.slice(0,10)?t:null},serialize:e=>e.toISOString().slice(0,10),eq:c}),p=(0,s.o)("sync-emitter",()=>(0,l.i)()),d={},f=(e,t)=>"defaultValue"===e?void 0:t;function v(e,t,r,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=!1,c=Object.entries(e).reduce((e,c)=>{var h,p,d;let[f,v]=c,m=t[f],y=i(n,m),g="multi"===v.type?[]:null,b=void 0===y?"multi"===v.type?r.getAll(m):r.get(m):y,w=i(u,f);return void 0!==w&&((d=null!=(h=i(s,m))?h:g)===b||null!==d&&null!==b&&"string"!=typeof d&&"string"!=typeof b&&d.length===b.length&&d.every((e,t)=>e===b[t]))?e[f]=w:(a=!0,e[f]=null!=(p=(0,l.o)(b)?null:o(v.parse,b,m))?p:null,s[m]=b),e},{});return a||(a=Object.keys(c).length!==Object.keys(u).length),[a,c]}function m(e,t){return Object.fromEntries(Object.keys(e).map(r=>{var l,n,s;return[r,null!=(s=null!=(n=e[r])?n:null==(l=t[r])?void 0:l.defaultValue)?s:null]}))}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{parse:r=e=>e,type:o,serialize:a,eq:c,defaultValue:h,...y}=t,[{[e]:g},b]=function(e){var t,r,o,a,c;let h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},y=(0,u.useId)(),g=(0,s.i)(),b=(0,s.a)(),{history:w=null!=(t=null==g?void 0:g.history)?t:"replace",scroll:O=null!=(r=null==g?void 0:g.scroll)&&r,shallow:S=null==(o=null==g?void 0:g.shallow)||o,throttleMs:q=l.l.timeMs,limitUrlUpdates:M=null==g?void 0:g.limitUrlUpdates,clearOnDefault:j=null==(a=null==g?void 0:g.clearOnDefault)||a,startTransition:A,urlKeys:k=d}=h,P=Object.keys(e).join(","),Q=(0,u.useRef)(e),x=Q.current,C=JSON.stringify(Object.entries(x),f)===JSON.stringify(Object.entries(e),f)&&Object.entries(e).every(e=>{var t,r,l;let[n,s]=e;if((null==(t=x[n])?void 0:t.startTransition)!==s.startTransition)return!1;let u=null==(r=x[n])?void 0:r.defaultValue,i=s.defaultValue;return!!Object.is(u,i)||void 0!==u&&void 0!==i&&(null==(l=s.eq)?void 0:l.call(s,u,i))===!0})?x:e;Q.current=C;let U=(0,u.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>{var t;return[e,null!=(t=i(k,e))?t:e]})),[P,JSON.stringify(k)]),E=Object.values(U),N=(0,s.r)(E),R=N.searchParams,V=(0,u.useRef)(null),z=(0,u.useRef)(null),L=(0,l.n)(E),[T]=(0,u.useState)(()=>{let t={},[,r]=v(e,U,R,L,t);return[r,t]}),F=(0,u.useRef)(T[1]),[_,D]=(0,u.useState)(T[0]),I=(0,u.useRef)(_),J=e=>JSON.stringify([E.map(t=>[t,e.getAll(t)]),L]),$=J(R),B=()=>{let[t,r]=v(e,U,R,L,F.current,I.current);return t&&((0,n.t)(1,y,P,r),I.current=r,D(r)),t},H=Object.keys(F.current).join("&")!==E.join("&"),G=null===z.current||z.current===(null!=(c=N.pathname)?c:location.pathname);if(H)V.current=$,B(),F.current=Object.fromEntries(Object.entries(U).map(t=>{var r;let[l,n]=t;return[n,(null==(r=e[l])?void 0:r.type)==="multi"?R.getAll(n):R.get(n)]}));else{let e=!1;G&&V.current!==$&&(V.current=$,e=B()),!e&&_!==I.current&&(G||void 0===N.pathname&&V.current===J(new URLSearchParams(location.search)))&&D(I.current)}(0,u.useEffect)(()=>{var e;z.current=null!=(e=N.pathname)?e:location.pathname,B()},[$,N.pathname]),(0,u.useEffect)(()=>{let t=[];for(let[r,l]of Object.entries(U)){let s=t=>{let{state:s,query:u}=t;D(t=>{var i,o,a;return Object.is(null!=(o=t[r])?o:null,s)?((0,n.t)(2,y,P,l,s,null==(a=e[r])?void 0:a.defaultValue,I.current),t):(I.current={...I.current,[r]:s},F.current[l]=u,(0,n.t)(3,y,P,l,s,null==(i=e[r])?void 0:i.defaultValue,I.current),I.current)})};(0,n.t)(4,y,l,P),p.on(l,s),t.push([l,s])}return()=>{for(let[e,r]of t)(0,n.t)(5,y,e,P),p.off(e,r)}},[P,U]);let W=(0,u.useCallback)(function(e){var t,r,s,u,o,a,c,h,d,f,v,g,k,Q,x,E,R,V,z;let L,T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},F=null!=(t="function"==typeof e?e(m(I.current,C)):e)?t:Object.fromEntries(Object.keys(C).map(e=>[e,null]));(0,n.t)(6,y,P,F);let _=0,D=[];for(let[e,t]of Object.entries(F)){let n=i(C,e),m=U[e];if(!n||void 0===m||void 0===t)continue;(null!=(s=null!=(r=T.clearOnDefault)?r:n.clearOnDefault)?s:j)&&null!==t&&void 0!==n.defaultValue&&(null!=(u=n.eq)?u:function(e,t){return e===t})(t,n.defaultValue)&&(t=null);let y=null===t?null:(null!=(o=n.serialize)?o:String)(t);p.emit(m,{state:t,query:y});let P={key:m,query:y,options:{history:null!=(c=null!=(a=T.history)?a:n.history)?c:w,shallow:null!=(d=null!=(h=T.shallow)?h:n.shallow)?d:S,scroll:null!=(v=null!=(f=T.scroll)?f:n.scroll)?v:O,startTransition:null!=(k=null!=(g=T.startTransition)?g:n.startTransition)?k:A}},F=null!=(x=null!=(Q=T.limitUrlUpdates)?Q:n.limitUrlUpdates)?x:M;if((null==F?void 0:F.method)==="debounce"){let e=null!=(E=F.timeMs)?E:l.l.timeMs,t=l.t.push(P,e,N,b);_<e&&(L=t,_=e)}else{let e=null!=(z=null!=(V=null!=(R=null==F?void 0:F.timeMs)?R:T.throttleMs)?V:n.throttleMs)?z:q;D.push(l.t.abort(m)),l.r.push(P,e)}}let J=D.length?l.r.flush(N,b):l.r.getPendingPromise(N);for(let e of D)J=e(J);return null!=L?L:J},[P,w,S,O,q,null==M?void 0:M.method,null==M?void 0:M.timeMs,A,j,C,U,N.updateUrl,N.getSearchParamsSnapshot,N.rateLimitFactor,b]);return[(0,u.useMemo)(()=>m(_,C),[_,C]),W]}({[e]:{parse:r,type:o,serialize:a,eq:c,defaultValue:h}},y);return[g,(0,u.useCallback)(function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b(r=>({[e]:"function"==typeof t?t(r[e]):t}),r)},[e,b])]}},71676:(e,t,r)=>{r.d(t,{A:()=>l});let l=(0,r(97276).A)("rotate-ccw-clock",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},78352:(e,t,r)=>{r.d(t,{A:()=>l});let l=(0,r(97276).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]])},79254:(e,t,r)=>{r.d(t,{a:()=>f,c:()=>u,i:()=>d,l:()=>s,n:()=>h,o:()=>a,r:()=>p,s:()=>i});var l=r(28081);let n={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?",502:"`processUrlSearchParams` threw while processing key(s) `%s`. %O"};function s(e){return`[nuqs] ${n[e]}
2
+ See https://nuqs.dev/NUQS-${e}`}function u(e){if(0===e.size)return"";let t=[];for(let[r,l]of e.entries()){let e=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${l.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,e=>encodeURIComponent(e))}`)}return"?"+t.join("&")}let i="2.10.1",o={};function a(e,t){let r=Symbol.for(`nuqs.${i}.${e}`),l=globalThis;if(null!=l[r])return l[r];let n=Object.isExtensible(l)?l:o;return n[r]??=t()}let c=function(e,t,r){let l=a(e,()=>new WeakMap);return l.has(t)||l.set(t,r()),l.get(t)}("adapter-context",l.createContext,()=>{let e=(0,l.createContext)({useAdapter(){throw Error(s(404))}});return e.displayName="NuqsAdapterContext",e});function h(e){return({children:t,defaultOptions:r,processUrlSearchParams:n,...s})=>(0,l.createElement)(c.Provider,{...s,value:{useAdapter:e,defaultOptions:r,processUrlSearchParams:n}},t)}function p(e){let t=(0,l.useContext)(c);if(!("useAdapter"in t))throw Error(s(404));return t.useAdapter(e)}"undefined"!=typeof window&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==c&&console.error(s(303)),window.__NuqsAdapterContext=c);let d=()=>(0,l.useContext)(c).defaultOptions,f=()=>(0,l.useContext)(c).processUrlSearchParams},95801:(e,t,r)=>{function l(e){}function n(e){}r.d(t,{i:()=>n,t:()=>l}),r(16298)}}]);
@@ -1,3 +1,3 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7580],{67580:(e,t,r)=>{r.d(t,{Dk:()=>es,kc:()=>eu,Ym:()=>el,c3:()=>ea});var i=r(28081);function s(e,t){let r=t&&t.cache?t.cache:l,i=t&&t.serializer?t.serializer:h;return(t&&t.strategy?t.strategy:function(e,t){var r,i;let s=1===e.length?n:o;return r=t.cache.create(),i=t.serializer,s.bind(this,e,r,i)})(e,{cache:r,serializer:i})}function n(e,t,r,i){let s=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),n=t.get(s);return void 0===n&&(n=e.call(this,i),t.set(s,n)),n}function o(e,t,r){let i=Array.prototype.slice.call(arguments,3),s=r(i),n=t.get(s);return void 0===n&&(n=e.apply(this,i),t.set(s,n)),n}let h=function(){return JSON.stringify(arguments)};var a=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};let l={create:function(){return new a}},u={variadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,o.bind(this,e,r,i)},monadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,n.bind(this,e,r,i)}};class c extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),this.code=e,t&&(this.originalMessage=t)}}var m=function(e){return e.MISSING_MESSAGE="MISSING_MESSAGE",e.MISSING_FORMAT="MISSING_FORMAT",e.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",e.INSUFFICIENT_PATH="INSUFFICIENT_PATH",e.INVALID_MESSAGE="INVALID_MESSAGE",e.INVALID_KEY="INVALID_KEY",e.FORMATTING_ERROR="FORMATTING_ERROR",e}(m||{});function f(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function p(e,t){return s(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:u.variadic})}function g(e,t){return p((...t)=>new e(...t),t)}function E(e){return{getDateTimeFormat:g(Intl.DateTimeFormat,e.dateTime),getNumberFormat:g(Intl.NumberFormat,e.number),getPluralRules:g(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:g(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:g(Intl.ListFormat,e.list),getDisplayNames:g(Intl.DisplayNames,e.displayNames)}}let b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,H=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,y=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,B=/^(@+)?(\+|#+)?[rs]?$/g,d=/(\*)(0+)|(#+)(0+)|(0+)/g,T=/^(0+)$/;function A(e){let t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(B,function(e,r,i){return"string"!=typeof i?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===i?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof i?i.length:0)),""}),t}function S(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function I(e){let t=S(e);return t||{}}let N=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",e}({});function _(e){return!!(e&&"object"==typeof e&&0===e.type)}function P(e){return!!(e&&"object"==typeof e&&1===e.type)}let M=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,L={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},R=RegExp(`^${M.source}*`),v=RegExp(`${M.source}*$`);function O(e,t){return{start:e,end:t}}let w=!!Object.fromEntries,C=!!String.prototype.trimStart,F=!!String.prototype.trimEnd,D=w?Object.fromEntries:function(e){let t={};for(let[r,i]of e)t[r]=i;return t},G=C?function(e){return e.trimStart()}:function(e){return e.replace(R,"")},U=F?function(e){return e.trimEnd()}:function(e){return e.replace(v,"")},k=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");var V=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");if(this.message.length>0){let e=this.message.charCodeAt(0);if(35!==e&&39!==e&&60!==e&&123!==e&&125!==e){let e=function(e){if(0===e.length)return null;let t=1,r=1;for(let i=0;i<e.length;){let s=e.charCodeAt(i);switch(s){case 35:case 39:case 60:case 123:case 125:return null}if(10===s)t++,r=1,i++;else if(r++,s>=55296&&s<=56319&&i+1<e.length){let t=e.charCodeAt(i+1);i+=t>=56320&&t<=57343?2:1}else i++}return{offset:e.length,line:t,column:r}}(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:O(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let i=[];for(;!this.isEOF();){let s=this.char();if(123===s){let t=this.parseArgument(e,r);if(t.err)return t;i.push(t.val)}else if(125===s&&e>0)break;else if(35===s&&("plural"===t||"selectordinal"===t)){let e=this.clonePosition();this.bump(),i.push({type:7,location:O(e,this.clonePosition())})}else if(60!==s||this.ignoreTag||47!==this.peek())if(60===s&&!this.ignoreTag&&K(this.peek()||0)){let r=this.parseTag(e,t);if(r.err)return r;i.push(r.val)}else{let r=this.parseLiteral(e,t);if(r.err)return r;i.push(r.val)}else if(!r)return this.error(26,O(this.clonePosition(),this.clonePosition()));else break}return{val:i,err:null}}parseTag(e,t){let r=this.clonePosition();this.bump();let i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${i}/>`,location:O(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(23,O(r,this.clonePosition()));{let s=this.parseMessage(e+1,t,!0);if(s.err)return s;let n=s.val,o=this.clonePosition();if(!this.bumpIf("</"))return this.error(27,O(r,this.clonePosition()));{if(this.isEOF()||!K(this.char()))return this.error(23,O(o,this.clonePosition()));let e=this.clonePosition();return i!==this.parseTagName()?this.error(26,O(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:8,value:i,children:n,location:O(r,this.clonePosition())},err:null}:this.error(23,O(o,this.clonePosition()))}}}parseTagName(){var e;let t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())}parseLiteral(e,t){let r=this.clonePosition(),i="";for(;;){let r=this.tryParseQuote(t);if(r){i+=r;continue}let s=this.tryParseUnquoted(e,t);if(s){i+=s;continue}let n=this.tryParseLeftAngleBracket();if(n){i+=n;continue}break}return{val:{type:0,value:i,location:O(r,this.clonePosition())},err:null}}tryParseLeftAngleBracket(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(K(e=this.peek()||0)||47===e)?null:(this.bump(),"<")}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(39===e)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){let r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,O(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(2,O(r,this.clonePosition()));let i=this.parseIdentifierIfPossible().value;if(!i)return this.error(3,O(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,O(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:i,location:O(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,O(r,this.clonePosition()));return this.parseArgumentOptions(e,t,i,r);default:return this.error(3,O(r,this.clonePosition()))}}parseIdentifierIfPossible(){var e;let t=this.clonePosition(),r=this.offset(),i=(e=this.message,k.lastIndex=r,k.exec(e)[1]??""),s=r+i.length;return this.bumpTo(s),{value:i,location:O(t,this.clonePosition())}}parseArgumentOptions(e,t,r,i){let s=this.clonePosition(),n=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(n){case"":return this.error(4,O(s,o));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();let t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;let i=U(r.val);if(0===i.length)return this.error(6,O(this.clonePosition(),this.clonePosition()));e={style:i,styleLocation:O(t,this.clonePosition())}}let t=this.tryParseArgumentClose(i);if(t.err)return t;let s=O(i,this.clonePosition());if(e&&e.style.startsWith("::")){let t=G(e.style.slice(2));if("number"===n){let i=this.parseNumberSkeletonFromString(t,e.styleLocation);if(i.err)return i;return{val:{type:2,value:r,location:s,style:i.val},err:null}}{if(0===t.length)return this.error(10,s);let i=t;return this.locale&&(i=function(e,t){let r="";for(let i=0;i<e.length;i++){let s=e.charAt(i);if("j"===s){let n=0;for(;i+1<e.length&&e.charAt(i+1)===s;)n++,i++;let o=1+(1&n),h=n<2?1:3+(n>>1),a=function(e){let t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let i=e.language;return"root"!==i&&(t=e.maximize().region),(L[t||""]||L[i||""]||L[`${i}-001`]||L["001"])[0]}(t);for(("H"==a||"k"==a)&&(h=0);h-- >0;)r+="a";for(;o-- >0;)r=a+r}else"J"===s?r+="H":r+=s}return r}(t,this.locale)),{val:{type:"date"===n?3:4,value:r,location:s,style:{type:1,pattern:i,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?function(e){let t={};return e.replace(b,e=>{let r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-3];break;case"c":if(r<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-3];break;case"a":t.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}(i):{}}},err:null}}}return{val:{type:"number"===n?2:"date"===n?3:4,value:r,location:s,style:e?.style??null},err:null}}case"plural":case"selectordinal":case"select":{let s=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,O(s,{...s}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),h=0;if("select"!==n&&"offset"===o.value){if(!this.bumpIf(":"))return this.error(13,O(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),h=e.val}let a=this.tryParsePluralOrSelectOptions(e,n,t,o);if(a.err)return a;let l=this.tryParseArgumentClose(i);if(l.err)return l;let u=O(i,this.clonePosition());if("select"===n)return{val:{type:5,value:r,options:D(a.val),location:u},err:null};return{val:{type:6,value:r,options:D(a.val),offset:h,pluralType:"plural"===n?"cardinal":"ordinal",location:u},err:null}}default:return this.error(5,O(s,o))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(1,O(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(11,O(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");let t=e.split(H).filter(e=>e.length>0),r=[];for(let e of t){let t=e.split("/");if(0===t.length)throw Error("Invalid number skeleton");let[i,...s]=t;for(let e of s)if(0===e.length)throw Error("Invalid number skeleton");r.push({stem:i,options:s})}return r}(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){let t={};for(let r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...r.options.reduce((e,t)=>({...e,...I(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((e,t)=>({...e,...I(t)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(d,function(e,r,i,s,n,o){if(r)t.minimumIntegerDigits=i.length;else if(s&&n)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(T.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(y.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(y,function(e,r,i,s,n,o){return"*"===i?t.minimumFractionDigits=r.length:s&&"#"===s[0]?t.maximumFractionDigits=s.length:n&&o?(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});let e=r.options[0];"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...A(e)});continue}if(B.test(r.stem)){t={...t,...A(r.stem)};continue}let e=S(r.stem);e&&(t={...t,...e});let i=function(e){let t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){let r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!T.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);i&&(t={...t,...i})}return t}(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,i){let s=!1,n=[],o=new Set,{value:h,location:a}=i;for(;;){if(0===h.length){let e=this.clonePosition();if("select"!==t&&this.bumpIf("=")){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;a=O(e,this.clonePosition()),h=this.message.slice(e.offset,this.offset())}else break}if(o.has(h))return this.error("select"===t?21:20,a);"other"===h&&(s=!0),this.bumpSpace();let i=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?17:18,O(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,r);if(l.err)return l;let u=this.tryParseArgumentClose(i);if(u.err)return u;n.push([h,{value:l.val,location:O(i,this.clonePosition())}]),o.add(h),this.bumpSpace(),{value:h,location:a}=this.parseIdentifierIfPossible()}return 0===n.length?this.error("select"===t?15:16,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(22,O(this.clonePosition(),this.clonePosition())):{val:n,err:null}}tryParseDecimalInteger(e,t){let r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let s=!1,n=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)s=!0,n=10*n+(e-48),this.bump();else break}let o=O(i,this.clonePosition());return s?Number.isSafeInteger(n*=r)?{val:n,err:null}:this.error(t,o):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");let t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var e;!this.isEOF()&&((e=this.char())>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e);)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function K(e){return e>=97&&e<=122||e>=65&&e<=90}function x(e,t={}){let r=new V(e,t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t}).parse();if(r.err){let e=SyntaxError(N[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return t?.captureLocation||function e(t){t.forEach(t=>{if(delete t.location,5===t.type||6===t.type)for(let r in t.options)delete t.options[r].location,e(t.options[r].value);else 2===t.type&&_(t.style)||(3===t.type||4===t.type)&&P(t.style)?delete t.style.location:8===t.type&&e(t.children)})}(r.val),r.val}var Z=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},X=class extends Z{constructor(e,t,r,i){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,"INVALID_VALUE",i)}},Y=class extends Z{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",r)}},j=class extends Z{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,"MISSING_VALUE",t)}};function $(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}var W=class e{constructor(t,r=e.defaultLocale,i,n){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(1===t.length)return t[0].value;let r=t.reduce((e,t)=>(e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e),[]);return r.length<=1?r[0]||"":r},this.formatToParts=e=>(function e(t,r,i,s,n,o,h){if(1===t.length&&0===t[0].type)return[{type:0,value:t[0].value}];let a=[];for(let l of t){if(0===l.type){a.push({type:0,value:l.value});continue}if(7===l.type){"number"==typeof o&&a.push({type:0,value:i.getNumberFormat(r).format(o)});continue}let{value:t}=l;if(!(n&&t in n))throw new j(t,h);let u=n[t];if(1===l.type){u&&"string"!=typeof u&&"number"!=typeof u&&"bigint"!=typeof u||(u="string"==typeof u||"number"==typeof u||"bigint"==typeof u?String(u):""),a.push({type:+("string"!=typeof u),value:u});continue}if(3===l.type){let e="string"==typeof l.style?s.date[l.style]:P(l.style)?l.style.parsedOptions:void 0;a.push({type:0,value:i.getDateTimeFormat(r,e).format(u)});continue}if(4===l.type){let e="string"==typeof l.style?s.time[l.style]:P(l.style)?l.style.parsedOptions:s.time.medium;a.push({type:0,value:i.getDateTimeFormat(r,e).format(u)});continue}if(2===l.type){let e="string"==typeof l.style?s.number[l.style]:_(l.style)?l.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if("bigint"==typeof u){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);u*=BigInt(t)}else u*=t}a.push({type:0,value:i.getNumberFormat(r,e).format(u)});continue}if(8===l.type){let{children:t,value:u}=l,c=n[u];if("function"!=typeof c)throw new Y(u,"function",h);let m=c(e(t,r,i,s,n,o).map(e=>e.value));Array.isArray(m)||(m=[m]),a.push(...m.map(e=>({type:+("string"!=typeof e),value:e})))}if(5===l.type){let t=u,o=(Object.prototype.hasOwnProperty.call(l.options,t)?l.options[t]:void 0)||l.options.other;if(!o)throw new X(l.value,u,Object.keys(l.options),h);a.push(...e(o.value,r,i,s,n));continue}if(6===l.type){let t=`=${u}`,o=Object.prototype.hasOwnProperty.call(l.options,t)?l.options[t]:void 0;if(!o){if(!Intl.PluralRules)throw new Z(`Intl.PluralRules is not available in this environment.
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3213],{23213:(e,t,r)=>{r.d(t,{Dk:()=>es,kc:()=>eu,Ym:()=>el,c3:()=>ea});var i=r(28081);function s(e,t){let r=t&&t.cache?t.cache:l,i=t&&t.serializer?t.serializer:h;return(t&&t.strategy?t.strategy:function(e,t){var r,i;let s=1===e.length?n:o;return r=t.cache.create(),i=t.serializer,s.bind(this,e,r,i)})(e,{cache:r,serializer:i})}function n(e,t,r,i){let s=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),n=t.get(s);return void 0===n&&(n=e.call(this,i),t.set(s,n)),n}function o(e,t,r){let i=Array.prototype.slice.call(arguments,3),s=r(i),n=t.get(s);return void 0===n&&(n=e.apply(this,i),t.set(s,n)),n}let h=function(){return JSON.stringify(arguments)};var a=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};let l={create:function(){return new a}},u={variadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,o.bind(this,e,r,i)},monadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,n.bind(this,e,r,i)}};class c extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),this.code=e,t&&(this.originalMessage=t)}}var m=function(e){return e.MISSING_MESSAGE="MISSING_MESSAGE",e.MISSING_FORMAT="MISSING_FORMAT",e.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",e.INSUFFICIENT_PATH="INSUFFICIENT_PATH",e.INVALID_MESSAGE="INVALID_MESSAGE",e.INVALID_KEY="INVALID_KEY",e.FORMATTING_ERROR="FORMATTING_ERROR",e}(m||{});function f(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function p(e,t){return s(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:u.variadic})}function g(e,t){return p((...t)=>new e(...t),t)}function E(e){return{getDateTimeFormat:g(Intl.DateTimeFormat,e.dateTime),getNumberFormat:g(Intl.NumberFormat,e.number),getPluralRules:g(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:g(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:g(Intl.ListFormat,e.list),getDisplayNames:g(Intl.DisplayNames,e.displayNames)}}let b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,H=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,y=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,B=/^(@+)?(\+|#+)?[rs]?$/g,d=/(\*)(0+)|(#+)(0+)|(0+)/g,T=/^(0+)$/;function A(e){let t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(B,function(e,r,i){return"string"!=typeof i?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===i?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof i?i.length:0)),""}),t}function S(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function I(e){let t=S(e);return t||{}}let N=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",e}({});function _(e){return!!(e&&"object"==typeof e&&0===e.type)}function P(e){return!!(e&&"object"==typeof e&&1===e.type)}let M=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,L={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},R=RegExp(`^${M.source}*`),v=RegExp(`${M.source}*$`);function O(e,t){return{start:e,end:t}}let w=!!Object.fromEntries,C=!!String.prototype.trimStart,F=!!String.prototype.trimEnd,D=w?Object.fromEntries:function(e){let t={};for(let[r,i]of e)t[r]=i;return t},G=C?function(e){return e.trimStart()}:function(e){return e.replace(R,"")},U=F?function(e){return e.trimEnd()}:function(e){return e.replace(v,"")},k=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");var V=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");if(this.message.length>0){let e=this.message.charCodeAt(0);if(35!==e&&39!==e&&60!==e&&123!==e&&125!==e){let e=function(e){if(0===e.length)return null;let t=1,r=1;for(let i=0;i<e.length;){let s=e.charCodeAt(i);switch(s){case 35:case 39:case 60:case 123:case 125:return null}if(10===s)t++,r=1,i++;else if(r++,s>=55296&&s<=56319&&i+1<e.length){let t=e.charCodeAt(i+1);i+=t>=56320&&t<=57343?2:1}else i++}return{offset:e.length,line:t,column:r}}(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:O(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let i=[];for(;!this.isEOF();){let s=this.char();if(123===s){let t=this.parseArgument(e,r);if(t.err)return t;i.push(t.val)}else if(125===s&&e>0)break;else if(35===s&&("plural"===t||"selectordinal"===t)){let e=this.clonePosition();this.bump(),i.push({type:7,location:O(e,this.clonePosition())})}else if(60!==s||this.ignoreTag||47!==this.peek())if(60===s&&!this.ignoreTag&&K(this.peek()||0)){let r=this.parseTag(e,t);if(r.err)return r;i.push(r.val)}else{let r=this.parseLiteral(e,t);if(r.err)return r;i.push(r.val)}else if(!r)return this.error(26,O(this.clonePosition(),this.clonePosition()));else break}return{val:i,err:null}}parseTag(e,t){let r=this.clonePosition();this.bump();let i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${i}/>`,location:O(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(23,O(r,this.clonePosition()));{let s=this.parseMessage(e+1,t,!0);if(s.err)return s;let n=s.val,o=this.clonePosition();if(!this.bumpIf("</"))return this.error(27,O(r,this.clonePosition()));{if(this.isEOF()||!K(this.char()))return this.error(23,O(o,this.clonePosition()));let e=this.clonePosition();return i!==this.parseTagName()?this.error(26,O(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:8,value:i,children:n,location:O(r,this.clonePosition())},err:null}:this.error(23,O(o,this.clonePosition()))}}}parseTagName(){var e;let t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())}parseLiteral(e,t){let r=this.clonePosition(),i="";for(;;){let r=this.tryParseQuote(t);if(r){i+=r;continue}let s=this.tryParseUnquoted(e,t);if(s){i+=s;continue}let n=this.tryParseLeftAngleBracket();if(n){i+=n;continue}break}return{val:{type:0,value:i,location:O(r,this.clonePosition())},err:null}}tryParseLeftAngleBracket(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(K(e=this.peek()||0)||47===e)?null:(this.bump(),"<")}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(39===e)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){let r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,O(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(2,O(r,this.clonePosition()));let i=this.parseIdentifierIfPossible().value;if(!i)return this.error(3,O(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,O(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:i,location:O(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,O(r,this.clonePosition()));return this.parseArgumentOptions(e,t,i,r);default:return this.error(3,O(r,this.clonePosition()))}}parseIdentifierIfPossible(){var e;let t=this.clonePosition(),r=this.offset(),i=(e=this.message,k.lastIndex=r,k.exec(e)[1]??""),s=r+i.length;return this.bumpTo(s),{value:i,location:O(t,this.clonePosition())}}parseArgumentOptions(e,t,r,i){let s=this.clonePosition(),n=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(n){case"":return this.error(4,O(s,o));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();let t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;let i=U(r.val);if(0===i.length)return this.error(6,O(this.clonePosition(),this.clonePosition()));e={style:i,styleLocation:O(t,this.clonePosition())}}let t=this.tryParseArgumentClose(i);if(t.err)return t;let s=O(i,this.clonePosition());if(e&&e.style.startsWith("::")){let t=G(e.style.slice(2));if("number"===n){let i=this.parseNumberSkeletonFromString(t,e.styleLocation);if(i.err)return i;return{val:{type:2,value:r,location:s,style:i.val},err:null}}{if(0===t.length)return this.error(10,s);let i=t;return this.locale&&(i=function(e,t){let r="";for(let i=0;i<e.length;i++){let s=e.charAt(i);if("j"===s){let n=0;for(;i+1<e.length&&e.charAt(i+1)===s;)n++,i++;let o=1+(1&n),h=n<2?1:3+(n>>1),a=function(e){let t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let i=e.language;return"root"!==i&&(t=e.maximize().region),(L[t||""]||L[i||""]||L[`${i}-001`]||L["001"])[0]}(t);for(("H"==a||"k"==a)&&(h=0);h-- >0;)r+="a";for(;o-- >0;)r=a+r}else"J"===s?r+="H":r+=s}return r}(t,this.locale)),{val:{type:"date"===n?3:4,value:r,location:s,style:{type:1,pattern:i,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?function(e){let t={};return e.replace(b,e=>{let r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-3];break;case"c":if(r<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-3];break;case"a":t.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}(i):{}}},err:null}}}return{val:{type:"number"===n?2:"date"===n?3:4,value:r,location:s,style:e?.style??null},err:null}}case"plural":case"selectordinal":case"select":{let s=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,O(s,{...s}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),h=0;if("select"!==n&&"offset"===o.value){if(!this.bumpIf(":"))return this.error(13,O(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),h=e.val}let a=this.tryParsePluralOrSelectOptions(e,n,t,o);if(a.err)return a;let l=this.tryParseArgumentClose(i);if(l.err)return l;let u=O(i,this.clonePosition());if("select"===n)return{val:{type:5,value:r,options:D(a.val),location:u},err:null};return{val:{type:6,value:r,options:D(a.val),offset:h,pluralType:"plural"===n?"cardinal":"ordinal",location:u},err:null}}default:return this.error(5,O(s,o))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(1,O(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(11,O(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");let t=e.split(H).filter(e=>e.length>0),r=[];for(let e of t){let t=e.split("/");if(0===t.length)throw Error("Invalid number skeleton");let[i,...s]=t;for(let e of s)if(0===e.length)throw Error("Invalid number skeleton");r.push({stem:i,options:s})}return r}(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){let t={};for(let r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...r.options.reduce((e,t)=>({...e,...I(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((e,t)=>({...e,...I(t)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(d,function(e,r,i,s,n,o){if(r)t.minimumIntegerDigits=i.length;else if(s&&n)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(T.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(y.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(y,function(e,r,i,s,n,o){return"*"===i?t.minimumFractionDigits=r.length:s&&"#"===s[0]?t.maximumFractionDigits=s.length:n&&o?(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});let e=r.options[0];"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...A(e)});continue}if(B.test(r.stem)){t={...t,...A(r.stem)};continue}let e=S(r.stem);e&&(t={...t,...e});let i=function(e){let t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){let r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!T.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);i&&(t={...t,...i})}return t}(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,i){let s=!1,n=[],o=new Set,{value:h,location:a}=i;for(;;){if(0===h.length){let e=this.clonePosition();if("select"!==t&&this.bumpIf("=")){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;a=O(e,this.clonePosition()),h=this.message.slice(e.offset,this.offset())}else break}if(o.has(h))return this.error("select"===t?21:20,a);"other"===h&&(s=!0),this.bumpSpace();let i=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?17:18,O(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,r);if(l.err)return l;let u=this.tryParseArgumentClose(i);if(u.err)return u;n.push([h,{value:l.val,location:O(i,this.clonePosition())}]),o.add(h),this.bumpSpace(),{value:h,location:a}=this.parseIdentifierIfPossible()}return 0===n.length?this.error("select"===t?15:16,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(22,O(this.clonePosition(),this.clonePosition())):{val:n,err:null}}tryParseDecimalInteger(e,t){let r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let s=!1,n=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)s=!0,n=10*n+(e-48),this.bump();else break}let o=O(i,this.clonePosition());return s?Number.isSafeInteger(n*=r)?{val:n,err:null}:this.error(t,o):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");let t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var e;!this.isEOF()&&((e=this.char())>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e);)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function K(e){return e>=97&&e<=122||e>=65&&e<=90}function x(e,t={}){let r=new V(e,t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t}).parse();if(r.err){let e=SyntaxError(N[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return t?.captureLocation||function e(t){t.forEach(t=>{if(delete t.location,5===t.type||6===t.type)for(let r in t.options)delete t.options[r].location,e(t.options[r].value);else 2===t.type&&_(t.style)||(3===t.type||4===t.type)&&P(t.style)?delete t.style.location:8===t.type&&e(t.children)})}(r.val),r.val}var Z=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},X=class extends Z{constructor(e,t,r,i){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,"INVALID_VALUE",i)}},Y=class extends Z{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",r)}},j=class extends Z{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,"MISSING_VALUE",t)}};function $(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}var W=class e{constructor(t,r=e.defaultLocale,i,n){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(1===t.length)return t[0].value;let r=t.reduce((e,t)=>(e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e),[]);return r.length<=1?r[0]||"":r},this.formatToParts=e=>(function e(t,r,i,s,n,o,h){if(1===t.length&&0===t[0].type)return[{type:0,value:t[0].value}];let a=[];for(let l of t){if(0===l.type){a.push({type:0,value:l.value});continue}if(7===l.type){"number"==typeof o&&a.push({type:0,value:i.getNumberFormat(r).format(o)});continue}let{value:t}=l;if(!(n&&t in n))throw new j(t,h);let u=n[t];if(1===l.type){u&&"string"!=typeof u&&"number"!=typeof u&&"bigint"!=typeof u||(u="string"==typeof u||"number"==typeof u||"bigint"==typeof u?String(u):""),a.push({type:+("string"!=typeof u),value:u});continue}if(3===l.type){let e="string"==typeof l.style?s.date[l.style]:P(l.style)?l.style.parsedOptions:void 0;a.push({type:0,value:i.getDateTimeFormat(r,e).format(u)});continue}if(4===l.type){let e="string"==typeof l.style?s.time[l.style]:P(l.style)?l.style.parsedOptions:s.time.medium;a.push({type:0,value:i.getDateTimeFormat(r,e).format(u)});continue}if(2===l.type){let e="string"==typeof l.style?s.number[l.style]:_(l.style)?l.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if("bigint"==typeof u){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);u*=BigInt(t)}else u*=t}a.push({type:0,value:i.getNumberFormat(r,e).format(u)});continue}if(8===l.type){let{children:t,value:u}=l,c=n[u];if("function"!=typeof c)throw new Y(u,"function",h);let m=c(e(t,r,i,s,n,o).map(e=>e.value));Array.isArray(m)||(m=[m]),a.push(...m.map(e=>({type:+("string"!=typeof e),value:e})))}if(5===l.type){let t=u,o=(Object.prototype.hasOwnProperty.call(l.options,t)?l.options[t]:void 0)||l.options.other;if(!o)throw new X(l.value,u,Object.keys(l.options),h);a.push(...e(o.value,r,i,s,n));continue}if(6===l.type){let t=`=${u}`,o=Object.prototype.hasOwnProperty.call(l.options,t)?l.options[t]:void 0;if(!o){if(!Intl.PluralRules)throw new Z(`Intl.PluralRules is not available in this environment.
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
3
  `,"MISSING_INTL_API",h);let e="bigint"==typeof u?Number(u):u,t=i.getPluralRules(r,{type:l.pluralType}).select(e-(l.offset||0));o=(Object.prototype.hasOwnProperty.call(l.options,t)?l.options[t]:void 0)||l.options.other}if(!o)throw new X(l.value,u,Object.keys(l.options),h);let c="bigint"==typeof u?Number(u):u;a.push(...e(o.value,r,i,s,n,c-(l.offset||0)));continue}}return a.length<2?a:a.reduce((e,t)=>{let r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e},[])})(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...r}=n||{};this.ast=e.__parse(t,{...r,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((r,i)=>{var s,n;return r[i]=(s=e[i],(n=t[i])?{...s,...n,...Object.keys(s).reduce((e,t)=>(e[t]={...s[t],...n[t]},e),{})}:s),r},{...e}):e}(e.formats,i),this.formatters=n&&n.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:s((...e)=>new Intl.NumberFormat(...e),{cache:$(e.number),strategy:u.variadic}),getDateTimeFormat:s((...e)=>new Intl.DateTimeFormat(...e),{cache:$(e.dateTime),strategy:u.variadic}),getPluralRules:s((...e)=>new Intl.PluralRules(...e),{cache:$(e.pluralRules),strategy:u.variadic})}}(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(void 0===Intl.Locale)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}}static{this.__parse=x}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}};function z(...[e,t,r,s]){let n;if(Array.isArray(t))throw new c(m.INVALID_MESSAGE,void 0);if("object"==typeof t)throw new c(m.INSUFFICIENT_PATH,void 0);if("string"==typeof t){let e=r||/'[{}<#|']/.test(t)?void 0:t;if(e)return e}let{cache:o,formats:h,formatters:a,globalFormats:l,locale:u,timeZone:f}=s;a.getMessageFormat||(a.getMessageFormat=p((...e)=>new W(e[0],e[1],e[2],{formatters:a,...e[3]}),o.message));try{n=a.getMessageFormat(t,u,function(e,t,r){let i=W.formats.date,s=W.formats.time,n={...e?.dateTime,...t?.dateTime},o={date:{...i,...n},time:{...s,...n},number:{...e?.number,...t?.number}};return r&&["date","time"].forEach(e=>{let t=o[e];for(let[e,i]of Object.entries(t))t[e]={timeZone:r,...i}}),o}(l,h,f),{formatters:{...a,getDateTimeFormat:(e,t)=>a.getDateTimeFormat(e,{...t,timeZone:t?.timeZone??f})}})}catch(e){throw new c(m.INVALID_MESSAGE,void 0)}let g=n.format(r);return(0,i.isValidElement)(g)||Array.isArray(g)||"string"==typeof g?g:String(g)}function q(...e){return e.filter(Boolean).join(".")}function J(e){return q(e.namespace,e.key)}function Q(e){console.error(e)}function ee(e,t,r,i){let s=q(i,r);if(!t)throw Error(s);let n=t;return r.split(".").forEach(t=>{let r=n[t];if(null==t||null==r)throw Error(s+` (${e})`);n=r}),n}z.raw=!0;let et={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2628e3,months:2628e3,quarter:7884e3,quarters:7884e3,year:31536e3,years:31536e3};var er=r(7893);let ei=(0,i.createContext)(void 0);function es({children:e,formats:t,getMessageFallback:r,locale:s,messages:n,now:o,onError:h,timeZone:a}){let l=(0,i.useContext)(ei),u=(0,i.useMemo)(()=>l?.cache||f(),[s,l?.cache]),c=(0,i.useMemo)(()=>l?.formatters||E(u),[u,l?.formatters]),m=(0,i.useMemo)(()=>({...function({formats:e,getMessageFallback:t,messages:r,onError:i,...s}){return{...s,formats:e||void 0,messages:r||void 0,onError:i||Q,getMessageFallback:t||J}}({locale:s,formats:void 0===t?l?.formats:t,getMessageFallback:r||l?.getMessageFallback,messages:void 0===n?l?.messages:n,now:o||l?.now,onError:h||l?.onError,timeZone:a||l?.timeZone}),formatters:c,cache:u}),[u,t,c,r,s,n,o,h,l,a]);return(0,er.jsx)(ei.Provider,{value:m,children:e})}function en(){let e=(0,i.useContext)(ei);if(!e)throw Error(void 0);return e}let eo=!1,eh="undefined"==typeof window;function ea(e){return function(e,t,r){let{cache:s,formats:n,formatters:o,getMessageFallback:h,locale:a,onError:l,timeZone:u}=en(),f=e["!"],p="!"===t?void 0:t.slice((r+".").length);return u||eo||!eh||(eo=!0,l(new c(m.ENVIRONMENT_FALLBACK,void 0))),(0,i.useMemo)(()=>(function(e){let t=function(e,t,r){try{if(!t)throw Error(void 0);let i=r?ee(e,t,r):t;if(!i)throw Error(r);return i}catch(e){return new c(m.MISSING_MESSAGE,e.message)}}(e.locale,e.messages,e.namespace);return function({cache:e,formats:t,formatters:r,getMessageFallback:s=J,locale:n,messagesOrError:o,namespace:h,onError:a,timeZone:l}){let u=o instanceof c;function f(e,t,r,i){let n=new c(t,r);return a(n),i??s({error:n,key:e,namespace:h})}function p(p,g,E,b){let H;if(u){if(!b)return a(o),s({error:o,key:p,namespace:h});H=b}else try{H=ee(n,o,p,h)}catch(e){if(!b)return f(p,m.MISSING_MESSAGE,e.message,b);H=b}try{let s=q(h,p);return z(s,H,g?function(e){let t={};return Object.keys(e).forEach(r=>{let s,n=0,o=e[r];s="function"==typeof o?e=>{let t=o(e);return(0,i.isValidElement)(t)?(0,i.cloneElement)(t,{key:r+n++}):t}:o,t[r]=s}),t}(g):g,{cache:e,formatters:r,globalFormats:t,formats:E,locale:n,timeZone:l})}catch(r){let e,t;return r instanceof c?(e=r.code,t=r.originalMessage):(e=m.FORMATTING_ERROR,t=r.message),f(p,e,t,b)}}function g(e,t,r,i){let s=p(e,t,r,i);return"string"!=typeof s?f(e,m.INVALID_MESSAGE,void 0):s}return g.rich=p,g.markup=(e,t,r,i)=>p(e,t,r,i),g.raw=e=>{if(u)return a(o),s({error:o,key:e,namespace:h});try{return ee(n,o,e,h)}catch(t){return f(e,m.MISSING_MESSAGE,t.message)}},g.has=e=>{if(u)return!1;try{return ee(n,o,e,h),!0}catch{return!1}},g}({...e,messagesOrError:t})})({cache:s,formatters:o,getMessageFallback:h,messages:f,namespace:p,onError:l,formats:n,locale:a,timeZone:u}),[s,o,h,f,p,l,n,a,u])}({"!":en().messages},e?`!.${e}`:"!","!")}function el(){return en().locale}function eu(){let{formats:e,formatters:t,locale:r,now:s,onError:n,timeZone:o}=en();return(0,i.useMemo)(()=>(function(e){let{_cache:t=f(),_formatters:r=E(t),formats:i,locale:s,onError:n=Q,timeZone:o}=e;function h(e){return e?.timeZone||(o?e={...e,timeZone:o}:n(new c(m.ENVIRONMENT_FALLBACK,void 0))),e}function a(e,t,r,i,s){let o;try{o=function(e,t,r){let i;if("string"==typeof t){if(!(i=e?.[t])){let e=new c(m.MISSING_FORMAT,void 0);throw n(e),e}}else i=t;return r&&(i={...i,...r}),i}(r,e,t)}catch{return s()}try{return i(o)}catch(e){return n(new c(m.FORMATTING_ERROR,e.message)),s()}}function l(e,t,n){return a(t,n,i?.dateTime,t=>(t=h(t),r.getDateTimeFormat(s,t).format(e)),()=>String(e))}function u(){return e.now?e.now:(n(new c(m.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:l,number:function(e,t,n){return a(t,n,i?.number,t=>r.getNumberFormat(s,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var i;let n,o,h={};t instanceof Date||"number"==typeof t?n=new Date(t):t&&(n=null!=t.now?new Date(t.now):u(),o=t.unit,h.style=t.style,h.numberingSystem=t.numberingSystem),n||(n=u());let a=(new Date(e).getTime()-n.getTime())/1e3;o||(o=function(e){let t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":t<604800?"day":t<2628e3?"week":t<31536e3?"month":"year"}(a)),h.numeric="second"===o?"auto":"always";let l=(i=o,Math.round(a/et[i]));return r.getRelativeTimeFormat(s,h).format(l,o)}catch(t){return n(new c(m.FORMATTING_ERROR,t.message)),String(e)}},list:function(e,t,n){let o=[],h=new Map,l=0;for(let t of e){let e;"object"==typeof t?(e=String(l),h.set(e,t)):e=String(t),o.push(e),l++}return a(t,n,i?.list,e=>{let t=r.getListFormat(s,e).formatToParts(o).map(e=>"literal"===e.type?e.value:h.get(e.value)||e.value);return h.size>0?t:t.join("")},()=>String(e))},dateTimeRange:function(e,t,n,o){return a(n,o,i?.dateTime,i=>(i=h(i),r.getDateTimeFormat(s,i).formatRange(e,t)),()=>[l(e),l(t)].join(" – "))},displayName:function(e,t,n){return a(t,n,i?.displayName,t=>r.getDisplayNames(s,t).of(e),()=>e)}}})({formats:e,locale:r,now:s,onError:n,timeZone:o,_formatters:t}),[e,t,s,r,n,o])}}}]);