speice.io/assets/js/1122.0aae2367.js

4 lines
17 KiB
JavaScript

"use strict";(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["1122"],{75094:function(e,n,t){t.d(n,{Z:()=>w});var i=t("85893"),l=t("67294"),a=t("67026"),r=t("96025"),s=t("84681");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?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})}},14378:function(e,n,t){t.d(n,{Z:()=>eu});var i=t("85893"),l=t("67294"),a=t("67026"),r=t("41835");function s(e){let{children:n,className:t}=e;return(0,i.jsx)("article",{className:t,children:n})}var o=t("83012");let c="title_f1Hy";function d(e){let{className:n}=e,{metadata:t,isBlogPostPage:l}=(0,r.nO)(),{permalink:s,title:d}=t;return(0,i.jsx)(l?"h1":"h2",{className:(0,a.Z)(c,n),children:l?d:(0,i.jsx)(o.Z,{to:s,children:d})})}var u=t("96025"),m=t("2933");let h=["zero","one","two","few","many","other"];function x(e){return h.filter(n=>e.includes(n))}let f={locale:"en",pluralForms:x(["one","other"]),select:e=>1===e?"one":"other"};var g=t("11437");let j="container_mt6G";function p(e){let{readingTime:n}=e,t=function(){let{selectMessage:e}=function(){let e=function(){let{i18n:{currentLocale:e}}=(0,m.Z)();return(0,l.useMemo)(()=>{try{return function(e){let n=new Intl.PluralRules(e);return{locale:e,pluralForms:x(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}
`),f}},[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,u.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 v(e){let{date:n,formattedDate:t}=e;return(0,i.jsx)("time",{dateTime:n,children:t})}function Z(){return(0,i.jsx)(i.Fragment,{children:" \xb7 "})}function b(e){let n,{className:t}=e,{metadata:l}=(0,r.nO)(),{date:s,readingTime:o}=l,c=(0,g.P)({day:"numeric",month:"long",year:"numeric",timeZone:"UTC"});return(0,i.jsxs)("div",{className:(0,a.Z)(j,"margin-vert--md",t),children:[(0,i.jsx)(v,{date:s,formattedDate:(n=s,c.format(new Date(n)))}),void 0!==o&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Z,{}),(0,i.jsx)(p,{readingTime:o})]})]})}var N=t("21389");let y={authorCol:"authorCol_Hf19",imageOnlyAuthorRow:"imageOnlyAuthorRow_pa_O",imageOnlyAuthorCol:"imageOnlyAuthorCol_G86a"};function w(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?y.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?y.imageOnlyAuthorCol:y.authorCol),children:(0,i.jsx)(N.Z,{author:{...e,imageURL:l.authorsImageUrls[n]??e.imageURL}})},n))})}function _(){return(0,i.jsxs)("header",{children:[(0,i.jsx)(d,{}),(0,i.jsx)(b,{}),(0,i.jsx)(w,{})]})}var C=t("8365"),T=t("50065"),k=t("94819"),U=t("67");function R(e){return(0,i.jsx)("code",{...e})}var z=t("41065"),A=t("7227"),M=t("21276");let F={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};function O(e){return!!e&&("SUMMARY"===e.tagName||O(e.parentElement))}function D(e){let{summary:n,children:t,...r}=e;(0,z.Z)().collectAnchor(r.id);let s=(0,A.Z)(),o=(0,l.useRef)(null),{collapsed:c,setCollapsed:d}=(0,M.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)(F.details,s&&F.isBrowser,r.className),onMouseDown:e=>{O(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();let n=e.target;if(!!(O(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)(M.z,{lazy:!1,collapsed:c,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{d(e),m(!e)},children:(0,i.jsx)("div",{className:F.collapsibleContent,children:t})})]})}let B="details_b_Ee";function H(e){let{...n}=e;return(0,i.jsx)(D,{...n,className:(0,a.Z)("alert alert--info",B,n.className)})}function I(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)(H,{...e,summary:t,children:a})}var E=t("34403");function L(e){return(0,i.jsx)(E.Z,{...e})}let P={containsTaskList:"containsTaskList_mC6p"},S="img_ev3q";var V=t("75094");let $={Head:k.Z,details:I,Details:I,code:function(e){var n;return void 0!==(n=e).children&&l.Children.toArray(n.children).every(e=>"string"==typeof e&&!e.includes("\n"))?(0,i.jsx)(R,{...e}):(0,i.jsx)(U.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")&&P.containsTaskList)}(e.className)})},li:function(e){return(0,z.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,S))})},h1:e=>(0,i.jsx)(L,{as:"h1",...e}),h2:e=>(0,i.jsx)(L,{as:"h2",...e}),h3:e=>(0,i.jsx)(L,{as:"h3",...e}),h4:e=>(0,i.jsx)(L,{as:"h4",...e}),h5:e=>(0,i.jsx)(L,{as:"h5",...e}),h6:e=>(0,i.jsx)(L,{as:"h6",...e}),admonition:V.Z,mermaid:()=>null};function q(e){let{children:n}=e;return(0,i.jsx)(T.Z,{components:$,children:n})}function G(e){let{children:n,className:t}=e,{isBlogPostPage:l}=(0,r.nO)();return(0,i.jsx)("div",{id:l?C.blogPostContainerID:void 0,className:(0,a.Z)("markdown",t),children:(0,i.jsx)(q,{children:n})})}var W=t("84681");let J="iconEdit_Z9Sw";function Q(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)(J,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 X(e){let{editUrl:n}=e;return(0,i.jsxs)(o.Z,{to:n,className:W.k.common.editThisPage,children:[(0,i.jsx)(Q,{}),(0,i.jsx)(u.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}function Y(e){let{lastUpdatedAt:n}=e,t=new Date(n),l=(0,g.P)({day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(t);return(0,i.jsx)(u.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 K(e){let{lastUpdatedBy:n}=e;return(0,i.jsx)(u.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 ee(e){let{lastUpdatedAt:n,lastUpdatedBy:t}=e;return(0,i.jsxs)("span",{className:W.k.common.lastUpdated,children:[(0,i.jsx)(u.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)(Y,{lastUpdatedAt:n}):"",byUser:t?(0,i.jsx)(K,{lastUpdatedBy:t}):""},children:"Last updated{atDate}{byUser}"}),!1]})}let en="lastUpdated_JAkA";function et(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)(X,{editUrl:t})}),(0,i.jsx)("div",{className:(0,a.Z)("col",en),children:(l||r)&&(0,i.jsx)(ee,{lastUpdatedAt:l,lastUpdatedBy:r})})]})}let ei={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};function el(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)(ei.tag,l?ei.tagWithCount:ei.tagRegular),children:[t,l&&(0,i.jsx)("span",{children:l})]})}let ea="tags_jXut",er="tag_QGVx";function es(e){let{tags:n}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("b",{children:(0,i.jsx)(u.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,i.jsx)("ul",{className:(0,a.Z)(ea,"padding--none","margin-left--sm"),children:n.map(e=>(0,i.jsx)("li",{className:er,children:(0,i.jsx)(el,{...e})},e.permalink))})]})}function eo(){return(0,i.jsx)("b",{children:(0,i.jsx)(u.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 ec(e){let{blogPostTitle:n,...t}=e;return(0,i.jsx)(o.Z,{"aria-label":(0,u.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)(eo,{})})}function ed(){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)(es,{tags:t})}),u&&(0,i.jsx)("div",{className:(0,a.Z)("col text--right",{"col--3":m}),children:(0,i.jsx)(ec,{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",W.k.blog.blogFooterEditMetaRow),children:(0,i.jsx)("div",{className:"col",children:(0,i.jsx)(es,{tags:t})})}),e&&(0,i.jsx)(et,{className:(0,a.Z)("margin-top--sm",W.k.blog.blogFooterEditMetaRow),editUrl:s,lastUpdatedAt:d,lastUpdatedBy:c})]})}}function eu(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)(_,{}),(0,i.jsx)(G,{children:n}),(0,i.jsx)(ed,{})]})}},50790:function(e,n,t){t.d(n,{Z:function(){return r}});var i=t(85893);t(67294);var l=t(67026),a=t(83012);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})]})}},11437:function(e,n,t){t.d(n,{P:function(){return l}});var i=t(2933);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})}}}]);