speice.io/assets/js/9555.902d5387.js

4 lines
16 KiB
JavaScript

"use strict";(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["9555"],{64926:function(e,n,t){t.d(n,{Z:()=>w});var i=t("85893"),l=t("67294"),a=t("67026"),r=t("7670"),s=t("66171");let o={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function c(e){let{type:n,className:t,children:l}=e;return(0,i.jsx)("div",{className:(0,a.Z)(s.k.common.admonition,s.k.common.admonitionType(n),o.admonition,t),children:l})}function d(e){let{icon:n,title:t}=e;return(0,i.jsxs)("div",{className:o.admonitionHeading,children:[(0,i.jsx)("span",{className:o.admonitionIcon,children:n}),t]})}function u(e){let{children:n}=e;return n?(0,i.jsx)("div",{className:o.admonitionContent,children:n}):null}function m(e){let{type:n,icon:t,title:l,children:a,className:r}=e;return(0,i.jsxs)(c,{type:n,className:r,children:[l||t?(0,i.jsx)(d,{title:l,icon:t}):null,(0,i.jsx)(u,{children:a})]})}let h={icon:(0,i.jsx)(function(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})})},{}),title:(0,i.jsx)(r.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function x(e){return(0,i.jsx)(m,{...h,...e,className:(0,a.Z)("alert alert--secondary",e.className),children:e.children})}let f={icon:(0,i.jsx)(function(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})})},{}),title:(0,i.jsx)(r.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function g(e){return(0,i.jsx)(m,{...f,...e,className:(0,a.Z)("alert alert--success",e.className),children:e.children})}let j={icon:(0,i.jsx)(function(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})})},{}),title:(0,i.jsx)(r.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function p(e){return(0,i.jsx)(m,{...j,...e,className:(0,a.Z)("alert alert--info",e.className),children:e.children})}function v(e){return(0,i.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})})}let Z={icon:(0,i.jsx)(v,{}),title:(0,i.jsx)(r.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})},b={icon:(0,i.jsx)(function(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})})},{}),title:(0,i.jsx)(r.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})},N={icon:(0,i.jsx)(v,{}),title:(0,i.jsx)(r.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})},y={note:x,tip:g,info:p,warning:function(e){return(0,i.jsx)(m,{...Z,...e,className:(0,a.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,i.jsx)(m,{...b,...e,className:(0,a.Z)("alert alert--danger",e.className),children:e.children})},secondary:e=>(0,i.jsx)(x,{title:"secondary",...e}),important:e=>(0,i.jsx)(p,{title:"important",...e}),success:e=>(0,i.jsx)(g,{title:"success",...e}),caution:function(e){return(0,i.jsx)(m,{...N,...e,className:(0,a.Z)("alert alert--warning",e.className),children:e.children})}};function w(e){let n=function(e){let{mdxAdmonitionTitle:n,rest:t}=function(e){let n=l.Children.toArray(e),t=n.find(e=>l.isValidElement(e)&&"mdxAdmonitionTitle"===e.type),a=n.filter(e=>e!==t);return{mdxAdmonitionTitle:t?.props.children,rest:a.length>0?(0,i.jsx)(i.Fragment,{children:a}):null}}(e.children),a=e.title??n;return{...e,...a&&{title:a},children:t}}(e),t=function(e){let n=y[e];return n||(console.warn(`No admonition component found for admonition type "${e}". Using Info as fallback.`),y.info)}(n.type);return(0,i.jsx)(t,{...n})}},79489:function(e,n,t){t.d(n,{Z:()=>ei});var i=t("85893"),l=t("67294"),a=t("67026"),r=t("68141");function s(e){let{children:n,className:t}=e;return(0,i.jsx)("article",{className:t,children:n})}var o=t("53367");function c(e){let{className:n}=e,{metadata:t,isBlogPostPage:l}=(0,r.nO)(),{permalink:s,title:c}=t;return(0,i.jsx)(l?"h1":"h2",{className:(0,a.Z)("title_f1Hy",n),children:l?c:(0,i.jsx)(o.Z,{to:s,children:c})})}var d=t("7670"),u=t("87262");let m=["zero","one","two","few","many","other"];function h(e){return m.filter(n=>e.includes(n))}let x={locale:"en",pluralForms:h(["one","other"]),select:e=>1===e?"one":"other"};var f=t("84221");function g(e){let{readingTime:n}=e,t=function(){let{selectMessage:e}=function(){let e=function(){let{i18n:{currentLocale:e}}=(0,u.Z)();return(0,l.useMemo)(()=>{try{return function(e){let n=new Intl.PluralRules(e);return{locale:e,pluralForms:h(n.resolvedOptions().pluralCategories),select:e=>n.select(e)}}(e)}catch(n){return console.error(`Failed to use Intl.PluralRules for locale "${e}".
Docusaurus will fallback to the default (English) implementation.
Error: ${n.message}
`),x}},[e])}();return{selectMessage:(n,t)=>(function(e,n,t){let i=e.split("|");if(1===i.length)return i[0];i.length>t.pluralForms.length&&console.error(`For locale=${t.locale}, a maximum of ${t.pluralForms.length} plural forms are expected (${t.pluralForms.join(",")}), but the message contains ${i.length}: ${e}`);let l=t.select(n);return i[Math.min(t.pluralForms.indexOf(l),i.length-1)]})(t,n,e)}}();return n=>{let t=Math.ceil(n);return e(t,(0,d.I)({id:"theme.blog.post.readingTime.plurals",description:'Pluralized label for "{readingTime} min read". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)',message:"One min read|{readingTime} min read"},{readingTime:t}))}}();return(0,i.jsx)(i.Fragment,{children:t(n)})}function j(e){let{date:n,formattedDate:t}=e;return(0,i.jsx)("time",{dateTime:n,children:t})}function p(){return(0,i.jsx)(i.Fragment,{children:" \xb7 "})}function v(e){let{className:n}=e,{metadata:t}=(0,r.nO)(),{date:l,readingTime:s}=t,o=(0,f.P)({day:"numeric",month:"long",year:"numeric",timeZone:"UTC"});return(0,i.jsxs)("div",{className:(0,a.Z)("container_mt6G","margin-vert--md",n),children:[(0,i.jsx)(j,{date:l,formattedDate:o.format(new Date(l))}),void 0!==s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p,{}),(0,i.jsx)(g,{readingTime:s})]})]})}var Z=t("76230");let b={authorCol:"authorCol_Hf19",imageOnlyAuthorRow:"imageOnlyAuthorRow_pa_O",imageOnlyAuthorCol:"imageOnlyAuthorCol_G86a"};function N(e){let{className:n}=e,{metadata:{authors:t},assets:l}=(0,r.nO)();if(0===t.length)return null;let s=t.every(e=>{let{name:n}=e;return!n}),o=1===t.length;return(0,i.jsx)("div",{className:(0,a.Z)("margin-top--md margin-bottom--sm",s?b.imageOnlyAuthorRow:"row",n),children:t.map((e,n)=>(0,i.jsx)("div",{className:(0,a.Z)(!s&&(o?"col col--12":"col col--6"),s?b.imageOnlyAuthorCol:b.authorCol),children:(0,i.jsx)(Z.Z,{author:{...e,imageURL:l.authorsImageUrls[n]??e.imageURL}})},n))})}function y(){return(0,i.jsxs)("header",{children:[(0,i.jsx)(c,{}),(0,i.jsx)(v,{}),(0,i.jsx)(N,{})]})}var w=t("43781"),_=t("50065"),C=t("11199"),T=t("47333");function k(e){return(0,i.jsx)("code",{...e})}var U=t("44961"),R=t("6735"),z=t("55799");let A={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};function M(e){return!!e&&("SUMMARY"===e.tagName||M(e.parentElement))}function F(e){let{summary:n,children:t,...r}=e;(0,U.Z)().collectAnchor(r.id);let s=(0,R.Z)(),o=(0,l.useRef)(null),{collapsed:c,setCollapsed:d}=(0,z.u)({initialState:!r.open}),[u,m]=(0,l.useState)(r.open),h=l.isValidElement(n)?n:(0,i.jsx)("summary",{children:n??"Details"});return(0,i.jsxs)("details",{...r,ref:o,open:u,"data-collapsed":c,className:(0,a.Z)(A.details,s&&A.isBrowser,r.className),onMouseDown:e=>{M(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();let n=e.target;M(n)&&function e(n,t){return!!n&&(n===t||e(n.parentElement,t))}(n,o.current)&&(e.preventDefault(),c?(d(!1),m(!0)):d(!0))},children:[h,(0,i.jsx)(z.z,{lazy:!1,collapsed:c,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{d(e),m(!e)},children:(0,i.jsx)("div",{className:A.collapsibleContent,children:t})})]})}function O(e){let{...n}=e;return(0,i.jsx)(F,{...n,className:(0,a.Z)("alert alert--info","details_b_Ee",n.className)})}function D(e){let n=l.Children.toArray(e.children),t=n.find(e=>l.isValidElement(e)&&"summary"===e.type),a=(0,i.jsx)(i.Fragment,{children:n.filter(e=>e!==t)});return(0,i.jsx)(O,{...e,summary:t,children:a})}var B=t("46055");function H(e){return(0,i.jsx)(B.Z,{...e})}let I={containsTaskList:"containsTaskList_mC6p"};var E=t("64926");let L={Head:C.Z,details:D,Details:D,code:function(e){return void 0!==e.children&&l.Children.toArray(e.children).every(e=>"string"==typeof e&&!e.includes("\n"))?(0,i.jsx)(k,{...e}):(0,i.jsx)(T.Z,{...e})},a:function(e){return(0,i.jsx)(o.Z,{...e})},pre:function(e){return(0,i.jsx)(i.Fragment,{children:e.children})},ul:function(e){return(0,i.jsx)("ul",{...e,className:function(e){if(void 0!==e)return(0,a.Z)(e,e?.includes("contains-task-list")&&I.containsTaskList)}(e.className)})},li:function(e){return(0,U.Z)().collectAnchor(e.id),(0,i.jsx)("li",{...e})},img:function(e){var n;return(0,i.jsx)("img",{decoding:"async",loading:"lazy",...e,className:(n=e.className,(0,a.Z)(n,"img_ev3q"))})},h1:e=>(0,i.jsx)(H,{as:"h1",...e}),h2:e=>(0,i.jsx)(H,{as:"h2",...e}),h3:e=>(0,i.jsx)(H,{as:"h3",...e}),h4:e=>(0,i.jsx)(H,{as:"h4",...e}),h5:e=>(0,i.jsx)(H,{as:"h5",...e}),h6:e=>(0,i.jsx)(H,{as:"h6",...e}),admonition:E.Z,mermaid:()=>null};function P(e){let{children:n}=e;return(0,i.jsx)(_.Z,{components:L,children:n})}function S(e){let{children:n,className:t}=e,{isBlogPostPage:l}=(0,r.nO)();return(0,i.jsx)("div",{id:l?w.blogPostContainerID:void 0,className:(0,a.Z)("markdown",t),children:(0,i.jsx)(P,{children:n})})}var V=t("66171");function $(e){let{className:n,...t}=e;return(0,i.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,a.Z)("iconEdit_Z9Sw",n),"aria-hidden":"true",...t,children:(0,i.jsx)("g",{children:(0,i.jsx)("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})})})}function q(e){let{editUrl:n}=e;return(0,i.jsxs)(o.Z,{to:n,className:V.k.common.editThisPage,children:[(0,i.jsx)($,{}),(0,i.jsx)(d.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}function G(e){let{lastUpdatedAt:n}=e,t=new Date(n),l=(0,f.P)({day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(t);return(0,i.jsx)(d.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,i.jsx)("b",{children:(0,i.jsx)("time",{dateTime:t.toISOString(),itemProp:"dateModified",children:l})})},children:" on {date}"})}function W(e){let{lastUpdatedBy:n}=e;return(0,i.jsx)(d.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,i.jsx)("b",{children:n})},children:" by {user}"})}function J(e){let{lastUpdatedAt:n,lastUpdatedBy:t}=e;return(0,i.jsxs)("span",{className:V.k.common.lastUpdated,children:[(0,i.jsx)(d.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:n?(0,i.jsx)(G,{lastUpdatedAt:n}):"",byUser:t?(0,i.jsx)(W,{lastUpdatedBy:t}):""},children:"Last updated{atDate}{byUser}"}),!1]})}function Q(e){let{className:n,editUrl:t,lastUpdatedAt:l,lastUpdatedBy:r}=e;return(0,i.jsxs)("div",{className:(0,a.Z)("row",n),children:[(0,i.jsx)("div",{className:"col",children:t&&(0,i.jsx)(q,{editUrl:t})}),(0,i.jsx)("div",{className:(0,a.Z)("col","lastUpdated_JAkA"),children:(l||r)&&(0,i.jsx)(J,{lastUpdatedAt:l,lastUpdatedBy:r})})]})}let X={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};function Y(e){let{permalink:n,label:t,count:l,description:r}=e;return(0,i.jsxs)(o.Z,{href:n,title:r,className:(0,a.Z)(X.tag,l?X.tagWithCount:X.tagRegular),children:[t,l&&(0,i.jsx)("span",{children:l})]})}function K(e){let{tags:n}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("b",{children:(0,i.jsx)(d.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,i.jsx)("ul",{className:(0,a.Z)("tags_jXut","padding--none","margin-left--sm"),children:n.map(e=>(0,i.jsx)("li",{className:"tag_QGVx",children:(0,i.jsx)(Y,{...e})},e.permalink))})]})}function ee(){return(0,i.jsx)("b",{children:(0,i.jsx)(d.Z,{id:"theme.blog.post.readMore",description:"The label used in blog post item excerpts to link to full blog posts",children:"Read more"})})}function en(e){let{blogPostTitle:n,...t}=e;return(0,i.jsx)(o.Z,{"aria-label":(0,d.I)({message:"Read more about {title}",id:"theme.blog.post.readMoreLabel",description:"The ARIA label for the link to full blog posts from excerpts"},{title:n}),...t,children:(0,i.jsx)(ee,{})})}function et(){let{metadata:e,isBlogPostPage:n}=(0,r.nO)(),{tags:t,title:l,editUrl:s,hasTruncateMarker:o,lastUpdatedBy:c,lastUpdatedAt:d}=e,u=!n&&o,m=t.length>0;if(!(m||u||s))return null;if(!n)return(0,i.jsxs)("footer",{className:"row docusaurus-mt-lg",children:[m&&(0,i.jsx)("div",{className:(0,a.Z)("col",{"col--9":u}),children:(0,i.jsx)(K,{tags:t})}),u&&(0,i.jsx)("div",{className:(0,a.Z)("col text--right",{"col--3":m}),children:(0,i.jsx)(en,{blogPostTitle:l,to:e.permalink})})]});{let e=!!(s||d||c);return(0,i.jsxs)("footer",{className:"docusaurus-mt-lg",children:[m&&(0,i.jsx)("div",{className:(0,a.Z)("row","margin-top--sm",V.k.blog.blogFooterEditMetaRow),children:(0,i.jsx)("div",{className:"col",children:(0,i.jsx)(K,{tags:t})})}),e&&(0,i.jsx)(Q,{className:(0,a.Z)("margin-top--sm",V.k.blog.blogFooterEditMetaRow),editUrl:s,lastUpdatedAt:d,lastUpdatedBy:c})]})}}function ei(e){let{children:n,className:t}=e,l=function(){let{isBlogPostPage:e}=(0,r.nO)();return e?void 0:"margin-bottom--xl"}();return(0,i.jsxs)(s,{className:(0,a.Z)(l,t),children:[(0,i.jsx)(y,{}),(0,i.jsx)(S,{children:n}),(0,i.jsx)(et,{})]})}},68007:function(e,n,t){t.d(n,{Z:function(){return r}});var i=t(85893);t(67294);var l=t(67026),a=t(53367);function r(e){let{permalink:n,title:t,subLabel:r,isNext:s}=e;return(0,i.jsxs)(a.Z,{className:(0,l.Z)("pagination-nav__link",s?"pagination-nav__link--next":"pagination-nav__link--prev"),to:n,children:[r&&(0,i.jsx)("div",{className:"pagination-nav__sublabel",children:r}),(0,i.jsx)("div",{className:"pagination-nav__label",children:t})]})}},84221:function(e,n,t){t.d(n,{P:function(){return l}});var i=t(87262);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{i18n:{currentLocale:n}}=(0,i.Z)(),t=function(){let{i18n:{currentLocale:e,localeConfigs:n}}=(0,i.Z)();return n[e].calendar}();return new Intl.DateTimeFormat(n,{calendar:t,...e})}}}]);