ainguyen commited on
Commit
71872d6
1 Parent(s): 4887518

Init project

Browse files
Files changed (39) hide show
  1. 404.html +1 -0
  2. _next/static/chunks/123-a6d2101f21b1dc81.js +1 -0
  3. _next/static/chunks/190-8c3f29b77c1f7978.js +0 -0
  4. _next/static/chunks/413.744619bdd7ea9098.js +0 -0
  5. _next/static/chunks/423-06102cf1584a8fa3.js +0 -0
  6. _next/static/chunks/432.34b698d3db09a44a.js +1 -0
  7. _next/static/chunks/590caa2a.699039c37022246b.js +12 -0
  8. _next/static/chunks/6139e184.ec466d5482164223.js +1 -0
  9. _next/static/chunks/946-310f6d0c4f8124d5.js +0 -0
  10. _next/static/chunks/app/_not-found/page-3aa23121d293e5c8.js +1 -0
  11. _next/static/chunks/app/layout-0e0c053c92ad2f81.js +1 -0
  12. _next/static/chunks/app/page-d8efbd597c53f3cc.js +1 -0
  13. _next/static/chunks/b2db8554.2f90d90ec938bc93.js +0 -0
  14. _next/static/chunks/fd9d1056-ee32f1bf30eb3d3f.js +0 -0
  15. _next/static/chunks/framework-aec844d2ccbe7592.js +0 -0
  16. _next/static/chunks/main-app-5420370b676a56f3.js +1 -0
  17. _next/static/chunks/main-fb740fb39bc15572.js +0 -0
  18. _next/static/chunks/pages/_app-6a626577ffa902a4.js +1 -0
  19. _next/static/chunks/pages/_error-1be831200e60c5c0.js +1 -0
  20. _next/static/chunks/polyfills-78c92fac7aa8fdd8.js +1 -0
  21. _next/static/chunks/webpack-c511210a6eab1a58.js +1 -0
  22. _next/static/css/c07dfed9e589ce2b.css +0 -0
  23. _next/static/sS3KCrv4R0AkB6q5rvqSN/_buildManifest.js +1 -0
  24. _next/static/sS3KCrv4R0AkB6q5rvqSN/_ssgManifest.js +1 -0
  25. favicon.ico +0 -0
  26. icons/android-icon-192x192.png +0 -0
  27. icons/android-icon-512x512.png +0 -0
  28. icons/apple-icon-16x16.png +0 -0
  29. icons/apple-icon-32x32.png +0 -0
  30. icons/apple-icon.png +0 -0
  31. icons/safari-pinned-tab.svg +18 -0
  32. icons/share.png +0 -0
  33. index.html +134 -19
  34. index.txt +8 -0
  35. manifest.json +29 -0
  36. sw.js +1 -0
  37. tamagui.css +0 -0
  38. vercel.svg +4 -0
  39. workbox-c06b064f.js +1 -0
404.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-c511210a6eab1a58.js"/><script src="/_next/static/chunks/fd9d1056-ee32f1bf30eb3d3f.js" async=""></script><script src="/_next/static/chunks/190-8c3f29b77c1f7978.js" async=""></script><script src="/_next/static/chunks/main-app-5420370b676a56f3.js" async=""></script><script src="/_next/static/chunks/946-310f6d0c4f8124d5.js" async=""></script><script src="/_next/static/chunks/123-a6d2101f21b1dc81.js" async=""></script><script src="/_next/static/chunks/app/layout-0e0c053c92ad2f81.js" async=""></script><title>404: This page could not be found.</title><title>Translator demo app built with Transformers.js + Tamagui + Next.js</title><meta name="description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta name="application-name" content="Translator Demo"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><meta name="keywords" content="Translator,Transformers.js,Next.js,Tamagui"/><meta name="format-detection" content="telephone=no"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><meta property="og:title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta property="og:description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta property="og:url" content="https://hf.co/spaces/huuquyet/translator-tamagui/"/><meta property="og:site_name" content="Translator Demo"/><meta property="og:image" content="https://${process.env.vercel_url}/icon/share.png"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta name="twitter:site" content="@HuuQuyetNg"/><meta name="twitter:title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta name="twitter:description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta name="twitter:image" content="https://${process.env.vercel_url}/icon/share.png"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script><style></style></head><body><span class="t_light is_inversed _dsp_contents"><span class=" t_light _dsp_contents is_Theme" style="color:var(--color)"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div></span></span><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><script src="/_next/static/chunks/webpack-c511210a6eab1a58.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[5751,[],\"\"]\n3:I[9275,[],\"\"]\n4:I[1343,[],\"\"]\n5:I[2981,[\"946\",\"static/chunks/946-310f6d0c4f8124d5.js\",\"123\",\"static/chunks/123-a6d2101f21b1dc81.js\",\"185\",\"static/chunks/app/layout-0e0c053c92ad2f81.js\"],\"default\"]\na:I[2944,[\"946\",\"static/chunks/946-310f6d0c4f8124d5.js\",\"123\",\"static/chunks/123-a6d2101f21b1dc81.js\",\"185\",\"static/chunks/app/layout-0e0c053c92ad2f81.js\"],\"Analytics\"]\nc:I[6130,[],\"\"]\n6:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n7:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n8:{\"display\":\"inline-block\"}\n9:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nd:[]\n"])</script><script>self.__next_f.push([1,"0:[null,[\"$\",\"$L1\",null,{\"buildId\":\"sS3KCrv4R0AkB6q5rvqSN\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/_not-found\",\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]]],null],null]},[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{}],[\"$\",\"body\",null,{\"children\":[[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$6\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$7\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$8\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$9\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}],[\"$\",\"$La\",null,{}]]}]]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[false,\"$Lb\"],\"globalErrorComponent\":\"$c\",\"missingSlots\":\"$Wd\"}]]\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"4\",{\"name\":\"application-name\",\"content\":\"Translator Demo\"}],[\"$\",\"link\",\"5\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"6\",{\"name\":\"keywords\",\"content\":\"Translator,Transformers.js,Next.js,Tamagui\"}],[\"$\",\"meta\",\"7\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"8\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"9\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"10\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"meta\",\"11\",{\"property\":\"og:title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"12\",{\"property\":\"og:description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"13\",{\"property\":\"og:url\",\"content\":\"https://hf.co/spaces/huuquyet/translator-tamagui/\"}],[\"$\",\"meta\",\"14\",{\"property\":\"og:site_name\",\"content\":\"Translator Demo\"}],[\"$\",\"meta\",\"15\",{\"property\":\"og:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}],[\"$\",\"meta\",\"16\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"17\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"18\",{\"name\":\"twitter:site\",\"content\":\"@HuuQuyetNg\"}],[\"$\",\"meta\",\"19\",{\"name\":\"twitter:title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"20\",{\"name\":\"twitter:description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"21\",{\"name\":\"twitter:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}]]\n2:null\n"])</script></body></html><style></style>
_next/static/chunks/123-a6d2101f21b1dc81.js ADDED
@@ -0,0 +1 @@
 
 
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[123],{8462:function(e,r,t){t.d(r,{G:function(){return b}});var o=t(281),l=t(9087),s=t(7449),a=t.n(s),n=t(2265);let i=["light","dark"],c="(prefers-color-scheme: dark)",h=(e,r)=>{let t;if(!(typeof window>"u")){try{t=localStorage.getItem(e)||void 0}catch{}return t||r}},d=e=>(e||(e=window.matchMedia(c)),e.matches?"dark":"light");var u=t(1636),m=t(2281);let b=(0,n.memo)(({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:t=!0,enableColorScheme:s=!0,storageKey:a="theme",themes:b=i,defaultTheme:p=t?"system":"light",attribute:f="class",skipNextHead:k,onChangeTheme:w,value:y={dark:"t_dark",light:"t_light"},children:v})=>{let[C,$]=(0,n.useState)(()=>h(a,p)),[S,P]=(0,n.useState)(()=>h(a)),x=y?Object.values(y):b,H=(0,l.z)(t=>{let o=d(t),l=()=>P(o);r?l():n.startTransition(()=>l()),"system"!==C||e||T(o,!1)}),T=(0,l.z)((e,r=!0,o=!0)=>{let l=y?.[e]||e;if(r)try{localStorage.setItem(a,e)}catch{}if("system"===e&&t){let e=d();l=y?.[e]||e}if(w?.(l.replace("t_","")),o){let e=document.documentElement;"class"===f?(e.classList.remove(...x),e.classList.add(l)):e.setAttribute(f,l)}});(0,o.LI)(()=>{let e=window.matchMedia(c);return e.addListener(H),H(e),()=>{e.removeListener(H)}},[]);let j=(0,l.z)(r=>{e?T(r,!0,!1):T(r),$(r)});(0,n.useEffect)(()=>{let e=e=>{e.key===a&&j(e.newValue||p)};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},[p,j,a]),(0,o.LI)(()=>{if(!s)return;let r=e&&i.includes(e)?e:C&&i.includes(C)?C:"system"===C&&S||null;("u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")!==(r||"light")&&document.documentElement.style.setProperty("color-scheme",r)},[s,C,S,e]);let F=(0,l.z)(()=>{let e="dark"===S?["system","light","dark"]:["system","dark","light"];j(e[(e.indexOf(C)+1)%e.length])}),O=t?S:void 0,E=(0,n.useMemo)(()=>({theme:C,current:C,set:j,toggle:F,forcedTheme:e,resolvedTheme:"system"===C?S:C,themes:t?[...b,"system"]:b,systemTheme:O}),[C,j,F,e,S,t,b,O]);return(0,m.jsxs)(u.m.Provider,{value:E,children:[(0,m.jsx)(g,{forcedTheme:e,storageKey:a,systemTheme:S,attribute:f,value:y,enableSystem:t,defaultTheme:p,attrs:x,skipNextHead:k}),(0,n.useMemo)(()=>v,[v])]})}),g=(0,n.memo)(({forcedTheme:e,storageKey:r,attribute:t,enableSystem:o,defaultTheme:l,value:s,attrs:n,skipNextHead:i})=>{let h="class"===t?`var d=document.documentElement.classList;${n.map(e=>`d.remove('${e}')`).join(";")};`:"var d=document.documentElement;",d=(e,r)=>{e=s?.[e]||e;let o=r?e:`'${e}'`;return"class"===t?`d.add(${o})`:`d.setAttribute('${t}', ${o})`},u="system"===l,b=(0,m.jsx)(m.Fragment,{children:e?(0,m.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){${h}${d(e)}}()`}},"next-themes-script"):o?(0,m.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){try {${h}var e=localStorage.getItem('${r}');${u?"":d(l)+";"}if("system"===e||(!e&&${u})){var t="${c}",m=window.matchMedia(t);m.media!==t||m.matches?${d("dark")}:${d("light")}}else if(e) ${s?`var x=${JSON.stringify(s)};`:""}${d(s?"x[e]":"e",!0)}}catch(e){}}()`}},"next-themes-script"):(0,m.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){try{${h}var e=localStorage.getItem("${r}");if(e){${s?`var x=${JSON.stringify(s)};`:""}${d(s?"x[e]":"e",!0)}}else{${d(l)};}}catch(t){}}();`}},"next-themes-script")});return i?b:(0,m.jsx)(a(),{children:b})},(e,r)=>e.forcedTheme===r.forcedTheme)},1636:function(e,r,t){t.d(r,{m:function(){return o}});let o=(0,t(2265).createContext)({toggle:()=>{},set:e=>{},themes:[]})},9010:function(e,r,t){t.d(r,{U:function(){return s}});var o=t(281),l=t(2265);let s=({fallback:e="light"}={})=>{let r=e;if(o.C5){let t=[...document.documentElement.classList];r=t.includes("t_dark")?"dark":t.includes("t_light")?"light":e}return(0,l.useState)(r)}},1542:function(e,r,t){t.d(r,{P:function(){return s}});var o=t(2265),l=t(1636);let s=()=>(0,o.useContext)(l.m)},6463:function(e,r,t){var o=t(1169);t.o(o,"useParams")&&t.d(r,{useParams:function(){return o.useParams}}),t.o(o,"usePathname")&&t.d(r,{usePathname:function(){return o.usePathname}}),t.o(o,"useSearchParams")&&t.d(r,{useSearchParams:function(){return o.useSearchParams}}),t.o(o,"useServerInsertedHTML")&&t.d(r,{useServerInsertedHTML:function(){return o.useServerInsertedHTML}})},7449:function(e,r){function t(){return null}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return t}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},8578:function(e,r,t){t.d(r,{vc:function(){return eb}});let o={ussel:"userSelect",cur:"cursor",pe:"pointerEvents",col:"color",ff:"fontFamily",fos:"fontSize",fost:"fontStyle",fow:"fontWeight",ls:"letterSpacing",lh:"lineHeight",ta:"textAlign",tt:"textTransform",ww:"wordWrap",ac:"alignContent",ai:"alignItems",als:"alignSelf",b:"bottom",bg:"backgroundColor",bbc:"borderBottomColor",bblr:"borderBottomLeftRadius",bbrr:"borderBottomRightRadius",bbw:"borderBottomWidth",blc:"borderLeftColor",blw:"borderLeftWidth",bc:"borderColor",br:"borderRadius",bs:"borderStyle",brw:"borderRightWidth",brc:"borderRightColor",btc:"borderTopColor",btlr:"borderTopLeftRadius",btrr:"borderTopRightRadius",btw:"borderTopWidth",bw:"borderWidth",dsp:"display",f:"flex",fb:"flexBasis",fd:"flexDirection",fg:"flexGrow",fs:"flexShrink",fw:"flexWrap",h:"height",jc:"justifyContent",l:"left",m:"margin",mah:"maxHeight",maw:"maxWidth",mb:"marginBottom",mih:"minHeight",miw:"minWidth",ml:"marginLeft",mr:"marginRight",mt:"marginTop",mx:"marginHorizontal",my:"marginVertical",o:"opacity",ov:"overflow",p:"padding",pb:"paddingBottom",pl:"paddingLeft",pos:"position",pr:"paddingRight",pt:"paddingTop",px:"paddingHorizontal",py:"paddingVertical",r:"right",shac:"shadowColor",shar:"shadowRadius",shof:"shadowOffset",shop:"shadowOpacity",t:"top",w:"width",zi:"zIndex"};function l(e){return Object.entries(e)}function s(e){return Object.fromEntries(e)}o.bls="borderLeftStyle",o.brs="borderRightStyle",o.bts="borderTopStyle",o.bbs="borderBottomStyle",o.bxs="boxSizing",o.bxsh="boxShadow",o.ox="overflowX",o.oy="overflowY";let a=e=>"function"==typeof e?{name:e.name||"unnamed",mask:e}:e,n=(e,r)=>{let{skip:t}=r;return Object.fromEntries(Object.entries(e).filter(([e])=>!t||!(e in t)).map(([e,t])=>[e,function(e,r,t){let o,l=t.overrideStrategy,s=t.overrideSwap?.[e];if("u">typeof s)o=s,l="swap";else{let r=t.overrideShift?.[e];if("u">typeof r)o=r,l="shift";else{let r=t.override?.[e];"u">typeof r&&(o=r,l=t.overrideStrategy)}}return typeof o>"u"||"string"==typeof o?r:"swap"===l?o:r}(e,t,r)]))},i=()=>({name:"inverse-mask",mask:(e,r)=>n(s(l(e).map(([e,r])=>[e,-r])),r)}),c=({inverse:e}={},r)=>({name:"shift-mask",mask:(t,o)=>{let{override:l,overrideStrategy:s="shift",max:a,palette:i,min:c=0,strength:h=1}={...r,...o},d=Object.entries(t),u=a??(i?Object.values(i).length-1:1/0),m={};for(let[r,t]of d){if("string"==typeof t)continue;if("number"==typeof l?.[r]){let e=l[r];m[r]="shift"===s?t+e:e;continue}if("string"==typeof l?.[r]){m[r]=l[r];continue}let o=0===t?1/t!=-1/0:t>=0,a=t+h*(o?1:-1)*(e?-1:1),n=o?Math.max(c,Math.min(u,a)):Math.min(-c,Math.max(-u,a));m[r]=n}return n(m,o)}}),h=e=>({name:"soften-mask",mask:c({},e).mask}),d=e=>({name:"strengthen-mask",mask:c({inverse:!0},e).mask}),u=new Map,m=(e,r)=>u.get(r||JSON.stringify(e)),b=(e,r)=>{let t={...r,cache:new Map};u.set(r.name||JSON.stringify(e),t),u.set(JSON.stringify(r.definition),t)},g=new Map;function p(e,r,t,o,l=!1){let s=l?"":JSON.stringify([o,e,r,t]);if(!l&&g.has(s))return g.get(s);let a={...Object.fromEntries(Object.entries(r).map(([r,t])=>[r,f(e,t)])),...t?.nonInheritedValues};return b(a,{palette:e,definition:r,options:t,name:o}),s&&g.set(s,a),a}let f=(e,r)=>{if(!e)throw Error("No palette!");if("string"==typeof r)return r;let t=e.length-1;return e[Math.min(Math.max(0,(0===r?1/r!=-1/0:r>=0)?r:t+r),t)]};function k(e,r,t={},o){let l={...t.skip};if(e.options?.nonInheritedValues)for(let r in e.options.nonInheritedValues)l[r]=1;let s={parentName:o,palette:e.palette,...t,skip:l},a=r.mask(e.definition,s),n=p(e.palette,a);return{...e,cache:new Map,definition:a,theme:n}}class w{constructor(e){this.state=e}addPalettes(e){return this.state.palettes={...this.state.palettes,...e},this}addTemplates(e){return this.state.templates={...this.state.templates,...e},this}addMasks(e){return this.state.masks={...this.state.masks,...s(l(e).map(([e,r])=>[e,a(r)]))},this}_addedThemes=[];addThemes(e){return this._addedThemes.push({type:"themes",args:[e]}),this.state.themes={...this.state.themes,...e},this}addComponentThemes(e,r){return this.addChildThemes(e,r),this}addChildThemes(e,r){let t=this.state.themes;if(!t)throw Error("No themes defined yet, use addThemes first to set your base themes");this._addedThemes.push({type:"childThemes",args:[e,r]});let o=Object.keys(t),l=Object.keys(e),s=Object.fromEntries(o.flatMap(t=>{let o=r?.avoidNestingWithin;return o&&o.some(e=>t.startsWith(e)||t.endsWith(e))?[]:l.map(r=>{let o=`${t}_${r}`,l=e[r];return"avoidNestingWithin"in l&&l.avoidNestingWithin.some(e=>t.startsWith(e)||t.endsWith(e))?null:[o,l]}).filter(Boolean)})),a={...this.state.themes,...s};return this.state.themes=a,this}build(){if(!this.state.themes)return{};let e={},r=[];for(let t in this.state.themes){let o=t.split("_"),l=o.slice(0,o.length-1).join("_"),s=this.state.themes[t],a=Array.isArray(s)?s.find(e=>!e.parent||l.endsWith(e.parent)||l.startsWith(e.parent))||null:s;if(a){if("theme"in a)e[t]=a.theme;else if("mask"in a)r.push({parentName:l,themeName:t,mask:a});else{let{palette:r="",template:s,...n}=a;if(this.state.themes[l],!this.state.palettes)throw Error(`No palettes defined for theme with palette expected: ${t}`);let i=this.state.palettes[r||""],c=`${l}_${r}`;for(;!i&&c;)c in this.state.palettes?(i=this.state.palettes[c],r=c):c=c.split("_").slice(0,-1).join("_");if(!i)throw Error("No palette for theme");let h=this.state.templates?.[s]??this.state.templates?.[`${o[0]}_${s}`];if(!h)throw Error(`No template for theme ${t}: ${s}`);e[t]=function(e,r,t,o,l,s=!1){if(!e[r])throw Error(`No pallete: ${r}`);let a={...t};for(let o in t){let l=t[o];if("string"==typeof l&&"$"===l[0]){let[t,s]=l.split("."),n=t.slice(1),i=r.split("_")[0],c=e[n]||e[`${i}_${n}`];if(c){let e=f(c,+s);"u">typeof e&&(a[o]=e)}}}return p(e[r],a,o,l,s)}(this.state.palettes,r,h,n,t,!0)}}}for(let{mask:t,themeName:o,parentName:l}of r){let r=e[l];if(!r)continue;let{mask:s,...a}=t,n=this.state.masks?.[s];if(!n)throw Error(`No mask ${s}`);let i=this.state.themes[l];if(i&&"childOptions"in i){let{mask:e,...r}=i.childOptions;e&&(n=this.state.masks?.[e]),Object.assign(a,r)}e[o]=function(e,r,t={},o,l){let s=m(e,o);if(!s)throw Error("❌ Err2");let a=k(s,r,t,o);return b(a.theme,{definition:a.definition,palette:s.palette,name:l}),a.theme}(r,n,a,l,o)}return e}}let y=(...e)=>({name:"combine-mask",mask:(r,t)=>{let o=m(r,t.parentName),l;for(let s of e){if(!o)throw Error(`Nothing returned from mask: ${o}, for template: ${r} and mask: ${s.toString()}, given opts ${JSON.stringify(t,null,2)}`);let e=k(o,s,t);o=e,l=e.theme}return l}});h(),h({strength:2}),h({strength:3}),d(),i(),y(i(),h({strength:2})),y(i(),h({strength:3})),y(i(),h({strength:4})),y(i(),d({strength:2})),a((e,r)=>{let t=d().mask(e,r),o=h().mask(e,r);return{...t,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),a((e,r)=>{let t=h({strength:2}).mask(e,r),o=h({strength:1}).mask(e,r);return{...t,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),a((e,r)=>{let t=h({strength:2}).mask(e,r);return{...h({strength:3}).mask(e,r),borderColor:t.borderColor,borderColorHover:t.borderColorHover,borderColorPress:t.borderColorPress,borderColorFocus:t.borderColorFocus}}),a((e,r)=>{let t=n(e,r),o=h().mask(e,r);return{...t,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),a((e,r)=>{let t=n(e,r),o=h({strength:2}).mask(e,r);return{...t,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}});var v,C=t(1013);let $={blue:{blue1:"hsl(206, 100%, 99.2%)",blue2:"hsl(210, 100%, 98.0%)",blue3:"hsl(209, 100%, 96.5%)",blue4:"hsl(210, 98.8%, 94.0%)",blue5:"hsl(209, 95.0%, 90.1%)",blue6:"hsl(209, 81.2%, 84.5%)",blue7:"hsl(208, 77.5%, 76.9%)",blue8:"hsl(206, 81.9%, 65.3%)",blue9:"hsl(206, 100%, 50.0%)",blue10:"hsl(208, 100%, 47.3%)",blue11:"hsl(211, 100%, 43.2%)",blue12:"hsl(211, 100%, 15.0%)"},gray:{gray1:"hsl(0, 0%, 99.0%)",gray2:"hsl(0, 0%, 97.3%)",gray3:"hsl(0, 0%, 95.1%)",gray4:"hsl(0, 0%, 93.0%)",gray5:"hsl(0, 0%, 90.9%)",gray6:"hsl(0, 0%, 88.7%)",gray7:"hsl(0, 0%, 85.8%)",gray8:"hsl(0, 0%, 78.0%)",gray9:"hsl(0, 0%, 56.1%)",gray10:"hsl(0, 0%, 52.3%)",gray11:"hsl(0, 0%, 43.5%)",gray12:"hsl(0, 0%, 9.0%)"},green:{green1:"hsl(136, 50.0%, 98.9%)",green2:"hsl(138, 62.5%, 96.9%)",green3:"hsl(139, 55.2%, 94.5%)",green4:"hsl(140, 48.7%, 91.0%)",green5:"hsl(141, 43.7%, 86.0%)",green6:"hsl(143, 40.3%, 79.0%)",green7:"hsl(146, 38.5%, 69.0%)",green8:"hsl(151, 40.2%, 54.1%)",green9:"hsl(151, 55.0%, 41.5%)",green10:"hsl(152, 57.5%, 37.6%)",green11:"hsl(153, 67.0%, 28.5%)",green12:"hsl(155, 40.0%, 14.0%)"},orange:{orange1:"hsl(24, 70.0%, 99.0%)",orange2:"hsl(24, 83.3%, 97.6%)",orange3:"hsl(24, 100%, 95.3%)",orange4:"hsl(25, 100%, 92.2%)",orange5:"hsl(25, 100%, 88.2%)",orange6:"hsl(25, 100%, 82.8%)",orange7:"hsl(24, 100%, 75.3%)",orange8:"hsl(24, 94.5%, 64.3%)",orange9:"hsl(24, 94.0%, 50.0%)",orange10:"hsl(24, 100%, 46.5%)",orange11:"hsl(24, 100%, 37.0%)",orange12:"hsl(15, 60.0%, 17.0%)"},pink:{pink1:"hsl(322, 100%, 99.4%)",pink2:"hsl(323, 100%, 98.4%)",pink3:"hsl(323, 86.3%, 96.5%)",pink4:"hsl(323, 78.7%, 94.2%)",pink5:"hsl(323, 72.2%, 91.1%)",pink6:"hsl(323, 66.3%, 86.6%)",pink7:"hsl(323, 62.0%, 80.1%)",pink8:"hsl(323, 60.3%, 72.4%)",pink9:"hsl(322, 65.0%, 54.5%)",pink10:"hsl(322, 63.9%, 50.7%)",pink11:"hsl(322, 75.0%, 46.0%)",pink12:"hsl(320, 70.0%, 13.5%)"},purple:{purple1:"hsl(280, 65.0%, 99.4%)",purple2:"hsl(276, 100%, 99.0%)",purple3:"hsl(276, 83.1%, 97.0%)",purple4:"hsl(275, 76.4%, 94.7%)",purple5:"hsl(275, 70.8%, 91.8%)",purple6:"hsl(274, 65.4%, 87.8%)",purple7:"hsl(273, 61.0%, 81.7%)",purple8:"hsl(272, 60.0%, 73.5%)",purple9:"hsl(272, 51.0%, 54.0%)",purple10:"hsl(272, 46.8%, 50.3%)",purple11:"hsl(272, 50.0%, 45.8%)",purple12:"hsl(272, 66.0%, 16.0%)"},red:{red1:"hsl(359, 100%, 99.4%)",red2:"hsl(359, 100%, 98.6%)",red3:"hsl(360, 100%, 96.8%)",red4:"hsl(360, 97.9%, 94.8%)",red5:"hsl(360, 90.2%, 91.9%)",red6:"hsl(360, 81.7%, 87.8%)",red7:"hsl(359, 74.2%, 81.7%)",red8:"hsl(359, 69.5%, 74.3%)",red9:"hsl(358, 75.0%, 59.0%)",red10:"hsl(358, 69.4%, 55.2%)",red11:"hsl(358, 65.0%, 48.7%)",red12:"hsl(354, 50.0%, 14.6%)"},yellow:{yellow1:"hsl(60, 54.0%, 98.5%)",yellow2:"hsl(52, 100%, 95.5%)",yellow3:"hsl(55, 100%, 90.9%)",yellow4:"hsl(54, 100%, 86.6%)",yellow5:"hsl(52, 97.9%, 82.0%)",yellow6:"hsl(50, 89.4%, 76.1%)",yellow7:"hsl(47, 80.4%, 68.0%)",yellow8:"hsl(48, 100%, 46.1%)",yellow9:"hsl(53, 92.0%, 50.0%)",yellow10:"hsl(50, 100%, 48.5%)",yellow11:"hsl(42, 100%, 29.0%)",yellow12:"hsl(40, 55.0%, 13.5%)"}},S={blue:{blue1:"hsl(212, 35.0%, 9.2%)",blue2:"hsl(216, 50.0%, 11.8%)",blue3:"hsl(214, 59.4%, 15.3%)",blue4:"hsl(214, 65.8%, 17.9%)",blue5:"hsl(213, 71.2%, 20.2%)",blue6:"hsl(212, 77.4%, 23.1%)",blue7:"hsl(211, 85.1%, 27.4%)",blue8:"hsl(211, 89.7%, 34.1%)",blue9:"hsl(206, 100%, 50.0%)",blue10:"hsl(209, 100%, 60.6%)",blue11:"hsl(210, 100%, 66.1%)",blue12:"hsl(206, 98.0%, 95.8%)"},gray:{gray1:"hsl(0, 0%, 8.5%)",gray2:"hsl(0, 0%, 11.0%)",gray3:"hsl(0, 0%, 13.6%)",gray4:"hsl(0, 0%, 15.8%)",gray5:"hsl(0, 0%, 17.9%)",gray6:"hsl(0, 0%, 20.5%)",gray7:"hsl(0, 0%, 24.3%)",gray8:"hsl(0, 0%, 31.2%)",gray9:"hsl(0, 0%, 43.9%)",gray10:"hsl(0, 0%, 49.4%)",gray11:"hsl(0, 0%, 62.8%)",gray12:"hsl(0, 0%, 93.0%)"},green:{green1:"hsl(146, 30.0%, 7.4%)",green2:"hsl(155, 44.2%, 8.4%)",green3:"hsl(155, 46.7%, 10.9%)",green4:"hsl(154, 48.4%, 12.9%)",green5:"hsl(154, 49.7%, 14.9%)",green6:"hsl(154, 50.9%, 17.6%)",green7:"hsl(153, 51.8%, 21.8%)",green8:"hsl(151, 51.7%, 28.4%)",green9:"hsl(151, 55.0%, 41.5%)",green10:"hsl(151, 49.3%, 46.5%)",green11:"hsl(151, 50.0%, 53.2%)",green12:"hsl(137, 72.0%, 94.0%)"},orange:{orange1:"hsl(30, 70.0%, 7.2%)",orange2:"hsl(28, 100%, 8.4%)",orange3:"hsl(26, 91.1%, 11.6%)",orange4:"hsl(25, 88.3%, 14.1%)",orange5:"hsl(24, 87.6%, 16.6%)",orange6:"hsl(24, 88.6%, 19.8%)",orange7:"hsl(24, 92.4%, 24.0%)",orange8:"hsl(25, 100%, 29.0%)",orange9:"hsl(24, 94.0%, 50.0%)",orange10:"hsl(24, 100%, 58.5%)",orange11:"hsl(24, 100%, 62.2%)",orange12:"hsl(24, 97.0%, 93.2%)"},pink:{pink1:"hsl(318, 25.0%, 9.6%)",pink2:"hsl(319, 32.2%, 11.6%)",pink3:"hsl(319, 41.0%, 16.0%)",pink4:"hsl(320, 45.4%, 18.7%)",pink5:"hsl(320, 49.0%, 21.1%)",pink6:"hsl(321, 53.6%, 24.4%)",pink7:"hsl(321, 61.1%, 29.7%)",pink8:"hsl(322, 74.9%, 37.5%)",pink9:"hsl(322, 65.0%, 54.5%)",pink10:"hsl(323, 72.8%, 59.2%)",pink11:"hsl(325, 90.0%, 66.4%)",pink12:"hsl(322, 90.0%, 95.8%)"},purple:{purple1:"hsl(284, 20.0%, 9.6%)",purple2:"hsl(283, 30.0%, 11.8%)",purple3:"hsl(281, 37.5%, 16.5%)",purple4:"hsl(280, 41.2%, 20.0%)",purple5:"hsl(279, 43.8%, 23.3%)",purple6:"hsl(277, 46.4%, 27.5%)",purple7:"hsl(275, 49.3%, 34.6%)",purple8:"hsl(272, 52.1%, 45.9%)",purple9:"hsl(272, 51.0%, 54.0%)",purple10:"hsl(273, 57.3%, 59.1%)",purple11:"hsl(275, 80.0%, 71.0%)",purple12:"hsl(279, 75.0%, 95.7%)"},red:{red1:"hsl(353, 23.0%, 9.8%)",red2:"hsl(357, 34.4%, 12.0%)",red3:"hsl(356, 43.4%, 16.4%)",red4:"hsl(356, 47.6%, 19.2%)",red5:"hsl(356, 51.1%, 21.9%)",red6:"hsl(356, 55.2%, 25.9%)",red7:"hsl(357, 60.2%, 31.8%)",red8:"hsl(358, 65.0%, 40.4%)",red9:"hsl(358, 75.0%, 59.0%)",red10:"hsl(358, 85.3%, 64.0%)",red11:"hsl(358, 100%, 69.5%)",red12:"hsl(351, 89.0%, 96.0%)"},yellow:{yellow1:"hsl(45, 100%, 5.5%)",yellow2:"hsl(46, 100%, 6.7%)",yellow3:"hsl(45, 100%, 8.7%)",yellow4:"hsl(45, 100%, 10.4%)",yellow5:"hsl(47, 100%, 12.1%)",yellow6:"hsl(49, 100%, 14.3%)",yellow7:"hsl(49, 90.3%, 18.4%)",yellow8:"hsl(50, 100%, 22.0%)",yellow9:"hsl(53, 92.0%, 50.0%)",yellow10:"hsl(54, 100%, 68.0%)",yellow11:"hsl(48, 100%, 47.0%)",yellow12:"hsl(53, 100%, 91.0%)"}},P="rgba(0,0,0,0.04)",x="rgba(0,0,0,0.085)",H="rgba(0,0,0,0.2)",T="rgba(0,0,0,0.3)",j={...S.blue,...S.gray,...S.green,...S.orange,...S.pink,...S.purple,...S.red,...S.yellow},F={...$.blue,...$.gray,...$.green,...$.orange,...$.pink,...$.purple,...$.red,...$.yellow},O={white0:"rgba(255,255,255,0)",white075:"rgba(255,255,255,0.75)",white05:"rgba(255,255,255,0.5)",white025:"rgba(255,255,255,0.25)",black0:"rgba(10,10,10,0)",black075:"rgba(10,10,10,0.75)",black05:"rgba(10,10,10,0.5)",black025:"rgba(10,10,10,0.25)",white1:"#fff",white2:"#f8f8f8",white3:"hsl(0, 0%, 96.3%)",white4:"hsl(0, 0%, 94.1%)",white5:"hsl(0, 0%, 92.0%)",white6:"hsl(0, 0%, 90.0%)",white7:"hsl(0, 0%, 88.5%)",white8:"hsl(0, 0%, 81.0%)",white9:"hsl(0, 0%, 56.1%)",white10:"hsl(0, 0%, 50.3%)",white11:"hsl(0, 0%, 42.5%)",white12:"hsl(0, 0%, 9.0%)",black1:"#050505",black2:"#151515",black3:"#191919",black4:"#232323",black5:"#282828",black6:"#323232",black7:"#424242",black8:"#494949",black9:"#545454",black10:"#626262",black11:"#a5a5a5",black12:"#fff",...U(F,"Light"),...U(j,"Dark")},E=(()=>{let e=(e,r=0)=>e.replace("%)",`%, ${r})`).replace("hsl(","hsla("),r=(r,t)=>{let o=Object.values(r),l=o.length-4,s=Object.values(t),a=s[0],n=s[s.length-1];return[a,e(o[0],0),e(o[0],.25),e(o[0],.5),e(o[0],.75),...o,e(o[l],.75),e(o[l],.5),e(o[l],.25),e(o[l],0),n]},t={light:O.blue4Light,dark:O.blue4Dark},o=[t.light,O.white0,O.white025,O.white05,O.white075,O.white1,O.white2,O.white3,O.white4,O.white5,O.white6,O.white7,O.white8,O.white9,O.white10,O.white11,O.white12,O.black075,O.black05,O.black025,O.black0,t.dark],l=[t.dark,O.black0,O.black025,O.black05,O.black075,O.black1,O.black2,O.black3,O.black4,O.black5,O.black6,O.black7,O.black8,O.black9,O.black10,O.black11,O.black12,O.white075,O.white05,O.white025,O.white0,t.light],s=Q($),a=X(s.map((e,t)=>[`light_${e}`,r($[e],$[s[(t+1)%s.length]])])),n=Q(S),i=X(n.map((e,t)=>[`dark_${e}`,r(S[e],$[n[(t+1)%n.length]])]));return{light:o,dark:l,...{...a,...i}}})(),M=e=>{let r="light"===e?-1:1,t=-r,o={accentBackground:0,accentColor:-0,background0:1,background025:2,background05:3,background075:4,color1:5,color2:6,color3:7,color4:8,color5:9,color6:10,color7:11,color8:12,color9:13,color10:14,color11:15,color12:16,color0:-1,color025:-2,color05:-3,color075:-4,background:5,backgroundHover:5+r,backgroundPress:5+t,backgroundFocus:5+t,borderColor:8,borderColorHover:8+r,borderColorPress:8+t,borderColorFocus:8,color:-5,colorHover:-6,colorPress:-5,colorFocus:-6,colorTransparent:-1,placeholderColor:-8,outlineColor:-2},l={background:o.background+1,backgroundHover:o.backgroundHover+1,backgroundPress:o.backgroundPress+1,backgroundFocus:o.backgroundFocus+1,borderColor:o.borderColor+1,borderColorHover:o.borderColorHover+1,borderColorFocus:o.borderColorFocus+1,borderColorPress:o.borderColorPress+1},s={background:o.background+2,backgroundHover:o.backgroundHover+2,backgroundPress:o.backgroundPress+2,backgroundFocus:o.backgroundFocus+2,borderColor:o.borderColor+2,borderColorHover:o.borderColorHover+2,borderColorFocus:o.borderColorFocus+2,borderColorPress:o.borderColorPress+2},a={background:o.background+3,backgroundHover:o.backgroundHover+3,backgroundPress:o.backgroundPress+3,backgroundFocus:o.backgroundFocus+3,borderColor:o.borderColor+3,borderColorHover:o.borderColorHover+3,borderColorFocus:o.borderColorFocus+3,borderColorPress:o.borderColorPress+3},n={background:o.background+5,backgroundHover:o.background+5,backgroundPress:o.backgroundPress+5,backgroundFocus:o.backgroundFocus+5},i={...n,borderColor:n.background,borderColorHover:n.backgroundHover,borderColorFocus:n.backgroundFocus,borderColorPress:n.backgroundPress},c={color:l.background,colorHover:l.backgroundHover,colorPress:l.backgroundPress,colorFocus:l.backgroundFocus,background:o.color,backgroundHover:o.colorHover,backgroundPress:o.colorPress,backgroundFocus:o.colorFocus,borderColor:o.color-2,borderColorHover:o.color-3,borderColorFocus:o.color-4,borderColorPress:o.color-5},h={...c,background:o.color-2,backgroundHover:o.colorHover-2,backgroundPress:o.colorPress-2,backgroundFocus:o.colorFocus-2,borderColor:o.color-2-2,borderColorHover:o.color-3-2,borderColorFocus:o.color-4-2,borderColorPress:o.color-5-2},d={color:o.color-1,colorHover:o.colorHover-1,colorPress:o.colorPress-1,colorFocus:o.colorFocus-1},u={color:o.color-2,colorHover:o.colorHover-2,colorPress:o.colorPress-2,colorFocus:o.colorFocus-2};return{base:o,alt1:d,alt2:u,surface1:l,surface2:s,surface3:a,inverseSurface1:c,inverseActive:h,surfaceActive:i}},_=M("light"),I=M("dark"),L={...X(Q(_).map(e=>[`light_${e}`,_[e]])),...X(Q(I).map(e=>[`dark_${e}`,I[e]]))},W={light:{...F,shadowColor:x,shadowColorHover:x,shadowColorPress:P,shadowColorFocus:P},dark:{...j,shadowColor:T,shadowColorHover:T,shadowColorPress:H,shadowColorFocus:H}},A=[{parent:"light",theme:{background:"rgba(0,0,0,0.5)"}},{parent:"dark",theme:{background:"rgba(0,0,0,0.8)"}}],N=[{parent:"active",template:"inverseActive"},{parent:"",template:"inverseSurface1"}],z=[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface1"}],R=[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface2"}],B=new w({}).addPalettes(E).addTemplates(L).addThemes({light:{template:"base",palette:"light",nonInheritedValues:W.light},dark:{template:"base",palette:"dark",nonInheritedValues:W.dark}}).addChildThemes({orange:{palette:"orange",template:"base"},yellow:{palette:"yellow",template:"base"},green:{palette:"green",template:"base"},blue:{palette:"blue",template:"base"},purple:{palette:"purple",template:"base"},pink:{palette:"pink",template:"base"},red:{palette:"red",template:"base"},gray:{palette:"gray",template:"base"}}).addChildThemes({alt1:{template:"alt1"},alt2:{template:"alt2"},active:{template:"surface3"},surface1:{template:"surface1"},surface2:{template:"surface2"},surface3:{template:"surface3"},surface4:{template:"surfaceActive"}}).addComponentThemes({ListItem:{template:"surface1"},SelectTrigger:z,Card:z,Button:[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface3"}],Checkbox:R,Switch:R,SwitchThumb:N,TooltipContent:R,Progress:{template:"surface1"},RadioGroupItem:R,TooltipArrow:{template:"surface1"},SliderTrackActive:{template:"surface3"},SliderTrack:{template:"surface1"},SliderThumb:N,Tooltip:N,ProgressIndicator:N,SheetOverlay:A,DialogOverlay:A,ModalOverlay:A,Input:z,TextArea:z},{avoidNestingWithin:["alt1","alt2","surface1","surface2","surface3","surface4"]}).build(),V={$0:0,"$0.25":2,"$0.5":4,"$0.75":8,$1:20,"$1.5":24,$2:28,"$2.5":32,$3:36,"$3.5":40,$4:44,$true:44,"$4.5":48,$5:52,$6:64,$7:74,$8:84,$9:94,$10:104,$11:124,$12:144,$13:164,$14:184,$15:204,$16:224,$17:224,$18:244,$19:264,$20:284},q=Object.entries(V).map(([e,r])=>[e,0===r?0:2===r?.5:4===r?1:8===r?1.5:r<=16?Math.round(.333*r):Math.floor(.7*r-12)]),J=q.slice(1).map(([e,r])=>[`-${e.slice(1)}`,-r]),D={...Object.fromEntries(q),...Object.fromEntries(J)},G=(0,C.createTokens)({color:O,radius:{0:0,1:3,2:5,3:7,4:9,true:9,5:10,6:16,7:19,8:22,9:26,10:34,11:42,12:50},zIndex:{0:0,1:100,2:200,3:300,4:400,5:500},space:D,size:V});function U(e,r){return Object.fromEntries(Object.entries(e).map(([e,t])=>[`${e}${r}`,t]))}function X(e){return Object.fromEntries(e)}function Q(e){return Object.keys(e)}var Y=t(281),Z=t(5390),K=t(2265);let ee="cubic-bezier(0.215, 0.610, 0.355, 1.000)",er=function(e){let r=new WeakMap;return{animations:e,usePresence:Z.oO,ResetPresence:Z.il,supportsCSSVars:!0,useAnimatedNumber(e){let[t,o]=(0,K.useState)(e);return{getInstance:()=>o,getValue:()=>t,setValue(e){o(e);let t=r.get(o);t&&t.forEach(r=>r(e))},stop(){}}},useAnimatedNumberReaction({value:e},t){(0,K.useEffect)(()=>{let o=e.getInstance(),l=r.get(o);if(!l){let e=new Set;r.set(o,e),l=e}return l.add(t),()=>{l?.delete(t)}},[])},useAnimatedNumberStyle:(e,r)=>r(e.getValue()),useAnimations:({props:r,presence:t,style:o,componentState:l,stateRef:s})=>{l.unmounted;let a=t?.[0]===!1,n=t?.[1],[i,c]=[].concat(r.animation),h=e[i],d=r.animateOnly??["all"];return(0,Y.LI)(()=>{let e=s.current.host;if(!n||!a||!e)return;let r=()=>{n?.()};return e.addEventListener("transitionend",r),e.addEventListener("transitioncancel",r),()=>{e.removeEventListener("transitionend",r),e.removeEventListener("transitioncancel",r)}},[n,a]),h?(Array.isArray(o.transform)&&(o.transform=(0,C.transformsToString)(o.transform)),o.transition=d.map(r=>{let t=e[c?.[r]]??h;return`${r} ${t}`}).join(", "),{style:o}):null}}}({"75ms":"ease-in 75ms","100ms":"ease-in 100ms","200ms":"ease-in 200ms",bouncy:"ease-in 200ms",superBouncy:"ease-in 500ms",lazy:"ease-in 1000ms",medium:"ease-in 300ms",slow:"ease-in 500ms",quick:`${ee} 400ms`,quicker:`${ee} 300ms`,quickest:`${ee} 200ms`,tooltip:"ease-in 400ms"});var et=t(3974);let eo=(e={},{sizeLineHeight:r=e=>e+10,sizeSize:t=e=>1*e}={})=>{let o=Object.fromEntries(Object.entries({...el,...e.size}).map(([e,r])=>[e,t(+r)]));return(0,et.createFont)({family:et.isWeb?'Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif':"Inter",lineHeight:Object.fromEntries(Object.entries(o).map(([e,t])=>[e,r((0,et.getVariableValue)(t))])),weight:{4:"300"},letterSpacing:{4:0},...e,size:o})},el={1:11,2:12,3:13,4:14,true:14,5:16,6:18,7:20,8:23,9:30,10:46,11:55,12:62,13:72,14:92,15:114,16:134},es={1:11,2:12,3:13,4:14,5:15,6:16,7:18,8:21,9:28,10:42,11:52,12:62,13:72,14:92,15:114,16:124},ea={1:10,2:11,3:12,4:14,5:15,6:16,7:20,8:22,9:30,10:42,11:52,12:62,13:72,14:92,15:114,16:124},en=((e={})=>(0,et.createFont)({family:et.isWeb?"Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace":"Silkscreen",size:es,lineHeight:Object.fromEntries(Object.entries(e.size||es).map(([e,r])=>[e,"number"==typeof r?Math.round(1.2*r+6):r])),weight:{4:"300"},letterSpacing:{4:1,5:3,6:3,9:-2,10:-3,12:-4},...e}))(),ei=eo({size:{5:13,6:15,9:32,10:44},transform:{6:"uppercase",7:"none"},weight:{6:"400",7:"700"},color:{6:"$colorFocus",7:"$color"},letterSpacing:{5:2,6:1,7:0,8:0,9:-1,10:-1.5,12:-2,14:-3,15:-4},face:{700:{normal:"InterBold"},800:{normal:"InterBold"},900:{normal:"InterBold"}}},{sizeLineHeight:e=>Math.round(1.1*e+(e<30?10:5))}),ec=eo({weight:{1:"400",7:"600"}},{sizeSize:e=>Math.round(e),sizeLineHeight:e=>Math.round(1.1*e+(e>=12?8:4))}),eh=function(e,r={},{sizeLineHeight:t=e=>1.35*e}={}){let o=r.size||ea;return(0,C.createFont)({family:e,size:o,lineHeight:Object.fromEntries(Object.entries(o).map(([e,r])=>[e,t(+r)])),weight:{0:"300"},letterSpacing:{4:0},...r})}('"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',{weight:{1:"500"},size:{1:11,2:12,3:13,4:14,5:16,6:18,7:20,8:22,9:30,10:42,11:52,12:62,13:72,14:92,15:114,16:124}},{sizeLineHeight:e=>1.5*e}),ed=globalThis.matchMedia,eu=(v={xl:{maxWidth:1650},lg:{maxWidth:1280},md:{maxWidth:1020},sm:{maxWidth:800},xs:{maxWidth:660},xxs:{maxWidth:390},gtXs:{minWidth:661},gtSm:{minWidth:801},gtMd:{minWidth:1021},gtLg:{minWidth:1281},gtXl:{minWidth:1651}},(0,C.setupMatchMedia)(ed),v);var em=t(357);globalThis.global||=globalThis;let eb={animations:er,defaultFont:"body",shouldAddPrefersColorThemes:!0,themeClassNameOnRoot:!0,themes:"true"===em.env.TAMAGUI_OPTIMIZE_THEMES?{}:B,media:eu,shorthands:o,tokens:G,fonts:{heading:ei,body:ec,mono:eh,silkscreen:en},mediaQueryDefaultActive:{xl:!0,lg:!0,md:!0,sm:!0,xs:!0,xxs:!1},selectionStyles:e=>e.color5?{backgroundColor:e.color5,color:e.color11}:null}},2944:function(e,r,t){t.d(r,{Analytics:function(){return u}});var o=t(2265),l=t(6463),s=()=>{window.va||(window.va=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];(window.vaq=window.vaq||[]).push(r)})};function a(){return"undefined"!=typeof window}function n(){return"production"}function i(){return"development"===((a()?window.vam:n())||"production")}function c(e){return(0,o.useEffect)(()=>{!function(){var e;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debug:!0};if(!a())return;(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";if("auto"===e){window.vam=n();return}window.vam=e})(r.mode),s(),r.beforeSend&&(null==(e=window.va)||e.call(window,"beforeSend",r.beforeSend));let t=r.scriptSrc||(i()?"https://va.vercel-scripts.com/v1/script.debug.js":"/_vercel/insights/script.js");if(document.head.querySelector('script[src*="'.concat(t,'"]')))return;let o=document.createElement("script");o.src=t,o.defer=!0,o.dataset.sdkn="@vercel/analytics"+(r.framework?"/".concat(r.framework):""),o.dataset.sdkv="1.2.2",r.disableAutoTrack&&(o.dataset.disableAutoTrack="1"),r.endpoint&&(o.dataset.endpoint=r.endpoint),r.dsn&&(o.dataset.dsn=r.dsn),o.onerror=()=>{let e=i()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log("[Vercel Web Analytics] Failed to load script from ".concat(t,". ").concat(e))},i()&&!1===r.debug&&(o.dataset.debug="false"),document.head.appendChild(o)}({framework:e.framework||"react",...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,o.useEffect)(()=>{e.route&&e.path&&function(e){var r;let{route:t,path:o}=e;null==(r=window.va)||r.call(window,"pageview",{route:t,path:o})}({route:e.route,path:e.path})},[e.route,e.path]),null}var h=()=>{let e=(0,l.useParams)(),r=(0,l.useSearchParams)(),t=(0,l.usePathname)(),o={...Object.fromEntries(r.entries()),...e||{}};return{route:e?function(e,r){if(!e||!r)return e;let t=e;try{for(let[e,o]of Object.entries(r)){let r=Array.isArray(o),l=r?o.join("/"):o,s=r?"...".concat(e):e,a=new RegExp("/".concat(l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"(?=[/?#]|$)"));a.test(t)&&(t=t.replace(a,"/[".concat(s,"]")))}return t}catch(r){return e}}(t,o):null,path:t}};function d(e){let{route:r,path:t}=h();return o.createElement(c,{path:t,route:r,...e,framework:"next"})}function u(e){return o.createElement(o.Suspense,{fallback:null},o.createElement(d,{...e}))}},2024:function(e,r,t){t.d(r,{_:function(){return o}});let o=t(3974).createTamagui},20:function(e,r,t){t.d(r,{r:function(){return a}});var o=t(3974),l=t(4624),s=t(2281);let a=({children:e,...r})=>(0,s.jsx)(o.TamaguiProvider,{...r,children:(0,s.jsx)(l.Xp,{shouldAddRootHost:!0,children:e})})}}]);
_next/static/chunks/190-8c3f29b77c1f7978.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/413.744619bdd7ea9098.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/423-06102cf1584a8fa3.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/432.34b698d3db09a44a.js ADDED
@@ -0,0 +1 @@
 
 
1
+ !function(){var t,e,n,r,o,i,u,c,a={495:function(){},7147:function(){},1418:function(){},8741:function(){},319:function(){},8386:function(){},3342:function(){},6497:function(t,e,n){"use strict";var r=n(9078);class o{static async getInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.instance||(this.instance=(0,r.EUT)(this.task,this.model,{progress_callback:t})),this.instance}}o.task="translation",o.model="Xenova/nllb-200-distilled-600M",self.addEventListener("message",async t=>{let e=await o.getInstance(t=>{self.postMessage(t)}),n=await e(t.data.text,{tgt_lang:t.data.tgt_lang,src_lang:t.data.src_lang,callback_function:t=>{self.postMessage({status:"update",output:e.tokenizer.decode(t[0].output_token_ids,{skip_special_tokens:!0})})}});self.postMessage({status:"complete",output:n})})}},f={};function s(t){var e=f[t];if(void 0!==e)return e.exports;var n=f[t]={exports:{}},r=!0;try{a[t](n,n.exports,s),r=!1}finally{r&&delete f[t]}return n.exports}s.m=a,s.x=function(){var t=s.O(void 0,[165,132,15,413],function(){return s(6497)});return s.O(t)},t=[],s.O=function(e,n,r,o){if(n){o=o||0;for(var i=t.length;i>0&&t[i-1][2]>o;i--)t[i]=t[i-1];t[i]=[n,r,o];return}for(var u=1/0,i=0;i<t.length;i++){for(var n=t[i][0],r=t[i][1],o=t[i][2],c=!0,a=0;a<n.length;a++)u>=o&&Object.keys(s.O).every(function(t){return s.O[t](n[a])})?n.splice(a--,1):(c=!1,o<u&&(u=o));if(c){t.splice(i--,1);var f=r();void 0!==f&&(e=f)}}return e},n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},s.t=function(t,r){if(1&r&&(t=this(t)),8&r||"object"==typeof t&&t&&(4&r&&t.__esModule||16&r&&"function"==typeof t.then))return t;var o=Object.create(null);s.r(o);var i={};e=e||[null,n({}),n([]),n(n)];for(var u=2&r&&t;"object"==typeof u&&!~e.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach(function(e){i[e]=function(){return t[e]}});return i.default=function(){return t},s.d(o,i),o},s.d=function(t,e){for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.f={},s.e=function(t){return Promise.all(Object.keys(s.f).reduce(function(e,n){return s.f[n](t,e),e},[]))},s.u=function(t){return"static/chunks/"+(({15:"b2db8554",132:"6139e184",165:"590caa2a"})[t]||t)+"."+({15:"2f90d90ec938bc93",132:"ec466d5482164223",165:"699039c37022246b",413:"744619bdd7ea9098"})[t]+".js"},s.miniCssF=function(t){},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.tt=function(){return void 0===r&&(r={createScriptURL:function(t){return t}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(r=trustedTypes.createPolicy("nextjs#bundler",r))),r},s.tu=function(t){return s.tt().createScriptURL(t)},s.p="/_next/",o={432:1},s.f.i=function(t,e){o[t]||importScripts(s.tu(s.p+s.u(t)))},u=(i=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push.bind(i),i.push=function(t){var e=t[0],n=t[1],r=t[2];for(var i in n)s.o(n,i)&&(s.m[i]=n[i]);for(r&&r(s);e.length;)o[e.pop()]=1;u(t)},c=s.x,s.x=function(){return Promise.all([165,132,15,413].map(s.e,s)).then(c)},_N_E=s.x()}();
_next/static/chunks/590caa2a.699039c37022246b.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{2018:function(e,t,s){s.d(t,{t2:function(){return e9}});var n=s(761),i=s(911),r=s(8709),o=s(2414),a=s(1510),l=s(4087);async function c(e,t){let s=await Promise.all([(0,i.yM)(e,"tokenizer.json",!0,t),(0,i.yM)(e,"tokenizer_config.json",!0,t)]);return null!==t.legacy&&(s[1].legacy=t.legacy),s}function h(e,t=!0){if(void 0!==e.Regex){let t=e.Regex.replace(/\\([#&~])/g,"$1");for(let[e,s]of g)t=t.replaceAll(e,s);return RegExp(t,"gu")}if(void 0===e.String)return console.warn("Unknown pattern type:",e),null;{let s=(0,n.hr)(e.String);return RegExp(t?s:`(${s})`,"gu")}}function u(e){return new Map(Object.entries(e))}function d(e){let t=e.dims;switch(t.length){case 1:return e.tolist();case 2:if(1!==t[0])throw Error("Unable to decode tensor with `batch size !== 1`. Use `tokenizer.batch_decode(...)` for batched inputs.");return e.tolist()[0];default:throw Error(`Expected tensor to have 1-2 dimensions, got ${t.length}.`)}}function _(e){return e.replace(/ \./g,".").replace(/ \?/g,"?").replace(/ \!/g,"!").replace(/ ,/g,",").replace(/ \' /g,"'").replace(/ n\'t/g,"n't").replace(/ \'m/g,"'m").replace(/ \'s/g,"'s").replace(/ \'ve/g,"'ve").replace(/ \'re/g,"'re")}function p(e){return e.replace(/[\u0300-\u036f]/g,"")}let f="\\p{P}\\u0021-\\u002F\\u003A-\\u0040\\u005B-\\u0060\\u007B-\\u007E",g=new Map([["(?i:'s|'t|'re|'ve|'m|'ll|'d)","(?:'([sS]|[tT]|[rR][eE]|[vV][eE]|[mM]|[lL][lL]|[dD]))"]]);class m{constructor(e){this.content=e.content,this.id=e.id,this.single_word=e.single_word??!1,this.lstrip=e.lstrip??!1,this.rstrip=e.rstrip??!1,this.special=e.special??!1,this.normalized=e.normalized??null}}class k extends n.Ag{constructor(e){super(),this.config=e,this.vocab=[],this.tokens_to_ids=new Map,this.unk_token_id=void 0,this.unk_token=void 0,this.end_of_word_suffix=void 0,this.fuse_unk=this.config.fuse_unk??!1}static fromConfig(e,...t){switch(e.type){case"WordPiece":return new x(e);case"Unigram":return new w(e,...t);case"BPE":return new v(e);default:if(e.vocab)return new z(e,...t);throw Error(`Unknown TokenizerModel type: ${e.type}`)}}_call(e){let t=this.encode(e);return this.fuse_unk&&(t=function(e,t,s){let n=[],i=0;for(;i<e.length;){if(n.push(e[i]),(s.get(e[i])??t)!==t){++i;continue}for(;i<e.length&&(s.get(e[i])??t)===t;)++i}return n}(t,this.unk_token_id,this.tokens_to_ids)),t}encode(e){throw Error("encode should be implemented in subclass.")}convert_tokens_to_ids(e){return e.map(e=>this.tokens_to_ids.get(e)??this.unk_token_id)}convert_ids_to_tokens(e){return e.map(e=>this.vocab[e]??this.unk_token)}}class x extends k{constructor(e){for(let[t,s]of(super(e),this.tokens_to_ids=u(e.vocab),this.unk_token_id=this.tokens_to_ids.get(e.unk_token),this.unk_token=e.unk_token,this.max_input_chars_per_word=e.max_input_chars_per_word??100,this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[s]=t}encode(e){let t=[];for(let s of e){let e=[...s];if(e.length>this.max_input_chars_per_word){t.push(this.unk_token);continue}let n=!1,i=0,r=[];for(;i<e.length;){let t=e.length,s=null;for(;i<t;){let n=e.slice(i,t).join("");if(i>0&&(n=this.config.continuing_subword_prefix+n),this.tokens_to_ids.has(n)){s=n;break}--t}if(null===s){n=!0;break}r.push(s),i=t}n?t.push(this.unk_token):t.push(...r)}return t}}class w extends k{constructor(e,t){super(e);let s=e.vocab.length;this.vocab=Array(s),this.scores=Array(s);for(let t=0;t<s;++t){let s=e.vocab[t];this.vocab[t]=s[0],this.scores[t]=s[1]}this.unk_token_id=e.unk_id,this.unk_token=this.vocab[e.unk_id],this.tokens_to_ids=new Map(this.vocab.map((e,t)=>[e,t])),this.bosToken=" ",this.bosTokenId=this.tokens_to_ids.get(this.bosToken),this.eosToken=t.eos_token,this.eosTokenId=this.tokens_to_ids.get(this.eosToken),this.unkToken=this.vocab[this.unk_token_id],this.minScore=(0,r.VV)(this.scores)[0],this.unkScore=this.minScore-10,this.scores[this.unk_token_id]=this.unkScore,this.trie=new a.GA,this.trie.extend(this.vocab),this.fuse_unk=!0}populateNodes(e){let t=e.sentence,s=t.length,n=0;for(;n<s;){let s=!1,i=[];for(let r of this.trie.commonPrefixSearch(t.slice(n))){i.push(r);let t=this.tokens_to_ids.get(r),o=this.scores[t],a=r.length;e.insert(n,a,o,t),s||1!==a||(s=!0)}s||e.insert(n,1,this.unkScore,this.unk_token_id),n+=1}}tokenize(e){let t=new a.pQ(e,this.bosTokenId,this.eosTokenId);return this.populateNodes(t),t.tokens()}encode(e){let t=[];for(let s of e){let e=this.tokenize(s);t.push(...e)}return t}}let y=(()=>{let e=[...Array.from({length:94},(e,t)=>t+33),...Array.from({length:12},(e,t)=>t+161),...Array.from({length:82},(e,t)=>t+174)],t=e.slice(),s=0;for(let n=0;n<256;++n)e.includes(n)||(e.push(n),t.push(256+s),s+=1);let n=t.map(e=>String.fromCharCode(e));return Object.fromEntries(e.map((e,t)=>[e,n[t]]))})(),b=(0,n.$2)(y);class v extends k{constructor(e){for(let[t,s]of(super(e),this.BPE_SPLIT_TOKEN=" ",this.tokens_to_ids=u(e.vocab),this.unk_token_id=this.tokens_to_ids.get(e.unk_token),this.unk_token=e.unk_token,this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[s]=t;this.bpe_ranks=new Map(e.merges.map((e,t)=>[e,t])),this.merges=e.merges.map(e=>e.split(this.BPE_SPLIT_TOKEN)),this.end_of_word_suffix=e.end_of_word_suffix,this.continuing_subword_suffix=e.continuing_subword_suffix??null,this.byte_fallback=this.config.byte_fallback??!1,this.byte_fallback&&(this.text_encoder=new TextEncoder),this.cache=new Map}bpe(e){if(0===e.length)return[];let t=this.cache.get(e);if(void 0!==t)return t;let s=Array.from(e);this.end_of_word_suffix&&(s[s.length-1]+=this.end_of_word_suffix);let n=[];if(s.length>1){let e=new a.Z3((e,t)=>e.score<t.score),t={token:s[0],bias:0,prev:null,next:null},i=t;for(let t=1;t<s.length;++t){let n={bias:t/s.length,token:s[t],prev:i,next:null};i.next=n,this._add_node(e,i),i=n}for(;!e.isEmpty();){let s=e.pop();if(s.deleted||!s.next||s.next.deleted)continue;if(s.deleted=!0,s.next.deleted=!0,s.prev){let e={...s.prev};s.prev.deleted=!0,s.prev=e,e.prev?e.prev.next=e:t=e}let n={token:s.token+s.next.token,bias:s.bias,prev:s.prev,next:s.next.next};n.prev?(n.prev.next=n,this._add_node(e,n.prev)):t=n,n.next&&(n.next.prev=n,this._add_node(e,n))}for(let e=t;null!==e;e=e.next)n.push(e.token)}else n=s;if(this.continuing_subword_suffix)for(let e=0;e<n.length-1;++e)n[e]+=this.continuing_subword_suffix;return this.cache.set(e,n),n}_add_node(e,t){let s=this.bpe_ranks.get(t.token+this.BPE_SPLIT_TOKEN+t.next.token);void 0!==s&&(t.score=s+t.bias,e.push(t))}encode(e){let t=[];for(let s of e)for(let e of this.bpe(s))this.tokens_to_ids.has(e)?t.push(e):this.byte_fallback?t.push(...Array.from(this.text_encoder.encode(e)).map(e=>`<0x${e.toString(16).toUpperCase().padStart(2,"0")}>`)):t.push(this.unk_token);return t}}class z extends k{constructor(e,t){for(let[s,n]of(super(e),this.tokens_to_ids=u(t.target_lang?e.vocab[t.target_lang]:e.vocab),this.bos_token=t.bos_token,this.bos_token_id=this.tokens_to_ids.get(this.bos_token),this.eos_token=t.eos_token,this.eos_token_id=this.tokens_to_ids.get(this.eos_token),this.pad_token=t.pad_token,this.pad_token_id=this.tokens_to_ids.get(this.pad_token),this.unk_token=t.unk_token,this.unk_token_id=this.tokens_to_ids.get(this.unk_token),this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[n]=s}encode(e){return e}}class A extends n.Ag{constructor(e){super(),this.config=e}static fromConfig(e){if(null===e)return null;switch(e.type){case"BertNormalizer":return new N(e);case"Precompiled":return new eo(e);case"Sequence":return new R(e);case"Replace":return new S(e);case"NFC":return new E(e);case"NFKC":return new T(e);case"NFKD":return new C(e);case"Strip":return new j(e);case"StripAccents":return new M(e);case"Lowercase":return new P(e);case"Prepend":return new $(e);default:throw Error(`Unknown Normalizer type: ${e.type}`)}}normalize(e){throw Error("normalize should be implemented in subclass.")}_call(e){return this.normalize(e)}}class S extends A{normalize(e){let t=h(this.config.pattern);return null===t?e:e.replaceAll(t,this.config.content)}}class E extends A{normalize(e){return e=e.normalize("NFC")}}class T extends A{normalize(e){return e=e.normalize("NFKC")}}class C extends A{normalize(e){return e=e.normalize("NFKD")}}class j extends A{normalize(e){return this.config.strip_left&&this.config.strip_right?e=e.trim():(this.config.strip_left&&(e=e.trimStart()),this.config.strip_right&&(e=e.trimEnd())),e}}class M extends A{normalize(e){return e=p(e)}}class P extends A{normalize(e){return e=e.toLowerCase()}}class $ extends A{normalize(e){return e=this.config.prepend+e}}class R extends A{constructor(e){super(e),this.normalizers=e.normalizers.map(e=>A.fromConfig(e))}normalize(e){return this.normalizers.reduce((e,t)=>t.normalize(e),e)}}class N extends A{_tokenize_chinese_chars(e){let t=[];for(let s=0;s<e.length;++s){let n=e[s],i=n.charCodeAt(0);this._is_chinese_char(i)?(t.push(" "),t.push(n),t.push(" ")):t.push(n)}return t.join("")}_is_chinese_char(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=63744&&e<=64255||e>=194560&&e<=195103}stripAccents(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}_is_control(e){switch(e){case" ":case"\n":case"\r":return!1;default:return/^\p{Cc}|\p{Cf}|\p{Co}|\p{Cs}$/u.test(e)}}_clean_text(e){let t=[];for(let s of e){let e=s.charCodeAt(0);0===e||65533===e||this._is_control(s)||(/^\s$/.test(s)?t.push(" "):t.push(s))}return t.join("")}normalize(e){return this.config.clean_text&&(e=this._clean_text(e)),this.config.handle_chinese_chars&&(e=this._tokenize_chinese_chars(e)),this.config.lowercase?(e=e.toLowerCase(),!1!==this.config.strip_accents&&(e=this.stripAccents(e))):this.config.strip_accents&&(e=this.stripAccents(e)),e}}class F extends n.Ag{static fromConfig(e){if(null===e)return null;switch(e.type){case"BertPreTokenizer":return new L(e);case"Sequence":return new ea(e);case"Whitespace":return new el(e);case"WhitespaceSplit":return new ec(e);case"Metaspace":return new ei(e);case"ByteLevel":return new O(e);case"Split":return new U(e);case"Punctuation":return new W(e);case"Digits":return new G(e);case"Replace":return new eh(e);default:throw Error(`Unknown PreTokenizer type: ${e.type}`)}}pre_tokenize_text(e,t){throw Error("pre_tokenize_text should be implemented in subclass.")}pre_tokenize(e,t){return(Array.isArray(e)?e.map(e=>this.pre_tokenize_text(e,t)):this.pre_tokenize_text(e,t)).flat()}_call(e,t){return this.pre_tokenize(e,t)}}class L extends F{constructor(e){super(),this.pattern=RegExp(`[^\\s${f}]+|[${f}]`,"gu")}pre_tokenize_text(e,t){return e.trim().match(this.pattern)||[]}}class O extends F{constructor(e){super(),this.config=e,this.add_prefix_space=this.config.add_prefix_space,this.trim_offsets=this.config.trim_offsets,this.use_regex=this.config.use_regex??!0,this.pattern=/'s|'t|'re|'ve|'m|'ll|'d| ?\p{L}+| ?\p{N}+| ?[^\s\p{L}\p{N}]+|\s+(?!\S)|\s+/gu,this.byte_encoder=y,this.text_encoder=new TextEncoder}pre_tokenize_text(e,t){return this.add_prefix_space&&!e.startsWith(" ")&&(e=" "+e),(this.use_regex?e.match(this.pattern)||[]:[e]).map(e=>Array.from(this.text_encoder.encode(e),e=>this.byte_encoder[e]).join(""))}}class U extends F{constructor(e){super(),this.config=e,this.pattern=h(this.config.pattern,this.config.invert)}pre_tokenize_text(e,t){return null===this.pattern?[]:this.config.invert?e.match(this.pattern)||[]:function(e,t){let s=[],n=0;for(let i of e.matchAll(t)){let t=i[0];n<i.index&&s.push(e.slice(n,i.index)),t.length>0&&s.push(t),n=i.index+t.length}return n<e.length&&s.push(e.slice(n)),s}(e,this.pattern)}}class W extends F{constructor(e){super(),this.config=e,this.pattern=RegExp(`[^${f}]+|[${f}]+`,"gu")}pre_tokenize_text(e,t){return e.match(this.pattern)||[]}}class G extends F{constructor(e){super(),this.config=e;let t=`[^\\d]+|\\d${this.config.individual_digits?"":"+"}`;this.pattern=RegExp(t,"gu")}pre_tokenize_text(e,t){return e.match(this.pattern)||[]}}class I extends n.Ag{constructor(e){super(),this.config=e}static fromConfig(e){if(null===e)return null;switch(e.type){case"TemplateProcessing":return new q(e);case"ByteLevel":return new Y(e);case"RobertaProcessing":return new D(e);case"BertProcessing":return new B(e);default:throw Error(`Unknown PostProcessor type: ${e.type}`)}}post_process(e,...t){throw Error("post_process should be implemented in subclass.")}_call(e,...t){return this.post_process(e,...t)}}class B extends I{constructor(e){super(e),this.cls=e.cls[0],this.sep=e.sep[0]}post_process(e,t=null,{add_special_tokens:s=!0}={}){s&&(e=(0,n.eG)([this.cls],e,[this.sep]));let i=Array(e.length).fill(0);if(null!==t){let r=s&&this instanceof D?[this.sep]:[],o=s?[this.sep]:[];e=(0,n.eG)(e,r,t,o),i=(0,n.eG)(i,Array(t.length+r.length+o.length).fill(1))}return{tokens:e,token_type_ids:i}}}class D extends B{}class q extends I{constructor(e){super(e),this.single=e.single,this.pair=e.pair}post_process(e,t=null,{add_special_tokens:s=!0}={}){let i=null===t?this.single:this.pair,r=[],o=[];for(let a of i)"SpecialToken"in a?s&&(r.push(a.SpecialToken.id),o.push(a.SpecialToken.type_id)):"Sequence"in a&&("A"===a.Sequence.id?(r=(0,n.eG)(r,e),o=(0,n.eG)(o,Array(e.length).fill(a.Sequence.type_id))):"B"===a.Sequence.id&&(r=(0,n.eG)(r,t),o=(0,n.eG)(o,Array(t.length).fill(a.Sequence.type_id))));return{tokens:r,token_type_ids:o}}}class Y extends I{post_process(e,t=null){return t&&(e=(0,n.eG)(e,t)),{tokens:e}}}class K extends n.Ag{constructor(e){super(),this.config=e,this.added_tokens=[],this.end_of_word_suffix=null,this.trim_offsets=e.trim_offsets}static fromConfig(e){if(null===e)return null;switch(e.type){case"WordPiece":return new Q(e);case"Metaspace":return new er(e);case"ByteLevel":return new X(e);case"Replace":return new Z(e);case"ByteFallback":return new V(e);case"Fuse":return new H(e);case"Strip":return new J(e);case"Sequence":return new et(e);case"CTC":return new ee(e);case"BPEDecoder":return new es(e);default:throw Error(`Unknown Decoder type: ${e.type}`)}}_call(e){return this.decode(e)}decode(e){return this.decode_chain(e).join("")}decode_chain(e){throw Error("`decode_chain` should be implemented in subclass.")}}class Z extends K{decode_chain(e){let t=h(this.config.pattern);return null===t?e:e.map(e=>e.replaceAll(t,this.config.content))}}class V extends K{constructor(e){super(e),this.text_decoder=new TextDecoder}decode_chain(e){let t=[],s=[];for(let n of e){let e=null;if(6===n.length&&n.startsWith("<0x")&&n.endsWith(">")){let t=parseInt(n.slice(3,5),16);isNaN(t)||(e=t)}if(null!==e)s.push(e);else{if(s.length>0){let e=this.text_decoder.decode(Uint8Array.from(s));t.push(e),s=[]}t.push(n)}}if(s.length>0){let e=this.text_decoder.decode(Uint8Array.from(s));t.push(e),s=[]}return t}}class H extends K{decode_chain(e){return[e.join("")]}}class J extends K{constructor(e){super(e),this.content=this.config.content,this.start=this.config.start,this.stop=this.config.stop}decode_chain(e){return e.map(e=>{let t=0;for(let s=0;s<this.start;++s){if(e[s]===this.content){t=s+1;continue}break}let s=e.length;for(let t=0;t<this.stop;++t){let n=e.length-t-1;if(e[n]===this.content){s=n;continue}break}return e.slice(t,s)})}}class Q extends K{constructor(e){super(e),this.cleanup=e.cleanup}decode_chain(e){return e.map((e,t)=>(0!==t&&(e=e.startsWith(this.config.prefix)?e.replace(this.config.prefix,""):" "+e),this.cleanup&&(e=_(e)),e))}}class X extends K{constructor(e){super(e),this.byte_decoder=b,this.text_decoder=new TextDecoder("utf-8",{fatal:!1,ignoreBOM:!0}),this.end_of_word_suffix=null}convert_tokens_to_string(e){let t=new Uint8Array([...e.join("")].map(e=>this.byte_decoder[e]));return this.text_decoder.decode(t)}decode_chain(e){let t=[],s=[];for(let n of e)void 0!==this.added_tokens.find(e=>e.content===n)?(s.length>0&&(t.push(this.convert_tokens_to_string(s)),s=[]),t.push(n)):s.push(n);return s.length>0&&t.push(this.convert_tokens_to_string(s)),t}}class ee extends K{constructor(e){super(e),this.pad_token=this.config.pad_token,this.word_delimiter_token=this.config.word_delimiter_token,this.cleanup=this.config.cleanup}convert_tokens_to_string(e){if(0===e.length)return"";let t=[e[0]];for(let s=1;s<e.length;++s)e[s]!==t.at(-1)&&t.push(e[s]);let s=t.filter(e=>e!==this.pad_token).join("");return this.cleanup&&(s=_(s).replaceAll(this.word_delimiter_token," ").trim()),s}decode_chain(e){return[this.convert_tokens_to_string(e)]}}class et extends K{constructor(e){super(e),this.decoders=e.decoders.map(e=>K.fromConfig(e))}decode_chain(e){return this.decoders.reduce((e,t)=>t.decode_chain(e),e)}}class es extends K{constructor(e){super(e),this.suffix=this.config.suffix}decode_chain(e){return e.map((t,s)=>t.replaceAll(this.suffix,s===e.length-1?"":" "))}}class en extends K{decode_chain(e){let t="";for(let s=1;s<e.length;s+=2)t+=e[s];return[t]}}class ei extends F{constructor(e){super(),this.addPrefixSpace=e.add_prefix_space,this.replacement=e.replacement,this.strRep=e.str_rep||this.replacement,this.prepend_scheme=e.prepend_scheme??"always"}pre_tokenize_text(e,{section_index:t}={}){let s=e.replaceAll(" ",this.strRep);return this.addPrefixSpace&&!s.startsWith(this.replacement)&&("always"===this.prepend_scheme||"first"===this.prepend_scheme&&0===t)&&(s=this.strRep+s),[s]}}class er extends K{constructor(e){super(e),this.addPrefixSpace=e.add_prefix_space,this.replacement=e.replacement}decode_chain(e){let t=[];for(let s=0;s<e.length;++s){let n=e[s].replaceAll(this.replacement," ");this.addPrefixSpace&&0==s&&n.startsWith(" ")&&(n=n.substring(1)),t.push(n)}return t}}class eo extends A{constructor(e){super(e),this.charsmap=e.precompiled_charsmap}normalize(e){return e=(e=(e=e.replace(/[\u0001-\u0008\u000B\u000E-\u001F\u007F\u008F\u009F]/gm,"")).replace(/[\u0009\u000A\u000C\u000D\u1680\u200B\u200C\u200E\u200F\u2028\u2029\u2581\uFEFF\uFFFD]/gm," ")).includes("~")?e.split("~").map(e=>e.normalize("NFKC")).join("~"):e.normalize("NFKC")}}class ea extends F{constructor(e){super(),this.tokenizers=e.pretokenizers.map(e=>F.fromConfig(e))}pre_tokenize_text(e,t){return this.tokenizers.reduce((e,s)=>s.pre_tokenize(e,t),[e])}}class el extends F{constructor(e){super()}pre_tokenize_text(e,t){return e.match(/\w+|[^\w\s]+/g)||[]}}class ec extends F{constructor(e){super()}pre_tokenize_text(e,t){return e.match(/\S+/g)||[]}}class eh extends F{constructor(e){super(),this.config=e,this.pattern=h(this.config.pattern),this.content=this.config.content}pre_tokenize_text(e,t){return null===this.pattern?[e]:[e.replaceAll(this.pattern,this.config.content)]}}let eu=["bos_token","eos_token","unk_token","sep_token","pad_token","cls_token","mask_token"];class ed extends n.Ag{return_token_type_ids=!1;_default_chat_template=`{% for message in messages %}{{'<|im_start|>' + message['role'] + '
2
+ ' + message['content'] + '<|im_end|>' + '
3
+ '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
4
+ ' }}{% endif %}`;constructor(e,t){for(let s of(super(),this._tokenizer_config=t,this.normalizer=A.fromConfig(e.normalizer),this.pre_tokenizer=F.fromConfig(e.pre_tokenizer),this.model=k.fromConfig(e.model,t),this.post_processor=I.fromConfig(e.post_processor),this.decoder=K.fromConfig(e.decoder),this.special_tokens=[],this.all_special_ids=[],this.added_tokens=[],e.added_tokens)){let e=new m(s);this.added_tokens.push(e),this.model.tokens_to_ids.set(e.content,e.id),this.model.vocab[e.id]=e.content,e.special&&(this.special_tokens.push(e.content),this.all_special_ids.push(e.id))}if(this.additional_special_tokens=t.additional_special_tokens??[],this.special_tokens.push(...this.additional_special_tokens),this.special_tokens=[...new Set(this.special_tokens)],this.decoder&&(this.decoder.added_tokens=this.added_tokens,this.decoder.end_of_word_suffix=this.model.end_of_word_suffix),this.added_tokens_regex=this.added_tokens.length>0?new RegExp(this.added_tokens.map(e=>`${e.lstrip?"\\s*":""}(${(0,n.hr)(e.content)})${e.rstrip?"\\s*":""}`).join("|")):null,this.mask_token=this.getToken("mask_token"),this.mask_token_id=this.model.tokens_to_ids.get(this.mask_token),this.pad_token=this.getToken("pad_token","eos_token"),this.pad_token_id=this.model.tokens_to_ids.get(this.pad_token),this.sep_token=this.getToken("sep_token"),this.sep_token_id=this.model.tokens_to_ids.get(this.sep_token),this.unk_token=this.getToken("unk_token"),this.unk_token_id=this.model.tokens_to_ids.get(this.unk_token),this.model_max_length=t.model_max_length,this.remove_space=t.remove_space,this.clean_up_tokenization_spaces=t.clean_up_tokenization_spaces??!0,this.do_lowercase_and_remove_accent=t.do_lowercase_and_remove_accent??!1,this.padding_side="right",this.legacy=!1,this.chat_template=t.chat_template??null,Array.isArray(this.chat_template)){let e=Object.create(null);for(let{name:t,template:s}of this.chat_template){if("string"!=typeof t||"string"!=typeof s)throw Error('Chat template must be a list of objects with "name" and "template" properties');e[t]=s}this.chat_template=e}this._compiled_template_cache=new Map}getToken(...e){for(let t of e){let e=this._tokenizer_config[t];if(e){if("object"!=typeof e)return e;if("AddedToken"===e.__type)return e.content;throw Error(`Unknown token: ${e}`)}}return null}static async from_pretrained(e,{progress_callback:t=null,config:s=null,cache_dir:n=null,local_files_only:i=!1,revision:r="main",legacy:o=null}={}){return new this(...await c(e,{progress_callback:t,config:s,cache_dir:n,local_files_only:i,revision:r,legacy:o}))}_call(e,{text_pair:t=null,add_special_tokens:s=!0,padding:i=!1,truncation:a=null,max_length:l=null,return_tensor:c=!0}={}){let h;let u=Array.isArray(e);if(u){if(0===e.length)throw Error("text array must be non-empty");if(null!==t){if(Array.isArray(t)){if(e.length!==t.length)throw Error("text and text_pair must have the same length")}else throw Error("text_pair must also be an array");h=e.map((e,n)=>this._encode_plus(e,t[n],{add_special_tokens:s}))}else h=e.map(e=>this._encode_plus(e,null,{add_special_tokens:s}))}else{if(null==e)throw Error("text may not be null or undefined");if(Array.isArray(t))throw Error("When specifying `text_pair`, since `text` is a string, `text_pair` must also be a string (i.e., not an array).");h=[this._encode_plus(e,t,{add_special_tokens:s})]}if(null===l?l="max_length"===i?this.model_max_length:(0,r.Fp)(h.map(e=>e.input_ids.length))[0]:a||console.warn("Truncation was not explicitly activated but `max_length` is provided a specific value, please use `truncation=true` to explicitly truncate examples to max length."),l=Math.min(l,this.model_max_length),i||a)for(let e=0;e<h.length;++e)h[e].input_ids.length!==l&&(h[e].input_ids.length>l?a&&function(e,t){for(let s of Object.keys(e))e[s].length=t}(h[e],l):i&&function(e,t,s,i){for(let r of Object.keys(e)){let o=t-e[r].length,a=s(r),l=Array(o).fill(a);e[r]="right"===i?(0,n.eG)(e[r],l):(0,n.eG)(l,e[r])}}(h[e],l,e=>"input_ids"===e?this.pad_token_id:0,this.padding_side));let d={};if(c){if(!(i&&a)&&h.some(e=>{for(let t of Object.keys(e))if(e[t].length!==h[0][t]?.length)return!0;return!1}))throw Error("Unable to create tensor, you should probably activate truncation and/or padding with 'padding=true' and 'truncation=true' to have batched tensors with the same length.");let e=[h.length,h[0].input_ids.length];for(let t of Object.keys(h[0]))d[t]=new o.es("int64",BigInt64Array.from(h.flatMap(e=>e[t]).map(BigInt)),e)}else{for(let e of Object.keys(h[0]))d[e]=h.map(t=>t[e]);if(!u)for(let e of Object.keys(d))d[e]=d[e][0]}return d}_encode_text(e){return null===e?null:(this.added_tokens_regex?e.split(this.added_tokens_regex).filter(e=>e):[e]).map((e,t)=>{if(void 0!==this.added_tokens.find(t=>t.content===e))return e;{if(!0===this.remove_space&&(e=e.trim().split(/\s+/).join(" ")),this.do_lowercase_and_remove_accent&&(e=p(e.toLowerCase())),null!==this.normalizer&&(e=this.normalizer(e)),0===e.length)return[];let s=null!==this.pre_tokenizer?this.pre_tokenizer(e,{section_index:t}):[e];return this.model(s)}}).flat()}_encode_plus(e,t=null,{add_special_tokens:s=!0}={}){let i=this._encode_text(e),r=this._encode_text(t),o=this.post_processor?this.post_processor(i,r,{add_special_tokens:s}):{tokens:(0,n.eG)(i??[],r??[])},a=this.model.convert_tokens_to_ids(o.tokens),l={input_ids:a,attention_mask:Array(a.length).fill(1)};return this.return_token_type_ids&&o.token_type_ids&&(l.token_type_ids=o.token_type_ids),l}encode(e,t=null,{add_special_tokens:s=!0}={}){let{input_ids:n}=this._encode_plus(e,t,{add_special_tokens:s});return n}batch_decode(e,t={}){return e instanceof o.es&&(e=e.tolist()),e.map(e=>this.decode(e,t))}decode(e,t={}){if(e instanceof o.es&&(e=d(e)),!Array.isArray(e)||0===e.length||!(0,n.Wy)(e[0]))throw Error("token_ids must be a non-empty array of integers.");return this.decode_single(e,t)}decode_single(e,{skip_special_tokens:t=!1,clean_up_tokenization_spaces:s=null}){let n=this.model.convert_ids_to_tokens(e);t&&(n=n.filter(e=>!this.special_tokens.includes(e)));let i=this.decoder?this.decoder(n):n.join(" ");return this.decoder&&this.decoder.end_of_word_suffix&&(i=i.replaceAll(this.decoder.end_of_word_suffix," "),t&&(i=i.trim())),(s??this.clean_up_tokenization_spaces)&&(i=_(i)),i}get default_chat_template(){return this._warned_about_chat_template||(console.warn("No chat template is defined for this tokenizer - using a default chat template that implements the ChatML format. If the default is not appropriate for your model, please set `tokenizer.chat_template` to an appropriate template. See https://huggingface.co/docs/transformers/main/chat_templating for more information."),this._warned_about_chat_template=!0),this._default_chat_template}apply_chat_template(e,{chat_template:t=null,add_generation_prompt:s=!1,tokenize:n=!0,padding:i=!1,truncation:r=!1,max_length:o=null,return_tensor:a=!0,tokenizer_kwargs:c={},...h}={}){if(this.chat_template&&"object"==typeof this.chat_template||null===this.chat_template&&this.default_chat_template&&"object"==typeof this.default_chat_template){let e=this.chat_template??this.default_chat_template;if(null!==t&&Object.hasOwn(e,t))t=e[t];else if(null===t&&"default"in e)t=e.default;else if(null===t)throw Error(`This model has multiple chat templates with no default specified! Please either pass a chat template or the name of the template you wish to use to the 'chat_template' argument. Available template names are ${Object.keys(e).sort()}.`)}else t??=this.chat_template??this.default_chat_template;if("string"!=typeof t)throw Error(`chat_template must be a string, but got ${typeof t}`);let u=this._compiled_template_cache.get(t);void 0===u&&(u=new l.YS(t),this._compiled_template_cache.set(t,u));let d=Object.create(null);for(let e of eu){let t=this.getToken(e);t&&(d[e]=t)}let _=u.render({messages:e,add_generation_prompt:s,...d,...h});return n?this._call(_,{add_special_tokens:!1,padding:i,truncation:r,max_length:o,return_tensor:a,...c}).input_ids:_}}class e_ extends ed{return_token_type_ids=!0}class ep extends ed{return_token_type_ids=!0}class ef extends ed{return_token_type_ids=!0}class eg extends ed{return_token_type_ids=!0}class em extends ed{return_token_type_ids=!0}class ek extends ed{return_token_type_ids=!0}class ex extends ed{return_token_type_ids=!0}class ew extends ed{return_token_type_ids=!0}class ey extends ed{return_token_type_ids=!0}class eb extends ed{}class ev extends ed{}class ez extends ed{return_token_type_ids=!0;constructor(e,t){super(e,t),console.warn('WARNING: `XLMTokenizer` is not yet supported by Hugging Face\'s "fast" tokenizers library. Therefore, you may experience slightly inaccurate results.')}}class eA extends ed{return_token_type_ids=!0}class eS extends ed{}class eE extends ed{_default_chat_template='{% for message in messages %}" "{{ message.content }}{{ eos_token }}" "{% endfor %}'}class eT extends ed{}class eC extends ed{constructor(e,t){super(e,t),this.languageRegex=/^[a-z]{2}_[A-Z]{2}$/,this.language_codes=this.special_tokens.filter(e=>this.languageRegex.test(e)),this.lang_to_token=e=>e}_build_translation_inputs(e,t,s){return eB(this,e,t,s)}}class ej extends eC{}class eM extends ed{}class eP extends eE{constructor(e,t){let s=".,!?…。,、।۔،",n=e.pre_tokenizer?.pretokenizers[0]?.pattern;n&&n.Regex===` ?[^(\\s|[${s}])]+`&&(n.Regex=` ?[^\\s${s}]+`),super(e,t)}}class e$ extends ed{_default_chat_template=`{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% elif USE_DEFAULT_PROMPT == true and not '<<SYS>>' in messages[0]['content'] %}{% set loop_messages = messages %}{% set system_message = 'DEFAULT_SYSTEM_MESSAGE' %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>
5
+ ' + system_message + '
6
+ <</SYS>>
7
+
8
+ ' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'system' %}{{ '<<SYS>>
9
+ ' + content.strip() + '
10
+ <</SYS>>
11
+
12
+ ' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}`;DEFAULT_SYSTEM_PROMPT="You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.\n\nIf a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.";constructor(e,t){super(e,t),this.use_default_system_prompt=t.use_default_system_prompt??!1,this.legacy=t.legacy??!0,this.legacy||(this.normalizer=null,this.pre_tokenizer=new ei({replacement:"▁",add_prefix_space:!0,prepend_scheme:"first"}))}_encode_text(e){if(null===e)return null;if(this.legacy||0===e.length)return super._encode_text(e);let t=super._encode_text("▁"+e.replaceAll("▁"," "));return t.length>1&&"▁"===t[0]&&this.special_tokens.includes(t[1])&&(t=t.slice(1)),t}get default_chat_template(){return super.default_chat_template.replaceAll("USE_DEFAULT_PROMPT",this.use_default_system_prompt?"true":"false").replaceAll("DEFAULT_SYSTEM_MESSAGE",this.DEFAULT_SYSTEM_PROMPT.replaceAll("\n","\\n").replaceAll("'","\\'"))}}class eR extends e${}class eN extends ed{}class eF extends ed{}class eL extends ed{}class eO extends ed{}class eU extends ed{}class eW extends ed{}class eG extends ed{_default_chat_template="{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}"}class eI extends ed{}function eB(e,t,s,n){if(!("language_codes"in e)||!Array.isArray(e.language_codes))throw Error("Tokenizer must have `language_codes` attribute set and it should be an array of language ids.");if(!("languageRegex"in e)||!(e.languageRegex instanceof RegExp))throw Error("Tokenizer must have `languageRegex` attribute set and it should be a regular expression.");if(!("lang_to_token"in e)||"function"!=typeof e.lang_to_token)throw Error("Tokenizer must have `lang_to_token` attribute set and it should be a function.");let i=n.src_lang,r=n.tgt_lang;if(!e.language_codes.includes(r))throw Error(`Target language code "${r}" is not valid. Must be one of: {${e.language_codes.join(", ")}}`);if(void 0!==i){if(!e.language_codes.includes(i))throw Error(`Source language code "${i}" is not valid. Must be one of: {${e.language_codes.join(", ")}}`);for(let t of e.post_processor.config.single)if("SpecialToken"in t&&e.languageRegex.test(t.SpecialToken.id)){t.SpecialToken.id=e.lang_to_token(i);break}}return n.forced_bos_token_id=e.model.convert_tokens_to_ids([e.lang_to_token(r)])[0],e._call(t,s)}class eD extends ed{constructor(e,t){super(e,t),this.languageRegex=/^[a-z]{3}_[A-Z][a-z]{3}$/,this.language_codes=this.special_tokens.filter(e=>this.languageRegex.test(e)),this.lang_to_token=e=>e}_build_translation_inputs(e,t,s){return eB(this,e,t,s)}}class eq extends ed{constructor(e,t){super(e,t),this.languageRegex=/^__[a-z]{2,3}__$/,this.language_codes=this.special_tokens.filter(e=>this.languageRegex.test(e)).map(e=>e.slice(2,-2)),this.lang_to_token=e=>`__${e}__`}_build_translation_inputs(e,t,s){return eB(this,e,t,s)}}let eY=[["en","english"],["zh","chinese"],["de","german"],["es","spanish"],["ru","russian"],["ko","korean"],["fr","french"],["ja","japanese"],["pt","portuguese"],["tr","turkish"],["pl","polish"],["ca","catalan"],["nl","dutch"],["ar","arabic"],["sv","swedish"],["it","italian"],["id","indonesian"],["hi","hindi"],["fi","finnish"],["vi","vietnamese"],["he","hebrew"],["uk","ukrainian"],["el","greek"],["ms","malay"],["cs","czech"],["ro","romanian"],["da","danish"],["hu","hungarian"],["ta","tamil"],["no","norwegian"],["th","thai"],["ur","urdu"],["hr","croatian"],["bg","bulgarian"],["lt","lithuanian"],["la","latin"],["mi","maori"],["ml","malayalam"],["cy","welsh"],["sk","slovak"],["te","telugu"],["fa","persian"],["lv","latvian"],["bn","bengali"],["sr","serbian"],["az","azerbaijani"],["sl","slovenian"],["kn","kannada"],["et","estonian"],["mk","macedonian"],["br","breton"],["eu","basque"],["is","icelandic"],["hy","armenian"],["ne","nepali"],["mn","mongolian"],["bs","bosnian"],["kk","kazakh"],["sq","albanian"],["sw","swahili"],["gl","galician"],["mr","marathi"],["pa","punjabi"],["si","sinhala"],["km","khmer"],["sn","shona"],["yo","yoruba"],["so","somali"],["af","afrikaans"],["oc","occitan"],["ka","georgian"],["be","belarusian"],["tg","tajik"],["sd","sindhi"],["gu","gujarati"],["am","amharic"],["yi","yiddish"],["lo","lao"],["uz","uzbek"],["fo","faroese"],["ht","haitian creole"],["ps","pashto"],["tk","turkmen"],["nn","nynorsk"],["mt","maltese"],["sa","sanskrit"],["lb","luxembourgish"],["my","myanmar"],["bo","tibetan"],["tl","tagalog"],["mg","malagasy"],["as","assamese"],["tt","tatar"],["haw","hawaiian"],["ln","lingala"],["ha","hausa"],["ba","bashkir"],["jw","javanese"],["su","sundanese"]],eK=new Map(eY),eZ=new Map([...eY.map(([e,t])=>[t,e]),["burmese","my"],["valencian","ca"],["flemish","nl"],["haitian","ht"],["letzeburgesch","lb"],["pushto","ps"],["panjabi","pa"],["moldavian","ro"],["moldovan","ro"],["sinhalese","si"],["castilian","es"]]);class eV extends ed{_default_chat_template='{% for message in messages %}" "{{ message.content }}{{ eos_token }}" "{% endfor %}';_decode_asr(e,{return_timestamps:t=!1,return_language:s=!1,time_precision:n=null,force_full_sequences:i=!0}={}){if(null===n)throw Error("Must specify time_precision");let o=null,a="word"===t;function l(){return{language:o,timestamp:[null,null],text:""}}let c=[],h=l(),u=0,d=this.model.convert_tokens_to_ids(["<|notimestamps|>"])[0]+1,_=[],p=[],f=!1,g=null,m=new Set(this.all_special_ids);for(let s of e){let e=s.tokens,i=a?s.token_timestamps:null,k=null,x=d;if("stride"in s){let[t,i,r]=s.stride;if(u-=i,g=t-r,i&&(x=i/n+d),r)for(let t=e.length-1;t>=0;--t){let s=e[t];if(s>=d){if(null!==k&&(s-d)*n<g)break;k=s}}}let w=[],y=[];for(let s=0;s<e.length;++s){let g=e[s];if(m.has(g)){let e=this.decode([g]),s=eK.get(e.slice(2,-2));if(void 0!==s){if(null!==o&&s!==o&&!t){_.push(w);let e=this.findLongestCommonSequence(_)[0],t=this.decode(e);h.text=t,c.push(h),_=[],w=[],h=l()}o=h.language=s}}else if(g>=d){let e=(g-d)*n+u,t=(0,r.NM)(e,2);if(null!==k&&g>=k)f=!0;else if(f||_.length>0&&g<x)f=!1;else if(null===h.timestamp[0])h.timestamp[0]=t;else if(t===h.timestamp[0]);else{h.timestamp[1]=t,_.push(w),a&&p.push(y);let[e,s]=this.findLongestCommonSequence(_,p),n=this.decode(e);h.text=n,a&&(h.words=this.collateWordTimestamps(e,s,o)),c.push(h),_=[],w=[],p=[],y=[],h=l()}}else if(w.push(g),a){let e,t=(0,r.NM)(i[s]+u,2);e=s+1<i.length?(0,r.NM)(i[s+1]+u,2):null,y.push([t,e])}}if("stride"in s){let[e,t,n]=s.stride;u+=e-n}w.length>0?(_.push(w),a&&p.push(y)):_.every(e=>0===e.length)&&(h=l(),_=[],w=[],p=[],y=[])}if(_.length>0){if(i&&t)throw Error("Whisper did not predict an ending timestamp, which can happen if audio is cut off in the middle of a word. Also make sure WhisperTimeStampLogitsProcessor was used during generation.");let[e,s]=this.findLongestCommonSequence(_,p),n=this.decode(e);h.text=n,a&&(h.words=this.collateWordTimestamps(e,s,o)),c.push(h)}let k=Object.create(null),x=c.map(e=>e.text).join("");if(t||s){for(let e=0;e<c.length;++e){let n=c[e];t||delete n.timestamp,s||delete n.language}if(a){let e=[];for(let t of c)for(let s of t.words)e.push(s);k={chunks:e}}else k={chunks:c}}return[x,k]}findLongestCommonSequence(e,t=null){let s=e[0],n=s.length,i=[],r=Array.isArray(t)&&t.length>0,o=r?[]:null,a=r?t[0]:null;for(let l=1;l<e.length;++l){let c=e[l],h=0,u=[n,n,0,0],d=c.length;for(let e=1;e<n+d;++e){let t=e/1e4,i=Math.max(0,n-e),r=Math.min(n,n+d-e),o=s.slice(i,r),a=Math.max(0,e-n),l=Math.min(d,e),_=c.slice(a,l);if(o.length!==_.length)throw Error("There is a bug within whisper `decode_asr` function, please report it. Dropping to prevent bad inference.");let p=o.filter((e,t)=>e===_[t]).length,f=p/e+t;p>1&&f>h&&(h=f,u=[i,r,a,l])}let[_,p,f,g]=u,m=Math.floor((p+_)/2),k=Math.floor((g+f)/2);i.push(...s.slice(0,m)),n=(s=c.slice(k)).length,r&&(o.push(...a.slice(0,m)),a=t[l].slice(k))}return(i.push(...s),r)?(o.push(...a),[i,o]):[i,[]]}collateWordTimestamps(e,t,s){let[n,i,r]=this.combineTokensIntoWords(e,s),o=[];for(let e=0;e<n.length;++e){let s=r[e];o.push({text:n[e],timestamp:[t[s.at(0)][0],t[s.at(-1)][1]]})}return o}combineTokensIntoWords(e,t,s="\"'“\xa1\xbf([{-",n="\"'.。,,!!??::”)]}、"){let i,r,o;return["chinese","japanese","thai","lao","myanmar"].includes(t=t??"english")?[i,r,o]=this.splitTokensOnUnicode(e):[i,r,o]=this.splitTokensOnSpaces(e),this.mergePunctuations(i,r,o,s,n)}decode(e,t){let s;return t&&t.decode_with_timestamps?(e instanceof o.es&&(e=d(e)),s=this.decodeWithTimestamps(e,t)):s=super.decode(e,t),s}decodeWithTimestamps(e,t){let s=t?.time_precision??.02,n=Array.from(this.all_special_ids).at(-1)+1,i=[[]];for(let t of e)if(t>=n){let e=(0,r.NM)((t-n)*s,2);i.push(`<|${e}|>`),i.push([])}else i[i.length-1].push(t);return(i=i.map(e=>"string"==typeof e?e:super.decode(e,t))).join("")}splitTokensOnUnicode(e){let t=this.decode(e,{decode_with_timestamps:!0}),s=[],n=[],i=[],r=[],o=[],a=0;for(let l=0;l<e.length;++l){let c=e[l];r.push(c),o.push(l);let h=this.decode(r,{decode_with_timestamps:!0});h.includes("�")&&"�"!==t[a+h.indexOf("�")]||(s.push(h),n.push(r),i.push(o),r=[],o=[],a+=h.length)}return[s,n,i]}splitTokensOnSpaces(e){let[t,s,n]=this.splitTokensOnUnicode(e),i=[],r=[],o=[],a=RegExp(`^[${f}]$`,"gu");for(let e=0;e<t.length;++e){let l=t[e],c=s[e],h=n[e],u=c[0]>=this.model.tokens_to_ids.get("<|endoftext|>"),d=l.startsWith(" "),_=l.trim(),p=a.test(_);if(u||d||p||0===i.length)i.push(l),r.push(c),o.push(h);else{let e=i.length-1;i[e]+=l,r[e].push(...c),o[e].push(...h)}}return[i,r,o]}mergePunctuations(e,t,s,i,r){let o=structuredClone(e),a=structuredClone(t),l=structuredClone(s),c=o.length-2,h=o.length-1;for(;c>=0;)o[c].startsWith(" ")&&i.includes(o[c].trim())?(o[h]=o[c]+o[h],a[h]=(0,n.eG)(a[c],a[h]),l[h]=(0,n.eG)(l[c],l[h]),o[c]="",a[c]=[],l[c]=[]):h=c,--c;for(c=0,h=1;h<o.length;)!o[c].endsWith(" ")&&r.includes(o[h])?(o[c]+=o[h],a[c]=(0,n.eG)(a[c],a[h]),l[c]=(0,n.eG)(l[c],l[h]),o[h]="",a[h]=[],l[h]=[]):c=h,++h;return[o.filter(e=>e),a.filter(e=>e.length>0),l.filter(e=>e.length>0)]}get_decoder_prompt_ids({language:e=null,task:t=null,no_timestamps:s=!0}={}){let n=[];if(e){e=e.toLowerCase();let t=eZ.get(e);if(void 0===t){if(eK.has(e))t=e;else{let t=2===e.length?eK.keys():eK.values();throw Error(`Language "${e}" is not supported. Must be one of: ${JSON.stringify(t)}`)}}let s=this.model.tokens_to_ids.get(`<|${t}|>`);if(void 0===s)throw Error(`Unable to find language "${t}" in model vocabulary. Please report this issue at https://github.com/xenova/transformers.js/issues/new/choose.`);n.push(s)}else n.push(null);if(t){if("transcribe"!==(t=t.toLowerCase())&&"translate"!==t)throw Error(`Task "${t}" is not supported. Must be one of: ["transcribe", "translate"]`);let e=this.model.tokens_to_ids.get(`<|${t}|>`);if(void 0===e)throw Error(`Unable to find task "${t}" in model vocabulary. Please report this issue at https://github.com/xenova/transformers.js/issues/new/choose.`);n.push(e)}else n.push(null);if(s){let e=this.model.tokens_to_ids.get("<|notimestamps|>");if(void 0===e)throw Error('Unable to find "<|notimestamps|>" in model vocabulary. Please report this issue at https://github.com/xenova/transformers.js/issues/new/choose.');n.push(e)}return n.map((e,t)=>[t+1,e]).filter(e=>null!==e[1])}}class eH extends ed{}class eJ extends ed{}class eQ extends ed{}class eX extends ed{constructor(e,t){super(e,t),this.languageRegex=/^(>>\w+<<)\s*/g,this.supported_language_codes=this.model.vocab.filter(e=>this.languageRegex.test(e)),console.warn('WARNING: `MarianTokenizer` is not yet supported by Hugging Face\'s "fast" tokenizers library. Therefore, you may experience slightly inaccurate results.')}_encode_text(e){if(null===e)return null;let[t,...s]=e.trim().split(this.languageRegex);if(0===s.length)return super._encode_text(t);if(2===s.length){let[e,t]=s;return this.supported_language_codes.includes(e)||console.warn(`Unsupported language code "${e}" detected, which may lead to unexpected behavior. Should be one of: ${JSON.stringify(this.supported_language_codes)}`),(0,n.eG)([e],super._encode_text(t))}}}class e0 extends ed{}class e1 extends ed{_default_chat_template="{% for message in messages %}{% if message['role'] == 'user' %}{{ ' ' }}{% endif %}{{ message['content'] }}{% if not loop.last %}{{ ' ' }}{% endif %}{% endfor %}{{ eos_token }}"}class e2 extends e1{}class e3 extends ed{}class e8 extends ed{}class e6 extends ed{constructor(e,t){super(e,t),this.decoder=new en({})}}class e7 extends ed{}class e9{static TOKENIZER_CLASS_MAPPING={T5Tokenizer:eS,DistilBertTokenizer:eb,CamembertTokenizer:ev,DebertaTokenizer:em,DebertaV2Tokenizer:ek,BertTokenizer:e_,HerbertTokenizer:ex,ConvBertTokenizer:ew,RoFormerTokenizer:ey,XLMTokenizer:ez,ElectraTokenizer:eA,MobileBertTokenizer:ef,SqueezeBertTokenizer:eg,AlbertTokenizer:ep,GPT2Tokenizer:eE,BartTokenizer:eT,MBartTokenizer:eC,MBart50Tokenizer:ej,RobertaTokenizer:eM,WhisperTokenizer:eV,CodeGenTokenizer:eH,CLIPTokenizer:eJ,SiglipTokenizer:eQ,MarianTokenizer:eX,BloomTokenizer:eP,NllbTokenizer:eD,M2M100Tokenizer:eq,LlamaTokenizer:e$,CodeLlamaTokenizer:eR,XLMRobertaTokenizer:eN,MPNetTokenizer:eF,FalconTokenizer:eL,GPTNeoXTokenizer:eO,EsmTokenizer:eU,Wav2Vec2CTCTokenizer:e0,BlenderbotTokenizer:e1,BlenderbotSmallTokenizer:e2,SpeechT5Tokenizer:e3,NougatTokenizer:e8,VitsTokenizer:e6,Qwen2Tokenizer:eW,GemmaTokenizer:eG,Grok1Tokenizer:eI,CohereTokenizer:e7,PreTrainedTokenizer:ed};static async from_pretrained(e,{quantized:t=!0,progress_callback:s=null,config:n=null,cache_dir:i=null,local_files_only:r=!1,revision:o="main",legacy:a=null}={}){let[l,h]=await c(e,{quantized:t,progress_callback:s,config:n,cache_dir:i,local_files_only:r,revision:o,legacy:a}),u=h.tokenizer_class?.replace(/Fast$/,"")??"PreTrainedTokenizer",d=this.TOKENIZER_CLASS_MAPPING[u];return d||(console.warn(`Unknown tokenizer class "${u}", attempting to construct from base class.`),d=ed),new d(l,h)}}}}]);
_next/static/chunks/6139e184.ec466d5482164223.js ADDED
@@ -0,0 +1 @@
 
 
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[132],{9454:function(e,s,t){t.d(s,{$Bv:function(){return ia},$Sz:function(){return a2},DcG:function(){return ic},ENH:function(){return ir},En$:function(){return is},Hqk:function(){return a7},IFL:function(){return iu},K2m:function(){return il},Kf0:function(){return a4},LdW:function(){return io},OjJ:function(){return a1},S2d:function(){return id},U$$:function(){return it},Zn:function(){return ii},hY6:function(){return i_},hZO:function(){return a3},lbf:function(){return a5},o$X:function(){return a0},t78:function(){return a9},tLj:function(){return ie},wiU:function(){return a8},z6E:function(){return a6}});var n=t(16),a=t(761),i=t(911),o=t(5774),r=t(2414),l=t(967),c=t(9078);let{InferenceSession:d,Tensor:_,env:u}=l.ONNX,h={EncoderOnly:0,EncoderDecoder:1,Seq2Seq:2,Vision2Seq:3,DecoderOnly:4,MaskGeneration:5},m=new Map,p=new Map,f=new Map;async function g(e,s,t){let n=`onnx/${s}${t.quantized?"_quantized":""}.onnx`,a=await (0,i.st)(e,n,!0,t);try{return await d.create(a,{executionProviders:l.p})}catch(e){if(1===l.p.length&&"wasm"===l.p[0])throw e;return console.warn(e),console.warn("Something went wrong during model construction (most likely a missing operation). Using `wasm` as a fallback. "),await d.create(a,{executionProviders:["wasm"]})}}async function w(e,s){let t=function(e,s){let t=Object.create(null),n=[];for(let a of e.inputNames){let e=s[a];if(!(e instanceof r.es)){n.push(a);continue}t[a]=u.wasm.proxy?e.clone():e}if(n.length>0)throw Error(`An error occurred during model execution: "Missing the following inputs: ${n.join(", ")}.`);let a=Object.keys(s).length,i=e.inputNames.length;if(a>i){let t=Object.keys(s).filter(s=>!e.inputNames.includes(s));console.warn(`WARNING: Too many inputs were provided (${a} > ${i}). The following inputs will be ignored: "${t.join(", ")}".`)}return t}(e,s);try{let s=await e.run(t);return s=function e(s){for(let t in s)s[t]instanceof _?s[t]=new r.es(s[t]):"object"==typeof s[t]&&e(s[t]);return s}(s)}catch(e){throw console.error(`An error occurred during model execution: "${e}".`),console.error("Inputs given to model:",t),e}}function x(e,s){let t=e.config.pad_token_id??null,n=e.config.eos_token_id??null;(0,a.Wy)(n)&&(n=[n]);let i=-1!==s.indexOf(t),o=null===n||!n.includes(t);if(!i||!o)return(0,r.r6)(s);{let e=BigInt64Array.from(s.data.map(e=>e!=t));return new r.es("int64",e,s.dims)}}function y(e,s,t){if(!e.inputNames.includes("position_ids"))return;let n=new BigInt64Array(s.attention_mask.data.length);for(let e=0;e<s.attention_mask.dims[0];++e){let t=e*s.attention_mask.dims[1],a=BigInt(0);for(let e=0;e<s.attention_mask.dims[1];++e){let i=t+e;0n===s.attention_mask.data[i]?n[i]=BigInt(1):(n[i]=a,a+=s.attention_mask.data[i])}}s.position_ids=new r.es("int64",n,s.attention_mask.dims),t&&(s.position_ids=s.position_ids.slice(null,-1).unsqueeze_(-1))}function M(e){return new r.es("bool",[e],[1])}async function k(e,s){let{encoder_outputs:t,past_key_values:n}=s;t||(t=(await C(e,s)).last_hidden_state);let a={input_ids:s.decoder_input_ids,encoder_hidden_states:t},i=!!n;e.decoder_merged_session.inputNames.includes("use_cache_branch")&&(a.use_cache_branch=M(i)),e.decoder_merged_session.inputNames.includes("encoder_attention_mask")&&(a.encoder_attention_mask=s.attention_mask),y(e.decoder_merged_session,a,i),e.addPastKeyValues(a,n);let o=await w(e.decoder_merged_session,a);return new ih({logits:o.logits,past_key_values:n=e.getPastKeyValues(o,n),encoder_outputs:t,...e.getAttentions(o)})}function b(e,s,t,n){let a=[],i=0,o=e.requires_attention_mask??!0,l=t.decoder_input_ids??t.decoder_start_token_id??t.bos_token_id??t.eos_token_id;for(let t of(l instanceof r.es?l=l.tolist().flat():Array.isArray(l)||(l=[l]),s)){t.dims=[1,...t.dims];let s={inputs:t,encoder_outputs:null,prev_model_outputs:null,output_token_ids:l,done:!1,score:0,id:i++};o&&(s.attention_mask=x(e,t)),a.push(s)}return a}async function v(e,s){let t=e.main_input_name,n=s.output_token_ids;s.prev_model_outputs&&(n=n.slice(-1));let a={[t]:s.inputs,decoder_input_ids:function(e){if(e instanceof r.es)return e;if(0===e.length)throw Error("items must be non-empty");if(!Array.isArray(e[0]))return new r.es("int64",BigInt64Array.from(e.map(e=>BigInt(e))),[1,e.length]);if(e.some(s=>s.length!==e[0].length))throw Error("Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' and/or 'truncation=True' to have batched tensors with the same length.");return new r.es("int64",BigInt64Array.from(e.flat().map(e=>BigInt(e))),[e.length,e[0].length])}(n),encoder_outputs:s.encoder_outputs,past_key_values:s.prev_model_outputs?.past_key_values};s.attention_mask&&(a.attention_mask=s.attention_mask);let i=await e.forward(a);return s.prev_model_outputs=i,s.encoder_outputs=i.encoder_outputs,i}function S(e,s){e.output_token_ids=[...e.output_token_ids,s]}async function C(e,s){let t=Object.create(null);for(let n of e.session.inputNames)t[n]=s[n];return e.session.inputNames.includes("token_type_ids")&&!t.token_type_ids&&(t.token_type_ids=new r.es("int64",new BigInt64Array(t.input_ids.data.length),t.input_ids.dims)),await w(e.session,t)}async function F(e,s){let{input_ids:t,past_key_values:n,attention_mask:a}=s,i={input_ids:t,attention_mask:a??x(e,t)},o=!!n;e.session.inputNames.includes("use_cache_branch")&&(i.use_cache_branch=M(o)),y(e.session,i,o),e.addPastKeyValues(i,n);let r=await w(e.session,i);return{logits:r.logits,past_key_values:n=e.getPastKeyValues(r,n)}}function L(e,s,t,n,a){let i=[],o=0;for(let t of s){let s,r=t.tolist().map(Number);t.dims=[1,...t.dims],a?(s=a[o]).dims=[1,...s.dims]:s=x(e,t);let l={input:t,model_input_ids:t,attention_mask:s,prev_model_outputs:null,output_token_ids:r,num_output_tokens:n,done:!1,score:0,id:o++};i.push(l)}return i}async function A(e,s){let t=new BigInt64Array(s.output_token_ids.length).fill(1n),n={input_ids:s.model_input_ids,attention_mask:new r.es("int64",t,[1,t.length]),past_key_values:s.prev_model_outputs?.past_key_values},a=await e.forward(n);return s.prev_model_outputs=a,a}function P(e,s){e.output_token_ids=[...e.output_token_ids,s],e.model_input_ids=new r.es("int64",[BigInt(s)],[1,1])}class E extends a.Ag{main_input_name="input_ids";constructor(e,s){super(),this.config=e,this.session=s;let t=f.get(this.constructor),n=m.get(t);this.can_generate=!1,this._runBeam=null,this._getStartBeams=null,this._updateBeam=null,this._forward=null,n===h.DecoderOnly?(this.can_generate=!0,this._runBeam=A,this._getStartBeams=L,this._updateBeam=P,this._forward=F):n===h.Seq2Seq||n===h.Vision2Seq?(this.can_generate=!0,this._runBeam=v,this._getStartBeams=b,this._updateBeam=S,this._forward=k):(h.EncoderDecoder,this._forward=C)}async dispose(){let e=[];for(let s of Object.keys(this)){let t=this[s];t instanceof d&&e.push(t.handler.dispose())}return await Promise.all(e)}static async from_pretrained(e,{quantized:s=!0,progress_callback:t=null,config:a=null,cache_dir:o=null,local_files_only:r=!1,revision:l="main",model_file_name:c=null}={}){let d,_={quantized:s,progress_callback:t,config:a,cache_dir:o,local_files_only:r,revision:l,model_file_name:c},u=f.get(this),p=m.get(u);return p===h.DecoderOnly?d=await Promise.all([n.z.from_pretrained(e,_),g(e,_.model_file_name??"decoder_model_merged",_),(0,i.yM)(e,"generation_config.json",!1,_)]):p===h.Seq2Seq||p===h.Vision2Seq?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"encoder_model",_),g(e,"decoder_model_merged",_),(0,i.yM)(e,"generation_config.json",!1,_)]):p===h.MaskGeneration?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"vision_encoder",_),g(e,"prompt_encoder_mask_decoder",_)]):p===h.EncoderDecoder?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"encoder_model",_),g(e,"decoder_model_merged",_)]):(p!==h.EncoderOnly&&console.warn(`Model type for '${u??a?.model_type}' not found, assuming encoder-only architecture. Please report this at https://github.com/xenova/transformers.js/issues/new/choose.`),d=await Promise.all([n.z.from_pretrained(e,_),g(e,_.model_file_name??"model",_)])),new this(...d)}async _call(e){return await this.forward(e)}async forward(e){return await this._forward(this,e)}_get_logits_processor(e,s,t=null){let n=new o.Jm;if(null!==e.repetition_penalty&&1!==e.repetition_penalty&&n.push(new o.Jj(e.repetition_penalty)),null!==e.no_repeat_ngram_size&&e.no_repeat_ngram_size>0&&n.push(new o.jF(e.no_repeat_ngram_size)),null!==e.bad_words_ids&&n.push(new o.AE(e.bad_words_ids,e.eos_token_id)),null!==e.min_length&&null!==e.eos_token_id&&e.min_length>0&&n.push(new o.ez(e.min_length,e.eos_token_id)),null!==e.min_new_tokens&&null!==e.eos_token_id&&e.min_new_tokens>0&&n.push(new o.CJ(s,e.min_new_tokens,e.eos_token_id)),null!==e.forced_bos_token_id&&n.push(new o.C9(e.forced_bos_token_id)),null!==e.forced_eos_token_id&&n.push(new o.dZ(e.max_length,e.forced_eos_token_id)),null!==e.begin_suppress_tokens){let t=s>1||null===e.forced_bos_token_id?s:s+1;null!==e.forced_decoder_ids&&(t+=e.forced_decoder_ids[e.forced_decoder_ids.length-1][0]),n.push(new o.GU(e.begin_suppress_tokens,t))}return null!==e.forced_decoder_ids&&n.push(new o.E(e.forced_decoder_ids)),null!==t&&n.extend(t),n}_get_generation_config(e){let s=new o.aP(this.config);return"generation_config"in this&&Object.assign(s,this.generation_config),null!==e&&Object.assign(s,e),s}async generate(e,s=null,t=null,{inputs_attention_mask:n=null}={}){let i;if(!this.can_generate){let e=f.get(this.constructor),s=`The current model class (${e}) is not compatible with \`.generate()\`, as it doesn't have a language model head.`,t=this.config.model_type,n=aT.get(t)??aB.get(t)??aL.get(t)??aq.get(t);throw n&&(s+=` Please use the following class instead: '${n[0]}'`),Error(s)}if(!(e instanceof r.es)&&!(0,a.fU)(e)&&!Array.isArray(e))throw Error(`\`inputs\` must be a Tensor, TypedArray, or Array, but is "${e.constructor.name}".`);if(this.config.is_encoder_decoder)i=0;else if(0===(i=e instanceof r.es?e.dims.at(-1):e.length))throw Error("Must supply a non-empty array of input token ids.");s=this._get_generation_config(s),t=t??new o.Jm,t=this._get_logits_processor(s,i,t);let l=s.eos_token_id;null===l||Array.isArray(l)||(l=[l]);let c=1,d=1+(s.max_new_tokens??1/0),_=Number.isInteger(s.max_length)&&(s.max_new_tokens??null)===null,u=o.Z4.getSampler(s),h=this.getStartBeams(e,s,c,n);for(;h.some(e=>!e.done)&&c<d;){let e=[];for(let n of h){if(n.done){e.push(n);continue}if(_&&n.output_token_ids.length>=s.max_length){n.done=!0,e.push(n);continue}let a=await this.runBeam(n);s.output_attentions&&this.addAttentionsToBeam(n,a),s.output_scores;let i=a.logits.slice(null,-1,null);for(let[s,a]of(t(n.output_token_ids,i),u(i))){let t={...n};this.updateBeam(t,s),t.score+=a,l&&l.includes(s)&&(t.done=!0),e.push(t)}}++c,h=(e=this.groupBeams(e).map(e=>e.sort((e,s)=>s.score-e.score).slice(0,s.num_beams))).flat(),s.callback_function&&s.callback_function(h)}let m=this.groupBeams(h),p=e=>m.map(t=>s.num_return_sequences>1?t.slice(0,s.num_return_sequences).map(s=>s[e]):[t[0][e]]).flat(),g=p("output_token_ids");return s.return_dict_in_generate?{sequences:g,decoder_attentions:p("decoder_attentions"),cross_attentions:p("cross_attentions")}:g}addAttentionsToBeam(e,s){if(this.config.is_encoder_decoder){if(!s.cross_attentions||0===s.cross_attentions.length)throw Error("`output_attentions` is true, but the model did not produce cross-attentions. This is most likely because the model was not exported with `output_attentions=True`.");e.cross_attentions||(e.cross_attentions=[]),e.cross_attentions.push(s.cross_attentions)}if(!s.decoder_attentions||0===s.decoder_attentions.length)throw Error("`output_attentions` is true, but the model did not produce decoder-attentions. This is most likely because the model was not exported with `output_attentions=True`.");e.decoder_attentions||(e.decoder_attentions=[]),e.decoder_attentions.push(s.decoder_attentions)}groupBeams(e){let s=Object.create(null);for(let t of e)void 0===s[t.id]?s[t.id]=[t]:s[t.id].push(t);return Object.values(s)}getPastKeyValues(e,s){let t=Object.create(null);for(let n in e)if(n.startsWith("present")){let a=n.replace("present","past_key_values");s&&n.includes("encoder")?t[a]=s[a]:t[a]=e[n]}return t}getAttentions(e){let s=Object.create(null);for(let t of["cross_attentions","decoder_attentions"]){let n=[];for(let s in e)s.startsWith(t)&&(n[s.split(".").pop()]=e[s]);s[t]=n}return s}addPastKeyValues(e,s){if(s)Object.assign(e,s);else if(this.config.is_encoder_decoder&&(this.add_encoder_pkv??!0)){let s=[1,this.num_encoder_heads,0,this.encoder_dim_kv],t=[1,this.num_decoder_heads,0,this.decoder_dim_kv];for(let n=0;n<this.num_decoder_layers;++n)e[`past_key_values.${n}.encoder.key`]=new r.es("float32",[],s),e[`past_key_values.${n}.encoder.value`]=new r.es("float32",[],s),e[`past_key_values.${n}.decoder.key`]=new r.es("float32",[],t),e[`past_key_values.${n}.decoder.value`]=new r.es("float32",[],t)}else if("falcon"===this.config.model_type){let s=[1*this.num_heads,0,this.dim_kv];for(let t=0;t<this.num_layers;++t)e[`past_key_values.${t}.key`]=new r.es("float32",[],s),e[`past_key_values.${t}.value`]=new r.es("float32",[],s)}else if(this.config.multi_query){let s=[1*this.num_heads,0,2*this.dim_kv];for(let t=0;t<this.num_layers;++t)e[`past_key_values.${t}.key_value`]=new r.es("float32",[],s)}else if("bloom"===this.config.model_type){let s=[1*this.num_heads,this.dim_kv,0],t=[1*this.num_heads,0,this.dim_kv];for(let n=0;n<this.num_layers;++n)e[`past_key_values.${n}.key`]=new r.es("float32",[],s),e[`past_key_values.${n}.value`]=new r.es("float32",[],t)}else{let s=[1,this.num_heads,0,this.dim_kv];for(let t=0;t<this.num_layers;++t)e[`past_key_values.${t}.key`]=new r.es("float32",[],s),e[`past_key_values.${t}.value`]=new r.es("float32",[],s)}}getStartBeams(e,s,t,n){return this._getStartBeams(this,e,s,t,n)}async runBeam(e){return await this._runBeam(this,e)}updateBeam(e,s){return this._updateBeam(e,s)}}class O{}class B extends E{}class T extends B{}class D extends B{async _call(e){return new iw(await super._call(e))}}class I extends B{async _call(e){return new im(await super._call(e))}}class q extends B{async _call(e){return new ig(await super._call(e))}}class N extends B{async _call(e){return new ix(await super._call(e))}}class G extends E{}class V extends G{}class z extends E{}class j extends z{}class $ extends z{async _call(e){return new iw(await super._call(e))}}class W extends z{async _call(e){return new im(await super._call(e))}}class R extends z{async _call(e){return new ig(await super._call(e))}}class Q extends z{async _call(e){return new ix(await super._call(e))}}class U extends E{}class X extends U{}class K extends U{async _call(e){return new iw(await super._call(e))}}class H extends U{async _call(e){return new im(await super._call(e))}}class J extends U{async _call(e){return new ig(await super._call(e))}}class Z extends U{async _call(e){return new ix(await super._call(e))}}class Y extends E{}class ee extends Y{}class es extends Y{async _call(e){return new iw(await super._call(e))}}class et extends Y{async _call(e){return new im(await super._call(e))}}class en extends Y{async _call(e){return new ig(await super._call(e))}}class ea extends Y{async _call(e){return new ix(await super._call(e))}}class ei extends E{}class eo extends ei{}class er extends ei{async _call(e){return new iw(await super._call(e))}}class el extends ei{async _call(e){return new im(await super._call(e))}}class ec extends ei{async _call(e){return new ig(await super._call(e))}}class ed extends ei{async _call(e){return new ix(await super._call(e))}}class e_ extends E{}class eu extends e_{}class eh extends e_{async _call(e){return new iw(await super._call(e))}}class em extends e_{async _call(e){return new im(await super._call(e))}}class ep extends e_{async _call(e){return new ig(await super._call(e))}}class ef extends e_{async _call(e){return new ix(await super._call(e))}}class eg extends E{}class ew extends eg{}class ex extends eg{async _call(e){return new iw(await super._call(e))}}class ey extends eg{async _call(e){return new im(await super._call(e))}}class eM extends eg{async _call(e){return new ig(await super._call(e))}}class ek extends eg{async _call(e){return new ix(await super._call(e))}}class eb extends E{}class ev extends eb{}class eS extends eb{async _call(e){return new im(await super._call(e))}}class eC extends eb{async _call(e){return new ig(await super._call(e))}}class eF extends eb{async _call(e){return new ix(await super._call(e))}}class eL extends eb{async _call(e){return new iw(await super._call(e))}}class eA extends E{}class eP extends eA{}class eE extends eA{async _call(e){return new iw(await super._call(e))}}class eO extends eA{async _call(e){return new im(await super._call(e))}}class eB extends eA{async _call(e){return new ig(await super._call(e))}}class eT extends E{}class eD extends eT{}class eI extends eT{async _call(e){return new iw(await super._call(e))}}class eq extends eT{async _call(e){return new im(await super._call(e))}}class eN extends eT{async _call(e){return new ix(await super._call(e))}}class eG extends E{}class eV extends eG{}class ez extends eG{async _call(e){return new iw(await super._call(e))}}class ej extends eG{async _call(e){return new im(await super._call(e))}}class e$ extends eG{async _call(e){return new ig(await super._call(e))}}class eW extends eG{async _call(e){return new ix(await super._call(e))}}class eR extends E{}class eQ extends eR{}class eU extends eR{async _call(e){return new iw(await super._call(e))}}class eX extends eR{async _call(e){return new im(await super._call(e))}}class eK extends eR{async _call(e){return new ix(await super._call(e))}}class eH extends E{}class eJ extends eH{}class eZ extends eH{async _call(e){return new im(await super._call(e))}}class eY extends eH{async _call(e){return new ix(await super._call(e))}}class e2 extends eH{async _call(e){return new iw(await super._call(e))}}class e0 extends E{}class e1 extends e0{}class e4 extends e0{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.num_decoder_layers,this.num_decoder_heads=this.config.num_heads,this.decoder_dim_kv=this.config.d_kv,this.num_encoder_layers=this.config.num_layers,this.num_encoder_heads=this.config.num_heads,this.encoder_dim_kv=this.config.d_kv}}class e3 extends E{}class e5 extends e3{}class e6 extends e3{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.num_decoder_layers,this.num_decoder_heads=this.config.num_heads,this.decoder_dim_kv=this.config.d_kv,this.num_encoder_layers=this.config.num_layers,this.num_encoder_heads=this.config.num_heads,this.encoder_dim_kv=this.config.d_kv}}class e7 extends E{}class e9 extends e7{}class e8 extends e7{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.num_decoder_layers,this.num_decoder_heads=this.config.num_heads,this.decoder_dim_kv=this.config.d_kv,this.num_encoder_layers=this.config.num_layers,this.num_encoder_heads=this.config.num_heads,this.encoder_dim_kv=this.config.d_kv}}class se extends E{}class ss extends se{}class st extends se{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class sn extends se{async _call(e){return new im(await super._call(e))}}class sa extends E{}class si extends sa{}class so extends sa{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class sr extends sa{async _call(e){return new im(await super._call(e))}}class sl extends sa{constructor(e,s,t){super(e,s),this.generation_config=t,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class sc extends E{}class sd extends sc{}class s_ extends sc{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class su extends E{}class sh extends su{}class sm extends su{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class sp extends E{}class sf extends sp{}class sg extends sp{async _call(e){return new iw(await super._call(e))}}class sw extends sp{async _call(e){return new im(await super._call(e))}}class sx extends sp{async _call(e){return new ig(await super._call(e))}}class sy extends sp{async _call(e){return new ix(await super._call(e))}}class sM extends E{}class sk extends sM{}class sb extends sM{async _call(e){return new iw(await super._call(e))}}class sv extends sM{async _call(e){return new im(await super._call(e))}}class sS extends sM{async _call(e){return new ig(await super._call(e))}}class sC extends sM{async _call(e){return new ix(await super._call(e))}}class sF extends E{}class sL extends sF{}class sA extends sF{async _call(e){return new iw(await super._call(e))}}class sP extends sF{async _call(e){return new im(await super._call(e))}}class sE extends sF{async _call(e){return new ig(await super._call(e))}}class sO extends sF{async _call(e){return new ix(await super._call(e))}}class sB extends E{}class sT extends sB{}class sD extends sB{}class sI extends E{}class sq extends sI{}class sN extends sI{requires_attention_mask=!1;main_input_name="input_features";constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}async generate(e,s=null,t=null){if(s=this._get_generation_config(s),s.return_timestamps??=!1,s.return_timestamps&&(t=[new o.Pg(s)]),s.return_token_timestamps&&(s.output_attentions=!0,s.return_dict_in_generate=!0,"translate"===s.task&&console.warn("Token-level timestamps may not be reliable for task 'translate'."),!s.alignment_heads))throw Error("Model generation config has no `alignment_heads`, token-level timestamps not available. See https://gist.github.com/hollance/42e32852f24243b748ae6bc1f985b13a on how to add this property to the generation config.");let n=await super.generate(e,s,t);return s.return_token_timestamps&&s.alignment_heads&&(n.token_timestamps=this._extract_token_timestamps(n,s.alignment_heads,s.num_frames)),n}_extract_token_timestamps(e,s,t=null,n=.02){if(!e.cross_attentions)throw Error("Model outputs must contain cross attentions to extract timestamps. This is most likely because the model was not exported with `output_attentions=True`.");let i=this.config.median_filter_width;void 0===i&&(console.warn("Model config has no `median_filter_width`, using default value of 7."),i=7);let o=e.cross_attentions.map(e=>{let n=Array.from({length:this.config.decoder_layers},(s,t)=>(0,r.d3)(e.map(e=>e[t]),2)),a=(0,r.kn)(s.map(([e,s])=>t?n[e].slice(null,s,null,[0,t]):n[e].slice(null,s)));a=a.transpose(1,0,2,3);let[o,l]=(0,r.f3)(a,-2,0,!0),d=a.clone();for(let e=0;e<d.dims[0];++e){let s=d[e];for(let t=0;t<s.dims[0];++t){let n=s[t],a=o[e][t][0],r=l[e][t][0];for(let e=0;e<n.dims[0];++e){let s=n[e];for(let e=0;e<s.data.length;++e)s.data[e]=(s.data[e]-r.data[e])/a.data[e];s.data.set((0,c.qCb)(s.data,i))}}}return(0,r.J6)(d,1)}),l=[e.sequences.length,e.sequences[0].length],d=new r.es("float32",new Float32Array(l[0]*l[1]),l);for(let e=0;e<l[0];++e){let s=o[e].neg().squeeze_(0),[t,i]=(0,r.Ks)(s),l=Array.from({length:t.length-1},(e,s)=>t[s+1]-t[s]),c=(0,a.eG)([1],l).map(e=>!!e),_=[];for(let e=0;e<c.length;++e)c[e]&&_.push(i[e]*n);d[e].data.set(_,1)}return d}}class sG extends E{main_input_name="pixel_values";constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n;let a=this.config.encoder,i=this.config.decoder,o=a.model_type;(aS.get(o)??aC.get(o))||console.warn(`Model type for encoder '${o}' not found, assuming encoder-only architecture. Please report this at https://github.com/xenova/transformers.js/issues/new/choose.`);let r=aT.get(i.model_type);if(!r)throw Error(`Unable to construct \`VisionEncoderDecoder\` due to unsupported decoder: "${this.config.decoder.model_type}"`);let l=new r[1](i,t,n);this.add_encoder_pkv="num_decoder_layers"in l,this.add_encoder_pkv?(this.num_decoder_layers=l.num_decoder_layers,this.num_decoder_heads=l.num_decoder_heads,this.decoder_dim_kv=l.decoder_dim_kv,this.num_encoder_layers=l.num_encoder_layers,this.num_encoder_heads=l.num_encoder_heads,this.encoder_dim_kv=l.encoder_dim_kv):(this.num_layers=l.num_layers,this.num_heads=l.num_heads,this.dim_kv=l.dim_kv)}}class sV extends E{}class sz extends sV{}class sj extends sV{static async from_pretrained(e,s={}){return s.model_file_name??="text_model",super.from_pretrained(e,s)}}class s$ extends sV{static async from_pretrained(e,s={}){return s.model_file_name??="vision_model",super.from_pretrained(e,s)}}class sW extends E{}class sR extends sW{}class sQ extends sW{static async from_pretrained(e,s={}){return s.model_file_name??="text_model",super.from_pretrained(e,s)}}class sU extends sV{static async from_pretrained(e,s={}){return s.model_file_name??="vision_model",super.from_pretrained(e,s)}}class sX extends E{}class sK extends sX{}class sH extends E{}class sJ extends sH{}class sZ extends sH{}class sY extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class s2 extends sY{}class s0 extends sY{}class s1 extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_heads,this.num_layers=this.config.num_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class s4 extends s1{}class s3 extends s1{}class s5 extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class s6 extends s5{}class s7 extends s5{}class s9 extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class s8 extends s9{}class te extends s9{}class ts extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class tt extends ts{}class tn extends ts{}class ta extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class ti extends ta{}class to extends ta{}class tr extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads??this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class tl extends tr{}class tc extends tr{}class td extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads??this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class t_ extends td{}class tu extends td{}class th extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class tm extends th{}class tp extends th{}class tf extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.hidden_size/this.num_heads}}class tg extends tf{}class tw extends tf{}class tx extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_heads,this.num_layers=this.config.n_layers,this.dim_kv=this.config.d_model/this.num_heads}}class ty extends tx{}class tM extends tx{}class tk extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class tb extends tk{}class tv extends tk{}class tS extends E{}class tC extends tS{}class tF extends tS{async _call(e){return new im(await super._call(e))}}class tL extends E{}class tA extends tL{async _call(e){return new iM(await super._call(e))}}class tP extends E{}class tE extends tP{}class tO extends tP{async _call(e){return new im(await super._call(e))}}class tB extends E{}class tT extends tB{}class tD extends tB{}class tI extends E{}class tq extends tI{}class tN extends tI{}class tG extends E{}class tV extends tG{}class tz extends tG{async _call(e){return new im(await super._call(e))}}class tj extends E{}class t$ extends tj{}class tW extends tj{async _call(e){return new tQ(await super._call(e))}}class tR extends tj{async _call(e){return new tU(await super._call(e))}}class tQ extends O{constructor({logits:e,pred_boxes:s}){super(),this.logits=e,this.pred_boxes=s}}class tU extends O{constructor({logits:e,pred_boxes:s,pred_masks:t}){super(),this.logits=e,this.pred_boxes=s,this.pred_masks=t}}class tX extends E{}class tK extends tX{}class tH extends tX{async _call(e){return new tJ(await super._call(e))}}class tJ extends tQ{}class tZ extends E{}class tY extends tZ{}class t2 extends tZ{async _call(e){return new im(await super._call(e))}}class t0 extends E{}class t1 extends t0{}class t4 extends t0{async _call(e){return new im(await super._call(e))}}class t3 extends E{}class t5 extends t3{}class t6 extends t3{async _call(e){return new im(await super._call(e))}}class t7 extends E{}class t9 extends t7{}class t8 extends t7{}class ne extends E{}class ns extends ne{}class nt extends ne{}class nn extends E{}class na extends nn{}class ni extends E{}class no extends ni{}class nr extends ni{}class nl extends E{}class nc extends nl{}class nd extends E{}class n_ extends nd{}class nu extends nd{async _call(e){return new im(await super._call(e))}}class nh extends E{}class nm extends nh{}class np extends nh{async _call(e){return new im(await super._call(e))}}class nf extends E{}class ng extends nf{}class nw extends nf{async _call(e){return new im(await super._call(e))}}class nx extends E{}class ny extends nx{}class nM extends nx{async _call(e){return new nk(await super._call(e))}}class nk extends O{constructor({logits:e,pred_boxes:s}){super(),this.logits=e,this.pred_boxes=s}}class nb extends E{}class nv extends nb{constructor(e,s,t){super(e,s),this.prompt_encoder_mask_decoder=t}async get_image_embeddings({pixel_values:e}){return await C(this,{pixel_values:e})}async forward(e){if(e.image_embeddings&&e.image_positional_embeddings||(e={...e,...await this.get_image_embeddings(e)}),!e.input_labels){let s=e.input_points.dims.slice(0,-1),t=s.reduce((e,s)=>e*s,1);e.input_labels=new r.es("int64",new BigInt64Array(t).fill(1n),s)}return await w(this.prompt_encoder_mask_decoder,{input_points:e.input_points,input_labels:e.input_labels,image_embeddings:e.image_embeddings,image_positional_embeddings:e.image_positional_embeddings})}async _call(e){return new nS(await super._call(e))}}class nS extends O{constructor({iou_scores:e,pred_masks:s}){super(),this.iou_scores=e,this.pred_masks=s}}class nC extends E{}class nF extends nC{}class nL extends nC{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class nA extends E{}class nP extends nA{}class nE extends nA{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class nO extends E{}class nB extends nO{}class nT extends nO{async _call(e){return new iy(await super._call(e))}}class nD extends nO{async _call(e){return new im(await super._call(e))}}class nI extends nO{async _call(e){return new ig(await super._call(e))}}class nq extends E{}class nN extends nq{}class nG extends nq{async _call(e){return new iy(await super._call(e))}}class nV extends nq{async _call(e){return new im(await super._call(e))}}class nz extends E{}class nj extends nz{}class n$ extends nz{async _call(e){return new iy(await super._call(e))}}class nW extends nz{async _call(e){return new im(await super._call(e))}}class nR extends nz{async _call(e){return new ig(await super._call(e))}}class nQ extends E{}class nU extends nQ{}class nX extends nQ{async _call(e){return new iy(await super._call(e))}}class nK extends nQ{async _call(e){return new im(await super._call(e))}}class nH extends nO{}class nJ extends nO{async _call(e){return new iy(await super._call(e))}}class nZ extends nO{async _call(e){return new im(await super._call(e))}}class nY extends E{}class n2 extends nY{}class n0 extends nY{async _call(e){return new iy(await super._call(e))}}class n1 extends nY{async _call(e){return new im(await super._call(e))}}class n4 extends nY{async _call(e){return new ip(await super._call(e))}}class n3 extends nY{async _call(e){return new ig(await super._call(e))}}class n5 extends E{}class n6 extends n5{}class n7 extends n5{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.hidden_size/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.hidden_size/this.num_encoder_heads}async generate_speech(e,s,{threshold:t=.5,minlenratio:n=0,maxlenratio:a=20,vocoder:i=null}={}){let{encoder_outputs:o,encoder_attention_mask:l}=await C(this,{input_ids:e}),c=o.dims[1]/this.config.reduction_factor,d=Math.floor(c*a),_=Math.floor(c*n),u=this.config.num_mel_bins,h=[],m=null,p=null,f=0;for(;;){++f;let e={use_cache_branch:M(!!p),output_sequence:p?p.output_sequence_out:new r.es("float32",new Float32Array(u),[1,1,u]),encoder_attention_mask:l,speaker_embeddings:s,encoder_hidden_states:o};this.addPastKeyValues(e,m),p=await w(this.decoder_merged_session,e),m=this.getPastKeyValues(p,m);let{prob:n,spectrum:a}=p;if(h.push(a),f>=_&&(Array.from(n.data).filter(e=>e>=t).length>0||f>=d))break}let g=(0,r.d3)(h),{waveform:x}=await w(i.session,{spectrogram:g});return{spectrogram:g,waveform:x}}}class n9 extends E{main_input_name="spectrogram"}class n8 extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_encoder_layers=this.num_decoder_layers=this.config.decoder_layers,this.num_encoder_heads=this.num_decoder_heads=this.config.decoder_attention_heads,this.encoder_dim_kv=this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads}}class ae extends n8{}class as extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class at extends as{}class an extends as{}class aa extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class ai extends aa{}class ao extends aa{}class ar extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class al extends ar{}class ac extends ar{}class ad extends E{}class a_ extends ad{}class au extends ad{static async from_pretrained(e,s={}){return s.model_file_name??="text_model",super.from_pretrained(e,s)}}class ah extends ad{static async from_pretrained(e,s={}){return s.model_file_name??="audio_model",super.from_pretrained(e,s)}}class am extends E{}class ap extends am{async _call(e){return new ik(await super._call(e))}}class af extends E{}class ag extends af{}class aw extends af{}class ax extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class ay extends ax{}class aM extends E{}class ak extends aM{}class ab extends aM{async _call(e){return new im(await super._call(e))}}class av{static MODEL_CLASS_MAPPINGS=null;static BASE_IF_FAIL=!1;static async from_pretrained(e,{quantized:s=!0,progress_callback:t=null,config:a=null,cache_dir:i=null,local_files_only:o=!1,revision:r="main",model_file_name:l=null}={}){let c={quantized:s,progress_callback:t,config:a,cache_dir:i,local_files_only:o,revision:r,model_file_name:l};if(a=await n.z.from_pretrained(e,c),c.config||(c.config=a),!this.MODEL_CLASS_MAPPINGS)throw Error("`MODEL_CLASS_MAPPINGS` not implemented for this type of `AutoClass`: "+this.name);for(let s of this.MODEL_CLASS_MAPPINGS){let t=s.get(a.model_type);if(t)return await t[1].from_pretrained(e,c)}if(this.BASE_IF_FAIL)return console.warn(`Unknown model class "${a.model_type}", attempting to construct from base class.`),await E.from_pretrained(e,c);throw Error(`Unsupported model type: ${a.model_type}`)}}let aS=new Map([["bert",["BertModel",T]],["nomic_bert",["NomicBertModel",V]],["roformer",["RoFormerModel",j]],["electra",["ElectraModel",ee]],["esm",["EsmModel",eP]],["convbert",["ConvBertModel",X]],["camembert",["CamembertModel",eo]],["deberta",["DebertaModel",eu]],["deberta-v2",["DebertaV2Model",ew]],["mpnet",["MPNetModel",eV]],["albert",["AlbertModel",eJ]],["distilbert",["DistilBertModel",ev]],["roberta",["RobertaModel",sf]],["xlm",["XLMModel",sk]],["xlm-roberta",["XLMRobertaModel",sL]],["clap",["ClapModel",a_]],["clip",["CLIPModel",sz]],["clipseg",["CLIPSegModel",sJ]],["chinese_clip",["ChineseCLIPModel",sK]],["siglip",["SiglipModel",sR]],["mobilebert",["MobileBertModel",eD]],["squeezebert",["SqueezeBertModel",eQ]],["wav2vec2",["Wav2Vec2Model",nB]],["wav2vec2-bert",["Wav2Vec2BertModel",nU]],["unispeech",["UniSpeechModel",nN]],["unispeech-sat",["UniSpeechSatModel",nj]],["hubert",["HubertModel",nH]],["wavlm",["WavLMModel",n2]],["audio-spectrogram-transformer",["ASTModel",sT]],["vits",["VitsModel",ap]],["detr",["DetrModel",t$]],["table-transformer",["TableTransformerModel",tK]],["vit",["ViTModel",tC]],["mobilevit",["MobileViTModel",tE]],["owlvit",["OwlViTModel",tT]],["owlv2",["Owlv2Model",tq]],["beit",["BeitModel",tV]],["deit",["DeiTModel",tY]],["convnext",["ConvNextModel",n_]],["convnextv2",["ConvNextV2Model",nm]],["dinov2",["Dinov2Model",ng]],["resnet",["ResNetModel",t1]],["swin",["SwinModel",t5]],["swin2sr",["Swin2SRModel",t9]],["donut-swin",["DonutSwinModel",nc]],["yolos",["YolosModel",ny]],["dpt",["DPTModel",ns]],["glpn",["GLPNModel",no]],["hifigan",["SpeechT5HifiGan",n9]],["efficientnet",["EfficientNetModel",ak]]]),aC=new Map([["t5",["T5Model",e1]],["longt5",["LongT5Model",e5]],["mt5",["MT5Model",e9]],["bart",["BartModel",ss]],["mbart",["MBartModel",si]],["marian",["MarianModel",nF]],["whisper",["WhisperModel",sq]],["m2m_100",["M2M100Model",nP]],["blenderbot",["BlenderbotModel",sd]],["blenderbot-small",["BlenderbotSmallModel",sh]]]),aF=new Map([["bloom",["BloomModel",tg]],["gpt2",["GPT2Model",s2]],["gptj",["GPTJModel",s8]],["gpt_bigcode",["GPTBigCodeModel",tt]],["gpt_neo",["GPTNeoModel",s4]],["gpt_neox",["GPTNeoXModel",s6]],["codegen",["CodeGenModel",ti]],["llama",["LlamaModel",tl]],["qwen2",["Qwen2Model",t_]],["phi",["PhiModel",tm]],["mpt",["MptModel",ty]],["opt",["OPTModel",tb]],["mistral",["MistralModel",at]],["starcoder2",["Starcoder2Model",ai]],["falcon",["FalconModel",al]]]),aL=new Map([["speecht5",["SpeechT5ForSpeechToText",n6]],["whisper",["WhisperForConditionalGeneration",sN]]]),aA=new Map([["speecht5",["SpeechT5ForTextToSpeech",n7]]]),aP=new Map([["vits",["VitsModel",ap]]]),aE=new Map([["bert",["BertForSequenceClassification",I]],["roformer",["RoFormerForSequenceClassification",W]],["electra",["ElectraForSequenceClassification",et]],["esm",["EsmForSequenceClassification",eO]],["convbert",["ConvBertForSequenceClassification",H]],["camembert",["CamembertForSequenceClassification",el]],["deberta",["DebertaForSequenceClassification",em]],["deberta-v2",["DebertaV2ForSequenceClassification",ey]],["mpnet",["MPNetForSequenceClassification",ej]],["albert",["AlbertForSequenceClassification",eZ]],["distilbert",["DistilBertForSequenceClassification",eS]],["roberta",["RobertaForSequenceClassification",sw]],["xlm",["XLMForSequenceClassification",sv]],["xlm-roberta",["XLMRobertaForSequenceClassification",sP]],["bart",["BartForSequenceClassification",sn]],["mbart",["MBartForSequenceClassification",sr]],["mobilebert",["MobileBertForSequenceClassification",eq]],["squeezebert",["SqueezeBertForSequenceClassification",eX]]]),aO=new Map([["bert",["BertForTokenClassification",q]],["roformer",["RoFormerForTokenClassification",R]],["electra",["ElectraForTokenClassification",en]],["esm",["EsmForTokenClassification",eB]],["convbert",["ConvBertForTokenClassification",J]],["camembert",["CamembertForTokenClassification",ec]],["deberta",["DebertaForTokenClassification",ep]],["deberta-v2",["DebertaV2ForTokenClassification",eM]],["mpnet",["MPNetForTokenClassification",e$]],["distilbert",["DistilBertForTokenClassification",eC]],["roberta",["RobertaForTokenClassification",sx]],["xlm",["XLMForTokenClassification",sS]],["xlm-roberta",["XLMRobertaForTokenClassification",sE]]]),aB=new Map([["t5",["T5ForConditionalGeneration",e4]],["longt5",["LongT5ForConditionalGeneration",e6]],["mt5",["MT5ForConditionalGeneration",e8]],["bart",["BartForConditionalGeneration",st]],["mbart",["MBartForConditionalGeneration",so]],["marian",["MarianMTModel",nL]],["m2m_100",["M2M100ForConditionalGeneration",nE]],["blenderbot",["BlenderbotForConditionalGeneration",s_]],["blenderbot-small",["BlenderbotSmallForConditionalGeneration",sm]]]),aT=new Map([["bloom",["BloomForCausalLM",tw]],["gpt2",["GPT2LMHeadModel",s0]],["gptj",["GPTJForCausalLM",te]],["gpt_bigcode",["GPTBigCodeForCausalLM",tn]],["gpt_neo",["GPTNeoForCausalLM",s3]],["gpt_neox",["GPTNeoXForCausalLM",s7]],["codegen",["CodeGenForCausalLM",to]],["llama",["LlamaForCausalLM",tc]],["qwen2",["Qwen2ForCausalLM",tu]],["phi",["PhiForCausalLM",tp]],["mpt",["MptForCausalLM",tM]],["opt",["OPTForCausalLM",tv]],["mbart",["MBartForCausalLM",sl]],["mistral",["MistralForCausalLM",an]],["starcoder2",["Starcoder2ForCausalLM",ao]],["falcon",["FalconForCausalLM",ac]],["trocr",["TrOCRForCausalLM",ae]],["stablelm",["StableLmForCausalLM",ay]]]),aD=new Map([["bert",["BertForMaskedLM",D]],["roformer",["RoFormerForMaskedLM",$]],["electra",["ElectraForMaskedLM",es]],["esm",["EsmForMaskedLM",eE]],["convbert",["ConvBertForMaskedLM",K]],["camembert",["CamembertForMaskedLM",er]],["deberta",["DebertaForMaskedLM",eh]],["deberta-v2",["DebertaV2ForMaskedLM",ex]],["mpnet",["MPNetForMaskedLM",ez]],["albert",["AlbertForMaskedLM",e2]],["distilbert",["DistilBertForMaskedLM",eL]],["roberta",["RobertaForMaskedLM",sg]],["xlm",["XLMWithLMHeadModel",sb]],["xlm-roberta",["XLMRobertaForMaskedLM",sA]],["mobilebert",["MobileBertForMaskedLM",eI]],["squeezebert",["SqueezeBertForMaskedLM",eU]]]),aI=new Map([["bert",["BertForQuestionAnswering",N]],["roformer",["RoFormerForQuestionAnswering",Q]],["electra",["ElectraForQuestionAnswering",ea]],["convbert",["ConvBertForQuestionAnswering",Z]],["camembert",["CamembertForQuestionAnswering",ed]],["deberta",["DebertaForQuestionAnswering",ef]],["deberta-v2",["DebertaV2ForQuestionAnswering",ek]],["mpnet",["MPNetForQuestionAnswering",eW]],["albert",["AlbertForQuestionAnswering",eY]],["distilbert",["DistilBertForQuestionAnswering",eF]],["roberta",["RobertaForQuestionAnswering",sy]],["xlm",["XLMForQuestionAnswering",sC]],["xlm-roberta",["XLMRobertaForQuestionAnswering",sO]],["mobilebert",["MobileBertForQuestionAnswering",eN]],["squeezebert",["SqueezeBertForQuestionAnswering",eK]]]),aq=new Map([["vision-encoder-decoder",["VisionEncoderDecoderModel",sG]]]),aN=new Map([["vision-encoder-decoder",["VisionEncoderDecoderModel",sG]]]),aG=new Map([["vit",["ViTForImageClassification",tF]],["mobilevit",["MobileViTForImageClassification",tO]],["beit",["BeitForImageClassification",tz]],["deit",["DeiTForImageClassification",t2]],["convnext",["ConvNextForImageClassification",nu]],["convnextv2",["ConvNextV2ForImageClassification",np]],["dinov2",["Dinov2ForImageClassification",nw]],["resnet",["ResNetForImageClassification",t4]],["swin",["SwinForImageClassification",t6]],["segformer",["SegformerForImageClassification",ag]],["efficientnet",["EfficientNetForImageClassification",ab]]]),aV=new Map([["detr",["DetrForObjectDetection",tW]],["table-transformer",["TableTransformerForObjectDetection",tH]],["yolos",["YolosForObjectDetection",nM]]]),az=new Map([["owlvit",["OwlViTForObjectDetection",tD]],["owlv2",["Owlv2ForObjectDetection",tN]]]),aj=new Map([["detr",["DetrForSegmentation",tR]],["clipseg",["CLIPSegForImageSegmentation",sZ]]]),a$=new Map([["segformer",["SegformerForSemanticSegmentation",aw]]]),aW=new Map([["sam",["SamModel",nv]]]),aR=new Map([["wav2vec2",["Wav2Vec2ForCTC",nT]],["wav2vec2-bert",["Wav2Vec2BertForCTC",nX]],["unispeech",["UniSpeechForCTC",nG]],["unispeech-sat",["UniSpeechSatForCTC",n$]],["wavlm",["WavLMForCTC",n0]],["hubert",["HubertForCTC",nJ]]]),aQ=new Map([["wav2vec2",["Wav2Vec2ForSequenceClassification",nD]],["wav2vec2-bert",["Wav2Vec2BertForSequenceClassification",nK]],["unispeech",["UniSpeechForSequenceClassification",nV]],["unispeech-sat",["UniSpeechSatForSequenceClassification",nW]],["wavlm",["WavLMForSequenceClassification",n1]],["hubert",["HubertForSequenceClassification",nZ]],["audio-spectrogram-transformer",["ASTForAudioClassification",sD]]]),aU=new Map([["wavlm",["WavLMForXVector",n4]]]),aX=new Map([["unispeech-sat",["UniSpeechSatForAudioFrameClassification",nR]],["wavlm",["WavLMForAudioFrameClassification",n3]],["wav2vec2",["Wav2Vec2ForAudioFrameClassification",nI]]]),aK=new Map([["vitmatte",["VitMatteForImageMatting",tA]]]),aH=new Map([["swin2sr",["Swin2SRForImageSuperResolution",t8]]]),aJ=new Map([["dpt",["DPTForDepthEstimation",nt]],["depth_anything",["DepthAnythingForDepthEstimation",na]],["glpn",["GLPNForDepthEstimation",nr]]]),aZ=new Map([["clip",["CLIPVisionModelWithProjection",s$]],["siglip",["SiglipVisionModel",sU]]]),aY=[[aS,h.EncoderOnly],[aC,h.EncoderDecoder],[aF,h.DecoderOnly],[aE,h.EncoderOnly],[aO,h.EncoderOnly],[aB,h.Seq2Seq],[aL,h.Seq2Seq],[aT,h.DecoderOnly],[aD,h.EncoderOnly],[aI,h.EncoderOnly],[aq,h.Vision2Seq],[aG,h.EncoderOnly],[aj,h.EncoderOnly],[a$,h.EncoderOnly],[aK,h.EncoderOnly],[aH,h.EncoderOnly],[aJ,h.EncoderOnly],[aV,h.EncoderOnly],[az,h.EncoderOnly],[aW,h.MaskGeneration],[aR,h.EncoderOnly],[aQ,h.EncoderOnly],[aA,h.Seq2Seq],[aP,h.EncoderOnly],[aU,h.EncoderOnly],[aX,h.EncoderOnly],[aZ,h.EncoderOnly]];for(let[e,s]of aY)for(let[t,n]of e.values())m.set(t,s),f.set(n,t),p.set(t,n);for(let[e,s,t]of[["CLIPTextModelWithProjection",sj,h.EncoderOnly],["SiglipTextModel",sQ,h.EncoderOnly],["ClapTextModelWithProjection",au,h.EncoderOnly],["ClapAudioModelWithProjection",ah,h.EncoderOnly]])m.set(e,t),f.set(s,e),p.set(e,s);class a2 extends av{static MODEL_CLASS_MAPPINGS=aY.map(e=>e[0]);static BASE_IF_FAIL=!0}class a0 extends av{static MODEL_CLASS_MAPPINGS=[aE]}class a1 extends av{static MODEL_CLASS_MAPPINGS=[aO]}class a4 extends av{static MODEL_CLASS_MAPPINGS=[aB]}class a3 extends av{static MODEL_CLASS_MAPPINGS=[aL]}class a5 extends av{static MODEL_CLASS_MAPPINGS=[aA]}class a6 extends av{static MODEL_CLASS_MAPPINGS=[aP]}class a7 extends av{static MODEL_CLASS_MAPPINGS=[aT]}class a9 extends av{static MODEL_CLASS_MAPPINGS=[aD]}class a8 extends av{static MODEL_CLASS_MAPPINGS=[aI]}class ie extends av{static MODEL_CLASS_MAPPINGS=[aq]}class is extends av{static MODEL_CLASS_MAPPINGS=[aG]}class it extends av{static MODEL_CLASS_MAPPINGS=[aj]}class ia extends av{static MODEL_CLASS_MAPPINGS=[a$]}class ii extends av{static MODEL_CLASS_MAPPINGS=[aV]}class io extends av{static MODEL_CLASS_MAPPINGS=[az]}class ir extends av{static MODEL_CLASS_MAPPINGS=[aR]}class il extends av{static MODEL_CLASS_MAPPINGS=[aQ]}class ic extends av{static MODEL_CLASS_MAPPINGS=[aN]}class id extends av{static MODEL_CLASS_MAPPINGS=[aH]}class i_ extends av{static MODEL_CLASS_MAPPINGS=[aJ]}class iu extends av{static MODEL_CLASS_MAPPINGS=[aZ]}class ih extends O{constructor({logits:e,past_key_values:s,encoder_outputs:t,decoder_attentions:n=null,cross_attentions:a=null}){super(),this.logits=e,this.past_key_values=s,this.encoder_outputs=t,this.decoder_attentions=n,this.cross_attentions=a}}class im extends O{constructor({logits:e}){super(),this.logits=e}}class ip extends O{constructor({logits:e,embeddings:s}){super(),this.logits=e,this.embeddings=s}}class ig extends O{constructor({logits:e}){super(),this.logits=e}}class iw extends O{constructor({logits:e}){super(),this.logits=e}}class ix extends O{constructor({start_logits:e,end_logits:s}){super(),this.start_logits=e,this.end_logits=s}}class iy extends O{constructor({logits:e}){super(),this.logits=e}}class iM extends O{constructor({alphas:e}){super(),this.alphas=e}}class ik extends O{constructor({waveform:e,spectrogram:s}){super(),this.waveform=e,this.spectrogram=s}}}}]);
_next/static/chunks/946-310f6d0c4f8124d5.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/app/_not-found/page-3aa23121d293e5c8.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[409],{7589:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return n(5457)}])},5457:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}}),n(1609);let i=n(2281);n(2265);let o={fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},l={display:"inline-block"},r={display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},d={fontSize:14,fontWeight:400,lineHeight:"49px",margin:0};function s(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"404: This page could not be found."}),(0,i.jsx)("div",{style:o,children:(0,i.jsxs)("div",{children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,i.jsx)("h1",{className:"next-error-h1",style:r,children:"404"}),(0,i.jsx)("div",{style:l,children:(0,i.jsx)("h2",{style:d,children:"This page could not be found."})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},function(e){e.O(0,[971,190,744],function(){return e(e.s=7589)}),_N_E=e.O()}]);
_next/static/chunks/app/layout-0e0c053c92ad2f81.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{3730:function(a,n,e){Promise.resolve().then(e.bind(e,2944)),Promise.resolve().then(e.bind(e,2981))},2981:function(a,n,e){"use strict";e.d(n,{default:function(){return g}});var t=e(2281),i=e(6441),r=e(9010),s=e(1542),_=e(8462),u=e(6463),L=e(20),o=e(8578);let l=(0,e(2024)._)(o.vc);function g(a){let{children:n,...e}=a,[o,g]=(0,r.U)(),h=(0,s.P)(),{scheme:c}=(0,i.fl)();return(0,u.useServerInsertedHTML)(()=>(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:l.getNewCSS({exclude:"design-system"})}})),(0,t.jsx)(_.G,{onChangeTheme:g,children:(0,t.jsx)(L.r,{config:l,defaultTheme:"system"===c?h.systemTheme:c,disableInjectCSS:!0,...e,children:n})})}},6441:function(a,n,e){"use strict";e.d(n,{a2:function(){return l},fl:function(){return L},NZ:function(){return c}});var t=e(9099),i=e(9291);let r=new(e(3569)).ai,s={setItem:(a,n)=>r.set(a,n),getItem:a=>{let n=r.getString(a);return null!=n?n:null},removeItem:a=>r.delete(a)},_={scheme:"system"},u=(0,t.Ue)()((0,i.mW)((0,i.tJ)((a,n)=>({..._,toggleScheme:()=>{a({scheme:"dark"===n().scheme?"light":"light"===n().scheme?"system":"dark"})}}),{name:"scheme",storage:(0,i.FL)(()=>s)}),{enabled:!1})),L=()=>u(a=>({scheme:a.scheme,toggleScheme:a.toggleScheme}));var o=e(2844);let l={"Acehnese (Arabic script)":"ace_Arab","Acehnese (Latin script)":"ace_Latn",Afrikaans:"afr_Latn",Akan:"aka_Latn",Amharic:"amh_Ethi",Armenian:"hye_Armn",Assamese:"asm_Beng",Asturian:"ast_Latn",Awadhi:"awa_Deva","Ayacucho Quechua":"quy_Latn",Balinese:"ban_Latn",Bambara:"bam_Latn","Banjar (Arabic script)":"bjn_Arab","Banjar (Latin script)":"bjn_Latn",Bashkir:"bak_Cyrl",Basque:"eus_Latn",Belarusian:"bel_Cyrl",Bemba:"bem_Latn",Bengali:"ben_Beng",Bhojpuri:"bho_Deva",Bosnian:"bos_Latn",Buginese:"bug_Latn",Bulgarian:"bul_Cyrl",Burmese:"mya_Mymr",Catalan:"cat_Latn",Cebuano:"ceb_Latn","Central Atlas Tamazight":"tzm_Tfng","Central Aymara":"ayr_Latn","Central Kanuri (Arabic script)":"knc_Arab","Central Kanuri (Latin script)":"knc_Latn","Central Kurdish":"ckb_Arab",Chhattisgarhi:"hne_Deva","Chinese (Simplified)":"zho_Hans","Chinese (Traditional)":"zho_Hant",Chokwe:"cjk_Latn","Crimean Tatar":"crh_Latn",Croatian:"hrv_Latn",Czech:"ces_Latn",Danish:"dan_Latn",Dari:"prs_Arab",Dutch:"nld_Latn",Dyula:"dyu_Latn",Dzongkha:"dzo_Tibt","Eastern Panjabi":"pan_Guru","Eastern Yiddish":"ydd_Hebr","Egyptian Arabic":"arz_Arab",English:"eng_Latn",Esperanto:"epo_Latn",Estonian:"est_Latn",Ewe:"ewe_Latn",Faroese:"fao_Latn",Fijian:"fij_Latn",Finnish:"fin_Latn",Fon:"fon_Latn",French:"fra_Latn",Friulian:"fur_Latn",Galician:"glg_Latn",Ganda:"lug_Latn",Georgian:"kat_Geor",German:"deu_Latn",Greek:"ell_Grek",Guarani:"grn_Latn",Gujarati:"guj_Gujr","Haitian Creole":"hat_Latn","Halh Mongolian":"khk_Cyrl",Hausa:"hau_Latn",Hebrew:"heb_Hebr",Hindi:"hin_Deva",Hungarian:"hun_Latn",Icelandic:"isl_Latn",Igbo:"ibo_Latn",Ilocano:"ilo_Latn",Indonesian:"ind_Latn",Irish:"gle_Latn",Italian:"ita_Latn",Japanese:"jpn_Jpan",Javanese:"jav_Latn",Jingpho:"kac_Latn",Kabiyè:"kbp_Latn",Kabuverdianu:"kea_Latn",Kabyle:"kab_Latn",Kamba:"kam_Latn",Kannada:"kan_Knda","Kashmiri (Arabic script)":"kas_Arab","Kashmiri (Devanagari script)":"kas_Deva",Kazakh:"kaz_Cyrl",Khmer:"khm_Khmr",Kikongo:"kon_Latn",Kikuyu:"kik_Latn",Kimbundu:"kmb_Latn",Kinyarwanda:"kin_Latn",Korean:"kor_Hang",Kyrgyz:"kir_Cyrl",Lao:"lao_Laoo",Latgalian:"ltg_Latn",Ligurian:"lij_Latn",Limburgish:"lim_Latn",Lingala:"lin_Latn",Lithuanian:"lit_Latn",Lombard:"lmo_Latn","Luba-Kasai":"lua_Latn",Luo:"luo_Latn",Luxembourgish:"ltz_Latn",Macedonian:"mkd_Cyrl",Magahi:"mag_Deva",Maithili:"mai_Deva",Malayalam:"mal_Mlym",Maltese:"mlt_Latn",Maori:"mri_Latn",Marathi:"mar_Deva","Meitei (Bengali script)":"mni_Beng","Mesopotamian Arabic":"acm_Arab","Minangkabau (Arabic script)":"min_Arab","Minangkabau (Latin script)":"min_Latn",Mizo:"lus_Latn","Modern Standard Arabic (Romanized)":"arb_Latn","Modern Standard Arabic":"arb_Arab","Moroccan Arabic":"ary_Arab",Mossi:"mos_Latn","Najdi Arabic":"ars_Arab",Nepali:"npi_Deva","Nigerian Fulfulde":"fuv_Latn","North Azerbaijani":"azj_Latn","North Levantine Arabic":"apc_Arab","Northern Kurdish":"kmr_Latn","Northern Sotho":"nso_Latn","Northern Uzbek":"uzn_Latn","Norwegian Bokm\xe5l":"nob_Latn","Norwegian Nynorsk":"nno_Latn",Nuer:"nus_Latn",Nyanja:"nya_Latn",Occitan:"oci_Latn",Odia:"ory_Orya",Pangasinan:"pag_Latn",Papiamento:"pap_Latn","Plateau Malagasy":"plt_Latn",Polish:"pol_Latn",Portuguese:"por_Latn",Romanian:"ron_Latn",Rundi:"run_Latn",Russian:"rus_Cyrl",Samoan:"smo_Latn",Sango:"sag_Latn",Sanskrit:"san_Deva",Santali:"sat_Olck",Sardinian:"srd_Latn","Scottish Gaelic":"gla_Latn",Serbian:"srp_Cyrl",Shan:"shn_Mymr",Shona:"sna_Latn",Sicilian:"scn_Latn",Silesian:"szl_Latn",Sindhi:"snd_Arab",Sinhala:"sin_Sinh",Slovak:"slk_Latn",Slovenian:"slv_Latn",Somali:"som_Latn","South Azerbaijani":"azb_Arab","South Levantine Arabic":"ajp_Arab","Southern Pashto":"pbt_Arab","Southern Sotho":"sot_Latn","Southwestern Dinka":"dik_Latn",Spanish:"spa_Latn","Standard Latvian":"lvs_Latn","Standard Malay":"zsm_Latn","Standard Tibetan":"bod_Tibt",Sundanese:"sun_Latn",Swahili:"swh_Latn",Swati:"ssw_Latn",Swedish:"swe_Latn",Tagalog:"tgl_Latn",Tajik:"tgk_Cyrl","Tamasheq (Latin script)":"taq_Latn","Tamasheq (Tifinagh script)":"taq_Tfng",Tamil:"tam_Taml",Tatar:"tat_Cyrl","Ta’izzi-Adeni Arabic":"acq_Arab",Telugu:"tel_Telu",Thai:"tha_Thai",Tigrinya:"tir_Ethi","Tok Pisin":"tpi_Latn","Tosk Albanian":"als_Latn",Tsonga:"tso_Latn",Tswana:"tsn_Latn",Tumbuka:"tum_Latn","Tunisian Arabic":"aeb_Arab",Turkish:"tur_Latn",Turkmen:"tuk_Latn",Twi:"twi_Latn",Ukrainian:"ukr_Cyrl",Umbundu:"umb_Latn",Urdu:"urd_Arab",Uyghur:"uig_Arab",Venetian:"vec_Latn",Vietnamese:"vie_Latn",Waray:"war_Latn",Welsh:"cym_Latn","West Central Oromo":"gaz_Latn","Western Persian":"pes_Arab",Wolof:"wol_Latn",Xhosa:"xho_Latn",Yoruba:"yor_Latn","Yue Chinese":"yue_Hant",Zulu:"zul_Latn"},g={ready:!0,disabled:!1,progressItems:[],input:"T\xf4i y\xeau Việt Nam qu\xea hương t\xf4i.",sourceLanguage:"vie_Latn",targetLanguage:"eng_Latn",output:""},h=(0,t.Ue)()((0,i.mW)((0,i.tJ)((0,o.n)(a=>({...g,setDisabled:n=>{a({disabled:n})},setInput:n=>{a({input:n})},setSourceLanguage:n=>{a({sourceLanguage:n})},setTargetLanguage:n=>{a({targetLanguage:n})},onMessageReceived:n=>{switch(n.data.status){case"initiate":a(a=>{a.ready=!1,a.progressItems.push(n.data)});break;case"progress":a(a=>{a.progressItems.find(a=>a.file===n.data.file).progress=n.data.progress});break;case"done":a(a=>{a.progressItems.filter(a=>a.file!==n.data.file)});break;case"ready":a({ready:!0});break;case"update":a({output:n.data.output});break;case"complete":a({disabled:!1})}}})),{name:"translator"}),{enabled:!1})),c=()=>h(a=>({ready:a.ready,disabled:a.disabled,progressItems:a.progressItems,input:a.input,sourceLanguage:a.sourceLanguage,targetLanguage:a.targetLanguage,output:a.output,setDisabled:a.setDisabled,setInput:a.setInput,setSourceLanguage:a.setSourceLanguage,setTargetLanguage:a.setTargetLanguage,onMessageReceived:a.onMessageReceived}))}},function(a){a.O(0,[946,123,971,190,744],function(){return a(a.s=3730)}),_N_E=a.O()}]);
_next/static/chunks/app/page-d8efbd597c53f3cc.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{6016:function(a,n,e){Promise.resolve().then(e.bind(e,9969)),Promise.resolve().then(e.t.bind(e,2191,23))},9969:function(a,n,e){"use strict";e.d(n,{default:function(){return T}});var t=e(2281),r=e(6441),i=e(6855),s=e(2890),l=e(896),o=e(5377),_=e(391),u=e(1217),c=e(6505),L=e(3187),h=e(2265),g=e(9175),d=e(4397),b=e(1957),m=e(1569),p=e(1378),j=e(9298),k=e(3370),y=e(8220);let x=a=>{let{type:n,onChange:e,defaultLanguage:i}=a;return(0,t.jsxs)(o.FA,{children:[(0,t.jsxs)(u.n,{children:[n,": "]}),(0,t.jsxs)(j.Ph,{size:"$4",onValueChange:e,defaultValue:i,children:[(0,t.jsx)(j.Ph.Trigger,{iconAfter:m._,children:(0,t.jsx)(j.Ph.Value,{placeholder:"Languages"})}),(0,t.jsx)(k.Tr,{when:"sm",platform:"touch",children:(0,t.jsxs)(y.yo,{native:!1,modal:!0,dismissOnSnapToBottom:!0,animation:"quick",children:[(0,t.jsx)(y.yo.Frame,{children:(0,t.jsx)(y.yo.ScrollView,{children:(0,t.jsx)(k.Tr.Contents,{})})}),(0,t.jsx)(y.yo.Overlay,{animation:"lazy",enterStyle:{opacity:0},exitStyle:{opacity:0}})]})}),(0,t.jsxs)(j.Ph.Content,{zi:2e5,children:[(0,t.jsxs)(j.Ph.ScrollUpButton,{ai:"center",jc:"center",pos:"relative",w:"100%",h:"$3",children:[(0,t.jsx)(o.FA,{zi:10,children:(0,t.jsx)(p.K,{size:20})}),(0,t.jsx)(d.o,{start:[0,0],end:[0,1],fullscreen:!0,colors:["$background","$backgroundTransparent"],br:"$4"})]}),(0,t.jsx)(j.Ph.Viewport,{children:(0,t.jsxs)(j.Ph.Group,{children:[(0,t.jsx)(j.Ph.Label,{children:"Languages"}),Object.entries(r.a2).map((a,n)=>{let[e,r]=a;return(0,t.jsxs)(j.Ph.Item,{index:n,value:r,children:[(0,t.jsx)(j.Ph.ItemText,{children:e}),(0,t.jsx)(j.Ph.ItemIndicator,{ml:"auto",children:(0,t.jsx)(b.J,{size:16})})]},e)})]})}),(0,t.jsxs)(j.Ph.ScrollDownButton,{ai:"center",jc:"center",pos:"relative",w:"100%",h:"$3",children:[(0,t.jsx)(o.FA,{zi:10,children:(0,t.jsx)(m._,{size:20})}),(0,t.jsx)(d.o,{start:[0,0],end:[0,1],fullscreen:!0,colors:["$backgroundTransparent","$background"],br:"$4"})]})]})]})]})};var A=e(663);let f=a=>{let{text:n,percentage:e}=a;return e=null!=e?e:0,(0,t.jsxs)(o.FA,{h:"60",ai:"center",gap:!0,children:[(0,t.jsxs)(u.n,{h:"30",o:"0.5",children:[n," (","".concat(e.toFixed(2),"%"),")"]}),(0,t.jsx)(A.Ex,{size:"$4",value:e,children:(0,t.jsx)(A.Ex.Indicator,{animation:"bouncy"})})]})},v=()=>{let{ready:a,disabled:n,progressItems:i,input:s,output:l,sourceLanguage:_,targetLanguage:c,setDisabled:d,setInput:b,setSourceLanguage:m,setTargetLanguage:p,onMessageReceived:j}=(0,r.NZ)(),k=(0,h.useRef)(null);return(0,h.useEffect)(()=>(k.current||(k.current=new Worker(e.tu(new URL(e.p+e.u(432),e.b)),{type:void 0})),k.current.addEventListener("message",j),()=>k.current.removeEventListener("message",j))),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.sL,{gap:"$4",children:[(0,t.jsxs)(o.FA,{gap:!0,children:[(0,t.jsx)(x,{type:"Source",defaultLanguage:"vie_Latn",onChange:m}),(0,t.jsx)(g.K,{value:s,size:"$4",onChange:b})]}),(0,t.jsxs)(o.FA,{gap:!0,children:[(0,t.jsx)(x,{type:"Target",defaultLanguage:"eng_Latn",onChange:p}),(0,t.jsx)(g.K,{value:l,size:"$4",readOnly:!0})]})]}),(0,t.jsx)(L.zx,{disabled:n,onPress:()=>{d(!0),k.current.postMessage({text:s,src_lang:_,tgt_lang:c})},children:"Translate"}),(0,t.jsxs)(o.FA,{gap:!0,children:[!1===a&&(0,t.jsx)(u.n,{children:"Loading models... (only run once)"}),i.map(a=>(0,t.jsx)(o.FA,{children:(0,t.jsx)(f,{text:a.file,percentage:a.progress})},a.file))]})]})},S={dark:(0,t.jsx)(s.J,{}),light:(0,t.jsx)(l.k,{}),system:(0,t.jsx)(i.u,{})};function T(){let{scheme:a,toggleScheme:n}=(0,r.fl)();return(0,t.jsxs)(o.FA,{f:1,h:"100vh",jc:"center",ai:"center",p:"$4",gap:"$4",children:[(0,t.jsxs)(o.FA,{gap:"$4",bc:"$",jc:"center",children:[(0,t.jsx)(_.H1,{ta:"center",children:"Transformers.js + Tamagui"}),(0,t.jsx)(u.n,{ta:"center",children:"ML-powered multilingual translation in React!"})]}),(0,t.jsx)(c.Z,{}),(0,t.jsx)(v,{}),(0,t.jsx)(L.zx,{pos:"absolute",b:30,l:20,icon:S[a],onPress:n,circular:!0})]})}},6441:function(a,n,e){"use strict";e.d(n,{a2:function(){return c},fl:function(){return _},NZ:function(){return g}});var t=e(9099),r=e(9291);let i=new(e(3569)).ai,s={setItem:(a,n)=>i.set(a,n),getItem:a=>{let n=i.getString(a);return null!=n?n:null},removeItem:a=>i.delete(a)},l={scheme:"system"},o=(0,t.Ue)()((0,r.mW)((0,r.tJ)((a,n)=>({...l,toggleScheme:()=>{a({scheme:"dark"===n().scheme?"light":"light"===n().scheme?"system":"dark"})}}),{name:"scheme",storage:(0,r.FL)(()=>s)}),{enabled:!1})),_=()=>o(a=>({scheme:a.scheme,toggleScheme:a.toggleScheme}));var u=e(2844);let c={"Acehnese (Arabic script)":"ace_Arab","Acehnese (Latin script)":"ace_Latn",Afrikaans:"afr_Latn",Akan:"aka_Latn",Amharic:"amh_Ethi",Armenian:"hye_Armn",Assamese:"asm_Beng",Asturian:"ast_Latn",Awadhi:"awa_Deva","Ayacucho Quechua":"quy_Latn",Balinese:"ban_Latn",Bambara:"bam_Latn","Banjar (Arabic script)":"bjn_Arab","Banjar (Latin script)":"bjn_Latn",Bashkir:"bak_Cyrl",Basque:"eus_Latn",Belarusian:"bel_Cyrl",Bemba:"bem_Latn",Bengali:"ben_Beng",Bhojpuri:"bho_Deva",Bosnian:"bos_Latn",Buginese:"bug_Latn",Bulgarian:"bul_Cyrl",Burmese:"mya_Mymr",Catalan:"cat_Latn",Cebuano:"ceb_Latn","Central Atlas Tamazight":"tzm_Tfng","Central Aymara":"ayr_Latn","Central Kanuri (Arabic script)":"knc_Arab","Central Kanuri (Latin script)":"knc_Latn","Central Kurdish":"ckb_Arab",Chhattisgarhi:"hne_Deva","Chinese (Simplified)":"zho_Hans","Chinese (Traditional)":"zho_Hant",Chokwe:"cjk_Latn","Crimean Tatar":"crh_Latn",Croatian:"hrv_Latn",Czech:"ces_Latn",Danish:"dan_Latn",Dari:"prs_Arab",Dutch:"nld_Latn",Dyula:"dyu_Latn",Dzongkha:"dzo_Tibt","Eastern Panjabi":"pan_Guru","Eastern Yiddish":"ydd_Hebr","Egyptian Arabic":"arz_Arab",English:"eng_Latn",Esperanto:"epo_Latn",Estonian:"est_Latn",Ewe:"ewe_Latn",Faroese:"fao_Latn",Fijian:"fij_Latn",Finnish:"fin_Latn",Fon:"fon_Latn",French:"fra_Latn",Friulian:"fur_Latn",Galician:"glg_Latn",Ganda:"lug_Latn",Georgian:"kat_Geor",German:"deu_Latn",Greek:"ell_Grek",Guarani:"grn_Latn",Gujarati:"guj_Gujr","Haitian Creole":"hat_Latn","Halh Mongolian":"khk_Cyrl",Hausa:"hau_Latn",Hebrew:"heb_Hebr",Hindi:"hin_Deva",Hungarian:"hun_Latn",Icelandic:"isl_Latn",Igbo:"ibo_Latn",Ilocano:"ilo_Latn",Indonesian:"ind_Latn",Irish:"gle_Latn",Italian:"ita_Latn",Japanese:"jpn_Jpan",Javanese:"jav_Latn",Jingpho:"kac_Latn",Kabiyè:"kbp_Latn",Kabuverdianu:"kea_Latn",Kabyle:"kab_Latn",Kamba:"kam_Latn",Kannada:"kan_Knda","Kashmiri (Arabic script)":"kas_Arab","Kashmiri (Devanagari script)":"kas_Deva",Kazakh:"kaz_Cyrl",Khmer:"khm_Khmr",Kikongo:"kon_Latn",Kikuyu:"kik_Latn",Kimbundu:"kmb_Latn",Kinyarwanda:"kin_Latn",Korean:"kor_Hang",Kyrgyz:"kir_Cyrl",Lao:"lao_Laoo",Latgalian:"ltg_Latn",Ligurian:"lij_Latn",Limburgish:"lim_Latn",Lingala:"lin_Latn",Lithuanian:"lit_Latn",Lombard:"lmo_Latn","Luba-Kasai":"lua_Latn",Luo:"luo_Latn",Luxembourgish:"ltz_Latn",Macedonian:"mkd_Cyrl",Magahi:"mag_Deva",Maithili:"mai_Deva",Malayalam:"mal_Mlym",Maltese:"mlt_Latn",Maori:"mri_Latn",Marathi:"mar_Deva","Meitei (Bengali script)":"mni_Beng","Mesopotamian Arabic":"acm_Arab","Minangkabau (Arabic script)":"min_Arab","Minangkabau (Latin script)":"min_Latn",Mizo:"lus_Latn","Modern Standard Arabic (Romanized)":"arb_Latn","Modern Standard Arabic":"arb_Arab","Moroccan Arabic":"ary_Arab",Mossi:"mos_Latn","Najdi Arabic":"ars_Arab",Nepali:"npi_Deva","Nigerian Fulfulde":"fuv_Latn","North Azerbaijani":"azj_Latn","North Levantine Arabic":"apc_Arab","Northern Kurdish":"kmr_Latn","Northern Sotho":"nso_Latn","Northern Uzbek":"uzn_Latn","Norwegian Bokm\xe5l":"nob_Latn","Norwegian Nynorsk":"nno_Latn",Nuer:"nus_Latn",Nyanja:"nya_Latn",Occitan:"oci_Latn",Odia:"ory_Orya",Pangasinan:"pag_Latn",Papiamento:"pap_Latn","Plateau Malagasy":"plt_Latn",Polish:"pol_Latn",Portuguese:"por_Latn",Romanian:"ron_Latn",Rundi:"run_Latn",Russian:"rus_Cyrl",Samoan:"smo_Latn",Sango:"sag_Latn",Sanskrit:"san_Deva",Santali:"sat_Olck",Sardinian:"srd_Latn","Scottish Gaelic":"gla_Latn",Serbian:"srp_Cyrl",Shan:"shn_Mymr",Shona:"sna_Latn",Sicilian:"scn_Latn",Silesian:"szl_Latn",Sindhi:"snd_Arab",Sinhala:"sin_Sinh",Slovak:"slk_Latn",Slovenian:"slv_Latn",Somali:"som_Latn","South Azerbaijani":"azb_Arab","South Levantine Arabic":"ajp_Arab","Southern Pashto":"pbt_Arab","Southern Sotho":"sot_Latn","Southwestern Dinka":"dik_Latn",Spanish:"spa_Latn","Standard Latvian":"lvs_Latn","Standard Malay":"zsm_Latn","Standard Tibetan":"bod_Tibt",Sundanese:"sun_Latn",Swahili:"swh_Latn",Swati:"ssw_Latn",Swedish:"swe_Latn",Tagalog:"tgl_Latn",Tajik:"tgk_Cyrl","Tamasheq (Latin script)":"taq_Latn","Tamasheq (Tifinagh script)":"taq_Tfng",Tamil:"tam_Taml",Tatar:"tat_Cyrl","Ta’izzi-Adeni Arabic":"acq_Arab",Telugu:"tel_Telu",Thai:"tha_Thai",Tigrinya:"tir_Ethi","Tok Pisin":"tpi_Latn","Tosk Albanian":"als_Latn",Tsonga:"tso_Latn",Tswana:"tsn_Latn",Tumbuka:"tum_Latn","Tunisian Arabic":"aeb_Arab",Turkish:"tur_Latn",Turkmen:"tuk_Latn",Twi:"twi_Latn",Ukrainian:"ukr_Cyrl",Umbundu:"umb_Latn",Urdu:"urd_Arab",Uyghur:"uig_Arab",Venetian:"vec_Latn",Vietnamese:"vie_Latn",Waray:"war_Latn",Welsh:"cym_Latn","West Central Oromo":"gaz_Latn","Western Persian":"pes_Arab",Wolof:"wol_Latn",Xhosa:"xho_Latn",Yoruba:"yor_Latn","Yue Chinese":"yue_Hant",Zulu:"zul_Latn"},L={ready:!0,disabled:!1,progressItems:[],input:"T\xf4i y\xeau Việt Nam qu\xea hương t\xf4i.",sourceLanguage:"vie_Latn",targetLanguage:"eng_Latn",output:""},h=(0,t.Ue)()((0,r.mW)((0,r.tJ)((0,u.n)(a=>({...L,setDisabled:n=>{a({disabled:n})},setInput:n=>{a({input:n})},setSourceLanguage:n=>{a({sourceLanguage:n})},setTargetLanguage:n=>{a({targetLanguage:n})},onMessageReceived:n=>{switch(n.data.status){case"initiate":a(a=>{a.ready=!1,a.progressItems.push(n.data)});break;case"progress":a(a=>{a.progressItems.find(a=>a.file===n.data.file).progress=n.data.progress});break;case"done":a(a=>{a.progressItems.filter(a=>a.file!==n.data.file)});break;case"ready":a({ready:!0});break;case"update":a({output:n.data.output});break;case"complete":a({disabled:!1})}}})),{name:"translator"}),{enabled:!1})),g=()=>h(a=>({ready:a.ready,disabled:a.disabled,progressItems:a.progressItems,input:a.input,sourceLanguage:a.sourceLanguage,targetLanguage:a.targetLanguage,output:a.output,setDisabled:a.setDisabled,setInput:a.setInput,setSourceLanguage:a.setSourceLanguage,setTargetLanguage:a.setTargetLanguage,onMessageReceived:a.onMessageReceived}))},2191:function(){}},function(a){a.O(0,[33,946,423,971,190,744],function(){return a(a.s=6016)}),_N_E=a.O()}]);
_next/static/chunks/b2db8554.2f90d90ec938bc93.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/fd9d1056-ee32f1bf30eb3d3f.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/framework-aec844d2ccbe7592.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/main-app-5420370b676a56f3.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[744],{2780:function(e,n,t){Promise.resolve().then(t.t.bind(t,5751,23)),Promise.resolve().then(t.t.bind(t,6513,23)),Promise.resolve().then(t.t.bind(t,6130,23)),Promise.resolve().then(t.t.bind(t,9275,23)),Promise.resolve().then(t.t.bind(t,5324,23)),Promise.resolve().then(t.t.bind(t,1343,23))}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[971,190],function(){return n(7804),n(1028),n(2780)}),_N_E=e.O()}]);
_next/static/chunks/main-fb740fb39bc15572.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/pages/_app-6a626577ffa902a4.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{1597:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return u(2239)}])}},function(n){var _=function(_){return n(n.s=_)};n.O(0,[774,179],function(){return _(1597),_(6036)}),_N_E=n.O()}]);
_next/static/chunks/pages/_error-1be831200e60c5c0.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{1981:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return u(3387)}])}},function(n){n.O(0,[888,774,179],function(){return n(n.s=1981)}),_N_E=n.O()}]);
_next/static/chunks/polyfills-78c92fac7aa8fdd8.js ADDED
@@ -0,0 +1 @@
 
 
1
+ !function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,s=u&&!a.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:a,c={f:s},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,h=function(t){return l.call(t).slice(8,-1)},p="".split,d=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==h(t)?p.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return d(v(t))},y=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!y(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!y(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!y(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!y(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,w=function(t,e){return b.call(t,e)},S=n.document,E=y(S)&&y(S.createElement),x=function(t){return E?S.createElement(t):{}},A=!i&&!o(function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor,R={f:i?O:function(t,e){if(t=g(t),e=m(e,!0),A)try{return O(t,e)}catch(t){}if(w(t,e))return f(!c.f.call(t,e),t[e])}},j=function(t){if(!y(t))throw TypeError(String(t)+" is not an object");return t},P=Object.defineProperty,I={f:i?P:function(t,e,r){if(j(t),e=m(e,!0),j(r),A)try{return P(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},T=i?function(t,e,r){return I.f(t,e,f(1,r))}:function(t,e,r){return t[e]=r,t},k=function(t,e){try{T(n,t,e)}catch(r){n[t]=e}return e},L="__core-js_shared__",U=n[L]||k(L,{}),M=Function.toString;"function"!=typeof U.inspectSource&&(U.inspectSource=function(t){return M.call(t)});var _,N,C,F=U.inspectSource,B=n.WeakMap,D="function"==typeof B&&/native code/.test(F(B)),q=!1,z=e(function(t){(t.exports=function(t,e){return U[t]||(U[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),W=0,K=Math.random(),G=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++W+K).toString(36)},$=z("keys"),V=function(t){return $[t]||($[t]=G(t))},H={};if(D){var X=new(0,n.WeakMap),Y=X.get,J=X.has,Q=X.set;_=function(t,e){return Q.call(X,t,e),e},N=function(t){return Y.call(X,t)||{}},C=function(t){return J.call(X,t)}}else{var Z=V("state");H[Z]=!0,_=function(t,e){return T(t,Z,e),e},N=function(t){return w(t,Z)?t[Z]:{}},C=function(t){return w(t,Z)}}var tt,et={set:_,get:N,has:C,enforce:function(t){return C(t)?N(t):_(t,{})},getterFor:function(t){return function(e){var r;if(!y(e)||(r=N(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},rt=e(function(t){var e=et.get,r=et.enforce,o=String(String).split("String");(t.exports=function(t,e,i,a){var u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||T(i,"name",e),r(i).source=o.join("string"==typeof e?e:"")),t!==n?(u?!c&&t[e]&&(s=!0):delete t[e],s?t[e]=i:T(t,e,i)):s?t[e]=i:k(e,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||F(this)})}),nt=n,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(nt[t])||ot(n[t]):nt[t]&&nt[t][e]||n[t]&&n[t][e]},at=Math.ceil,ut=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?ut:at)(t)},ct=Math.min,ft=function(t){return t>0?ct(st(t),9007199254740991):0},lt=Math.max,ht=Math.min,pt=function(t,e){var r=st(t);return r<0?lt(r+e,0):ht(r,e)},dt=function(t){return function(e,r,n){var o,i=g(e),a=ft(i.length),u=pt(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},vt={includes:dt(!0),indexOf:dt(!1)},gt=vt.indexOf,yt=function(t,e){var r,n=g(t),o=0,i=[];for(r in n)!w(H,r)&&w(n,r)&&i.push(r);for(;e.length>o;)w(n,r=e[o++])&&(~gt(i,r)||i.push(r));return i},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=mt.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(t){return yt(t,bt)}},St={f:Object.getOwnPropertySymbols},Et=it("Reflect","ownKeys")||function(t){var e=wt.f(j(t)),r=St.f;return r?e.concat(r(t)):e},xt=function(t,e){for(var r=Et(e),n=I.f,o=R.f,i=0;i<r.length;i++){var a=r[i];w(t,a)||n(t,a,o(e,a))}},At=/#|\.prototype\./,Ot=function(t,e){var r=jt[Rt(t)];return r==It||r!=Pt&&("function"==typeof e?o(e):!!e)},Rt=Ot.normalize=function(t){return String(t).replace(At,".").toLowerCase()},jt=Ot.data={},Pt=Ot.NATIVE="N",It=Ot.POLYFILL="P",Tt=Ot,kt=R.f,Lt=function(t,e){var r,o,i,a,u,s=t.target,c=t.global,f=t.stat;if(r=c?n:f?n[s]||k(s,{}):(n[s]||{}).prototype)for(o in e){if(a=e[o],i=t.noTargetGet?(u=kt(r,o))&&u.value:r[o],!Tt(c?o:s+(f?".":"#")+o,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;xt(a,i)}(t.sham||i&&i.sham)&&T(a,"sham",!0),rt(r,o,a,t)}},Ut=function(t){return Object(v(t))},Mt=Math.min,_t=[].copyWithin||function(t,e){var r=Ut(this),n=ft(r.length),o=pt(t,n),i=pt(e,n),a=arguments.length>2?arguments[2]:void 0,u=Mt((void 0===a?n:pt(a,n))-i,n-o),s=1;for(i<o&&o<i+u&&(s=-1,i+=u-1,o+=u-1);u-- >0;)i in r?r[o]=r[i]:delete r[o],o+=s,i+=s;return r},Nt=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())}),Ct=Nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ft=z("wks"),Bt=n.Symbol,Dt=Ct?Bt:Bt&&Bt.withoutSetter||G,qt=function(t){return w(Ft,t)||(Ft[t]=Nt&&w(Bt,t)?Bt[t]:Dt("Symbol."+t)),Ft[t]},zt=Object.keys||function(t){return yt(t,mt)},Wt=i?Object.defineProperties:function(t,e){j(t);for(var r,n=zt(e),o=n.length,i=0;o>i;)I.f(t,r=n[i++],e[r]);return t},Kt=it("document","documentElement"),Gt="prototype",$t="script",Vt=V("IE_PROTO"),Ht=function(){},Xt=function(t){return"<"+$t+">"+t+"</"+$t+">"},Yt=function(){try{tt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Yt=tt?function(t){t.write(Xt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(tt):(e=x("iframe"),r="java"+$t+":",e.style.display="none",Kt.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Xt("document.F=Object")),t.close(),t.F);for(var n=mt.length;n--;)delete Yt[Gt][mt[n]];return Yt()};H[Vt]=!0;var Jt=Object.create||function(t,e){var r;return null!==t?(Ht[Gt]=j(t),r=new Ht,Ht[Gt]=null,r[Vt]=t):r=Yt(),void 0===e?r:Wt(r,e)},Qt=qt("unscopables"),Zt=Array.prototype;null==Zt[Qt]&&I.f(Zt,Qt,{configurable:!0,value:Jt(null)});var te=function(t){Zt[Qt][t]=!0};Lt({target:"Array",proto:!0},{copyWithin:_t}),te("copyWithin");var ee=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},re=function(t,e,r){if(ee(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},ne=Function.call,oe=function(t,e,r){return re(ne,n[t].prototype[e],r)};oe("Array","copyWithin"),Lt({target:"Array",proto:!0},{fill:function(t){for(var e=Ut(this),r=ft(e.length),n=arguments.length,o=pt(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:pt(i,r);a>o;)e[o++]=t;return e}}),te("fill"),oe("Array","fill");var ie=Array.isArray||function(t){return"Array"==h(t)},ae=qt("species"),ue=function(t,e){var r;return ie(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!ie(r.prototype)?y(r)&&null===(r=r[ae])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},se=[].push,ce=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=5==t||i;return function(u,s,c,f){for(var l,h,p=Ut(u),v=d(p),g=re(s,c,3),y=ft(v.length),m=0,b=f||ue,w=e?b(u,y):r?b(u,0):void 0;y>m;m++)if((a||m in v)&&(h=g(l=v[m],m,p),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return l;case 6:return m;case 2:se.call(w,l)}else if(o)return!1;return i?-1:n||o?o:w}},fe={forEach:ce(0),map:ce(1),filter:ce(2),some:ce(3),every:ce(4),find:ce(5),findIndex:ce(6)},le=Object.defineProperty,he={},pe=function(t){throw t},de=function(t,e){if(w(he,t))return he[t];e||(e={});var r=[][t],n=!!w(e,"ACCESSORS")&&e.ACCESSORS,a=w(e,0)?e[0]:pe,u=w(e,1)?e[1]:void 0;return he[t]=!!r&&!o(function(){if(n&&!i)return!0;var t={length:-1};n?le(t,1,{enumerable:!0,get:pe}):t[1]=1,r.call(t,a,u)})},ve=fe.find,ge="find",ye=!0,me=de(ge);ge in[]&&Array(1)[ge](function(){ye=!1}),Lt({target:"Array",proto:!0,forced:ye||!me},{find:function(t){return ve(this,t,arguments.length>1?arguments[1]:void 0)}}),te(ge),oe("Array","find");var be=fe.findIndex,we="findIndex",Se=!0,Ee=de(we);we in[]&&Array(1)[we](function(){Se=!1}),Lt({target:"Array",proto:!0,forced:Se||!Ee},{findIndex:function(t){return be(this,t,arguments.length>1?arguments[1]:void 0)}}),te(we),oe("Array","findIndex");var xe=function(t,e,r,n,o,i,a,u){for(var s,c=o,f=0,l=!!a&&re(a,u,3);f<n;){if(f in r){if(s=l?l(r[f],f,e):r[f],i>0&&ie(s))c=xe(t,e,s,ft(s.length),c,i-1)-1;else{if(c>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[c]=s}c++}f++}return c},Ae=xe;Lt({target:"Array",proto:!0},{flatMap:function(t){var e,r=Ut(this),n=ft(r.length);return ee(t),(e=ue(r,0)).length=Ae(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}}),te("flatMap"),oe("Array","flatMap"),Lt({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Ut(this),r=ft(e.length),n=ue(e,0);return n.length=Ae(n,e,e,r,0,void 0===t?1:st(t)),n}}),te("flat"),oe("Array","flat");var Oe,Re,je,Pe=function(t){return function(e,r){var n,o,i=String(v(e)),a=st(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},Ie={codeAt:Pe(!1),charAt:Pe(!0)},Te=!o(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),ke=V("IE_PROTO"),Le=Object.prototype,Ue=Te?Object.getPrototypeOf:function(t){return t=Ut(t),w(t,ke)?t[ke]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Le:null},Me=qt("iterator"),_e=!1;[].keys&&("next"in(je=[].keys())?(Re=Ue(Ue(je)))!==Object.prototype&&(Oe=Re):_e=!0),null==Oe&&(Oe={}),w(Oe,Me)||T(Oe,Me,function(){return this});var Ne={IteratorPrototype:Oe,BUGGY_SAFARI_ITERATORS:_e},Ce=I.f,Fe=qt("toStringTag"),Be=function(t,e,r){t&&!w(t=r?t:t.prototype,Fe)&&Ce(t,Fe,{configurable:!0,value:e})},De={},qe=Ne.IteratorPrototype,ze=function(){return this},We=function(t,e,r){var n=e+" Iterator";return t.prototype=Jt(qe,{next:f(1,r)}),Be(t,n,!1),De[n]=ze,t},Ke=function(t){if(!y(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},Ge=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return j(r),Ke(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),$e=Ne.IteratorPrototype,Ve=Ne.BUGGY_SAFARI_ITERATORS,He=qt("iterator"),Xe="keys",Ye="values",Je="entries",Qe=function(){return this},Ze=function(t,e,r,n,o,i,a){We(r,e,n);var u,s,c,f=function(t){if(t===o&&v)return v;if(!Ve&&t in p)return p[t];switch(t){case Xe:case Ye:case Je:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[He]||p["@@iterator"]||o&&p[o],v=!Ve&&d||f(o),g="Array"==e&&p.entries||d;if(g&&(u=Ue(g.call(new t)),$e!==Object.prototype&&u.next&&(Ue(u)!==$e&&(Ge?Ge(u,$e):"function"!=typeof u[He]&&T(u,He,Qe)),Be(u,l,!0))),o==Ye&&d&&d.name!==Ye&&(h=!0,v=function(){return d.call(this)}),p[He]!==v&&T(p,He,v),De[e]=v,o)if(s={values:f(Ye),keys:i?v:f(Xe),entries:f(Je)},a)for(c in s)(Ve||h||!(c in p))&&rt(p,c,s[c]);else Lt({target:e,proto:!0,forced:Ve||h},s);return s},tr=Ie.charAt,er="String Iterator",rr=et.set,nr=et.getterFor(er);Ze(String,"String",function(t){rr(this,{type:er,string:String(t),index:0})},function(){var t,e=nr(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=tr(r,n),e.index+=t.length,{value:t,done:!1})});var or=function(t,e,r,n){try{return n?e(j(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&j(o.call(t)),e}},ir=qt("iterator"),ar=Array.prototype,ur=function(t){return void 0!==t&&(De.Array===t||ar[ir]===t)},sr=function(t,e,r){var n=m(e);n in t?I.f(t,n,f(0,r)):t[n]=r},cr={};cr[qt("toStringTag")]="z";var fr="[object z]"===String(cr),lr=qt("toStringTag"),hr="Arguments"==h(function(){return arguments}()),pr=fr?h:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),lr))?r:hr?h(e):"Object"==(n=h(e))&&"function"==typeof e.callee?"Arguments":n},dr=qt("iterator"),vr=function(t){if(null!=t)return t[dr]||t["@@iterator"]||De[pr(t)]},gr=function(t){var e,r,n,o,i,a,u=Ut(t),s="function"==typeof this?this:Array,c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,h=vr(u),p=0;if(l&&(f=re(f,c>2?arguments[2]:void 0,2)),null==h||s==Array&&ur(h))for(r=new s(e=ft(u.length));e>p;p++)a=l?f(u[p],p):u[p],sr(r,p,a);else for(i=(o=h.call(u)).next,r=new s;!(n=i.call(o)).done;p++)a=l?or(o,f,[n.value,p],!0):n.value,sr(r,p,a);return r.length=p,r},yr=qt("iterator"),mr=!1;try{var br=0,wr={next:function(){return{done:!!br++}},return:function(){mr=!0}};wr[yr]=function(){return this},Array.from(wr,function(){throw 2})}catch(t){}var Sr=function(t,e){if(!e&&!mr)return!1;var r=!1;try{var n={};n[yr]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Er=!Sr(function(t){Array.from(t)});Lt({target:"Array",stat:!0,forced:Er},{from:gr});var xr=vt.includes,Ar=de("indexOf",{ACCESSORS:!0,1:0});Lt({target:"Array",proto:!0,forced:!Ar},{includes:function(t){return xr(this,t,arguments.length>1?arguments[1]:void 0)}}),te("includes"),oe("Array","includes");var Or="Array Iterator",Rr=et.set,jr=et.getterFor(Or),Pr=Ze(Array,"Array",function(t,e){Rr(this,{type:Or,target:g(t),index:0,kind:e})},function(){var t=jr(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");De.Arguments=De.Array,te("keys"),te("values"),te("entries"),oe("Array","values");var Ir=o(function(){function t(){}return!(Array.of.call(t)instanceof t)});Lt({target:"Array",stat:!0,forced:Ir},{of:function(){for(var t=0,e=arguments.length,r=new("function"==typeof this?this:Array)(e);e>t;)sr(r,t,arguments[t++]);return r.length=e,r}});var Tr=qt("hasInstance"),kr=Function.prototype;Tr in kr||I.f(kr,Tr,{value:function(t){if("function"!=typeof this||!y(t))return!1;if(!y(this.prototype))return t instanceof this;for(;t=Ue(t);)if(this.prototype===t)return!0;return!1}}),qt("hasInstance");var Lr=Function.prototype,Ur=Lr.toString,Mr=/^\s*function ([^ (]*)/,_r="name";i&&!(_r in Lr)&&(0,I.f)(Lr,_r,{configurable:!0,get:function(){try{return Ur.call(this).match(Mr)[1]}catch(t){return""}}});var Nr=!o(function(){return Object.isExtensible(Object.preventExtensions({}))}),Cr=e(function(t){var e=I.f,r=G("meta"),n=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,r,{value:{objectID:"O"+ ++n,weakData:{}}})},a=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!y(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!w(t,r)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!w(t,r)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return Nr&&a.REQUIRED&&o(t)&&!w(t,r)&&i(t),t}};H[r]=!0}),Fr=e(function(t){var e=function(t,e){this.stopped=t,this.result=e},r=t.exports=function(t,r,n,o,i){var a,u,s,c,f,l,h,p=re(r,n,o?2:1);if(i)a=t;else{if("function"!=typeof(u=vr(t)))throw TypeError("Target is not iterable");if(ur(u)){for(s=0,c=ft(t.length);c>s;s++)if((f=o?p(j(h=t[s])[0],h[1]):p(t[s]))&&f instanceof e)return f;return new e(!1)}a=u.call(t)}for(l=a.next;!(h=l.call(a)).done;)if("object"==typeof(f=or(a,p,h.value,o))&&f&&f instanceof e)return f;return new e(!1)};r.stop=function(t){return new e(!0,t)}}),Br=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},Dr=function(t,e,r){var n,o;return Ge&&"function"==typeof(n=e.constructor)&&n!==r&&y(o=n.prototype)&&o!==r.prototype&&Ge(t,o),t},qr=function(t,e,r){var i=-1!==t.indexOf("Map"),a=-1!==t.indexOf("Weak"),u=i?"set":"add",s=n[t],c=s&&s.prototype,f=s,l={},h=function(t){var e=c[t];rt(c,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(a&&!y(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return a&&!y(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(a&&!y(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(Tt(t,"function"!=typeof s||!(a||c.forEach&&!o(function(){(new s).entries().next()}))))f=r.getConstructor(e,t,i,u),Cr.REQUIRED=!0;else if(Tt(t,!0)){var p=new f,d=p[u](a?{}:-0,1)!=p,v=o(function(){p.has(1)}),g=Sr(function(t){new s(t)}),m=!a&&o(function(){for(var t=new s,e=5;e--;)t[u](e,e);return!t.has(-0)});g||((f=e(function(e,r){Br(e,f,t);var n=Dr(new s,e,f);return null!=r&&Fr(r,n[u],n,i),n})).prototype=c,c.constructor=f),(v||m)&&(h("delete"),h("has"),i&&h("get")),(m||d)&&h(u),a&&c.clear&&delete c.clear}return l[t]=f,Lt({global:!0,forced:f!=s},l),Be(f,t),a||r.setStrong(f,t,i),f},zr=function(t,e,r){for(var n in e)rt(t,n,e[n],r);return t},Wr=qt("species"),Kr=function(t){var e=it(t);i&&e&&!e[Wr]&&(0,I.f)(e,Wr,{configurable:!0,get:function(){return this}})},Gr=I.f,$r=Cr.fastKey,Vr=et.set,Hr=et.getterFor,Xr={getConstructor:function(t,e,r,n){var o=t(function(t,a){Br(t,o,e),Vr(t,{type:e,index:Jt(null),first:void 0,last:void 0,size:0}),i||(t.size=0),null!=a&&Fr(a,t[n],t,r)}),a=Hr(e),u=function(t,e,r){var n,o,u=a(t),c=s(t,e);return c?c.value=r:(u.last=c={index:o=$r(e,!0),key:e,value:r,previous:n=u.last,next:void 0,removed:!1},u.first||(u.first=c),n&&(n.next=c),i?u.size++:t.size++,"F"!==o&&(u.index[o]=c)),t},s=function(t,e){var r,n=a(t),o=$r(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return zr(o.prototype,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,i?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=s(e,t);if(n){var o=n.next,u=n.previous;delete r.index[n.index],n.removed=!0,u&&(u.next=o),o&&(o.previous=u),r.first==n&&(r.first=o),r.last==n&&(r.last=u),i?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=re(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!s(this,t)}}),zr(o.prototype,r?{get:function(t){var e=s(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),i&&Gr(o.prototype,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=Hr(e),i=Hr(n);Ze(t,e,function(t,e){Vr(this,{type:n,target:t,state:o(t),kind:e,last:void 0})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),Kr(e)}},Yr=qr("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Xr);fr||rt(Object.prototype,"toString",fr?{}.toString:function(){return"[object "+pr(this)+"]"},{unsafe:!0});var Jr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Qr=qt("iterator"),Zr=qt("toStringTag"),tn=Pr.values;for(var en in Jr){var rn=n[en],nn=rn&&rn.prototype;if(nn){if(nn[Qr]!==tn)try{T(nn,Qr,tn)}catch(t){nn[Qr]=tn}if(nn[Zr]||T(nn,Zr,en),Jr[en])for(var on in Pr)if(nn[on]!==Pr[on])try{T(nn,on,Pr[on])}catch(t){nn[on]=Pr[on]}}}var an=function(t){var e,r,n,o,i=arguments.length,a=i>1?arguments[1]:void 0;return ee(this),(e=void 0!==a)&&ee(a),null==t?new this:(r=[],e?(n=0,o=re(a,i>2?arguments[2]:void 0,2),Fr(t,function(t){r.push(o(t,n++))})):Fr(t,r.push,r),new this(r))};Lt({target:"Map",stat:!0},{from:an});var un=function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)};Lt({target:"Map",stat:!0},{of:un});var sn=function(){for(var t,e=j(this),r=ee(e.delete),n=!0,o=0,i=arguments.length;o<i;o++)t=r.call(e,arguments[o]),n=n&&t;return!!n};Lt({target:"Map",proto:!0,real:!0,forced:q},{deleteAll:function(){return sn.apply(this,arguments)}});var cn=function(t){var e=vr(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return j(e.call(t))},fn=function(t){return Map.prototype.entries.call(t)};Lt({target:"Map",proto:!0,real:!0,forced:q},{every:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return!Fr(r,function(t,r){if(!n(r,t,e))return Fr.stop()},void 0,!0,!0).stopped}});var ln=qt("species"),hn=function(t,e){var r,n=j(t).constructor;return void 0===n||null==(r=j(n)[ln])?e:ee(r)};Lt({target:"Map",proto:!0,real:!0,forced:q},{filter:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it("Map"))),i=ee(o.set);return Fr(r,function(t,r){n(r,t,e)&&i.call(o,t,r)},void 0,!0,!0),o}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{find:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t,r){if(n(r,t,e))return Fr.stop(r)},void 0,!0,!0).result}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{findKey:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t,r){if(n(r,t,e))return Fr.stop(t)},void 0,!0,!0).result}}),Lt({target:"Map",stat:!0},{groupBy:function(t,e){var r=new this;ee(e);var n=ee(r.has),o=ee(r.get),i=ee(r.set);return Fr(t,function(t){var a=e(t);n.call(r,a)?o.call(r,a).push(t):i.call(r,a,[t])}),r}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{includes:function(t){return Fr(fn(j(this)),function(e,r){if((n=r)===(o=t)||n!=n&&o!=o)return Fr.stop();var n,o},void 0,!0,!0).stopped}}),Lt({target:"Map",stat:!0},{keyBy:function(t,e){var r=new this;ee(e);var n=ee(r.set);return Fr(t,function(t){n.call(r,e(t),t)}),r}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{keyOf:function(t){return Fr(fn(j(this)),function(e,r){if(r===t)return Fr.stop(e)},void 0,!0,!0).result}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{mapKeys:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it("Map"))),i=ee(o.set);return Fr(r,function(t,r){i.call(o,n(r,t,e),r)},void 0,!0,!0),o}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{mapValues:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it("Map"))),i=ee(o.set);return Fr(r,function(t,r){i.call(o,t,n(r,t,e))},void 0,!0,!0),o}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{merge:function(t){for(var e=j(this),r=ee(e.set),n=0;n<arguments.length;)Fr(arguments[n++],r,e,!0);return e}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{reduce:function(t){var e=j(this),r=fn(e),n=arguments.length<2,o=n?void 0:arguments[1];if(ee(t),Fr(r,function(r,i){n?(n=!1,o=i):o=t(o,i,r,e)},void 0,!0,!0),n)throw TypeError("Reduce of empty map with no initial value");return o}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{some:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t,r){if(n(r,t,e))return Fr.stop()},void 0,!0,!0).stopped}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{update:function(t,e){var r=j(this),n=arguments.length;ee(e);var o=r.has(t);if(!o&&n<3)throw TypeError("Updating absent value");var i=o?r.get(t):ee(n>2?arguments[2]:void 0)(t,r);return r.set(t,e(i,t,r)),r}});var pn=function(t,e){var r,n=j(this),o=arguments.length>2?arguments[2]:void 0;if("function"!=typeof e&&"function"!=typeof o)throw TypeError("At least one callback required");return n.has(t)?(r=n.get(t),"function"==typeof e&&(r=e(r),n.set(t,r))):"function"==typeof o&&(r=o(),n.set(t,r)),r};Lt({target:"Map",proto:!0,real:!0,forced:q},{upsert:pn}),Lt({target:"Map",proto:!0,real:!0,forced:q},{updateOrInsert:pn});var dn="\t\n\v\f\r                 \u2028\u2029\ufeff",vn="["+dn+"]",gn=RegExp("^"+vn+vn+"*"),yn=RegExp(vn+vn+"*$"),mn=function(t){return function(e){var r=String(v(e));return 1&t&&(r=r.replace(gn,"")),2&t&&(r=r.replace(yn,"")),r}},bn={start:mn(1),end:mn(2),trim:mn(3)},wn=wt.f,Sn=R.f,En=I.f,xn=bn.trim,An="Number",On=n[An],Rn=On.prototype,jn=h(Jt(Rn))==An,Pn=function(t){var e,r,n,o,i,a,u,s,c=m(t,!1);if("string"==typeof c&&c.length>2)if(43===(e=(c=xn(c)).charCodeAt(0))||45===e){if(88===(r=c.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=c.slice(2)).length,u=0;u<a;u++)if((s=i.charCodeAt(u))<48||s>o)return NaN;return parseInt(i,n)}return+c};if(Tt(An,!On(" 0o1")||!On("0b1")||On("+0x1"))){for(var In,Tn=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof Tn&&(jn?o(function(){Rn.valueOf.call(r)}):h(r)!=An)?Dr(new On(Pn(e)),r,Tn):Pn(e)},kn=i?wn(On):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Ln=0;kn.length>Ln;Ln++)w(On,In=kn[Ln])&&!w(Tn,In)&&En(Tn,In,Sn(On,In));Tn.prototype=Rn,Rn.constructor=Tn,rt(n,An,Tn)}Lt({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)});var Un=n.isFinite;Lt({target:"Number",stat:!0},{isFinite:Number.isFinite||function(t){return"number"==typeof t&&Un(t)}});var Mn=Math.floor,_n=function(t){return!y(t)&&isFinite(t)&&Mn(t)===t};Lt({target:"Number",stat:!0},{isInteger:_n}),Lt({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Nn=Math.abs;Lt({target:"Number",stat:!0},{isSafeInteger:function(t){return _n(t)&&Nn(t)<=9007199254740991}}),Lt({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991}),Lt({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991});var Cn=bn.trim,Fn=n.parseFloat,Bn=1/Fn(dn+"-0")!=-Infinity?function(t){var e=Cn(String(t)),r=Fn(e);return 0===r&&"-"==e.charAt(0)?-0:r}:Fn;Lt({target:"Number",stat:!0,forced:Number.parseFloat!=Bn},{parseFloat:Bn});var Dn=bn.trim,qn=n.parseInt,zn=/^[+-]?0[Xx]/,Wn=8!==qn(dn+"08")||22!==qn(dn+"0x16")?function(t,e){var r=Dn(String(t));return qn(r,e>>>0||(zn.test(r)?16:10))}:qn;Lt({target:"Number",stat:!0,forced:Number.parseInt!=Wn},{parseInt:Wn});var Kn=c.f,Gn=function(t){return function(e){for(var r,n=g(e),o=zt(n),a=o.length,u=0,s=[];a>u;)r=o[u++],i&&!Kn.call(n,r)||s.push(t?[r,n[r]]:n[r]);return s}},$n={entries:Gn(!0),values:Gn(!1)},Vn=$n.entries;Lt({target:"Object",stat:!0},{entries:function(t){return Vn(t)}}),Lt({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=g(t),o=R.f,i=Et(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&sr(a,e,r);return a}});var Hn=o(function(){zt(1)});Lt({target:"Object",stat:!0,forced:Hn},{keys:function(t){return zt(Ut(t))}});var Xn=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Lt({target:"Object",stat:!0},{is:Xn});var Yn=$n.values;Lt({target:"Object",stat:!0},{values:function(t){return Yn(t)}});var Jn=it("Reflect","apply"),Qn=Function.apply,Zn=!o(function(){Jn(function(){})});Lt({target:"Reflect",stat:!0,forced:Zn},{apply:function(t,e,r){return ee(t),j(r),Jn?Jn(t,e,r):Qn.call(t,e,r)}});var to=[].slice,eo={},ro=Function.bind||function(t){var e=ee(this),r=to.call(arguments,1),n=function(){var o=r.concat(to.call(arguments));return this instanceof n?function(t,e,r){if(!(e in eo)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";eo[e]=Function("C,a","return new C("+n.join(",")+")")}return eo[e](t,r)}(e,o.length,o):e.apply(t,o)};return y(e.prototype)&&(n.prototype=e.prototype),n},no=it("Reflect","construct"),oo=o(function(){function t(){}return!(no(function(){},[],t)instanceof t)}),io=!o(function(){no(function(){})}),ao=oo||io;Lt({target:"Reflect",stat:!0,forced:ao,sham:ao},{construct:function(t,e){ee(t),j(e);var r=arguments.length<3?t:ee(arguments[2]);if(io&&!oo)return no(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(ro.apply(t,n))}var o=r.prototype,i=Jt(y(o)?o:Object.prototype),a=Function.apply.call(t,i,e);return y(a)?a:i}});var uo=o(function(){Reflect.defineProperty(I.f({},1,{value:1}),1,{value:2})});Lt({target:"Reflect",stat:!0,forced:uo,sham:!i},{defineProperty:function(t,e,r){j(t);var n=m(e,!0);j(r);try{return I.f(t,n,r),!0}catch(t){return!1}}});var so=R.f;Lt({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=so(j(t),e);return!(r&&!r.configurable)&&delete t[e]}}),Lt({target:"Reflect",stat:!0},{get:function t(e,r){var n,o,i=arguments.length<3?e:arguments[2];return j(e)===i?e[r]:(n=R.f(e,r))?w(n,"value")?n.value:void 0===n.get?void 0:n.get.call(i):y(o=Ue(e))?t(o,r,i):void 0}}),Lt({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return R.f(j(t),e)}}),Lt({target:"Reflect",stat:!0,sham:!Te},{getPrototypeOf:function(t){return Ue(j(t))}}),Lt({target:"Reflect",stat:!0},{has:function(t,e){return e in t}});var co=Object.isExtensible;Lt({target:"Reflect",stat:!0},{isExtensible:function(t){return j(t),!co||co(t)}}),Lt({target:"Reflect",stat:!0},{ownKeys:Et}),Lt({target:"Reflect",stat:!0,sham:!Nr},{preventExtensions:function(t){j(t);try{var e=it("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}});var fo=o(function(){var t=I.f({},"a",{configurable:!0});return!1!==Reflect.set(Ue(t),"a",1,t)});Lt({target:"Reflect",stat:!0,forced:fo},{set:function t(e,r,n){var o,i,a=arguments.length<4?e:arguments[3],u=R.f(j(e),r);if(!u){if(y(i=Ue(e)))return t(i,r,n,a);u=f(0)}if(w(u,"value")){if(!1===u.writable||!y(a))return!1;if(o=R.f(a,r)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,I.f(a,r,o)}else I.f(a,r,f(0,n));return!0}return void 0!==u.set&&(u.set.call(a,n),!0)}}),Ge&&Lt({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){j(t),Ke(e);try{return Ge(t,e),!0}catch(t){return!1}}});var lo=Cr.getWeakData,ho=et.set,po=et.getterFor,vo=fe.find,go=fe.findIndex,yo=0,mo=function(t){return t.frozen||(t.frozen=new bo)},bo=function(){this.entries=[]},wo=function(t,e){return vo(t.entries,function(t){return t[0]===e})};bo.prototype={get:function(t){var e=wo(this,t);if(e)return e[1]},has:function(t){return!!wo(this,t)},set:function(t,e){var r=wo(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=go(this.entries,function(e){return e[0]===t});return~e&&this.entries.splice(e,1),!!~e}};var So={getConstructor:function(t,e,r,n){var o=t(function(t,i){Br(t,o,e),ho(t,{type:e,id:yo++,frozen:void 0}),null!=i&&Fr(i,t[n],t,r)}),i=po(e),a=function(t,e,r){var n=i(t),o=lo(j(e),!0);return!0===o?mo(n).set(e,r):o[n.id]=r,t};return zr(o.prototype,{delete:function(t){var e=i(this);if(!y(t))return!1;var r=lo(t);return!0===r?mo(e).delete(t):r&&w(r,e.id)&&delete r[e.id]},has:function(t){var e=i(this);if(!y(t))return!1;var r=lo(t);return!0===r?mo(e).has(t):r&&w(r,e.id)}}),zr(o.prototype,r?{get:function(t){var e=i(this);if(y(t)){var r=lo(t);return!0===r?mo(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Eo=e(function(t){var e,r=et.enforce,o=!n.ActiveXObject&&"ActiveXObject"in n,i=Object.isExtensible,a=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},u=t.exports=qr("WeakMap",a,So);if(D&&o){e=So.getConstructor(a,"WeakMap",!0),Cr.REQUIRED=!0;var s=u.prototype,c=s.delete,f=s.has,l=s.get,h=s.set;zr(s,{delete:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),c.call(this,t)||n.frozen.delete(t)}return c.call(this,t)},has:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),f.call(this,t)||n.frozen.has(t)}return f.call(this,t)},get:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),f.call(this,t)?l.call(this,t):n.frozen.get(t)}return l.call(this,t)},set:function(t,n){if(y(t)&&!i(t)){var o=r(this);o.frozen||(o.frozen=new e),f.call(this,t)?h.call(this,t,n):o.frozen.set(t,n)}else h.call(this,t,n);return this}})}}),xo=z("metadata"),Ao=xo.store||(xo.store=new Eo),Oo=function(t,e,r){var n=Ao.get(t);if(!n){if(!r)return;Ao.set(t,n=new Yr)}var o=n.get(e);if(!o){if(!r)return;n.set(e,o=new Yr)}return o},Ro={store:Ao,getMap:Oo,has:function(t,e,r){var n=Oo(e,r,!1);return void 0!==n&&n.has(t)},get:function(t,e,r){var n=Oo(e,r,!1);return void 0===n?void 0:n.get(t)},set:function(t,e,r,n){Oo(r,n,!0).set(t,e)},keys:function(t,e){var r=Oo(t,e,!1),n=[];return r&&r.forEach(function(t,e){n.push(e)}),n},toKey:function(t){return void 0===t||"symbol"==typeof t?t:String(t)}},jo=Ro.toKey,Po=Ro.set;Lt({target:"Reflect",stat:!0},{defineMetadata:function(t,e,r){var n=arguments.length<4?void 0:jo(arguments[3]);Po(t,e,j(r),n)}});var Io=Ro.toKey,To=Ro.getMap,ko=Ro.store;Lt({target:"Reflect",stat:!0},{deleteMetadata:function(t,e){var r=arguments.length<3?void 0:Io(arguments[2]),n=To(j(e),r,!1);if(void 0===n||!n.delete(t))return!1;if(n.size)return!0;var o=ko.get(e);return o.delete(r),!!o.size||ko.delete(e)}});var Lo=Ro.has,Uo=Ro.get,Mo=Ro.toKey,_o=function(t,e,r){if(Lo(t,e,r))return Uo(t,e,r);var n=Ue(e);return null!==n?_o(t,n,r):void 0};Lt({target:"Reflect",stat:!0},{getMetadata:function(t,e){var r=arguments.length<3?void 0:Mo(arguments[2]);return _o(t,j(e),r)}});var No=qr("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Xr),Co=Ro.keys,Fo=Ro.toKey,Bo=function(t,e){var r=Co(t,e),n=Ue(t);if(null===n)return r;var o,i,a=Bo(n,e);return a.length?r.length?(o=new No(r.concat(a)),Fr(o,(i=[]).push,i),i):a:r};Lt({target:"Reflect",stat:!0},{getMetadataKeys:function(t){var e=arguments.length<2?void 0:Fo(arguments[1]);return Bo(j(t),e)}});var Do=Ro.get,qo=Ro.toKey;Lt({target:"Reflect",stat:!0},{getOwnMetadata:function(t,e){var r=arguments.length<3?void 0:qo(arguments[2]);return Do(t,j(e),r)}});var zo=Ro.keys,Wo=Ro.toKey;Lt({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(t){var e=arguments.length<2?void 0:Wo(arguments[1]);return zo(j(t),e)}});var Ko=Ro.has,Go=Ro.toKey,$o=function(t,e,r){if(Ko(t,e,r))return!0;var n=Ue(e);return null!==n&&$o(t,n,r)};Lt({target:"Reflect",stat:!0},{hasMetadata:function(t,e){var r=arguments.length<3?void 0:Go(arguments[2]);return $o(t,j(e),r)}});var Vo=Ro.has,Ho=Ro.toKey;Lt({target:"Reflect",stat:!0},{hasOwnMetadata:function(t,e){var r=arguments.length<3?void 0:Ho(arguments[2]);return Vo(t,j(e),r)}});var Xo=Ro.toKey,Yo=Ro.set;Lt({target:"Reflect",stat:!0},{metadata:function(t,e){return function(r,n){Yo(t,e,j(r),Xo(n))}}});var Jo=qt("match"),Qo=function(t){var e;return y(t)&&(void 0!==(e=t[Jo])?!!e:"RegExp"==h(t))},Zo=function(){var t=j(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function ti(t,e){return RegExp(t,e)}var ei=o(function(){var t=ti("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),ri=o(function(){var t=ti("^r","gy");return t.lastIndex=2,null!=t.exec("str")}),ni={UNSUPPORTED_Y:ei,BROKEN_CARET:ri},oi=I.f,ii=wt.f,ai=et.set,ui=qt("match"),si=n.RegExp,ci=si.prototype,fi=/a/g,li=/a/g,hi=new si(fi)!==fi,pi=ni.UNSUPPORTED_Y;if(i&&Tt("RegExp",!hi||pi||o(function(){return li[ui]=!1,si(fi)!=fi||si(li)==li||"/a/i"!=si(fi,"i")}))){for(var di=function(t,e){var r,n=this instanceof di,o=Qo(t),i=void 0===e;if(!n&&o&&t.constructor===di&&i)return t;hi?o&&!i&&(t=t.source):t instanceof di&&(i&&(e=Zo.call(t)),t=t.source),pi&&(r=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var a=Dr(hi?new si(t,e):si(t,e),n?this:ci,di);return pi&&r&&ai(a,{sticky:r}),a},vi=function(t){t in di||oi(di,t,{configurable:!0,get:function(){return si[t]},set:function(e){si[t]=e}})},gi=ii(si),yi=0;gi.length>yi;)vi(gi[yi++]);ci.constructor=di,di.prototype=ci,rt(n,"RegExp",di)}Kr("RegExp");var mi="toString",bi=RegExp.prototype,wi=bi[mi];(o(function(){return"/a/b"!=wi.call({source:"a",flags:"b"})})||wi.name!=mi)&&rt(RegExp.prototype,mi,function(){var t=j(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in bi)?Zo.call(t):r)},{unsafe:!0});var Si=RegExp.prototype.exec,Ei=String.prototype.replace,xi=Si,Ai=function(){var t=/a/,e=/b*/g;return Si.call(t,"a"),Si.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Oi=ni.UNSUPPORTED_Y||ni.BROKEN_CARET,Ri=void 0!==/()??/.exec("")[1];(Ai||Ri||Oi)&&(xi=function(t){var e,r,n,o,i=this,a=Oi&&i.sticky,u=Zo.call(i),s=i.source,c=0,f=t;return a&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),f=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(s="(?: "+s+")",f=" "+f,c++),r=new RegExp("^(?:"+s+")",u)),Ri&&(r=new RegExp("^"+s+"$(?!\\s)",u)),Ai&&(e=i.lastIndex),n=Si.call(a?r:i,f),a?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:Ai&&n&&(i.lastIndex=i.global?n.index+n[0].length:e),Ri&&n&&n.length>1&&Ei.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n});var ji=xi;Lt({target:"RegExp",proto:!0,forced:/./.exec!==ji},{exec:ji}),i&&("g"!=/./g.flags||ni.UNSUPPORTED_Y)&&I.f(RegExp.prototype,"flags",{configurable:!0,get:Zo});var Pi=et.get,Ii=RegExp.prototype;i&&ni.UNSUPPORTED_Y&&(0,I.f)(RegExp.prototype,"sticky",{configurable:!0,get:function(){if(this!==Ii){if(this instanceof RegExp)return!!Pi(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}});var Ti,ki,Li=(Ti=!1,(ki=/[ac]/).exec=function(){return Ti=!0,/./.exec.apply(this,arguments)},!0===ki.test("abc")&&Ti),Ui=/./.test;Lt({target:"RegExp",proto:!0,forced:!Li},{test:function(t){if("function"!=typeof this.exec)return Ui.call(this,t);var e=this.exec(t);if(null!==e&&!y(e))throw new Error("RegExp exec method returned something other than an Object or null");return!!e}});var Mi=qt("species"),_i=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),Ni="$0"==="a".replace(/./,"$0"),Ci=qt("replace"),Fi=!!/./[Ci]&&""===/./[Ci]("a","$0"),Bi=!o(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),Di=function(t,e,r,n){var i=qt(t),a=!o(function(){var e={};return e[i]=function(){return 7},7!=""[t](e)}),u=a&&!o(function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Mi]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return e=!0,null},r[i](""),!e});if(!a||!u||"replace"===t&&(!_i||!Ni||Fi)||"split"===t&&!Bi){var s=/./[i],c=r(i,""[t],function(t,e,r,n,o){return e.exec===ji?a&&!o?{done:!0,value:s.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}},{REPLACE_KEEPS_$0:Ni,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Fi}),f=c[1];rt(String.prototype,t,c[0]),rt(RegExp.prototype,i,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)})}n&&T(RegExp.prototype[i],"sham",!0)},qi=Ie.charAt,zi=function(t,e,r){return e+(r?qi(t,e).length:1)},Wi=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==h(t))throw TypeError("RegExp#exec called on incompatible receiver");return ji.call(t,e)};Di("match",1,function(t,e,r){return[function(e){var r=v(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=j(t),i=String(this);if(!o.global)return Wi(o,i);var a=o.unicode;o.lastIndex=0;for(var u,s=[],c=0;null!==(u=Wi(o,i));){var f=String(u[0]);s[c]=f,""===f&&(o.lastIndex=zi(i,ft(o.lastIndex),a)),c++}return 0===c?null:s}]});var Ki=Math.max,Gi=Math.min,$i=Math.floor,Vi=/\$([$&'`]|\d\d?|<[^>]*>)/g,Hi=/\$([$&'`]|\d\d?)/g;Di("replace",2,function(t,e,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(r,n){var o=v(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,n):e.call(String(o),r,n)},function(t,n){if(!o&&i||"string"==typeof n&&-1===n.indexOf(a)){var s=r(e,t,this,n);if(s.done)return s.value}var c=j(t),f=String(this),l="function"==typeof n;l||(n=String(n));var h=c.global;if(h){var p=c.unicode;c.lastIndex=0}for(var d=[];;){var v=Wi(c,f);if(null===v)break;if(d.push(v),!h)break;""===String(v[0])&&(c.lastIndex=zi(f,ft(c.lastIndex),p))}for(var g,y="",m=0,b=0;b<d.length;b++){v=d[b];for(var w=String(v[0]),S=Ki(Gi(st(v.index),f.length),0),E=[],x=1;x<v.length;x++)E.push(void 0===(g=v[x])?g:String(g));var A=v.groups;if(l){var O=[w].concat(E,S,f);void 0!==A&&O.push(A);var R=String(n.apply(void 0,O))}else R=u(w,f,S,E,A,n);S>=m&&(y+=f.slice(m,S)+R,m=S+w.length)}return y+f.slice(m)}];function u(t,r,n,o,i,a){var u=n+t.length,s=o.length,c=Hi;return void 0!==i&&(i=Ut(i),c=Vi),e.call(a,c,function(e,a){var c;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,n);case"'":return r.slice(u);case"<":c=i[a.slice(1,-1)];break;default:var f=+a;if(0===f)return e;if(f>s){var l=$i(f/10);return 0===l?e:l<=s?void 0===o[l-1]?a.charAt(1):o[l-1]+a.charAt(1):e}c=o[f-1]}return void 0===c?"":c})}}),Di("search",1,function(t,e,r){return[function(e){var r=v(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=j(t),i=String(this),a=o.lastIndex;Xn(a,0)||(o.lastIndex=0);var u=Wi(o,i);return Xn(o.lastIndex,a)||(o.lastIndex=a),null===u?-1:u.index}]});var Xi=[].push,Yi=Math.min,Ji=4294967295,Qi=!o(function(){return!RegExp(Ji,"y")});Di("split",2,function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=String(v(this)),o=void 0===r?Ji:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!Qo(t))return e.call(n,t,o);for(var i,a,u,s=[],c=0,f=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(i=ji.call(f,n))&&!((a=f.lastIndex)>c&&(s.push(n.slice(c,i.index)),i.length>1&&i.index<n.length&&Xi.apply(s,i.slice(1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===n.length?!u&&f.test("")||s.push(""):s.push(n.slice(c)),s.length>o?s.slice(0,o):s}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var o=v(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(String(o),e,r)},function(t,o){var i=r(n,t,this,o,n!==e);if(i.done)return i.value;var a=j(t),u=String(this),s=hn(a,RegExp),c=a.unicode,f=new s(Qi?a:"^(?:"+a.source+")",(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Qi?"y":"g")),l=void 0===o?Ji:o>>>0;if(0===l)return[];if(0===u.length)return null===Wi(f,u)?[u]:[];for(var h=0,p=0,d=[];p<u.length;){f.lastIndex=Qi?p:0;var v,g=Wi(f,Qi?u:u.slice(p));if(null===g||(v=Yi(ft(f.lastIndex+(Qi?0:p)),u.length))===h)p=zi(u,p,c);else{if(d.push(u.slice(h,p)),d.length===l)return d;for(var y=1;y<=g.length-1;y++)if(d.push(g[y]),d.length===l)return d;p=h=v}}return d.push(u.slice(h)),d}]},!Qi),Lt({target:"Set",stat:!0},{from:an}),Lt({target:"Set",stat:!0},{of:un});var Zi=function(){for(var t=j(this),e=ee(t.add),r=0,n=arguments.length;r<n;r++)e.call(t,arguments[r]);return t};Lt({target:"Set",proto:!0,real:!0,forced:q},{addAll:function(){return Zi.apply(this,arguments)}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{deleteAll:function(){return sn.apply(this,arguments)}});var ta=function(t){return Set.prototype.values.call(t)};Lt({target:"Set",proto:!0,real:!0,forced:q},{every:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return!Fr(r,function(t){if(!n(t,t,e))return Fr.stop()},void 0,!1,!0).stopped}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{difference:function(t){var e=j(this),r=new(hn(e,it("Set")))(e),n=ee(r.delete);return Fr(t,function(t){n.call(r,t)}),r}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{filter:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it("Set"))),i=ee(o.add);return Fr(r,function(t){n(t,t,e)&&i.call(o,t)},void 0,!1,!0),o}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{find:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t){if(n(t,t,e))return Fr.stop(t)},void 0,!1,!0).result}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{intersection:function(t){var e=j(this),r=new(hn(e,it("Set"))),n=ee(e.has),o=ee(r.add);return Fr(t,function(t){n.call(e,t)&&o.call(r,t)}),r}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{isDisjointFrom:function(t){var e=j(this),r=ee(e.has);return!Fr(t,function(t){if(!0===r.call(e,t))return Fr.stop()}).stopped}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{isSubsetOf:function(t){var e=cn(this),r=j(t),n=r.has;return"function"!=typeof n&&(r=new(it("Set"))(t),n=ee(r.has)),!Fr(e,function(t){if(!1===n.call(r,t))return Fr.stop()},void 0,!1,!0).stopped}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{isSupersetOf:function(t){var e=j(this),r=ee(e.has);return!Fr(t,function(t){if(!1===r.call(e,t))return Fr.stop()}).stopped}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{join:function(t){var e=j(this),r=ta(e),n=void 0===t?",":String(t),o=[];return Fr(r,o.push,o,!1,!0),o.join(n)}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{map:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it("Set"))),i=ee(o.add);return Fr(r,function(t){i.call(o,n(t,t,e))},void 0,!1,!0),o}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{reduce:function(t){var e=j(this),r=ta(e),n=arguments.length<2,o=n?void 0:arguments[1];if(ee(t),Fr(r,function(r){n?(n=!1,o=r):o=t(o,r,r,e)},void 0,!1,!0),n)throw TypeError("Reduce of empty set with no initial value");return o}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{some:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t){if(n(t,t,e))return Fr.stop()},void 0,!1,!0).stopped}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{symmetricDifference:function(t){var e=j(this),r=new(hn(e,it("Set")))(e),n=ee(r.delete),o=ee(r.add);return Fr(t,function(t){n.call(r,t)||o.call(r,t)}),r}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{union:function(t){var e=j(this),r=new(hn(e,it("Set")))(e);return Fr(t,ee(r.add),r),r}});var ea,ra,na=it("navigator","userAgent")||"",oa=n.process,ia=oa&&oa.versions,aa=ia&&ia.v8;aa?ra=(ea=aa.split("."))[0]+ea[1]:na&&(!(ea=na.match(/Edge\/(\d+)/))||ea[1]>=74)&&(ea=na.match(/Chrome\/(\d+)/))&&(ra=ea[1]);var ua=ra&&+ra,sa=qt("species"),ca=qt("isConcatSpreadable"),fa=9007199254740991,la="Maximum allowed index exceeded",ha=ua>=51||!o(function(){var t=[];return t[ca]=!1,t.concat()[0]!==t}),pa=ua>=51||!o(function(){var t=[];return(t.constructor={})[sa]=function(){return{foo:1}},1!==t.concat(Boolean).foo}),da=function(t){if(!y(t))return!1;var e=t[ca];return void 0!==e?!!e:ie(t)};Lt({target:"Array",proto:!0,forced:!ha||!pa},{concat:function(t){var e,r,n,o,i,a=Ut(this),u=ue(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(da(i=-1===e?a:arguments[e])){if(s+(o=ft(i.length))>fa)throw TypeError(la);for(r=0;r<o;r++,s++)r in i&&sr(u,s,i[r])}else{if(s>=fa)throw TypeError(la);sr(u,s++,i)}return u.length=s,u}});var va=wt.f,ga={}.toString,ya="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ma={f:function(t){return ya&&"[object Window]"==ga.call(t)?function(t){try{return va(t)}catch(t){return ya.slice()}}(t):va(g(t))}},ba={f:qt},wa=I.f,Sa=function(t){var e=nt.Symbol||(nt.Symbol={});w(e,t)||wa(e,t,{value:ba.f(t)})},Ea=fe.forEach,xa=V("hidden"),Aa="Symbol",Oa="prototype",Ra=qt("toPrimitive"),ja=et.set,Pa=et.getterFor(Aa),Ia=Object[Oa],Ta=n.Symbol,ka=it("JSON","stringify"),La=R.f,Ua=I.f,Ma=ma.f,_a=c.f,Na=z("symbols"),Ca=z("op-symbols"),Fa=z("string-to-symbol-registry"),Ba=z("symbol-to-string-registry"),Da=z("wks"),qa=n.QObject,za=!qa||!qa[Oa]||!qa[Oa].findChild,Wa=i&&o(function(){return 7!=Jt(Ua({},"a",{get:function(){return Ua(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=La(Ia,e);n&&delete Ia[e],Ua(t,e,r),n&&t!==Ia&&Ua(Ia,e,n)}:Ua,Ka=function(t,e){var r=Na[t]=Jt(Ta[Oa]);return ja(r,{type:Aa,tag:t,description:e}),i||(r.description=e),r},Ga=Ct?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Ta},$a=function(t,e,r){t===Ia&&$a(Ca,e,r),j(t);var n=m(e,!0);return j(r),w(Na,n)?(r.enumerable?(w(t,xa)&&t[xa][n]&&(t[xa][n]=!1),r=Jt(r,{enumerable:f(0,!1)})):(w(t,xa)||Ua(t,xa,f(1,{})),t[xa][n]=!0),Wa(t,n,r)):Ua(t,n,r)},Va=function(t,e){j(t);var r=g(e),n=zt(r).concat(Ja(r));return Ea(n,function(e){i&&!Ha.call(r,e)||$a(t,e,r[e])}),t},Ha=function(t){var e=m(t,!0),r=_a.call(this,e);return!(this===Ia&&w(Na,e)&&!w(Ca,e))&&(!(r||!w(this,e)||!w(Na,e)||w(this,xa)&&this[xa][e])||r)},Xa=function(t,e){var r=g(t),n=m(e,!0);if(r!==Ia||!w(Na,n)||w(Ca,n)){var o=La(r,n);return!o||!w(Na,n)||w(r,xa)&&r[xa][n]||(o.enumerable=!0),o}},Ya=function(t){var e=Ma(g(t)),r=[];return Ea(e,function(t){w(Na,t)||w(H,t)||r.push(t)}),r},Ja=function(t){var e=t===Ia,r=Ma(e?Ca:g(t)),n=[];return Ea(r,function(t){!w(Na,t)||e&&!w(Ia,t)||n.push(Na[t])}),n};if(Nt||(Ta=function(){if(this instanceof Ta)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=G(t),r=function(t){this===Ia&&r.call(Ca,t),w(this,xa)&&w(this[xa],e)&&(this[xa][e]=!1),Wa(this,e,f(1,t))};return i&&za&&Wa(Ia,e,{configurable:!0,set:r}),Ka(e,t)},rt(Ta[Oa],"toString",function(){return Pa(this).tag}),rt(Ta,"withoutSetter",function(t){return Ka(G(t),t)}),c.f=Ha,I.f=$a,R.f=Xa,wt.f=ma.f=Ya,St.f=Ja,ba.f=function(t){return Ka(qt(t),t)},i&&(Ua(Ta[Oa],"description",{configurable:!0,get:function(){return Pa(this).description}}),rt(Ia,"propertyIsEnumerable",Ha,{unsafe:!0}))),Lt({global:!0,wrap:!0,forced:!Nt,sham:!Nt},{Symbol:Ta}),Ea(zt(Da),function(t){Sa(t)}),Lt({target:Aa,stat:!0,forced:!Nt},{for:function(t){var e=String(t);if(w(Fa,e))return Fa[e];var r=Ta(e);return Fa[e]=r,Ba[r]=e,r},keyFor:function(t){if(!Ga(t))throw TypeError(t+" is not a symbol");if(w(Ba,t))return Ba[t]},useSetter:function(){za=!0},useSimple:function(){za=!1}}),Lt({target:"Object",stat:!0,forced:!Nt,sham:!i},{create:function(t,e){return void 0===e?Jt(t):Va(Jt(t),e)},defineProperty:$a,defineProperties:Va,getOwnPropertyDescriptor:Xa}),Lt({target:"Object",stat:!0,forced:!Nt},{getOwnPropertyNames:Ya,getOwnPropertySymbols:Ja}),Lt({target:"Object",stat:!0,forced:o(function(){St.f(1)})},{getOwnPropertySymbols:function(t){return St.f(Ut(t))}}),ka){var Qa=!Nt||o(function(){var t=Ta();return"[null]"!=ka([t])||"{}"!=ka({a:t})||"{}"!=ka(Object(t))});Lt({target:"JSON",stat:!0,forced:Qa},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(y(e)||void 0!==t)&&!Ga(t))return ie(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Ga(e))return e}),o[1]=e,ka.apply(null,o)}})}Ta[Oa][Ra]||T(Ta[Oa],Ra,Ta[Oa].valueOf),Be(Ta,Aa),H[xa]=!0,Sa("asyncIterator");var Za=I.f,tu=n.Symbol;if(i&&"function"==typeof tu&&(!("description"in tu.prototype)||void 0!==tu().description)){var eu={},ru=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof ru?new tu(t):void 0===t?tu():tu(t);return""===t&&(eu[e]=!0),e};xt(ru,tu);var nu=ru.prototype=tu.prototype;nu.constructor=ru;var ou=nu.toString,iu="Symbol(test)"==String(tu("test")),au=/^Symbol\((.*)\)[^)]+$/;Za(nu,"description",{configurable:!0,get:function(){var t=y(this)?this.valueOf():this,e=ou.call(t);if(w(eu,t))return"";var r=iu?e.slice(7,-1):e.replace(au,"$1");return""===r?void 0:r}}),Lt({global:!0,forced:!0},{Symbol:ru})}Sa("hasInstance"),Sa("isConcatSpreadable"),Sa("iterator"),Sa("match"),Sa("matchAll"),Sa("replace"),Sa("search"),Sa("species"),Sa("split"),Sa("toPrimitive"),Sa("toStringTag"),Sa("unscopables"),Be(Math,"Math",!0),Be(n.JSON,"JSON",!0),Sa("asyncDispose"),Sa("dispose"),Sa("observable"),Sa("patternMatch"),Sa("replaceAll"),ba.f("asyncIterator");var uu=Ie.codeAt;Lt({target:"String",proto:!0},{codePointAt:function(t){return uu(this,t)}}),oe("String","codePointAt");var su,cu=function(t){if(Qo(t))throw TypeError("The method doesn't accept regular expressions");return t},fu=qt("match"),lu=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[fu]=!1,"/./"[t](e)}catch(t){}}return!1},hu=R.f,pu="".endsWith,du=Math.min,vu=lu("endsWith"),gu=!(vu||(su=hu(String.prototype,"endsWith"),!su||su.writable));Lt({target:"String",proto:!0,forced:!gu&&!vu},{endsWith:function(t){var e=String(v(this));cu(t);var r=arguments.length>1?arguments[1]:void 0,n=ft(e.length),o=void 0===r?n:du(ft(r),n),i=String(t);return pu?pu.call(e,i,o):e.slice(o-i.length,o)===i}}),oe("String","endsWith");var yu=String.fromCharCode,mu=String.fromCodePoint;Lt({target:"String",stat:!0,forced:!!mu&&1!=mu.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,o=0;n>o;){if(e=+arguments[o++],pt(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?yu(e):yu(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}}),Lt({target:"String",proto:!0,forced:!lu("includes")},{includes:function(t){return!!~String(v(this)).indexOf(cu(t),arguments.length>1?arguments[1]:void 0)}}),oe("String","includes");var bu="".repeat||function(t){var e=String(v(this)),r="",n=st(t);if(n<0||Infinity==n)throw RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},wu=Math.ceil,Su=function(t){return function(e,r,n){var o,i,a=String(v(e)),u=a.length,s=void 0===n?" ":String(n),c=ft(r);return c<=u||""==s?a:((i=bu.call(s,wu((o=c-u)/s.length))).length>o&&(i=i.slice(0,o)),t?a+i:i+a)}},Eu={start:Su(!1),end:Su(!0)},xu=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(na),Au=Eu.start;Lt({target:"String",proto:!0,forced:xu},{padStart:function(t){return Au(this,t,arguments.length>1?arguments[1]:void 0)}}),oe("String","padStart");var Ou=Eu.end;Lt({target:"String",proto:!0,forced:xu},{padEnd:function(t){return Ou(this,t,arguments.length>1?arguments[1]:void 0)}}),oe("String","padEnd"),Lt({target:"String",stat:!0},{raw:function(t){for(var e=g(t.raw),r=ft(e.length),n=arguments.length,o=[],i=0;r>i;)o.push(String(e[i++])),i<n&&o.push(String(arguments[i]));return o.join("")}}),Lt({target:"String",proto:!0},{repeat:bu}),oe("String","repeat");var Ru=R.f,ju="".startsWith,Pu=Math.min,Iu=lu("startsWith"),Tu=!Iu&&!!function(){var t=Ru(String.prototype,"startsWith");return t&&!t.writable}();Lt({target:"String",proto:!0,forced:!Tu&&!Iu},{startsWith:function(t){var e=String(v(this));cu(t);var r=ft(Pu(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return ju?ju.call(e,n,r):e.slice(r,r+n.length)===n}}),oe("String","startsWith");var ku=function(t){return o(function(){return!!dn[t]()||"​…᠎"!="​…᠎"[t]()||dn[t].name!==t})},Lu=bn.start,Uu=ku("trimStart"),Mu=Uu?function(){return Lu(this)}:"".trimStart;Lt({target:"String",proto:!0,forced:Uu},{trimStart:Mu,trimLeft:Mu}),oe("String","trimLeft");var _u=bn.end,Nu=ku("trimEnd"),Cu=Nu?function(){return _u(this)}:"".trimEnd;Lt({target:"String",proto:!0,forced:Nu},{trimEnd:Cu,trimRight:Cu}),oe("String","trimRight");var Fu=qt("iterator"),Bu=!o(function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach(function(t,n){e.delete("b"),r+=n+t}),!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Fu]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}),Du=Object.assign,qu=Object.defineProperty,zu=!Du||o(function(){if(i&&1!==Du({b:1},Du(qu({},"a",{enumerable:!0,get:function(){qu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=Du({},t)[r]||zt(Du({},e)).join("")!=n})?function(t,e){for(var r=Ut(t),n=arguments.length,o=1,a=St.f,u=c.f;n>o;)for(var s,f=d(arguments[o++]),l=a?zt(f).concat(a(f)):zt(f),h=l.length,p=0;h>p;)s=l[p++],i&&!u.call(f,s)||(r[s]=f[s]);return r}:Du,Wu=2147483647,Ku=/[^\0-\u007E]/,Gu=/[.\u3002\uFF0E\uFF61]/g,$u="Overflow: input needs wider integers to process",Vu=Math.floor,Hu=String.fromCharCode,Xu=function(t){return t+22+75*(t<26)},Yu=function(t,e,r){var n=0;for(t=r?Vu(t/700):t>>1,t+=Vu(t/e);t>455;n+=36)t=Vu(t/35);return Vu(n+36*t/(t+38))},Ju=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=t.charCodeAt(r++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),r--)}else e.push(o)}return e}(t);var r,n,o=t.length,i=128,a=0,u=72;for(r=0;r<t.length;r++)(n=t[r])<128&&e.push(Hu(n));var s=e.length,c=s;for(s&&e.push("-");c<o;){var f=Wu;for(r=0;r<t.length;r++)(n=t[r])>=i&&n<f&&(f=n);var l=c+1;if(f-i>Vu((Wu-a)/l))throw RangeError($u);for(a+=(f-i)*l,i=f,r=0;r<t.length;r++){if((n=t[r])<i&&++a>Wu)throw RangeError($u);if(n==i){for(var h=a,p=36;;p+=36){var d=p<=u?1:p>=u+26?26:p-u;if(h<d)break;var v=h-d,g=36-d;e.push(Hu(Xu(d+v%g))),h=Vu(v/g)}e.push(Hu(Xu(h))),u=Yu(a,l,c==s),a=0,++c}}++a,++i}return e.join("")},Qu=it("fetch"),Zu=it("Headers"),ts=qt("iterator"),es="URLSearchParams",rs=es+"Iterator",ns=et.set,os=et.getterFor(es),is=et.getterFor(rs),as=/\+/g,us=Array(4),ss=function(t){return us[t-1]||(us[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},cs=function(t){try{return decodeURIComponent(t)}catch(e){return t}},fs=function(t){var e=t.replace(as," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(ss(r--),cs);return e}},ls=/[!'()~]|%20/g,hs={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ps=function(t){return hs[t]},ds=function(t){return encodeURIComponent(t).replace(ls,ps)},vs=function(t,e){if(e)for(var r,n,o=e.split("&"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split("="),t.push({key:fs(n.shift()),value:fs(n.join("="))}))},gs=function(t){this.entries.length=0,vs(this.entries,t)},ys=function(t,e){if(t<e)throw TypeError("Not enough arguments")},ms=We(function(t,e){ns(this,{type:rs,iterator:cn(os(t).entries),kind:e})},"Iterator",function(){var t=is(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r}),bs=function(){Br(this,bs,es);var t,e,r,n,o,i,a,u,s,c=arguments.length>0?arguments[0]:void 0,f=[];if(ns(this,{type:es,entries:f,updateURL:function(){},updateSearchParams:gs}),void 0!==c)if(y(c))if("function"==typeof(t=vr(c)))for(r=(e=t.call(c)).next;!(n=r.call(e)).done;){if((a=(i=(o=cn(j(n.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");f.push({key:a.value+"",value:u.value+""})}else for(s in c)w(c,s)&&f.push({key:s,value:c[s]+""});else vs(f,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},ws=bs.prototype;zr(ws,{append:function(t,e){ys(arguments.length,2);var r=os(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){ys(arguments.length,1);for(var e=os(this),r=e.entries,n=t+"",o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;e.updateURL()},get:function(t){ys(arguments.length,1);for(var e=os(this).entries,r=t+"",n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){ys(arguments.length,1);for(var e=os(this).entries,r=t+"",n=[],o=0;o<e.length;o++)e[o].key===r&&n.push(e[o].value);return n},has:function(t){ys(arguments.length,1);for(var e=os(this).entries,r=t+"",n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){ys(arguments.length,1);for(var r,n=os(this),o=n.entries,i=!1,a=t+"",u=e+"",s=0;s<o.length;s++)(r=o[s]).key===a&&(i?o.splice(s--,1):(i=!0,r.value=u));i||o.push({key:a,value:u}),n.updateURL()},sort:function(){var t,e,r,n=os(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(t=i[r],e=0;e<r;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===r&&o.push(t)}n.updateURL()},forEach:function(t){for(var e,r=os(this).entries,n=re(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new ms(this,"keys")},values:function(){return new ms(this,"values")},entries:function(){return new ms(this,"entries")}},{enumerable:!0}),rt(ws,ts,ws.entries),rt(ws,"toString",function(){for(var t,e=os(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(ds(t.key)+"="+ds(t.value));return r.join("&")},{enumerable:!0}),Be(bs,es),Lt({global:!0,forced:!Bu},{URLSearchParams:bs}),Bu||"function"!=typeof Qu||"function"!=typeof Zu||Lt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,r,n,o=[t];return arguments.length>1&&(y(e=arguments[1])&&pr(r=e.body)===es&&((n=e.headers?new Zu(e.headers):new Zu).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=Jt(e,{body:f(0,String(r)),headers:f(0,n)})),o.push(e)),Qu.apply(this,o)}});var Ss,Es={URLSearchParams:bs,getState:os},xs=Ie.codeAt,As=n.URL,Os=Es.URLSearchParams,Rs=Es.getState,js=et.set,Ps=et.getterFor("URL"),Is=Math.floor,Ts=Math.pow,ks="Invalid scheme",Ls="Invalid host",Us="Invalid port",Ms=/[A-Za-z]/,_s=/[\d+-.A-Za-z]/,Ns=/\d/,Cs=/^(0x|0X)/,Fs=/^[0-7]+$/,Bs=/^\d+$/,Ds=/^[\dA-Fa-f]+$/,qs=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,zs=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,Ws=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Ks=/[\u0009\u000A\u000D]/g,Gs=function(t,e){var r,n,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return Ls;if(!(r=Vs(e.slice(1,-1))))return Ls;t.host=r}else if(ec(t)){if(e=function(t){var e,r,n=[],o=t.toLowerCase().replace(Gu,".").split(".");for(e=0;e<o.length;e++)n.push(Ku.test(r=o[e])?"xn--"+Ju(r):r);return n.join(".")}(e),qs.test(e))return Ls;if(null===(r=$s(e)))return Ls;t.host=r}else{if(zs.test(e))return Ls;for(r="",n=gr(e),o=0;o<n.length;o++)r+=Zs(n[o],Xs);t.host=r}},$s=function(t){var e,r,n,o,i,a,u,s=t.split(".");if(s.length&&""==s[s.length-1]&&s.pop(),(e=s.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=s[n]))return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=Cs.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?Bs:8==i?Fs:Ds).test(o))return t;a=parseInt(o,i)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=Ts(256,5-e))return null}else if(a>255)return null;for(u=r.pop(),n=0;n<r.length;n++)u+=r[n]*Ts(256,3-n);return u},Vs=function(t){var e,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,h=function(){return t.charAt(l)};if(":"==h()){if(":"!=t.charAt(1))return;l+=2,f=++c}for(;h();){if(8==c)return;if(":"!=h()){for(e=r=0;r<4&&Ds.test(h());)e=16*e+parseInt(h(),16),l++,r++;if("."==h()){if(0==r)return;if(l-=r,c>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;l++}if(!Ns.test(h()))return;for(;Ns.test(h());){if(i=parseInt(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}s[c]=256*s[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;s[c++]=e}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!=c&&a>0;)u=s[c],s[c--]=s[f+a-1],s[f+--a]=u;else if(8!=c)return;return s},Hs=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=Is(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},Xs={},Ys=zu({},Xs,{" ":1,'"':1,"<":1,">":1,"`":1}),Js=zu({},Ys,{"#":1,"?":1,"{":1,"}":1}),Qs=zu({},Js,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Zs=function(t,e){var r=xs(t,0);return r>32&&r<127&&!w(e,t)?t:encodeURIComponent(t)},tc={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ec=function(t){return w(tc,t.scheme)},rc=function(t){return""!=t.username||""!=t.password},nc=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},oc=function(t,e){var r;return 2==t.length&&Ms.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},ic=function(t){var e;return t.length>1&&oc(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},ac=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&oc(e[0],!0)||e.pop()},uc=function(t){return"."===t||"%2e"===t.toLowerCase()},sc={},cc={},fc={},lc={},hc={},pc={},dc={},vc={},gc={},yc={},mc={},bc={},wc={},Sc={},Ec={},xc={},Ac={},Oc={},Rc={},jc={},Pc={},Ic=function(t,e,r,n){var o,i,a,u,s,c=r||sc,f=0,l="",h=!1,p=!1,d=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(Ws,"")),e=e.replace(Ks,""),o=gr(e);f<=o.length;){switch(i=o[f],c){case sc:if(!i||!Ms.test(i)){if(r)return ks;c=fc;continue}l+=i.toLowerCase(),c=cc;break;case cc:if(i&&(_s.test(i)||"+"==i||"-"==i||"."==i))l+=i.toLowerCase();else{if(":"!=i){if(r)return ks;l="",c=fc,f=0;continue}if(r&&(ec(t)!=w(tc,l)||"file"==l&&(rc(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=l,r)return void(ec(t)&&tc[t.scheme]==t.port&&(t.port=null));l="","file"==t.scheme?c=Sc:ec(t)&&n&&n.scheme==t.scheme?c=lc:ec(t)?c=vc:"/"==o[f+1]?(c=hc,f++):(t.cannotBeABaseURL=!0,t.path.push(""),c=Rc)}break;case fc:if(!n||n.cannotBeABaseURL&&"#"!=i)return ks;if(n.cannotBeABaseURL&&"#"==i){t.scheme=n.scheme,t.path=n.path.slice(),t.query=n.query,t.fragment="",t.cannotBeABaseURL=!0,c=Pc;break}c="file"==n.scheme?Sc:pc;continue;case lc:if("/"!=i||"/"!=o[f+1]){c=pc;continue}c=gc,f++;break;case hc:if("/"==i){c=yc;break}c=Oc;continue;case pc:if(t.scheme=n.scheme,i==Ss)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query;else if("/"==i||"\\"==i&&ec(t))c=dc;else if("?"==i)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query="",c=jc;else{if("#"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.path.pop(),c=Oc;continue}t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query,t.fragment="",c=Pc}break;case dc:if(!ec(t)||"/"!=i&&"\\"!=i){if("/"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,c=Oc;continue}c=yc}else c=gc;break;case vc:if(c=gc,"/"!=i||"/"!=l.charAt(f+1))continue;f++;break;case gc:if("/"!=i&&"\\"!=i){c=yc;continue}break;case yc:if("@"==i){h&&(l="%40"+l),h=!0,a=gr(l);for(var v=0;v<a.length;v++){var g=a[v];if(":"!=g||d){var y=Zs(g,Qs);d?t.password+=y:t.username+=y}else d=!0}l=""}else if(i==Ss||"/"==i||"?"==i||"#"==i||"\\"==i&&ec(t)){if(h&&""==l)return"Invalid authority";f-=gr(l).length+1,l="",c=mc}else l+=i;break;case mc:case bc:if(r&&"file"==t.scheme){c=xc;continue}if(":"!=i||p){if(i==Ss||"/"==i||"?"==i||"#"==i||"\\"==i&&ec(t)){if(ec(t)&&""==l)return Ls;if(r&&""==l&&(rc(t)||null!==t.port))return;if(u=Gs(t,l))return u;if(l="",c=Ac,r)return;continue}"["==i?p=!0:"]"==i&&(p=!1),l+=i}else{if(""==l)return Ls;if(u=Gs(t,l))return u;if(l="",c=wc,r==bc)return}break;case wc:if(!Ns.test(i)){if(i==Ss||"/"==i||"?"==i||"#"==i||"\\"==i&&ec(t)||r){if(""!=l){var m=parseInt(l,10);if(m>65535)return Us;t.port=ec(t)&&m===tc[t.scheme]?null:m,l=""}if(r)return;c=Ac;continue}return Us}l+=i;break;case Sc:if(t.scheme="file","/"==i||"\\"==i)c=Ec;else{if(!n||"file"!=n.scheme){c=Oc;continue}if(i==Ss)t.host=n.host,t.path=n.path.slice(),t.query=n.query;else if("?"==i)t.host=n.host,t.path=n.path.slice(),t.query="",c=jc;else{if("#"!=i){ic(o.slice(f).join(""))||(t.host=n.host,t.path=n.path.slice(),ac(t)),c=Oc;continue}t.host=n.host,t.path=n.path.slice(),t.query=n.query,t.fragment="",c=Pc}}break;case Ec:if("/"==i||"\\"==i){c=xc;break}n&&"file"==n.scheme&&!ic(o.slice(f).join(""))&&(oc(n.path[0],!0)?t.path.push(n.path[0]):t.host=n.host),c=Oc;continue;case xc:if(i==Ss||"/"==i||"\\"==i||"?"==i||"#"==i){if(!r&&oc(l))c=Oc;else if(""==l){if(t.host="",r)return;c=Ac}else{if(u=Gs(t,l))return u;if("localhost"==t.host&&(t.host=""),r)return;l="",c=Ac}continue}l+=i;break;case Ac:if(ec(t)){if(c=Oc,"/"!=i&&"\\"!=i)continue}else if(r||"?"!=i)if(r||"#"!=i){if(i!=Ss&&(c=Oc,"/"!=i))continue}else t.fragment="",c=Pc;else t.query="",c=jc;break;case Oc:if(i==Ss||"/"==i||"\\"==i&&ec(t)||!r&&("?"==i||"#"==i)){if(".."===(s=(s=l).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(ac(t),"/"==i||"\\"==i&&ec(t)||t.path.push("")):uc(l)?"/"==i||"\\"==i&&ec(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&oc(l)&&(t.host&&(t.host=""),l=l.charAt(0)+":"),t.path.push(l)),l="","file"==t.scheme&&(i==Ss||"?"==i||"#"==i))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==i?(t.query="",c=jc):"#"==i&&(t.fragment="",c=Pc)}else l+=Zs(i,Js);break;case Rc:"?"==i?(t.query="",c=jc):"#"==i?(t.fragment="",c=Pc):i!=Ss&&(t.path[0]+=Zs(i,Xs));break;case jc:r||"#"!=i?i!=Ss&&("'"==i&&ec(t)?t.query+="%27":t.query+="#"==i?"%23":Zs(i,Xs)):(t.fragment="",c=Pc);break;case Pc:i!=Ss&&(t.fragment+=Zs(i,Ys))}f++}},Tc=function(t){var e,r,n=Br(this,Tc,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(t),u=js(n,{type:"URL"});if(void 0!==o)if(o instanceof Tc)e=Ps(o);else if(r=Ic(e={},String(o)))throw TypeError(r);if(r=Ic(u,a,null,e))throw TypeError(r);var s=u.searchParams=new Os,c=Rs(s);c.updateSearchParams(u.query),c.updateURL=function(){u.query=String(s)||null},i||(n.href=Lc.call(n),n.origin=Uc.call(n),n.protocol=Mc.call(n),n.username=_c.call(n),n.password=Nc.call(n),n.host=Cc.call(n),n.hostname=Fc.call(n),n.port=Bc.call(n),n.pathname=Dc.call(n),n.search=qc.call(n),n.searchParams=zc.call(n),n.hash=Wc.call(n))},kc=Tc.prototype,Lc=function(){var t=Ps(this),e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,u=t.query,s=t.fragment,c=e+":";return null!==o?(c+="//",rc(t)&&(c+=r+(n?":"+n:"")+"@"),c+=Hs(o),null!==i&&(c+=":"+i)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},Uc=function(){var t=Ps(this),e=t.scheme,r=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&ec(t)?e+"://"+Hs(t.host)+(null!==r?":"+r:""):"null"},Mc=function(){return Ps(this).scheme+":"},_c=function(){return Ps(this).username},Nc=function(){return Ps(this).password},Cc=function(){var t=Ps(this),e=t.host,r=t.port;return null===e?"":null===r?Hs(e):Hs(e)+":"+r},Fc=function(){var t=Ps(this).host;return null===t?"":Hs(t)},Bc=function(){var t=Ps(this).port;return null===t?"":String(t)},Dc=function(){var t=Ps(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},qc=function(){var t=Ps(this).query;return t?"?"+t:""},zc=function(){return Ps(this).searchParams},Wc=function(){var t=Ps(this).fragment;return t?"#"+t:""},Kc=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(i&&Wt(kc,{href:Kc(Lc,function(t){var e=Ps(this),r=String(t),n=Ic(e,r);if(n)throw TypeError(n);Rs(e.searchParams).updateSearchParams(e.query)}),origin:Kc(Uc),protocol:Kc(Mc,function(t){var e=Ps(this);Ic(e,String(t)+":",sc)}),username:Kc(_c,function(t){var e=Ps(this),r=gr(String(t));if(!nc(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=Zs(r[n],Qs)}}),password:Kc(Nc,function(t){var e=Ps(this),r=gr(String(t));if(!nc(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=Zs(r[n],Qs)}}),host:Kc(Cc,function(t){var e=Ps(this);e.cannotBeABaseURL||Ic(e,String(t),mc)}),hostname:Kc(Fc,function(t){var e=Ps(this);e.cannotBeABaseURL||Ic(e,String(t),bc)}),port:Kc(Bc,function(t){var e=Ps(this);nc(e)||(""==(t=String(t))?e.port=null:Ic(e,t,wc))}),pathname:Kc(Dc,function(t){var e=Ps(this);e.cannotBeABaseURL||(e.path=[],Ic(e,t+"",Ac))}),search:Kc(qc,function(t){var e=Ps(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",Ic(e,t,jc)),Rs(e.searchParams).updateSearchParams(e.query)}),searchParams:Kc(zc),hash:Kc(Wc,function(t){var e=Ps(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",Ic(e,t,Pc)):e.fragment=null})}),rt(kc,"toJSON",function(){return Lc.call(this)},{enumerable:!0}),rt(kc,"toString",function(){return Lc.call(this)},{enumerable:!0}),As){var Gc=As.createObjectURL,$c=As.revokeObjectURL;Gc&&rt(Tc,"createObjectURL",function(t){return Gc.apply(As,arguments)}),$c&&rt(Tc,"revokeObjectURL",function(t){return $c.apply(As,arguments)})}Be(Tc,"URL"),Lt({global:!0,forced:!Bu,sham:!i},{URL:Tc}),Lt({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}}),Lt({target:"WeakMap",stat:!0},{from:an}),Lt({target:"WeakMap",stat:!0},{of:un}),Lt({target:"WeakMap",proto:!0,real:!0,forced:q},{deleteAll:function(){return sn.apply(this,arguments)}}),Lt({target:"WeakMap",proto:!0,real:!0,forced:q},{upsert:pn}),qr("WeakSet",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},So),Lt({target:"WeakSet",proto:!0,real:!0,forced:q},{addAll:function(){return Zi.apply(this,arguments)}}),Lt({target:"WeakSet",proto:!0,real:!0,forced:q},{deleteAll:function(){return sn.apply(this,arguments)}}),Lt({target:"WeakSet",stat:!0},{from:an}),Lt({target:"WeakSet",stat:!0},{of:un});var Vc,Hc,Xc,Yc=n.Promise,Jc=/(iphone|ipod|ipad).*applewebkit/i.test(na),Qc=n.location,Zc=n.setImmediate,tf=n.clearImmediate,ef=n.process,rf=n.MessageChannel,nf=n.Dispatch,of=0,af={},uf="onreadystatechange",sf=function(t){if(af.hasOwnProperty(t)){var e=af[t];delete af[t],e()}},cf=function(t){return function(){sf(t)}},ff=function(t){sf(t.data)},lf=function(t){n.postMessage(t+"",Qc.protocol+"//"+Qc.host)};Zc&&tf||(Zc=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return af[++of]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Vc(of),of},tf=function(t){delete af[t]},"process"==h(ef)?Vc=function(t){ef.nextTick(cf(t))}:nf&&nf.now?Vc=function(t){nf.now(cf(t))}:rf&&!Jc?(Xc=(Hc=new rf).port2,Hc.port1.onmessage=ff,Vc=re(Xc.postMessage,Xc,1)):!n.addEventListener||"function"!=typeof postMessage||n.importScripts||o(lf)||"file:"===Qc.protocol?Vc=uf in x("script")?function(t){Kt.appendChild(x("script"))[uf]=function(){Kt.removeChild(this),sf(t)}}:function(t){setTimeout(cf(t),0)}:(Vc=lf,n.addEventListener("message",ff,!1)));var hf,pf,df,vf,gf,yf,mf,bf,wf={set:Zc,clear:tf},Sf=R.f,Ef=wf.set,xf=n.MutationObserver||n.WebKitMutationObserver,Af=n.process,Of=n.Promise,Rf="process"==h(Af),jf=Sf(n,"queueMicrotask"),Pf=jf&&jf.value;Pf||(hf=function(){var t,e;for(Rf&&(t=Af.domain)&&t.exit();pf;){e=pf.fn,pf=pf.next;try{e()}catch(t){throw pf?vf():df=void 0,t}}df=void 0,t&&t.enter()},Rf?vf=function(){Af.nextTick(hf)}:xf&&!Jc?(gf=!0,yf=document.createTextNode(""),new xf(hf).observe(yf,{characterData:!0}),vf=function(){yf.data=gf=!gf}):Of&&Of.resolve?(mf=Of.resolve(void 0),bf=mf.then,vf=function(){bf.call(mf,hf)}):vf=function(){Ef.call(n,hf)});var If,Tf,kf,Lf,Uf=Pf||function(t){var e={fn:t,next:void 0};df&&(df.next=e),pf||(pf=e,vf()),df=e},Mf=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=ee(e),this.reject=ee(r)},_f={f:function(t){return new Mf(t)}},Nf=function(t,e){if(j(t),y(e)&&e.constructor===t)return e;var r=_f.f(t);return(0,r.resolve)(e),r.promise},Cf=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ff=wf.set,Bf=qt("species"),Df="Promise",qf=et.get,zf=et.set,Wf=et.getterFor(Df),Kf=Yc,Gf=n.TypeError,$f=n.document,Vf=n.process,Hf=it("fetch"),Xf=_f.f,Yf=Xf,Jf="process"==h(Vf),Qf=!!($f&&$f.createEvent&&n.dispatchEvent),Zf="unhandledrejection",tl=Tt(Df,function(){if(F(Kf)===String(Kf)){if(66===ua)return!0;if(!Jf&&"function"!=typeof PromiseRejectionEvent)return!0}if(ua>=51&&/native code/.test(Kf))return!1;var t=Kf.resolve(1),e=function(t){t(function(){},function(){})};return(t.constructor={})[Bf]=e,!(t.then(function(){})instanceof e)}),el=tl||!Sr(function(t){Kf.all(t).catch(function(){})}),rl=function(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e},nl=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;Uf(function(){for(var o=e.value,i=1==e.state,a=0;n.length>a;){var u,s,c,f=n[a++],l=i?f.ok:f.fail,h=f.resolve,p=f.reject,d=f.domain;try{l?(i||(2===e.rejection&&ul(t,e),e.rejection=1),!0===l?u=o:(d&&d.enter(),u=l(o),d&&(d.exit(),c=!0)),u===f.promise?p(Gf("Promise-chain cycle")):(s=rl(u))?s.call(u,h,p):h(u)):p(o)}catch(t){d&&!c&&d.exit(),p(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&il(t,e)})}},ol=function(t,e,r){var o,i;Qf?((o=$f.createEvent("Event")).promise=e,o.reason=r,o.initEvent(t,!1,!0),n.dispatchEvent(o)):o={promise:e,reason:r},(i=n["on"+t])?i(o):t===Zf&&function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},il=function(t,e){Ff.call(n,function(){var r,n=e.value;if(al(e)&&(r=Cf(function(){Jf?Vf.emit("unhandledRejection",n,t):ol(Zf,t,n)}),e.rejection=Jf||al(e)?2:1,r.error))throw r.value})},al=function(t){return 1!==t.rejection&&!t.parent},ul=function(t,e){Ff.call(n,function(){Jf?Vf.emit("rejectionHandled",t):ol("rejectionhandled",t,e.value)})},sl=function(t,e,r,n){return function(o){t(e,r,o,n)}},cl=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,nl(t,e,!0))},fl=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw Gf("Promise can't be resolved itself");var o=rl(r);o?Uf(function(){var n={done:!1};try{o.call(r,sl(fl,t,n,e),sl(cl,t,n,e))}catch(r){cl(t,n,r,e)}}):(e.value=r,e.state=1,nl(t,e,!1))}catch(r){cl(t,{done:!1},r,e)}}};tl&&(Kf=function(t){Br(this,Kf,Df),ee(t),If.call(this);var e=qf(this);try{t(sl(fl,this,e),sl(cl,this,e))}catch(t){cl(this,e,t)}},(If=function(t){zf(this,{type:Df,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=zr(Kf.prototype,{then:function(t,e){var r=Wf(this),n=Xf(hn(this,Kf));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=Jf?Vf.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&nl(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Tf=function(){var t=new If,e=qf(t);this.promise=t,this.resolve=sl(fl,t,e),this.reject=sl(cl,t,e)},_f.f=Xf=function(t){return t===Kf||t===kf?new Tf(t):Yf(t)},"function"==typeof Yc&&(Lf=Yc.prototype.then,rt(Yc.prototype,"then",function(t,e){var r=this;return new Kf(function(t,e){Lf.call(r,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof Hf&&Lt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Nf(Kf,Hf.apply(n,arguments))}}))),Lt({global:!0,wrap:!0,forced:tl},{Promise:Kf}),Be(Kf,Df,!1),Kr(Df),kf=it(Df),Lt({target:Df,stat:!0,forced:tl},{reject:function(t){var e=Xf(this);return e.reject.call(void 0,t),e.promise}}),Lt({target:Df,stat:!0,forced:tl},{resolve:function(t){return Nf(this,t)}}),Lt({target:Df,stat:!0,forced:el},{all:function(t){var e=this,r=Xf(e),n=r.resolve,o=r.reject,i=Cf(function(){var r=ee(e.resolve),i=[],a=0,u=1;Fr(t,function(t){var s=a++,c=!1;i.push(void 0),u++,r.call(e,t).then(function(t){c||(c=!0,i[s]=t,--u||n(i))},o)}),--u||n(i)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Xf(e),n=r.reject,o=Cf(function(){var o=ee(e.resolve);Fr(t,function(t){o.call(e,t).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}}),Lt({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=_f.f(e),n=r.resolve,o=r.reject,i=Cf(function(){var r=ee(e.resolve),o=[],i=0,a=1;Fr(t,function(t){var u=i++,s=!1;o.push(void 0),a++,r.call(e,t).then(function(t){s||(s=!0,o[u]={status:"fulfilled",value:t},--a||n(o))},function(t){s||(s=!0,o[u]={status:"rejected",reason:t},--a||n(o))})}),--a||n(o)});return i.error&&o(i.value),r.promise}});var ll=!!Yc&&o(function(){Yc.prototype.finally.call({then:function(){}},function(){})});Lt({target:"Promise",proto:!0,real:!0,forced:ll},{finally:function(t){var e=hn(this,it("Promise")),r="function"==typeof t;return this.then(r?function(r){return Nf(e,t()).then(function(){return r})}:t,r?function(r){return Nf(e,t()).then(function(){throw r})}:t)}}),"function"!=typeof Yc||Yc.prototype.finally||rt(Yc.prototype,"finally",it("Promise").prototype.finally);var hl=et.set,pl=et.getterFor("AggregateError"),dl=function(t,e){var r=this;if(!(r instanceof dl))return new dl(t,e);Ge&&(r=Ge(new Error(e),Ue(r)));var n=[];return Fr(t,n.push,n),i?hl(r,{errors:n,type:"AggregateError"}):r.errors=n,void 0!==e&&T(r,"message",String(e)),r};dl.prototype=Jt(Error.prototype,{constructor:f(5,dl),message:f(5,""),name:f(5,"AggregateError")}),i&&I.f(dl.prototype,"errors",{get:function(){return pl(this).errors},configurable:!0}),Lt({global:!0},{AggregateError:dl}),Lt({target:"Promise",stat:!0},{try:function(t){var e=_f.f(this),r=Cf(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}});var vl="No one promise resolved";Lt({target:"Promise",stat:!0},{any:function(t){var e=this,r=_f.f(e),n=r.resolve,o=r.reject,i=Cf(function(){var r=ee(e.resolve),i=[],a=0,u=1,s=!1;Fr(t,function(t){var c=a++,f=!1;i.push(void 0),u++,r.call(e,t).then(function(t){f||s||(s=!0,n(t))},function(t){f||s||(f=!0,i[c]=t,--u||o(new(it("AggregateError"))(i,vl)))})}),--u||o(new(it("AggregateError"))(i,vl))});return i.error&&o(i.value),r.promise}}),oe("Promise","finally");var gl="URLSearchParams"in self,yl="Symbol"in self&&"iterator"in Symbol,ml="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),bl="FormData"in self,wl="ArrayBuffer"in self;if(wl)var Sl=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],El=ArrayBuffer.isView||function(t){return t&&Sl.indexOf(Object.prototype.toString.call(t))>-1};function xl(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function Al(t){return"string"!=typeof t&&(t=String(t)),t}function Ol(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return yl&&(e[Symbol.iterator]=function(){return e}),e}function Rl(t){this.map={},t instanceof Rl?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function jl(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function Pl(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function Il(t){var e=new FileReader,r=Pl(e);return e.readAsArrayBuffer(t),r}function Tl(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function kl(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:ml&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:bl&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:gl&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():wl&&ml&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=Tl(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):wl&&(ArrayBuffer.prototype.isPrototypeOf(t)||El(t))?this._bodyArrayBuffer=Tl(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):gl&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ml&&(this.blob=function(){var t=jl(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?jl(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Il)}),this.text=function(){var t=jl(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=Pl(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},bl&&(this.formData=function(){return this.text().then(Ml)}),this.json=function(){return this.text().then(JSON.parse)},this}Rl.prototype.append=function(t,e){t=xl(t),e=Al(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},Rl.prototype.delete=function(t){delete this.map[xl(t)]},Rl.prototype.get=function(t){return t=xl(t),this.has(t)?this.map[t]:null},Rl.prototype.has=function(t){return this.map.hasOwnProperty(xl(t))},Rl.prototype.set=function(t,e){this.map[xl(t)]=Al(e)},Rl.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},Rl.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),Ol(t)},Rl.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Ol(t)},Rl.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),Ol(t)},yl&&(Rl.prototype[Symbol.iterator]=Rl.prototype.entries);var Ll=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Ul(t,e){var r,n,o=(e=e||{}).body;if(t instanceof Ul){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Rl(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new Rl(e.headers)),this.method=(n=(r=e.method||this.method||"GET").toUpperCase(),Ll.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function Ml(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function _l(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new Rl(e.headers),this.url=e.url||"",this._initBody(t)}Ul.prototype.clone=function(){return new Ul(this,{body:this._bodyInit})},kl.call(Ul.prototype),kl.call(_l.prototype),_l.prototype.clone=function(){return new _l(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Rl(this.headers),url:this.url})},_l.error=function(){var t=new _l(null,{status:0,statusText:""});return t.type="error",t};var Nl=[301,302,303,307,308];_l.redirect=function(t,e){if(-1===Nl.indexOf(e))throw new RangeError("Invalid status code");return new _l(null,{status:e,headers:{location:t}})};var Cl=self.DOMException;try{new Cl}catch(t){(Cl=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),Cl.prototype.constructor=Cl}function Fl(t,e){return new Promise(function(r,n){var o=new Ul(t,e);if(o.signal&&o.signal.aborted)return n(new Cl("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var t,e,n={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new Rl,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}}),e)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL"),r(new _l("response"in i?i.response:i.responseText,n))},i.onerror=function(){n(new TypeError("Network request failed"))},i.ontimeout=function(){n(new TypeError("Network request failed"))},i.onabort=function(){n(new Cl("Aborted","AbortError"))},i.open(o.method,o.url,!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&ml&&(i.responseType="blob"),o.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})}Fl.polyfill=!0,self.fetch||(self.fetch=Fl,self.Headers=Rl,self.Request=Ul,self.Response=_l);var Bl=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,ql=Object.prototype.propertyIsEnumerable,zl=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,o=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))Dl.call(r,a)&&(o[a]=r[a]);if(Bl){n=Bl(r);for(var u=0;u<n.length;u++)ql.call(r,n[u])&&(o[n[u]]=r[n[u]])}}return o};Object.assign=zl}();
_next/static/chunks/webpack-c511210a6eab1a58.js ADDED
@@ -0,0 +1 @@
 
 
1
+ !function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},l={};function s(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}},r=!0;try{a[e](n,n.exports,s),r=!1}finally{r&&delete l[e]}return n.exports}s.m=a,e=[],s.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u<e.length;u++){for(var n=e[u][0],r=e[u][1],o=e[u][2],c=!0,f=0;f<n.length;f++)i>=o&&Object.keys(s.O).every(function(e){return s.O[e](n[f])})?n.splice(f--,1):(c=!1,o<i&&(i=o));if(c){e.splice(u--,1);var a=r();void 0!==a&&(t=a)}}return t},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},s.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var o=Object.create(null);s.r(o);var u={};t=t||[null,n({}),n([]),n(n)];for(var i=2&r&&e;"object"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},s.d(o,u),o},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce(function(t,n){return s.f[n](e,t),t},[]))},s.u=function(e){return"static/chunks/"+e+".34b698d3db09a44a.js"},s.miniCssF=function(e){},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="_N_E:",s.l=function(e,t,n,u){if(r[e]){r[e].push(t);return}if(void 0!==n)for(var i,c,f=document.getElementsByTagName("script"),a=0;a<f.length;a++){var l=f[a];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==o+n){i=l;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",o+n),i.src=s.tu(e)),r[e]=[t];var d=function(t,n){i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(n)}),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.tt=function(){return void 0===u&&(u={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(u=trustedTypes.createPolicy("nextjs#bundler",u))),u},s.tu=function(e){return s.tt().createScriptURL(e)},s.p="/_next/",s.b=document.baseURI||self.location.href,i={272:0,33:0},s.f.j=function(e,t){var n=s.o(i,e)?i[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(/^(272|33)$/.test(e))i[e]=0;else{var r=new Promise(function(t,r){n=i[e]=[t,r]});t.push(n[2]=r);var o=s.p+s.u(e),u=Error();s.l(o,function(t){if(s.o(i,e)&&(0!==(n=i[e])&&(i[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",u.name="ChunkLoadError",u.type=r,u.request=o,n[1](u)}},"chunk-"+e,e)}}},s.O.j=function(e){return 0===i[e]},c=function(e,t){var n,r,o=t[0],u=t[1],c=t[2],f=0;if(o.some(function(e){return 0!==i[e]})){for(n in u)s.o(u,n)&&(s.m[n]=u[n]);if(c)var a=c(s)}for(e&&e(t);f<o.length;f++)r=o[f],s.o(i,r)&&i[r]&&i[r][0](),i[r]=0;return s.O(a)},(f=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(c.bind(null,0)),f.push=c.bind(null,f.push.bind(f)),s.nc=void 0}();
_next/static/css/c07dfed9e589ce2b.css ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/sS3KCrv4R0AkB6q5rvqSN/_buildManifest.js ADDED
@@ -0,0 +1 @@
 
 
1
+ self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-1be831200e60c5c0.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
_next/static/sS3KCrv4R0AkB6q5rvqSN/_ssgManifest.js ADDED
@@ -0,0 +1 @@
 
 
1
+ self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
favicon.ico ADDED
icons/android-icon-192x192.png ADDED
icons/android-icon-512x512.png ADDED
icons/apple-icon-16x16.png ADDED
icons/apple-icon-32x32.png ADDED
icons/apple-icon.png ADDED
icons/safari-pinned-tab.svg ADDED
icons/share.png ADDED
index.html CHANGED
@@ -1,19 +1,134 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/c07dfed9e589ce2b.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-c511210a6eab1a58.js"/><script src="/_next/static/chunks/fd9d1056-ee32f1bf30eb3d3f.js" async=""></script><script src="/_next/static/chunks/190-8c3f29b77c1f7978.js" async=""></script><script src="/_next/static/chunks/main-app-5420370b676a56f3.js" async=""></script><script src="/_next/static/chunks/946-310f6d0c4f8124d5.js" async=""></script><script src="/_next/static/chunks/423-06102cf1584a8fa3.js" async=""></script><script src="/_next/static/chunks/app/page-d8efbd597c53f3cc.js" async=""></script><script src="/_next/static/chunks/123-a6d2101f21b1dc81.js" async=""></script><script src="/_next/static/chunks/app/layout-0e0c053c92ad2f81.js" async=""></script><title>Translator demo app built with Transformers.js + Tamagui + Next.js</title><meta name="description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta name="application-name" content="Translator Demo"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><meta name="keywords" content="Translator,Transformers.js,Next.js,Tamagui"/><meta name="format-detection" content="telephone=no"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><meta property="og:title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta property="og:description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta property="og:url" content="https://hf.co/spaces/huuquyet/translator-tamagui/"/><meta property="og:site_name" content="Translator Demo"/><meta property="og:image" content="https://${process.env.vercel_url}/icon/share.png"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta name="twitter:site" content="@HuuQuyetNg"/><meta name="twitter:title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta name="twitter:description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta name="twitter:image" content="https://${process.env.vercel_url}/icon/share.png"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script><style>:root ._dsp-flex{display:flex;}
2
+ :root ._ai-center{align-items:center;}
3
+ :root ._fd-column{flex-direction:column;}
4
+ :root ._fb-auto{flex-basis:auto;}
5
+ :root ._bxs-border-box{box-sizing:border-box;}
6
+ :root ._pos-relative{position:relative;}
7
+ :root ._mih-0px{min-height:0px;}
8
+ :root ._miw-0px{min-width:0px;}
9
+ :root ._fs-1{flex-shrink:1;}
10
+ :root ._fg-1{flex-grow:1;}
11
+ :root ._h-100vh{height:100vh;}
12
+ :root ._jc-center{justify-content:center;}
13
+ :root ._pt-1316330145{padding-top:var(--space-11);}
14
+ :root ._pr-1316330145{padding-right:var(--space-11);}
15
+ :root ._pb-1316330145{padding-bottom:var(--space-11);}
16
+ :root ._pl-1316330145{padding-left:var(--space-11);}
17
+ :root ._gap-1316330145{gap:var(--space-11);}
18
+ :root ._ai-stretch{align-items:stretch;}
19
+ :root ._fs-0{flex-shrink:0;}
20
+ :root ._col-675002279{color:var(--color);}
21
+ :root ._tt-1440318557{text-transform:var(--f-tr-10);}
22
+ :root ._ff-299667014{font-family:var(--f-fa);}
23
+ :root ._fow-1366436877{font-weight:var(--f-we-10);}
24
+ :root ._ls-905095908{letter-spacing:var(--f-21-10);}
25
+ :root ._fos-1477259397{font-size:var(--f-si-10);}
26
+ :root ._lh-1677663454{line-height:var(--f-li-10);}
27
+ :root ._dsp-inline{display:inline;}
28
+ :root ._ww-break-word{word-wrap:break-word;}
29
+ :root ._whiteSpace-normal{white-space:normal;}
30
+ :root ._mt-0px{margin-top:0px;}
31
+ :root ._mr-0px{margin-right:0px;}
32
+ :root ._mb-0px{margin-bottom:0px;}
33
+ :root ._ml-0px{margin-left:0px;}
34
+ :root ._ussel-auto{user-select:auto;-webkit-user-select:auto;}
35
+ :root ._ta-center{text-align:center;}
36
+ :root ._fow-233016140{font-weight:var(--f-we-4);}
37
+ :root ._ls-167744059{letter-spacing:var(--f-21-4);}
38
+ :root ._fos-229441220{font-size:var(--f-si-4);}
39
+ :root ._lh-222976573{line-height:var(--f-li-4);}
40
+ :root ._btc-2122800589{border-top-color:var(--borderColor);}
41
+ :root ._brc-2122800589{border-right-color:var(--borderColor);}
42
+ :root ._bbc-2122800589{border-bottom-color:var(--borderColor);}
43
+ :root ._blc-2122800589{border-left-color:var(--borderColor);}
44
+ :root ._btw-0px{border-top-width:0px;}
45
+ :root ._brw-0px{border-right-width:0px;}
46
+ :root ._bbw-1px{border-bottom-width:1px;}
47
+ :root ._blw-0px{border-left-width:0px;}
48
+ :root ._h-0px{height:0px;}
49
+ :root ._mah-0px{max-height:0px;}
50
+ :root ._bbs-solid{border-bottom-style:solid;}
51
+ :root ._bts-solid{border-top-style:solid;}
52
+ :root ._bls-solid{border-left-style:solid;}
53
+ :root ._brs-solid{border-right-style:solid;}
54
+ :root ._transform-d0t1394298074{transform:translateY(-0.5px);}
55
+ :root ._fd-row{flex-direction:row;}
56
+ :root ._gap-true{gap:true;}
57
+ @media (hover) {:root ._bg-0hover-513675900:hover{background-color:var(--backgroundHover) !important;}}
58
+ @media (hover) {:root ._btc-0hover-1394778429:hover{border-top-color:var(--borderColorHover) !important;}}
59
+ @media (hover) {:root ._brc-0hover-1394778429:hover{border-right-color:var(--borderColorHover) !important;}}
60
+ @media (hover) {:root ._bbc-0hover-1394778429:hover{border-bottom-color:var(--borderColorHover) !important;}}
61
+ @media (hover) {:root ._blc-0hover-1394778429:hover{border-left-color:var(--borderColorHover) !important;}}
62
+ :root:root ._bg-0active-744986709:active{background-color:var(--backgroundPress) !important;}
63
+ :root:root ._btc-0active-1163467620:active{border-top-color:var(--borderColorPress) !important;}
64
+ :root:root ._brc-0active-1163467620:active{border-right-color:var(--borderColorPress) !important;}
65
+ :root:root ._bbc-0active-1163467620:active{border-bottom-color:var(--borderColorPress) !important;}
66
+ :root:root ._blc-0active-1163467620:active{border-left-color:var(--borderColorPress) !important;}
67
+ :root:root:root ._outlineStyle-0focus-visible-solid:focus-visible{outline-style:solid !important;}
68
+ :root:root:root ._outlineWidth-0focus-visible-2px:focus-visible{outline-width:2px !important;}
69
+ :root:root:root ._outlineColor-0focus-visible-834034279:focus-visible{outline-color:var(--outlineColor) !important;}
70
+ :root ._mih-1611761790{min-height:var(--size-11);}
71
+ :root ._pt-1481558214{padding-top:var(--space-7);}
72
+ :root ._pb-1481558214{padding-bottom:var(--space-7);}
73
+ :root ._jc-441309761{justify-content:space-between;}
74
+ :root ._fw-nowrap{flex-wrap:nowrap;}
75
+ :root ._w-10037{width:100%;}
76
+ :root ._maw-10037{max-width:100%;}
77
+ :root ._ox-hidden{overflow-x:hidden;}
78
+ :root ._oy-hidden{overflow-y:hidden;}
79
+ :root ._bg-1633501478{background-color:var(--background);}
80
+ :root ._btlr-1881200812{border-top-left-radius:var(--radius-14);}
81
+ :root ._btrr-1881200812{border-top-right-radius:var(--radius-14);}
82
+ :root ._bbrr-1881200812{border-bottom-right-radius:var(--radius-14);}
83
+ :root ._bblr-1881200812{border-bottom-left-radius:var(--radius-14);}
84
+ :root ._cur-pointer{cursor:pointer;}
85
+ :root ._btw-1px{border-top-width:1px;}
86
+ :root ._brw-1px{border-right-width:1px;}
87
+ :root ._blw-1px{border-left-width:1px;}
88
+ :root ._whiteSpace-nowrap{white-space:nowrap;}
89
+ :root ._ussel-none{user-select:none;-webkit-user-select:none;}
90
+ :root ._textOverflow-ellipsis{text-overflow:ellipsis;}
91
+ :root ._pe-none{pointer-events:none !important;}
92
+ :root ._mih-14px{min-height:14px;}
93
+ :root ._miw-14px{min-width:14px;}
94
+ :root ._w-14px{width:14px;}
95
+ :root ._h-14px{height:14px;}
96
+ :root:root:root ._btc-0focus-1452587353:focus{border-top-color:var(--borderColorFocus) !important;}
97
+ :root:root:root ._brc-0focus-1452587353:focus{border-right-color:var(--borderColorFocus) !important;}
98
+ :root:root:root ._bbc-0focus-1452587353:focus{border-bottom-color:var(--borderColorFocus) !important;}
99
+ :root:root:root ._blc-0focus-1452587353:focus{border-left-color:var(--borderColorFocus) !important;}
100
+ :root ._pr-1316330114{padding-right:var(--space-10);}
101
+ :root ._pl-1316330114{padding-left:var(--space-10);}
102
+ :root ._h-92px{height:92px;}
103
+ :root ._btlr-1307609998{border-top-left-radius:var(--radius-5);}
104
+ :root ._btrr-1307609998{border-top-right-radius:var(--radius-5);}
105
+ :root ._bbrr-1307609998{border-bottom-right-radius:var(--radius-5);}
106
+ :root ._bblr-1307609998{border-bottom-left-radius:var(--radius-5);}
107
+ :root ._pt-1481558152{padding-top:var(--space-9);}
108
+ :root ._pb-1481558152{padding-bottom:var(--space-9);}
109
+ :root ._outlineWidth-0px{outline-width:0px;}
110
+ :root ._whiteSpace-pre-wrap{white-space:pre-wrap;}
111
+ :root ._pr-1316330176{padding-right:var(--space-12);}
112
+ :root ._pl-1316330176{padding-left:var(--space-12);}
113
+ :root ._h-1611761821{height:var(--size-12);}
114
+ :root ._btc-1726194350{border-top-color:transparent;}
115
+ :root ._brc-1726194350{border-right-color:transparent;}
116
+ :root ._bbc-1726194350{border-bottom-color:transparent;}
117
+ :root ._blc-1726194350{border-left-color:transparent;}
118
+ :root ._fg-0{flex-grow:0;}
119
+ :root ._mih-1611761821{min-height:var(--size-12);}
120
+ :root ._miw-1611761821{min-width:var(--size-12);}
121
+ :root ._btlr-100000px{border-top-left-radius:100000px;}
122
+ :root ._btrr-100000px{border-top-right-radius:100000px;}
123
+ :root ._bbrr-100000px{border-bottom-right-radius:100000px;}
124
+ :root ._bblr-100000px{border-bottom-left-radius:100000px;}
125
+ :root ._pt-0px{padding-top:0px;}
126
+ :root ._pr-0px{padding-right:0px;}
127
+ :root ._pb-0px{padding-bottom:0px;}
128
+ :root ._pl-0px{padding-left:0px;}
129
+ :root ._w-1611761821{width:var(--size-12);}
130
+ :root ._maw-1611761821{max-width:var(--size-12);}
131
+ :root ._mah-1611761821{max-height:var(--size-12);}
132
+ :root ._pos-absolute{position:absolute;}
133
+ :root ._b-30px{bottom:30px;}
134
+ :root ._l-20px{left:20px;}</style></head><body><span class="t_light is_inversed _dsp_contents"><span class=" t_light _dsp_contents is_Theme" style="color:var(--color)"><div class="_dsp-flex _ai-center _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-1 _fg-1 _h-100vh _jc-center _pt-1316330145 _pr-1316330145 _pb-1316330145 _pl-1316330145 _gap-1316330145"><div class="_dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0 _gap-1316330145 _jc-center"><h1 role="heading" class="is_H1 font_heading _col-675002279 _tt-1440318557 _ff-299667014 _fow-1366436877 _ls-905095908 _fos-1477259397 _lh-1677663454 _dsp-inline _bxs-border-box _ww-break-word _whiteSpace-normal _mt-0px _mr-0px _mb-0px _ml-0px _ussel-auto _ta-center">Transformers.js + Tamagui</h1><p class="is_Paragraph font_body _col-675002279 _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _dsp-inline _bxs-border-box _ww-break-word _whiteSpace-normal _mt-0px _mr-0px _mb-0px _ml-0px _ussel-auto _ta-center">ML-powered multilingual translation in React!</p></div><div class="is_Separator _dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-1 _btc-2122800589 _brc-2122800589 _bbc-2122800589 _blc-2122800589 _btw-0px _brw-0px _bbw-1px _blw-0px _fg-1 _h-0px _mah-0px _bbs-solid _bts-solid _bls-solid _brs-solid _transform-d0t1394298074"></div><div class="_dsp-flex _ai-stretch _fd-row _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0 _gap-1316330145"><div class="_dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0 _gap-true"><div class="_dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0"><p class="is_Paragraph font_body _col-675002279 _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _dsp-inline _bxs-border-box _ww-break-word _whiteSpace-normal _mt-0px _mr-0px _mb-0px _ml-0px _ussel-auto">Source<!-- -->: </p><span class="t_sub_theme t_SelectTrigger _dsp_contents is_Theme" style="color:var(--color)"><button aria-expanded="false" aria-autocomplete="none" aria-haspopup="listbox" role="combobox" data-disable-theme="true" tabindex="0" class="is_ListItem _bg-0hover-513675900 _btc-0hover-1394778429 _brc-0hover-1394778429 _bbc-0hover-1394778429 _blc-0hover-1394778429 _bg-0active-744986709 _btc-0active-1163467620 _brc-0active-1163467620 _bbc-0active-1163467620 _blc-0active-1163467620 _outlineStyle-0focus-visible-solid _outlineWidth-0focus-visible-2px _outlineColor-0focus-visible-834034279 _dsp-flex _ai-center _fd-row _fb-auto _bxs-border-box _pos-relative _mih-1611761790 _miw-0px _fs-0 _pr-1316330145 _pl-1316330145 _pt-1481558214 _pb-1481558214 _jc-441309761 _fw-nowrap _w-10037 _btc-2122800589 _brc-2122800589 _bbc-2122800589 _blc-2122800589 _maw-10037 _ox-hidden _oy-hidden _bg-1633501478 _btlr-1881200812 _btrr-1881200812 _bbrr-1881200812 _bblr-1881200812 _cur-pointer _btw-1px _brw-1px _bbw-1px _blw-1px _bts-solid _brs-solid _bbs-solid _bls-solid SelectTrigger"><span data-disable-theme="true" class="is_SelectValue font_body _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _dsp-inline _bxs-border-box _ww-break-word _whiteSpace-nowrap _mt-0px _mr-0px _mb-0px _ml-0px _col-675002279 _ussel-none _maw-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis _pe-none"></span><span class="is_Spacer _dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-14px _miw-14px _fs-0 _pe-none _w-14px _h-14px"></span><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="var(--color)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="font_unset "><path d="m6 9 6 6 6-6" stroke="var(--color)"></path></svg></button></span></div><span class="t_sub_theme t_TextArea _dsp_contents is_Theme" style="color:var(--color)"><span class="_dsp_contents"><textarea rows="4" autoCapitalize="sentences" autoComplete="on" autoCorrect="on" dir="auto" spellCheck="true" tabindex="0" class="css-11aywtz r-6taxm2 is_TextArea font_body _btc-0hover-1394778429 _brc-0hover-1394778429 _bbc-0hover-1394778429 _blc-0hover-1394778429 _btc-0focus-1452587353 _brc-0focus-1452587353 _bbc-0focus-1452587353 _blc-0focus-1452587353 _outlineColor-0focus-visible-834034279 _outlineWidth-0focus-visible-2px _outlineStyle-0focus-visible-solid _pr-1316330114 _pl-1316330114 _h-92px _btlr-1307609998 _btrr-1307609998 _bbrr-1307609998 _bblr-1307609998 _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _pt-1481558152 _pb-1481558152 _btw-1px _brw-1px _bbw-1px _blw-1px _outlineWidth-0px _col-675002279 _btc-2122800589 _brc-2122800589 _bbc-2122800589 _blc-2122800589 _bg-1633501478 _miw-0px _bbs-solid _bts-solid _bls-solid _brs-solid _whiteSpace-pre-wrap" style="--placeholderTextColor:var(--placeholderColor)">Tôi yêu Việt Nam quê hương tôi.</textarea></span></span></div><div class="_dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0 _gap-true"><div class="_dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0"><p class="is_Paragraph font_body _col-675002279 _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _dsp-inline _bxs-border-box _ww-break-word _whiteSpace-normal _mt-0px _mr-0px _mb-0px _ml-0px _ussel-auto">Target<!-- -->: </p><span class="t_sub_theme t_SelectTrigger _dsp_contents is_Theme" style="color:var(--color)"><button aria-expanded="false" aria-autocomplete="none" aria-haspopup="listbox" role="combobox" data-disable-theme="true" tabindex="0" class="is_ListItem _bg-0hover-513675900 _btc-0hover-1394778429 _brc-0hover-1394778429 _bbc-0hover-1394778429 _blc-0hover-1394778429 _bg-0active-744986709 _btc-0active-1163467620 _brc-0active-1163467620 _bbc-0active-1163467620 _blc-0active-1163467620 _outlineStyle-0focus-visible-solid _outlineWidth-0focus-visible-2px _outlineColor-0focus-visible-834034279 _dsp-flex _ai-center _fd-row _fb-auto _bxs-border-box _pos-relative _mih-1611761790 _miw-0px _fs-0 _pr-1316330145 _pl-1316330145 _pt-1481558214 _pb-1481558214 _jc-441309761 _fw-nowrap _w-10037 _btc-2122800589 _brc-2122800589 _bbc-2122800589 _blc-2122800589 _maw-10037 _ox-hidden _oy-hidden _bg-1633501478 _btlr-1881200812 _btrr-1881200812 _bbrr-1881200812 _bblr-1881200812 _cur-pointer _btw-1px _brw-1px _bbw-1px _blw-1px _bts-solid _brs-solid _bbs-solid _bls-solid SelectTrigger"><span data-disable-theme="true" class="is_SelectValue font_body _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _dsp-inline _bxs-border-box _ww-break-word _whiteSpace-nowrap _mt-0px _mr-0px _mb-0px _ml-0px _col-675002279 _ussel-none _maw-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis _pe-none"></span><span class="is_Spacer _dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-14px _miw-14px _fs-0 _pe-none _w-14px _h-14px"></span><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="var(--color)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="font_unset "><path d="m6 9 6 6 6-6" stroke="var(--color)"></path></svg></button></span></div><span class="t_sub_theme t_TextArea _dsp_contents is_Theme" style="color:var(--color)"><span class="_dsp_contents"><textarea rows="4" readOnly="" autoCapitalize="sentences" autoComplete="on" autoCorrect="on" dir="auto" spellCheck="true" tabindex="0" class="css-11aywtz r-6taxm2 is_TextArea font_body _btc-0hover-1394778429 _brc-0hover-1394778429 _bbc-0hover-1394778429 _blc-0hover-1394778429 _btc-0focus-1452587353 _brc-0focus-1452587353 _bbc-0focus-1452587353 _blc-0focus-1452587353 _outlineColor-0focus-visible-834034279 _outlineWidth-0focus-visible-2px _outlineStyle-0focus-visible-solid _pr-1316330114 _pl-1316330114 _h-92px _btlr-1307609998 _btrr-1307609998 _bbrr-1307609998 _bblr-1307609998 _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _pt-1481558152 _pb-1481558152 _btw-1px _brw-1px _bbw-1px _blw-1px _outlineWidth-0px _col-675002279 _btc-2122800589 _brc-2122800589 _bbc-2122800589 _blc-2122800589 _bg-1633501478 _miw-0px _bbs-solid _bts-solid _bls-solid _brs-solid _whiteSpace-pre-wrap" style="--placeholderTextColor:var(--placeholderColor)"></textarea></span></span></div></div><span class="t_sub_theme t_Button _dsp_contents is_Theme" style="color:var(--color)"><button role="button" data-disable-theme="true" tabindex="0" class="is_Button _bg-0hover-513675900 _btc-0hover-1394778429 _brc-0hover-1394778429 _bbc-0hover-1394778429 _blc-0hover-1394778429 _bg-0active-744986709 _btc-0active-1163467620 _brc-0active-1163467620 _bbc-0active-1163467620 _blc-0active-1163467620 _outlineColor-0focus-visible-834034279 _outlineStyle-0focus-visible-solid _outlineWidth-0focus-visible-2px _dsp-flex _ai-center _fd-row _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0 _pr-1316330176 _pl-1316330176 _h-1611761821 _btlr-1881200812 _btrr-1881200812 _bbrr-1881200812 _bblr-1881200812 _jc-center _fw-nowrap _cur-pointer _bg-1633501478 _btw-1px _brw-1px _bbw-1px _blw-1px _btc-1726194350 _brc-1726194350 _bbc-1726194350 _blc-1726194350 _bbs-solid _bts-solid _bls-solid _brs-solid"><span class="t_sub_theme t_Button _dsp_contents is_Theme" style="color:var(--color)"><span class="is_Button font_body _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _dsp-inline _bxs-border-box _ww-break-word _whiteSpace-nowrap _mt-0px _mr-0px _mb-0px _ml-0px _col-675002279 _ussel-none _cur-pointer _fg-0 _fs-1 _maw-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis">Translate</span></span></button></span><div class="_dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0 _gap-true"></div><span class="t_sub_theme t_Button _dsp_contents is_Theme" style="color:var(--color)"><button role="button" data-disable-theme="true" tabindex="0" class="is_Button _bg-0hover-513675900 _btc-0hover-1394778429 _brc-0hover-1394778429 _bbc-0hover-1394778429 _blc-0hover-1394778429 _bg-0active-744986709 _btc-0active-1163467620 _brc-0active-1163467620 _bbc-0active-1163467620 _blc-0active-1163467620 _outlineColor-0focus-visible-834034279 _outlineStyle-0focus-visible-solid _outlineWidth-0focus-visible-2px _dsp-flex _ai-center _fd-row _fb-auto _bxs-border-box _mih-1611761821 _miw-1611761821 _fs-0 _jc-center _fw-nowrap _cur-pointer _bg-1633501478 _btw-1px _brw-1px _bbw-1px _blw-1px _btc-1726194350 _brc-1726194350 _bbc-1726194350 _blc-1726194350 _bbs-solid _bts-solid _bls-solid _brs-solid _btlr-100000px _btrr-100000px _bbrr-100000px _bblr-100000px _pt-0px _pr-0px _pb-0px _pl-0px _w-1611761821 _h-1611761821 _maw-1611761821 _mah-1611761821 _pos-absolute _b-30px _l-20px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="var(--color)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="font_unset " style="color:var(--color)"><rect width="20" height="14" x="2" y="3" rx="2" stroke="var(--color)"></rect><line x1="8" x2="16" y1="21" y2="21" stroke="var(--color)"></line><line x1="12" x2="12" y1="17" y2="21" stroke="var(--color)"></line></svg></button></span></div></span></span><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><script src="/_next/static/chunks/webpack-c511210a6eab1a58.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/c07dfed9e589ce2b.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[5751,[],\"\"]\n4:I[9969,[\"946\",\"static/chunks/946-310f6d0c4f8124d5.js\",\"423\",\"static/chunks/423-06102cf1584a8fa3.js\",\"931\",\"static/chunks/app/page-d8efbd597c53f3cc.js\"],\"default\"]\n5:I[2981,[\"946\",\"static/chunks/946-310f6d0c4f8124d5.js\",\"123\",\"static/chunks/123-a6d2101f21b1dc81.js\",\"185\",\"static/chunks/app/layout-0e0c053c92ad2f81.js\"],\"default\"]\n6:I[9275,[],\"\"]\n7:I[1343,[],\"\"]\n8:I[2944,[\"946\",\"static/chunks/946-310f6d0c4f8124d5.js\",\"123\",\"static/chunks/123-a6d2101f21b1dc81.js\",\"185\",\"static/chunks/app/layout-0e0c053c92ad2f81.js\"],\"Analytics\"]\na:I[6130,[],\"\"]\nb:[]\n0:[null,[\"$\",\"$L2\",null,{\"buildId\":\"sS3KCrv4R0AkB6q5rvqSN\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/\",\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"__PAGE__\",{},[[\"$L3\",[\"$\",\"$L4\",null,{}]],null],null]},[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{}],[\"$\",\"body\",null,{\"children\":[[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":"])</script><script>self.__next_f.push([1,"\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/c07dfed9e589ce2b.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]]}]}],[\"$\",\"$L8\",null,{}]]}]]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[false,\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"4\",{\"name\":\"application-name\",\"content\":\"Translator Demo\"}],[\"$\",\"link\",\"5\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"6\",{\"name\":\"keywords\",\"content\":\"Translator,Transformers.js,Next.js,Tamagui\"}],[\"$\",\"meta\",\"7\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"8\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"9\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"10\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"meta\",\"11\",{\"property\":\"og:title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"12\",{\"property\":\"og:description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"13\",{\"property\":\"og:url\",\"content\":\"https://hf.co/spaces/huuquyet/translator-tamagui/\"}],[\"$\",\"meta\",\"14\",{\"property\":\"og:site_name\",\"content\":\"Translator Demo\"}],[\"$\",\"meta\",\"15\",{\"property\":\"og:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}],[\"$\",\"meta\",\"16\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"17\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"18\",{\"name\":\"twitter:site\",\"content\":\"@HuuQuyetNg\"}],[\"$\",\"meta\",\"19\",{\"name\":\"twitter:title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"20\",{\"name\":\"twitter:description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"21\",{\"name\":\"twitter:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}]]\n3:null\n"])</script></body></html><style></style>
index.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ 2:I[9969,["946","static/chunks/946-310f6d0c4f8124d5.js","423","static/chunks/423-06102cf1584a8fa3.js","931","static/chunks/app/page-d8efbd597c53f3cc.js"],"default"]
2
+ 3:I[2981,["946","static/chunks/946-310f6d0c4f8124d5.js","123","static/chunks/123-a6d2101f21b1dc81.js","185","static/chunks/app/layout-0e0c053c92ad2f81.js"],"default"]
3
+ 4:I[9275,[],""]
4
+ 5:I[1343,[],""]
5
+ 6:I[2944,["946","static/chunks/946-310f6d0c4f8124d5.js","123","static/chunks/123-a6d2101f21b1dc81.js","185","static/chunks/app/layout-0e0c053c92ad2f81.js"],"Analytics"]
6
+ 0:["sS3KCrv4R0AkB6q5rvqSN",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{}]],null],null]},[["$","html",null,{"lang":"en","children":[["$","head",null,{}],["$","body",null,{"children":[["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/c07dfed9e589ce2b.css","precedence":"next","crossOrigin":"$undefined"}]]}]}],["$","$L6",null,{}]]}]]}],null],null],[null,"$L7"]]]]
7
+ 7:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Translator demo app built with Transformers.js + Tamagui + Next.js"}],["$","meta","3",{"name":"description","content":"Translator demo app built with Transformer.js + Tamagui + Next.js"}],["$","meta","4",{"name":"application-name","content":"Translator Demo"}],["$","link","5",{"rel":"manifest","href":"/manifest.json","crossOrigin":"use-credentials"}],["$","meta","6",{"name":"keywords","content":"Translator,Transformers.js,Next.js,Tamagui"}],["$","meta","7",{"name":"format-detection","content":"telephone=no"}],["$","meta","8",{"name":"apple-mobile-web-app-capable","content":"yes"}],["$","meta","9",{"name":"apple-mobile-web-app-title","content":"Translator demo app built with Transformers.js + Tamagui + Next.js"}],["$","meta","10",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","meta","11",{"property":"og:title","content":"Translator demo app built with Transformers.js + Tamagui + Next.js"}],["$","meta","12",{"property":"og:description","content":"Translator demo app built with Transformer.js + Tamagui + Next.js"}],["$","meta","13",{"property":"og:url","content":"https://hf.co/spaces/huuquyet/translator-tamagui/"}],["$","meta","14",{"property":"og:site_name","content":"Translator Demo"}],["$","meta","15",{"property":"og:image","content":"https://${process.env.vercel_url}/icon/share.png"}],["$","meta","16",{"property":"og:type","content":"website"}],["$","meta","17",{"name":"twitter:card","content":"summary"}],["$","meta","18",{"name":"twitter:site","content":"@HuuQuyetNg"}],["$","meta","19",{"name":"twitter:title","content":"Translator demo app built with Transformers.js + Tamagui + Next.js"}],["$","meta","20",{"name":"twitter:description","content":"Translator demo app built with Transformer.js + Tamagui + Next.js"}],["$","meta","21",{"name":"twitter:image","content":"https://${process.env.vercel_url}/icon/share.png"}]]
8
+ 1:null
manifest.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "translator-tamagui",
3
+ "short_name": "translator-tamagui",
4
+ "icons": [
5
+ {
6
+ "src": "/icons/apple-touch-icon.png",
7
+ "sizes": "64x64 32x32 24x24 16x16",
8
+ "type": "image/x-icon",
9
+ "purpose": "any maskable"
10
+ },
11
+ {
12
+ "src": "/icons/android-icon-192x192.png",
13
+ "sizes": "192x192",
14
+ "type": "image/png",
15
+ "purpose": "any maskable"
16
+ },
17
+ {
18
+ "src": "/icons/android-icon-512x512.png",
19
+ "sizes": "512x512",
20
+ "type": "image/png",
21
+ "purpose": "any maskable"
22
+ }
23
+ ],
24
+ "start_url": "/",
25
+ "scope": "/",
26
+ "display": "standalone",
27
+ "theme_color": "#a0a0a0",
28
+ "background_color": "#151515"
29
+ }
sw.js ADDED
@@ -0,0 +1 @@
 
 
1
+ if(!self.define){let e,s={};const n=(n,a)=>(n=new URL(n+".js",a).href,s[n]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()})).then((()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(a,i)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(s[c])return;let t={};const r=e=>n(e,c),o={module:{uri:c},exports:t,require:r};s[c]=Promise.all(a.map((e=>o[e]||r(e)))).then((e=>(i(...e),t)))}}define(["./workbox-c06b064f"],(function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/static/chunks/123-a6d2101f21b1dc81.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/190-8c3f29b77c1f7978.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/413.744619bdd7ea9098.js",revision:"744619bdd7ea9098"},{url:"/_next/static/chunks/423-06102cf1584a8fa3.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/432.34b698d3db09a44a.js",revision:"34b698d3db09a44a"},{url:"/_next/static/chunks/590caa2a.699039c37022246b.js",revision:"699039c37022246b"},{url:"/_next/static/chunks/6139e184.ec466d5482164223.js",revision:"ec466d5482164223"},{url:"/_next/static/chunks/946-310f6d0c4f8124d5.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/app/_not-found/page-3aa23121d293e5c8.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/app/layout-0e0c053c92ad2f81.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/app/page-d8efbd597c53f3cc.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/b2db8554.2f90d90ec938bc93.js",revision:"2f90d90ec938bc93"},{url:"/_next/static/chunks/fd9d1056-ee32f1bf30eb3d3f.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/framework-aec844d2ccbe7592.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/main-app-5420370b676a56f3.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/main-fb740fb39bc15572.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/pages/_app-6a626577ffa902a4.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/pages/_error-1be831200e60c5c0.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js",revision:"79330112775102f91e1010318bae2bd3"},{url:"/_next/static/chunks/webpack-c511210a6eab1a58.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/css/c07dfed9e589ce2b.css",revision:"c07dfed9e589ce2b"},{url:"/_next/static/sS3KCrv4R0AkB6q5rvqSN/_buildManifest.js",revision:"2ec694eb52ae4f523f265a46bae4d768"},{url:"/_next/static/sS3KCrv4R0AkB6q5rvqSN/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/favicon.ico",revision:"4106c96e0a55d35b1b13fa4281a907b7"},{url:"/icons/android-icon-192x192.png",revision:"9f29f1d7c8f6da2d2e64bce1d3136d3f"},{url:"/icons/android-icon-512x512.png",revision:"9f29f1d7c8f6da2d2e64bce1d3136d3f"},{url:"/icons/apple-icon-16x16.png",revision:"5998cde017dee1b68827ac575ce6a300"},{url:"/icons/apple-icon-32x32.png",revision:"2a82680a8c270c3ad4b8341f5ef897f8"},{url:"/icons/apple-icon.png",revision:"538a91302401ac461adfe1b509181921"},{url:"/icons/safari-pinned-tab.svg",revision:"71900474b7472e9395f81cda3f8abd6a"},{url:"/icons/share.png",revision:"f04a8d2b41543ef4669c07e6d04e2d94"},{url:"/manifest.json",revision:"eef848e691272f3f0ee962dc50b322da"},{url:"/tamagui.css",revision:"22be1a2573fa6a7d54315ab51842bbe8"},{url:"/vercel.svg",revision:"26bf2d0adaf1028a4d4c6ee77005e819"}],{ignoreURLParametersMatching:[/^utm_/,/^fbclid$/]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:async({response:e})=>e&&"opaqueredirect"===e.type?new Response(e.body,{status:200,statusText:"OK",headers:e.headers}):e}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:2592e3})]}),"GET"),e.registerRoute(/\/_next\/static.+\.js$/i,new e.CacheFirst({cacheName:"next-static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4|webm)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:48,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({sameOrigin:e,url:{pathname:s}})=>!(!e||s.startsWith("/api/auth/callback")||!s.startsWith("/api/"))),new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({request:e,url:{pathname:s},sameOrigin:n})=>"1"===e.headers.get("RSC")&&"1"===e.headers.get("Next-Router-Prefetch")&&n&&!s.startsWith("/api/")),new e.NetworkFirst({cacheName:"pages-rsc-prefetch",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({request:e,url:{pathname:s},sameOrigin:n})=>"1"===e.headers.get("RSC")&&n&&!s.startsWith("/api/")),new e.NetworkFirst({cacheName:"pages-rsc",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({url:{pathname:e},sameOrigin:s})=>s&&!e.startsWith("/api/")),new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({sameOrigin:e})=>!e),new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")}));
tamagui.css ADDED
The diff for this file is too large to render. See raw diff
 
vercel.svg ADDED
workbox-c06b064f.js ADDED
@@ -0,0 +1 @@
 
 
1
+ define(["exports"],(function(t){"use strict";try{self["workbox:core:7.0.0"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:7.0.0"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class r{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class i extends r{constructor(t,e,s){super((({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)}),e,s)}}class a{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",(t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map((e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})})));t.waitUntil(s),t.ports&&t.ports[0]&&s.then((()=>t.ports[0].postMessage(!0)))}}))}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let a=i&&i.handler;const o=t.method;if(!a&&this.i.has(o)&&(a=this.i.get(o)),!a)return;let c;try{c=a.handle({url:s,request:t,event:e,params:r})}catch(t){c=Promise.reject(t)}const h=i&&i.catchHandler;return c instanceof Promise&&(this.o||h)&&(c=c.catch((async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:r})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n}))),c}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const r=this.t.get(s.method)||[];for(const i of r){let r;const a=i.match({url:t,sameOrigin:e,request:s,event:n});if(a)return r=a,(Array.isArray(r)&&0===r.length||a.constructor===Object&&0===Object.keys(a).length||"boolean"==typeof a)&&(r=void 0),{route:i,params:r}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let o;const c=()=>(o||(o=new a,o.addFetchListener(),o.addCacheListener()),o);function h(t,e,n){let a;if("string"==typeof t){const s=new URL(t,location.href);a=new r((({url:t})=>t.href===s.href),e,n)}else if(t instanceof RegExp)a=new i(t,e,n);else if("function"==typeof t)a=new r(t,e,n);else{if(!(t instanceof r))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});a=t}return c().registerRoute(a),a}try{self["workbox:strategies:7.0.0"]&&_()}catch(t){}const u={cacheWillUpdate:async({response:t})=>200===t.status||0===t.status?t:null},l={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},f=t=>[l.prefix,t,l.suffix].filter((t=>t&&t.length>0)).join("-"),w=t=>t||f(l.precache),d=t=>t||f(l.runtime);function p(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class y{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}const g=new Set;function m(t){return"string"==typeof t?new Request(t):t}class R{constructor(t,e){this.h={},Object.assign(this,e),this.event=e.event,this.u=t,this.l=new y,this.p=[],this.m=[...t.plugins],this.R=new Map;for(const t of this.m)this.R.set(t,{});this.event.waitUntil(this.l.promise)}async fetch(t){const{event:e}=this;let n=m(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const r=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const i=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.u.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:i,response:t});return t}catch(t){throw r&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:r.clone(),request:i.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=m(t);let s;const{cacheName:n,matchOptions:r}=this.u,i=await this.getCacheKey(e,"read"),a=Object.assign(Object.assign({},r),{cacheName:n});s=await caches.match(i,a);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:r,cachedResponse:s,request:i,event:this.event})||void 0;return s}async cachePut(t,e){const n=m(t);var r;await(r=0,new Promise((t=>setTimeout(t,r))));const i=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(a=i.url,new URL(String(a),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var a;const o=await this.v(e);if(!o)return!1;const{cacheName:c,matchOptions:h}=this.u,u=await self.caches.open(c),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const r=p(e.url,s);if(e.url===r)return t.match(e,n);const i=Object.assign(Object.assign({},n),{ignoreSearch:!0}),a=await t.keys(e,i);for(const e of a)if(r===p(e.url,s))return t.match(e,n)}(u,i.clone(),["__WB_REVISION__"],h):null;try{await u.put(i,l?o.clone():o)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of g)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:c,oldResponse:f,newResponse:o.clone(),request:i,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.h[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=m(await t({mode:e,request:n,event:this.event,params:this.params}));this.h[s]=n}return this.h[s]}hasCallback(t){for(const e of this.u.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.u.plugins)if("function"==typeof e[t]){const s=this.R.get(e),n=n=>{const r=Object.assign(Object.assign({},n),{state:s});return e[t](r)};yield n}}waitUntil(t){return this.p.push(t),t}async doneWaiting(){let t;for(;t=this.p.shift();)await t}destroy(){this.l.resolve(null)}async v(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class v{constructor(t={}){this.cacheName=d(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,r=new R(this,{event:e,request:s,params:n}),i=this.q(r,s,e);return[i,this.D(i,r,s,e)]}async q(t,e,n){let r;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(r=await this.U(e,t),!r||"error"===r.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const i of t.iterateCallbacks("handlerDidError"))if(r=await i({error:s,event:n,request:e}),r)break;if(!r)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))r=await s({event:n,request:e,response:r});return r}async D(t,e,s,n){let r,i;try{r=await t}catch(i){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:r}),await e.doneWaiting()}catch(t){t instanceof Error&&(i=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:r,error:i}),e.destroy(),i)throw i}}function b(t){t.then((()=>{}))}function q(){return q=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n])}return t},q.apply(this,arguments)}const D=(t,e)=>e.some((e=>t instanceof e));let U,x;const L=new WeakMap,I=new WeakMap,C=new WeakMap,E=new WeakMap,N=new WeakMap;let O={get(t,e,s){if(t instanceof IDBTransaction){if("done"===e)return I.get(t);if("objectStoreNames"===e)return t.objectStoreNames||C.get(t);if("store"===e)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return B(t[e])},set:(t,e,s)=>(t[e]=s,!0),has:(t,e)=>t instanceof IDBTransaction&&("done"===e||"store"===e)||e in t};function T(t){return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(x||(x=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(P(this),e),B(L.get(this))}:function(...e){return B(t.apply(P(this),e))}:function(e,...s){const n=t.call(P(this),e,...s);return C.set(n,e.sort?e.sort():[e]),B(n)}}function k(t){return"function"==typeof t?T(t):(t instanceof IDBTransaction&&function(t){if(I.has(t))return;const e=new Promise(((e,s)=>{const n=()=>{t.removeEventListener("complete",r),t.removeEventListener("error",i),t.removeEventListener("abort",i)},r=()=>{e(),n()},i=()=>{s(t.error||new DOMException("AbortError","AbortError")),n()};t.addEventListener("complete",r),t.addEventListener("error",i),t.addEventListener("abort",i)}));I.set(t,e)}(t),D(t,U||(U=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(t,O):t)}function B(t){if(t instanceof IDBRequest)return function(t){const e=new Promise(((e,s)=>{const n=()=>{t.removeEventListener("success",r),t.removeEventListener("error",i)},r=()=>{e(B(t.result)),n()},i=()=>{s(t.error),n()};t.addEventListener("success",r),t.addEventListener("error",i)}));return e.then((e=>{e instanceof IDBCursor&&L.set(e,t)})).catch((()=>{})),N.set(e,t),e}(t);if(E.has(t))return E.get(t);const e=k(t);return e!==t&&(E.set(t,e),N.set(e,t)),e}const P=t=>N.get(t);const M=["get","getKey","getAll","getAllKeys","count"],W=["put","add","delete","clear"],j=new Map;function S(t,e){if(!(t instanceof IDBDatabase)||e in t||"string"!=typeof e)return;if(j.get(e))return j.get(e);const s=e.replace(/FromIndex$/,""),n=e!==s,r=W.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!r&&!M.includes(s))return;const i=async function(t,...e){const i=this.transaction(t,r?"readwrite":"readonly");let a=i.store;return n&&(a=a.index(e.shift())),(await Promise.all([a[s](...e),r&&i.done]))[0]};return j.set(e,i),i}O=(t=>q({},t,{get:(e,s,n)=>S(e,s)||t.get(e,s,n),has:(e,s)=>!!S(e,s)||t.has(e,s)}))(O);try{self["workbox:expiration:7.0.0"]&&_()}catch(t){}const K="cache-entries",A=t=>{const e=new URL(t,location.href);return e.hash="",e.href};class F{constructor(t){this._=null,this.L=t}I(t){const e=t.createObjectStore(K,{keyPath:"id"});e.createIndex("cacheName","cacheName",{unique:!1}),e.createIndex("timestamp","timestamp",{unique:!1})}C(t){this.I(t),this.L&&function(t,{blocked:e}={}){const s=indexedDB.deleteDatabase(t);e&&s.addEventListener("blocked",(t=>e(t.oldVersion,t))),B(s).then((()=>{}))}(this.L)}async setTimestamp(t,e){const s={url:t=A(t),timestamp:e,cacheName:this.L,id:this.N(t)},n=(await this.getDb()).transaction(K,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(t){const e=await this.getDb(),s=await e.get(K,this.N(t));return null==s?void 0:s.timestamp}async expireEntries(t,e){const s=await this.getDb();let n=await s.transaction(K).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;n;){const s=n.value;s.cacheName===this.L&&(t&&s.timestamp<t||e&&i>=e?r.push(n.value):i++),n=await n.continue()}const a=[];for(const t of r)await s.delete(K,t.id),a.push(t.url);return a}N(t){return this.L+"|"+A(t)}async getDb(){return this._||(this._=await function(t,e,{blocked:s,upgrade:n,blocking:r,terminated:i}={}){const a=indexedDB.open(t,e),o=B(a);return n&&a.addEventListener("upgradeneeded",(t=>{n(B(a.result),t.oldVersion,t.newVersion,B(a.transaction),t)})),s&&a.addEventListener("blocked",(t=>s(t.oldVersion,t.newVersion,t))),o.then((t=>{i&&t.addEventListener("close",(()=>i())),r&&t.addEventListener("versionchange",(t=>r(t.oldVersion,t.newVersion,t)))})).catch((()=>{})),o}("workbox-expiration",1,{upgrade:this.C.bind(this)})),this._}}class H{constructor(t,e={}){this.O=!1,this.T=!1,this.k=e.maxEntries,this.B=e.maxAgeSeconds,this.P=e.matchOptions,this.L=t,this.M=new F(t)}async expireEntries(){if(this.O)return void(this.T=!0);this.O=!0;const t=this.B?Date.now()-1e3*this.B:0,e=await this.M.expireEntries(t,this.k),s=await self.caches.open(this.L);for(const t of e)await s.delete(t,this.P);this.O=!1,this.T&&(this.T=!1,b(this.expireEntries()))}async updateTimestamp(t){await this.M.setTimestamp(t,Date.now())}async isURLExpired(t){if(this.B){const e=await this.M.getTimestamp(t),s=Date.now()-1e3*this.B;return void 0===e||e<s}return!1}async delete(){this.T=!1,await this.M.expireEntries(1/0)}}try{self["workbox:range-requests:7.0.0"]&&_()}catch(t){}async function $(t,e){try{if(206===e.status)return e;const n=t.headers.get("range");if(!n)throw new s("no-range-header");const r=function(t){const e=t.trim().toLowerCase();if(!e.startsWith("bytes="))throw new s("unit-must-be-bytes",{normalizedRangeHeader:e});if(e.includes(","))throw new s("single-range-only",{normalizedRangeHeader:e});const n=/(\d*)-(\d*)/.exec(e);if(!n||!n[1]&&!n[2])throw new s("invalid-range-values",{normalizedRangeHeader:e});return{start:""===n[1]?void 0:Number(n[1]),end:""===n[2]?void 0:Number(n[2])}}(n),i=await e.blob(),a=function(t,e,n){const r=t.size;if(n&&n>r||e&&e<0)throw new s("range-not-satisfiable",{size:r,end:n,start:e});let i,a;return void 0!==e&&void 0!==n?(i=e,a=n+1):void 0!==e&&void 0===n?(i=e,a=r):void 0!==n&&void 0===e&&(i=r-n,a=r),{start:i,end:a}}(i,r.start,r.end),o=i.slice(a.start,a.end),c=o.size,h=new Response(o,{status:206,statusText:"Partial Content",headers:e.headers});return h.headers.set("Content-Length",String(c)),h.headers.set("Content-Range",`bytes ${a.start}-${a.end-1}/${i.size}`),h}catch(t){return new Response("",{status:416,statusText:"Range Not Satisfiable"})}}function z(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:7.0.0"]&&_()}catch(t){}function G(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const r=new URL(n,location.href),i=new URL(n,location.href);return r.searchParams.set("__WB_REVISION__",e),{cacheKey:r.href,url:i.href}}class V{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class J{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.W.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.W=t}}let Q,X;async function Y(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const r=t.clone(),i={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},a=e?e(i):i,o=function(){if(void 0===Q){const t=new Response("");if("body"in t)try{new Response(t.body),Q=!0}catch(t){Q=!1}Q=!1}return Q}()?r.body:await r.blob();return new Response(o,a)}class Z extends v{constructor(t={}){t.cacheName=w(t.cacheName),super(t),this.j=!1!==t.fallbackToNetwork,this.plugins.push(Z.copyRedirectedCacheableResponsesPlugin)}async U(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.S(t,e):await this.K(t,e))}async K(t,e){let n;const r=e.params||{};if(!this.j)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=r.integrity,i=t.integrity,a=!i||i===s;n=await e.fetch(new Request(t,{integrity:"no-cors"!==t.mode?i||s:void 0})),s&&a&&"no-cors"!==t.mode&&(this.A(),await e.cachePut(t,n.clone()))}return n}async S(t,e){this.A();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}A(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==Z.copyRedirectedCacheableResponsesPlugin&&(n===Z.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(Z.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}Z.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},Z.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await Y(t):t};class tt{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.F=new Map,this.H=new Map,this.$=new Map,this.u=new Z({cacheName:w(t),plugins:[...e,new J({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.u}precache(t){this.addToCacheList(t),this.G||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.G=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:r}=G(n),i="string"!=typeof n&&n.revision?"reload":"default";if(this.F.has(r)&&this.F.get(r)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.F.get(r),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.$.has(t)&&this.$.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:r});this.$.set(t,n.integrity)}if(this.F.set(r,t),this.H.set(r,i),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return z(t,(async()=>{const e=new V;this.strategy.plugins.push(e);for(const[e,s]of this.F){const n=this.$.get(s),r=this.H.get(e),i=new Request(e,{integrity:n,cache:r,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:i,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(t){return z(t,(async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.F.values()),n=[];for(const r of e)s.has(r.url)||(await t.delete(r),n.push(r.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this.F}getCachedURLs(){return[...this.F.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.F.get(e.href)}getIntegrityForCacheKey(t){return this.$.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}const et=()=>(X||(X=new tt),X);class st extends r{constructor(t,e){super((({request:s})=>{const n=t.getURLsToCacheKeys();for(const r of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:r}={}){const i=new URL(t,location.href);i.hash="",yield i.href;const a=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some((t=>t.test(s)))&&t.searchParams.delete(s);return t}(i,e);if(yield a.href,s&&a.pathname.endsWith("/")){const t=new URL(a.href);t.pathname+=s,yield t.href}if(n){const t=new URL(a.href);t.pathname+=".html",yield t.href}if(r){const t=r({url:i});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(r);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}}),t.strategy)}}t.CacheFirst=class extends v{async U(t,e){let n,r=await e.cacheMatch(t);if(!r)try{r=await e.fetchAndCachePut(t)}catch(t){t instanceof Error&&(n=t)}if(!r)throw new s("no-response",{url:t.url,error:n});return r}},t.ExpirationPlugin=class{constructor(t={}){this.cachedResponseWillBeUsed=async({event:t,request:e,cacheName:s,cachedResponse:n})=>{if(!n)return null;const r=this.V(n),i=this.J(s);b(i.expireEntries());const a=i.updateTimestamp(e.url);if(t)try{t.waitUntil(a)}catch(t){}return r?n:null},this.cacheDidUpdate=async({cacheName:t,request:e})=>{const s=this.J(t);await s.updateTimestamp(e.url),await s.expireEntries()},this.X=t,this.B=t.maxAgeSeconds,this.Y=new Map,t.purgeOnQuotaError&&function(t){g.add(t)}((()=>this.deleteCacheAndMetadata()))}J(t){if(t===d())throw new s("expire-custom-caches-only");let e=this.Y.get(t);return e||(e=new H(t,this.X),this.Y.set(t,e)),e}V(t){if(!this.B)return!0;const e=this.Z(t);if(null===e)return!0;return e>=Date.now()-1e3*this.B}Z(t){if(!t.headers.has("date"))return null;const e=t.headers.get("date"),s=new Date(e).getTime();return isNaN(s)?null:s}async deleteCacheAndMetadata(){for(const[t,e]of this.Y)await self.caches.delete(t),await e.delete();this.Y=new Map}},t.NetworkFirst=class extends v{constructor(t={}){super(t),this.plugins.some((t=>"cacheWillUpdate"in t))||this.plugins.unshift(u),this.tt=t.networkTimeoutSeconds||0}async U(t,e){const n=[],r=[];let i;if(this.tt){const{id:s,promise:a}=this.et({request:t,logs:n,handler:e});i=s,r.push(a)}const a=this.st({timeoutId:i,request:t,logs:n,handler:e});r.push(a);const o=await e.waitUntil((async()=>await e.waitUntil(Promise.race(r))||await a)());if(!o)throw new s("no-response",{url:t.url});return o}et({request:t,logs:e,handler:s}){let n;return{promise:new Promise((e=>{n=setTimeout((async()=>{e(await s.cacheMatch(t))}),1e3*this.tt)})),id:n}}async st({timeoutId:t,request:e,logs:s,handler:n}){let r,i;try{i=await n.fetchAndCachePut(e)}catch(t){t instanceof Error&&(r=t)}return t&&clearTimeout(t),!r&&i||(i=await n.cacheMatch(e)),i}},t.RangeRequestsPlugin=class{constructor(){this.cachedResponseWillBeUsed=async({request:t,cachedResponse:e})=>e&&t.headers.has("range")?await $(t,e):e}},t.StaleWhileRevalidate=class extends v{constructor(t={}){super(t),this.plugins.some((t=>"cacheWillUpdate"in t))||this.plugins.unshift(u)}async U(t,e){const n=e.fetchAndCachePut(t).catch((()=>{}));e.waitUntil(n);let r,i=await e.cacheMatch(t);if(i);else try{i=await n}catch(t){t instanceof Error&&(r=t)}if(!i)throw new s("no-response",{url:t.url,error:r});return i}},t.cleanupOutdatedCaches=function(){self.addEventListener("activate",(t=>{const e=w();t.waitUntil((async(t,e="-precache-")=>{const s=(await self.caches.keys()).filter((s=>s.includes(e)&&s.includes(self.registration.scope)&&s!==t));return await Promise.all(s.map((t=>self.caches.delete(t)))),s})(e).then((t=>{})))}))},t.clientsClaim=function(){self.addEventListener("activate",(()=>self.clients.claim()))},t.precacheAndRoute=function(t,e){!function(t){et().precache(t)}(t),function(t){const e=et();h(new st(e,t))}(e)},t.registerRoute=h}));